|
|
@ -9,7 +9,7 @@ import {
|
|
|
|
getCountryList,
|
|
|
|
getCountryList,
|
|
|
|
} from '/@/api/common'
|
|
|
|
} from '/@/api/common'
|
|
|
|
import { GetTablesByClient } from '/@/views/baseinfo/clientflowtemplate/api'
|
|
|
|
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 { Tag } from 'ant-design-vue'
|
|
|
|
import { useOptionsStore } from '/@/store/modules/options'
|
|
|
|
import { useOptionsStore } from '/@/store/modules/options'
|
|
|
|
import { checkPermissions } from '/@/hooks/Permissions/index'
|
|
|
|
import { checkPermissions } from '/@/hooks/Permissions/index'
|
|
|
@ -35,7 +35,6 @@ const ClientPermissionData = []
|
|
|
|
let ClientPermissionList = []
|
|
|
|
let ClientPermissionList = []
|
|
|
|
const res2: API.DataResult = await getClientPermissionList()
|
|
|
|
const res2: API.DataResult = await getClientPermissionList()
|
|
|
|
if (res2.succeeded) {
|
|
|
|
if (res2.succeeded) {
|
|
|
|
console.log(res2)
|
|
|
|
|
|
|
|
ClientPermissionList = res2.data
|
|
|
|
ClientPermissionList = res2.data
|
|
|
|
res2.data.forEach((item) => {
|
|
|
|
res2.data.forEach((item) => {
|
|
|
|
ClientPermissionData.push({
|
|
|
|
ClientPermissionData.push({
|
|
|
@ -164,9 +163,9 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
showSearch: true,
|
|
|
|
showSearch: true,
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
filterOption: (input: string, option: any) => {
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
{
|
|
|
|
field: 'deptId',
|
|
|
|
field: 'deptId',
|
|
|
@ -180,7 +179,7 @@ export const searchFormSchema: FormSchema[] = [
|
|
|
|
labelField: 'orgName',
|
|
|
|
labelField: 'orgName',
|
|
|
|
valueField: 'id',
|
|
|
|
valueField: 'id',
|
|
|
|
resultField: 'data',
|
|
|
|
resultField: 'data',
|
|
|
|
immediate: false
|
|
|
|
immediate: false,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -720,12 +719,9 @@ export const infoformSchema: FormSchema[] = [
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
return option.label.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
},
|
|
|
|
},
|
|
|
|
onChange: async (e: ChangeEvent, a) => {
|
|
|
|
onChange: async (e: ChangeEvent, a) => {
|
|
|
|
console.log(e, a)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const res: API.DataResult = await getColumns({ tableViewName: e })
|
|
|
|
const res: API.DataResult = await getColumns({ tableViewName: e })
|
|
|
|
fields.value = []
|
|
|
|
fields.value = []
|
|
|
|
if (res.succeeded) {
|
|
|
|
if (res.succeeded) {
|
|
|
|
console.log(res)
|
|
|
|
|
|
|
|
const Arr = [
|
|
|
|
const Arr = [
|
|
|
|
{
|
|
|
|
{
|
|
|
|
dbColumnName: '{loginRole}',
|
|
|
|
dbColumnName: '{loginRole}',
|
|
|
@ -766,8 +762,6 @@ export const infoformSchema: FormSchema[] = [
|
|
|
|
conditions: [],
|
|
|
|
conditions: [],
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
console.log(fields.value, 'fields.value')
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -805,10 +799,8 @@ export const infoformSchema: FormSchema[] = [
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// xxxx props
|
|
|
|
// xxxx props
|
|
|
|
onChange: (e) => {
|
|
|
|
onChange: (e) => {
|
|
|
|
console.log(e)
|
|
|
|
|
|
|
|
ClientPermissionList.forEach((item) => {
|
|
|
|
ClientPermissionList.forEach((item) => {
|
|
|
|
if (item.id == e) {
|
|
|
|
if (item.id == e) {
|
|
|
|
console.log(item)
|
|
|
|
|
|
|
|
formModel.permissionEntity = item.permissionEntity
|
|
|
|
formModel.permissionEntity = item.permissionEntity
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -882,16 +874,38 @@ export const infoformSchema: FormSchema[] = [
|
|
|
|
return h(ConditionFilter, {
|
|
|
|
return h(ConditionFilter, {
|
|
|
|
modelValue: model[field],
|
|
|
|
modelValue: model[field],
|
|
|
|
filterFields: fields.value,
|
|
|
|
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,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
]
|
|
|
|
]
|
|
|
|