From 64b6bfde07c40b9df6181044d485d437b9bb787c Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期二, 07 五月 2024 09:21:58 +0800
Subject: [PATCH] 1.定时任务demo提交

---
 src/views/basicSettings/personList.vue |   73 ++++++++++++++++++++++++++++++++----
 1 files changed, 64 insertions(+), 9 deletions(-)

diff --git a/src/views/basicSettings/personList.vue b/src/views/basicSettings/personList.vue
index 4f76e53..4635050 100644
--- a/src/views/basicSettings/personList.vue
+++ b/src/views/basicSettings/personList.vue
@@ -22,8 +22,9 @@
 
           <el-tree
             ref="treeLeftRef"
+            key="treeLeftKey"
             style="padding: 10px;overflow: auto;"
-            :style="{height:(tableHeight+140)+'px'}"
+            :style="{height:(tableHeight+180)+'px'}"
             :data="treeLeft"
             node-key="torg_code"
             highlight-current
@@ -55,6 +56,24 @@
                 <el-form-item label="鐢ㄦ埛鍚嶇О" style=" display: flex;">
                   <el-input v-model="form.username" placeholder="璇疯緭鍏�" style="width: 200px" />
                 </el-form-item>
+                <!--                <el-form-item label="鐢ㄦ埛缂栫爜" style=" display: flex;">-->
+                <!--                  <el-input v-model="form.usercode" placeholder="璇疯緭鍏�" style="width: 200px" />-->
+                <!--                </el-form-item>-->
+                <!--                <el-form-item v-show="isExpandForm" label="鐢ㄦ埛鍚嶇О" style=" display: flex;">-->
+                <!--                  <el-input v-model="form.username" placeholder="璇疯緭鍏�" style="width: 200px" />-->
+                <!--                </el-form-item>-->
+                <!--                <el-form-item v-show="isExpandForm" label="鐢ㄦ埛缂栫爜" style=" display: flex;">-->
+                <!--                  <el-input v-model="form.usercode" placeholder="璇疯緭鍏�" style="width: 200px" />-->
+                <!--                </el-form-item>-->
+                <!--                <el-form-item v-show="isExpandForm" label="鐢ㄦ埛鍚嶇О" style=" display: flex;">-->
+                <!--                  <el-input v-model="form.username" placeholder="璇疯緭鍏�" style="width: 200px" />-->
+                <!--                </el-form-item>-->
+                <!--                <el-form-item v-show="isExpandForm" label="鐢ㄦ埛缂栫爜" style=" display: flex;">-->
+                <!--                  <el-input v-model="form.usercode" placeholder="璇疯緭鍏�" style="width: 200px" />-->
+                <!--                </el-form-item>-->
+                <!--                <el-form-item v-show="isExpandForm" label="鐢ㄦ埛鍚嶇О" style=" display: flex;">-->
+                <!--                  <el-input v-model="form.username" placeholder="璇疯緭鍏�" style="width: 200px" />-->
+                <!--                </el-form-item>-->
               </div>
               <div
                 class="bodySearchReset"
@@ -64,7 +83,24 @@
                 <el-button v-waves type="info" icon="el-icon-refresh" @click="reset">閲嶇疆</el-button>
               </div>
             </el-form>
-
+            <div
+              class="bodyTopFormExpand"
+              style="height: 5px;"
+            >
+              <!--              <svg-icon-->
+              <!--                v-show="mouseHoverType==='mouseout'"-->
+              <!--                style="cursor: pointer"-->
+              <!--                :icon-class="!isExpandForm?'doubleDown3':'doubleUp3'"-->
+              <!--                @mouseenter="mouseHoverType=$event.type"-->
+              <!--              />-->
+              <!--              <svg-icon-->
+              <!--                v-show="mouseHoverType==='mouseenter'"-->
+              <!--                style="cursor: pointer"-->
+              <!--                :icon-class="!isExpandForm?'doubleDown':'doubleUp'"-->
+              <!--                @click="isExpandForm=!isExpandForm"-->
+              <!--                @mouseout="mouseHoverType=$event.type"-->
+              <!--              />-->
+            </div>
           </div>
 
           <div class="elTableDiv">
