|
@@ -5,7 +5,7 @@
|
|
|
<v-tab>AI 取数</v-tab>
|
|
|
</v-tabs>
|
|
|
</div>
|
|
|
- <div class="chart-content-chat-box overflow-y-auto position-relative" ref="chatBox">
|
|
|
+ <div class="chart-content-chat-box overflow-y-auto position-relative" ref="chatBox" v-loading="loading">
|
|
|
<div class="pa-3">
|
|
|
<div
|
|
|
v-for="(item, index) in items"
|
|
@@ -236,7 +236,7 @@ export default {
|
|
|
name: 'dataChartEditChat',
|
|
|
data () {
|
|
|
return {
|
|
|
- // show: false,
|
|
|
+ loading: false,
|
|
|
disabled: false,
|
|
|
question: '',
|
|
|
items: [
|
|
@@ -306,6 +306,7 @@ export default {
|
|
|
})
|
|
|
},
|
|
|
async onAddTrain (item, bool) {
|
|
|
+ this.loading = true
|
|
|
const subApi = bool ? submitTrainingCorrect : submitTrainingError
|
|
|
try {
|
|
|
await subApi({
|
|
@@ -316,6 +317,8 @@ export default {
|
|
|
// this.$snackbar.success('操作成功')
|
|
|
} catch (error) {
|
|
|
this.$snackbar.error(error)
|
|
|
+ } finally {
|
|
|
+ this.loading = false
|
|
|
}
|
|
|
},
|
|
|
onRender ({ model, content }) {
|