反馈修改

This commit is contained in:
仲么了
2023-08-17 15:37:19 +08:00
parent 6bc28e4f44
commit 9423ad6216
13 changed files with 331 additions and 143 deletions

View File

@@ -130,6 +130,7 @@ export default {
engineeringList: [],
tempList: [],
project: null,
options: {}
}
},
computed: {
@@ -153,6 +154,7 @@ export default {
},
},
onLoad(options) {
this.options = options
if (options.project) {
uni.setNavigationBarTitle({
title: '编辑项目',
@@ -298,7 +300,7 @@ export default {
})
}
console.log(arr)
this.formData.topoIds = this.formData.tempFiles.map((item) => (item.topoId))
this.formData.topoIds = this.formData.tempFiles.map((item) => (item.id))
let data = JSON.parse(JSON.stringify(this.formData))
let res = {}
console.warn(data, arr)
@@ -332,8 +334,12 @@ export default {
this.$util.toast('项目修改成功')
this.$util.refreshPrePage(2)
} else {
this.$util.toast('项目创建成功')
this.$util.refreshPrePage()
if (this.options.from === 'newDevice') {
uni.navigateBack()
} else {
this.$util.toast('项目创建成功')
this.$util.refreshPrePage()
}
}
} else {
this.$util.toast(result.message)