From cba1700bbad0ae7695fc1a7bf0764bf1a64dfb79 Mon Sep 17 00:00:00 2001
From: yangdelong <828900aaa>
Date: 星期四, 08 四月 2021 08:56:54 +0800
Subject: [PATCH] 美化企业文字展示,增加临时测试页面。

---
 src/components/table/components/WasteWater.vue |   40 +++++++++++++++++++++++++---------------
 1 files changed, 25 insertions(+), 15 deletions(-)

diff --git a/src/components/table/components/WasteWater.vue b/src/components/table/components/WasteWater.vue
index 8cbdc0e..af191ce 100644
--- a/src/components/table/components/WasteWater.vue
+++ b/src/components/table/components/WasteWater.vue
@@ -12,21 +12,18 @@
                        width="30px"
                         label=""
                >
-                 <template>
+                 <template slot-scope="{row,$index}">
+<!--                   <i class="el-icon-caret-right" v-if="$index ===1"></i>-->
                  <el-popover
                          placement="bottom"
                          trigger="click"
+                         :disabled="!isShowIcon"
                              popper-class="popovers"
                         >
-                   <ChemicalWastewater></ChemicalWastewater>
-                   <i class="el-icon-caret-right"  slot="reference" v-if="!isShowIcon" @click="doIcon"></i>
-<!--                   <i class="el-icon-caret-bottom" slot="reference" v-else-if="isShowIcon&&$index===1"></i>-->
-<!--                       <i class="el-icon-caret-bottom" v-else-if="isShowIcon&&scope.row.index===1"></i>-->
-<!--                       <i v-if="isShowIcon" class="el-icon-caret-bottom" slot="reference" @click="isbtn"></i>-->
-<!--                   <i v-else class="el-icon-caret-right" slot="reference" @click="isbtn"></i>-->
-                     </el-popover>
-<!--                       <i class="el-icon-caret-right" v-if="!isShowIcon"></i>-->
-<!--                       <i class="el-icon-caret-bottom" v-else-if="isShowIcon&&scope.row.index===1"></i>-->
+                   <ChemicalWastewater v-show="$index ===1"></ChemicalWastewater>
+                   <i class="el-icon-caret-right" :class="{active: isActive === $index}" slot="reference" @click="doIcon($index)"></i>
+<!--                   <i class="el-icon-caret-bottom"   slot="reference" v-else @click="doIcon($index)"></i>-->
+                 </el-popover>
                    </template>
                </el-table-column>
                <el-table-column
@@ -43,7 +40,7 @@
                    <div v-else-if="scope.row.UserName==='澶╂触鐭冲寲'" style="color: #00ffff">{{scope.row.UserName}}</div>
                    <div v-else >{{scope.row.UserName}}</div>
                  </template>
-               </el-table-column>v-
+               </el-table-column>
                <el-table-column
                        prop="WasteWaters"
                        label="澶栨帓搴熸按閲忥紙m鲁锛�"
@@ -85,7 +82,7 @@
                            width="200"
                            trigger="click"
                                    popper-class="popovers"
-                           title="XXX1鏄庣粏琛�"
+                           title="鐩戞祴鐐规槑缁嗚〃"
                        >
                          <refinery></refinery>
                          <u slot="reference" style="color: #00ffff">{{row.normal}}</u>
@@ -149,7 +146,7 @@
   },
   data () {
     return {
-      show: false,
+      isActive: '',
       isShowIcon: false,
       tableData: [{
         UserName: '闆嗗洟鍚嶇О',
@@ -214,9 +211,18 @@
     handle (row, column, event, cell) {
       console.log(row.UserName)
     },
-    doIcon () {
-      console.log(1)
+    doIcon (index) {
+      if (index !== 1) {
+        this.isShowIcon = false
+        this.isActive = ''
+        return
+      }
       this.isShowIcon = !this.isShowIcon
+      if (index === this.isActive) {
+        this.isActive = ''
+        return
+      }
+      this.isActive = index
     }
   }
 }
@@ -230,5 +236,9 @@
 .popovers.el-popover{
 padding:0;
 }
+.active {
+  /*color: red;*/
+  transform:rotate(90deg);
+}
 
 </style>

--
Gitblit v1.8.0