|
@@ -700,25 +700,25 @@
|
|
|
if (!this.show) {
|
|
|
// 巡查未完成判断
|
|
|
console.log(this.saveImplement, '1111111111111111');
|
|
|
- // checkSubmitRelease(JSON.stringify(this.saveImplement)).then(response => {
|
|
|
- // if (response.data) {
|
|
|
- // uni.showToast({
|
|
|
- // title: '提交成功',
|
|
|
- // icon: 'none',
|
|
|
- // duration: 2000
|
|
|
- // })
|
|
|
- // const table = uni.getStorageSync('tableData')
|
|
|
- // delete table[this.saveImplement.broadId] //保存时删除掉保存的那一项再保存
|
|
|
- // uni.setStorageSync('tableData', table)
|
|
|
- // setTimeout(() => {
|
|
|
- // uni.redirectTo({
|
|
|
- // url: `/pagesA/fire/check_active/index?current=1&type=${this.type}`
|
|
|
- // });
|
|
|
- // }, 1000)
|
|
|
- // } else {
|
|
|
- // this.$modal.msgError('提交失败')
|
|
|
- // }
|
|
|
- // })
|
|
|
+ checkSubmitRelease(JSON.stringify(this.saveImplement)).then(response => {
|
|
|
+ if (response.data) {
|
|
|
+ uni.showToast({
|
|
|
+ title: '提交成功',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000
|
|
|
+ })
|
|
|
+ const table = uni.getStorageSync('tableData')
|
|
|
+ delete table[this.saveImplement.broadId] //保存时删除掉保存的那一项再保存
|
|
|
+ uni.setStorageSync('tableData', table)
|
|
|
+ setTimeout(() => {
|
|
|
+ uni.redirectTo({
|
|
|
+ url: `/pagesA/fire/check_active/index?current=1&type=${this.type}`
|
|
|
+ });
|
|
|
+ }, 1000)
|
|
|
+ } else {
|
|
|
+ this.$modal.msgError('提交失败')
|
|
|
+ }
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
},
|