Browse Source

fix: eta1.8.9新增时添加条件格式提示语

ldong 10 tháng trước cách đây
mục cha
commit
8e56948028
1 tập tin đã thay đổi với 5 bổ sung7 xóa
  1. 5 7
      src/views/datasheet_manage/components/toolBarSection.vue

+ 5 - 7
src/views/datasheet_manage/components/toolBarSection.vue

@@ -46,7 +46,7 @@
 
         <template  v-if="tool.type==='condition'">
           <div class="el-dropdown-box">
-            <div class="el-dropdown-mask" v-if="!$route.query.id"></div>
+            <div class="el-dropdown-mask" @click="handlerClickTj" v-if="!$route.query.id"></div>
             <el-dropdown disabled trigger="click" @command="chooseCellScondition" placement="bottom">
               <div class="el-dropdown-format flex-align">
                 <div class="icon-format" v-html="tool.icon"></div>{{ tool.title }}<i class="el-icon-arrow-down el-icon--right"></i>
@@ -273,12 +273,10 @@ export default {
   methods: {
     // 当新增状态不可添加条件格式
     handlerClickTj(){
-      if(!this.$route.query.id){
-        this.$message({
-          message:this.$t("MixSheet.add_sheet_format"),
-          type: 'warning'
-        });
-      }
+      this.$message({
+        message:this.$t("MixSheet.add_sheet_format"),
+        type: 'warning'
+      });
     },
     dealToolHandles({key}) {