From ed52d8cb0db78eb8bff70329ac01a38d50d7f672 Mon Sep 17 00:00:00 2001 From: wangting <675591594@qq.com> Date: 星期三, 04 十二月 2024 16:20:13 +0800 Subject: [PATCH] 数据授权 --- Source/plt-web/plt-web-ui/src/views/system/user/option.js | 114 +++++++++++++++++++++++++++++++++++++++++++++----------- 1 files changed, 91 insertions(+), 23 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/system/user/option.js b/Source/plt-web/plt-web-ui/src/views/system/user/option.js index 0602863..32672fc 100644 --- a/Source/plt-web/plt-web-ui/src/views/system/user/option.js +++ b/Source/plt-web/plt-web-ui/src/views/system/user/option.js @@ -1,58 +1,108 @@ export const column = [ { - label: '濮撳悕', - prop: 'name', - align:'center', - search:true, - sortable:true - }, { label: '璐﹀彿', prop: 'id', - align:'center', search:true, - sortable:true + sortable:true, + rules: [ + { + required: true, + message: '璇疯緭鍏ヨ处鍙�', + trigger: 'blur' + } + ] + }, + { + label: '濮撳悕', + prop: 'name', + search:true, + sortable:true, + overHidden: true, + rules: [ + { + required: true, + message: '璇疯緭鍏ュ鍚�', + trigger: 'blur' + } + ] + }, + { + label: '瀵嗙爜', + prop: 'password', + hide:true, + type:'password', + change: (val)=>{ + const confirmPasswordColumn = column.find(item => item.prop === 'confirmPassword'); + confirmPasswordColumn.disabled = val.value === ""; + }, + rules: [ + { + required: true, + message: '璇疯緭鍏ュ瘑鐮�', + trigger: 'blur' + } + ] + }, + { + label: '纭瀵嗙爜', + prop: 'confirmPassword', + hide:true, + type:'password', + disabled:true, + rules: [ + { + required: true, + message: '璇峰啀娆$‘璁ゅ瘑鐮�', + trigger: 'blur' + } + ] }, { label: '鐘舵��', prop: 'status', - align: 'center', display:false, sortable:true, - slot: true, + width: 80, }, { label: '瀵嗙爜绛栫暐', prop: 'pkPasswordStrategyName', sortable:true, display:false, + width: 100 }, { label: '閿佸畾鐘舵��', prop: 'lockFlag', - align:'center', sortable:true, display:false, + width: 100, }, { label: '鎵�灞為儴闂�', - prop: 'pkDepartmentName', + prop: 'pkDepartment', align:'center', + type:'tree', + dicData: [], + props: { + label: 'name', + value: 'oid' + }, search:true, sortable:true, - searchslot:true, + overHidden: true, + width:200, }, { label: '涓撲笟', prop: 'specialties', - align:'center', sortable:true, }, { label: '瑙掕壊', prop: 'pkPersonName', - align:'center', type:'select', - dicUrl: 'api/roleQueryController/gridRoles', + dicUrl: 'api/roleQueryController/refDataGrid', props: { label: 'name', value: 'oid' @@ -65,28 +115,46 @@ { label: '鐢靛瓙閭欢', prop: 'email', - align:'center', sortable:true, + overHidden: true, + row:true, + span:24 }, { label: '鎻忚堪', type:'textarea', prop: 'description', - align:'center', sortable:true, + overHidden: true, + span:24 }, { label: '閮ㄩ棬棰嗗', prop: 'isDeptLeader', - align:'center', sortable:true, display:false, + width: 95, + formatter:function (row, value){ + if(value=='涓嶆槸'){ + return "鍚�" + } + return value + } }, { label: '鎵�灞炲瘑绾�', - prop: 'secretGradeText', - align:'center', + prop: 'secretGrade', + width: 100, sortable:true, - display:false, - } + type: 'select', + dicUrl: 'api/webEnumController/getEnum?comboxKey=usersecurityenum', + props: { + label: 'value', + value: 'key', + res: "obj", + }, + // formatter:(row,value,label)=>{ + // return row.secretGrade === 0 ? '' : label; + // } + }, ]; -- Gitblit v1.9.3