Переглянути джерело

refactor: 弹窗添加custom-class

yunxing 4 роки тому
батько
коміт
488f1f4f34

+ 25 - 16
src/views/equipment/table/eqListTable.vue

@@ -91,7 +91,14 @@
         >
             <eq-detail ref='qdDialog' :row='row' :major='major' :smsxt='smsxt' :diff='diff' :sign='sign'></eq-detail>
         </el-dialog>-->
-        <el-dialog width='100%' :title='`${type_name}设备清单`' :visible.sync='innerVisible' append-to-body :fullscreen='true'>
+        <el-dialog
+            width='100%'
+            custom-class='eq-list-dialog'
+            :title='`${type_name}设备清单`'
+            :visible.sync='innerVisible'
+            append-to-body
+            :fullscreen='true'
+        >
             <eq-detail ref='qdDialog' :row='row' :major='major' :smsxt='smsxt' :diff='diff' :sign='sign'></eq-detail>
         </el-dialog>
     </div>
@@ -260,20 +267,22 @@ export default {
         cursor: pointer;
     }
 }
-// 弹窗头部样式修改
-.el-dialog__header {
-    padding: 16px 24px;
-    background: linear-gradient(180deg, rgba(54, 156, 247, 1) 0%, rgba(2, 91, 170, 1) 100%);
-}
-.el-dialog__headerbtn .el-dialog__close {
-    color: #fff;
-}
-.el-dialog__title {
-    font-size: 16px;
-    padding-right: 6px;
-    padding-left: 24px;
-    font-weight: bold;
-    color: #fff;
-    font-weight: normal;
+.eq-list-dialog {
+    // 弹窗头部样式修改
+    .el-dialog__header {
+        padding: 16px 24px;
+        background: linear-gradient(180deg, rgba(54, 156, 247, 1) 0%, rgba(2, 91, 170, 1) 100%);
+    }
+    .el-dialog__headerbtn .el-dialog__close {
+        color: #fff;
+    }
+    .el-dialog__title {
+        font-size: 16px;
+        padding-right: 6px;
+        padding-left: 24px;
+        font-weight: bold;
+        color: #fff;
+        font-weight: normal;
+    }
 }
 </style>

+ 27 - 16
src/views/equipment/table/standTable.vue

@@ -84,7 +84,15 @@
             <eq-detail ref='qdDialog' :row='row' :major='major' :smsxt='smsxt' :diff='diff' :sign='sign'></eq-detail>
         </el-dialog>-->
         <!-- 标准表格详情钻取表,使用全屏弹窗 -->
-        <el-dialog width='100%' :title='`${type_name}设备清单`' :visible.sync='innerVisible' append-to-body :fullscreen='true'>
+        <!-- 弹窗添加class -->
+        <el-dialog
+            custom-class='stand-dialog'
+            width='100%'
+            :title='`${type_name}设备清单`'
+            :visible.sync='innerVisible'
+            append-to-body
+            :fullscreen='true'
+        >
             <eq-detail :key='`eqDetail${key}`' ref='qdDialog' :row='row' :major='major' :smsxt='smsxt' :diff='diff' :sign='sign'></eq-detail>
         </el-dialog>
     </div>
@@ -268,21 +276,24 @@ export default {
         cursor: pointer;
     }
 }
-// 弹窗头部样式修改
-.el-dialog__header {
-    padding: 16px 24px;
-    background: linear-gradient(180deg, rgba(54, 156, 247, 1) 0%, rgba(2, 91, 170, 1) 100%);
-}
-.el-dialog__headerbtn .el-dialog__close {
-    color: #fff;
-}
 
-.el-dialog__title {
-    font-size: 16px;
-    padding-right: 6px;
-    padding-left: 24px;
-    font-weight: bold;
-    color: #fff;
-    font-weight: normal;
+.stand-dialog {
+    // 弹窗头部样式修改
+    .el-dialog__header {
+        padding: 16px 24px;
+        background: linear-gradient(180deg, rgba(54, 156, 247, 1) 0%, rgba(2, 91, 170, 1) 100%);
+    }
+    .el-dialog__headerbtn .el-dialog__close {
+        color: #fff;
+    }
+
+    .el-dialog__title {
+        font-size: 16px;
+        padding-right: 6px;
+        padding-left: 24px;
+        font-weight: bold;
+        color: #fff;
+        font-weight: normal;
+    }
 }
 </style>

+ 4 - 4
vue.config.js

@@ -4,8 +4,8 @@ module.exports = {
         port: 8090,
         proxy: {
             '/data': {
-                // target: "http://60.205.177.43",
-                target: 'http://10.199.143.126',
+                target: "http://60.205.177.43",
+                // target: 'http://10.199.143.126',
                 // target: 'http://192.168.200.11:9003', //yll
                 // target: 'http://localhost:6040/data/',
                 changeOrigin: true,
@@ -34,8 +34,8 @@ module.exports = {
             // 图例库服务
             "/serve": {
                 // target: 'http://192.168.200.87:8088',
-               target: 'http://10.199.143.129:8080',
-                // target: 'http://60.205.177.43:8080',
+            //    target: 'http://10.199.143.129:8080',
+                target: 'http://60.205.177.43:8080',
                 changeOrigin: true,
                 pathRewrite: {
                     "^/serve": "",