| | |
| | | </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-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>
|
| | | </view>
|
| | | </view> -->
|
| | | <!-- <view v-if="categoryValue.length" class="label" style="border-bottom:1px solid eff1f3;">
|
| | | <view v-for="(item,index) in categoryValue" :key="index" class="activeLabel">
|
| | | <u-tag :closable="currentId?false:true" size="mini"
|
| | | @close="delTag()" :text="item.categoryName"></u-tag>
|
| | | </view>
|
| | | </view> -->
|
| | |
|
| | | <u-form-item class="form-item" labelWidth="100" label="备注:" prop="remark">
|
| | | <u--input v-if="!currentId" border="none" v-model="form.remark" placeholder="请输入">
|
| | | </u--input>
|
| | |
| | | this.currentId = option.id;
|
| | | }
|
| | | if (option.houseCode) {
|
| | | console.log(111)
|
| | | this.houseCode = option.houseCode
|
| | | this.form.houseCode = option.houseCode
|
| | | }
|
| | |
| | | })
|
| | | return
|
| | | }
|
| | | this.houseCode = data.houseCode;
|
| | | // this.houseCode = data.houseCode;
|
| | | const dpaEntity = data?.doorplateAddressEntity || {}
|
| | | const gridEntity = data?.grid || {}
|
| | | // this.form.buildingCode = dpaEntity?.buildingCode || ''
|
| | |
| | |
|
| | | //表单提交
|
| | | submit() {
|
| | |
|
| | | if (this.houseCode && !this.form.houseCode) {
|
| | | this.form.houseCode = this.houseCode;
|
| | | }
|
| | |
|
| | | if (!this.form.placeName) {
|
| | | this.$showTips("请输入场所名称")
|
| | | return
|
| | |
| | | urls.push(e.name)
|
| | | })
|
| | | this.form.imageUrls = urls.join(",")
|
| | | } else {
|
| | | this.form.imageUrls = ""
|
| | | }
|
| | |
|
| | | this.form.roleName = uni.getStorageSync("activeRole").roleName;
|
| | |
| | | this.$showTips("请选择阵地类型")
|
| | | return
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | delete this.form.images;
|
| | |
|
| | | add(this.form).then(res => {
|
| | | uni.showToast({
|
| | | icon: 'success',
|
| | |
| | |
|
| | | },
|
| | |
|
| | |
|
| | |
|
| | | labelClick(item) {
|
| | |
|
| | | //判断label是否已在
|
| | | const label = this.showLabelList.find(e => e.id == item.id)
|
| | | if (label) {
|
| | | //在,去掉
|
| | | this.showLabelList = this.showLabelList.filter(e => e.id != label.id)
|
| | | this.activeIds = this.activeIds.filter(e => e != label.id)
|
| | | } else {
|
| | | //不在,添加
|
| | | item.isClose = false
|
| | | this.showLabelList.push(item)
|
| | | this.activeIds.push(item.id)
|
| | | }
|
| | |
|
| | | this.showLabelList.sort((a, b) => a.sort - b.sort)
|
| | |
|
| | | },
|
| | | delTag() {
|
| | | // label.isClose = true
|
| | | // this.showLabelList = this.showLabelList.filter(e => e.id != label.id)
|
| | | // this.activeIds = this.activeIds.filter(e => e != label.id)
|
| | | this.categoryIndex = [];
|
| | | this.categoryValue = "";
|
| | |
|
| | | },
|
| | | imgPreview(value) {
|
| | | uni.previewImage({
|
| | | urls: minioBaseUrl + [value],
|