提交 225f6fe1 编写于 作者: tony001's avatar tony001

update:更新开始流程逻辑

上级 04484bf5
......@@ -26,12 +26,12 @@
<#assign curWorkflow = view.getPSWorkflow() />
<#-- 通过是否使用代理模式来区分流程启动的模式 -->
<#if curWorkflow.isUseWFProxyApp()>
xData.wfstart(args).then((response: any) => {
xData.wfstart(param).then((response: any) => {
<#else>
xData.wfstart(args,localdata).then((response: any) => {
xData.wfstart(param,localdata).then((response: any) => {
</#if>
<#else>
xData.wfstart(args).then((response: any) => {
xData.wfstart(param).then((response: any) => {
</#if>
if (!response || response.status !== 200) {
return;
......@@ -41,11 +41,11 @@
});
}
const openStartView: Function = async (item: any, localdata: any) => {
if (item['wfversion']) {
<#noparse>const targetView: any = that.viewRefData ? that.viewRefData[`WFSTART@${item['wfversion']}`] : null;</#noparse>
if (item['modelversion']) {
<#noparse>const targetView: any = that.viewRefData ? that.viewRefData[`WFSTART@${item['modelversion']}`] : null;</#noparse>
if (targetView) {
const tempContext = Util.deepCopy(that.context);
<#noparse>const tempViewParams = { actionView: `WFSTART@${item['wfversion']}`, actionForm: item['process-form'] };</#noparse>
<#noparse>const tempViewParams = { actionView: `WFSTART@${item['modelversion']}`, actionForm: item['process-form'] };</#noparse>
const container: Subject<any> = that.$appmodal.openModal(targetView, tempContext, tempViewParams);
container.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
......@@ -122,8 +122,7 @@
}
})
} else {
localData = { processDefinitionKey: targetData[0]['definitionkey'] }
targetData[0]['process-view'] = "WFSTART@1";
localData = { processDefinitionKey: targetData[0]['definitionkey'] };
openStartView(targetData[0], localData);
}
})
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册