问题反馈修改

This commit is contained in:
仲么了
2023-08-29 16:14:09 +08:00
parent 7c79eddc05
commit 38b827af46
23 changed files with 330 additions and 144 deletions

View File

@@ -103,7 +103,7 @@ export default {
},
onLoad(options) {
this.formData.userId = uni.getStorageSync('userInfo').userIndex
this.formData.engineeringId = uni.getStorageSync('engineering').engineeringId
this.formData.engineeringId = uni.getStorageSync('engineering').id
}
}
</script>

View File

@@ -19,7 +19,8 @@ export default {
data() {
return {
loading: false,
engineeringList: []
engineeringList: [],
options: {}
}
},
computed: {
@@ -42,7 +43,8 @@ export default {
return result
},
},
onLoad() {
onLoad(options) {
this.options = options
this.engineeringList = uni.getStorageSync('engineeringList')
},
onShow() {
@@ -51,7 +53,7 @@ export default {
})
},
onNavigationBarButtonTap(e) {
uni.redirectTo({
uni.navigateTo({
url: '/pages/engineering/new',
})
},
@@ -59,7 +61,12 @@ export default {
confirm(e) {
console.log(e)
let engineering = this.engineeringList.find((item) => item.name === e.item.name)
uni.setStorageSync('engineering', engineering)
if (this.options.from === 'projectNew') {
// 创建项目的时候选择工程 用完即删
uni.setStorageSync('projectSelectEngineering', engineering)
} else {
uni.setStorageSync('engineering', engineering)
}
uni.navigateBack()
},
}