From 76ee1461de967601706a1d65229b10f3a86c2714 Mon Sep 17 00:00:00 2001
From: licp <lichunping@guanfang.com.cn>
Date: 星期一, 13 五月 2024 15:03:02 +0800
Subject: [PATCH] Merge branch 'master' of http://114.132.189.42:9002/r/center-lims-before into master

---
 src/components/view/b2-standard.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/components/view/b2-standard.vue b/src/components/view/b2-standard.vue
index d75d7ca..46dba57 100644
--- a/src/components/view/b2-standard.vue
+++ b/src/components/view/b2-standard.vue
@@ -218,7 +218,8 @@
           <el-table-column prop="manHourGroup" label="宸ユ椂鍒嗙粍" width="100" show-overflow-tooltip></el-table-column>
           <el-table-column prop="templateId" label="妯℃澘" width="200">
             <template slot-scope="scope">
-              <el-select v-model="scope.row.templateId" size="small" @change="(value)=>upStandardProductListOfTemplate(value,scope.row.id)">
+              <el-select v-model="scope.row.templateId" size="small" filterable
+               @change="(value)=>upStandardProductListOfTemplate(value,scope.row.id)">
                 <el-option v-for="(a, ai) in templateList" :key="ai" :label="a.name" :value="a.id"></el-option>
               </el-select>
             </template>
@@ -932,7 +933,7 @@
         return '';
       },
       upProductSelect(selection, row) {
-        row.state = row.state == 1 ? 0 : 1
+        row.state = (row.state == 1 ? 0 : 1)
         this.$axios.post(this.$api.standardTree.upStandardProductList, {
           id: row.id,
           state: row.state
@@ -955,11 +956,13 @@
       handleAll(e) {
         if (e.length > 0) {
           this.productList.map(m => {
+            m.state = 0
             this.upProductSelect(null, m)
             return m
           })
         } else {
           this.productList.map(m => {
+            m.state = 1
             this.upProductSelect(null, m)
             return m
           })

--
Gitblit v1.9.3