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 @@
待办任务列表
- +
- +