| | |
| | | <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="楼栋:"
|
| | |
| | | </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>
|
| | |
| | | </u-form-item>
|
| | | </view>
|
| | |
|
| | |
|
| | |
|
| | | <view class="item">
|
| | | <view class="box-title">
|
| | | <box-title title="负责人信息"></box-title>
|
| | |
| | | </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>
|
| | |
|
| | |
| | | <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>
|
| | |
| | | </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"
|
| | |
| | | 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: {
|
| | |
| | |
|
| | | form: {
|
| | | // buildingCode: "",
|
| | | images:[],
|
| | | images: [],
|
| | | label: "",
|
| | | remark: "",
|
| | | imageUrls: "",
|
| | |
| | | showLabelList: [],
|
| | | houseCode: "",
|
| | | currentId: "",
|
| | | addressType:2
|
| | | addressType: 2
|
| | | }
|
| | | },
|
| | | watch: {
|
| | |
| | | }
|
| | | },
|
| | | "form.buildingCode": {
|
| | | handler(newVal) {
|
| | | }
|
| | | handler(newVal) {}
|
| | | },
|
| | | showLabelList(newVal) {
|
| | | }
|
| | | showLabelList(newVal) {}
|
| | | },
|
| | |
|
| | | created() {
|
| | |
| | | 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
|
| | | }
|
| | |
| | | // addressType:this.addressType
|
| | | }
|
| | | }
|
| | | if(this.addressType){
|
| | | if (this.addressType) {
|
| | | idorCodeParams.addressType = this.addressType
|
| | | }
|
| | | if (this.currentId) {
|
| | |
| | | }
|
| | | 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]) {
|
| | |
| | | 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] || '未完善'
|
| | | }
|
| | |
| | | }
|
| | | })
|
| | | })
|
| | | |
| | |
|
| | | })
|
| | | },
|
| | |
|
| | |
| | | flex-direction: column;
|
| | | background: #f5f5f5;
|
| | | padding: 0 30rpx 20rpx 30rpx;
|
| | |
|
| | | .wrap{
|
| | | width:100%;
|
| | | margin-bottom:120rpx;
|
| | | }
|
| | | .box-title {
|
| | | padding: 10px 0;
|
| | |
|