|
|
|
@ -9,7 +9,7 @@ import {
|
|
|
|
|
getCountryList,
|
|
|
|
|
} from '/@/api/common'
|
|
|
|
|
import { GetTablesByClient } from '/@/views/baseinfo/clientflowtemplate/api'
|
|
|
|
|
import { getTables, getColumns, getClientPermissionList } from '/@/api/system/role'
|
|
|
|
|
import { getColumns, getClientPermissionList } from '/@/api/system/role'
|
|
|
|
|
import { Tag } from 'ant-design-vue'
|
|
|
|
|
import { useOptionsStore } from '/@/store/modules/options'
|
|
|
|
|
import { checkPermissions } from '/@/hooks/Permissions/index'
|
|
|
|
@ -35,7 +35,6 @@ const ClientPermissionData = []
|
|
|
|
|
let ClientPermissionList = []
|
|
|
|
|
const res2: API.DataResult = await getClientPermissionList()
|
|
|
|
|
if (res2.succeeded) {
|
|
|
|
|
console.log(res2)
|
|
|
|
|
ClientPermissionList = res2.data
|
|
|
|
|
res2.data.forEach((item) => {
|
|
|
|
|
ClientPermissionData.push({
|
|
|
|
@ -164,9 +163,9 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
|
showSearch: true,
|
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
field: 'deptId',
|
|
|
|
@ -180,7 +179,7 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
|
labelField: 'orgName',
|
|
|
|
|
valueField: 'id',
|
|
|
|
|
resultField: 'data',
|
|
|
|
|
immediate: false
|
|
|
|
|
immediate: false,
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
@ -720,12 +719,9 @@ export const infoformSchema: FormSchema[] = [
|
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
|
},
|
|
|
|
|
onChange: async (e: ChangeEvent, a) => {
|
|
|
|
|
console.log(e, a)
|
|
|
|
|
|
|
|
|
|
const res: API.DataResult = await getColumns({ tableViewName: e })
|
|
|
|
|
fields.value = []
|
|
|
|
|
if (res.succeeded) {
|
|
|
|
|
console.log(res)
|
|
|
|
|
const Arr = [
|
|
|
|
|
{
|
|
|
|
|
dbColumnName: '{loginRole}',
|
|
|
|
@ -766,8 +762,6 @@ export const infoformSchema: FormSchema[] = [
|
|
|
|
|
conditions: [],
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log(fields.value, 'fields.value')
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
@ -805,10 +799,8 @@ export const infoformSchema: FormSchema[] = [
|
|
|
|
|
},
|
|
|
|
|
// xxxx props
|
|
|
|
|
onChange: (e) => {
|
|
|
|
|
console.log(e)
|
|
|
|
|
ClientPermissionList.forEach((item) => {
|
|
|
|
|
if (item.id == e) {
|
|
|
|
|
console.log(item)
|
|
|
|
|
formModel.permissionEntity = item.permissionEntity
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
@ -882,16 +874,38 @@ export const infoformSchema: FormSchema[] = [
|
|
|
|
|
return h(ConditionFilter, {
|
|
|
|
|
modelValue: model[field],
|
|
|
|
|
filterFields: fields.value,
|
|
|
|
|
// onChange: (e: ChangeEvent) => {
|
|
|
|
|
// console.log(e);
|
|
|
|
|
// model[field] = e.target.value;
|
|
|
|
|
// },
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
// componentProps: {
|
|
|
|
|
// onChange: (e: ChangeEvent) => {
|
|
|
|
|
// console.log('change', e);
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
export const indexcolumns: BasicColumn[] = [
|
|
|
|
|
{
|
|
|
|
|
title: '权限描述',
|
|
|
|
|
dataIndex: 'description',
|
|
|
|
|
width: 200,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '排序号',
|
|
|
|
|
dataIndex: 'orderNo',
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '状态',
|
|
|
|
|
dataIndex: 'status',
|
|
|
|
|
width: 100,
|
|
|
|
|
customRender: ({ text }) => {
|
|
|
|
|
if (text === 0) {
|
|
|
|
|
return <Tag color="success">启用</Tag>
|
|
|
|
|
} else if (text === 1) {
|
|
|
|
|
return <Tag color="red">禁用</Tag>
|
|
|
|
|
}
|
|
|
|
|
return text
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '备注',
|
|
|
|
|
dataIndex: 'note',
|
|
|
|
|
width: 150,
|
|
|
|
|
},
|
|
|
|
|
]
|
|
|
|
|