提交 85d9a955 编写于 作者: tony001's avatar tony001

zpc --- 完善实体工作流动态导航表格视图

上级 7704e557
...@@ -55,24 +55,28 @@ ...@@ -55,24 +55,28 @@
* *
* @memberof ${srfclassname('${view.codeName}')}Base * @memberof ${srfclassname('${view.codeName}')}Base
*/ */
protected getWFStepModel(){ protected getWFStepModel():Promise<any>{
this.appEntityService.WFGetWFStep().then((response:any) =>{ return new Promise((resolve:any, reject:any) =>{
if (response && response.status === 200) { this.appEntityService.WFGetWFStep().then((response:any) =>{
this.wfStepModel = response.data; if (response && response.status === 200) {
if(this.wfStepModel && this.wfStepModel.length > 0){ this.wfStepModel = response.data;
this.curSelectedNode = this.wfStepModel[0]; if(this.wfStepModel && this.wfStepModel.length > 0){
} this.curSelectedNode = this.wfStepModel[0];
} }
}).catch((response: any) => { Object.assign(this.viewparams,{'userTaskId':this.curSelectedNode['userTaskId'],'processDefinitionKey':this.curSelectedNode['processDefinitionKey']});
if (response && response.status) { resolve(response.data);
this.$Notice.error({ title: '错误', desc: response.message }); }
return; }).catch((response: any) => {
} if (response && response.status) {
if (!response || !response.status || !response.data) { this.$Notice.error({ title: '错误', desc: response.message });
this.$Notice.error({ title: '错误', desc: '系统异常' }); return;
return; }
} if (!response || !response.status || !response.data) {
}); this.$Notice.error({ title: '错误', desc: '系统异常' });
return;
}
});
})
} }
/** /**
...@@ -83,6 +87,8 @@ ...@@ -83,6 +87,8 @@
*/ */
protected handleNodeClick(data:any) { protected handleNodeClick(data:any) {
this.curSelectedNode = data; this.curSelectedNode = data;
Object.assign(this.viewparams,{'userTaskId':data['userTaskId'],'processDefinitionKey':data['processDefinitionKey']});
(this.$refs.searchform as any).onSearch();
} }
</#assign> </#assign>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册