提交 8f68b710 编写于 作者: zcdtk's avatar zcdtk

格式化代码

上级 cd670a8b
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_CONTENT-BASE.vue.ftl ../@MACRO/VIEW_CONTENT-BASE.vue.ftl
</#ibizinclude> </#ibizinclude>
/** /**
* 当前选中tab * 当前选中tab
* *
...@@ -22,22 +23,19 @@ ...@@ -22,22 +23,19 @@
* *
* @memberof ${srfclassname('${view.codeName}')}Base * @memberof ${srfclassname('${view.codeName}')}Base
*/ */
public tab_click(item:any){ public tab_click(item: any) {
this.curSelectedNode = item; this.curSelectedNode = item;
this.setTreeNodeHighLight(this.curSelectedNode); this.setTreeNodeHighLight(this.curSelectedNode);
Object.assign(this.viewparams,{'userTaskId':item['userTaskId'],'processDefinitionKey':item['processDefinitionKey']}); Object.assign(this.viewparams,
{
'userTaskId': item['userTaskId'],
'processDefinitionKey': item['processDefinitionKey'],
}
);
(this.$refs.mdctrl as any).load(this.viewparams); (this.$refs.mdctrl as any).load(this.viewparams);
this.selectTabId = item.userTaskId; this.selectTabId = item.userTaskId;
} }
/**
* 分割宽度
*
* @type {number}
* @memberof ${srfclassname('${view.codeName}')}Base
*/
public split: number = 0.2;
/** /**
* 树导航栏数据 * 树导航栏数据
* *
...@@ -52,7 +50,7 @@ ...@@ -52,7 +50,7 @@
* @type {any} * @type {any}
* @memberof ${srfclassname('${view.codeName}')}Base * @memberof ${srfclassname('${view.codeName}')}Base
*/ */
public isExpandSearchForm:boolean = true; public isExpandSearchForm: boolean = true;
/** /**
* 是否单选 * 是否单选
...@@ -60,7 +58,7 @@ ...@@ -60,7 +58,7 @@
* @type {any} * @type {any}
* @memberof ${srfclassname('${view.codeName}')}Base * @memberof ${srfclassname('${view.codeName}')}Base
*/ */
public isSingleSelect:boolean = true; public isSingleSelect: boolean = true;
/** /**
* 左侧树的默认配置 * 左侧树的默认配置
...@@ -68,9 +66,9 @@ ...@@ -68,9 +66,9 @@
* @type {any} * @type {any}
* @memberof ${srfclassname('${view.codeName}')}Base * @memberof ${srfclassname('${view.codeName}')}Base
*/ */
public defaultProps:any ={ public defaultProps: any = {
children: 'children', children: 'children',
label: 'userTaskName' label: 'userTaskName',
}; };
/** /**
...@@ -79,7 +77,7 @@ ...@@ -79,7 +77,7 @@
* @type {any} * @type {any}
* @memberof ${srfclassname('${view.codeName}')}Base * @memberof ${srfclassname('${view.codeName}')}Base
*/ */
public curSelectedNode:any; public curSelectedNode: any;
/** /**
* 获取树导航栏数据 * 获取树导航栏数据
...@@ -97,7 +95,7 @@ ...@@ -97,7 +95,7 @@
Object.assign(this.viewparams, Object.assign(this.viewparams,
{ {
'userTaskId': this.curSelectedNode['userTaskId'], 'userTaskId': this.curSelectedNode['userTaskId'],
'processDefinitionKey': this.curSelectedNode['processDefinitionKey'] 'processDefinitionKey': this.curSelectedNode['processDefinitionKey'],
} }
); );
this.setTreeNodeHighLight(this.curSelectedNode); this.setTreeNodeHighLight(this.curSelectedNode);
...@@ -108,19 +106,6 @@ ...@@ -108,19 +106,6 @@
return response; return response;
} }
/**
* 左侧树选中节点
*
* @type {any}
* @memberof ${srfclassname('${view.codeName}')}Base
*/
public handleNodeClick(data:any) {
this.curSelectedNode = data;
this.setTreeNodeHighLight(this.curSelectedNode);
Object.assign(this.viewparams,{'userTaskId':data['userTaskId'],'processDefinitionKey':data['processDefinitionKey']});
(this.$refs.searchform as any).onSearch();
}
/** /**
* 设置选中高亮 * 设置选中高亮
* *
...@@ -133,6 +118,7 @@ ...@@ -133,6 +118,7 @@
tree.setCurrentKey(data.userTaskId); tree.setCurrentKey(data.userTaskId);
}) })
} }
<#ibizinclude> <#ibizinclude>
../@MACRO/VIEW_BOTTOM-BASE.vue.ftl ../@MACRO/VIEW_BOTTOM-BASE.vue.ftl
</#ibizinclude> </#ibizinclude>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册