linwe
2024-05-16 cb4fd10ca1a71b908c8b52eba962b3aa39008d1f
subPackage/school/trouble.vue
@@ -85,30 +85,32 @@
      },
      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);
         },