提交 6fe4667f 编写于 作者: tony001's avatar tony001

新增实体工作流动态导航表格工具栏按钮状态控制

上级 b041220b
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<div slot="extra"> <div slot="extra">
<div class='toolbar-container'> <div class='toolbar-container'>
<tooltip :transfer="true" :max-width="600" v-for="(linkItem, index) in linkModel" :key="index"> <tooltip :transfer="true" :max-width="600" v-for="(linkItem, index) in linkModel" :key="index">
<i-button @click="dynamic_toolbar_click(linkItem, $event)"> <i-button :disabled="linkItem.disabled" @click="dynamic_toolbar_click(linkItem, $event)">
<span class='caption'>{{linkItem.sequenceFlowName}}</span> <span class='caption'>{{linkItem.sequenceFlowName}}</span>
</i-button> </i-button>
<div slot='content'>{{linkItem.sequenceFlowName}}</div> <div slot='content'>{{linkItem.sequenceFlowName}}</div>
......
...@@ -106,6 +106,11 @@ ...@@ -106,6 +106,11 @@
this.appEntityService.getWFLinks(JSON.parse(JSON.stringify(this.context)),data,true).then((response:any) =>{ this.appEntityService.getWFLinks(JSON.parse(JSON.stringify(this.context)),data,true).then((response:any) =>{
if (response && response.status === 200) { if (response && response.status === 200) {
this.linkModel = response.data; this.linkModel = response.data;
if(this.linkModel.length >0){
this.linkModel.forEach((item:any) =>{
item.disabled = true;
})
}
} }
}).catch((response: any) => { }).catch((response: any) => {
if (response && response.status) { if (response && response.status) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册