wangziqian 4 жил өмнө
parent
commit
5a5b3b67f9

+ 3 - 2
src/views/reportManagement/testPresentation.vue

@@ -146,7 +146,8 @@ const _ = require('lodash')
 import '@/styles/PublicStyle/index.scss'
 import { dailyReportDelete } from '@/api/testPresentetion' // 日报
 import { projectTestReportList } from '@/api/ResultPage' // 准出
-import { launchTestList, taskListCreate } from '@/api/InterfaceReport' // 提测
+import { launchTestList } from '@/api/InterfaceReport' // 提测
+import { taskListCreate } from '@/api/defectManage'
 import TestingReport from '@/views/reportManagement/components/TestingReport' // 提测
 import DailyReport from '@/views/reportManagement/components/DailyReport' // 日报
 import ReleaseReport from '@/views/reportManagement/components/ReleaseReport' // 准出
@@ -396,7 +397,7 @@ export default {
       if (val) { params.name = val }
       const res = await taskListCreate(params)
       if (res.code === 200) {
-        this.restaurants = res.data.taskInfoList
+        this.restaurants = res.data || []
       }
     },
     debounceQuery: _.debounce(function() {