|
@@ -327,6 +327,7 @@ export default {
|
|
modalIsShow: false,
|
|
modalIsShow: false,
|
|
isSubmit: false,
|
|
isSubmit: false,
|
|
flowList: [],
|
|
flowList: [],
|
|
|
|
+ flowInfo: {},
|
|
examTask: {},
|
|
examTask: {},
|
|
needReview: false,
|
|
needReview: false,
|
|
task: {},
|
|
task: {},
|
|
@@ -409,7 +410,6 @@ export default {
|
|
},
|
|
},
|
|
created() {
|
|
created() {
|
|
this.getExamRule();
|
|
this.getExamRule();
|
|
- this.getFlowList();
|
|
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
async getExamRule() {
|
|
async getExamRule() {
|
|
@@ -419,7 +419,12 @@ export default {
|
|
},
|
|
},
|
|
async getFlowList() {
|
|
async getFlowList() {
|
|
const data = await flowDetailByType();
|
|
const data = await flowDetailByType();
|
|
- this.flowList = data || [];
|
|
|
|
|
|
+ if (!data) return;
|
|
|
|
+ this.flowInfo = {
|
|
|
|
+ customFlowId: data.id,
|
|
|
|
+ version: data.version
|
|
|
|
+ };
|
|
|
|
+ this.flowList = data.flowTaskResultList || [];
|
|
if (this.flowList.length) {
|
|
if (this.flowList.length) {
|
|
this.flowList[0].type = "success";
|
|
this.flowList[0].type = "success";
|
|
}
|
|
}
|
|
@@ -433,6 +438,7 @@ export default {
|
|
this.paperAttachments = [];
|
|
this.paperAttachments = [];
|
|
},
|
|
},
|
|
visibleChange() {
|
|
visibleChange() {
|
|
|
|
+ if (!this.flowList.length) this.getFlowList();
|
|
this.initData();
|
|
this.initData();
|
|
},
|
|
},
|
|
checkData() {
|
|
checkData() {
|
|
@@ -662,7 +668,8 @@ export default {
|
|
this.getTaskDetailData();
|
|
this.getTaskDetailData();
|
|
let datas = {
|
|
let datas = {
|
|
examTaskDetail: this.examTaskDetail,
|
|
examTaskDetail: this.examTaskDetail,
|
|
- examTask: this.examTask
|
|
|
|
|
|
+ examTask: this.examTask,
|
|
|
|
+ ...this.flowInfo
|
|
};
|
|
};
|
|
const data = await teacherCreateTaskApply(datas).catch(() => {});
|
|
const data = await teacherCreateTaskApply(datas).catch(() => {});
|
|
this.isSubmit = false;
|
|
this.isSubmit = false;
|