From 1635126d31ae7c82210d57c5b6445e1733477623 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期六, 06 八月 2022 10:50:33 +0800
Subject: [PATCH] 1.添加图标

---
 src/views/jcsz/yhqd.vue |   19 +++++++++----------
 1 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/src/views/jcsz/yhqd.vue b/src/views/jcsz/yhqd.vue
index db4f7be..bac0ffe 100644
--- a/src/views/jcsz/yhqd.vue
+++ b/src/views/jcsz/yhqd.vue
@@ -166,8 +166,8 @@
             sortable="custom"
           >
             <template slot-scope="{row}">
-              <div v-if="row.enable==='Y'">鍦ㄨ亴</div>
-              <div v-if="row.enable==='N'">绂昏亴</div>
+              <div v-if="row.enable==='Y'"><svg-icon icon-class="circleYes" style="margin-right: 2px" />鍦ㄨ亴</div>
+              <div v-if="row.enable==='N'"><svg-icon icon-class="circleNo" style="margin-right: 2px" />绂昏亴</div>
             </template>
           </el-table-column>
           <el-table-column
@@ -195,6 +195,7 @@
           <el-table-column
             label="鎿嶄綔"
             fixed="right"
+            width="120"
           >
             <template slot-scope="{row}">
               <div class="operationClass">
@@ -318,8 +319,8 @@
       title="鍏宠仈瑙掕壊"
       :visible.sync="dialogVisibleRoles"
       width="800px"
-      top="15vh"
-      :fullscreen="isFullscreen"
+      :top="isIpad?'3vh':'15vh'"
+      :fullscreen="isIpad"
       :close-on-click-modal="false"
       class="dialogVisibleRoles"
       @closed="handleCloseRoles"
@@ -550,7 +551,7 @@
     }
 
     return {
-      isFullscreen: false,
+      isIpad: false,
       mainHeight: 0,
       tableHeight: 0,
       form: {
@@ -845,15 +846,13 @@
     },
     // 鑾峰彇椤甸潰楂樺害
     getHeight() {
-      console.log(window.innerHeight)
-      console.log(window.innerWidth)
       this.$nextTick(() => {
         this.mainHeight = window.innerHeight - 250
-        this.tableHeight = this.mainHeight - 100
-        // this.isFullscreen = window.innerHeight < 800
-        if (window.innerHeight < 800) {
+        this.tableHeight = this.mainHeight - 50
+        if (window.innerHeight < 769) {
           this.tableHeight = this.tableHeight - 50
         }
+        this.isIpad = window.innerHeight < 769 && window.innerWidth < 1367
       })
     },
     // 鍏宠仈瑙掕壊鐐瑰嚮浜嬩欢

--
Gitblit v1.9.3