11 changed files with 312 additions and 51 deletions
-
7src/router/routes_xm.js
-
32src/views/xm/core/xmIteration/XmIterationComplex.vue
-
25src/views/xm/core/xmMenu/XmMenuMng.vue
-
173src/views/xm/core/xmProduct/XmProductComplex.vue
-
29src/views/xm/core/xmProduct/XmProductMng.vue
-
13src/views/xm/core/xmProduct/XmProductSelect.vue
-
10src/views/xm/core/xmProject/XmProjectInfo.vue
-
11src/views/xm/core/xmProjectPhase/XmProjectPhaseMng.vue
-
12src/views/xm/core/xmProjectPhase/XmProjectPhaseSelect.vue
-
40src/views/xm/core/xmQuestion/XmQuestionMng.vue
-
11src/views/xm/core/xmTask/XmTaskMng.vue
@ -0,0 +1,173 @@ |
|||||
|
<template> |
||||
|
<section class="page-container border"> |
||||
|
<el-row> |
||||
|
<el-col :span="productVisible==true?3:0" > |
||||
|
<xm-product-select :sel-project="selProject" @row-click="onProductRowClick" @clear-select="onProductClearSelect"></xm-product-select> |
||||
|
</el-col> |
||||
|
<el-col :span="productVisible==true?21:24" > |
||||
|
<el-tabs type="border-card" :v-model="showPanel" activate-name="productOverview" @tab-click="tabClick"> |
||||
|
<el-tab-pane label="产品概览" name="productOverview"> |
||||
|
<span v-show="productVisible==true" slot="label" ><i class="el-icon-d-arrow-left" @click.stop="productVisible=false"></i> 产品概览</span> |
||||
|
<span v-show="productVisible==false" slot="label" ><i class="el-icon-d-arrow-right" @click.stop="productVisible=true"></i> 产品概览</span> |
||||
|
|
||||
|
</el-tab-pane> |
||||
|
<el-tab-pane label="迭代" name="iterations"> |
||||
|
<xm-iteration-select v-show=" showPanel=='iterations'" :xm-product="xmProduct" :sel-project="selProject"></xm-iteration-select> |
||||
|
</el-tab-pane> |
||||
|
<el-tab-pane label="项目" lazy name="projects" v-if="!selProject"> |
||||
|
<xm-project-list v-show="xmProduct && showPanel=='projects'" :xm-product="xmProduct"></xm-project-list> |
||||
|
</el-tab-pane> |
||||
|
<el-tab-pane label="故事" lazy name="menus" > |
||||
|
<xm-menu-mng v-show="xmProduct && showPanel=='menus'" :xm-product="xmProduct" :sel-project="selProject"></xm-menu-mng> |
||||
|
</el-tab-pane> |
||||
|
<el-tab-pane label="任务" lazy name="tasks" > |
||||
|
<xm-task-mng v-show="xmProduct && showPanel=='tasks'" :xm-product="xmProduct" :sel-project="selProject"></xm-task-mng> |
||||
|
</el-tab-pane> |
||||
|
<el-tab-pane label="缺陷" lazy name="bugs" > |
||||
|
<xm-question-mng v-show="xmProduct && showPanel=='bugs'" :xm-product="xmProduct" :sel-project="selProject"></xm-question-mng> |
||||
|
</el-tab-pane> |
||||
|
<el-tab-pane label="迭代概览" lazy name="iterationOverview"> |
||||
|
<xm-iteration-state-show v-show="xmProduct && showPanel=='iterationOverview'" :xm-product="xmProduct" :sel-project="selProject"></xm-iteration-state-show> |
||||
|
</el-tab-pane> |
||||
|
</el-tabs> |
||||
|
<el-row> |
||||
|
|
||||
|
</el-row> |
||||
|
|
||||
|
</el-col> |
||||
|
|
||||
|
</el-row> |
||||
|
</section> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import util from '@/common/js/util';//全局公共库 |
||||
|
import config from '@/common/config';//全局公共库 |
||||
|
import { listOption } from '@/api/mdp/meta/itemOption';//下拉框数据查询 |
||||
|
import XmIterationSelect from '../xmIteration/XmIterationSelect.vue' |
||||
|
import XmMenuMng from '../xmMenu/XmMenuMng.vue' |
||||
|
import XmIterationStateShow from '../xmIterationState/XmIterationStateShow.vue' |
||||
|
import { mapGetters } from 'vuex' |
||||
|
import XmProductMng from './XmProductMng.vue'; |
||||
|
import XmTaskMng from '../xmTask/XmTaskMng.vue'; |
||||
|
import XmQuestionMng from '../xmQuestion/XmQuestionMng.vue'; |
||||
|
import XmProjectList from '../xmProject/XmProjectList.vue'; |
||||
|
|
||||
|
import XmProductSelect from './XmProductSelect.vue'; |
||||
|
|
||||
|
|
||||
|
export default { |
||||
|
computed: { |
||||
|
...mapGetters([ |
||||
|
'userInfo','roles' |
||||
|
]), |
||||
|
}, |
||||
|
props:['visible','selProject'], |
||||
|
watch:{ |
||||
|
visible:function(visible){ |
||||
|
if(visible==true){ |
||||
|
} |
||||
|
} |
||||
|
}, |
||||
|
data() { |
||||
|
return{ |
||||
|
xmProduct:null, |
||||
|
showPanel:'iterations',//menus,tasks,bugs,iterationStateShow |
||||
|
topModules: |
||||
|
[ |
||||
|
{ |
||||
|
moduleName:"项目", |
||||
|
topModuleId:'xm', |
||||
|
link:"/xm/core/xmProject/XmProjectMng", |
||||
|
icon: require("@/assets/image/platform/module-project.png"), |
||||
|
isHighlight:false, |
||||
|
moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 |
||||
|
}, |
||||
|
{ |
||||
|
moduleName:"产品", |
||||
|
topModuleId:'xm', |
||||
|
link:"/xm/core/xmProduct/XmProductMng", |
||||
|
icon: require("@/assets/image/platform/module-marketing.png"), |
||||
|
isHighlight:false, |
||||
|
moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 |
||||
|
}, |
||||
|
{ |
||||
|
moduleName:"故事", |
||||
|
topModuleId:'xm', |
||||
|
link:"/xm/core/xmMenu/XmMenuMng", |
||||
|
icon: require("@/assets/image/platform/module-intelligentForms.png"), |
||||
|
isHighlight:false, |
||||
|
moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 |
||||
|
}, |
||||
|
{ |
||||
|
moduleName:"迭代", |
||||
|
topModuleId:'xm', |
||||
|
link:"/xm/core/xmIteration/XmIterationMng", |
||||
|
icon: require("@/assets/image/platform/module-iteration.png"), |
||||
|
isHighlight:false, |
||||
|
moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 |
||||
|
}, |
||||
|
{ |
||||
|
moduleName:"任务", |
||||
|
topModuleId:'xm', |
||||
|
link:"/xm/core/xmTask/XmMyTaskCenter", |
||||
|
icon: require("@/assets/image/platform/module-task.png"), |
||||
|
isHighlight:false, |
||||
|
moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 |
||||
|
}, |
||||
|
{ |
||||
|
moduleName:"缺陷", |
||||
|
topModuleId:'xm', |
||||
|
link:"/xm/core/xmQuestion/XmQuestionMng", |
||||
|
icon: require("@/assets/image/platform/anti-fake.png"), |
||||
|
isHighlight:false, |
||||
|
moduleType : '1' // 模块类型,1-系统类模块 2-系统外模块 |
||||
|
} |
||||
|
], |
||||
|
productVisible:true, |
||||
|
/**end 自定义属性请在上面加 请加备注**/ |
||||
|
} |
||||
|
},//end data |
||||
|
methods: { |
||||
|
|
||||
|
/**end 自定义函数请在上面加**/ |
||||
|
onProductRowClick(xmProduct){ |
||||
|
|
||||
|
this.xmProduct=xmProduct |
||||
|
}, |
||||
|
|
||||
|
onProductClearSelect(){ |
||||
|
this.iteration=null; |
||||
|
}, |
||||
|
tabClick(tab){ |
||||
|
this.showPanel=tab.name |
||||
|
} |
||||
|
},//end methods |
||||
|
components: { |
||||
|
//在下面添加其它组件 |
||||
|
XmIterationSelect, |
||||
|
XmMenuMng, |
||||
|
XmIterationStateShow, |
||||
|
XmProductMng, |
||||
|
XmTaskMng, |
||||
|
XmQuestionMng, |
||||
|
XmProductSelect, |
||||
|
XmProjectList, |
||||
|
}, |
||||
|
mounted() { |
||||
|
this.$nextTick(() => { |
||||
|
|
||||
|
}); |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
|
||||
|
</script> |
||||
|
|
||||
|
<style scoped> |
||||
|
.more-label-font{ |
||||
|
text-align:center; |
||||
|
float:left; |
||||
|
padding-top:5px; |
||||
|
} |
||||
|
</style> |
||||
Write
Preview
Loading…
Cancel
Save
Reference in new issue