Просмотр исходного кода

添加独立标签提示语合并修改

zhouna 6 лет назад
Родитель
Сommit
c1894770fa
1 измененных файлов с 9 добавлено и 4 удалено
  1. 9 4
      src/components/icss/AddIndeptLabel.vue

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

@@ -174,12 +174,17 @@
           })
         });*/
         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({
           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,
           distinguishCancelAndClose:true,
           confirmButtonText: '确认并前往别名维护',