Commit b18058d6 by Joey

fix(@gms/gms-plugin-billexpand): 修复作为外部系统嵌入找不到taskId的问题

- 改用将taskId保存在window.GMS上的方式
parent f6d68162
......@@ -181,8 +181,8 @@ export default {
}
},
mounted() {
this.reviewParam['taskId'] = GMS.$hideContainer.$route.query.taskId;
this.taskId = GMS.$hideContainer.$route.query.taskId;
this.reviewParam['taskId'] = GMS.workflowTaskId
this.taskId = GMS.workflowTaskId;
// this.reviewParam['billid'] = this.$route.query.id;
this.context.bill.setGlobalParam('reviewParam',this.reviewParam);
this.value = this.context.bill.getGlobalParam('reviewParam').suggestions
......
......@@ -14,13 +14,11 @@ export default {
}
let templateName = param.viewName;
let billId = context.selects[0][param.billId];
window.GMS.workflowTaskId = context.selects[0][param.taskId]
if (
window.osConfig.appOpenMode &&
window.osConfig.appOpenMode == "apploader"
) {
GMS.$hideContainer.$router.push({
path: "/approvalBillForm/" + param.viewName + "/" + context.selects[0][param.billId] + "?taskId=" + context.selects[0][param.taskId]
});
GMS.$hideContainer.$portalAPI.emit(
"open-new-page", //打开一个新的页签
getUUID(),
......@@ -36,15 +34,6 @@ export default {
}
);
} else {
let href = window.location.href
if (href.indexOf('taskId') > -1) {
href = href.substring(0, href.indexOf('taskId'))
href += 'taskId=' + context.selects[0][param.taskId]
}
else {
href += '?taskId=' + context.selects[0][param.taskId]
}
window.location.href = href
GMS.$hideContainer.addComponent(typesBill, {}, function(c) {
c.templateName = templateName;
c.billId = billId;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment