接口权限增加用户字段

feature-JimuReport-1106-yjl
lijingjia 4 weeks ago
parent 2456746d37
commit 1d8053018a

@ -1,7 +1,7 @@
import { ref } from 'vue'
import { BasicColumn, FormSchema } from '/@/components/Table'
// 下拉框数据接口
import { GetClientListByCode } from '/@/api/common'
import { GetClientListByCode, GetUserList } from '/@/api/common'
// 引入字典数据
import { getDictOption } from '/@/utils/dictUtil'
// 客户类别下拉框数据
@ -179,11 +179,41 @@ export const formSchema: FormSchema[] = [
},
{
field: 'registContractName',
label: '联系人',
label: '用户',
component: 'Input',
defaultValue: '',
colProps: { span: 12 },
},
{
field: 'userId',
label: '',
component: 'Input',
show: false
},
{
field: 'userName',
label: '用户',
component: 'ApiSelect',
defaultValue: '',
colProps: { span: 12 },
componentProps: ({ formModel }) => {
return {
api: GetUserList,
labelField: 'label',
valueField: 'label',
resultField: 'data',
immediate: false,
onChange: (e, obj) => {
if (e && obj) {
formModel.userId = obj.value
}
if (!e && !obj) {
formModel.userId = ''
}
},
}
},
},
{
field: 'registContractEmail',
label: '联系邮箱',

@ -2823,9 +2823,9 @@ export const otherInfoFormSchema: FormSchema[] = [
if (!e && !obj) {
formModel.yardId = ''
}
},
}
}
},
}
},
{
label: '',

Loading…
Cancel
Save