diff --git a/src/project/pingchang/AppWishfulThinking/AppWishfulThinking.vue b/src/project/pingchang/AppWishfulThinking/AppWishfulThinking.vue index ad1d842b..105258aa 100644 --- a/src/project/pingchang/AppWishfulThinking/AppWishfulThinking.vue +++ b/src/project/pingchang/AppWishfulThinking/AppWishfulThinking.vue @@ -5,13 +5,8 @@ @change="change">
- - {{ areaName }} - 所在地区 - +
@@ -32,8 +27,8 @@
- 所属网格 - {{ item.girdName }} + 所属地区 + {{ item.areaName }}
@@ -100,6 +95,8 @@ export default { document.title = '微心愿' }, created() { + this.areaId = this.user.areaId + this.areaName = this.user.areaName this.$dict.load('clapEventStatus', 'clapEventStatusAll', 'clapEventStatusHistory').then(() => { this.getList() }) @@ -107,15 +104,18 @@ export default { methods: { areaSelect(e) { this.areaId = e - // this.getList() + this.current = 1 + this.getList() }, getList() { - let {current, eventStatus, searchGrid: {id: girdId}} = this - this.$http.post(`/app/appclapeventinfo/listByGirdMember`, null, { + let {current, eventStatus, areaId} = this + this.$http.post(`/app/appclapeventinfopingchang/listByGirdMember`, null, { params: { size: 10, - current, searchType: this.currentTabs == 1 ? '1' : '0', - eventStatus, girdId + current, + eventStatus, + areaId, + searchType: this.currentTabs == 1 ? '1' : '0', }, }) .then((res) => { diff --git a/src/project/pingchang/AppWishfulThinking/Content.vue b/src/project/pingchang/AppWishfulThinking/Content.vue index 81d603da..4a0c99c2 100644 --- a/src/project/pingchang/AppWishfulThinking/Content.vue +++ b/src/project/pingchang/AppWishfulThinking/Content.vue @@ -3,7 +3,10 @@
- + + {{ forms.user[0].name }} + 请选择 + @@ -52,7 +55,9 @@ export default { groupId: '', content: '', files: [], - name: '' + wxUserName: '', + wxUserId: '', + user: [] }, flag: false, show: false, @@ -69,20 +74,17 @@ export default { this.forms.groupId = option.groupId this.forms.groupName = option.groupName this.typeList() - uni.$on('pagePicker:custom', (res) => { - this.selectUser = res - if (res.name) { - this.forms.name = res.name - } else { - this.forms.name = res.girdName - } - }) }, onShow() { document.title = this.titleList[this.status] }, methods: { - + handleSelectUser(e) { + console.log(e) + this.forms.user = e + this.forms.wxUserId = e[0].id + this.forms.wxUserName = e[0].name + }, typeList() { this.$http.post(`/app/appclapeventgroup/list`, null, { params: { @@ -98,7 +100,7 @@ export default { }, confirm() { - if (this.status == 1 && !this.forms.name) { + if (this.status == 1 && !this.forms.wxUserName) { return this.$u.toast('请选择转交对象') } if (this.status != 1 && !this.forms.groupName) { @@ -112,29 +114,19 @@ export default { submit() { //status 1转交 2拒绝受理 3我已办结 var url = '', successText = '', params = '' if (this.status == 1) { - url = `/app/appclapeventinfo/transfer` + url = `/app/appclapeventinfopingchang/transfer` successText = '转交成功' - params = { - ...this.forms, - girdId: this.selectUser.id, - girdName: this.selectUser.girdName, - } - if (this.selectUser.name) { //选择的网格员 - params.girdId = this.selectUser.girdId - params.girdMemberId = this.selectUser.id - params.girdMemberName = this.selectUser.name - } } if (this.status == 2) { - url = `/app/appclapeventinfo/refuse` + url = `/app/appclapeventinfopingchang/refuse` successText = '拒绝成功' - params = {...this.forms} } if (this.status == 3) { - url = `/app/appclapeventinfo/finishByGirdMember` + url = `/app/appclapeventinfopingchang/finishByGirdMember` successText = '办结成功' - params = {...this.forms} + } + params = {...this.forms} params.id = this.id this.$http.post(url, params).then((res) => { if (res.code == 0) { @@ -155,9 +147,6 @@ export default { this.forms.groupName = e[0].label this.forms.groupId = e[0].value }, - toSelectUser() { - uni.navigateTo({url: '../AppGridManagement/selectGridMember'}) - }, }, } @@ -238,5 +227,10 @@ export default { width: 100%; text-align: right; } + + .select-user { + width: 100%; + text-align: right; + } } diff --git a/src/project/pingchang/AppWishfulThinking/Detail.vue b/src/project/pingchang/AppWishfulThinking/Detail.vue index bafe2d29..63ebf1e2 100644 --- a/src/project/pingchang/AppWishfulThinking/Detail.vue +++ b/src/project/pingchang/AppWishfulThinking/Detail.vue @@ -21,8 +21,8 @@
- 所属网格 - {{ data.girdName }} + 所属地区 + {{ data.areaName }}
@@ -92,12 +92,12 @@
- + 转交事件
- + 拒绝受理
@@ -166,7 +166,7 @@ export default { }, methods: { getDetail() { - this.$http.post(`/app/appclapeventinfo/queryDetailById?id=${this.id}`).then((res) => { + this.$http.post(`/app/appclapeventinfopingchang/queryDetailById?id=${this.id}`).then((res) => { if (res?.data) { this.data = res.data } @@ -178,7 +178,7 @@ export default { }, doThings() { - this.$http.post(`/app/appclapeventinfo/acceptance?id=${this.id}`).then((res) => { + this.$http.post(`/app/appclapeventinfopingchang/acceptance?id=${this.id}`).then((res) => { if (res.code == 0) { this.getDetail() } @@ -325,6 +325,7 @@ uni-page-body { .plan { padding: 0 32px; + background-color: #fff; .nav { padding: 26px 0; diff --git a/src/project/pingchang/AppWishfulThinking/SelectUser.vue b/src/project/pingchang/AppWishfulThinking/SelectUser.vue deleted file mode 100644 index 0389c29f..00000000 --- a/src/project/pingchang/AppWishfulThinking/SelectUser.vue +++ /dev/null @@ -1,339 +0,0 @@ - - - - -