Jelajahi Sumber

问答历史记录

Rmengdi 2 bulan lalu
induk
melakukan
813371ea89
2 mengubah file dengan 7 tambahan dan 3 penghapusan
  1. 5 0
      src/api/als/intelligentQA.js
  2. 2 3
      src/views/als/intelligentQA/index.vue

+ 5 - 0
src/api/als/intelligentQA.js

@@ -9,6 +9,11 @@ export const handlerAsk = async (data) => {
   return await post('/als/algorithm/execute/qa', data)
 }
 
+// 历史记录name
+export const getQAHistoryListName = async (data) => {
+  return await get('/als/qaHistory/listName', data)
+}
+
 // 历史记录
 export const getQAHistoryList = async (data) => {
   return await get('/als/qaHistory/list', data)

+ 2 - 3
src/views/als/intelligentQA/index.vue

@@ -120,7 +120,7 @@
 
 <script>
 import store from '@/store'
-import { handlerAsk, getQAHistoryList, getGroup, getQAHistoryListAll, getQAHistoryDetail, removeQAHistory } from '@/api/als/intelligentQA'
+import { handlerAsk, getQAHistoryList, getGroup, getQAHistoryDetail, removeQAHistory, getQAHistoryListName } from '@/api/als/intelligentQA'
 import graphECharts from '@/views/als/components/Charts/graph.vue'
 import { getListByIdsApi } from '@/api/als/oss'
 //引入VueOfficeDocx组件
@@ -218,11 +218,10 @@ export default {
       this.loading = true
       const { pageSize, pageNum } = this.historyRequset
       try {
-        const { data } = await getQAHistoryList({ pageSize, pageNum })
+        const { data } = await getQAHistoryListName({ pageSize, pageNum })
         this.historyRequset.total = data.total
         this.historyData = data.list
         this.loading = false
-        // console.log('this.historyData', this.historyData)
       } catch (error) {}
     },