king
2020-09-26 ab60d53b67f802878662aaa5a5b52580cca421b8
src/menu/actioncomponent/formconfig.jsx
@@ -11,7 +11,7 @@
 * @param {*} permFuncField  存储过程可用的开始字段
 * @param {*} type           按钮类型,用于区分可选的打开方式
 */
export function getActionForm (card, functip, setting, permFuncField = [], type, menulist = []) {
export function getActionForm (card, functip, setting, permFuncField = [], type, menulist = [], modules = []) {
  let opentypes = [
    {
      value: 'pop',
@@ -43,23 +43,7 @@
    }
  ]
  if (card.intertype === 'inner' && !card.innerFunc) {
    card.intertype = 'system'
  }
  if (type === 'chart') {
    if (card.focus) {
      // 导入和导出excel,按钮名称直接为导入、导出
      card.label = '导出Excel'
      card.OpenType = 'excelOut'
      card.icon = 'download'
      card.intertype = setting.interType
      card.innerFunc = setting.innerFunc
      card.sysInterface = setting.sysInterface
      card.outerFunc = setting.outerFunc
      card.interface = setting.interface
      card.class = 'dgreen'
    }
    opentypes = [
      {
        value: 'excelIn',
@@ -389,6 +373,14 @@
        text: '非必填'
      }]
    },
    {
      type: 'mcascader',
      key: 'syncComponent',
      label: '同步刷新',
      initVal: card.syncComponent || [],
      required: false,
      options: modules
    },
    // {
    //   type: 'select',
    //   key: 'linkcomponents',