Skip to content

Commit e92a97e

Browse files
committed
fix(Embedded Management): Change the title to a normal one, refer to AI model management configuration
1 parent ab239ea commit e92a97e

File tree

3 files changed

+73
-34
lines changed

3 files changed

+73
-34
lines changed

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

Lines changed: 53 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -357,7 +357,7 @@ const saveEmbedded = () => {
357357
}
358358
})
359359
}
360-
const btnSelect = ref('d')
360+
// const btnSelect = ref('d')
361361
362362
const dialogVisible = ref(false)
363363
const scriptElement = ref('')
@@ -453,14 +453,15 @@ const saveHandler = () => {
453453
<template>
454454
<div v-loading="searchLoading" class="embedded-index no-padding">
455455
<div class="tool-left">
456-
<div class="btn-select">
456+
<div class="title">{{ t('embedded.embedded_assistant') }}</div>
457+
<!-- <div class="btn-select">
457458
<el-button :class="[btnSelect === 'd' && 'is-active']" text @click="btnSelect = 'd'">
458459
{{ t('embedded.embedded_assistant') }}
459460
</el-button>
460-
<!-- <el-button :class="[btnSelect === 'q' && 'is-active']" text @click="btnSelect = 'q'">
461+
<el-button :class="[btnSelect === 'q' && 'is-active']" text @click="btnSelect = 'q'">
461462
{{ t('embedded.embedded_page') }}
462-
</el-button> -->
463-
</div>
463+
</el-button>
464+
</div> -->
464465
<div>
465466
<el-input
466467
v-model="keywords"
@@ -734,7 +735,7 @@ const saveHandler = () => {
734735
</div>
735736
<div v-if="activeStep === 1 && !advancedApplication" class="drawer-content">
736737
<div class="title">
737-
{{ $t('embedded.configure_interface') }}
738+
{{ $t('embedded.set_data_source') }}
738739
</div>
739740

740741
<el-form
@@ -949,33 +950,39 @@ const saveHandler = () => {
949950
margin-bottom: 16px;
950951
padding: 0 24px 0 24px;
951952
952-
.btn-select {
953-
height: 32px;
954-
padding-left: 4px;
955-
padding-right: 4px;
956-
display: inline-flex;
957-
background: #ffffff;
958-
align-items: center;
959-
border: 1px solid #d9dcdf;
960-
border-radius: 6px;
961-
962-
.is-active {
963-
background: var(--ed-color-primary-1a, #1cba901a);
964-
}
965-
966-
.ed-button:not(.is-active) {
967-
color: #1f2329;
968-
}
969-
.ed-button.is-text {
970-
height: 24px;
971-
width: auto;
972-
padding: 0 8px;
973-
line-height: 24px;
974-
}
975-
.ed-button + .ed-button {
976-
margin-left: 4px;
977-
}
953+
.title {
954+
font-weight: 500;
955+
font-size: 20px;
956+
line-height: 28px;
978957
}
958+
959+
// .btn-select {
960+
// height: 32px;
961+
// padding-left: 4px;
962+
// padding-right: 4px;
963+
// display: inline-flex;
964+
// background: #ffffff;
965+
// align-items: center;
966+
// border: 1px solid #d9dcdf;
967+
// border-radius: 6px;
968+
969+
// .is-active {
970+
// background: var(--ed-color-primary-1a, #1cba901a);
971+
// }
972+
973+
// .ed-button:not(.is-active) {
974+
// color: #1f2329;
975+
// }
976+
// .ed-button.is-text {
977+
// height: 24px;
978+
// width: auto;
979+
// padding: 0 8px;
980+
// line-height: 24px;
981+
// }
982+
// .ed-button + .ed-button {
983+
// margin-left: 4px;
984+
// }
985+
// }
979986
}
980987
981988
.card-content {
@@ -1183,6 +1190,20 @@ const saveHandler = () => {
11831190
11841191
.ed-icon {
11851192
cursor: pointer;
1193+
position: relative;
1194+
&:hover {
1195+
&::after {
1196+
content: '';
1197+
position: absolute;
1198+
top: 50%;
1199+
left: 50%;
1200+
transform: translate(-50%, -50%);
1201+
background: #1f23291a;
1202+
width: 24px;
1203+
height: 24px;
1204+
border-radius: 6px;
1205+
}
1206+
}
11861207
}
11871208
}
11881209

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
>({{ ele.account }})</span
7474
>
7575
</div>
76-
<el-button text>
76+
<el-button class="close-btn" text>
7777
<el-icon size="16" @click="clearWorkspace(ele)"><Close /></el-icon>
7878
</el-button>
7979
</div>
@@ -161,6 +161,7 @@ const open = async (user: any) => {
161161
162162
const clearWorkspace = (val: any) => {
163163
checkedWorkspace.value = checkedWorkspace.value.filter((ele: any) => ele.id !== val.id)
164+
handleCheckedWorkspaceChange(checkedWorkspace.value)
164165
}
165166
166167
const clearWorkspaceAll = () => {
@@ -229,6 +230,14 @@ defineExpose({
229230
}
230231
}
231232
233+
.close-btn {
234+
&:hover,
235+
&:active,
236+
&:focus {
237+
background: #1f23291a !important;
238+
}
239+
}
240+
232241
.mt-8 {
233242
margin-top: 8px;
234243
}

frontend/src/views/system/workspace/AuthorizedWorkspaceDialog.vue

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
>({{ ele.account }})</span
8888
>
8989
</div>
90-
<el-button text>
90+
<el-button class="close-btn" text>
9191
<el-icon size="16" @click="clearWorkspace(ele)"><Close /></el-icon>
9292
</el-button>
9393
</div>
@@ -194,6 +194,7 @@ const handleConfirm = () => {
194194
195195
const clearWorkspace = (val: any) => {
196196
checkedWorkspace.value = checkedWorkspace.value.filter((ele: any) => ele.id !== val.id)
197+
handleCheckedWorkspaceChange(checkedWorkspace.value)
197198
}
198199
199200
const clearWorkspaceAll = () => {
@@ -245,6 +246,14 @@ defineExpose({
245246
}
246247
}
247248
249+
.close-btn {
250+
&:hover,
251+
&:active,
252+
&:focus {
253+
background: #1f23291a !important;
254+
}
255+
}
256+
248257
.border {
249258
border: 1px solid #dee0e3;
250259
}

0 commit comments

Comments
 (0)