This commit is contained in:
shijingjing
2022-07-21 17:02:35 +08:00
parent d51565f80f
commit 8350a2b6cc
2 changed files with 8 additions and 6 deletions

View File

@@ -6,6 +6,7 @@
<div class="left"> <div class="left">
<AiAreaPicker v-model="areaId" :areaId="user.areaId" :name.sync="areaName" @select="areaSelect" selectRoot> <AiAreaPicker v-model="areaId" :areaId="user.areaId" :name.sync="areaName" @select="areaSelect" selectRoot>
<div> <div>
<u-icon name="map-fill" color="#999" size="24" style="margin-left: 4px;width: 14px;display:inline-block;margin-top:18px"></u-icon>
<span v-if="areaId" style="color:#333;fontSize: 14px;" class="areaName">{{ areaName }}</span> <span v-if="areaId" style="color:#333;fontSize: 14px;" class="areaName">{{ areaName }}</span>
<span v-else style="color: #999;fontSize: 14px;" class="areaName">所在地区</span> <span v-else style="color: #999;fontSize: 14px;" class="areaName">所在地区</span>
<u-icon name="arrow-down" color="#999" size="24" style="margin-left: 4px;width: 14px;display:inline-block;margin-top:18px" @select="areaSelect(e)"></u-icon> <u-icon name="arrow-down" color="#999" size="24" style="margin-left: 4px;width: 14px;display:inline-block;margin-top:18px" @select="areaSelect(e)"></u-icon>
@@ -14,7 +15,7 @@
</div> </div>
<div class="right"> <div class="right">
<AiSelect v-model="houseType" :list="typeList" @data="typeSelect"> <AiSelect v-model="houseType" :list="typeList" @data="typeSelect">
<span v-if="!houseType" style="color: #999;">类型</span> <span v-if="!houseType" style="color: #999;">户类型</span>
<span v-else>{{ $dict.getLabel('fpHouseType', houseType) }}</span> <span v-else>{{ $dict.getLabel('fpHouseType', houseType) }}</span>
<u-icon name="arrow-down" color="#999" size="24" style="margin-left: 4px;width: 14px;display:inline-block;"></u-icon> <u-icon name="arrow-down" color="#999" size="24" style="margin-left: 4px;width: 14px;display:inline-block;"></u-icon>
</AiSelect> </AiSelect>
@@ -90,7 +91,7 @@ export default {
this.getList() this.getList()
}, },
getList() { getList() {
this.$http.post('/app/appgirdmemberpoverty/listByGirdMember', null, { this.$http.post('/app/apppreventionreturntopoverty/list', null, {
params: { params: {
current: this.current, current: this.current,
name: this.name, name: this.name,
@@ -113,6 +114,7 @@ export default {
}, },
onShow() { onShow() {
document.title = '帮扶成效' document.title = '帮扶成效'
this.areaId = this.user.areaId
this.getList() this.getList()
} }
} }

View File

@@ -6,7 +6,7 @@
</div> </div>
<div class="form-item form-item__textarea"> <div class="form-item form-item__textarea">
<div class="form-item__title"> <div class="form-item__title">
<em>*</em> <em v-if="type==0">*</em>
<h2>{{type == 1 ? '帮扶内容' : '走访内容'}}</h2> <h2>{{type == 1 ? '帮扶内容' : '走访内容'}}</h2>
</div> </div>
<textarea maxlength="500" v-model="detail" :placeholder="type == 1 ? '请输入帮扶内容' : '请输入走访内容'"></textarea> <textarea maxlength="500" v-model="detail" :placeholder="type == 1 ? '请输入帮扶内容' : '请输入走访内容'"></textarea>
@@ -72,9 +72,9 @@ export default {
if (!this.operationDesc) { if (!this.operationDesc) {
return this.$u.toast('请选择帮扶类型') return this.$u.toast('请选择帮扶类型')
} }
if (!this.detail) { // if (!this.detail) {
return this.$u.toast('请输入帮扶内容') // return this.$u.toast('请输入帮扶内容')
} // }
} else { } else {
if (!this.detail) { if (!this.detail) {
return this.$u.toast('请输入走访内容') return this.$u.toast('请输入走访内容')