diff --git a/src/views/xm/core/xmIteration/XmIterationOverviewComplex.vue b/src/views/xm/core/xmIteration/XmIterationOverviewComplex.vue index 324d0077..407df3ed 100644 --- a/src/views/xm/core/xmIteration/XmIterationOverviewComplex.vue +++ b/src/views/xm/core/xmIteration/XmIterationOverviewComplex.vue @@ -1,5 +1,268 @@ @@ -52,18 +317,33 @@ import XmIterationEdit from './XmIterationEdit.vue'; import XmIterationMenuMng from '../xmIterationMenu/XmIterationMenuMng.vue'; import { loadTasksToXmIterationState } from '@/api/xm/core/xmIterationState'; import { listXmIterationWithState } from "@/api/xm/core/xmIteration"; +import {initDicts, } from '@/api/xm/core/xmIteration'; export default { components: {XmIterationOverview,XmIterationEdit, XmIterationMenuMng }, computed: { - ...mapGetters(["userInfo"]), + ...mapGetters(["userInfo","xmIteration"]), + calcIterationStatusStep() { + if (this.dicts["iterationStatus"] && this.xmIteration) { + var index = this.dicts["iterationStatus"].findIndex((i) => { + if (i.id == this.xmIteration.istatus) { + return true; + } else { + return false; + } + }); + return index + 1; + } else { + return 0; + } + }, }, - props:['xmIteration'], watch:{ }, data() { return { + dicts:{iterationStatus:[]}, load:{calcIteration:false,}, showPanelName:'overview' }; @@ -98,6 +378,7 @@ export default { }, mounted() { + initDicts(this) this.$nextTick(() => { }); }, diff --git a/src/views/xm/core/xmIteration/index.vue b/src/views/xm/core/xmIteration/index.vue new file mode 100644 index 00000000..3777bf87 --- /dev/null +++ b/src/views/xm/core/xmIteration/index.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/src/views/xm/core/xmIteration/top-nav.vue b/src/views/xm/core/xmIteration/top-nav.vue new file mode 100644 index 00000000..15723f8e --- /dev/null +++ b/src/views/xm/core/xmIteration/top-nav.vue @@ -0,0 +1,158 @@ + + + + + diff --git a/src/views/xm/core/xmProduct/top-nav.vue b/src/views/xm/core/xmProduct/top-nav.vue index 44dfcc73..4492e7cc 100644 --- a/src/views/xm/core/xmProduct/top-nav.vue +++ b/src/views/xm/core/xmProduct/top-nav.vue @@ -145,21 +145,6 @@ export default { props: ["visible"], computed: { ...mapGetters(["userInfo", "roles","xmProduct"]), - - calcProjectStatusStep() { - if (this.dicts["productStatus"] && this.xmProduct) { - var index = this.dicts["productStatus"].findIndex((i) => { - if (i.id == this.xmProduct.status) { - return true; - } else { - return false; - } - }); - return index + 1; - } else { - return 0; - } - }, }, watch: { $route:{ diff --git a/src/views/xm/core/xmProject/top-nav.vue b/src/views/xm/core/xmProject/top-nav.vue index 16aaefbe..d289a154 100644 --- a/src/views/xm/core/xmProject/top-nav.vue +++ b/src/views/xm/core/xmProject/top-nav.vue @@ -129,155 +129,18 @@ - - + -