diff --git a/hb_client/src/api/workflow.js b/hb_client/src/api/workflow.js
index 74be8dd..5fd2b05 100644
--- a/hb_client/src/api/workflow.js
+++ b/hb_client/src/api/workflow.js
@@ -146,6 +146,14 @@ export function getTickets(query) {
params:query
})
}
+//新建工单
+export function createTicket(data) {
+ return request({
+ url: '/wf/ticket/',
+ method: 'post',
+ data
+ })
+}
//工单详情
export function getTicketDetail(id) {
return request({
diff --git a/hb_client/src/views/mtm/process.vue b/hb_client/src/views/mtm/process.vue
index 767628f..99654d2 100644
--- a/hb_client/src/views/mtm/process.vue
+++ b/hb_client/src/views/mtm/process.vue
@@ -16,8 +16,7 @@
fit
stripe
highlight-current-row
- max-height="600"
- height="100"
+ height="100"
v-el-height-adaptive-table="{bottomOffset: 50}"
>
diff --git a/hb_client/src/views/testModel/faceLogin.vue b/hb_client/src/views/testModel/faceLogin.vue
index 111a824..335298a 100644
--- a/hb_client/src/views/testModel/faceLogin.vue
+++ b/hb_client/src/views/testModel/faceLogin.vue
@@ -5,7 +5,7 @@
-
+
@@ -22,8 +22,8 @@
props:['src'],
data () {
return {
- videoWidth: 900,
- videoHeight: 700,
+ videoWidth: 500,
+ videoHeight: 400,
videoArr:[],//所有的摄像头
modelSel:'',//
myInterval: null,
@@ -64,17 +64,14 @@
setImage () {
let canvas = document.getElementById("myCanvas");
let context = canvas.getContext('2d');
- var video = document.getElementById("myVideo");
+ let video = document.getElementById("myVideo");
context.drawImage(video,0,0,90,68);
- var image = new Image();
+ let image = new Image();
image = canvas.toDataURL('image/png');
- document.getElementById('res').innerHTML = '
';
- console.log(image);
- debugger;
+ document.getElementById('res').innerHTML = '
';
let imgData = {base64:image};
faceLogin(imgData).then((res) => {
if (res.code >= 200) {
- debugger;
this.$message.success("成功");
}
});
@@ -183,12 +180,12 @@
diff --git a/hb_client/src/views/workflow/index.vue b/hb_client/src/views/workflow/index.vue
index 5d8ae3a..c92c762 100644
--- a/hb_client/src/views/workflow/index.vue
+++ b/hb_client/src/views/workflow/index.vue
@@ -32,11 +32,11 @@
diff --git a/hb_client/src/views/workflow/state.vue b/hb_client/src/views/workflow/state.vue
index 8c7062c..7895dca 100644
--- a/hb_client/src/views/workflow/state.vue
+++ b/hb_client/src/views/workflow/state.vue
@@ -134,6 +134,14 @@
+
+
+
+
+
+
+
+
@@ -169,6 +177,7 @@ export default {
enable_retreat:'',
participant_type:'',
participant:'',
+ distribute_type:'',
},
participant:'',
participants:[],
@@ -296,6 +305,7 @@ export default {
this.wfstate = Object.assign({}, scope.row); // copy obj
this.participants = this.wfstate.participant;
this.participant = this.wfstate.participant;
+ this.wfstate.distribute_type = this.wfstate.distribute_type.toString();
this.dialogType = "edit";
this.dialogVisible = true;
this.$nextTick(() => {
diff --git a/hb_client/src/views/workflow/ticket.vue b/hb_client/src/views/workflow/ticket.vue
index c79eab1..1d0895b 100644
--- a/hb_client/src/views/workflow/ticket.vue
+++ b/hb_client/src/views/workflow/ticket.vue
@@ -23,17 +23,34 @@
@click="handleFilter"
>搜索
+
+ 新增
+
-
+
- 已提交
- 已完成
- 审批中
+ 草稿中
+ 进行中
+ 被退回
+ 被撤回
+ 已完成
+ 已关闭
+
+
+
+
+ {{scope.row.state_.name}}中
+ 已{{scope.row.state_.name}}
@@ -162,8 +179,7 @@
-
+
@@ -173,27 +189,116 @@
流水号:{{ticketDetail.sn}}
- 开始时间:{{}}
- 请假类型:{{ticketDetail.workflow_.name}}
- 创建人:{{}}
- 请假原因:{{ticketDetail.workflow_.name}}
+ 创建时间:{{ticketDetail.create_time}}
标题:{{ticketDetail.title}}
- 结束时间:{{}}
- 创建时间:{{ticketDetail.create_time}}
- 请假天数:{{ticketDetail.ticket_data.days}}
+
{{item.name}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 上传文件
+
+
+
+
+
+ 取消
+ 确认
+
+