Przeglądaj źródła

task-5800纯水机水质监测记录支持删除不需要填写的参数(华创启德)

shenqilong 2 miesięcy temu
rodzic
commit
7226e6435e
1 zmienionych plików z 4 dodań i 2 usunięć
  1. 4 2
      src/views/component/facility/facilityData.vue

+ 4 - 2
src/views/component/facility/facilityData.vue

@@ -8,7 +8,7 @@
       <el-col style="margin: 0 0 5px 0">
         <div class="button">
           <el-button
-            v-if="!isCul"
+            v-if="!isCul || (isWaterDele&&!readonly)"
             type="danger"
             size="mini"
             icon="ibps-icon-close"
@@ -169,6 +169,7 @@ export default {
     }
   },
   data() {
+    const { setting } = this.$store.getters || {}
     return {
       dialogParams: {},
       dialogShow: false,
@@ -177,7 +178,8 @@ export default {
       multipleSelection: [],
       baoliuxiaoshu:true,
       config: 1,
-      isUpdatingFromParent: false  // 标记是否来自父组件的更新
+      isUpdatingFromParent: false, // 标记是否来自父组件的更新
+      isWaterDele:setting.facilities?.isWaterDele || false
     }
   },
   computed: {},