| | |
| | | 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'; |
| | |
| | | }, |
| | | }); |
| | | }, |
| | | editDynamicDisabled:true |
| | | editDynamicDisabled: true, |
| | | }, |
| | | { |
| | | title: '创建时间', |
| | |
| | | |
| | | 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', |
| | |
| | | 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 }, |
| | |
| | | }, |
| | | { |
| | | label: ' ', |
| | | field: 'fty', |
| | | slot: 'fty', |
| | | component: 'Input', |
| | | colProps: { |
| | | span: 24, |
| | | }, |
| | | ifShow: ({ values }) => isFty(values.DATA_TYPE), |
| | | }, |
| | | { |
| | | label: ' ', |
| | | field: 'wh', |
| | | slot: 'wh', |
| | | component: 'Input', |