File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 6
6
"AI Model Configuration" : " AI Model Configuration"
7
7
},
8
8
"common" : {
9
+ "no_model_yet" : " No model yet" ,
9
10
"intelligent_questioning_platform" : " Welcome to the SQLBot Intelligent Questioning Platform" ,
10
11
"login" : " Login" ,
11
12
"login_" : " Login" ,
Original file line number Diff line number Diff line change 6
6
"AI Model Configuration" : " 模型配置"
7
7
},
8
8
"common" : {
9
+ "no_model_yet" : " 暂无模型" ,
9
10
"intelligent_questioning_platform" : " 欢迎使用 SQLBot 智能问数平台" ,
10
11
"login" : " 账号登录" ,
11
12
"login_" : " 登录" ,
Original file line number Diff line number Diff line change @@ -367,6 +367,22 @@ const submit = (item: any) => {
367
367
</el-col >
368
368
</el-row >
369
369
</div >
370
+ <template v-if =" ! keywords && ! modelListWithSearch .length && ! searchLoading " >
371
+ <EmptyBackground
372
+ class =" datasource-yet"
373
+ :description =" $t('common.no_model_yet')"
374
+ img-type =" noneWhite"
375
+ />
376
+
377
+ <div style =" text-align : center ; margin-top : -10px " >
378
+ <el-button type =" primary" @click =" handleAddModel" >
379
+ <template #icon >
380
+ <icon _add_outlined ></icon _add_outlined >
381
+ </template >
382
+ {{ t('model.add_model') }}
383
+ </el-button >
384
+ </div >
385
+ </template >
370
386
<el-drawer
371
387
v-model =" modelConfigvVisible"
372
388
:close-on-click-modal =" false"
@@ -424,6 +440,12 @@ const submit = (item: any) => {
424
440
.model-config {
425
441
height : calc (100% - 16px );
426
442
padding : 16px 0 16px 0 ;
443
+
444
+ .datasource-yet {
445
+ padding-bottom : 0 ;
446
+ height : auto ;
447
+ padding-top : 200px ;
448
+ }
427
449
.model-methods {
428
450
display : flex ;
429
451
align-items : center ;
You can’t perform that action at this time.
0 commit comments