Selaa lähdekoodia

Merge branch 'dev' of http://110.41.163.243:9980/kd-aiot/kd-aiot-frontend into dev

lucw 8 kuukautta sitten
vanhempi
commit
f8934263f4

+ 7 - 1
src/views/appUpdate/index.vue

@@ -21,7 +21,6 @@
             icon="el-icon-plus"
             icon="el-icon-plus"
             class="ele-btn-icon"
             class="ele-btn-icon"
             @click="openEdit('', 'add')"
             @click="openEdit('', 'add')"
-            v-if="$hasPermission('main:version:save')"
           >
           >
             新建
             新建
           </el-button>
           </el-button>
@@ -88,6 +87,13 @@
             showOverflowTooltip: true,
             showOverflowTooltip: true,
             align: 'center'
             align: 'center'
           },
           },
+          {
+            prop: 'createTime',
+            label: '发布时间',
+            showOverflowTooltip: true,
+            align: 'center'
+          },
+
           {
           {
             columnKey: 'action',
             columnKey: 'action',
             label: '操作',
             label: '操作',

+ 1 - 0
src/views/rulesManagement/earlyWarningRules/components/matter-add.vue

@@ -642,6 +642,7 @@
         console.log(form, 'form');
         console.log(form, 'form');
         if (form.actionList.length < 1) {
         if (form.actionList.length < 1) {
           this.$message.error('请添加预警内容!');
           this.$message.error('请添加预警内容!');
+          return;
         }
         }
         let actionListLen = form.actionList.filter((item) => item.matterRuleId);
         let actionListLen = form.actionList.filter((item) => item.matterRuleId);
         if (actionListLen?.length != form.actionList.length) {
         if (actionListLen?.length != form.actionList.length) {

+ 1 - 1
src/views/rulesManagement/earlyWarningRules/index.vue

@@ -65,7 +65,7 @@
           </el-link>
           </el-link>
           <el-popconfirm
           <el-popconfirm
             class="ele-action"
             class="ele-action"
-            title="确定要删除此角色吗?"
+            title="确定要删除此规则吗?"
             @confirm="remove(row)"
             @confirm="remove(row)"
             v-if="$hasPermission('main:warnrule:delete')"
             v-if="$hasPermission('main:warnrule:delete')"
           >
           >

+ 2 - 0
src/views/rulesManagement/matterRules/index.vue

@@ -206,6 +206,8 @@ export default {
       removeRule([row.id]).then((res) => {
       removeRule([row.id]).then((res) => {
         this.$message.success('删除成功!');
         this.$message.success('删除成功!');
         this.reload();
         this.reload();
+      }).catch((err) => {
+        // this.$message.error(err.message);
       });
       });
     },
     },