This commit is contained in:
shijingjing
2022-04-18 19:16:39 +08:00
parent 845b19d8a8
commit 6fa86ccb8e
3 changed files with 107 additions and 28 deletions

View File

@@ -47,16 +47,36 @@ export default {
type: '',
checkTime: '',
name: '',
}
partyId: ''
},
userList: []
}
},
onShow() {
this.$dict.load('agriculturalType')
this.getFourResident()
},
methods: {
onDateChange(e) {
this.form.checkTime = `${e.year}-${e.month}-${e.day}`
},
getFourResident() {
this.$instance.post('/app/apppartyfourresident/listFourResident', null, {
params: {
size: 10,
partyId: this.form.partyId,
},
}).then((res) => {
if (res.code == 0) {
this.userList = res.data.records
}
})
},
confirm() {
if(!this.form.checkTime)
this.$instance.post('/app/apppartyfourlinkage/addOrUpdate')
}
}
}
</script>