| | |
| | | <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"> |
| | |
| | | |
| | | |
| | | import leaveHistoryForm from "./leaveHistoryForm"; |
| | | import {getToken} from "@/utils/auth"; |
| | | |
| | | export default { |
| | | name: 'Leave', |
| | |
| | | }, |
| | | /** 进度查看 */ |
| | | 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() { |
| | |
| | | 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(); |
| | | }) |
| | | } |
| | | } |