소스 검색

接口修改

wangziqian 4 년 전
부모
커밋
5a5b3b67f9
1개의 변경된 파일3개의 추가작업 그리고 2개의 파일을 삭제
  1. 3 2
      src/views/reportManagement/testPresentation.vue

+ 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() {