提交 d76d2e52 编写于 作者: KK's avatar KK

动态编辑--fix11

上级 3c8bf6cb
......@@ -107,30 +107,21 @@ import { toastController, alertController } from '@ionic/core';
* @returns {Promise<any>}
* @memberof ${srfclassname('${view.codeName}')}Base
*/
public async openSrfwfmemo(linkItem:any) :Promise<any>{
let falg = false;
const alert = await alertController.create({
header: linkItem.sequenceFlowName,
buttons: [{
text: '取消',
},
{
text: '提交',
handler: () => {
falg = true
}
},],
inputs : [{
name: 'srfwfmemo',
id: 'srfwfmemo',
type: 'textarea',
placeholder: '请输入'+linkItem.sequenceFlowName+"意见(非必填)",
value:this.srfwfmemo
},]});
await alert.present();
let reData = await alert.onDidDismiss();
this.srfwfmemo = reData.data.values.srfwfmemo;
return falg;
public async openSrfwfmemo(linkItem:any,datas:any) :Promise<any>{
if(linkItem && linkItem.sequenceflowview && this.viewRefData[`WFACTION@Mob${linkItem.sequenceflowview}`]){
let tempContext:any = this.$util.deepCopy(this.context);
let tempViewParam:any = {actionView:linkItem.sequenceflowview,actionForm:linkItem.sequenceflowform};
let targetView:any = this.viewRefData[`WFACTION@Mob${linkItem.sequenceflowview}`];
const result: any = await this.$appmodal.openModal(targetView,tempContext,tempViewParam);
if (result || Object.is(result.ret, 'OK')) {
const { datas } = result;
let tempSubmitData:any = this.$util.deepCopy(datas);
tempSubmitData.forEach((element:any) => {
Object.assign(element,result.datas && result.datas[0]);
});
}
}
return true;
}
/**
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册