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

update:更新开始流程逻辑

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