反馈修改
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user