From 5acc490fa6f77a9ed7b5976ee6a2e22b070df5bf Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期二, 09 七月 2024 09:49:36 +0800
Subject: [PATCH] 角色管理联调修改、部门管理接口等代码上传
---
Source/plt-web/plt-web-ui/src/views/system/user/option.js | 78 +++++++++++++++++++++++++++++---------
1 files changed, 59 insertions(+), 19 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..07f7c2b 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,21 +1,64 @@
-export const column = [
+export let column = [
+ {
+ label: '璐﹀彿',
+ prop: 'id',
+ search:true,
+ sortable:true,
+ rules: [
+ {
+ required: true,
+ message: '璇疯緭鍏ュ鍚�',
+ trigger: 'blur'
+ }
+ ]
+ },
{
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: '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,
@@ -29,7 +72,6 @@
{
label: '閿佸畾鐘舵��',
prop: 'lockFlag',
- align:'center',
sortable:true,
display:false,
},
@@ -40,19 +82,18 @@
search:true,
sortable:true,
searchslot:true,
+ formslot:true,
},
{
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 +106,27 @@
{
label: '鐢靛瓙閭欢',
prop: 'email',
- align:'center',
sortable:true,
+ overHidden: true,
+ row:true
},
{
label: '鎻忚堪',
type:'textarea',
prop: 'description',
- align:'center',
sortable:true,
+ overHidden: true,
},
{
label: '閮ㄩ棬棰嗗',
prop: 'isDeptLeader',
- align:'center',
sortable:true,
display:false,
},
{
label: '鎵�灞炲瘑绾�',
prop: 'secretGradeText',
- align:'center',
sortable:true,
display:false,
- }
+ },
];
--
Gitblit v1.9.3