From de967d5d54a6eee38221ea14b2472401974608db Mon Sep 17 00:00:00 2001
From: 田源 <lastanimals@163.com>
Date: 星期三, 10 七月 2024 18:25:04 +0800
Subject: [PATCH] 晚上上传组件导入提示、调整默认对话框边距、密码策略查询以及新增修改 密码长度、必填种类、锁定时间等正则校验 完善启动流程默认传参

---
 Source/plt-web/plt-web-ui/src/views/system/department/index.vue |   21 +++++++++++++++++----
 1 files changed, 17 insertions(+), 4 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/views/system/department/index.vue b/Source/plt-web/plt-web-ui/src/views/system/department/index.vue
index d56868a..288f0ad 100644
--- a/Source/plt-web/plt-web-ui/src/views/system/department/index.vue
+++ b/Source/plt-web/plt-web-ui/src/views/system/department/index.vue
@@ -25,9 +25,10 @@
       </template>
 
       <template slot="menuLeft" slot-scope="scope">
-        <el-button icon="el-icon-school" plain size="small" type="primary" @click="assignMembersHandler">鍒嗛厤鎴愬憳</el-button>
+        <el-button icon="el-icon-school" plain size="small" type="primary" @click="assignMembersHandler">鍒嗛厤鎴愬憳
+        </el-button>
         <el-button icon="el-icon-user" plain size="small" type="primary" @click="statisticsHandler">缁熻</el-button>
-        <el-button icon="el-icon-upload2" plain size="small" type="primary" @click="statisticsHandler">瀵煎叆閮ㄩ棬</el-button>
+        <el-button icon="el-icon-upload2" plain size="small" type="primary" @click="upLoadHandler">瀵煎叆閮ㄩ棬</el-button>
         <el-button icon="el-icon-download" plain size="small" type="primary" @click="downLoadHandler">涓嬭浇瀵煎叆妯℃澘</el-button>
       </template>
     </avue-crud>
@@ -62,6 +63,10 @@
               :transferTitle="transferTitle" title="閮ㄩ棬娣诲姞鎴愬憳"
               @transferSend="departTransferSend">
     </transfer>
+
+    <!-- 瀵煎叆閮ㄩ棬   -->
+    <upload-file ref="upload" :fileType="upFileType" :fileUrl="fileUrl" :tipList="tipList" title="瀵煎叆閮ㄩ棬"
+                 @updata="getTableList"></upload-file>
 
   </basic-container>
 </template>
@@ -131,12 +136,16 @@
             label: '瑙掕壊',
             prop: 'pkPersonName',
             sortable: true,
+            overHidden: true,
           },
         ]
       },
       leftTransferData: [],
       rightTransferData: [],
       transferTitle: ['寰呴�変汉鍛�', '宸查�変汉鍛�'],
+      tipList: ['瀵煎叆妯℃澘涓爣鏄庣孩鑹插瓧浣撶殑涓哄繀杈撻」', '瀵煎叆缁撴瀯涓烘爲缁撴瀯鏃惰淇濊瘉ID鍒椾笉鑳介噸澶�', '鐖禝D璇蜂娇鐢ㄧ晫闈笂閮ㄩ棬鐨勫敮涓�鏍囪瘑ID鎴栬�匛xcel涓墜鍔ㄨ緭鍏ョ殑ID', '鐖禝D鍒椾负绌烘椂锛屽鍏ョ殑閮ㄩ棬鍗充负椤跺眰閮ㄩ棬'],
+      upFileType: ['xls', 'xlsx'],
+      fileUrl: 'api/departmentQueryController/importDept',
     }
   },
   methods: {
@@ -273,7 +282,6 @@
       }
 
       countSmUserByDeptOid({pkDepartment: this.departCurrenRow.ALLDept === 'ALLDept' ? null : this.departCurrenRow.oid}).then(res => {
-        console.log(res);
         if (res.data.code === 200) {
           const data = res.data.data;
           this.countData = data.map(item => {
@@ -339,13 +347,18 @@
     },
 
     // 涓嬭浇瀵煎叆妯℃澘
-    downLoadHandler(){
+    downLoadHandler() {
       download().then(res => {
         func.downloadFileByBlobHandler(res);
         this.$message.success('涓嬭浇鎴愬姛')
       }).catch(err => {
         this.$message.error(err);
       })
+    },
+
+    // 瀵煎叆閮ㄩ棬
+    upLoadHandler() {
+      this.$refs.upload.visible = true;
     }
   }
 }

--
Gitblit v1.9.3