24 changed files with 430 additions and 57 deletions
-
119src/router/routes_xm.js
-
1src/store/getters.js
-
4src/store/index.js
-
29src/store/modules/iterationInfo.js
-
29src/store/modules/xmIteration.js
-
15src/views/xm/core/xmIteration/XmIterationMng.vue
-
4src/views/xm/core/xmIteration/XmIterationOverviewComplex.vue
-
4src/views/xm/core/xmIteration/top-nav.vue
-
6src/views/xm/core/xmMenu/XmMenuBox.vue
-
48src/views/xm/core/xmMenu/XmMenuBoxForIteration.vue
-
2src/views/xm/core/xmMenu/XmMenuBoxForProduct.vue
-
2src/views/xm/core/xmMenu/XmMenuBoxForProject.vue
-
2src/views/xm/core/xmMenu/XmMenuSelect.vue
-
2src/views/xm/core/xmProduct/top-nav.vue
-
2src/views/xm/core/xmProject/top-nav.vue
-
4src/views/xm/core/xmQuestion/XmQuestionEdit.vue
-
52src/views/xm/core/xmQuestion/XmQuestionForIteration.vue
-
9src/views/xm/core/xmQuestion/XmQuestionMng.vue
-
40src/views/xm/core/xmRecord/XmRecordForIteration.vue
-
18src/views/xm/core/xmTask/XmTaskAdd.vue
-
4src/views/xm/core/xmTask/XmTaskEdit.vue
-
50src/views/xm/core/xmTask/XmTaskListForIteration.vue
-
1src/views/xm/core/xmTask/XmTaskMng.vue
-
40src/views/xm/rpt/reportIndexForIteration.vue
@ -1,29 +0,0 @@ |
|||
|
|||
var key='xm-iteration-info'; |
|||
const iterationInfo = { |
|||
state: { |
|||
iterationInfo: null, |
|||
}, |
|||
mutations: { |
|||
SET_ITERATION_INFO: (state, iterationInfo) => { |
|||
state.iterationInfo=iterationInfo |
|||
if(iterationInfo && iterationInfo!='null' && iterationInfo!='undefined' ){ |
|||
sessionStorage.setItem(key,JSON.stringify(iterationInfo)) |
|||
}else{ |
|||
sessionStorage.removeItem(key) |
|||
} |
|||
|
|||
} |
|||
}, |
|||
actions: { |
|||
setIterationInfo({ commit }, iterationInfo) { |
|||
commit('SET_ITERATION_INFO', iterationInfo) |
|||
} |
|||
} |
|||
} |
|||
var iterationStr=sessionStorage.getItem(key) |
|||
if(iterationStr && iterationStr!='null' && iterationStr!='undefined' ){ |
|||
iterationInfo.state.iterationInfo=JSON.parse(iterationStr) |
|||
} |
|||
|
|||
export default iterationInfo |
|||
@ -0,0 +1,29 @@ |
|||
|
|||
var key='xm-iteration'; |
|||
const xmIteration = { |
|||
state: { |
|||
xmIteration: null, |
|||
}, |
|||
mutations: { |
|||
SET_XM_ITERATION: (state, xmIteration) => { |
|||
state.xmIteration=xmIteration |
|||
if(xmIteration && xmIteration!='null' && xmIteration!='undefined' ){ |
|||
sessionStorage.setItem(key,JSON.stringify(xmIteration)) |
|||
}else{ |
|||
sessionStorage.removeItem(key) |
|||
} |
|||
|
|||
} |
|||
}, |
|||
actions: { |
|||
setXmIteration({ commit }, xmIteration) { |
|||
commit('SET_XM_ITERATION', xmIteration) |
|||
} |
|||
} |
|||
} |
|||
var iterationStr=sessionStorage.getItem(key) |
|||
if(iterationStr && iterationStr!='null' && iterationStr!='undefined' ){ |
|||
xmIteration.state.xmIteration=JSON.parse(iterationStr) |
|||
} |
|||
|
|||
export default xmIteration |
|||
@ -0,0 +1,48 @@ |
|||
<template> |
|||
<section> |
|||
<xm-menu-box v-if="xmProduct&&xmProduct.id" :xm-iteration="xmIteration" :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','xmIteration' |
|||
]), |
|||
xmProduct(){ |
|||
if(this.xmIteration && this.xmIteration.id){ |
|||
return {id:this.xmIteration.productId,productName:this.xmIteration.productName} |
|||
}else{ |
|||
return null; |
|||
} |
|||
|
|||
} |
|||
}, |
|||
watch: { |
|||
}, |
|||
data() { |
|||
return { |
|||
|
|||
|
|||
}//end return |
|||
},//end data |
|||
methods: { |
|||
|
|||
},//end method |
|||
mounted() { |
|||
|
|||
}//end mounted |
|||
} |
|||
|
|||
</script> |
|||
|
|||
<style lang="less" scoped> |
|||
|
|||
</style> |
|||
@ -0,0 +1,52 @@ |
|||
<template> |
|||
<xm-question-mng v-if="xmIteration && xmIteration.id" class="padding-top" :xm-product="xmProduct" :xm-iteration="xmIteration"></xm-question-mng> |
|||
</template> |
|||
|
|||
<script> |
|||
import util from '@/common/js/util';//全局公共库 |
|||
|
|||
import config from '@/common/config';//全局公共库 |
|||
|
|||
import XmQuestionMng from './XmQuestionMng';//修改界面 |
|||
import { mapGetters } from 'vuex' |
|||
|
|||
export default { |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo','roles','xmIteration' |
|||
]), |
|||
xmProduct(){ |
|||
if(this.xmIteration && this.xmIteration.id){ |
|||
return {id:this.xmIteration.productId,productName:this.xmIteration.productName} |
|||
}else{ |
|||
return null; |
|||
} |
|||
|
|||
} |
|||
}, |
|||
|
|||
data() { |
|||
|
|||
return { |
|||
|
|||
|
|||
} |
|||
|
|||
},//end data |
|||
methods: { |
|||
|
|||
|
|||
},//end methods |
|||
components: { |
|||
XmQuestionMng |
|||
}, |
|||
mounted() { |
|||
|
|||
} |
|||
} |
|||
|
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
|
|||
</style> |
|||
@ -0,0 +1,40 @@ |
|||
<template> |
|||
<section> |
|||
<xm-record-mng v-if="xmIteration && xmIteration.id" :xm-product="{id:xmIteration.productId,productName:xmIteration.productName}"></xm-record-mng> |
|||
</section> |
|||
</template> |
|||
|
|||
<script> |
|||
|
|||
import { mapGetters } from 'vuex'; |
|||
import XmRecordMng from './XmRecordMng' |
|||
|
|||
export default { |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo','roles','xmIteration' |
|||
]), |
|||
}, |
|||
watch:{ |
|||
|
|||
}, |
|||
data() { |
|||
return { |
|||
} |
|||
},//end data |
|||
methods: { |
|||
|
|||
},//end methods |
|||
components: { |
|||
XmRecordMng, |
|||
//在下面添加其它组件 |
|||
}, |
|||
activated(){ |
|||
}, |
|||
mounted() { |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
</style> |
|||
@ -0,0 +1,50 @@ |
|||
<template> |
|||
<section> |
|||
<xm-task-mng v-if="xmIteration && xmIteration.id" :xm-product="xmProduct" :xm-iteration="xmIteration" ptype="1" query-scope="task"></xm-task-mng> |
|||
</section> |
|||
</template> |
|||
|
|||
<script> |
|||
import Vue from 'vue' |
|||
import util from '@/common/js/util';//全局公共库 |
|||
import { mapGetters } from 'vuex' |
|||
import XmTaskMng from './XmTaskMng.vue'; |
|||
|
|||
export default { |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo','roles','xmIteration' |
|||
]), |
|||
xmProduct(){ |
|||
if(this.xmIteration && this.xmIteration.id){ |
|||
return {id:this.xmIteration.productId,productName:this.xmIteration.productName} |
|||
}else{ |
|||
return null; |
|||
} |
|||
|
|||
} |
|||
}, |
|||
watch: { |
|||
}, |
|||
data() { |
|||
return { |
|||
/**end 自定义属性请在上面加 请加备注**/ |
|||
} |
|||
},//end data |
|||
methods: { |
|||
/**end 自定义函数请在上面加**/ |
|||
|
|||
},//end methods |
|||
components: { |
|||
XmTaskMng |
|||
//在下面添加其它组件 |
|||
}, |
|||
mounted() { |
|||
|
|||
} |
|||
} |
|||
|
|||
</script> |
|||
|
|||
<style scoped> |
|||
</style> |
|||
@ -0,0 +1,40 @@ |
|||
<template> |
|||
<section> |
|||
<report-index :xm-iteration="xmIteration" :xm-product="{id:xmIteration.productId,productName:xmIteration.productName}"></report-index> |
|||
</section> |
|||
</template> |
|||
|
|||
<script> |
|||
|
|||
import { mapGetters } from 'vuex'; |
|||
import reportIndex from './reportIndex' |
|||
|
|||
export default { |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo','roles','xmIteration' |
|||
]), |
|||
}, |
|||
watch:{ |
|||
|
|||
}, |
|||
data() { |
|||
return { |
|||
} |
|||
},//end data |
|||
methods: { |
|||
|
|||
},//end methods |
|||
components: { |
|||
reportIndex, |
|||
//在下面添加其它组件 |
|||
}, |
|||
activated(){ |
|||
}, |
|||
mounted() { |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
</style> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue