diff --git a/src/router/routes_xm.js b/src/router/routes_xm.js index e44a4339..7b89329d 100644 --- a/src/router/routes_xm.js +++ b/src/router/routes_xm.js @@ -96,7 +96,7 @@ export default { }, { path: 'task', - component: _import('xm/core/xmTask/XmTaskMng'), + component: _import('xm/core/xmTask/XmTaskListForProject'), name: 'projectMenu', iconCls: 'fa el-icon-menu', meta: { @@ -118,7 +118,7 @@ export default { }, { path: 'question', - component: _import('xm/core/xmQuestion/XmQuestionMng'), + component: _import('xm/core/xmQuestion/XmQuestionForProject'), name: 'projectQuestion', iconCls: 'fa el-icon-menu', meta: { @@ -129,7 +129,7 @@ export default { }, { path: 'group', - component: _import('xm/core/xmGroup/XmGroupMng'), + component: _import('xm/core/xmGroup/XmGroupForProject'), name: 'projectGroup', iconCls: 'fa el-icon-menu', meta: { diff --git a/src/views/xm/core/xmGroup/XmGroupForProject.vue b/src/views/xm/core/xmGroup/XmGroupForProject.vue new file mode 100644 index 00000000..d35afb7c --- /dev/null +++ b/src/views/xm/core/xmGroup/XmGroupForProject.vue @@ -0,0 +1,42 @@ + + + + + \ No newline at end of file diff --git a/src/views/xm/core/xmProject/top-nav.vue b/src/views/xm/core/xmProject/top-nav.vue index 7c71ab8a..15c5a1c1 100644 --- a/src/views/xm/core/xmProject/top-nav.vue +++ b/src/views/xm/core/xmProject/top-nav.vue @@ -297,21 +297,23 @@ export default { } }, }, - watch: {}, + watch: { + $route:{ + handler(newVal,oldValu){ + this.infotype=newVal.fullPath + }, + deep:true, + immediate:true, + } + }, data() { return { - infotype:'', - dicts: getDefOptions(), - /**end 自定义属性请在上面加 请加备注**/ + infotype:'', }; }, //end data methods: { - setInfotype(infotype) { - if (infotype == "返回") { - this.goBack(); - } else { - this.infotype = infotype; - } + setInfotype(infotype) { + this.infotype = infotype; }, goBack() { @@ -328,16 +330,8 @@ export default { //在下面添加其它组件 }, - mounted() { - this.$nextTick(() => { - - //this.maxTableHeight = this.source == 'GZT' ? this.maxTableHeight : util.calcTableMaxHeight(this.$refs.pageBody.$el); - var infotype = localStorage.getItem("project-infotype"); - if (infotype) { - this.infotype = infotype; - } - }); - initDicts(this) + mounted() { + this.infotype=this.$route.fullPath }, }; diff --git a/src/views/xm/core/xmQuestion/XmQuestionForProject.vue b/src/views/xm/core/xmQuestion/XmQuestionForProject.vue new file mode 100644 index 00000000..ca797b2a --- /dev/null +++ b/src/views/xm/core/xmQuestion/XmQuestionForProject.vue @@ -0,0 +1,44 @@ + + + + + diff --git a/src/views/xm/core/xmTask/XmTaskListForProject.vue b/src/views/xm/core/xmTask/XmTaskListForProject.vue new file mode 100644 index 00000000..771ca321 --- /dev/null +++ b/src/views/xm/core/xmTask/XmTaskListForProject.vue @@ -0,0 +1,47 @@ + + + + + \ No newline at end of file