@@ -72,10 +108,10 @@
               ref="tableDataRef"
               class="tableFixed"
               :data="tableData"
-              :height="tableHeight+'px'"
+              :height="isExpandForm?tableHeight:(tableHeight+80)+'px'"
               border
               row-class-name="custom-row"
-              :style="{width: 100+'%',height:tableHeight+'px',}"
+              :style="{width: 100+'%',height:isExpandForm?tableHeight:(tableHeight+80)+'px',}"
               highlight-current-row
               :header-cell-style="this.$headerCellStyle"
               :cell-style="this.$cellStyle"
@@ -121,6 +157,7 @@
                 prop="email"
                 label="閭"
                 sortable="custom"
+                show-overflow-tooltip
               >
                 <template slot-scope="{row}">
                   {{ row.email ? row.email : '/' }}
@@ -130,6 +167,7 @@
                 prop="mobile"
                 label="鍙风爜"
                 sortable="custom"
+                show-overflow-tooltip
               >
                 <template slot-scope="{row}">
                   {{ row.mobile ? row.mobile : '/' }}
@@ -139,6 +177,7 @@
                 prop="postname"
                 label="宀椾綅"
                 sortable="custom"
+                show-overflow-tooltip
               >
                 <template slot-scope="{row}">
                   {{ row.postname ? row.postname : '/' }}
@@ -148,13 +187,24 @@
                 prop="rolename"
                 label="瑙掕壊"
                 sortable="custom"
+                show-overflow-tooltip
               >
                 <template slot-scope="{row}">
                   {{ row.rolename ? row.rolename : '/' }}
                 </template>
               </el-table-column>
               <el-table-column
-                prop="username"
+                prop="group_name"
+                label="鐝粍"
+                sortable="custom"
+                show-overflow-tooltip
+              >
+                <template slot-scope="{row}">
+                  {{ row.group_name ? row.group_name : '/' }}
+                </template>
+              </el-table-column>
+              <el-table-column
+                prop="createusername"
                 label="鍒涘缓浜哄憳"
                 sortable="custom"
               />
@@ -381,6 +431,8 @@
       }
     }
     return {
+      mouseHoverType: 'mouseout',
+      isExpandForm: false,
       mainHeight: 0,
       tableHeight: 0,
       form: {
@@ -475,8 +527,10 @@
         customID: 'torg_code',
         childrenProperty: 'children'
       })
-
-      this.treeLeft = this.cascaderOptions
+      this.$nextTick(() => {
+        this.treeLeft = this.cascaderOptions
+        this.$forceUpdate()
+      })
     },
     // 宀椾綅 瑙掕壊 鐝粍
     async getAllSelectData() {
@@ -602,7 +656,6 @@
     handleClose() {
       this.dialogForm.usercode = ''
       this.dialogForm.username = ''
-      this.dialogForm.storg_code = ''
       this.dialogForm.status = 'Y'
 
       this.dialogForm.post_code = []
@@ -611,6 +664,8 @@
       this.dialogForm.password = '123456'
       this.dialogForm.mobile = ''
       this.dialogForm.email = ''
+
+      // this.dialogForm.storg_code = ''
 
       this.$refs.cascader.checkedValue = ''
       this.$refs.dialogForm.clearValidate()
@@ -646,7 +701,7 @@
     getHeight() {
       this.$nextTick(() => {
         this.mainHeight = window.innerHeight - 85
-        this.tableHeight = this.mainHeight - 200
+        this.tableHeight = this.mainHeight - 280
         this.$refs.tableDataRef.doLayout()
       })
     }

--
Gitblit v1.9.3