Skip to content

Commit a96d787

Browse files
committed
fix(Data training ): Style optimization
1 parent e267b77 commit a96d787

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

frontend/src/views/system/training/index.vue

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ const rules = {
235235
236236
const list = () => {
237237
datasourceApi.list().then((res: any) => {
238-
console.log(res)
239238
options.value = res || []
240239
})
241240
}
@@ -361,16 +360,16 @@ const onRowFormClose = () => {
361360
<el-table-column prop="question" :label="$t('training.problem_description')" width="280">
362361
</el-table-column>
363362
<el-table-column prop="description" :label="$t('training.sample_sql')" min-width="240">
364-
</el-table-column>
365-
<el-table-column prop="datasource_name" :label="$t('ds.title')" min-width="240"
366-
><template #default="scope">
363+
<template #default="scope">
367364
<div class="field-comment_d">
368-
<span :title="scope.row.datasource_name" class="notes-in_table">{{
369-
scope.row.datasource_name
365+
<span :title="scope.row.description" class="notes-in_table">{{
366+
scope.row.description
370367
}}</span>
371368
</div>
372369
</template>
373370
</el-table-column>
371+
<el-table-column prop="datasource_name" :label="$t('ds.title')" min-width="240">
372+
</el-table-column>
374373
<el-table-column
375374
prop="create_time"
376375
sortable
@@ -532,7 +531,7 @@ const onRowFormClose = () => {
532531
</div>
533532
</el-form-item>
534533
<el-form-item :label="t('training.sample_sql')">
535-
<div class="content">
534+
<div style="white-space: pre-wrap" class="content">
536535
{{ pageForm.description }}
537536
</div>
538537
<div class="copy-icon">
@@ -610,6 +609,7 @@ const onRowFormClose = () => {
610609
overflow: hidden;
611610
text-overflow: ellipsis;
612611
word-break: break-word;
612+
white-space: pre-wrap;
613613
}
614614
.ed-icon {
615615
color: #646a73;

0 commit comments

Comments
 (0)