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

动态编辑--fix11

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