Ben Lin
2024-06-07 aa0bc81d06736cc1a1bd210dde61f57736585d43
src/views/tigerprojects/system/role/role.data.ts
@@ -1,5 +1,4 @@
import { BasicColumn } from '/@/components/Table';
import { FormSchema } from '/@/components/Table';
import { BasicColumn, FormSchema } from '/@/components/Table';
import { h } from 'vue';
import { Switch } from 'ant-design-vue';
import { setRoleStatus } from '/@/api/tigerapi/system';
@@ -55,7 +54,7 @@
        },
      });
    },
    editDynamicDisabled:true
    editDynamicDisabled: true,
  },
  {
    title: '创建时间',
@@ -91,7 +90,8 @@
const isMenu = (type: number) => type === 0;
const isOrg = (type: number) => type === 1;
const isWh = (type: number) => type === 2;
const isFty = (type: number) => type === 2;
const isWh = (type: number) => type === 3;
export const formSchema: FormSchema[] = [
  {
    field: 'ROLE_DESC',
@@ -145,11 +145,10 @@
        options: [
          { label: '菜单分配', value: 0 },
          { label: '组织分配', value: 1 },
          { label: '仓库分配', value: 2 },
          { label: '工厂分配', value: 2 },
          { label: '仓库分配', value: 3 },
        ],
        onChange: (e) => {
        },
        onChange: (e) => {},
      };
    },
    colProps: { lg: 24, md: 24 },
@@ -176,6 +175,16 @@
  },
  {
    label: ' ',
    field: 'fty',
    slot: 'fty',
    component: 'Input',
    colProps: {
      span: 24,
    },
    ifShow: ({ values }) => isFty(values.DATA_TYPE),
  },
  {
    label: ' ',
    field: 'wh',
    slot: 'wh',
    component: 'Input',