Skip to content

Commit 77e4d24

Browse files
fix: some style
1 parent 55047f9 commit 77e4d24

12 files changed

Lines changed: 39 additions & 121 deletions

File tree

ui/src/api/knowledge/knowledge.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,7 @@ const delMulKnowledge: (data: any, loading?: Ref<boolean>) => Promise<Result<boo
539539
return put(`${prefix.value}/batch_delete`, { id_list: data }, undefined, loading)
540540
}
541541
/**
542-
* 批量删除知识库
542+
* 批量转移知识库
543543
* @param 参数
544544
* {
545545
"id_list": [String]

ui/src/components/card-checkbox/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<el-card
33
shadow="hover"
44
class="card-checkbox cursor"
5-
:class="modelValue.includes(toModelValue) ? 'active' : ''"
5+
:class="modelValue.includes(toModelValue) ? 'border-active' : ''"
66
@click="checked"
77
>
88
<div class="flex-between">

ui/src/components/folder-tree/MoveToDialog.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ const submitHandle = async () => {
118118
})
119119
} else if (props.source === SourceTypeEnum.KNOWLEDGE) {
120120
if (isBatch.value) {
121-
ToolApi.putMulMoveTool(obj, loading).then(() => {
121+
KnowledgeApi.putMulMoveKnowledge(obj, loading).then(() => {
122122
MsgSuccess(t('common.saveSuccess'))
123123
emit('refresh')
124124
dialogVisible.value = false

ui/src/components/resource-authorization-drawer/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@
104104
width="160"
105105
>
106106
<template #default="{ row }">
107-
<TagGroup class="cursor" :tags="row.role_name" />
107+
<TagGroup class="cursor" :tags="row.role_name" v-if="row.role_name" />
108108
</template>
109109
</el-table-column>
110110
<el-table-column :label="$t('common.operation')" align="left" width="340">

ui/src/components/tag-group/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
2-
<div class="tag-group" v-if="props.tags.length">
3-
<el-tag :size="props.size" class="default-tag tag-ellipsis" :title="props.tags[0]">
4-
{{ i18n_name(props.tags[0]) }}
2+
<div class="tag-group">
3+
<el-tag :size="props.size" class="default-tag tag-ellipsis" :title="props.tags?.[0]">
4+
{{ i18n_name(props.tags?.[0]) }}
55
</el-tag>
66
<el-popover
77
placement="bottom"

ui/src/styles/element-plus.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
--el-text-color-primary-rgb: 31, 35, 41;
66
--el-border-radius-base: 6px;
77
--el-menu-item-height: 45px;
8-
--el-border-color: rgba(var(--el-text-color-primary-rgb), 0.15);
8+
--el-border-color: #DEE0E3;
99
}
1010

1111
.el-avatar {

ui/src/views/application/component/ApplicationDialog.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</div>
1818

1919
<el-button link class="mr-24" @click="refresh">
20-
<el-icon :size="18"><Refresh /></el-icon>
20+
<el-icon :size="18" class="color-secondary "><Refresh /></el-icon>
2121
</el-button>
2222
</div>
2323
</template>
@@ -45,7 +45,7 @@
4545
</div>
4646

4747
<el-scrollbar>
48-
<div class="p-16-24 pt-0" style="height: calc(100vh - 200px)">
48+
<div class="p-16-24 pt-0" style="height: calc(100vh - 268px)">
4949
<el-row :gutter="12" v-loading="apiLoading" v-if="searchData.length">
5050
<el-col :span="12" v-for="(item, index) in searchData" :key="index" class="mb-16">
5151
<el-popover

ui/src/views/application/component/ToolDialog.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
<template #header="{ titleId, titleClass }">
1212
<div class="flex-between mb-8">
1313
<div class="flex">
14-
<h4 :id="titleId" :class="titleClass" class="mr-8">
14+
<h4 :id="titleId" :class="titleClass" class="mr-8 color-secondary">
1515
{{ $t('views.tool.settingTool') }}
1616
</h4>
1717
</div>
1818

1919
<el-button link class="mr-24" @click="refresh">
20-
<el-icon :size="18"><Refresh /></el-icon>
20+
<el-icon :size="18" class="color-secondary"><Refresh /></el-icon>
2121
</el-button>
2222
</div>
2323
</template>
@@ -32,7 +32,7 @@
3232
:canOperation="false"
3333
showShared
3434
:shareTitle="$t('views.shared.shared_tool')"
35-
:treeStyle="{ height: 'calc(100vh - 240px)' }"
35+
:treeStyle="{ height: 'calc(100vh - 294px)' }"
3636
/>
3737
</template>
3838
<div class="layout-bg">
@@ -48,7 +48,7 @@
4848
</div>
4949

5050
<el-scrollbar>
51-
<div class="p-16-24 pt-0" style="height: calc(100vh - 200px)">
51+
<div class="p-16-24 pt-0" style="height: calc(100vh - 268px)">
5252
<el-row :gutter="12" v-loading="apiLoading" v-if="searchData.length">
5353
<el-col :span="12" v-for="(item, index) in searchData" :key="index" class="mb-16">
5454
<el-popover

ui/src/views/application/template-store/TemplateStoreDialog.vue

Lines changed: 10 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
v-model="dialogVisible"
44
width="1000"
55
append-to-body
6-
class="tool-store-dialog"
6+
class="template-store-dialog"
77
align-center
88
:close-on-click-modal="false"
99
:close-on-press-escape="false"
@@ -27,34 +27,13 @@
2727
</div>
2828
</div>
2929
</template>
30-
31-
<!-- <LayoutContainer v-loading="loading" :minLeftWidth="204">
32-
<template #left>
33-
<el-anchor
34-
direction="vertical"
35-
:offset="130"
36-
type="default"
37-
container=".category-scrollbar"
38-
@click="handleClick"
39-
>
40-
<el-anchor-link
41-
v-for="category in categories"
42-
:key="category.id"
43-
:href="`#category-${category.id}`"
44-
:title="category.title"
45-
/>
46-
</el-anchor>
47-
</template> -->
48-
49-
<el-scrollbar class="layout-bg" wrap-class="p-16-24 category-scrollbar">
30+
<el-scrollbar
31+
class="layout-bg"
32+
wrap-class="p-16-24 category-scrollbar"
33+
style="border-radius: 0 0 8px 8px"
34+
>
5035
<template v-if="filterList === null">
5136
<div v-for="category in categories" :key="category.id">
52-
<!-- <h4
53-
class="title-decoration-1 mb-16 mt-8 color-text-primary"
54-
:id="`category-${category.id}`"
55-
>
56-
{{ category.title }}
57-
</h4> -->
5837
<el-row :gutter="16">
5938
<el-col v-for="tool in category.tools" :key="tool.id" :span="8" class="mb-16">
6039
<TemplateCard
@@ -70,10 +49,6 @@
7049
</div>
7150
</template>
7251
<div v-else>
73-
<!-- <h4 class="color-text-primary medium mb-16">
74-
<span class="color-primary">{{ searchValue }}</span>
75-
{{ t('views.tool.toolStore.searchResult', { count: filterList.length }) }}
76-
</h4> -->
7752
<el-row :gutter="16" v-if="filterList.length">
7853
<el-col v-for="tool in filterList" :key="tool.id" :span="8" class="mb-16">
7954
<TemplateCard
@@ -88,7 +63,6 @@
8863
<el-empty v-else :description="$t('common.noData')" />
8964
</div>
9065
</el-scrollbar>
91-
<!-- </LayoutContainer> -->
9266
</el-dialog>
9367
<InternalDescDrawer ref="internalDescDrawerRef" @addTool="handleOpenAdd" />
9468
<CreateApplicationDialog ref="CreateKnowledgeDialogRef" />
@@ -197,10 +171,6 @@ async function getStoreToolList() {
197171
}
198172
}
199173
200-
const handleClick = (e: MouseEvent) => {
201-
e.preventDefault()
202-
}
203-
204174
const internalDescDrawerRef = ref<InstanceType<typeof InternalDescDrawer>>()
205175
206176
async function handleDetail(tool: any) {
@@ -247,7 +217,7 @@ function handleStoreAdd(tool: any) {
247217
defineExpose({ open })
248218
</script>
249219
<style lang="scss">
250-
.tool-store-dialog {
220+
.template-store-dialog {
251221
padding: 0;
252222
253223
.el-dialog__headerbtn {
@@ -269,17 +239,6 @@ defineExpose({ open })
269239
}
270240
}
271241
}
272-
273-
.layout-container__left {
274-
background-color: var(--app-layout-bg-color);
275-
border-radius: 0 0 0 8px;
276-
}
277-
278-
.layout-container__right {
279-
background-color: var(--app-layout-bg-color);
280-
border-radius: 0 0 8px 0;
281-
}
282-
283242
.el-anchor {
284243
background-color: var(--app-layout-bg-color);
285244
@@ -301,16 +260,15 @@ defineExpose({ open })
301260
302261
&.is-active {
303262
color: var(--el-color-primary);
304-
// TODO
305-
background-color: #3370ff1a;
263+
background-color: var(--el-color-primary-light-9);
306264
}
307265
}
308266
}
309267
}
310268
311269
.category-scrollbar {
312-
height: calc(100vh - 200px);
313-
// min-height: 500px;
270+
max-height: calc(100vh - 200px);
271+
min-height: 500px;
314272
}
315273
}
316274
</style>

ui/src/views/knowledge/template-store/TemplateStoreDialog.vue

Lines changed: 13 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
v-model="dialogVisible"
44
width="1000"
55
append-to-body
6-
class="tool-store-dialog"
6+
class="template-store-dialog"
77
align-center
88
:close-on-click-modal="false"
99
:close-on-press-escape="false"
@@ -28,33 +28,13 @@
2828
</div>
2929
</template>
3030

31-
<!-- <LayoutContainer v-loading="loading" :minLeftWidth="204">
32-
<template #left>
33-
<el-anchor
34-
direction="vertical"
35-
:offset="130"
36-
type="default"
37-
container=".category-scrollbar"
38-
@click="handleClick"
39-
>
40-
<el-anchor-link
41-
v-for="category in categories"
42-
:key="category.id"
43-
:href="`#category-${category.id}`"
44-
:title="category.title"
45-
/>
46-
</el-anchor>
47-
</template> -->
48-
49-
<el-scrollbar class="layout-bg" wrap-class="p-16-24 category-scrollbar">
31+
<el-scrollbar
32+
class="layout-bg"
33+
wrap-class="p-16-24 category-scrollbar"
34+
style="border-radius: 0 0 8px 8px"
35+
>
5036
<template v-if="filterList === null">
5137
<div v-for="category in categories" :key="category.id">
52-
<!-- <h4
53-
class="title-decoration-1 mb-16 mt-8 color-text-primary"
54-
:id="`category-${category.id}`"
55-
>
56-
{{ category.title }}
57-
</h4> -->
5838
<el-row :gutter="16">
5939
<el-col v-for="tool in category.tools" :key="tool.id" :span="8" class="mb-16">
6040
<TemplateCard
@@ -70,10 +50,6 @@
7050
</div>
7151
</template>
7252
<div v-else>
73-
<!-- <h4 class="color-text-primary medium mb-16">
74-
<span class="color-primary">{{ searchValue }}</span>
75-
{{ t('views.tool.toolStore.searchResult', { count: filterList.length }) }}
76-
</h4> -->
7753
<el-row :gutter="16" v-if="filterList.length">
7854
<el-col v-for="tool in filterList" :key="tool.id" :span="8" class="mb-16">
7955
<TemplateCard
@@ -88,7 +64,6 @@
8864
<el-empty v-else :description="$t('common.noData')" />
8965
</div>
9066
</el-scrollbar>
91-
<!-- </LayoutContainer> -->
9267
</el-dialog>
9368
<InternalDescDrawer ref="internalDescDrawerRef" @addTool="handleOpenAdd" />
9469
<CreateWorkflowKnowledgeDialog ref="CreateKnowledgeDialogRef" />
@@ -197,10 +172,6 @@ async function getStoreToolList() {
197172
}
198173
}
199174
200-
const handleClick = (e: MouseEvent) => {
201-
e.preventDefault()
202-
}
203-
204175
const internalDescDrawerRef = ref<InstanceType<typeof InternalDescDrawer>>()
205176
206177
async function handleDetail(tool: any) {
@@ -247,7 +218,7 @@ function handleStoreAdd(tool: any) {
247218
defineExpose({ open })
248219
</script>
249220
<style lang="scss">
250-
.tool-store-dialog {
221+
.template-store-dialog {
251222
padding: 0;
252223
253224
.el-dialog__headerbtn {
@@ -269,17 +240,9 @@ defineExpose({ open })
269240
}
270241
}
271242
}
272-
273-
.layout-container__left {
274-
background-color: var(--app-layout-bg-color);
275-
border-radius: 0 0 0 8px;
276-
}
277-
278-
.layout-container__right {
279-
background-color: var(--app-layout-bg-color);
280-
border-radius: 0 0 8px 0;
281-
}
282-
243+
// .el-dialog__body {
244+
// border-radius: 0 0 8px 8px;
245+
// }
283246
.el-anchor {
284247
background-color: var(--app-layout-bg-color);
285248
@@ -301,15 +264,15 @@ defineExpose({ open })
301264
302265
&.is-active {
303266
color: var(--el-color-primary);
304-
background-color: #3370ff1a;
267+
background-color: var(--el-color-primary-light-9);
305268
}
306269
}
307270
}
308271
}
309272
310273
.category-scrollbar {
311-
height: calc(100vh - 200px);
312-
// min-height: 500px;
274+
max-height: calc(100vh - 200px);
275+
min-height: 500px;
313276
}
314277
}
315278
</style>

0 commit comments

Comments
 (0)