10 changed files with 237 additions and 32 deletions
-
8src/router/routes_xm.js
-
10src/views/xm/core/xmMenu/XmMenuBox.vue
-
42src/views/xm/core/xmMenu/XmMenuBoxForProduct.vue
-
42src/views/xm/core/xmMenu/XmMenuBoxForProject.vue
-
34src/views/xm/core/xmMenu/XmMenuMng.vue
-
2src/views/xm/core/xmProduct/index.vue
-
2src/views/xm/core/xmProject/XmProjectForLinkComplex.vue
-
8src/views/xm/core/xmTask/XmPlan.vue
-
62src/views/xm/core/xmTask/XmPlanForProduct.vue
-
59src/views/xm/core/xmTask/XmPlanForProject.vue
@ -0,0 +1,42 @@ |
|||
<template> |
|||
<section> |
|||
<xm-menu-box :xm-product="xmProduct"></xm-menu-box> |
|||
</section> |
|||
</template> |
|||
|
|||
<script> |
|||
import util from '@/common/js/util';//全局公共库 |
|||
import XmMenuBox from './XmMenuBox.vue' |
|||
import { mapGetters } from 'vuex' |
|||
export default { |
|||
components: { |
|||
XmMenuBox |
|||
}, |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo','roles','xmProduct' |
|||
]), |
|||
|
|||
|
|||
}, |
|||
watch: { |
|||
}, |
|||
data() { |
|||
return { |
|||
|
|||
|
|||
}//end return |
|||
},//end data |
|||
methods: { |
|||
|
|||
},//end method |
|||
mounted() { |
|||
|
|||
}//end mounted |
|||
} |
|||
|
|||
</script> |
|||
|
|||
<style lang="less" scoped> |
|||
|
|||
</style> |
|||
@ -0,0 +1,42 @@ |
|||
<template> |
|||
<section> |
|||
<xm-menu-box :sel-project="projectInfo"></xm-menu-box> |
|||
</section> |
|||
</template> |
|||
|
|||
<script> |
|||
import util from '@/common/js/util';//全局公共库 |
|||
import XmMenuBox from './XmMenuBox.vue' |
|||
import { mapGetters } from 'vuex' |
|||
export default { |
|||
components: { |
|||
XmMenuBox |
|||
}, |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo','roles','projectInfo' |
|||
]), |
|||
|
|||
|
|||
}, |
|||
watch: { |
|||
}, |
|||
data() { |
|||
return { |
|||
|
|||
|
|||
}//end return |
|||
},//end data |
|||
methods: { |
|||
|
|||
},//end method |
|||
mounted() { |
|||
|
|||
}//end mounted |
|||
} |
|||
|
|||
</script> |
|||
|
|||
<style lang="less" scoped> |
|||
|
|||
</style> |
|||
@ -0,0 +1,62 @@ |
|||
<template> |
|||
<section> |
|||
<el-row class="box"> |
|||
<el-col :span="8" class="left"> |
|||
<xm-phase :xm-product="xmProduct" queryScope="plan" @row-click="onPhaseRowClick" @project-row-click="onProjectRowClick"></xm-phase> |
|||
</el-col> |
|||
<el-col :span="16"> |
|||
<xm-task-mng v-if="selProject && selProject.id" :xm-product="xmProduct" :sel-project="selProject" queryScope="task" :parent-task="parentTask"></xm-task-mng> |
|||
</el-col> |
|||
</el-row> |
|||
</section> |
|||
</template> |
|||
|
|||
<script> |
|||
import util from '@/common/js/util';//全局公共库 |
|||
import { mapGetters } from 'vuex' |
|||
|
|||
import XmPhase from '@/views/xm/core/xmTask/XmPhase';//新增界面 |
|||
import XmTaskMng from '@/views/xm/core/xmTask/XmTaskMng';//新增界面 |
|||
export default { |
|||
|
|||
components: { |
|||
XmPhase,XmTaskMng |
|||
}, |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo','roles','xmProduct' |
|||
]), |
|||
|
|||
|
|||
}, |
|||
watch: { |
|||
|
|||
}, |
|||
data() { |
|||
return { |
|||
selProject:null, |
|||
parentTask:null, |
|||
dicts:{},//下拉选择框的所有静态数据 params=[{categoryId:'0001',itemCode:'sex'}] 返回结果 {'sex':[{optionValue:'1',optionName:'男',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'女',seqOrder:'2',fp:'',isDefault:'0'}]} |
|||
load:{ list: false, edit: false, del: false, add: false },//查询中... |
|||
|
|||
}//end return |
|||
},//end data |
|||
methods: { |
|||
onPhaseRowClick(task){ |
|||
this.parentTask=task |
|||
}, |
|||
onProjectRowClick(selProject){ |
|||
this.selProject=selProject |
|||
} |
|||
},//end method |
|||
mounted() { |
|||
|
|||
|
|||
}//end mounted |
|||
} |
|||
|
|||
</script> |
|||
|
|||
<style lang="less" scoped> |
|||
|
|||
</style> |
|||
@ -0,0 +1,59 @@ |
|||
<template> |
|||
<section> |
|||
<el-row class="box"> |
|||
<el-col :span="8" class="left"> |
|||
<xm-phase :sel-project="projectInfo" queryScope="plan" @row-click="onPhaseRowClick"></xm-phase> |
|||
</el-col> |
|||
<el-col :span="16"> |
|||
<xm-task-mng :sel-project="projectInfo" queryScope="task" :parent-task="parentTask"></xm-task-mng> |
|||
</el-col> |
|||
</el-row> |
|||
</section> |
|||
</template> |
|||
|
|||
<script> |
|||
import util from '@/common/js/util';//全局公共库 |
|||
import { initSimpleDicts } from '@/api/mdp/meta/item';//下拉框数据查询 |
|||
import { mapGetters } from 'vuex' |
|||
|
|||
import XmPhase from '@/views/xm/core/xmTask/XmPhase';//新增界面 |
|||
import XmTaskMng from '@/views/xm/core/xmTask/XmTaskMng';//新增界面 |
|||
export default { |
|||
|
|||
components: { |
|||
XmPhase,XmTaskMng |
|||
}, |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo','roles','projectInfo' |
|||
]), |
|||
|
|||
|
|||
}, |
|||
watch: { |
|||
|
|||
}, |
|||
data() { |
|||
return { |
|||
parentTask:null, |
|||
dicts:{},//下拉选择框的所有静态数据 params=[{categoryId:'0001',itemCode:'sex'}] 返回结果 {'sex':[{optionValue:'1',optionName:'男',seqOrder:'1',fp:'',isDefault:'0'},{optionValue:'2',optionName:'女',seqOrder:'2',fp:'',isDefault:'0'}]} |
|||
load:{ list: false, edit: false, del: false, add: false },//查询中... |
|||
|
|||
}//end return |
|||
},//end data |
|||
methods: { |
|||
onPhaseRowClick(task){ |
|||
this.parentTask=task |
|||
} |
|||
},//end method |
|||
mounted() { |
|||
|
|||
|
|||
}//end mounted |
|||
} |
|||
|
|||
</script> |
|||
|
|||
<style lang="less" scoped> |
|||
|
|||
</style> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue