分页
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user