|
@@ -2,7 +2,7 @@
|
|
<div class="intelligentQA">
|
|
<div class="intelligentQA">
|
|
<div class="history" style="position: relative">
|
|
<div class="history" style="position: relative">
|
|
<div class="historyTitle">历史记录</div>
|
|
<div class="historyTitle">历史记录</div>
|
|
- <div class="historyContent">
|
|
|
|
|
|
+ <div class="historyContent" v-loading="loading">
|
|
<div v-for="item in historyData" :key="item.id" class="historyItem">
|
|
<div v-for="item in historyData" :key="item.id" class="historyItem">
|
|
<span class="question"> {{ item.question }}</span>
|
|
<span class="question"> {{ item.question }}</span>
|
|
<i class="el-icon-delete historyMore" style="margin-left: 10px" @click="deleteHistory(item.id)"></i>
|
|
<i class="el-icon-delete historyMore" style="margin-left: 10px" @click="deleteHistory(item.id)"></i>
|
|
@@ -137,6 +137,7 @@ export default {
|
|
components: { graphECharts, VueOfficeDocx, pdfvuer },
|
|
components: { graphECharts, VueOfficeDocx, pdfvuer },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ loading: false,
|
|
dialogVisible: false,
|
|
dialogVisible: false,
|
|
chatInfo: [],
|
|
chatInfo: [],
|
|
questionInput: '', //202310150010
|
|
questionInput: '', //202310150010
|
|
@@ -214,11 +215,13 @@ export default {
|
|
// },
|
|
// },
|
|
|
|
|
|
async getHistory() {
|
|
async getHistory() {
|
|
|
|
+ this.loading = true
|
|
const { pageSize, pageNum } = this.historyRequset
|
|
const { pageSize, pageNum } = this.historyRequset
|
|
try {
|
|
try {
|
|
const { data } = await getQAHistoryList({ pageSize, pageNum })
|
|
const { data } = await getQAHistoryList({ pageSize, pageNum })
|
|
this.historyRequset.total = data.total
|
|
this.historyRequset.total = data.total
|
|
this.historyData = data.list
|
|
this.historyData = data.list
|
|
|
|
+ this.loading = false
|
|
// console.log('this.historyData', this.historyData)
|
|
// console.log('this.historyData', this.historyData)
|
|
} catch (error) {}
|
|
} catch (error) {}
|
|
},
|
|
},
|