Lou
2023-12-09 84eefaa4eeb9bd672254ad1c6ee5e964cc100200
subPackage/workbench/views/cscj.vue
@@ -1,5 +1,8 @@
<template>
   <view class="container">
      <view class="wrap">
      <u-form labelWidth="70" :model="form" :rules="rules" ref="form">
         <view class="item">
            <!-- u-form-item v-if="!currentId" @click="showPicker = true" class="form-item" labelWidth="100" label="楼栋:"
@@ -23,7 +26,7 @@
               </u--input>
               <u-icon slot="right" name="arrow-right"></u-icon>
            </u-form-item>
            <view v-if="showLabelList.length" class="label"   style="border-bottom:1px solid eff1f3;">
            <view v-if="showLabelList.length" class="label" style="border-bottom:1px solid eff1f3;">
               <view v-for="(item,index) in showLabelList" :key="index" class="activeLabel">
                  <u-tag :closable="currentId?false:true" :show="!item.isClose" size="mini" @close="delTag(item)"
                     :text="item.text"></u-tag>
@@ -41,8 +44,6 @@
            </u-form-item>
         </view>
         <view class="item">
            <view class="box-title">
               <box-title title="负责人信息"></box-title>
@@ -59,15 +60,14 @@
            </u-form-item>
         </view>
         <view class="item pic"    v-if="(currentId && form.images.length) || !currentId ">
         <view class="item pic" v-if="(currentId && form.images.length) || !currentId ">
            <view class="box-title">
               <box-title title="场所照片"></box-title>
            </view>
            <u-upload :fileList="form.images" :previewFullImage="uploadConfig.previewFullImage"
               :accept="uploadConfig.acceptImg" :multiple="uploadConfig.multiple" :maxCount="uploadConfig.maxCount"
               :capture="uploadConfig.capture" uploadIcon="/static/icon/upload.png" @afterRead="afterReadImg" @delete="deletePic"
               :disabled="currentId?true:false"  :deletable="currentId?false:true"
               >
               :capture="uploadConfig.capture" uploadIcon="/static/icon/upload.png" @afterRead="afterReadImg"
               @delete="deletePic" :disabled="currentId?true:false" :deletable="currentId?false:true">
            </u-upload>
         </view>
@@ -96,7 +96,7 @@
                  <u--image @click="imgPreview(scope.value)" width="200rpx" height="200rpx"
                     :src="scope.value"></u--image>
               </view>
               <view class=""  v-else>
               <view class="" v-else>
                  {{scope.value}}
               </view>
            </template>
@@ -128,13 +128,13 @@
      </view>
      <view class="bottom">
      <!-- <view class="bottom">
         <view class="btn">
            <u-button @click="submit" type="primary" text="提交" v-if="!currentId"></u-button>
         </view>
      </view>
      </view> -->
        </view>
      <footer-btn @click="submit" v-if="!currentId" />
      <uni-popup class="citys_win popup_win" ref="uniPopup" type="bottom">
         <wyh-tree-select :items="labelList" title="标签选择" :showNav="true" defaultActiveColor="#4586fe"
@@ -171,7 +171,9 @@
      format
   } from "echarts";
   import boxTitle from '../components/boxTitle/index.vue'
import { minioBaseUrl } from "../../../common/setting";
   import {
      minioBaseUrl
   } from "../../../common/setting";
   export default {
      mixins: [uploadMixin],
      components: {
@@ -192,7 +194,7 @@
            form: {
               // buildingCode: "",
               images:[],
               images: [],
               label: "",
               remark: "",
               imageUrls: "",
@@ -345,7 +347,7 @@
            showLabelList: [],
            houseCode: "",
            currentId: "",
            addressType:2
            addressType: 2
         }
      },
      watch: {
@@ -355,11 +357,9 @@
            }
         },
         "form.buildingCode": {
            handler(newVal) {
            }
            handler(newVal) {}
         },
         showLabelList(newVal) {
         }
         showLabelList(newVal) {}
      },
      created() {
@@ -375,14 +375,14 @@
         console.log(option)
         const {
            type
         } = option
         if(option.addressType){
         } = option
         if (option.addressType) {
            this.addressType = option.addressType
         }
         if(option.id){
         if (option.id) {
            this.currentId = option.id
         }
         if(option.houseCode){
         if (option.houseCode) {
            this.houseCode = option.houseCode
            this.form.houseCode = option.houseCode
         }
@@ -454,7 +454,7 @@
                  // addressType:this.addressType
               }
            }
            if(this.addressType){
            if (this.addressType) {
               idorCodeParams.addressType = this.addressType
            }
            if (this.currentId) {
@@ -504,22 +504,23 @@
                  }
                  if (key === "images") {
                     // this.form[key] = data.imageUrls
                     if(data.imageUrls){
                        this.form.images = this.$setImageUrl(data.imageUrls,2);
                     }else {
                     if (data.imageUrls) {
                        this.form.images = this.$setImageUrl(data.imageUrls, 2);
                     } else {
                        this.form.images = []
                     }
                  }
               })
               this.form.building = arr.join("")
               setTimeout(()=>{
               setTimeout(() => {
                  data.placePoiLabelVOList.forEach(item => {
                     let label = this.labelList[0].children.find(sl => sl.text === item.labelName) || {}
                     let label = this.labelList[0].children.find(sl => sl.text === item
                        .labelName) || {}
                     label['isClose'] = false
                     label?.text && this.showLabelList.push(label)
                  })
               },500)
               }, 500)
               Object.keys(this.comprehensiveData).forEach(key => {
                  this.comprehensiveData[key].forEach(item => {
                     if (!data[item.name]) {
@@ -527,7 +528,7 @@
                        item.value = gridEntity[item.name] || '未完善'
                     } else {
                        item.value = data[item.name] || '未完善'
                        if(item.name == "imageUrls" ){
                        if (item.name == "imageUrls") {
                           item.value = this.$setImageUrl(data[item.name])
                           // item.value = minioBaseUrl + data[item.name] || '未完善'
                        }
@@ -541,7 +542,7 @@
                     }
                  })
               })
            })
         },
@@ -747,7 +748,10 @@
      flex-direction: column;
      background: #f5f5f5;
      padding: 0 30rpx 20rpx 30rpx;
        .wrap{
         width:100%;
         margin-bottom:120rpx;
      }
      .box-title {
         padding: 10px 0;