|
@@ -15,9 +15,15 @@
|
|
|
<div v-if="title" @click.stop>{{ title }}<span class="sub-title">{{ subTitle }}</span></div>
|
|
|
</template>
|
|
|
<!-- 时间线 -->
|
|
|
- <div v-if="openDrawer && isTimeLine(1)" class="qz-drawer-padding qz-drawer-header" @click.stop>
|
|
|
+ <div
|
|
|
+ v-if="openDrawer && isTimeLine(1)"
|
|
|
+ class="qz-drawer-padding qz-drawer-header"
|
|
|
+ :style="{paddingTop: !isTimeLine(2) ? '30px':'20px'}"
|
|
|
+ @click.stop
|
|
|
+ >
|
|
|
<div ref="timeline1" class="qz-drawer-scll">
|
|
|
<timeline
|
|
|
+
|
|
|
:num="timelineData.firstActive"
|
|
|
bgmargin
|
|
|
:data="timelineData.first"
|
|
@@ -276,12 +282,16 @@ export default {
|
|
|
secondActive = 0
|
|
|
firstActive = 0
|
|
|
first = []
|
|
|
+
|
|
|
this.sourceData.forEach((elm, index) => {
|
|
|
- if (this.title === elm.label) {
|
|
|
+ if (this.title.indexOf(elm.label) > -1) {
|
|
|
firstActive = index
|
|
|
}
|
|
|
first.push(elm.label)
|
|
|
})
|
|
|
+ if (this.title.search(/需求/) > -1) {
|
|
|
+ first = timelineList.requirementData.map(e => e)
|
|
|
+ }
|
|
|
}
|
|
|
if (this.headerTitle === '效率') {
|
|
|
secondActive = 0
|
|
@@ -454,16 +464,22 @@ export default {
|
|
|
}
|
|
|
if (this.headerTitle === '吞吐量') {
|
|
|
if (this.title.search(/需求/) > -1) {
|
|
|
- this.loading = true
|
|
|
- this.ids.length && this.getRequirementList()
|
|
|
+ if (this.ids.length) {
|
|
|
+ this.loading = true
|
|
|
+ this.getRequirementList()
|
|
|
+ }
|
|
|
}
|
|
|
if (this.title.search(/任务/) > -1) {
|
|
|
- this.loading = true
|
|
|
- this.ids.length && this.getTaskList()
|
|
|
+ if (this.ids.length) {
|
|
|
+ this.loading = true
|
|
|
+ this.getTaskList()
|
|
|
+ }
|
|
|
}
|
|
|
if (this.title.search(/项目/) > -1 && this.ids.length) {
|
|
|
- this.loading = true
|
|
|
- this.setProjectList()
|
|
|
+ if (this.ids.length) {
|
|
|
+ this.loading = true
|
|
|
+ this.setProjectList()
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
if (this.headerTitle === '效率') {
|