From 47d7d2c1e141d805b28c54ac8cf6d5b6f1a2610d Mon Sep 17 00:00:00 2001 From: shikeying <pxzsky@163.com> Date: 星期三, 22 三月 2023 14:27:55 +0800 Subject: [PATCH] 演示请假流程 --- src/views/workflow/leave/index.vue | 26 +++++++++++++------------- 1 files changed, 13 insertions(+), 13 deletions(-) diff --git a/src/views/workflow/leave/index.vue b/src/views/workflow/leave/index.vue index 9f446d8..106e097 100644 --- a/src/views/workflow/leave/index.vue +++ b/src/views/workflow/leave/index.vue @@ -90,7 +90,7 @@ <el-table-column label="鍘熷洜" align="center" prop="reason"/> <el-table-column label="寮�濮嬫椂闂�" align="center" prop="leave_start_time" width="180"> <template slot-scope="scope"> - <span>{{ parseTime(scope.row.leaveStartTime, '{y}-{m}-{d}') }}</span> + <span>{{ parseTime(scope.row.leave_start_time, '{y}-{m}-{d}') }}</span> </template> </el-table-column> <el-table-column label="缁撴潫鏃堕棿" align="center" prop="leave_end_time" width="180"> @@ -235,6 +235,7 @@ import leaveHistoryForm from "./leaveHistoryForm"; + import {getToken} from "@/utils/auth"; export default { name: 'Leave', @@ -404,14 +405,13 @@ }, /** 杩涘害鏌ョ湅 */ checkTheSchedule(row) { - getDefinitionsByInstanceId(row.instanceId).then(response => { - let data = response.data + getDefinitionsByInstanceId(row.instance_id).then(response => { + let data = response.data; + localStorage.setItem("Authorization", getToken()); // this.url = '/bpmnjs/index.html?type=lookBpmn&deploymentFileUUID='+data.deploymentID+'&deploymentName='+ encodeURI(data.resourceName); - this.modelerUrl = '/bpmnjs/index.html?type=lookBpmn&instanceId=' + row.instanceId + '&deploymentFileUUID=' + data.deploymentID + '&deploymentName=' + encodeURI(data.resourceName); - this.modelVisible = true + this.modelerUrl = '/bpmnjs/index.html?type=lookBpmn&instanceId=' + row.instance_id + '&deploymentFileUUID=' + data.deploymentID + '&deploymentName=' + encodeURI(data.resourceName); + this.modelVisible = true; }) - - }, /** 鎻愪氦鎸夐挳 */ submitForm() { @@ -419,15 +419,15 @@ if (valid) { if (this.form.id != null) { updateLeave(this.form).then(response => { - this.msgSuccess('淇敼鎴愬姛') - this.open = false - this.getList() + this.$modal.msgSuccess('淇敼鎴愬姛'); + this.open = false; + this.getList(); }) } else { addLeave(this.form).then(response => { - this.msgSuccess('鏂板鎴愬姛') - this.open = false - this.getList() + this.$modal.msgSuccess('鏂板鎴愬姛'); + this.open = false; + this.getList(); }) } } -- Gitblit v1.9.1