346149741
2024-06-22 e9d1d13a62e1f585a8a24bf3176d12be956a63c8
pages/message/details.vue
@@ -13,7 +13,7 @@
                  执法类型
               </view>
               <view class="v">
                  司法检查
                  {{type}}
               </view>
            </view>
            <view class="item">
@@ -21,7 +21,7 @@
                  执法人
               </view>
               <view class="v">
                  刘欢欢
                  {{msg.executeUser}}
               </view>
            </view>
            <view class="item">
@@ -29,7 +29,7 @@
                  执法部门
               </view> 
               <view class="v">
                  农业局
                  {{msg.executeDeptName}}
               </view>
            </view>
            <view class="item">
@@ -37,7 +37,7 @@
                  企业
               </view>
               <view class="v">
                  汉庭酒店
                  {{msg.companyName}}
               </view>
            </view>
         </view>
@@ -48,7 +48,7 @@
                  执法主题
               </view>
               <view class="v">
                  汉庭酒店司法检查233号文件
                  {{msg.enforceReason}}
               </view>
            </view>
            <view class="item">
@@ -57,17 +57,19 @@
               </view>
            </view>
            <view class="imgbox">
               <img src="/static/i01.png" class="more" @click="imgclick('/static/i01.png')" alt="" />
               <img v-for="(item,index) in img" :key="index" :src="item" class="more" alt="" @click="imgclick(item)" />
               <!-- <img src="/static/i01.png" class="more" @click="imgclick('/static/i01.png')" alt="" />
               <img src="/static/i02.png" class="more" alt="" />
               <img src="/static/i03.png" class="more" alt="" />
               <img src="/static/i04.png" class="more" alt="" />
               <img src="/static/i04.png" class="more" alt="" /> -->
            </view>
            <view class="item">
               <view class="k">
                  执法结果
               </view>
               <view class="v" style="color: #EB4746;">
                  停业整顿
                  {{msg.regionReason}}
               </view>
            </view>
            <view class="item">
@@ -75,7 +77,7 @@
                  执法时间
               </view>
               <view class="v">
                  2024-10-10 16:24
                  {{msg.executeTime}}
               </view>
            </view>
         </view>
@@ -85,13 +87,38 @@
</template>
<script>
   import { order } from '@/api/index.js'
   import { getDicts } from '@/api/data.js'
   import { config } from '@/common/config'
   export default {
      data() {
         return {
            msg:{},
            type:'',
            img:[],
            baseUrl: config.baseUrl
            
         }
      },
      onLoad(options) {
         this.getdata(options.id)
      },
      methods: {
         getdata(id){
            order(id).then(val => {
               this.msg = val.data.data
               let arr = this.msg.regionImgs.split(",");
               for(let i = 0;i<arr.length;i++){
                  this.img.push(this.baseUrl+arr[i])
               }
               console.log(this.img)
               getDicts('enforce_type').then(val => {
                   const value = val.data.data.find(item => item.dictCode == this.msg.enforceType)
                   this.type = value.dictLabel
               })
            })
         },
         imgclick(url){
             uni.previewImage({
                 urls: [url]