wenbobowen 4 anos atrás
pai
commit
067d573c75

+ 1 - 0
src/components/newLayout/Aside.vue

@@ -108,6 +108,7 @@ export default {
     },
     // 路由跳转
     handleClickRouter(router) {
+      if (router.key) window.log({ c: 'entry', d: router.key })
       this.$router.push({ name: router.name })
     },
     // 展开/收起侧边栏

+ 1 - 0
src/components/newLayout/Head.vue

@@ -151,6 +151,7 @@ export default {
     },
     // 切换二级导航
     changeNavTag(nav) {
+      window.log({ c: 'entry', d: nav.key })
       this.$store.dispatch('global/setActiveNavTag', nav.name) // 设置二级导航的类别
       this.$router.push({ name: nav.name }) // 跳转
     },

+ 15 - 0
src/router/newRouter.js

@@ -6,6 +6,7 @@ const layout = [
     component: Layout,
     icon: 'person-workbench',
     redirect: '/workbench/person/personDetail',
+    key: 'self_workbench',
     children: [
       {
         path: 'personDetail',
@@ -21,6 +22,7 @@ const layout = [
     component: Layout,
     icon: 'team-workbench',
     redirect: '/workbench/team/teamDetail',
+    key: 'team_workbench',
     children: [
       {
         path: 'teamDetail',
@@ -50,11 +52,13 @@ const layout = [
     icon: 'project-manage',
     redirect: '/projectManage/projectIndex',
     meta: { title: '项目管理' },
+    key: 'project_management',
     children: [
       {
         path: 'projectIndex',
         name: '项目',
         icon: 'project',
+        key: 'project',
         component: () => import('@/views/projectManage/projectList/projectIndex.vue'),
         meta: { title: '项目' }
       },
@@ -69,6 +73,7 @@ const layout = [
         path: 'requirementIndex',
         name: '需求',
         icon: 'requirement',
+        key: 'requirement',
         component: () => import('@/views/projectManage/requirement/list/index.vue'),
         meta: { title: '需求' }
       },
@@ -83,6 +88,7 @@ const layout = [
         path: 'taskIndex',
         name: '任务',
         icon: 'task',
+        key: 'task',
         component: () => import('@/views/projectManage/taskList/taskIndex'),
         meta: { title: '任务' }
       },
@@ -104,6 +110,7 @@ const layout = [
         path: '/projectManage/bugList/bugindex',
         name: '缺陷',
         icon: 'bug',
+        key: 'bug',
         component: () => import('@/views/projectManage/bugList/bugindex'),
         meta: { title: '缺陷' }
       },
@@ -118,6 +125,7 @@ const layout = [
         path: 'reportManagement',
         name: '报告',
         icon: 'report',
+        key: 'report',
         component: () => import('@/views/reportManagement/testPresentation'),
         meta: { title: '报告' }
       },
@@ -168,6 +176,7 @@ const layout = [
         name: '迭代',
         cutOff: true,
         icon: 'iteration',
+        key: 'iteration',
         component: () => import('@/views/projectManage/iteration/index'),
         meta: { title: '迭代' }
       },
@@ -182,6 +191,7 @@ const layout = [
         path: 'version',
         name: '版本',
         icon: 'version',
+        key: 'version',
         component: () => import('@/views/projectManage/version/list/index.vue'),
         meta: { title: '版本' }
       },
@@ -198,6 +208,7 @@ const layout = [
         name: '线上问题 ',
         icon: 'onlineProblem',
         cutOff: true,
+        key: 'onlineProblem',
         component: () => import('@/views/projectManage/onlineproblem'),
         meta: { title: '线上问题 ' }
       },
@@ -221,6 +232,7 @@ const layout = [
         name: '测试用例',
         icon: 'test-case',
         cutOff: true,
+        key: 'usecase',
         component: () => import('@/views/useCase'),
         meta: { title: '测试用例' }
       },
@@ -242,6 +254,7 @@ const layout = [
         path: 'testPage',
         name: '测试计划',
         icon: 'test-plain',
+        key: 'testplain',
         component: () => import('@/views/Platform/testPage.vue'),
         meta: { title: '测试计划' }
       },
@@ -250,6 +263,7 @@ const layout = [
         name: '统计分析',
         icon: 'statistics',
         cutOff: true,
+        key: 'statistics',
         component: () => import('@/views/quality/allStatistics.vue'),
         meta: { title: '统计分析' }
       },
@@ -335,6 +349,7 @@ const layout = [
         path: 'index',
         name: '配置中心',
         icon: 'config',
+        key: 'config',
         component: () => import('@/views/ToConfigure/index'),
         meta: { title: '配置中心' }
       }

+ 5 - 0
src/views/projectManage/bugList/bugindex.vue

@@ -390,10 +390,14 @@ export default {
     this.$store.state.data.status = false
   },
   methods: {
+    logHandle(d) {
+      window.log({ c: 'bug', d })
+    },
     changeSelect() {
       this.$forceUpdate()
     },
     getBugList() { // 查询功能
+      this.logHandle('get_bug')
       this.$forceUpdate()
       if (!this.stratAndEnd) {
         this.stratAndEnd = []
@@ -461,6 +465,7 @@ export default {
       const res = await taskListCreate(params)
       if (res.code === 200) {
         this.taskEnumList = res.data || []
+        this.logHandle('get_bug')
       }
     },
     bugListSelect() {

+ 2 - 0
src/views/projectManage/projectList/projectIndex.vue

@@ -419,6 +419,7 @@ export default {
         this.table_project = res.data
         this.total = res.total
         this.table_loading = false
+        this.logHandle('get_project')
       })
       settingGetBizList({}).then(res => {
         this.all_bizId = res.data
@@ -497,6 +498,7 @@ export default {
         this.table_project = res.data
         this.total = res.total
         this.table_loading = false
+        this.logHandle('get_project')
       })
       this.isToOne = true
     },

+ 4 - 3
src/views/projectManage/requirement/list/index.vue

@@ -484,14 +484,14 @@ export default {
       this.nowTab = e
       if (this.nowTab === 'charts') {
         this.get_charts()
-        window.log({ c: 'requirement', d: 'changtab_requirement_charts' })
+        this.logHandle('changtab_requirement_charts')
       } else {
         this.chartData = {}
         this.getTableData()
       }
     },
     get_charts() {
-      window.log({ c: 'requirement', d: 'get_requirement_charts' })
+      this.logHandle('get_requirement_charts')
       this.updateChartSearchFormValue()
       this.getSearchFormHandle()
       this.get_chartList()
@@ -539,6 +539,7 @@ export default {
         this.tableData = res.data.list
         this.total = res.data.total
         this.loading = false
+        this.logHandle('get_requirement')
       })
     },
     async get_chartList() {
@@ -558,7 +559,7 @@ export default {
       this.total = dataList.total
       this.tableTitle = dataList.data.title
       this.loading = false
-      window.log({ c: 'requirement', d: 'get_requirement_charts_list_detial' })
+      this.logHandle('get_requirement_charts_list_detial')
     },
     async showRequirementEnum() {
       const res = await showRequirementEnum()

+ 4 - 3
src/views/projectManage/taskList/taskIndex.vue

@@ -482,7 +482,7 @@ export default {
       this.nowTab = e
       if (this.nowTab === 'charts') {
         this.get_charts()
-        window.log({ c: 'task', d: 'changtab_task_charts' })
+        this.logHandle('changtab_task_charts')
       } else {
         this.chartData = {}
         this.get_taskList()
@@ -495,7 +495,7 @@ export default {
       }
     },
     get_charts() {
-      window.log({ c: 'task', d: 'get_task_charts' })
+      this.logHandle('get_task_charts')
       this.updateChartSearchFormValue()
       this.form_taskHandle()
       this.get_chartList()
@@ -517,7 +517,7 @@ export default {
       this.total = dataList.total
       this.tableTitle = dataList.data.title
       this.table_loading = false
-      window.log({ c: 'task', d: 'get_task_charts_list_detial' })
+      this.logHandle('get_task_charts_list_detial')
     },
     test2(item, e) {
       // 获取团队人员信息
@@ -630,6 +630,7 @@ export default {
         this.task_table = res.data
         this.total = res.total
         this.table_loading = false
+        this.logHandle('get_task')
       })
       configShowRequirementVersionEnum({ bizId: this.bizId }).then(res => {
         // 获取需求(查询)

+ 6 - 0
src/views/reportManagement/testPresentation.vue

@@ -245,6 +245,9 @@ export default {
     this.$store.state.data.status = false
   },
   methods: {
+    logHandle(d) {
+      window.log({ c: 'report', d })
+    },
     handleClick(tab, event) {
       this.curIndex = 1
       this.loading = true
@@ -274,6 +277,7 @@ export default {
         if (res.code === 200) {
           this.tableData = res.data
           this.total = res.total
+          this.logHandle('get_report_daily')
         }
       }
       if (this.title === '准出报告') {
@@ -281,6 +285,7 @@ export default {
         if (res.code === 200) {
           this.tableData = res.data.list || []
           this.total = res.data.total
+          this.logHandle('get_report_release')
         }
       }
       if (this.title === '提测报告') {
@@ -290,6 +295,7 @@ export default {
         if (res.code === 200) {
           this.tableData = res.data.list || []
           this.total = res.data.total
+          this.logHandle('get_report_deliver')
         }
       }
       this.loading = false