@@ -148,6 +148,7 @@ export default {
renter: [],
live: []
},
+ pageShow: false,
numInfo: {},
showSelect: false,
selectList: [],
@@ -166,8 +167,9 @@ export default {
onShow() {
document.title = "楼栋模型"
this.$dict.load('householdRelation', 'houselivingStatus', 'houseLeaseSituation', 'houseUseStatus',
- 'isFilingCertificateStatus', 'communityBuildingType', 'yesOrNo', 'BulidResidentType')
- this.getBuilding()
+ 'isFilingCertificateStatus', 'communityBuildingType', 'yesOrNo', 'BulidResidentType').then(() => {
+ this.getBuilding()
+ })
uni.$on('changeHouseInfo', res => {
this.getHouseDetail(this.houseInfo.id)
})
@@ -196,6 +198,7 @@ export default {
},
getBuilding() {
//获取楼栋信息
+ this.$loading()
let {id} = this.$route.query
this.$http.post(`/app/appcommunitybuildinginfo/queryDetailById`, null, {
params: {id}
@@ -203,6 +206,8 @@ export default {
if (res?.data) {
this.detail = res.data
this.getSelectList(res.data.communityId)
+
+ this.pageShow = true
}
})
},
diff --git a/src/project/saas/AppResidentDocument/Add.vue b/src/project/saas/AppResidentDocument/Add.vue
index 35651f88..3f8d5d9e 100644
--- a/src/project/saas/AppResidentDocument/Add.vue
+++ b/src/project/saas/AppResidentDocument/Add.vue
@@ -84,7 +84,7 @@
现住址
-
+
{{ form.currentAreaName }}
请选择
@@ -94,20 +94,6 @@
-
-
*
-
-
-
居民标签
-
- 请选择
-
-
-
-
-
@@ -122,7 +108,7 @@
户籍地址
-
+
{{ form.householdAreaName }}
请选择
@@ -141,6 +127,19 @@
+
+
+
+
居民标签
+
+
+ 请选择
+
+
+
+
保存
@@ -174,7 +173,8 @@ export default {
householdAreaName: '',
householdAddress: '',
residentType: '',
- age: ''
+ age: '',
+ residentLabelList: []
},
showSelect: false,
formName: '',
@@ -191,6 +191,16 @@ export default {
this.form.residentType = options.type
}
this.$dict.load('yesOrNo', 'sex', 'householdRelation', 'nation', 'education', 'maritalStatus', 'politicsStatus', 'militaryStatus', 'faithType')
+
+ uni.$on('onChecked', e => {
+ console.log(e)
+ this.form.residentLabelList = e.map(v => {
+ return {
+ labelId: v.id,
+ labelName: v.labelName
+ }
+ })
+ })
},
computed: {
...mapState(['user']),
@@ -246,7 +256,9 @@ export default {
},
toChooseTags () {
- uni.navigateTo({url: `./Tags`})
+ uni.navigateTo({
+ url: `./Tags?ids=${this.form.residentLabelList.map(v => v.labelId).join(',')}`
+ })
},
confirmSelect(e) {
@@ -302,6 +314,15 @@ export default {