|
|
@@ -57,7 +57,7 @@
|
|
|
@pagination="getList"/>
|
|
|
|
|
|
<el-dialog title="入职审批(修改)" :visible.sync="openEdit" width="800px" append-to-body>
|
|
|
- <async-biz-form-component :id="id"></async-biz-form-component>
|
|
|
+ <async-biz-form-component :id="this.processInstance.businessKey"></async-biz-form-component>
|
|
|
</el-dialog>
|
|
|
|
|
|
</div>
|
|
|
@@ -73,6 +73,7 @@ export default {
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+ processInstance:{},
|
|
|
id: undefined, // 流程实例的编号
|
|
|
//详情页面id
|
|
|
businessKey:'',
|
|
|
@@ -120,19 +121,8 @@ export default {
|
|
|
},
|
|
|
/** 处理审批按钮 */
|
|
|
handleAudit(row) {
|
|
|
- //将业务表单,注册为动态组件
|
|
|
- const path = '/oa/entry/detail';
|
|
|
- console.log("path:" + path)
|
|
|
- Vue.component("async-biz-form-component", function (resolve) {
|
|
|
- require([`@/views${path}`], resolve);
|
|
|
- });
|
|
|
- this.openEdit = true;
|
|
|
- // this.$router.push({ name: "BpmProcessInstanceDetail", query: { id: row.processInstance.id}});
|
|
|
- },
|
|
|
- /** 获得流程实例 */
|
|
|
- getDetail() {
|
|
|
- // 获得流程实例相关
|
|
|
- getProcessInstance(this.id).then(response => {
|
|
|
+ // 获得流程实例相关
|
|
|
+ getProcessInstance(row.id).then(response => {
|
|
|
if (!response.data) {
|
|
|
this.$message.error('查询不到流程信息!');
|
|
|
return;
|
|
|
@@ -142,12 +132,14 @@ export default {
|
|
|
|
|
|
//将业务表单,注册为动态组件
|
|
|
const path = this.processInstance.processDefinition.formCustomViewPath;
|
|
|
+ // const path = '/oa/entry/detail';
|
|
|
console.log("path:" + path)
|
|
|
Vue.component("async-biz-form-component", function (resolve) {
|
|
|
require([`@/views${path}`], resolve);
|
|
|
});
|
|
|
+ this.openEdit = true;
|
|
|
});
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|