From e5b58707bae2d4e153560f51ed38859c530e9a66 Mon Sep 17 00:00:00 2001
From: liyanqi <15181887205@163.com>
Date: 星期二, 01 十一月 2022 14:31:21 +0800
Subject: [PATCH] 普查列表页面

---
 src/views/systemSetting/baseSetting/user/components/main/index.vue |   22 ++++++++++++----------
 1 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/src/views/systemSetting/baseSetting/user/components/main/index.vue b/src/views/systemSetting/baseSetting/user/components/main/index.vue
index 803720a..4ccec1b 100644
--- a/src/views/systemSetting/baseSetting/user/components/main/index.vue
+++ b/src/views/systemSetting/baseSetting/user/components/main/index.vue
@@ -55,9 +55,14 @@
                     </template>
                 </el-table-column>
             </el-table>
-            <!-- 鏌ョ湅淇敼椤甸潰 -->
+            <!-- 鏌ョ湅椤甸潰 -->
+            <el-dialog :visible.sync="dialogView" width="45%" v-if="dialogView"
+                title="鏌ョ湅鐢ㄦ埛淇℃伅">
+                <MyView :userInfo=userInfo></MyView>
+            </el-dialog>
+            <!-- 淇敼椤甸潰 -->
             <el-dialog :visible.sync="dialogUpdate" width="45%" v-if="dialogUpdate"
-                :title="updateFlag ? flag.role ? '淇敼鐢ㄦ埛瑙掕壊淇℃伅' : flag.depart ? '淇敼鐢ㄦ埛閮ㄩ棬淇℃伅': '淇敼鐢ㄦ埛瀵嗙爜' :'鏌ョ湅鐢ㄦ埛淇℃伅'"
+                :title="updateFlag ? flag.role ? '淇敼鐢ㄦ埛瑙掕壊淇℃伅' : flag.depart ? '淇敼鐢ㄦ埛閮ㄩ棬淇℃伅': '淇敼鐢ㄦ埛瀵嗙爜' :''"
                 :before-close="handleClose">
                 <updateUser :updateFlag="updateFlag" :userInfo=userInfo :flag=flag @closeDialog="closeDialog"
                     :getUserList="getUserList" v-if="!flag.password" />
@@ -94,18 +99,20 @@
 import helper from '@/utils/mydate'
 import updateUser from '../updateUser';
 import MyPwd from '../password'
+import MyView from '../myView'
 export default {
     components: {
-        updateUser, MyPwd
+        updateUser, MyPwd,MyView
     },
     data() {
         return {
             tableData: [],
             search: "",
             dialogUpdate: false,
+            dialogView:false,
             updateFlag: false,
             userInfo: '',
-            totalNum: 200,
+            totalNum: 0,
             pageSize: 10,
             currentPage: 1,
             renderFlag: false,
@@ -327,13 +334,8 @@
         },
         // 鏌ョ湅鐢ㄦ埛淇℃伅(涓嶅彲淇敼)
         handleFind(rowData) {
-            this.dialogUpdate = true;
-            this.updateFlag = false;
+            this.dialogView = true;
             this.userInfo = rowData;
-            const { flag } = this;
-            for (let key in flag) {
-                flag[key] = false;
-            }
         },
         // 璁剧疆琛ㄦ牸鏂戦┈绾�
         tableRowClassName({ row, rowIndex }) {

--
Gitblit v1.8.0