添加可登录平台字段
This commit is contained in:
parent
372bb4034c
commit
a42a3cbf72
|
@ -7,7 +7,7 @@
|
||||||
<BasicTable @register="registerTable" >
|
<BasicTable @register="registerTable" >
|
||||||
<!--插槽:table标题-->
|
<!--插槽:table标题-->
|
||||||
<template #tableTitle>
|
<template #tableTitle>
|
||||||
可选服务标签
|
<div class="title1Class">可选服务标签</div>
|
||||||
</template>
|
</template>
|
||||||
<!--操作栏-->
|
<!--操作栏-->
|
||||||
<template #action="{ record }">
|
<template #action="{ record }">
|
||||||
|
@ -19,7 +19,7 @@
|
||||||
</BasicTable>
|
</BasicTable>
|
||||||
</div>
|
</div>
|
||||||
<div style="padding: 8px;">
|
<div style="padding: 8px;">
|
||||||
<div>已选服务标签</div>
|
<div class="title1Class">已选服务标签</div>
|
||||||
<a-table :dataSource="employeesDataSource" :columns="employeesTagcolumns" style="margin-top:8px;" bordered size="small" :pagination="false">
|
<a-table :dataSource="employeesDataSource" :columns="employeesTagcolumns" style="margin-top:8px;" bordered size="small" :pagination="false">
|
||||||
<template #bodyCell="{ column, record }">
|
<template #bodyCell="{ column, record }">
|
||||||
<template v-if="column.key === 'action'" >
|
<template v-if="column.key === 'action'" >
|
||||||
|
@ -203,4 +203,8 @@ import { defHttp } from '/@/utils/http/axios';
|
||||||
:deep(.ant-picker),:deep(.ant-input-number){
|
:deep(.ant-picker),:deep(.ant-input-number){
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
.title1Class{
|
||||||
|
// background-image: url(../../../../../public/resource/img/titleBackground1.jpg);
|
||||||
|
// width: 100px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
|
@ -14,12 +14,12 @@ export const columns: BasicColumn[] = [
|
||||||
dataIndex: 'realname',
|
dataIndex: 'realname',
|
||||||
width: 100,
|
width: 100,
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: '头像',
|
// title: '头像',
|
||||||
dataIndex: 'avatar',
|
// dataIndex: 'avatar',
|
||||||
width: 120,
|
// width: 120,
|
||||||
customRender: render.renderAvatar,
|
// customRender: render.renderAvatar,
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: '性别',
|
title: '性别',
|
||||||
dataIndex: 'sex',
|
dataIndex: 'sex',
|
||||||
|
@ -34,10 +34,15 @@ export const columns: BasicColumn[] = [
|
||||||
dataIndex: 'phone',
|
dataIndex: 'phone',
|
||||||
width: 100,
|
width: 100,
|
||||||
},
|
},
|
||||||
|
// {
|
||||||
|
// title: '部门',
|
||||||
|
// width: 150,
|
||||||
|
// dataIndex: 'orgCodeTxt',
|
||||||
|
// },
|
||||||
{
|
{
|
||||||
title: '部门',
|
title: '可登录类型',
|
||||||
width: 150,
|
width: 150,
|
||||||
dataIndex: 'orgCodeTxt',
|
dataIndex: 'loginType_dictText',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: '状态',
|
title: '状态',
|
||||||
|
@ -193,37 +198,37 @@ export const formSchema: FormSchema[] = [
|
||||||
immediate: false,
|
immediate: false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
label: '所属部门',
|
// label: '所属部门',
|
||||||
field: 'selecteddeparts',
|
// field: 'selecteddeparts',
|
||||||
component: 'JSelectDept',
|
// component: 'JSelectDept',
|
||||||
componentProps: ({ formActionType, formModel }) => {
|
// componentProps: ({ formActionType, formModel }) => {
|
||||||
return {
|
// return {
|
||||||
sync: false,
|
// sync: false,
|
||||||
checkStrictly: true,
|
// checkStrictly: true,
|
||||||
defaultExpandLevel: 2,
|
// defaultExpandLevel: 2,
|
||||||
|
|
||||||
onSelect: (options, values) => {
|
// onSelect: (options, values) => {
|
||||||
const { updateSchema } = formActionType;
|
// const { updateSchema } = formActionType;
|
||||||
//所属部门修改后更新负责部门下拉框数据
|
// //所属部门修改后更新负责部门下拉框数据
|
||||||
updateSchema([
|
// updateSchema([
|
||||||
{
|
// {
|
||||||
field: 'departIds',
|
// field: 'departIds',
|
||||||
componentProps: { options },
|
// componentProps: { options },
|
||||||
},
|
// },
|
||||||
]);
|
// ]);
|
||||||
//update-begin---author:wangshuai---date:2024-05-11---for:【issues/1222】用户编辑界面“所属部门”与“负责部门”联动出错整---
|
// //update-begin---author:wangshuai---date:2024-05-11---for:【issues/1222】用户编辑界面“所属部门”与“负责部门”联动出错整---
|
||||||
if(!values){
|
// if(!values){
|
||||||
formModel.departIds = [];
|
// formModel.departIds = [];
|
||||||
return;
|
// return;
|
||||||
}
|
// }
|
||||||
//update-end---author:wangshuai---date:2024-05-11---for:【issues/1222】用户编辑界面“所属部门”与“负责部门”联动出错整---
|
// //update-end---author:wangshuai---date:2024-05-11---for:【issues/1222】用户编辑界面“所属部门”与“负责部门”联动出错整---
|
||||||
//所属部门修改后更新负责部门数据
|
// //所属部门修改后更新负责部门数据
|
||||||
formModel.departIds && (formModel.departIds = formModel.departIds.filter((item) => values.value.indexOf(item) > -1));
|
// formModel.departIds && (formModel.departIds = formModel.departIds.filter((item) => values.value.indexOf(item) > -1));
|
||||||
},
|
// },
|
||||||
};
|
// };
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
label: '租户',
|
label: '租户',
|
||||||
field: 'relTenantIds',
|
field: 'relTenantIds',
|
||||||
|
@ -266,14 +271,14 @@ export const formSchema: FormSchema[] = [
|
||||||
// ifShow: ({ values }) => values.userIdentity == 2,
|
// ifShow: ({ values }) => values.userIdentity == 2,
|
||||||
ifShow: false,
|
ifShow: false,
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
label: '头像',
|
// label: '头像',
|
||||||
field: 'avatar',
|
// field: 'avatar',
|
||||||
component: 'JImageUpload',
|
// component: 'JImageUpload',
|
||||||
componentProps: {
|
// componentProps: {
|
||||||
fileMax: 1,
|
// fileMax: 1,
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
label: '生日',
|
label: '生日',
|
||||||
field: 'birthday',
|
field: 'birthday',
|
||||||
|
@ -290,6 +295,15 @@ export const formSchema: FormSchema[] = [
|
||||||
stringToNumber: true,
|
stringToNumber: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: '可登录类型',
|
||||||
|
field: 'loginType',
|
||||||
|
required: false,
|
||||||
|
component: 'JSelectMultiple',
|
||||||
|
componentProps: {
|
||||||
|
dictCode: 'login_type',
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: '手机号码',
|
label: '手机号码',
|
||||||
field: 'phone',
|
field: 'phone',
|
||||||
|
|
Loading…
Reference in New Issue