king
2022-06-14 669839c40c0080786cefa6a8e62d3ada68a39b8e
src/menu/components/form/normal-form/options.jsx
@@ -1,3 +1,6 @@
import { fromJS } from 'immutable'
import MenuUtils from '@/utils/utils-custom.js'
/**
 * @description Wrap表单配置信息
 */
@@ -15,6 +18,10 @@
  } else {
    roleList = []
  }
  let modules = []
  let menu = fromJS(window.GLOB.customMenu).toJS()
  modules = MenuUtils.getSupModules(menu.components, config.uuid) || []
  const wrapForm = [
    {
@@ -39,13 +46,16 @@
    {
      type: 'radio',
      field: 'datatype',
      label: '初始值',
      label: '数据来源',
      initval: wrap.datatype || 'static',
      tooltip: '初始值来源于数据源或表单默认值。',
      required: false,
      options: [
        {value: 'dynamic', label: '动态'},
        {value: 'static', label: '静态'},
      ],
      controlFields: [
        {field: 'supModule', values: ['static']},
      ]
    },
    {
@@ -92,6 +102,27 @@
      forbid: config.subtype === 'tabform'
    },
    {
      type: 'radio',
      field: 'permission',
      label: '权限验证',
      initval: wrap.permission || 'false',
      required: false,
      options: [
        {value: 'true', label: '启用'},
        {value: 'false', label: '禁用'},
      ],
      forbid: !appType
    },
    {
      type: 'cascader',
      field: 'supModule',
      label: '上级组件',
      initval: wrap.supModule || [],
      required: false,
      options: modules,
      allowClear: true
    },
    {
      type: 'multiselect',
      field: 'blacklist',
      label: '黑名单',