king
2025-04-17 9e8753bd4454d6823253fd617924de7dd0dd581a
src/menu/components/share/actioncomponent/formconfig.jsx
@@ -1,5 +1,5 @@
import React from 'react'
import { btnClasses } from '@/utils/option.js'
import { btnClasses, modalClasses } from '@/utils/option.js'
/**
 * @description 获取按钮表单配置信息
@@ -187,6 +187,9 @@
    } else {
      appMenus = []
    }
    // if (appType === 'mob') {
    //   appMenus.push({value: 'sign', text: '签名(系统页)'})
    // }
    appMenus.push({value: 'goback', text: '返回(上一页)'})
  } else {
    menulist = sessionStorage.getItem('fstMenuList')
@@ -211,12 +214,14 @@
      { value: 'mkBinding', text: '开通扫码登录' },
      { value: 'mkUnBinding', text: '用户解绑' },
      { value: 'mkUnsubscribe', text: '注销账户' },
      { value: 'reAuth', text: '切换系统(清空缓存-小程序)' },
      { value: 'reAuth', text: '切换授权码 / 小程序清空缓存' },
      { value: 'reSystem', text: '切换系统' },
      { value: 'clearCache', text: '清空本地配置' },
      { value: 'copyurl', text: '复制链接地址' },
      { value: 'expPdf', text: '导出PDF' },
      { value: 'shareLink', text: '分享链接' },
      { value: 'openLocation', text: '打开地图'},
      { value: 'wxPublicAuth', text: '微信公众号授权'},
      { value: 'logout', text: '退出' },
      { value: 'goBack', text: '返回' },
    ]
@@ -359,6 +364,16 @@
    }
  }
  if (card.syncComponents && card.syncComponents[0] && Array.isArray(card.syncComponents[0])) {
    card.syncComponents = card.syncComponents.map((item, i) => {
      return {
        syncComId: item,
        label: '',
        uuid: 'fixed' + i
      }
    })
  }
  let forms = [
    {
      type: 'select',
@@ -459,7 +474,7 @@
      key: 'procMode',
      label: '参数处理',
      initVal: card.procMode || (card.innerFunc ? 'inner' : 'system'),
      tooltip: '当返回值存在 mk_ex_invoke 且值为 false 时,不会调用外部接口;当返回值存在 mk_ex_data 时,将以此为参数分批请求自定义接口。注:当选“无”时,按钮选行时会传递主键,存在表单时会传递表单字段,存在BID时会传BID字段。',
      tooltip: '当返回值存在 mk_ex_invoke 且值为 false 时,不会调用外部接口;当返回值存在 mk_ex_invoke 且值为 true_inside 时,将跳过外部接口直接调用回调(回调参数请使用 mk_in_api 返回);当返回值存在 mk_ex_data 时,将以此为参数分批请求自定义接口。注:当选“无”时,按钮选行时会传递主键,存在表单时会传递表单字段,存在BID时会传BID字段。',
      required: true,
      options: [{
        value: 'system',
@@ -838,6 +853,10 @@
        value: 'never',
        text: '不刷新'
      }, {
        value: 'line',
        text: '刷新行',
        $disabled: !['table_normaltable', 'table_editable', 'table_basetable', 'card_datacard', 'card_dualdatacard'].includes(alltype)
      }, {
        value: 'grid',
        text: '刷新当前组件'
      }, {
@@ -1068,6 +1087,22 @@
      required: false,
      forbid: isApp || viewType === 'popview',
      options: menulist
    },
    {
      type: 'radio',
      key: 'urlPar',
      label: 'URL变量',
      initVal: card.urlPar || 'false',
      tooltip: '刷新菜单时是否清除URL变量。',
      required: false,
      options: [{
        value: 'true',
        text: '清空'
      }, {
        value: 'false',
        text: '不清空'
      }],
      forbid: isApp || viewType === 'popview',
    },
    {
      type: !appType ? 'cascader' : 'select',
@@ -1464,6 +1499,15 @@
    },
    {
      type: 'text',
      key: 'extValue',
      label: '扩展值',
      initVal: card.extValue || '',
      required: true,
      readonly: false,
      forbid: appType === 'mob'
    },
    {
      type: 'text',
      key: 'extLabel',
      label: '扩展名称',
      initVal: card.extLabel || '',
@@ -1472,12 +1516,30 @@
      forbid: appType === 'mob'
    },
    {
      type: 'select',
      key: 'extStyle',
      label: '扩展样式',
      initVal: card.extStyle || '',
      required: false,
      options: modalClasses,
      forbid: appType === 'mob'
    },
    {
      type: 'text',
      key: 'extValue',
      label: '扩展值',
      initVal: card.extValue || '',
      required: true,
      key: 'confLabel',
      label: '确定名称',
      initVal: card.confLabel || '',
      required: false,
      readonly: false,
      forbid: appType === 'mob'
    },
    {
      type: 'select',
      key: 'confStyle',
      label: '确定样式',
      initVal: card.confStyle || '',
      required: false,
      options: modalClasses,
      forbid: appType === 'mob'
    },
    {
@@ -1588,6 +1650,14 @@
        value: 'single',
        text: '逐条请求'
      }]
    },
    {
      type: 'number',
      key: 'execInterval',
      label: '执行间隔',
      initVal: card.execInterval || 0,
      tooltip: '两次请求的时间间隔(单位毫秒)。',
      required: false
    },
    {
      type: 'radio',
@@ -1918,7 +1988,7 @@
      key: 'procMode',
      label: '参数处理',
      initVal: card.procMode || (card.innerFunc ? 'inner' : 'system'),
      tooltip: '当返回值存在 mk_ex_invoke 且值为 false 时,不会调用外部接口;当返回值存在 mk_ex_data 时,将以此为参数分批请求自定义接口。注:当选“无”时,按钮选行时会传递主键,存在表单时会传递表单字段,存在BID时会传BID字段。',
      tooltip: '当返回值存在 mk_ex_invoke 且值为 false 时,不会调用外部接口;当返回值存在 mk_ex_invoke 且值为 true_inside 时,将跳过外部接口直接调用回调(回调参数请使用 mk_in_api 返回);当返回值存在 mk_ex_data 时,将以此为参数分批请求自定义接口。注:当选“无”时,按钮选行时会传递主键,存在表单时会传递表单字段,存在BID时会传BID字段。',
      required: true,
      options: [{
        value: 'system',
@@ -2284,6 +2354,9 @@
        value: 'never',
        text: '不刷新'
      }, {
        value: 'line',
        text: '刷新行'
      }, {
        value: 'grid',
        text: '刷新当前组件'
      }, {
@@ -2448,6 +2521,22 @@
      required: false,
      forbid: viewType === 'popview',
      options: menulist
    },
    {
      type: 'radio',
      key: 'urlPar',
      label: 'URL变量',
      initVal: card.urlPar || 'false',
      tooltip: '刷新菜单时是否清除URL变量。',
      required: false,
      options: [{
        value: 'true',
        text: '清空'
      }, {
        value: 'false',
        text: '不清空'
      }],
      forbid: viewType === 'popview',
    },
    {
      type: 'cascader',
@@ -2739,6 +2828,14 @@
    },
    {
      type: 'text',
      key: 'extValue',
      label: '扩展值',
      initVal: card.extValue || '',
      required: true,
      readonly: false
    },
    {
      type: 'text',
      key: 'extLabel',
      label: '扩展名称',
      initVal: card.extLabel || '',
@@ -2746,12 +2843,28 @@
      readonly: false
    },
    {
      type: 'select',
      key: 'extStyle',
      label: '扩展样式',
      initVal: card.extStyle || '',
      required: false,
      options: modalClasses
    },
    {
      type: 'text',
      key: 'extValue',
      label: '扩展值',
      initVal: card.extValue || '',
      required: true,
      key: 'confLabel',
      label: '确定名称',
      initVal: card.confLabel || '',
      required: false,
      readonly: false
    },
    {
      type: 'select',
      key: 'confStyle',
      label: '确定样式',
      initVal: card.confStyle || '',
      required: false,
      options: modalClasses
    },
    {
      type: 'radio',
@@ -2769,6 +2882,14 @@
      }]
    },
    {
      type: 'number',
      key: 'execInterval',
      label: '执行间隔',
      initVal: card.execInterval || 0,
      tooltip: '两次请求的时间间隔(单位毫秒)。',
      required: false
    },
    {
      type: 'radio',
      key: 'progress',
      label: '进度提示',