jiangping
2025-07-01 5c3fc1a7a58e0b10f78519c748dadd99eb3e82d8
h5/pages/staff/snapshot.vue
@@ -13,12 +13,25 @@
               <u-icon name="arrow-right" color="#CCCCCC" size="20"></u-icon>
            </view>
         </view>
         <view class="line">
            <view class="label">
               <text>*</text>
               <text>检查类型</text>
            </view>
            <view class="value" @click="openArea">
               <text class="mr6"
                  :style="{ color: param.areaName ? '#000000' : '#999999' }">{{ param.areaName ? param.areaName : "请选择" }}</text>
               <u-icon name="arrow-right" color="#CCCCCC" size="20"></u-icon>
            </view>
         </view>
         <view class="line">
            <view class="label">
               <text>*</text>
               <text>隐患区域</text>
            </view>
            <view class="value" @click="isShowArea = true">
            <view class="value" @click="openArea">
               <text class="mr6"
                  :style="{ color: param.areaName ? '#000000' : '#999999' }">{{ param.areaName ? param.areaName : "请选择" }}</text>
               <u-icon name="arrow-right" color="#CCCCCC" size="20"></u-icon>
@@ -235,7 +248,10 @@
            this.$set(this.param, 'companyId', item.id)
            this.$set(this.param, 'companyName', item.name)
            this.$set(this.param, 'areaId', '')
            this.$set(this.param, 'areaName', '')
            this.$set(this.param, 'areaName', '')
            this.$set(this.param, 'checkUserId', '')
            this.$set(this.param, 'applyCheckUserId', '')
            this.$set(this.param, 'checkorName', '')
            DangerConfigType({
               type: '0',
               companyId: item.id
@@ -243,6 +259,10 @@
               this.areaOptions = [res.data]
            })
            this.isShowCompany = false
         },
         openArea() {
            if(!this.param.companyId) return this.showToast('请先选择责任部门')
            this.isShowArea = true
         },
         seletedArea(e) {
            const item = e.value[0]