diff --git a/project/sanjianxi/AppNeighborLinkage/AppNeighborLinkage.vue b/project/sanjianxi/AppNeighborLinkage/AppNeighborLinkage.vue index 83ca979..584c869 100644 --- a/project/sanjianxi/AppNeighborLinkage/AppNeighborLinkage.vue +++ b/project/sanjianxi/AppNeighborLinkage/AppNeighborLinkage.vue @@ -2,20 +2,20 @@
-
- - 全部状态 - {{ type }} +
+ + 全部状态 + {{ $dict.getLabel('partyFourLinkageStatus',status) }}
- 时间选择 - {{ checkTime }} + 时间选择 + {{ linksageDate }}
@@ -23,14 +23,17 @@
-
+
-

帮助赵顺伟咨询户口迁移问题帮助赵顺伟咨询

-
事件日期2022-04-15
-
四邻对象李白
+

{{ item.description }}

+
事件日期{{ item.linksageDate }}
+
四邻对象{{ item.residentName }}
- 待审核 + + + {{ $dict.getLabel('partyFourLinkageStatus',item.status) }} +
@@ -51,8 +54,8 @@ export default { data() { return { keyword:'', - type: '', - checkTime: '', + status: '', + linksageDate: '', isShowDate: false, params: { year: true, @@ -64,18 +67,42 @@ export default { } }, onShow() { - this.$dict.load('yesOrNo') + this.$dict.load('partyFourLinkageStatus') this.getList() }, methods: { + search(e) { + this.keyword = e + }, + typeSelect(e) { + this.list = [] + this.status = e.value + this.current = 1 + this.getList() + }, onDateChange(e) { - this.checkTime = `${e.year}-${e.month}-${e.day}` + this.list = [] + this.linksageDate = `${e.year}-${e.month}-${e.day}` + this.current = 1 + this.getList() }, getList() { - // this.$instance.post('/app/apppartyfourresident/listFourResident').then(res=>{ - // console.log(res); - // }) + this.$instance.post('/app/apppartyfourlinkage/listByApplet',null,{ + params: { + current: this.current, + status: this.status, + linksageDate: this.linksageDate, + } + }).then(res=>{ + if (res?.data) { + this.list = this.current==1? res.data.records : [...this.list, ...res.data.records] + } + }) } + }, + onReachBottom() { + this.current ++, + this.getList() } } @@ -118,6 +145,8 @@ export default { box-sizing: border-box; border-bottom: 1px solid #DDDDDD; p { + font-size: 32px; + font-weight: 600; overflow:hidden; text-overflow:ellipsis; display:-webkit-box; diff --git a/project/sanjianxi/AppNeighborLinkage/addLinkage.vue b/project/sanjianxi/AppNeighborLinkage/addLinkage.vue index 1e48630..feac9ae 100644 --- a/project/sanjianxi/AppNeighborLinkage/addLinkage.vue +++ b/project/sanjianxi/AppNeighborLinkage/addLinkage.vue @@ -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') + } + } } diff --git a/project/sanjianxi/AppNeighborLinkage/neighborDetail.vue b/project/sanjianxi/AppNeighborLinkage/neighborDetail.vue index 29638d8..8699d77 100644 --- a/project/sanjianxi/AppNeighborLinkage/neighborDetail.vue +++ b/project/sanjianxi/AppNeighborLinkage/neighborDetail.vue @@ -1,26 +1,29 @@ @@ -30,12 +33,39 @@ export default { name: 'neighborDetail', data() { return { - + id: '', + data: {} } }, - onShow() {}, + onLoad(o) { + this.$dict.load('partyFourLinkageStatus') + this.id = o.id + this.getDetail() + }, methods: { - + getDetail() { + this.$instance.post('/app/apppartyfourlinkage/queryDetailById',null,{ + params: { + id: this.id, + } + }).then(res => { + if(res.code == 0) { + this.data = res.data + } + }) + }, + delBtn() { + this.$dialog.confirm({content: '确定要删除该记录吗?'}).then(()=>{ + this.$instance.post(`/app/apppartyfourlinkage/delete?ids=${this.id}`).then(res => { + if(res.code == 0) { + this.$u.toast('删除成功') + setTimeout(() => { + uni.navigateBack() + },600) + } + }) + }) + } } }