diff --git a/anrui-system-ui/src/api/flow/read.js b/anrui-system-ui/src/api/flow/read.js new file mode 100644 index 0000000000..109058b0fd --- /dev/null +++ b/anrui-system-ui/src/api/flow/read.js @@ -0,0 +1,22 @@ +import request from '@/utils/request' + +// 查看待阅和已阅列表 +export function pagerList(data) { + return request({ + url: '/message/v1/messagelist/todoAllReadList', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) +} + +// 待阅列表--修改为已阅 +export function changeRead(data) { + return request({ + url: '/message/v1/messagelist/changeRead?sids=' + data, + method: 'get' + }) +} + diff --git a/anrui-system-ui/src/api/flow/todo.js b/anrui-system-ui/src/api/flow/todo.js index 417d96f7e6..61bb9b2799 100644 --- a/anrui-system-ui/src/api/flow/todo.js +++ b/anrui-system-ui/src/api/flow/todo.js @@ -100,6 +100,18 @@ export function breakProcess(params) { }) } +// 审批记录--保存评论 +export function commentSave(data) { + return request({ + url: '/flowable/v1/processcomment/save', + method: 'post', + data: data, + headers: { + 'Content-Type': 'application/json' + } + }) +} + // 根据流程定义id,节点id,终端及类型查询流程与业务表单url export function selectUrl(params) { return request({ diff --git a/anrui-system-ui/src/router/index.js b/anrui-system-ui/src/router/index.js index 6314f2495b..37a16736b7 100644 --- a/anrui-system-ui/src/router/index.js +++ b/anrui-system-ui/src/router/index.js @@ -5,7 +5,6 @@ import Layout from '@/layout' Vue.use(Router) - /* 所有角色可以访问/没有权限要求的基页 */ export const constantRoutes = [ @@ -255,7 +254,7 @@ export const constantRoutes = [ meta: { title: '表单配置' } - }, + } ] }, { @@ -266,7 +265,7 @@ export const constantRoutes = [ path: '/datamapping', component: () => import('@/views/datamapping/shujuyingshe.vue'), name: 'shujuyingshe', - meta: {title: '数据映射', noCache: true} + meta: { title: '数据映射', noCache: true } }] }, // { @@ -291,6 +290,14 @@ export const constantRoutes = [ path: '/done', component: () => import('@/views/flow/doneList.vue') }, + { + path: '/toberead', + component: () => import('@/views/flow/tobereadList.vue') + }, + { + path: '/haveread', + component: () => import('@/views/flow/havereadList.vue') + }, // { // path: '/', @@ -314,7 +321,7 @@ export const constantRoutes = [ }, { path: '/flow/flowRecordForBusiness', - component: ()=> import('@/views/flow/flowRecordForBusiness'), + component: () => import('@/views/flow/flowRecordForBusiness'), name: 'flowRecordForBusiness' }/*, { diff --git a/anrui-system-ui/src/views/Home/Home.vue b/anrui-system-ui/src/views/Home/Home.vue index bcc7f736e6..613de8acea 100644 --- a/anrui-system-ui/src/views/Home/Home.vue +++ b/anrui-system-ui/src/views/Home/Home.vue @@ -34,11 +34,11 @@

已办工作

-
  • +
  • 待阅工作

  • -
  • +
  • 已阅工作

  • @@ -360,6 +360,12 @@ export default { // this.$router.push({ path: '/done' + '?token=' + getStorage() }) // window.open('http://127.0.0.1/message'+'?token='+getStorage(),'_blank') }, + tobereadwork() { + window.open('/#/toberead' + '?token=' + getStorage(), '_blank') + }, + havereadwork() { + window.open('/#/haveread' + '?token=' + getStorage(), '_blank') + }, logout() { this.$confirm('确定要退出吗, 是否继续?', '提示', { confirmButtonText: '确定', diff --git a/anrui-system-ui/src/views/flow/doneList.vue b/anrui-system-ui/src/views/flow/doneList.vue index 947edc1b01..e4d2c9b8d2 100644 --- a/anrui-system-ui/src/views/flow/doneList.vue +++ b/anrui-system-ui/src/views/flow/doneList.vue @@ -2,7 +2,7 @@
    - + 关闭
    @@ -31,7 +31,8 @@ @@ -41,41 +42,41 @@ - - - - - + + + + +
    @@ -90,16 +91,16 @@ height="1%" :before-close="closeIt" center> - + - + +
    + 评论 +
    @@ -122,334 +123,381 @@ 取消
    + + + + + + + 确定 + 取消 + +
    diff --git a/anrui-system-ui/src/views/flow/flowRecordForBusiness.vue b/anrui-system-ui/src/views/flow/flowRecordForBusiness.vue index e2ee8273cd..0d9d5c7d4c 100644 --- a/anrui-system-ui/src/views/flow/flowRecordForBusiness.vue +++ b/anrui-system-ui/src/views/flow/flowRecordForBusiness.vue @@ -4,70 +4,71 @@ diff --git a/anrui-system-ui/src/views/flow/havereadList.vue b/anrui-system-ui/src/views/flow/havereadList.vue new file mode 100644 index 0000000000..5e8518c39e --- /dev/null +++ b/anrui-system-ui/src/views/flow/havereadList.vue @@ -0,0 +1,368 @@ + + + + diff --git a/anrui-system-ui/src/views/flow/tobereadList.vue b/anrui-system-ui/src/views/flow/tobereadList.vue new file mode 100644 index 0000000000..29104562fc --- /dev/null +++ b/anrui-system-ui/src/views/flow/tobereadList.vue @@ -0,0 +1,368 @@ + + + + diff --git a/anrui-system-ui/src/views/flow/todoList.vue b/anrui-system-ui/src/views/flow/todoList.vue index a5399d0dc0..96c9a173e7 100644 --- a/anrui-system-ui/src/views/flow/todoList.vue +++ b/anrui-system-ui/src/views/flow/todoList.vue @@ -102,17 +102,29 @@ - + +
    + 评论 +
    + + + + + + 确定 + 取消 + +