diff --git a/src/views/activityList/index.vue b/src/views/activityList/index.vue
index 1e95997..69c828c 100644
--- a/src/views/activityList/index.vue
+++ b/src/views/activityList/index.vue
@@ -11,6 +11,18 @@
>
*请输入活动名称
+
+
是否告警:
+
+
+
+
+
装置列表:
+
+
+ 不通知
+ 通知
+
+
@@ -161,9 +179,21 @@ export default {
data() {
return {
activityloading: true,
+ warnOptions: [
+ {
+ value: 1,
+ label: "不通知",
+ },
+ {
+ value: 2,
+ label: "通知",
+ },
+ ],
+
activityData: [], //活动列表
activityForm: {
title: "",
+ warnVal: 1,
cmdidArr: "",
},
cmdObjects: [], // 用于存储转换后的对象数组
@@ -271,6 +301,7 @@ export default {
this.termsLoading = true;
this.termsData = row.terms;
this.activityNameTitle = row.title;
+
this.activityName = row.title + "(" + row.terms.length + ")";
this.termsData = row.terms;
},
@@ -313,6 +344,7 @@ export default {
console.log(row);
this.ActibityId = row.id;
this.activityForm.title = row.title;
+ this.activityForm.warnVal = row.status;
const columnData = row.terms.map((item) => item.cmdid);
this.activityForm.cmdidArr = columnData.join("\n");
},
@@ -333,6 +365,7 @@ export default {
actParams = {
id: this.ActibityId,
title: this.activityForm.title,
+ status: this.activityForm.warnVal,
terms: this.cmdObjects,
};
updActiveApi(actParams)
@@ -341,6 +374,7 @@ export default {
this.getactivityList();
this.activityForm.title = "";
this.activityForm.cmdidArr = "";
+ this.activityForm.warnVal = 1;
this.ActibityId = "";
})
.catch((err) => {});
@@ -350,6 +384,7 @@ export default {
actParams = {
title: this.activityForm.title,
terms: this.cmdObjects,
+ status: this.activityForm.warnVal,
};
addActiveApi(actParams)
.then((res) => {
@@ -357,6 +392,7 @@ export default {
this.getactivityList();
this.activityForm.title = "";
this.activityForm.cmdidArr = "";
+ this.activityForm.warnVal = 1;
this.ActibityId = "";
})
.catch((err) => {});
@@ -381,6 +417,9 @@ export default {
.noteClass {
width: 100%;
}
+ .el-select {
+ width: 100%;
+ }
.lableBox {
font-size: 14px;
font-weight: normal;