Browse Source

修改独立标签和标签组弹窗提示语修改

liucf 6 years ago
parent
commit
351e5c3262
3 changed files with 19 additions and 9 deletions
  1. 9 4
      src/components/icss/AddIndeptLabel.vue
  2. 9 4
      src/components/icss/NoiseTemplate.vue
  3. 1 1
      vue.config.js

+ 9 - 4
src/components/icss/AddIndeptLabel.vue

@@ -174,12 +174,17 @@
           })
           })
         });*/
         });*/
         const h = this.$createElement;
         const h = this.$createElement;
+        const {isEdit} = this.$route.params;
+      const addMsg = h('div',{style:'padding-bottom:10px'},[
+            h('p',{style:'font-size:15px;margin-bottom:10px'},'是否保存该标签?')
+          ])
+      const modMsg = h('div',{style:'padding-bottom:10px'},[
+            h('p',{style:'font-size:15px;margin-bottom:10px'},'是否保存该标签?'),
+            h('span',{style:'color:red;font-size:12px'},'若标签系统名称已经改变,请去别名维护中修改相关信息'),
+          ])
         this.$msgbox({
         this.$msgbox({
           title:'提示',
           title:'提示',
-          message:h('div',{style:'padding-bottom:10px'},[
-              h('p',{style:'font-size:15px;margin-bottom:10px'},'是否保存该标签?'),
-              h('span',{style:'color:red;font-size:12px'},'标签系统名称已经改变,请去别名维护中修改相关信息'),
-            ]),
+          message:isEdit?modMsg:addMsg,
           showCancelButton: true,
           showCancelButton: true,
           distinguishCancelAndClose:true,
           distinguishCancelAndClose:true,
           confirmButtonText: '确认并前往别名维护',
           confirmButtonText: '确认并前往别名维护',

+ 9 - 4
src/components/icss/NoiseTemplate.vue

@@ -231,12 +231,17 @@ export default {
         })
         })
       });*/
       });*/
       const h = this.$createElement;
       const h = this.$createElement;
+      const {isEdit} = this.$route.params;
+      const addMsg = h('div',{style:'padding-bottom:10px'},[
+            h('p',{style:'font-size:15px;margin-bottom:10px'},'是否保存该标签组?')
+          ])
+      const modMsg = h('div',{style:'padding-bottom:10px'},[
+            h('p',{style:'font-size:15px;margin-bottom:10px'},'是否保存该标签组?'),
+            h('span',{style:'color:red;font-size:12px'},'若标签系统名称已经改变,请去别名维护中修改相关信息'),
+          ])
       this.$msgbox({
       this.$msgbox({
         title:'提示',
         title:'提示',
-        message:h('div',{style:'padding-bottom:10px'},[
-            h('p',{style:'font-size:15px;margin-bottom:10px'},'是否保存该标签组?'),
-            h('span',{style:'color:red;font-size:12px'},'标签系统名称已经改变,请去别名维护中修改相关信息'),
-          ]),
+        message:isEdit?modMsg:addMsg,
         showCancelButton: true,
         showCancelButton: true,
         distinguishCancelAndClose:true,
         distinguishCancelAndClose:true,
         confirmButtonText: '确认并前往别名维护',
         confirmButtonText: '确认并前往别名维护',

+ 1 - 1
vue.config.js

@@ -1,6 +1,6 @@
 const path = require('path');
 const path = require('path');
 // const proxy_path = 'http://192.168.2.236:80';
 // const proxy_path = 'http://192.168.2.236:80';
-const proxy_path = 'http://192.168.2.236:88';
+const proxy_path = 'http://192.168.2.241:88';
 // const proxy_path = 'http://192.168.2.236:88';
 // const proxy_path = 'http://192.168.2.236:88';
 // const proxy_path = 'http://192.168.3.101:5050';
 // const proxy_path = 'http://192.168.3.101:5050';
 // const proxy_path = 'http://192.168.3.117:5050';//周铁刚
 // const proxy_path = 'http://192.168.3.117:5050';//周铁刚