From 750fcaab65650f204933b687c9306a339636d7d9 Mon Sep 17 00:00:00 2001 From: zhangyongzhangyong <2012005003@qq.com> Date: Mon, 10 Jan 2022 17:47:12 +0800 Subject: [PATCH 1/6] =?UTF-8?q?=E3=80=90=E7=BC=96=E8=BE=91=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E3=80=91=E5=B7=B2=E5=AE=8C=E6=88=90=EF=BC=8C=E5=A4=84?= =?UTF-8?q?=E7=90=86=E8=BF=9B=E5=B1=95=20-=20=E9=A1=B5=E9=9D=A2=E5=B1=95?= =?UTF-8?q?=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/events/edit-process-progress.vue | 230 ++++++++++++++++++ 1 file changed, 230 insertions(+) create mode 100644 src/views/modules/events/edit-process-progress.vue diff --git a/src/views/modules/events/edit-process-progress.vue b/src/views/modules/events/edit-process-progress.vue new file mode 100644 index 0000000..1c54135 --- /dev/null +++ b/src/views/modules/events/edit-process-progress.vue @@ -0,0 +1,230 @@ + + + + + + + From 337004b7cf17e627f03f8f1fab0ec9ae72c792c5 Mon Sep 17 00:00:00 2001 From: zhangyongzhangyong <2012005003@qq.com> Date: Wed, 12 Jan 2022 16:40:51 +0800 Subject: [PATCH 2/6] =?UTF-8?q?=E5=B7=B2=E5=AE=8C=E6=88=90=20=E5=A4=84?= =?UTF-8?q?=E7=90=86=E8=BF=9B=E5=B1=95=E7=BC=96=E8=BE=91=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/events/edit-process-progress.vue | 119 ++++++++++++++---- 1 file changed, 93 insertions(+), 26 deletions(-) diff --git a/src/views/modules/events/edit-process-progress.vue b/src/views/modules/events/edit-process-progress.vue index 1c54135..e364855 100644 --- a/src/views/modules/events/edit-process-progress.vue +++ b/src/views/modules/events/edit-process-progress.vue @@ -2,18 +2,15 @@
-
- {{item.handleType === 'project' ? '项目': item.handleType === 'issue' || item.handleType === 'issue-project' ? '议题' : item.handleType === 'init' ? '事件' : ''}} + {{item.handleType === 'project' ? '项目': item.handleType === 'issue' || item.handleType === 'issue-project' ? '议题' : item.handleType === 'event' || item.handleType === 'event-issue' ? '事件' : ''}}
- [ {{item | formatState}} ] - 处理部门: {{item.handlerDept}} - 议题内容: {{item.eventContent}} + [ {{item | formatState}} ] + 处理部门: {{item.handlerDept}} + 议题内容: {{item.eventContent}}
- + - - + + + + - + + + + + +
From 5f17b617a61531aef2a276839268eb8ee1b8104b Mon Sep 17 00:00:00 2001 From: zhangyongzhangyong <2012005003@qq.com> Date: Thu, 13 Jan 2022 13:50:25 +0800 Subject: [PATCH 3/6] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E5=A4=84=E7=90=86?= =?UTF-8?q?=E7=BC=96=E8=BE=91=EF=BC=8C=E5=A2=9E=E5=8A=A0=E6=A0=A1=E9=AA=8C?= =?UTF-8?q?=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/events/edit-process-progress.vue | 89 ++++++++++++------- 1 file changed, 55 insertions(+), 34 deletions(-) diff --git a/src/views/modules/events/edit-process-progress.vue b/src/views/modules/events/edit-process-progress.vue index e364855..6001d4d 100644 --- a/src/views/modules/events/edit-process-progress.vue +++ b/src/views/modules/events/edit-process-progress.vue @@ -8,21 +8,23 @@ style="display: inline-block !important"> {{item.handleType === 'project' ? '项目': item.handleType === 'issue' || item.handleType === 'issue-project' ? '议题' : item.handleType === 'event' || item.handleType === 'event-issue' ? '事件' : ''}} - [ {{item | formatState}} ] + [ {{item | formatState}} ] 处理部门: {{item.handlerDept}} - 议题内容: {{item.eventContent}} + 事件内容: {{item.eventContent}} - + - + - + @@ -80,26 +82,38 @@ export default { formatState (item) { if (item.handleType === 'project') { if (item.state === 0 && item.itemDeptDTOS && item.itemDeptDTOS.length > 0) { + item.stateName = '吹哨' return '吹哨' } else if (item.state === 0 && item.itemDeptDTOS && item.itemDeptDTOS.length === 0) { + item.stateName = '回应' return '回应' } else if (item.state === 5) { + item.stateName = '关闭' return '关闭' } else if (item.state === 10) { + item.stateName = '结案' return '结案' } } else if (item.handleType === 'issue' || item.handleType === 'event-issue') { if (item.state === 0) { + item.stateName = '审核通过' return '审核通过' } else if (item.state === 1) { + item.stateName = '回应' return '回应' } else if (item.state === 2) { + item.stateName = '关闭' return '关闭' } else if (item.state === 3) { + item.stateName = '转议题' return '转议题' } } else if (item.handleType === 'issue-project') { + item.stateName = '转项目' return '转项目' + } else if (item.handleType === 'event') { + item.stateName = '事件发起' + return '事件发起' } } }, @@ -116,6 +130,18 @@ export default { } }) }, + validateTime () { + var flag = true + this.processProgress.forEach((item, index, arr) => { + if (index < arr.length - 1 && arr[index].createdTime < arr[index + 1].createdTime) { + flag = false + return this.$message.error(' [' + arr[index].stateName + '] 的操作时间应在 [' + arr[index + 1].stateName + '] 的操作时间之后') + } + }) + if (flag) { + this.dataFormSubmitHandle() + } + }, getInfo () { this.$http.get(`/events/item/getProcessProgress/${this.dataForm.id}`).then(({ data: res }) => { if (res.code !== 0) { @@ -129,16 +155,16 @@ export default { let image = {} image.name = Math.round(Math.random() * 5) image.url = res.data.url - if ('outImage' == imgType) { + if (imgType === 'outImage') { this.processProgress[index].outImages.push(image) - } else if ('image' == imgType) { + } else if (imgType === 'image') { this.processProgress[index].images.push(image) } }, handleRemove (file, fileList, index, imgType) { - if ('outImage' == imgType) { + if (imgType === 'outImage') { this.processProgress[index].outImages = fileList - } else if ('image' == imgType) { + } else if (imgType === 'image') { this.processProgress[index].images = fileList } }, @@ -150,30 +176,25 @@ export default { }) }, dataFormSubmitHandle: debounce(function () { - // this.$refs['dataForm'].validate((valid) => { - // if (!valid) { - // return false - // } - this.isLoading = true - this.isDisabled = true - this.$http['post']('/events/item/editProcessProgressList/', this.processProgress).then(({ data: res }) => { - if (res.code !== 0) { - // 确定按钮 防点击 - this.isDisabled = false - this.isLoading = false - return this.$message.error(res.msg) + this.isLoading = true + this.isDisabled = true + this.$http['post']('/events/item/editProcessProgressList/', this.processProgress).then(({ data: res }) => { + if (res.code !== 0) { + // 确定按钮 防点击 + this.isDisabled = false + this.isLoading = false + 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.$message({ - message: this.$t('prompt.success'), - type: 'success', - duration: 500, - onClose: () => { - this.visible = false - this.$emit('refreshDataList') - } - }) - }).catch(() => {}) - // }) + }) + }).catch(() => {}) }, 1000, { 'leading': true, 'trailing': false }) } } From cc7b8e15406627394fb9766aaabf35f04b68f152 Mon Sep 17 00:00:00 2001 From: zhangyongzhangyong <2012005003@qq.com> Date: Thu, 13 Jan 2022 16:46:06 +0800 Subject: [PATCH 4/6] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/events/edit-process-progress.vue | 14 +- .../events/item-process-progress-list.vue | 256 ++++++++++++++++++ 2 files changed, 263 insertions(+), 7 deletions(-) create mode 100644 src/views/modules/events/item-process-progress-list.vue diff --git a/src/views/modules/events/edit-process-progress.vue b/src/views/modules/events/edit-process-progress.vue index 6001d4d..619e635 100644 --- a/src/views/modules/events/edit-process-progress.vue +++ b/src/views/modules/events/edit-process-progress.vue @@ -4,15 +4,15 @@
- {{item.handleType === 'project' ? '项目': item.handleType === 'issue' || item.handleType === 'issue-project' ? '议题' : item.handleType === 'event' || item.handleType === 'event-issue' ? '事件' : ''}} + {{item.handleType === 'project' ? '项目': item.handleType === 'issue' || item.handleType === 'issue-project' || item.handleType === 'event-issue' ? '议题' : item.handleType === 'event' ? '事件' : ''}}
[ {{item | formatState}} ] 处理部门: {{item.handlerDept}} 事件内容: {{item.eventContent}}
- + - + @@ -112,8 +112,8 @@ export default { item.stateName = '转项目' return '转项目' } else if (item.handleType === 'event') { - item.stateName = '事件发起' - return '事件发起' + item.stateName = '事件发布' + return '事件发布' } } }, @@ -135,7 +135,7 @@ export default { this.processProgress.forEach((item, index, arr) => { if (index < arr.length - 1 && arr[index].createdTime < arr[index + 1].createdTime) { flag = false - return this.$message.error(' [' + arr[index].stateName + '] 的操作时间应在 [' + arr[index + 1].stateName + '] 的操作时间之后') + return this.$message.error(' [' + arr[index].stateName + '] 的操作时间应在 [' + arr[index + 1].stateName + '] 的时间之后') } }) if (flag) { diff --git a/src/views/modules/events/item-process-progress-list.vue b/src/views/modules/events/item-process-progress-list.vue new file mode 100644 index 0000000..79f95b6 --- /dev/null +++ b/src/views/modules/events/item-process-progress-list.vue @@ -0,0 +1,256 @@ + + + From fd745c455914400769142890d292658baa42b52d Mon Sep 17 00:00:00 2001 From: zhangyongzhangyong <2012005003@qq.com> Date: Thu, 20 Jan 2022 15:18:05 +0800 Subject: [PATCH 5/6] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E5=A4=84=E7=90=86?= =?UTF-8?q?=E8=BF=9B=E5=B1=95=E7=BC=96=E8=BE=91=EF=BC=8C=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=20=E6=BB=A1=E6=84=8F=E5=BA=A6=E8=AF=84=E4=BB=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/events/edit-process-progress.vue | 38 ++++-- .../events/item-process-progress-list.vue | 119 ++++++------------ 2 files changed, 65 insertions(+), 92 deletions(-) diff --git a/src/views/modules/events/edit-process-progress.vue b/src/views/modules/events/edit-process-progress.vue index 619e635..199d25d 100644 --- a/src/views/modules/events/edit-process-progress.vue +++ b/src/views/modules/events/edit-process-progress.vue @@ -4,12 +4,12 @@
- {{item.handleType === 'project' ? '项目': item.handleType === 'issue' || item.handleType === 'issue-project' || item.handleType === 'event-issue' ? '议题' : item.handleType === 'event' ? '事件' : ''}} + {{item.handleType === 'project' || item.handleType === 'project-evaluation' ? '项目': item.handleType === 'issue' || item.handleType === 'issue-project' || item.handleType === 'event-issue' ? '议题' : item.handleType === 'event' ? '事件' : ''}}
[ {{item | formatState}} ] - 处理部门: {{item.handlerDept}} + 处理部门: {{item.handlerDept}} 事件内容: {{item.eventContent}}
@@ -21,10 +21,14 @@ placeholder="选择日期"> - - + + + - + + + + - + - + + + diff --git a/src/views/modules/events/item-process-progress-list.vue b/src/views/modules/events/item-process-progress-list.vue index 79f95b6..7246406 100644 --- a/src/views/modules/events/item-process-progress-list.vue +++ b/src/views/modules/events/item-process-progress-list.vue @@ -15,35 +15,13 @@ > - + - - - - - - - - {{ $t('query') }} @@ -63,26 +41,27 @@ width="50" > - - - - - { - let beginDateVal = this.dataForm.startTime - if (beginDateVal) { - return time.getTime() > new Date(beginDateVal).getTime() - } - } + itemStateOptions: [{ + value: '0', + label: '处理中' }, - pickerBeginDateAfter: { - disabledDate: time => { - let EndDateVal = this.dataForm.endTime - if (EndDateVal) { - return time.getTime() < new Date(EndDateVal).getTime() - } - } - } + { + value: '5', + label: '已关闭' + }, { + value: '10', + label: '已结案' + }] } }, components: { @@ -233,6 +177,15 @@ export default { } }, methods: { + showItemStateNameFormatter: function (row, column) { + if (row.itemState) { + let dict = this.itemStateOptions.filter(item => item.value === row.itemState)[0] + if (dict) { + return dict.label + } + } + return '' + }, editAction (id) { this.editVisible = true this.$nextTick(() => { From 306d6df45a50b2f9c3afa42666892c455d97cbfd Mon Sep 17 00:00:00 2001 From: zhangyongzhangyong <2012005003@qq.com> Date: Fri, 21 Jan 2022 16:39:43 +0800 Subject: [PATCH 6/6] =?UTF-8?q?=E6=93=8D=E4=BD=9C=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E4=B8=8D=E8=83=BD=20=3D=20=EF=BC=8C=E6=98=AF=E5=9B=A0=E4=B8=BA?= =?UTF-8?q?=E6=80=95=E6=89=80=E6=9C=89=E7=9A=84=E6=97=B6=E9=97=B4=E9=83=BD?= =?UTF-8?q?=E4=B8=80=E6=A0=B7=EF=BC=8C=E4=BB=8E=E8=80=8C=E4=B8=8D=E5=A5=BD?= =?UTF-8?q?=E5=8C=BA=E5=88=86=20=E9=A1=B9=E7=9B=AE=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/events/edit-process-progress.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/modules/events/edit-process-progress.vue b/src/views/modules/events/edit-process-progress.vue index 199d25d..c9f4934 100644 --- a/src/views/modules/events/edit-process-progress.vue +++ b/src/views/modules/events/edit-process-progress.vue @@ -146,7 +146,7 @@ export default { validateTime () { var flag = true this.processProgress.forEach((item, index, arr) => { - if (index < arr.length - 1 && arr[index].createdTime < arr[index + 1].createdTime) { + if (index < arr.length - 1 && arr[index].createdTime <= arr[index + 1].createdTime) { flag = false return this.$message.error(' [' + arr[index].stateName + '] 的操作时间应在 [' + arr[index + 1].stateName + '] 的时间之后') }