| | |
| | | <box-title title="基础信息"></box-title>
|
| | | </view>
|
| | | <view class="item">
|
| | | <u-form-item v-if="!currentId" @click="showPicker = true" class="form-item" labelWidth="100" label="楼栋:"
|
| | | <!-- u-form-item v-if="!currentId" @click="showPicker = true" class="form-item" labelWidth="100" label="楼栋:"
|
| | | :required="isRequired" :disabled="isDisabled" prop="buildingCode">
|
| | | <u--input border="none" disabledColor="#ffffff" v-model="form.building" placeholder="请选择">
|
| | | </u--input>
|
| | | <u-icon slot="right" name="arrow-right"></u-icon>
|
| | | </u-form-item>
|
| | | </u-form-item> -->
|
| | |
|
| | | <u-form-item class="form-item" labelWidth="100" label="场所名称:" :required="isRequiredPlace"
|
| | | :disabled="isDisabled" prop="placeName">
|
| | |
| | | remark: "",
|
| | | imageUrls: "",
|
| | | placeName: "",
|
| | | username: '',
|
| | | phone: ''
|
| | | },
|
| | | rules: {
|
| | | 'buildingCode': {
|
| | |
| | | handler(newVal) {
|
| | | console.log(newVal)
|
| | | }
|
| | | }, |
| | | showLabelList(newVal) { |
| | | console.log(newVal); |
| | | },
|
| | | showLabelList(newVal) {
|
| | | console.log(newVal);
|
| | | }
|
| | |
|
| | | },
|
| | |
| | | icon: 'error'
|
| | | })
|
| | | return
|
| | | }
|
| | | const dpaEntity = data.doorplateAddressEntity
|
| | | this.form.buildingCode = dpaEntity?.buildingCode
|
| | | } |
| | | const dpaEntity = data?.doorplateAddressEntity || {} |
| | | |
| | | this.form.buildingCode = dpaEntity?.buildingCode || '' |
| | | |
| | | let buildingNameArr = [
|
| | | dpaEntity?.townStreetName,
|
| | | dpaEntity?.neiName,
|
| | |
| | | let arr = buildingNameArr.filter(e => {
|
| | | return e != null || e != ''
|
| | | })
|
| | | this.form.placeName = data['placeName']
|
| | | Object.keys(this.form).forEach(key => {
|
| | | this.form[key] = data[key] || data.doorplateAddressEntity[key] || '未完善'
|
| | | if (key === "images") {
|
| | | this.form[key] = []
|
| | | }
|
| | | this.form.placeName = data['placeName'] || '' |
| | | |
| | | Object.keys(this.form).forEach(key => { |
| | | if (!data[key]) { |
| | | this.form[key] = dpaEntity[key] || '未完善' |
| | | } else { |
| | | this.form[key] = data[key] || '未完善' |
| | | } |
| | | if (key === "images") { |
| | | this.form[key] = [] |
| | | } |
| | | })
|
| | |
|
| | | this.form.building = arr.join("")
|
| | |
|
| | | Object.keys(this.comprehensiveData).forEach(key => {
|
| | | console.log(key);
|
| | | this.comprehensiveData[key].forEach(item => {
|
| | | item.value = data[item.name] || data.doorplateAddressEntity[item
|
| | | .name] || '未完善'
|
| | | if (!data[item.name]) {
|
| | | item.value = dpaEntity[item.name] || '未完善'
|
| | | } else {
|
| | | item.value = data[item.name]|| '未完善'
|
| | | }
|
| | | })
|
| | | this.publicData[key].forEach(item => {
|
| | | item.value = data[item.name] || data.doorplateAddressEntity[item
|
| | | .name] || '未完善'
|
| | | if (!data[item.name]) {
|
| | | item.value = dpaEntity[item.name] || '未完善'
|
| | | } else {
|
| | | item.value = data[item.name]|| '未完善'
|
| | | }
|
| | | })
|
| | | }) |
| | | |
| | | data.placePoiLabelVOList.forEach(item => { |
| | | const label = this.labelList[0].children.find(sl => sl.text === item.labelName) |
| | | label.isClose = false |
| | | this.showLabelList.push(label) |
| | | })
|
| | |
|
| | | data.placePoiLabelVOList.forEach(item => {
|
| | | let label = this.labelList[0].children.find(sl => sl.text === item.labelName) || {}
|
| | | label['isClose'] = false
|
| | | this.showLabelList.push(label)
|
| | | })
|
| | |
|
| | | })
|