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

update

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