From 462375ff5ee0fd69efede6c19b1e9cb2899e53fb Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Fri, 10 Mar 2023 16:32:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E5=BE=85=E9=98=85=E3=80=81?= =?UTF-8?q?=E5=B7=B2=E9=98=85=E3=80=81=E5=BE=85=E5=8A=9E=E3=80=81=E5=B7=B2?= =?UTF-8?q?=E5=8A=9E--=E8=AF=84=E8=AE=BA=E5=A2=9E=E5=8A=A0=E9=99=84?= =?UTF-8?q?=E4=BB=B6=E4=B8=8A=E4=BC=A0=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- anrui-system-ui/src/api/Common/Upload.js | 3 + .../src/components/flow/flowRecord.vue | 20 +- .../src/components/uploadFile/upload.vue | 217 ++++++++++++++++++ anrui-system-ui/src/views/flow/doneList.vue | 23 +- .../src/views/flow/havereadList.vue | 18 +- .../src/views/flow/tobereadList.vue | 20 +- anrui-system-ui/src/views/flow/todoList.vue | 76 +++--- 7 files changed, 327 insertions(+), 50 deletions(-) create mode 100644 anrui-system-ui/src/components/uploadFile/upload.vue diff --git a/anrui-system-ui/src/api/Common/Upload.js b/anrui-system-ui/src/api/Common/Upload.js index 9c3db9d752..cf2eda9d51 100644 --- a/anrui-system-ui/src/api/Common/Upload.js +++ b/anrui-system-ui/src/api/Common/Upload.js @@ -17,6 +17,9 @@ export const upload_frameFile = '/api/portal/v1/appversion/save' // 移动端管理--上传icon(图标) export const uploadFileIcon = '/api/portal/file/upload' +// 图片上传 +export const uploadImgFile = '/api/portal/file/upload' + // 移除图片 export function deleteFilesOss(data) { return request({ diff --git a/anrui-system-ui/src/components/flow/flowRecord.vue b/anrui-system-ui/src/components/flow/flowRecord.vue index 02a8378e59..1ffae44588 100644 --- a/anrui-system-ui/src/components/flow/flowRecord.vue +++ b/anrui-system-ui/src/components/flow/flowRecord.vue @@ -47,7 +47,8 @@

