Эх сурвалжийг харах

修复日报报告新建时echarts显示全部数据bug

qinzhipeng_v 5 жил өмнө
parent
commit
ceec340949

+ 2 - 2
src/views/Platform/presentation/DailyNewsAdded.vue

@@ -159,7 +159,7 @@ export default {
         this.showButton1 = false
         this.showButton = true
         this.bizIdCode = this.$route.query.task.bizId
-        this.idCode = this.$route.query.task.id
+        this.$route.query.taskId ? this.idCode = this.$route.query.taskId : ''
         this.pro = { taskId: this.idCode }
       }
       if (this.$route.query.project) { // 项目页面
@@ -167,7 +167,7 @@ export default {
         this.showButton1 = false
         this.showButton = true
         this.bizIdCode = this.$route.query.projectId.bizId
-        this.idCode = this.$route.query.projectId.id
+        this.$route.query.projectId ? this.idCode = this.$route.query.projectId : ''
         this.pro = { projectId: this.idCode }
       }
 

+ 1 - 1
src/views/projectManage/projectList/projectListIndex.vue

@@ -224,7 +224,7 @@ export default {
     },
     // 新建日报报告
     createDailyReport(scope) {
-      this.$router.push({ path: '/Platform/presentation/DailyNewsAdded', query: { project: scope }})
+      this.$router.push({ path: '/Platform/presentation/DailyNewsAdded', query: { project: scope, projectId: scope.id }})
     },
     // 新建准出报告
     createReport(scope) {

+ 1 - 1
src/views/projectManage/projectList/projectPreview.vue

@@ -347,7 +347,7 @@ export default {
     },
     // 新建日报报告
     createDailyReport(ele) {
-      this.$router.push({ path: '/Platform/presentation/DailyNewsAdded', query: { projectId: ele }})
+      this.$router.push({ path: '/Platform/presentation/DailyNewsAdded', query: { project: ele, projectId: ele.id }})
     },
     // 新建准出报告
     createReport(ele) {

+ 2 - 2
src/views/projectManage/taskList/taskListIndex.vue

@@ -510,7 +510,7 @@ export default {
             this.$router.push({ path: '/Platform/presentation/PresentReport', query: { task: ele }}) // 客户端提测
             break
           case 2:
-            this.$router.push({ path: '/Platform/presentation/DailyNewsAdded', query: { task: ele }}) // 客户端日报
+            this.$router.push({ path: '/Platform/presentation/DailyNewsAdded', query: { task: ele, taskId: ele.id }}) // 客户端日报
             break
           case 3:
             this.$router.push({ path: '/Platform/presentation/ClientAcceptance', query: { task: ele }}) // 客户端准出
@@ -525,7 +525,7 @@ export default {
             this.$router.push({ path: '/Platform/presentation/presentationReport', query: { task: ele }}) // 服务端提测
             break
           case 2:
-            this.$router.push({ path: '/Platform/presentation/DailyNewsAdded', query: { task: ele }}) // 服务端日报
+            this.$router.push({ path: '/Platform/presentation/DailyNewsAdded', query: { task: ele, taskId: ele.id }}) // 服务端日报
             break
           case 3:
             this.$router.push({ path: '/Platform/presentation/Acceptance', query: { task: ele }}) // 服务端准出

+ 2 - 3
src/views/projectManage/taskList/taskPreview.vue

@@ -373,7 +373,6 @@ export default {
     },
 
     create_code(e) {
-      console.log(e.radio)
       if (e.radio !== undefined) {
         if (e.radio === '1') {
           this.$router.push({ path: '/Platform/presentation/presentationReport', query: { task: e }}) // 服务端提测
@@ -403,7 +402,7 @@ export default {
             this.$router.push({ path: '/Platform/presentation/PresentReport', query: { task: ele }}) // 客户端提测
             break
           case 2:
-            this.$router.push({ path: '/Platform/presentation/DailyNewsAdded', query: { task: ele }}) // 客户端日报
+            this.$router.push({ path: '/Platform/presentation/DailyNewsAdded', query: { task: ele, taskId: ele.id }}) // 客户端日报
             break
           case 3:
             this.$router.push({ path: '/Platform/presentation/ClientAcceptance', query: { task: ele }}) // 客户端准出
@@ -418,7 +417,7 @@ export default {
             this.$router.push({ path: '/Platform/presentation/presentationReport', query: { task: ele }}) // 服务端提测
             break
           case 2:
-            this.$router.push({ path: '/Platform/presentation/DailyNewsAdded', query: { task: ele }}) // 服务端日报
+            this.$router.push({ path: '/Platform/presentation/DailyNewsAdded', query: { task: ele, taskId: ele.id }}) // 服务端日报
             break
           case 3:
             this.$router.push({ path: '/Platform/presentation/Acceptance', query: { task: ele }}) // 服务端准出