页面接口推介

This commit is contained in:
仲么了
2023-07-31 09:00:30 +08:00
parent 863d30ee61
commit 77b4ff6f88
30 changed files with 928 additions and 652 deletions

View File

@@ -77,7 +77,7 @@ export default {
console.log(this.$util.prePage())
},
methods: {
toJSON(){},
toJSON() {},
areaChange(e) {
if (e.detail.value.length) {
this.formData.province = e.detail.value[0].value
@@ -119,17 +119,11 @@ export default {
if (this.formData.id) {
await auditEngineering(this.formData)
this.$util.toast('工程修改成功')
let pages = getCurrentPages()
let prePage = pages[pages.length -3]
console.log(prePage);
prePage.$vm.store.reload()
setTimeout(() => {
uni.navigateBack({ delta: 2 })
}, 1500)
this.$util.refreshPrePage(2)
} else {
await addEngineering(this.formData)
this.$util.prePage().store?.reload()
this.$util.toast('工程创建成功')
this.$util.refreshPrePage()
}
},
},