| | |
| | | }, |
| | | onLoad(option) { |
| | | if (option.type) { |
| | | uni.setStorageSync("troubleType", option.type) |
| | | this.info.type = option.type |
| | | if (option.type == 1) { |
| | | uni.setNavigationBarTitle({ |
| | | title: '安全隐患' // 设置为你想要显示的标题 |
| | | }); |
| | | } |
| | | if (uni.getStorageSync('troubleType')) { |
| | | this.info.type = uni.getStorageSync('troubleType') |
| | | } |
| | | if (this.info.type == 1) { |
| | | uni.setNavigationBarTitle({ |
| | | title: '安全隐患' // 设置为你想要显示的标题 |
| | | }); |
| | | |
| | | } else { |
| | | uni.setNavigationBarTitle({ |
| | | title: '纠纷矛盾排查' // 设置为你想要显示的标题 |
| | | }); |
| | | } |
| | | |
| | | } else { |
| | | uni.setNavigationBarTitle({ |
| | | title: '纠纷矛盾排查' // 设置为你想要显示的标题 |
| | | }); |
| | | } |
| | | this.getAllBizDict() |
| | | }, |
| | | // onShow() { |
| | | // this.curSelectSite = uni.getStorageSync('siteInfo') |
| | | // this.info.addressCode = this.curSelectSite.houseCode |
| | | // }, |
| | | onShow() { |
| | | if (uni.getStorageSync('troubleType')) { |
| | | this.info.type = uni.getStorageSync('troubleType') |
| | | } |
| | | // this.info.addressCode = this.curSelectSite.houseCode |
| | | }, |
| | | methods: { |
| | | |
| | | async getAllBizDict() { |
| | | |
| | | |
| | | await this.getBizDict('hiddenDangerType', this.troubleTypeList); |
| | | }, |
| | | |