cropAreaId

This commit is contained in:
liuye
2022-10-09 15:13:27 +08:00
parent de5aa7286a
commit eb7ba60a4a
3 changed files with 41 additions and 11 deletions

View File

@@ -11,7 +11,7 @@
</div>
<div class="top-select">
<div class="item">
<AiAreaPicker v-model="areaId" :areaId="user.areaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
<AiAreaPicker v-model="areaId" :areaId="cropAreaId" @select="areaSelect" :name.sync="areaName" style="color: #666" selectRoot>
<span style="margin-left: 4px" v-if="areaName">{{ areaName }}</span>
<span v-else style="color:#999;">地区选择</span>
<u-icon name="arrow-down" color="#666" size="28" style="margin-left: 4px" />
@@ -88,15 +88,16 @@ export default {
'font-weight' : '400',
},
list: [],
registerTypeList: []
registerTypeList: [],
cropAreaId: ''
}
},
computed: {
...mapState(['user']),
},
onLoad() {
this.areaId = this.user.areaId
this.areaName = this.user.areaName
// this.areaId = this.user.areaId
// this.areaName = this.user.areaName
this.$dict.load('EP_CM_status', 'EP_registerInfoType').then(() => {
this.registerTypeList = this.$dict.getDict('EP_registerInfoType')
this.registerTypeList.unshift({dictValue: '', dictName: '全部'})
@@ -105,11 +106,20 @@ export default {
uni.$on('updateList', () => {
this.getListInit()
})
this.getCropAreaId()
},
onShow() {
document.title = '社区管理'
},
methods: {
getCropAreaId() {
this.$http.post(`app/appdvcpconfig/getCorpArea`).then((res) => {
if (res.code == 0) {
this.areaId = res.data
this.cropAreaId = res.data
}
})
},
getListInit() {
this.current = 1
this.list = []