king
2022-03-24 26d0fa42ea8c63a87e8ef93d0915f75f46fb1f9c
src/menu/components/form/formaction/formconfig.jsx
@@ -25,19 +25,21 @@
      try {
        menulist = JSON.parse(menulist)
        menulist = menulist.map(item => ({value: item.MenuID, text: item.MenuName}))
      } catch {
      } catch (e) {
        menulist = []
      }
    } else {
      menulist = []
    }
    menulist.unshift({value: '', text: '无'})
    if (appType === 'mob') {
      menulist.push({value: 'goback', text: '返回(上一页)'})
    }
  } else {
    menulist = sessionStorage.getItem('fstMenuList')
    if (menulist) {
      try {
        menulist = JSON.parse(menulist)
      } catch {
      } catch (e) {
        menulist = []
      }
    } else {
@@ -244,11 +246,21 @@
    {
      type: (appType === 'pc' || appType === 'mob') ? 'select' : 'cascader',
      key: 'linkmenu',
      label: '打开菜单',
      label: '下一步操作',
      tooltip: '执行成功后需要打开的菜单。',
      initVal: card.linkmenu,
      help: '可返回上一页。',
      required: false,
      allowClear: true,
      options: menulist
    },
    {
      type: 'text',
      key: 'output',
      label: '返回值',
      tooltip: '执行成功后的返回值。',
      initVal: card.output || '',
      required: false
    },
    {
      type: 'radio',
@@ -274,19 +286,20 @@
      required: false,
      options: modules
    },
    // {
    //   type: 'radio',
    //   key: 'enable',
    //   label: '是否显示',
    //   initVal: card.enable || 'true',
    //   required: false,
    //   options: [{
    //     value: 'true',
    //     text: '显示'
    //   }, {
    //     value: 'false',
    //     text: '隐藏'
    //   }]
    // }
    {
      type: 'radio',
      key: 'reload',
      label: '上一页',
      initVal: card.reload || 'false',
      tooltip: '成功后是否刷新上页的数据。注:在明科云APP或小程序中有效。',
      forbid: appType !== 'mob',
      options: [{
        value: 'false',
        text: '不刷新'
      }, {
        value: 'true',
        text: '刷新'
      }]
    },
  ]
}