Skip to content

Commit 2d4e660

Browse files
fix: style
1 parent 6effb8f commit 2d4e660

File tree

7 files changed

+36
-12
lines changed

7 files changed

+36
-12
lines changed

ui/src/components/workspace-dropdown/index.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
<script setup lang="ts">
3838
import { computed, ref } from 'vue'
3939
import type { WorkspaceItem } from '@/api/type/workspace'
40-
40+
import useStore from '@/stores'
4141
const props = defineProps({
4242
data: {
4343
type: Array<any>,
@@ -48,9 +48,12 @@ const props = defineProps({
4848
default: () => {},
4949
},
5050
})
51+
52+
const { folder } = useStore()
5153
const loading = ref(false)
5254
const emit = defineEmits(['changeWorkspace'])
5355
function changeWorkspace(item: WorkspaceItem) {
56+
folder.setCurrentFolder({})
5457
emit('changeWorkspace', item)
5558
}
5659
</script>

ui/src/locales/lang/zh-CN/views/knowledge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default {
4646
EmbeddingModel: {
4747
label: '向量模型',
4848
placeholder: '请选择向量模型',
49-
requiredMessage: '请输入Embedding模型',
49+
requiredMessage: '请选择向量模型',
5050
},
5151

5252
source_url: {

ui/src/locales/lang/zh-Hant/views/knowledge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export default {
4646
EmbeddingModel: {
4747
label: '向量模型',
4848
placeholder: '請選擇向量模型',
49-
requiredMessage: '請輸入Embedding模型',
49+
requiredMessage: '請選擇向量模型',
5050
},
5151

5252
source_url: {

ui/src/views/model/component/AddParamDrawer.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,14 @@
33
v-model="drawer"
44
:direction="direction"
55
size="600"
6-
:destroy-on-close="true"
6+
append-to-body
7+
:close-on-click-modal="false"
8+
:close-on-press-escape="false"
79
:before-close="cancelClick"
810
>
911
<template #header>
1012
<h4>
11-
{{
12-
isEdit
13-
? $t('common.param.editParam')
14-
: $t('common.param.addParam')
15-
}}
13+
{{ isEdit ? $t('common.param.editParam') : $t('common.param.addParam') }}
1614
</h4>
1715
</template>
1816
<template #default>

ui/src/views/paragraph/component/ParagraphCard.vue

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<el-card
33
shadow="hover"
44
class="paragraph-box cursor"
5+
:class="data.is_active ? '' : 'disabled'"
56
@mouseenter="cardEnter()"
67
@mouseleave="cardLeave()"
78
@click.stop="editParagraph(data)"
@@ -199,6 +200,16 @@ function refreshMigrateParagraph() {
199200
background: rgba(31, 35, 41, 0.1);
200201
border: 1px solid #dee0e3;
201202
}
203+
&.disabled {
204+
color: var(--app-text-color-disable) !important;
205+
:deep(.md-editor-preview) {
206+
color: var(--app-text-color-disable) !important;
207+
}
208+
&:hover {
209+
background: var(--app-layout-bg-color);
210+
border: 1px solid #ffffff;
211+
}
212+
}
202213
.paragraph-box-operation {
203214
position: absolute;
204215
right: -10px;

ui/src/views/paragraph/component/ParagraphDialog.vue

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,26 @@
88
:close-on-click-modal="false"
99
:close-on-press-escape="false"
1010
@click.stop
11+
@mousemove.stop
12+
@mousedown.stop
13+
@keydown.stop
1114
>
1215
<el-row v-loading="loading">
1316
<el-col :span="18">
1417
<el-scrollbar height="500" wrap-class="paragraph-scrollbar">
1518
<div class="p-24" style="padding-bottom: 8px">
16-
<div style="position: absolute; right: 20px; top: 20px;">
19+
<div style="position: absolute; right: 20px; top: 20px">
1720
<el-button text @click="isEdit = true" v-if="paragraphId && !isEdit">
1821
<el-icon><EditPen /></el-icon>
1922
</el-button>
2023
</div>
2124

22-
<ParagraphForm ref="paragraphFormRef" :data="detail" :isEdit="isEdit" :knowledge-id="dataset_id"/>
25+
<ParagraphForm
26+
ref="paragraphFormRef"
27+
:data="detail"
28+
:isEdit="isEdit"
29+
:knowledge-id="dataset_id"
30+
/>
2331
</div>
2432
</el-scrollbar>
2533
<div class="text-right p-24 pt-0" v-if="paragraphId && isEdit">

ui/src/views/system/user-manage/index.vue

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,23 @@
2626
@change="getList"
2727
style="width: 220px"
2828
clearable
29+
:placeholder="$t('common.inputPlaceholder')"
2930
/>
3031
<el-input
3132
v-else-if="search_type === 'nick_name'"
3233
v-model="search_form.nick_name"
3334
@change="getList"
3435
style="width: 220px"
3536
clearable
37+
:placeholder="$t('common.inputPlaceholder')"
3638
/>
3739
<el-input
3840
v-else-if="search_type === 'email'"
3941
v-model="search_form.email"
4042
@change="getList"
4143
style="width: 220px"
4244
clearable
45+
:placeholder="$t('common.inputPlaceholder')"
4346
/>
4447
</div>
4548
</div>
@@ -252,7 +255,8 @@ function handleSizeChange() {
252255
function getList() {
253256
const params: any = {}
254257
if (search_form.value[search_type.value as keyof typeof search_form.value]) {
255-
params[search_type.value] = search_form.value[search_type.value as keyof typeof search_form.value]
258+
params[search_type.value] =
259+
search_form.value[search_type.value as keyof typeof search_form.value]
256260
}
257261
return userManageApi.getUserManage(paginationConfig, params, loading).then((res) => {
258262
userTableData.value = res.data.records.map((item: any) => ({

0 commit comments

Comments
 (0)