|
|
@@ -65,9 +65,7 @@ import dayjs from "dayjs";
|
|
|
export default {
|
|
|
components: {},
|
|
|
data() {
|
|
|
- const params = this.$route.params;
|
|
|
return {
|
|
|
- missionId: params ? params.missionId : null,
|
|
|
isShow: false,
|
|
|
title: '',
|
|
|
formData: this.reset(),
|
|
|
@@ -109,12 +107,17 @@ export default {
|
|
|
covered: "@value>=255",
|
|
|
};
|
|
|
},
|
|
|
- async show(formData) {
|
|
|
+ async show(param) {
|
|
|
this.title = '新增阈值';
|
|
|
this.isEdit=false;
|
|
|
- if (formData.thresholdCode){
|
|
|
- this.formData = formData;
|
|
|
- this.formData.timeRange=[formData.beginTime,formData.endTime];
|
|
|
+ if (param.thresholdCode){
|
|
|
+ this.formData = {
|
|
|
+ thresholdCode: param.thresholdCode,
|
|
|
+ thresholdName: param.thresholdName,
|
|
|
+ timeRange: [param.beginTime,param.endTime],
|
|
|
+ nosignal: param.nosignal,
|
|
|
+ covered: param.covered,
|
|
|
+ }
|
|
|
this.title = '编辑阈值';
|
|
|
this.isEdit=true;
|
|
|
}
|