doum
2025-08-19 05db93c48c69b1fc5db8bb2fce4c37014e92e450
h5/pages/report/report.vue
@@ -10,11 +10,11 @@
            <u-icon name="arrow-down-fill" color="#666666" size="13"></u-icon>
         </view>
         <view class="report_search_row" @click="$refs.pengTree._show()" v-if="['3'].includes(typeId)">
            <text>{{locationName ? locationName : '发生地点'}}</text>
            <text>{{localtionId ? locationName : '发生地点'}}</text>
            <u-icon name="arrow-down-fill" color="#666666" size="13"></u-icon>
         </view>
         <view class="report_search_row" @click="$refs.pengTree1._show()" v-if="['1'].includes(typeId)">
            <text>{{locationName ? locationName : '位置'}}</text>
            <text>{{localtionId ? locationName : '位置'}}</text>
            <u-icon name="arrow-down-fill" color="#666666" size="13"></u-icon>
         </view>
      </view>
@@ -120,9 +120,20 @@
         };
      },
      onLoad() {
         this.getList()
         this.getLocation()
         this.getLocation1()
      },
      onShow() {
         this.show = false
         this.show1 = false
         this.$nextTick(() => {
            this.$refs.pengTree._hide()
            this.$refs.pengTree1._hide()
         })
         this.search.page = 1
         this.search.next = true
         this.list = []
         this.getList()
      },
      onReachBottom() {
         this.getList()
@@ -139,7 +150,7 @@
            this.$refs.pengTree._hide()
         },
         // 位置
         selectAddress(e) {
         selectAddress1(e) {
            this.localtionId = e[0].id
            this.locationName = e[0].name
            this.search.page = 1
@@ -152,6 +163,7 @@
         async getLocation() {
            let res = await this.$u.api.categoryTree({ categoryType: 2 })
            if (res.code === 200) {
               res.data.unshift({ name: '全部', id: '', childList: [] })
               this.address = res.data
            }
         },
@@ -159,6 +171,7 @@
         async getLocation1() {
            let res = await this.$u.api.categoryTree({ categoryType: 3 })
            if (res.code === 200) {
               res.data.unshift({ name: '全部', id: '', childList: [] })
               this.address1 = res.data
            }
         },