mirror of
https://github.com/jeecgboot/JeecgBoot.git
synced 2026-02-05 10:05:33 +08:00
【v3.8.3】我的租户大改造
This commit is contained in:
@ -147,12 +147,21 @@ export const formSchema: FormSchema[] = [
|
||||
}, {
|
||||
field: 'companyAddress',
|
||||
label: '公司地址',
|
||||
component: 'InputTextArea',
|
||||
component: 'JAreaSelect',
|
||||
componentProps: {
|
||||
placeholder: '请输入公司地址',
|
||||
rows: 4,
|
||||
}
|
||||
},
|
||||
{
|
||||
field: 'workPlace',
|
||||
label: '工作地点',
|
||||
component: 'InputTextArea',
|
||||
componentProps: {
|
||||
placeholder: '请输入工作地点',
|
||||
rows: 4,
|
||||
}
|
||||
},
|
||||
/* {
|
||||
field: 'beginDate',
|
||||
label: '开始时间',
|
||||
@ -257,6 +266,25 @@ export const packColumns: BasicColumn[] = [
|
||||
title: '套餐包名称',
|
||||
dataIndex: 'packName',
|
||||
width: 100,
|
||||
customRender: ( { record, text }) => {
|
||||
if(record.packCode && record.packCode.indexOf('default') != -1) {
|
||||
return text + '(默认产品包)';
|
||||
} else {
|
||||
return text;
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '是否自动分配用户',
|
||||
dataIndex: 'izSysn',
|
||||
width: 100,
|
||||
customRender: ( { text }) => {
|
||||
if(text === '1') {
|
||||
return '是';
|
||||
} else {
|
||||
return '否';
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '状态',
|
||||
@ -277,6 +305,39 @@ export const packColumns: BasicColumn[] = [
|
||||
},
|
||||
];
|
||||
|
||||
//套餐包列表
|
||||
export const tenantPackColumns: BasicColumn[] = [
|
||||
{
|
||||
title: '套餐包名称',
|
||||
dataIndex: 'packName',
|
||||
width: 100,
|
||||
customRender: ( { record, text }) => {
|
||||
if(record.packCode && record.packCode.indexOf('default') != -1) {
|
||||
return text + '(默认产品包)';
|
||||
} else {
|
||||
return text;
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '是否自动分配用户',
|
||||
dataIndex: 'izSysn',
|
||||
width: 100,
|
||||
customRender: ( { text }) => {
|
||||
if(text === '1') {
|
||||
return '是';
|
||||
} else {
|
||||
return '否';
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '备注说明',
|
||||
dataIndex: 'remarks',
|
||||
width: 150,
|
||||
},
|
||||
];
|
||||
|
||||
//套餐包列表
|
||||
export const defalutPackColumns: BasicColumn[] = [
|
||||
{
|
||||
@ -337,9 +398,11 @@ export const packMenuFormSchema: FormSchema[] = [
|
||||
componentProps: {
|
||||
dict: 'sys_permission,name,id',
|
||||
pidField: 'parent_id',
|
||||
hasChildField:'is_leaf',
|
||||
multiple: true,
|
||||
treeCheckAble:true,
|
||||
treeCheckStrictly: true,
|
||||
converIsLeafVal: 0,
|
||||
getPopupContainer: () => document.body,
|
||||
},
|
||||
},
|
||||
@ -348,6 +411,19 @@ export const packMenuFormSchema: FormSchema[] = [
|
||||
label: '备注说明',
|
||||
component: 'InputTextArea',
|
||||
},
|
||||
{
|
||||
field: 'izSysn',
|
||||
label: '自动分配用户',
|
||||
component: 'Switch',
|
||||
componentProps: {
|
||||
checkedValue: "1",
|
||||
checkedChildren: '是',
|
||||
unCheckedValue: "0",
|
||||
unCheckedChildren: '否',
|
||||
},
|
||||
defaultValue: "1",
|
||||
helpMessage: "默认会自动分配给用户,个性高级套餐,需要租户管理员手工分配人员(拥有更灵活性权限控制)"
|
||||
},
|
||||
{
|
||||
field: 'status',
|
||||
label: '开启状态',
|
||||
@ -366,6 +442,18 @@ export const packMenuFormSchema: FormSchema[] = [
|
||||
component: 'Input',
|
||||
show: false
|
||||
},
|
||||
{
|
||||
field: 'packCode',
|
||||
label: '产品包编码',
|
||||
component: 'Input',
|
||||
show: false
|
||||
},
|
||||
{
|
||||
field: 'packType',
|
||||
label: '产品包类型',
|
||||
component: 'Input',
|
||||
show: false
|
||||
},
|
||||
];
|
||||
|
||||
//回收站列表
|
||||
@ -479,7 +567,7 @@ export const tenantUserSchema: FormSchema[] = [
|
||||
},
|
||||
},
|
||||
{ field: 'selecteddeparts', label: '部门', component: 'JSelectDept', componentProps: { checkStrictly: true } },
|
||||
{
|
||||
/* {
|
||||
field: 'post',
|
||||
label: '职位',
|
||||
component: 'JSelectPosition',
|
||||
@ -489,9 +577,33 @@ export const tenantUserSchema: FormSchema[] = [
|
||||
label: '工号',
|
||||
component: 'Input',
|
||||
dynamicRules: ({ model, schema }) => {
|
||||
return [{ required: true, message: '请输入工号' }, { ...rules.duplicateCheckRule('sys_user', 'work_no', model, schema, false)[0] }];
|
||||
return [{ required: false, message: '请输入工号' }, { ...rules.duplicateCheckRule('sys_user', 'work_no', model, schema, false)[0] }];
|
||||
},
|
||||
},
|
||||
},*/
|
||||
{ field: 'relTenantIds', label: '租户', component: 'Input',show:false },
|
||||
{ field: 'selectedroles', label: '角色', component: 'Input',show:false },
|
||||
];
|
||||
|
||||
// 分配用户套餐
|
||||
export const packUserAllotSchemas: FormSchema[] = [
|
||||
{
|
||||
field: 'userId',
|
||||
label: '用户id',
|
||||
component: 'Input',
|
||||
show: false
|
||||
},
|
||||
{
|
||||
field: 'realname',
|
||||
label: '用户姓名',
|
||||
component: 'Input',
|
||||
componentProps:{
|
||||
readonly : true
|
||||
},
|
||||
},
|
||||
{
|
||||
field: 'packId',
|
||||
label: '套餐',
|
||||
component: 'Select',
|
||||
slot: 'packId'
|
||||
}
|
||||
];
|
||||
Reference in New Issue
Block a user