Lou
2024-01-16 db8e416fec0ab844026eb7bc91d9f59a457f4e6e
subPackage/workbench/views/schoolReportDetail.vue
@@ -6,33 +6,60 @@
            <lineItem :dataInfo="basicData"></lineItem>
         </view>
      </view>
      <view class="licence" v-if="imageUrls.length">
         <box-title title="手持身份证" class="box-title"></box-title>
      <view class="planegraph" v-if="foImageUrls.length">
         <box-title title="四个一工程照片" class="box-title"></box-title>
         <view class="flex-wrap">
            <view v-for="(i,k) in imageUrls" :key="k" class="ml-20 mt-20" @click="previewImg(i,imageUrls)">
            <view v-for="(i,k) in foImageUrls" :key="k" class="ml-20 mt-20" @click="previewImg(i,foImageUrls)">
               <u-image :src="i" width="80" height="80"></u-image>
            </view>
         </view>
      </view>
      <view class="planegraph" v-if="goodsImageUrls.length">
         <box-title title="物品照片" class="box-title"></box-title>
      <view class="planegraph" v-if="fireFacsImageUrls.length">
         <box-title title="灭火器照片" class="box-title"></box-title>
         <view class="flex-wrap">
            <view v-for="(i,k) in goodsImageUrls" :key="k" class="ml-20 mt-20"
               @click="previewImg(i,goodsImageUrls)">
            <view v-for="(i,k) in fireFacsImageUrls" :key="k" class="ml-20 mt-20"
               @click="previewImg(i,fireFacsImageUrls)">
               <u-image :src="i" width="80" height="80"></u-image>
            </view>
         </view>
      </view>
      <view class="planegraph" v-if="scImageUrls.length">
         <box-title title="安全通道照片" class="box-title"></box-title>
         <view class="flex-wrap">
            <view v-for="(i,k) in scImageUrls" :key="k" class="ml-20 mt-20" @click="previewImg(i,scImageUrls)">
               <u-image :src="i" width="80" height="80"></u-image>
            </view>
         </view>
      </view>
      <view class="planegraph" v-if="patrolImageUrls.length">
         <box-title title="周边巡查照片" class="box-title"></box-title>
         <view class="flex-wrap">
            <view v-for="(i,k) in patrolImageUrls" :key="k" class="ml-20 mt-20"
               @click="previewImg(i,patrolImageUrls)">
               <u-image :src="i" width="80" height="80"></u-image>
            </view>
         </view>
      </view>
      <view class="planegraph" v-if="antiCollisionImageUrls.length">
         <box-title title="防撞装置照片" class="box-title"></box-title>
         <view class="flex-wrap">
            <view v-for="(i,k) in antiCollisionImageUrls" :key="k" class="ml-20 mt-20"
               @click="previewImg(i,antiCollisionImageUrls)">
               <u-image :src="i" width="80" height="80"></u-image>
            </view>
         </view>
      </view>
      <view class="planegraph" v-if="haImageUrls.length">
         <box-title title="高空抛物监控照片" class="box-title"></box-title>
         <view class="flex-wrap">
            <view v-for="(i,k) in haImageUrls" :key="k" class="ml-20 mt-20" @click="previewImg(i,haImageUrls)">
               <u-image :src="i" width="80" height="80"></u-image>
            </view>
         </view>
      </view>
      <view class="examine">
         <box-title title="审核信息" class="box-title"></box-title>
         <view class="row flex j-c-s-b a-i-c">
            <text>审核状态</text>
            <text class="row-right">{{form.confirmFlag}}</text>
         </view>
         <view class="row flex j-c-s-b a-i-c" v-if="remark">
            <text class="f-28">审核状态</text>
            <text class="row-right">{{remark}}</text>
         </view>
         <view class="row flex j-c-s-b a-i-c">
            <text>审核状态</text>
            <text class="row-right">{{form.confirmFlag}}</text>
@@ -57,7 +84,7 @@
      <!-- <view class="bottom-btn" v-if="(roleType == 1 && status == 1) || (roleType == 2 && status == 2)">
         <u-button type="primary" @click="submit">提交审核</u-button>
      </view> -->
      <footer-btn v-if="roleType == 2 && status == 3" text="重新编辑" @click="navToEdit"></footer-btn>
      <audit-action @handle="submit" v-if="roleType == 1 && status == 1"></audit-action>
      <u-picker :closeOnClickOverlay="true" @close="isPickerShow = false" :show="isPickerShow" ref="uPicker"
@@ -81,11 +108,12 @@
      },
      data() {
         return {
            basicData: [{
                  label: '社区名称',
                  name: "districtName",
                  value: '未完善'
               },
            basicData: [
               // {
               //    label: '社区名称',
               //    name: "districtName",
               //    value: '未完善'
               // },
               {
                  label: '校园名称',
                  name: 'campusName',
@@ -235,6 +263,7 @@
               this.patrolImageUrls = this.$setImageUrl(data.patrolImageUrls);
               this.antiCollisionImageUrls = this.$setImageUrl(data.antiCollisionImageUrls);
               this.haImageUrls = this.$setImageUrl(data.haImageUrls);
               this.scImageUrls = this.$setImageUrl(data.scImageUrls);
            })
         },
@@ -290,6 +319,11 @@
            prePage.$vm.getList();
            uni.navigateBack();
         },
         navToEdit() {
            uni.navigateTo({
               url: `/subPackage/label/school?id=${this.id}`
            })
         }
      }
   }
</script>