From 44850d8b323c9fa16c0e0f45307991ecc0b344c3 Mon Sep 17 00:00:00 2001
From: duhe <226547893@qq.com>
Date: 星期二, 18 十一月 2025 16:28:18 +0800
Subject: [PATCH] Merge branch 'master' of http://101.37.171.70:10101/r/MES-WEB-VUEUI

---
 src/views/system/user/xtUserList.vue |   64 +++++++++++++++++---------------
 1 files changed, 34 insertions(+), 30 deletions(-)

diff --git a/src/views/system/user/xtUserList.vue b/src/views/system/user/xtUserList.vue
index 2a2cec0..2672ee6 100644
--- a/src/views/system/user/xtUserList.vue
+++ b/src/views/system/user/xtUserList.vue
@@ -96,7 +96,7 @@
       </el-collapse>
     </el-form>
     <el-row :gutter="10" class="mb8" style="margin-top: 10px;">
-      <!-- <el-col :span="1.5">
+      <el-col :span="1.5">
         <el-button type="primary" icon="el-icon-plus" size="mini" @click="handleAddEdit(OperationType = 1)"
           id="btn-Add">鏂板</el-button>
       </el-col>
@@ -106,8 +106,8 @@
       </el-col>
       <el-col :span="1.5">
         <el-button type="primary" icon="el-icon-share" size="mini" :disabled="single"
-          @click="handleEdit(row = rowForm, OperationType = 2)">鏉冮檺</el-button>
-      </el-col> -->
+          @click="openQuery = true">鏉冮檺</el-button>
+      </el-col>
       <el-col :span="1.5">
         <el-button type="primary" icon="el-icon-delete" size="mini" :disabled="single" @click="handleDelete">鍒犻櫎
         </el-button>
@@ -142,9 +142,12 @@
         <RowSettings :colName="btResList" :HModName="HModName" @rowEditClose="rowSetClose" v-if="rowHideShow" />
       </el-dialog>
       <!-- 缂栬緫 -->
-      <el-dialog title="鏂板/b缂栬緫鐢ㄦ埛" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
-        <edit :OperationType=OperationType :linterid=this.rowForm.HEmpID :HSouceBillType=this.rowForm.HSourceBillType
-          :copyType="copyType" @editCloseGy="editGyClose" v-if="editShow" />
+      <el-dialog title="鏂板/缂栬緫鐢ㄦ埛" :visible.sync="openEdit" width="1480px" append-to-body class="xsckdBox" @close="close">
+        <edit :OperationType=OperationType :linterid=this.rowForm.鐢ㄦ埛缂栫爜 :HSouceBillType=this.rowForm.HSourceBillType
+          :copyType="copyType" @editClose="editClose" v-if="editShow" />
+      </el-dialog>
+      <el-dialog title="鐢ㄦ埛鏉冮檺" :visible.sync="openQuery" width="1480px" append-to-body class="xsckdBox">
+        <Query />
       </el-dialog>
     </div>
   </div>
@@ -153,16 +156,19 @@
 <script>
 import axios from 'axios'
 import RowSettings from '@/views/component/rowSettings'
-import Edit from '@/views/basic/production/gySourceEdit.vue'
+import Edit from '@/views/system/user/xtUserListEdit.vue'
+import Query from '@/views/system/user/xtUserRightQuery.vue'
+
 
 export default {
   name: 'XtUserList',
-  components: { RowSettings, Edit },
+  components: { RowSettings, Edit, Query },
   props: {
     openPage: { type: String, },
   },
   data() {
     return {
+      openQuery: false,
       activeSeach: '',
       HModName: 'Xt_UserList',
       editShow: false,
@@ -360,7 +366,7 @@
         if (data1.code == 1) {
           this.total = data1.data.length;
           for (var i = 1; i < this.btList.length; i++) {
-            this.btResList.push({ ColmCols: this.btList[i].field})
+            this.btResList.push({ ColmCols: this.btList[i].field })
           }
           var col = [];
           col = this.btList
@@ -501,7 +507,7 @@
           this.tableData = this.getPage(this.page, this.allTableData)//鏃犲垎椤垫帴鍙e垎椤�
           this.tableShow = true
           this.loading = false
-        }        
+        }
       }).catch(error => {
         this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
       });
@@ -535,7 +541,7 @@
     // 澶氶�夋閫変腑鏁版嵁
     handleSelectionChange(selection) {
       // this.rowForm = {}
-      this.ids = selection.map(item => item.HEmpID)
+      this.ids = selection.map(item => item.鐢ㄦ埛缂栫爜)
       this.single = selection.length != 1
       this.multiple = !selection.length
       if (!this.single) {
@@ -699,28 +705,28 @@
       })
     },
     //鍏抽棴缂栬緫椤甸潰
-    editGyClose(val) {
+    editClose(val) {
       this.editShow = false
       this.openEdit = false
-      this.multiple = true,
-        this.getList()
+      this.multiple = true
+      this.getList()
     },
     /** 鍒犻櫎鎸夐挳鎿嶄綔 */
     handleDelete() {
       this.$modal.confirm('纭瑕佸垹闄ゅ悧锛屽垹闄ゅ悗涓嶈兘鎭㈠').then(() => {
-         var HCzybm = this.rowForm.鐢ㄦ埛缂栫爜.toString();
-          axios.get(this.baseURL + "/Xt_User/DeltetUser", {
-            params: { "HCzybm": HCzybm }
-          }).then(response => {
-            if (response.data.count == 1) {
-              this.getList()
-              this.$modal.msgSuccess("鍒犻櫎鎴愬姛")
-            } else {
-              this.$modal.msgError("閿欒:" + result.code + result.Message);
-            }
-          }).catch(error => {
-            this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
-          });
+        var HCzybm = this.rowForm.鐢ㄦ埛缂栫爜.toString();
+        axios.get(this.baseURL + "/Xt_User/DeltetUser", {
+          params: { "HCzybm": HCzybm }
+        }).then(response => {
+          if (response.data.count == 1) {
+            this.getList()
+            this.$modal.msgSuccess("鍒犻櫎鎴愬姛")
+          } else {
+            this.$modal.msgError("閿欒:" + result.code + result.Message);
+          }
+        }).catch(error => {
+          this.$modal.msgError("鎺ュ彛璇锋眰澶辫触!");
+        });
       }).catch(() => { })
     },
     //瀵煎嚭
@@ -729,16 +735,14 @@
       const wb = this.$XLSX.utils.book_new(); // 鍒涘缓涓�涓柊鐨勫伐浣滅翱
       this.$XLSX.utils.book_append_sheet(wb, ws, "Sheet1"); // 灏嗗伐浣滆〃娣诲姞鍒板伐浣滅翱涓紝骞跺懡鍚嶄负"Sheet1"
       this.$XLSX.writeFile(wb, `xtUsetList_${new Date().getTime()}.xlsx`); // 瀵煎嚭鏂囦欢      
-    },   
+    },
     getPage(page, list) {
       let sindex = (parseInt(page) - 1) * this.pageSize
       let eindex = parseInt(page) * this.pageSize
       let newList = list.slice(sindex, eindex)
-      console.log(newList)
       return newList
     },
     currentPage(val) {
-      console.log(val)
       this.page = val.page
       setTimeout(() => {
         this.tableData = this.getPage(this.page, this.allTableData)

--
Gitblit v1.9.1