保存
@@ -174,7 +173,8 @@ export default {
householdAreaName: '',
householdAddress: '',
residentType: '',
- age: ''
+ age: '',
+ residentLabelList: []
},
showSelect: false,
formName: '',
@@ -191,6 +191,11 @@ 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
+ })
},
computed: {
...mapState(['user']),
@@ -246,7 +251,9 @@ export default {
},
toChooseTags () {
- uni.navigateTo({url: `./Tags`})
+ uni.navigateTo({
+ url: `./Tags?ids=${this.form.residentLabelList.map(v => v).join(',')}`
+ })
},
confirmSelect(e) {
@@ -302,6 +309,15 @@ export default {