king
2022-06-08 c6f8e27d35cd31bb6393a1e7f747b6b2593dbd7a
src/menu/components/share/actioncomponent/formconfig.jsx
@@ -164,6 +164,19 @@
    card.control = ''
  }
  if (card.execSuccess === 'goback') {
    card.openmenu = 'goback'
    card.execSuccess = 'never'
  }
  let closetab = []
  if (!appType) {
    closetab = [{
      value: 'closetab',
      text: '关闭标签'
    }]
  }
  let forms = [
    {
      type: 'select',
@@ -443,10 +456,8 @@
      }, {
        value: 'mainline',
        text: '刷新上级组件 - 行'
      }, {
        value: !appType ? 'closetab' : 'goback',
        text: !appType ? '关闭标签' : '返回(上一个页面)'
      },
      },
      ...closetab,
      ...refresh]
    },
    {
@@ -647,7 +658,7 @@
      key: 'syncComponent',
      label: '刷新组件',
      initVal: card.syncComponent || [],
      tooltip: '执行成功后(或弹窗标签关闭时),需要同步刷新的组件',
      tooltip: '执行成功后(或弹窗标签关闭时),需要同步刷新的组件。注:选择当前组件的上级组件无效。',
      required: false,
      options: modules
    },
@@ -685,9 +696,10 @@
      label: '打开菜单',
      tooltip: '执行成功后需要打开的菜单。',
      initVal: card.openmenu || (!appType ? [] : ''),
      help: appType === 'mob' || appType === 'pc' ? '可返回上一页。' : null,
      required: false,
      allowClear: true,
      options: appType === 'mob' ? [...appMenus, {value: 'goback', text: '返回(上一页)'}] : (appType === 'pc' ? appMenus : menulist),
      options: appType === 'mob' || appType === 'pc' ? [...appMenus, {value: 'goback', text: '返回(上一页)'}] : menulist,
      forbid: viewType === 'popview'
    },
    {
@@ -712,8 +724,9 @@
      key: 'open',
      label: '打开方式',
      initVal: card.open || 'blank',
      tooltip: '菜单打开方式。注:移动端只在小程序或app中有效。',
      required: true,
      forbid: appType !== 'pc',
      forbid: appType !== 'pc' && appType !== 'mob',
      options: [{
        value: 'blank',
        text: '新窗口'