Skip to content

Commit 0f3a9c0

Browse files
committed
fix: bug fix
1 parent 6a9b5ea commit 0f3a9c0

File tree

8 files changed

+101
-23
lines changed

8 files changed

+101
-23
lines changed

frontend/src/style.less

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,3 +210,15 @@ strong {
210210
.ed-button.is-plain:active {
211211
background-color: #a4e3d3 !important;
212212
}
213+
214+
.ed-drawer__footer {
215+
border-top: 1px solid #1f232926;
216+
box-shadow: none !important;
217+
}
218+
219+
.ed-select__popper {
220+
padding: 0 4px !important;
221+
.ed-select-dropdown__item {
222+
border-radius: 4px;
223+
}
224+
}

frontend/src/views/chat/RecommendQuestion.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,9 +197,9 @@ defineExpose({ getRecommendQuestions, id: () => props.recordId, stop })
197197
font-weight: 400;
198198
cursor: pointer;
199199
background: rgba(245, 246, 247, 1);
200-
min-height: 46px;
200+
min-height: 32px;
201201
border-radius: 6px;
202-
padding: 12px;
202+
padding: 5px 12px;
203203
line-height: 22px;
204204
&:hover {
205205
background: rgba(31, 35, 41, 0.1);

frontend/src/views/dashboard/common/ResourceTree.vue

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ defineExpose({
356356
placement="bottom-end"
357357
@command="handleSortTypeChange"
358358
>
359-
<el-icon class="filter-icon-span">
359+
<el-icon class="filter-icon-span" :class="state.curSortType !== 'name_asc' && 'active'">
360360
<el-tooltip :offset="16" effect="dark" :content="sortTypeTip" placement="top">
361361
<Icon v-if="state.curSortType.includes('asc')" name="dv-sort-asc" class="opt-icon"
362362
><dv_sort_asc class="svg-icon opt-icon"
@@ -451,11 +451,11 @@ defineExpose({
451451
</template>
452452
<style lang="less" scoped>
453453
.filter-icon-span {
454-
border: 1px solid #bbbfc4;
454+
border: 1px solid #d9dcdf;
455455
width: 32px;
456456
height: 32px;
457457
border-radius: 4px;
458-
color: var(--ed-color-primary);
458+
color: #1f2329;
459459
padding: 8px;
460460
margin-left: 8px;
461461
font-size: 16px;
@@ -465,13 +465,28 @@ defineExpose({
465465
outline: none !important;
466466
}
467467
468-
&:hover {
468+
&:hover,
469+
&:focus {
469470
background: #f5f6f7;
470471
}
471472
472473
&:active {
473474
background: #eff0f1;
474475
}
476+
477+
&.active {
478+
border: 1px solid #1cba90;
479+
color: #1cba90;
480+
481+
&:hover,
482+
&:focus {
483+
background: #d2f1e9;
484+
}
485+
486+
&:active {
487+
background: #a4e3d3;
488+
}
489+
}
475490
}
476491
477492
.resource-tree {

frontend/src/views/ds/DataTable.vue

Lines changed: 45 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -312,9 +312,12 @@ const btnSelectClick = (val: any) => {
312312
<span :title="currentTable.custom_comment" class="field-notes">{{
313313
currentTable.custom_comment || '-'
314314
}}</span>
315-
<el-icon style="margin-left: 8px; cursor: pointer" size="16" @click="editTable">
316-
<edit></edit>
317-
</el-icon>
315+
316+
<el-tooltip :offset="14" effect="dark" :content="$t('datasource.edit')" placement="top">
317+
<el-icon style="margin-left: 8px; cursor: pointer" size="16" @click="editTable">
318+
<edit></edit>
319+
</el-icon>
320+
</el-tooltip>
318321
</div>
319322
</div>
320323
<div class="table-content">
@@ -341,7 +344,11 @@ const btnSelectClick = (val: any) => {
341344
:class="btnSelect === 'q' && 'overflow-preview'"
342345
>
343346
<div v-if="btnSelect === 'd'" class="table-content_preview">
344-
<el-table :data="fieldListComputed" style="width: 100%">
347+
<el-table
348+
row-class-name="hover-icon_edit"
349+
:data="fieldListComputed"
350+
style="width: 100%"
351+
>
345352
<el-table-column
346353
prop="field_name"
347354
:label="t('datasource.field_name')"
@@ -594,6 +601,32 @@ const btnSelectClick = (val: any) => {
594601
line-height: 24px;
595602
}
596603
604+
.ed-icon {
605+
position: relative;
606+
cursor: pointer;
607+
margin-top: 4px;
608+
margin-left: 8px;
609+
610+
&::after {
611+
content: '';
612+
background-color: #1f23291a;
613+
position: absolute;
614+
border-radius: 6px;
615+
width: 24px;
616+
height: 24px;
617+
transform: translate(-50%, -50%);
618+
top: 50%;
619+
left: 50%;
620+
display: none;
621+
}
622+
623+
&:hover {
624+
&::after {
625+
display: block;
626+
}
627+
}
628+
}
629+
597630
.notes {
598631
font-weight: 400;
599632
font-size: 14px;
@@ -663,6 +696,12 @@ const btnSelectClick = (val: any) => {
663696
justify-content: flex-end;
664697
}
665698
699+
.hover-icon_edit:hover {
700+
.ed-icon {
701+
display: block;
702+
}
703+
}
704+
666705
.field-comment {
667706
display: flex;
668707
align-items: center;
@@ -676,17 +715,13 @@ const btnSelectClick = (val: any) => {
676715
overflow: hidden;
677716
text-overflow: ellipsis;
678717
}
679-
&:hover {
680-
.ed-icon {
681-
display: block;
682-
}
683-
}
718+
684719
.ed-icon {
685720
position: relative;
686721
cursor: pointer;
687-
margin-top: 4px;
688722
margin-left: 8px;
689723
display: none;
724+
color: #646a73;
690725
691726
&::after {
692727
content: '';

frontend/src/views/ds/Datasource.vue

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import DatasourceList from './DatasourceList.vue'
1313
import DatasourceListSide from './DatasourceListSide.vue'
1414
import DatasourceForm from './DatasourceForm.vue'
1515
import { datasourceApi } from '@/api/datasource'
16-
import { useEmitt } from '@/utils/useEmitt'
1716
import Card from './Card.vue'
1817
import DelMessageBox from './DelMessageBox.vue'
1918
import { dsTypeWithImg } from './js/ds-type'
@@ -229,7 +228,6 @@ search()
229228
230229
const currentDataTable = ref()
231230
const dataTableDetail = (ele: any) => {
232-
useEmitt().emitter.emit('collapse-change')
233231
currentDataTable.value = ele
234232
}
235233
@@ -256,7 +254,7 @@ const back = () => {
256254
</template>
257255
</el-input>
258256

259-
<el-popover popper-class="system-default_datasource" placement="bottom">
257+
<el-popover popper-class="system-default_datasource" placement="bottom-end">
260258
<template #reference>
261259
<el-button secondary>
262260
{{ currentDefaultDatasource || $t('datasource.all_types') }}

frontend/src/views/ds/DatasourceForm.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -738,7 +738,7 @@ defineExpose({
738738
</div>
739739
<div class="draw-foot">
740740
<el-button secondary @click="close">{{ t('common.cancel') }}</el-button>
741-
<el-button v-show="form.type !== 'excel' && !isDataTable" @click="check">
741+
<el-button v-show="form.type !== 'excel' && !isDataTable" secondary @click="check">
742742
{{ t('ds.check') }}
743743
</el-button>
744744
<el-button v-show="activeStep !== 0 && isCreate" secondary @click="preview">

frontend/src/views/system/model/Model.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ const submit = (item: any) => {
284284
</template>
285285
</el-input>
286286

287-
<el-popover popper-class="system-default_model" placement="bottom">
287+
<el-popover popper-class="system-default_model" placement="bottom-end">
288288
<template #reference>
289289
<el-button secondary>
290290
<template #icon>

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

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import IconOpeDelete from '@/assets/svg/icon_delete.svg'
77
import icon_close_outlined from '@/assets/svg/operate/ope-close.svg'
88
import EmptyBackground from '@/views/dashboard/common/EmptyBackground.vue'
99
import icon_down_outlined from '@/assets/svg/icon_down_outlined.svg'
10+
import ICON_TABLE from '@/assets/svg/chart/icon_form_outlined.svg'
1011
import Card from './Card.vue'
12+
import { dsTypeWithImg } from '@/views/ds/js/ds-type'
1113
import SelectPermission from './SelectPermission.vue'
1214
import AuthTree from './auth-tree/RowAuth.vue'
1315
import { getList, savePermissions, delPermissions } from '@/api/permissions'
@@ -211,6 +213,10 @@ const handleColumnPermission = (row: any) => {
211213
: t('permission.add_column_permission')
212214
}
213215
216+
const icon = (item: any) => {
217+
return (dsTypeWithImg.find((ele) => item.type === ele.type) || {}).img
218+
}
219+
214220
const handleInitDsIdChange = (val: any) => {
215221
columnForm.ds_id = val.id
216222
columnForm.ds_name = val.name
@@ -800,7 +806,12 @@ const columnRules = {
800806
:key="item.id"
801807
:label="item.name"
802808
:value="item"
803-
/>
809+
>
810+
<div style="display: flex; align-items: center">
811+
<img :src="icon(item)" width="24" height="24" style="margin-right: 8px" />
812+
{{ item.name }}
813+
</div>
814+
</el-option>
804815
</el-select>
805816
<el-select
806817
v-model="activeTable"
@@ -818,7 +829,14 @@ const columnRules = {
818829
:key="item.id"
819830
:label="item.table_name"
820831
:value="item"
821-
/>
832+
>
833+
<div style="display: flex; align-items: center">
834+
<el-icon size="16" style="margin-right: 8px; color: #646a73">
835+
<ICON_TABLE />
836+
</el-icon>
837+
{{ item.table_name }}
838+
</div>
839+
</el-option>
822840
</el-select>
823841
</el-form-item>
824842
<el-form-item :label="$t('permission.set_rule')">

0 commit comments

Comments
 (0)