报警模块优化
This commit is contained in:
parent
744684c626
commit
00be8d9018
@ -1,6 +1,5 @@
|
||||
<template>
|
||||
<view class="detail-container">
|
||||
<u-notify message="处理成功" ref="showMsg"></u-notify>
|
||||
<view style="background: white;padding: 20px;">
|
||||
<u--form labelPosition="left" :model="recordDetails" :rules="rules" ref="alarmForm" label-width="100px">
|
||||
<u-form-item label="监测设备名称:" prop="" borderBottom>
|
||||
@ -84,7 +83,7 @@
|
||||
status: 1
|
||||
}
|
||||
updateRecord(data).then(() => {
|
||||
this.$refs.showMsg.success('处理成功');
|
||||
uni.$u.toast('处理成功');
|
||||
this.$tab.redirectTo("/pages/work/alarm/listAlarm?flag=1");
|
||||
})
|
||||
},
|
||||
|
@ -76,10 +76,6 @@
|
||||
equipList: []
|
||||
}
|
||||
},
|
||||
created() {
|
||||
this.getAlarmList();
|
||||
this.getEquipList();
|
||||
},
|
||||
onReachBottom() {
|
||||
const allTotal = this.queryParams.pageNum * this.queryParams.pageSize;
|
||||
if (allTotal < this.total) {
|
||||
@ -93,6 +89,7 @@
|
||||
onShow() {
|
||||
this.alarmList = [];
|
||||
this.getAlarmList();
|
||||
this.getEquipList();
|
||||
},
|
||||
onLoad(opts) {
|
||||
this.flag = opts.flag;
|
||||
|
Loading…
Reference in New Issue
Block a user