|
@@ -434,10 +434,10 @@
|
|
|
} catch (e) {
|
|
} catch (e) {
|
|
|
nfcCode = nfcStr.content
|
|
nfcCode = nfcStr.content
|
|
|
}
|
|
}
|
|
|
- this.checkNfcFilter(nfcCode)
|
|
|
|
|
-
|
|
|
|
|
- //保存一次数据
|
|
|
|
|
- this.resumptionDataSave();
|
|
|
|
|
|
|
+ this.checkNfcFilter(nfcCode);
|
|
|
|
|
+ //保存一次数据
|
|
|
|
|
+ this.resumptionDataSave(true);
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
checkNfcFilter(nfcCode) {
|
|
checkNfcFilter(nfcCode) {
|
|
|
let areaId = null
|
|
let areaId = null
|
|
@@ -599,7 +599,7 @@
|
|
|
this.openCollapseItems()
|
|
this.openCollapseItems()
|
|
|
|
|
|
|
|
//保存一次数据
|
|
//保存一次数据
|
|
|
- this.resumptionDataSave();
|
|
|
|
|
|
|
+ this.resumptionDataSave(true);
|
|
|
},
|
|
},
|
|
|
changeSwitch() {
|
|
changeSwitch() {
|
|
|
let num = 0
|
|
let num = 0
|
|
@@ -827,7 +827,7 @@
|
|
|
this.$refs.dvrDetail.show(point)
|
|
this.$refs.dvrDetail.show(point)
|
|
|
},
|
|
},
|
|
|
//保存数据
|
|
//保存数据
|
|
|
- resumptionDataSave() {
|
|
|
|
|
|
|
+ resumptionDataSave(autoSave=false) {
|
|
|
//组装数据
|
|
//组装数据
|
|
|
let data = {}
|
|
let data = {}
|
|
|
data.taskId = this.resumptionData.taskId
|
|
data.taskId = this.resumptionData.taskId
|
|
@@ -835,7 +835,10 @@
|
|
|
data.nfcs = this.nfcs
|
|
data.nfcs = this.nfcs
|
|
|
data.subType = 1
|
|
data.subType = 1
|
|
|
saveTask(data).then(res => {
|
|
saveTask(data).then(res => {
|
|
|
- this.$toast('保存成功')
|
|
|
|
|
|
|
+ // 自动保存时 不提示 保存成功,否则前一个提示会立马消失, 只有点击保存按钮时提示
|
|
|
|
|
+ if(autoSave!==true){
|
|
|
|
|
+ this.$toast('保存成功')
|
|
|
|
|
+ }
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
submitResumptionData() {
|
|
submitResumptionData() {
|