mirror of
https://github.com/kuaifan/dootask.git
synced 2026-01-12 17:08:11 +00:00
perf: 项目-任务状态的数量,实时更新数据
This commit is contained in:
parent
fc5ce7c5db
commit
844cdd734e
@ -81,7 +81,7 @@
|
||||
</div>
|
||||
<div v-if="flowList.length > 0" class="project-select">
|
||||
<Cascader :data="flowData" @on-change="flowChange" transfer-class-name="project-panel-flow-cascader" transfer>
|
||||
<span :class="`project-flow ${flowInfo.status}`">{{ flowTitle }}</span>
|
||||
<span :class="`project-flow ${flowInfo.status || ''}`">{{ flowTitle }}</span>
|
||||
</Cascader>
|
||||
</div>
|
||||
<div class="project-switch-button">
|
||||
@ -781,9 +781,10 @@ export default {
|
||||
},
|
||||
|
||||
flowTitle() {
|
||||
const {flowInfo, allTask} = this;
|
||||
const {flowInfo, flowData, allTask} = this;
|
||||
if (flowInfo.value) {
|
||||
return flowInfo.label;
|
||||
const item = flowData.find(item => item.value === flowInfo.value);
|
||||
return item ? item.label : flowInfo.label;
|
||||
}
|
||||
return `${this.$L('全部')} (${allTask.length})`
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user