提交 5992eb0b 编写于 作者: tony001's avatar tony001

update:更新

上级 e93a6d51
......@@ -184,34 +184,38 @@
* @memberof ${srfclassname('${view.codeName}')}Base
*/
public handleWFAddiFeature(linkItem: any, data: any) {
let featureTag: string = this.wfAddiFeatureRef[linkItem.type].featureTag;
if (!featureTag) return;
<#noparse>let targetView: any = this.viewRefData[`WFUTILACTION@${featureTag}`];</#noparse>
if (!targetView) {
<#noparse>this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: `未找到${featureTag}映射视图` });</#noparse>
return;
}
let tempContext: any = Util.deepCopy(this.context);
Object.assign(tempContext,{${appde.getCodeName()?lower_case}:data && data[0].srfkey});
let tempViewParam: any = { actionForm: linkItem.sequenceflowform };
const appmodal = this.$appmodal.openModal({ viewname: targetView.viewname, title: (this.$t(targetView.title) as string), height: targetView.height, width: targetView.width }, tempContext, tempViewParam);
appmodal.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
if (linkItem.sequenceflowform) {
let featureTag: string = this.wfAddiFeatureRef[linkItem.type].featureTag;
if (!featureTag) return;
<#noparse>let targetView: any = this.viewRefData[`WFUTILACTION@${featureTag}`];</#noparse>
if (!targetView) {
<#noparse>this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: `未找到${featureTag}映射视图` });</#noparse>
return;
}
let tempSubmitData: any = Util.deepCopy(data[0]);
if (result.datas && result.datas[0]) {
const resultData: any = result.datas[0];
if (Object.keys(resultData).length > 0) {
let tempData: any = {};
Object.keys(resultData).forEach((key: any) => {
if (resultData[key] && (key !== "srfuf")) tempData[key] = resultData[key];
})
Object.assign(tempSubmitData, tempData);
let tempContext: any = Util.deepCopy(this.context);
Object.assign(tempContext,{${appde.getCodeName()?lower_case}:data && data[0].srfkey});
let tempViewParam: any = { actionForm: linkItem.sequenceflowform };
const appmodal = this.$appmodal.openModal({ viewname: targetView.viewname, title: (this.$t(targetView.title) as string), height: targetView.height, width: targetView.width }, tempContext, tempViewParam);
appmodal.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
this.submitWFAddiFeature(linkItem, tempSubmitData);
}
});
let tempSubmitData: any = Util.deepCopy(data[0]);
if (result.datas && result.datas[0]) {
const resultData: any = result.datas[0];
if (Object.keys(resultData).length > 0) {
let tempData: any = {};
Object.keys(resultData).forEach((key: any) => {
if (resultData[key] && (key !== "srfuf")) tempData[key] = resultData[key];
})
Object.assign(tempSubmitData, tempData);
}
this.submitWFAddiFeature(linkItem, tempSubmitData);
}
});
}else{
this.submitWFAddiFeature(linkItem, data);
}
}
/**
......
......@@ -225,34 +225,38 @@
* @memberof ${srfclassname('${view.codeName}')}Base
*/
public handleWFAddiFeature(linkItem: any, data: any) {
let featureTag: string = this.wfAddiFeatureRef[linkItem.type].featureTag;
if (!featureTag) return;
<#noparse>let targetView: any = this.viewRefData[`WFUTILACTION@${featureTag}`];</#noparse>
if (!targetView) {
<#noparse>this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: `未找到${featureTag}映射视图` });</#noparse>
return;
}
let tempContext: any = Util.deepCopy(this.context);
Object.assign(tempContext,{${appde.getCodeName()?lower_case}:data && data[0].srfkey});
let tempViewParam: any = { actionForm: linkItem.sequenceflowform };
const appmodal = this.$appmodal.openModal({ viewname: targetView.viewname, title: (this.$t(targetView.title) as string), height: targetView.height, width: targetView.width }, tempContext, tempViewParam);
appmodal.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
if (linkItem.sequenceflowform) {
let featureTag: string = this.wfAddiFeatureRef[linkItem.type].featureTag;
if (!featureTag) return;
<#noparse>let targetView: any = this.viewRefData[`WFUTILACTION@${featureTag}`];</#noparse>
if (!targetView) {
<#noparse>this.$Notice.error({ title: (this.$t('app.commonWords.wrong') as string), desc: `未找到${featureTag}映射视图` });</#noparse>
return;
}
let tempSubmitData: any = Util.deepCopy(data[0]);
if (result.datas && result.datas[0]) {
const resultData: any = result.datas[0];
if (Object.keys(resultData).length > 0) {
let tempData: any = {};
Object.keys(resultData).forEach((key: any) => {
if (resultData[key] && (key !== "srfuf")) tempData[key] = resultData[key];
})
Object.assign(tempSubmitData, tempData);
let tempContext: any = Util.deepCopy(this.context);
Object.assign(tempContext,{${appde.getCodeName()?lower_case}:data && data[0].srfkey});
let tempViewParam: any = { actionForm: linkItem.sequenceflowform };
const appmodal = this.$appmodal.openModal({ viewname: targetView.viewname, title: (this.$t(targetView.title) as string), height: targetView.height, width: targetView.width }, tempContext, tempViewParam);
appmodal.subscribe((result: any) => {
if (!result || !Object.is(result.ret, 'OK')) {
return;
}
this.submitWFAddiFeature(linkItem, tempSubmitData);
}
});
let tempSubmitData: any = Util.deepCopy(data[0]);
if (result.datas && result.datas[0]) {
const resultData: any = result.datas[0];
if (Object.keys(resultData).length > 0) {
let tempData: any = {};
Object.keys(resultData).forEach((key: any) => {
if (resultData[key] && (key !== "srfuf")) tempData[key] = resultData[key];
})
Object.assign(tempSubmitData, tempData);
}
this.submitWFAddiFeature(linkItem, tempSubmitData);
}
});
}else{
this.submitWFAddiFeature(linkItem, data);
}
}
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册