提交 33b25cdc 编写于 作者: tony001's avatar tony001

添加动态工作流导航视图计数器

上级 abadd335
...@@ -15,6 +15,7 @@ ...@@ -15,6 +15,7 @@
-webkit-box-direction: normal; -webkit-box-direction: normal;
-ms-flex-direction: column; -ms-flex-direction: column;
flex-direction: column; flex-direction: column;
padding-left: 12px;
} }
} }
} }
...@@ -27,10 +28,6 @@ ...@@ -27,10 +28,6 @@
border-left: solid transparent; border-left: solid transparent;
} }
.el-tree-node__label {
font-size: 15px;
font-family: "Microsoft YaHei";
}
.el-tree-node { .el-tree-node {
margin-top: 10px; margin-top: 10px;
} }
...@@ -38,7 +35,16 @@ ...@@ -38,7 +35,16 @@
margin-top: 0px; margin-top: 0px;
} }
.el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content { .el-tree--highlight-current .el-tree-node.is-current>.el-tree-node__content {
background-color: #f0f7ff; background-color: #e4ecf5;
border-color: #1890ff6e; border-color: #1890ff6e;
} }
.custom-tree-node{
.tree-node-label{
font-size: 15px;
font-family: "Microsoft YaHei";
}
.tree-node-count{
margin-left: 4px;
}
}
} }
\ No newline at end of file
...@@ -6,7 +6,12 @@ ...@@ -6,7 +6,12 @@
</#ibizinclude> </#ibizinclude>
<split id="${view.getCodeName()?lower_case}" v-model="split" mode="horizontal"> <split id="${view.getCodeName()?lower_case}" v-model="split" mode="horizontal">
<div slot='left'> <div slot='left'>
<el-tree ref="tree" :data="wfStepModel" node-key="userTaskId" :highlight-current="true" :props="defaultProps" @node-click="handleNodeClick"></el-tree> <el-tree ref="tree" :data="wfStepModel" node-key="userTaskId" :highlight-current="true" :props="defaultProps" @node-click="handleNodeClick">
<span class="custom-tree-node" slot-scope="{ node, data }">
<span class="tree-node-label">{{data.userTaskName}}</span>
<span class="tree-node-count"><badge :count="data.cnt"></badge></span>
</span>
</el-tree>
</div> </div>
<div slot="right"> <div slot="right">
<div class="content-container"> <div class="content-container">
......
...@@ -61,7 +61,14 @@ ...@@ -61,7 +61,14 @@
if (response && response.status === 200) { if (response && response.status === 200) {
this.wfStepModel = response.data; this.wfStepModel = response.data;
if(this.wfStepModel && this.wfStepModel.length > 0){ if(this.wfStepModel && this.wfStepModel.length > 0){
this.curSelectedNode = this.wfStepModel[0]; if(!this.curSelectedNode){
this.curSelectedNode = this.wfStepModel[0];
}else{
let tempCopySelectedNode:any = Util.deepCopy(this.curSelectedNode);
this.curSelectedNode = this.wfStepModel.find((item:any) =>{
return item.userTaskId === tempCopySelectedNode.userTaskId && item.processDefinitionKey === tempCopySelectedNode.processDefinitionKey;
})
}
} }
Object.assign(this.viewparams,{'userTaskId':this.curSelectedNode['userTaskId'],'processDefinitionKey':this.curSelectedNode['processDefinitionKey']}); Object.assign(this.viewparams,{'userTaskId':this.curSelectedNode['userTaskId'],'processDefinitionKey':this.curSelectedNode['processDefinitionKey']});
this.setTreeNodeHighLight(this.curSelectedNode); this.setTreeNodeHighLight(this.curSelectedNode);
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册