浏览代码

光伏告警弹窗

mw_666 3 年之前
父节点
当前提交
d182f5790b
共有 1 个文件被更改,包括 7 次插入7 次删除
  1. 7 7
      src/views/warn/gfgj.vue

+ 7 - 7
src/views/warn/gfgj.vue

@@ -113,7 +113,7 @@
 						},
 						{
 							name: "报警等级",
-							field: "messageType",
+							field: "rank",
 							is_num: false,
 							is_light: false,
 							sortable: true,
@@ -167,10 +167,10 @@
 					},
 					success(res) {
 						if (res.data) {
-							let messageType = ['低','中低','中','中高','高'];
+							let rank = ['低','中低','中','中高','高'];
 							let data = res.data.records;
 							data.forEach(ele=>{
-								ele.messageType = messageType[parseInt(ele.messageType) - 1];
+								ele.rank = rank[parseInt(ele.rank) - 1];
 								ele.category1 == 'GF' ? ele.category1 = '光伏': ele.category1 = '升压站';
 							})
 							that.tableData.data = data;
@@ -201,22 +201,22 @@
 					subUrl: "photovoltaic/query",
 					data: {
 						category1: "GF",
-						stId: this.wpId,
+						stationid: this.wpId,
 						starttime: this.startDate,
 						endtime: this.endDate,
-						keyWord: this.alarmDesc,
+						keyword: this.alarmDesc,
 						pagenum: this.pageIndex,
 						pagesize: this.pageSize,
 					},
 					success(res) {
 						var analyis = [];
 						let data = res.data[1],
-							messageType = ['低','中低','中','中高','高'],
+							rank = ['低','中低','中','中高','高'],
 							val = Object.values(data);
 						val.pop();
 						val.forEach((ele,index) =>{
 							analyis.push({
-							  name: messageType[index],
+							  name: rank[index],
 							  value: ele
 							})
 						})