This commit is contained in:
liuye
2021-12-30 16:52:35 +08:00
parent c91df9daf5
commit 5a28ee237f

View File

@@ -9,7 +9,12 @@
<div class="currentLeft">
<div class="currentLeft-top">
<div class="left">
<AiAreaPicker v-model="areaId" all :areaId="areaId" @select="areaSelect" style="color: #fff"></AiAreaPicker>
<AiAreaPicker v-model="areaId" all :areaId="user.areaId" @select="areaSelect" style="color:#fff;">
<img :src="$cdn+'location.svg'" alt="" style="width:18px;height:18px;margin-right:4px;vertical-align: middle;">
<span class="label" v-if="areaName">{{ areaName }}</span>
<span v-else>请选择</span>
<u-icon name="arrow-down" color="#fff" size="28" style="margin-left:4px;" />
</AiAreaPicker>
</div>
<u-search v-model="keyword" :clearabled="true" placeholder="请输入标题" :show-action="false" bg-color="#1F5CAF" search-icon-color="#E2E8F1" color="#E2E8F1" height="58" @search="handerSearch" @clear="handerClear"></u-search>
@@ -44,7 +49,7 @@
</template>
<div v-else>
<AiEmpty description="您还未添加过入户调查走访" class="emptyWrap"></AiEmpty>
<AiEmpty description="您还未添加过入户走访慰问" class="emptyWrap"></AiEmpty>
<div class="addBtns">
<span> 点击</span>
@@ -92,6 +97,7 @@ export default {
params: null,
current: 1,
areaId: '',
areaName: '',
size: 10,
deletId: '',
pages: 0,
@@ -102,6 +108,7 @@ export default {
},
onLoad() {
this.areaId = this.user.areaId
this.areaName = this.user.areaName
this.$dict.load('realityStatus').then(() => {
this.getList()
})
@@ -147,7 +154,9 @@ export default {
},
areaSelect(e) {
console.log(e)
this.areaId = e.id
this.areaName = e.name
this.getList()
},