From e3e9116b59b582cf1a09f7e5c50b68be7e7f4799 Mon Sep 17 00:00:00 2001 From: shijing Date: Wed, 13 Oct 2021 09:54:11 +0800 Subject: [PATCH 01/14] 1013 --- hb_client/src/api/workflow.js | 11 +- .../src/components/faceLogin/faceLogin.vue | 140 +++++ hb_client/src/store/modules/user.js | 2 +- hb_client/src/views/monitor/service.vue | 537 +++++++++--------- hb_client/src/views/testModel/markImage.vue | 67 +-- hb_client/src/views/workflow/ticket.vue | 165 ++---- 6 files changed, 497 insertions(+), 425 deletions(-) create mode 100644 hb_client/src/components/faceLogin/faceLogin.vue diff --git a/hb_client/src/api/workflow.js b/hb_client/src/api/workflow.js index 9e69564..137b132 100644 --- a/hb_client/src/api/workflow.js +++ b/hb_client/src/api/workflow.js @@ -162,6 +162,14 @@ export function ticketAccpet(id,data) { data }) } +//撤回工单,允许创建人在指定状态撤回工单至初始状态 +export function getTicketRetreat(id,data) { + return request({ + url: `/wf/ticket/${id}/retreat/`, + method: 'post', + data + }) +} //工单详情 export function getTicketDetail(id) { return request({ @@ -169,7 +177,8 @@ export function getTicketDetail(id) { method: 'get' }) } -//工单详情 + +//工单流转 export function getTicketTransitions(id) { return request({ url: `/wf/ticket/${id}/transitions/`, diff --git a/hb_client/src/components/faceLogin/faceLogin.vue b/hb_client/src/components/faceLogin/faceLogin.vue new file mode 100644 index 0000000..ec58b14 --- /dev/null +++ b/hb_client/src/components/faceLogin/faceLogin.vue @@ -0,0 +1,140 @@ + + + + + + diff --git a/hb_client/src/store/modules/user.js b/hb_client/src/store/modules/user.js index 2ad5d0f..0f1d024 100644 --- a/hb_client/src/store/modules/user.js +++ b/hb_client/src/store/modules/user.js @@ -53,7 +53,7 @@ const actions = { return new Promise((resolve, reject) => { getInfo(state.token).then(response => { const { data } = response - + sessionStorage.setItem('userId',data.id); if (!data) { reject('验证失败,重新登陆.') } diff --git a/hb_client/src/views/monitor/service.vue b/hb_client/src/views/monitor/service.vue index e81b97a..e2bfb1c 100644 --- a/hb_client/src/views/monitor/service.vue +++ b/hb_client/src/views/monitor/service.vue @@ -1,273 +1,273 @@ - - diff --git a/hb_client/src/views/testModel/markImage.vue b/hb_client/src/views/testModel/markImage.vue index 31fa253..1801150 100644 --- a/hb_client/src/views/testModel/markImage.vue +++ b/hb_client/src/views/testModel/markImage.vue @@ -17,13 +17,22 @@ 保存的图片
- + + +
+ +
+