From 039d01c3ee6217e18ef3bcaec263fd2ad59e6f68 Mon Sep 17 00:00:00 2001
From: Fixiaobai <fixiaobai@163.com>
Date: 星期三, 20 九月 2023 16:19:51 +0800
Subject: [PATCH] 	modified:   src/components/view/equipmentmaintain.vue 	modified:   src/components/view/standard-table/material.vue 	modified:   src/components/view/standard-table/product.vue 	modified:   src/components/view/standard-table/target.vue 	modified:   src/components/view/standard-table/technology.vue

---
 src/components/view/standard-table/target.vue |   20 +++++++++++---------
 1 files changed, 11 insertions(+), 9 deletions(-)

diff --git a/src/components/view/standard-table/target.vue b/src/components/view/standard-table/target.vue
index abd919f..bc836e1 100644
--- a/src/components/view/standard-table/target.vue
+++ b/src/components/view/standard-table/target.vue
@@ -1,25 +1,25 @@
 <template>
     <div class="standard">
-      <div>
-        <el-table ref="multipleTable" :data="tableData" row-key="rowId" border max-height="675"
+      <div style="width: 100%;height: 68vh;overflow-x: auto;">
+        <el-table ref="multipleTable" :data="tableData" row-key="rowId" border height="calc(90vh - 200px)"
         @select-all="selectAll" @select="selectTr"
         @selection-change="handleSelectionChange" default-expand-all
         :tree-props="{children: 'children', hasChildren: 'hasChildren'}">
-        <el-table-column type="selection" width="55"></el-table-column>
-        <el-table-column type="index" width="60" label="搴忓彿"></el-table-column>
-        <el-table-column prop="tfather" label="宸ュ簭" :resizable="false">
+        <el-table-column  type="selection" width="55"></el-table-column>
+        <el-table-column  type="index" width="60" label="搴忓彿"></el-table-column>
+        <el-table-column prop="tfather" label="宸ュ簭" width="200" :resizable="false">
             <template slot-scope="scope">
                 <el-tag class="tag" type="primary" v-if="scope.row.tfather != null">01</el-tag>
                 <span>{{scope.row.tfather}}</span>
             </template>
         </el-table-column>
-        <el-table-column prop="tname" label="宸ヨ壓鍚嶇О" :resizable="false">
+        <el-table-column prop="tname" label="宸ヨ壓鍚嶇О" width="200" :resizable="false">
             <template slot-scope="scope">
                 <el-tag type="success" v-if="scope.row.tname != null" class="tag">02</el-tag>
                 <span>{{scope.row.tname}}</span>
             </template>  
         </el-table-column>
-        <el-table-column prop="pfather" label="椤圭洰" :resizable="false">
+        <el-table-column prop="pfather" label="椤圭洰" width="200" :resizable="false">
             <template slot-scope="scope">
                 <el-tag type="info" color="#faf2ff" v-if="scope.row.pfather != null" class="tag">
                   <span style="color: #e1affb">03</span>
@@ -27,7 +27,7 @@
                 <span>{{scope.row.pfather}}</span>
             </template>  
         </el-table-column>
-        <el-table-column prop="pname" label="鎸囨爣鍚嶇О" :resizable="false">
+        <el-table-column prop="pname" label="鎸囨爣鍚嶇О" width="200" :resizable="false">
             <template slot-scope="scope">
                 <span>{{scope.row.pname}}</span>
             </template>
@@ -79,6 +79,7 @@
       },
       //閫夋嫨鏌愯
 		  selectTr(selection, row) {
+        console.log("sss---",selection,row);
         this.$set(row, "isChecked", !row.isChecked);
         this.$nextTick(() => {
           this.isAllSelect = row.isChecked;
@@ -87,6 +88,7 @@
       },
       //閫掑綊瀛愮骇
       toggleSelect(data, flag, type) {
+        console.log("閫掑綊瀛愮骇---",data,flag,type);
         if (type === "all") {
           if (data.length > 0) {
             data.forEach((item) => {
@@ -108,6 +110,7 @@
       },
       //鏀瑰彉閫変腑
       toggleSelection(row, flag) {
+        console.log("鏀瑰彉閫変腑---",row,flag);
         this.$set(row, "isChecked", flag);
         this.$nextTick(() => {
           if (flag) {
@@ -142,7 +145,6 @@
           }).then(res=>{
             this.$message.success(res.message);
           }).catch(error=>{
-            this.$message.error(error.message);
           })
         },
       }

--
Gitblit v1.9.3