#人事审批流程图获取
This commit is contained in:
parent
f0b7583404
commit
d0a59f7ef1
@ -54,8 +54,7 @@
|
|||||||
</el-steps>
|
</el-steps>
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
<el-tab-pane label="流程图">
|
<el-tab-pane label="流程图">
|
||||||
<!-- TODO 云扬四海 svg 要如何展示 -->
|
<div v-html="highlightSvgUrl"></div>
|
||||||
流程图-TODO
|
|
||||||
</el-tab-pane>
|
</el-tab-pane>
|
||||||
</el-tabs>
|
</el-tabs>
|
||||||
|
|
||||||
@ -98,6 +97,7 @@ export default {
|
|||||||
label: '不同意'
|
label: '不同意'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
highlightSvgUrl: "",
|
||||||
statusFormat(row, column) {
|
statusFormat(row, column) {
|
||||||
return getDictDataLabel(DICT_TYPE.OA_LEAVE_STATUS, row.status)
|
return getDictDataLabel(DICT_TYPE.OA_LEAVE_STATUS, row.status)
|
||||||
},
|
},
|
||||||
@ -145,8 +145,15 @@ export default {
|
|||||||
this.leaveApprove.taskId = taskId;
|
this.leaveApprove.taskId = taskId;
|
||||||
this.leaveApprove.processInstanceId = this.$route.query.processInstanceId;
|
this.leaveApprove.processInstanceId = this.$route.query.processInstanceId;
|
||||||
this.getForm(businessKey);
|
this.getForm(businessKey);
|
||||||
|
this.getHighlightImg(this.leaveApprove.processInstanceId);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
getHighlightImg(processInstanceId){
|
||||||
|
getHighlightImg(processInstanceId).then(response => {
|
||||||
|
console.log(response)
|
||||||
|
this.highlightSvgUrl = response
|
||||||
|
})
|
||||||
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitForm() {
|
submitForm() {
|
||||||
this.$refs["taskForm"].validate(valid => {
|
this.$refs["taskForm"].validate(valid => {
|
||||||
@ -180,7 +187,6 @@ export default {
|
|||||||
taskSteps(data).then(response => {
|
taskSteps(data).then(response => {
|
||||||
this.handleTask = response.data;
|
this.handleTask = response.data;
|
||||||
});
|
});
|
||||||
getHighlightImg(this.leaveApprove.processInstanceId);
|
|
||||||
},
|
},
|
||||||
approveChange(){
|
approveChange(){
|
||||||
if (this.leaveApprove.approved === 1) {
|
if (this.leaveApprove.approved === 1) {
|
||||||
|
@ -358,6 +358,7 @@ export default {
|
|||||||
},
|
},
|
||||||
/** 审批进度 */
|
/** 审批进度 */
|
||||||
handleStep(row) {
|
handleStep(row) {
|
||||||
|
const that = this;
|
||||||
const id = row.processInstanceId;
|
const id = row.processInstanceId;
|
||||||
processHistorySteps(id).then(response => {
|
processHistorySteps(id).then(response => {
|
||||||
this.handleTask.historyTask = response.data;
|
this.handleTask.historyTask = response.data;
|
||||||
|
Loading…
Reference in New Issue
Block a user