This commit is contained in:
花有清香月有阴
2021-12-24 20:15:14 +08:00
parent 2b1829cd22
commit d7531ae8da
6 changed files with 16 additions and 27 deletions

View File

@@ -26,13 +26,13 @@
<div class="line"></div> <div class="line"></div>
<u-form-item label="地址" prop="address" required :border-bottom="false" right-icon="arrow-right" class="addresss"> <u-form-item label="地址" prop="address" :border-bottom="false" right-icon="arrow-right" class="addresss">
<AiAreaPicker v-model="forms.areaId" all :areaId="user.areaId" @select="areaSelect"></AiAreaPicker> <u-input v-model="forms.address" placeholder="请输入地址" />
</u-form-item> </u-form-item>
<div class="line"></div> <div class="line"></div>
<u-form-item label="活动详情" prop="content" required :border-bottom="false" label-position="top" class="contents"> <u-form-item label="活动详情" prop="content" :border-bottom="false" label-position="top" class="contents">
<u-input v-model="forms.content" placeholder="请输入详细描述信息" type="textarea" auto-height height="100" maxlength="500" /> <u-input v-model="forms.content" placeholder="请输入详细描述信息" type="textarea" auto-height height="100" maxlength="500" />
</u-form-item> </u-form-item>
@@ -67,7 +67,7 @@ export default {
modeTypeValue: '', modeTypeValue: '',
phone: '', phone: '',
areaId: '', address: '',
content: '', content: '',
personType: 1, personType: 1,
@@ -81,10 +81,9 @@ export default {
computed: { ...mapState(['user']) }, computed: { ...mapState(['user']) },
onLoad() { onLoad() {
this.$dict.load('marriageType', 'modeType') this.$dict.load('marriageType', 'modeType')
this.forms.areaId = this.user.areaId
}, },
onShow() { onShow() {
document.title = "婚丧嫁娶" document.title = '婚丧嫁娶'
}, },
mounted() {}, mounted() {},
@@ -103,12 +102,6 @@ export default {
if (!this.forms.phone) { if (!this.forms.phone) {
return this.$u.toast('请输入联系电话') return this.$u.toast('请输入联系电话')
} }
if (!this.forms.areaId) {
return this.$u.toast('请输入地址')
}
if (!this.forms.content) {
return this.$u.toast('请输入详细描述信息')
}
const imgs = [] const imgs = []
if (this.forms.files) { if (this.forms.files) {
@@ -125,7 +118,7 @@ export default {
modeType: this.forms.modeTypeValue, modeType: this.forms.modeTypeValue,
phone: this.forms.phone, phone: this.forms.phone,
address: this.forms.areaId, address: this.forms.address,
content: this.forms.content, content: this.forms.content,
createUserId: this.user.id, createUserId: this.user.id,
personType: this.forms.personType, personType: this.forms.personType,
@@ -158,10 +151,6 @@ export default {
this.forms.modeTypeValue = e[0].value this.forms.modeTypeValue = e[0].value
} }
}, },
areaSelect(e) {
this.forms.areaId = e.id
},
}, },
} }
</script> </script>

View File

@@ -34,12 +34,12 @@
<span class="right" v-if="item.createTime">{{ item.createTime.substring(0, item.createTime.length - 3) }}</span> <span class="right" v-if="item.createTime">{{ item.createTime.substring(0, item.createTime.length - 3) }}</span>
</div> </div>
<div class="areaNames"> <div class="areaNames" v-if="item.address">
<span>上报地点</span> <span>上报地点</span>
<span class="right">{{ item.address }}</span> <span class="right">{{ item.address }}</span>
</div> </div>
<div class="contents"> <div class="contents" v-if="item.content">
<span>上报内容</span> <span>上报内容</span>
<span class="right">{{ item.content }}</span> <span class="right">{{ item.content }}</span>
</div> </div>

View File

@@ -69,12 +69,12 @@
<span class="right" v-if="item.createTime">{{ item.createTime.substring(0, item.createTime.length - 3) }}</span> <span class="right" v-if="item.createTime">{{ item.createTime.substring(0, item.createTime.length - 3) }}</span>
</div> </div>
<div class="areaNames"> <div class="areaNames" v-if="item.address">
<span>上报地点</span> <span>上报地点</span>
<span class="right">{{ item.address }}</span> <span class="right">{{ item.address }}</span>
</div> </div>
<div class="contents"> <div class="contents" v-if="item.content">
<span>上报内容</span> <span>上报内容</span>
<span class="right">{{ item.content }}</span> <span class="right">{{ item.content }}</span>
</div> </div>

View File

@@ -34,12 +34,12 @@
<span class="right" v-if="item.createTime">{{ item.createTime.substring(0, item.createTime.length - 3) }}</span> <span class="right" v-if="item.createTime">{{ item.createTime.substring(0, item.createTime.length - 3) }}</span>
</div> </div>
<div class="areaNames"> <div class="areaNames" v-if="item.address">
<span>上报地点</span> <span>上报地点</span>
<span class="right">{{ item.address }}</span> <span class="right">{{ item.address }}</span>
</div> </div>
<div class="contents"> <div class="contents" v-if="item.content">
<span>上报内容</span> <span>上报内容</span>
<span class="right">{{ item.content }}</span> <span class="right">{{ item.content }}</span>
</div> </div>

View File

@@ -34,12 +34,12 @@
<span class="right" v-if="item.createTime">{{ item.createTime.substring(0, item.createTime.length - 3) }}</span> <span class="right" v-if="item.createTime">{{ item.createTime.substring(0, item.createTime.length - 3) }}</span>
</div> </div>
<div class="areaNames"> <div class="areaNames" v-if="item.address">
<span>上报地点</span> <span>上报地点</span>
<span class="right">{{ item.address }}</span> <span class="right">{{ item.address }}</span>
</div> </div>
<div class="contents"> <div class="contents" v-if="item.content">
<span>上报内容</span> <span>上报内容</span>
<span class="right">{{ item.content }}</span> <span class="right">{{ item.content }}</span>
</div> </div>

View File

@@ -34,12 +34,12 @@
<span class="right" v-if="item.createTime">{{ item.createTime.substring(0, item.createTime.length - 3) }}</span> <span class="right" v-if="item.createTime">{{ item.createTime.substring(0, item.createTime.length - 3) }}</span>
</div> </div>
<div class="areaNames"> <div class="areaNames" v-if="item.address">
<span>上报地点</span> <span>上报地点</span>
<span class="right">{{ item.address }}</span> <span class="right">{{ item.address }}</span>
</div> </div>
<div class="contents"> <div class="contents" v-if="item.content">
<span>上报内容</span> <span>上报内容</span>
<span class="right">{{ item.content }}</span> <span class="right">{{ item.content }}</span>
</div> </div>