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

update

上级 f9a220e2
......@@ -18,7 +18,7 @@ import { toastController, alertController } from '@ionic/core';
*
* @memberof ${srfclassname('${ctrl.codeName}')}
*/
public srfwfmemo:string = "";
@Prop() srfwfmemo:string;
/**
* 获取多项数据
......@@ -1079,40 +1079,6 @@ import { toastController, alertController } from '@ionic/core';
return response;
}
}
/**
* 工作流审批意见
*
* @protected
* @param {*} linkItem
* @returns {Promise<any>}
* @memberof YDDTBJ
*/
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;
}
</#if>
/**
......
......@@ -2,6 +2,9 @@
<#assign content>
<#if ctrl.isEnableAutoSave??>:autosave="${ctrl.isEnableAutoSave()?c}"</#if>
:viewtag="viewtag"
<#if view.getViewType?? && view.getViewType() ?? && view.getViewType()=='DEMOBWFDYNAEDITVIEW'>
:srfwfmemo="srfwfmemo"
</#if>
:showBusyIndicator="${ctrl.isShowBusyIndicator()?c}"
updateAction="<#if ctrl.getUpdatePSControlAction ?? && ctrl.getUpdatePSControlAction()?? && ctrl.getUpdatePSControlAction().getPSAppDEMethod()??>${ctrl.getUpdatePSControlAction().getPSAppDEMethod().getCodeName()}</#if>"
removeAction="<#if ctrl.getRemovePSControlAction ?? && ctrl.getRemovePSControlAction()?? && ctrl.getRemovePSControlAction().getPSAppDEMethod()??>${ctrl.getRemovePSControlAction().getPSAppDEMethod().getCodeName()}</#if>"
......
<#assign import_block>
import { toastController, alertController } from '@ionic/core';
</#assign>
<#assign self_content>
/**
* 工作流审批意见控件绑定值
*
* @memberof ${srfclassname('${view.codeName}')}Base
*/
public srfwfmemo:string = "";
/**
* 工具栏模型数据
......@@ -46,7 +55,7 @@
if (xData.getDatas && xData.getDatas instanceof Function) {
datas = xData.getDatas()[0];
}
let falg = await xData.openSrfwfmemo(linkItem);
let falg = await this.openSrfwfmemo(linkItem);
if(!falg){
return
}
......@@ -67,6 +76,40 @@
}
}
/**
* 工作流审批意见
*
* @protected
* @param {*} linkItem
* @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;
}
</#assign>
<#ibizinclude>
../@MACRO/VIEW-BASE.vue.ftl
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册