- +
+
@@ -58,6 +59,9 @@ + + + + + diff --git a/anrui-system-ui/src/views/flow/doneList.vue b/anrui-system-ui/src/views/flow/doneList.vue index e4d2c9b8d2..d35f02ec09 100644 --- a/anrui-system-ui/src/views/flow/doneList.vue +++ b/anrui-system-ui/src/views/flow/doneList.vue @@ -126,8 +126,8 @@ - - + + 确定 取消 @@ -143,12 +143,16 @@ import { getStorage } from '@/utils/auth' import { revokeTask, getList, selectUrl, readXml, getFlowViewer, breakProcess, commentSave } from '@/api/flow/todo' import { flowRecord, revokeProcess } from '@/api/workflow/finished' import { loginDetails } from '@/api/user' +import upload from '@/components/uploadFile/upload' // import flow from "@/views/flow/flow"; export default { name: '', components: { - pageye, Pagination, flowRecords + pageye, + Pagination, + flowRecords, + upload }, data() { return { @@ -166,13 +170,15 @@ export default { taskName_now: '', url: '', commentVisible: false, // 评论内容弹框 + comment_ImgList: [], comment: { reviewer: '', reviewerSid: '', time: '', content: '', processId: '', - processInstSid: '' + processInstSid: '', + fileList: [] }, line_row: {}, loginInfo: { @@ -342,14 +348,21 @@ export default { time: '', content: '', processId: '', - processInstSid: '' + processInstSid: '', + fileList: [] } + this.comment_ImgList = [] }, handleCommentConfirm() { if (this.comment.content === '') { this.$message({ showClose: true, type: 'error', message: '请填写评论' }) return } + if (this.comment_ImgList.length > 0) { + for (var i = 0; i < this.comment_ImgList.length; i++) { + this.comment.fileList.push(this.comment_ImgList[i].url) + } + } this.comment.reviewer = window.sessionStorage.getItem('name') this.comment.reviewerSid = window.sessionStorage.getItem('userSid') this.comment.processId = this.line_row.procInsId diff --git a/anrui-system-ui/src/views/flow/havereadList.vue b/anrui-system-ui/src/views/flow/havereadList.vue index 47d388bf9f..0dbb9887bd 100644 --- a/anrui-system-ui/src/views/flow/havereadList.vue +++ b/anrui-system-ui/src/views/flow/havereadList.vue @@ -98,6 +98,7 @@ + 确定 取消 @@ -113,13 +114,15 @@ import { getStorage } from '@/utils/auth' import { selectUrl, readXml, getFlowViewer, commentSave } from '@/api/flow/todo' import { pagerList } from '@/api/flow/read' import { flowRecord } from '@/api/workflow/finished' +import upload from '@/components/uploadFile/upload' export default { name: '', components: { pageye, Pagination, - flowRecords + flowRecords, + upload }, data() { return { @@ -134,13 +137,15 @@ export default { tableKey: 0, url: '', commentVisible: false, // 评论内容弹框 + comment_ImgList: [], comment: { reviewer: '', reviewerSid: '', time: '', content: '', processId: '', - processInstSid: '' + processInstSid: '', + fileList: [] }, line_row: {}, loginInfo: { @@ -264,14 +269,21 @@ export default { time: '', content: '', processId: '', - processInstSid: '' + processInstSid: '', + fileList: [] } + this.comment_ImgList = [] }, handleCommentConfirm() { if (this.comment.content === '') { this.$message({ showClose: true, type: 'error', message: '请填写评论' }) return } + if (this.comment_ImgList.length > 0) { + for (var i = 0; i < this.comment_ImgList.length; i++) { + this.comment.fileList.push(this.comment_ImgList[i].url) + } + } this.comment.reviewer = window.sessionStorage.getItem('name') this.comment.reviewerSid = window.sessionStorage.getItem('userSid') this.comment.processId = this.line_row.procInsId diff --git a/anrui-system-ui/src/views/flow/tobereadList.vue b/anrui-system-ui/src/views/flow/tobereadList.vue index 40ac049732..c471dae009 100644 --- a/anrui-system-ui/src/views/flow/tobereadList.vue +++ b/anrui-system-ui/src/views/flow/tobereadList.vue @@ -87,6 +87,7 @@ + 确定 取消 @@ -102,12 +103,16 @@ import { getStorage } from '@/utils/auth' import { selectUrl, readXml, getFlowViewer, commentSave } from '@/api/flow/todo' import { pagerList, changeRead } from '@/api/flow/read' import { flowRecord } from '@/api/workflow/finished' +import upload from '@/components/uploadFile/upload' + + export default { name: '', components: { pageye, Pagination, - flowRecords + flowRecords, + upload }, data() { return { @@ -122,13 +127,15 @@ export default { tableKey: 0, url: '', commentVisible: false, // 评论内容弹框 + comment_ImgList: [], comment: { reviewer: '', reviewerSid: '', time: '', content: '', processId: '', - processInstSid: '' + processInstSid: '', + fileList: [] }, line_row: {}, loginInfo: { @@ -257,14 +264,21 @@ export default { time: '', content: '', processId: '', - processInstSid: '' + processInstSid: '', + fileList: [] } + this.comment_ImgList = [] }, handleCommentConfirm() { if (this.comment.content === '') { this.$message({ showClose: true, type: 'error', message: '请填写评论' }) return } + if (this.comment_ImgList.length > 0) { + for (var i = 0; i < this.comment_ImgList.length; i++) { + this.comment.fileList.push(this.comment_ImgList[i].url) + } + } this.comment.reviewer = window.sessionStorage.getItem('name') this.comment.reviewerSid = window.sessionStorage.getItem('userSid') this.comment.processId = this.line_row.procInsId diff --git a/anrui-system-ui/src/views/flow/todoList.vue b/anrui-system-ui/src/views/flow/todoList.vue index ed986d8f2f..c4fb14964e 100644 --- a/anrui-system-ui/src/views/flow/todoList.vue +++ b/anrui-system-ui/src/views/flow/todoList.vue @@ -13,13 +13,9 @@ - + - + 查询 @@ -27,12 +23,10 @@
待办任务列表
- +
- +