22 changed files with 156 additions and 83 deletions
-
2src/router/routes_arc.js
-
17src/router/routes_xm.js
-
4src/views/xm/core/xmAttachment/XmAttachmentAdd.vue
-
4src/views/xm/core/xmAttachment/XmAttachmentEdit.vue
-
2src/views/xm/core/xmAttachment/XmAttachmentMng.vue
-
11src/views/xm/core/xmProject/XmProjectInfo.vue
-
61src/views/xm/core/xmProject/XmProjectInfoRoute.vue
-
7src/views/xm/core/xmProject/XmProjectMng.vue
-
8src/views/xm/core/xmQuestion/XmQuestionAdd.vue
-
12src/views/xm/core/xmQuestion/XmQuestionCenter.vue
-
8src/views/xm/core/xmQuestion/XmQuestionEdit.vue
-
20src/views/xm/core/xmQuestion/XmQuestionMng.vue
-
4src/views/xm/core/xmQuestionHandle/XmQuestionHandleAdd.vue
-
4src/views/xm/core/xmQuestionHandle/XmQuestionHandleEdit.vue
-
2src/views/xm/core/xmQuestionHandle/XmQuestionHandleMng.vue
-
10src/views/xm/core/xmQuestionTag/XmQuestionTagAdd.vue
-
10src/views/xm/core/xmQuestionTag/XmQuestionTagEdit.vue
-
20src/views/xm/core/xmQuestionTag/XmQuestionTagMng.vue
-
1src/views/xm/core/xmTask/XmTaskMng.vue
-
12src/views/xm/core/xmTestCaseExec/XmTestCaseExecAdd.vue
-
12src/views/xm/core/xmTestCaseExec/XmTestCaseExecEdit.vue
-
4src/views/xm/core/xmTestCaseExec/XmTestCaseExecMng.vue
@ -0,0 +1,61 @@ |
|||
<template> |
|||
<section> |
|||
<xm-project-info v-if="selProject" :sel-project="selProject" :visible="showInfo"></xm-project-info> |
|||
</section> |
|||
</template> |
|||
|
|||
<script> |
|||
import util from '@/common/js/util';//全局公共库 |
|||
|
|||
import { mapGetters } from 'vuex'; |
|||
import XmProjectInfo from './XmProjectInfo' |
|||
|
|||
export default { |
|||
computed: { |
|||
...mapGetters([ |
|||
'userInfo','roles' |
|||
]), |
|||
}, |
|||
watch:{ |
|||
|
|||
}, |
|||
data() { |
|||
return { |
|||
selProject:null, |
|||
showInfo:false, |
|||
} |
|||
},//end data |
|||
methods: { |
|||
|
|||
|
|||
|
|||
},//end methods |
|||
components: { |
|||
XmProjectInfo, |
|||
//在下面添加其它组件 |
|||
}, |
|||
activated(){ |
|||
if(this.$route.params && this.$route.params.id){ |
|||
this.selProject=this.$route.params |
|||
this.showInfo=true; |
|||
localStorage.setItem('xm-project-info-route',JSON.stringify(this.selProject)); |
|||
}else{ |
|||
this.selProject=JSON.parse(localStorage.getItem("xm-project-info-route")) |
|||
this.showInfo=true; |
|||
} |
|||
}, |
|||
mounted() { |
|||
if(this.$route.params && this.$route.params.id){ |
|||
this.selProject=this.$route.params |
|||
this.showInfo=true; |
|||
localStorage.setItem('xm-project-info-route',JSON.stringify(this.selProject)); |
|||
}else{ |
|||
this.selProject=JSON.parse(localStorage.getItem("xm-project-info-route")) |
|||
this.showInfo=true; |
|||
} |
|||
} |
|||
} |
|||
</script> |
|||
|
|||
<style scoped> |
|||
</style> |
|||
Write
Preview
Loading…
Cancel
Save
Reference in new issue