diff --git a/src/views/modules/events/issue-process-detail-view.vue b/src/views/modules/events/issue-process-detail-view.vue index 5cbd4c2..c6ad716 100644 --- a/src/views/modules/events/issue-process-detail-view.vue +++ b/src/views/modules/events/issue-process-detail-view.vue @@ -263,22 +263,60 @@ export default { if (this.dataForm.id) { this.dataForm.images = [] } - this.$http['post']('/events/issue/issueWaitHandleSubmit', this.dataForm).then(({ data: res }) => { - this.isAble = false - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') + if (this.dataForm.state === '1') { + this.$http['post']('/events/issue/response', this.dataForm).then(({ data: res }) => { + this.isAble = false + if (res.code !== 0) { + return this.$message.error(res.msg) } - }) - this.$parent.selectComponent = 'IssueProcessList' - }).catch(() => { }) + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') + } + }) + this.$parent.selectComponent = 'IssueProcessList' + }).catch(() => { }) + } + if (this.dataForm.state === '2') { + this.$http['post']('/events/issue/close', this.dataForm).then(({ data: res }) => { + this.isAble = false + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') + } + }) + this.$parent.selectComponent = 'IssueProcessList' + }).catch(() => { }) + } + if (this.dataForm.state === '4') { + this.$http['post']('/events/issue/toItem', this.dataForm).then(({ data: res }) => { + this.isAble = false + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') + } + }) + this.$parent.selectComponent = 'IssueProcessList' + }).catch(() => { }) + } }) }, 1000, { 'leading': true, 'trailing': false }) } diff --git a/src/views/modules/events/issue-review-detail-view.vue b/src/views/modules/events/issue-review-detail-view.vue index 3145c91..cfc20f1 100644 --- a/src/views/modules/events/issue-review-detail-view.vue +++ b/src/views/modules/events/issue-review-detail-view.vue @@ -174,7 +174,6 @@ export default { // 表单提交 dataFormSubmitHandle: debounce(function () { this.dataForm.categoryId = this.categoryIds[this.categoryIds.length - 1] - console.log(this.dataForm.categoryId) this.$refs['dataForm'].validate((valid) => { if (!valid) { return false @@ -183,22 +182,42 @@ export default { return this.$message.error('处理意见不超过500字') } this.isAble = true - this.$http['post']('/events/epdcevents/review', this.dataForm).then(({ data: res }) => { - this.isAble = false - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$parent.selectComponent = 'IssueReviewList' - this.$emit('refreshDataList') + if (this.dataForm.eventState === '4') { + this.$http['post']('/events/epdcevents/reviewPass', this.dataForm).then(({ data: res }) => { + this.isAble = false + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$parent.selectComponent = 'IssueReviewList' + this.$emit('refreshDataList') + } + }) + }).catch(() => {}) + } + if (this.dataForm.eventState === '2') { + this.$http['post']('/events/epdcevents/reviewNopass', this.dataForm).then(({ data: res }) => { + this.isAble = false + if (res.code !== 0) { + return this.$message.error(res.msg) } - }) - }).catch(() => {}) + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$parent.selectComponent = 'IssueReviewList' + this.$emit('refreshDataList') + } + }) + }).catch(() => {}) + } }) }, 1000, { 'leading': true, 'trailing': false }) } diff --git a/src/views/modules/events/item-deal-detail-view.vue b/src/views/modules/events/item-deal-detail-view.vue index 9ce0d73..c9de933 100644 --- a/src/views/modules/events/item-deal-detail-view.vue +++ b/src/views/modules/events/item-deal-detail-view.vue @@ -268,7 +268,8 @@ export default { outHandleAdvice: '', handleCategory: '', deptResultDTOS: [], - evaluateDeptDTOS: [] + evaluateDeptDTOS: [], + userId: '' }, deptResultDTOSVisible: false, evaluateDeptDTOSVisible: false, @@ -529,23 +530,98 @@ export default { this.postDataForm.evaluateDeptDTOS = [] } this.isAble = true - this.$http['post']( - '/events/item/itemHandleSubmit', this.postDataForm).then(({ data: res }) => { - this.isAble = false - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') + this.postDataForm.userId = this.dataForm.userId + if (this.postDataForm.handleCategory === 0) { + this.$http['post']( + '/events/item/response', this.postDataForm).then(({ data: res }) => { + this.isAble = false + if (res.code !== 0) { + return this.$message.error(res.msg) } - }) - this.$parent.selectComponent = 'ItemDeal' - }).catch(() => { }) + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') + } + }) + this.$parent.selectComponent = 'ItemDeal' + }).catch(() => { }) + } else if (this.postDataForm.handleCategory === 1) { + this.$http['post']( + '/events/item/whistle', this.postDataForm).then(({ data: res }) => { + this.isAble = false + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') + } + }) + this.$parent.selectComponent = 'ItemDeal' + }).catch(() => { }) + } else if (this.postDataForm.handleCategory === 5) { + this.$http['post']( + '/events/item/close', this.postDataForm).then(({ data: res }) => { + this.isAble = false + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') + } + }) + this.$parent.selectComponent = 'ItemDeal' + }).catch(() => { }) + } else if (this.postDataForm.handleCategory === 10) { + this.$http['post']( + '/events/item/closeCase', this.postDataForm).then(({ data: res }) => { + this.isAble = false + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') + } + }) + this.$parent.selectComponent = 'ItemDeal' + }).catch(() => { }) + } else { + this.$http['post']( + '/events/item/itemHandleSubmit', this.postDataForm).then(({ data: res }) => { + this.isAble = false + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') + } + }) + this.$parent.selectComponent = 'ItemDeal' + }).catch(() => { }) + } }, 1000, { 'leading': true, 'trailing': false }) } diff --git a/src/views/modules/group/group-approve.vue b/src/views/modules/group/group-approve.vue index b503c9c..5cfaad0 100644 --- a/src/views/modules/group/group-approve.vue +++ b/src/views/modules/group/group-approve.vue @@ -99,21 +99,71 @@ export default { return this.$message.error('处理意见不能超过500字') } } - this.$http['post']( - '/group/group/operate', this.dataForm).then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') + if (this.dataForm.state === '10') { + this.$http['post']( + '/group/group/pass', this.dataForm).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) } - }) - }).catch(() => {}) + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') + } + }) + }).catch(() => {}) + } else if (this.dataForm.state === '5') { + this.$http['post']( + '/group/group/noPass', this.dataForm).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') + } + }) + }).catch(() => {}) + } else if (this.dataForm.state === '20') { + this.$http['post']( + '/group/group/noPass', this.dataForm).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') + } + }) + }).catch(() => {}) + } else { + this.$http['post']( + '/group/group/operate', this.dataForm).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') + } + }) + }).catch(() => {}) + } }, 1000, { 'leading': true, 'trailing': false }) } }