Skip to content

Commit b034737

Browse files
perf: Optimize icons
1 parent a197cfc commit b034737

File tree

6 files changed

+46
-47
lines changed

6 files changed

+46
-47
lines changed

ui/src/api/knowledge/knowledge.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -414,7 +414,7 @@ const updateKnowledgeVersion: (
414414
loading,
415415
)
416416
}
417-
const pageWorkflowAction: (
417+
const getWorkflowActionPage: (
418418
knowledge_id: string,
419419
page: pageRequest,
420420
query: any,
@@ -479,5 +479,5 @@ export default {
479479
publish,
480480
putKnowledgeWorkflow,
481481
workflowUpload,
482-
pageWorkflowAction,
482+
getWorkflowActionPage,
483483
}

ui/src/components/dynamics-form/items/upload/LocalFileUpload.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
<el-col :span="12" class="mb-8">
4242
<el-card
4343
shadow="never"
44-
class="file-List-card"
4544
style="--el-card-padding: 8px 12px; line-height: normal"
4645
>
4746
<div class="flex-between">

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

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@
3030
</template>
3131
<div v-if="configType === 'wechat'" class="flex align-center mb-16">
3232
<span class="lighter mr-8">{{
33-
$t('views.application.applicationAccess.wecomSetting.authenticationSuccessful')
34-
}}</span>
35-
<el-switch v-if="configType === 'wechat'" v-model="form[configType].is_certification"/>
33+
$t('views.application.applicationAccess.wecomSetting.authenticationSuccessful')
34+
}}</span>
35+
<el-switch v-if="configType === 'wechat'" v-model="form[configType].is_certification" />
3636
</div>
3737

3838
<h4 class="title-decoration-1 mb-16">
@@ -56,7 +56,7 @@
5656
class="color-primary"
5757
href="https://mp.weixin.qq.com/advanced/advanced?action=dev&t=advanced/dev"
5858
target="_blank"
59-
>{{ $t('views.application.applicationAccess.wechatPlatform') }}</a
59+
>{{ $t('views.application.applicationAccess.wechatPlatform') }}</a
6060
>{{ $t('views.application.applicationAccess.wechatSetting.urlInfo') }}
6161
</el-text>
6262
<el-text type="info" v-if="configType === 'dingtalk'">
@@ -65,7 +65,7 @@
6565
class="color-primary"
6666
href="https://open-dev.dingtalk.com/fe/app?hash=%23%2Fcorp%2Fapp#/corp/app"
6767
target="_blank"
68-
>{{ $t('views.application.applicationAccess.dingtalkPlatform') }}</a
68+
>{{ $t('views.application.applicationAccess.dingtalkPlatform') }}</a
6969
>{{ $t('views.application.applicationAccess.dingtalkSetting.urlInfo') }}
7070
</el-text>
7171
<el-text type="info" v-if="configType === 'wecom'">
@@ -74,14 +74,14 @@
7474
class="color-primary"
7575
href="https://work.weixin.qq.com/wework_admin/frame#apps"
7676
target="_blank"
77-
>{{ $t('views.application.applicationAccess.wecomPlatform') }}</a
77+
>{{ $t('views.application.applicationAccess.wecomPlatform') }}</a
7878
>{{ $t('views.application.applicationAccess.wecomSetting.urlInfo') }}
7979
</el-text>
8080
<el-text type="info" v-if="configType === 'lark'">
8181
{{ $t('views.application.applicationAccess.copyUrl') }}
82-
<a class="primary" href="https://open.feishu.cn/app/" target="_blank">{{
83-
$t('views.application.applicationAccess.larkPlatform')
84-
}}</a
82+
<a class="color-primary" href="https://open.feishu.cn/app/" target="_blank">{{
83+
$t('views.application.applicationAccess.larkPlatform')
84+
}}</a
8585
>{{ $t('views.application.applicationAccess.larkSetting.urlInfo') }}
8686
</el-text>
8787
<el-text type="info" v-if="configType === 'wecomBot'">
@@ -90,10 +90,9 @@
9090
class="color-primary"
9191
href="https://work.weixin.qq.com/wework_admin/frame#/manageTools"
9292
target="_blank"
93-
>{{ $t('views.application.applicationAccess.wecomPlatform') }}</a
93+
>{{ $t('views.application.applicationAccess.wecomPlatform') }}</a
9494
>{{ $t('views.application.applicationAccess.wecomBotSetting.urlInfo') }}
9595
</el-text>
96-
9796
</el-form-item>
9897
</el-form>
9998

@@ -109,20 +108,20 @@
109108
</template>
110109

111110
<script setup lang="ts">
112-
import {ref, reactive, computed} from 'vue'
113-
import type {FormInstance} from 'element-plus'
114-
import {useRoute} from 'vue-router'
115-
import {MsgError, MsgSuccess} from '@/utils/message'
116-
import {copyClick} from '@/utils/clipboard'
117-
import {t} from '@/locales'
118-
import {loadSharedApi} from '@/utils/dynamics-api/shared-api'
111+
import { ref, reactive, computed } from 'vue'
112+
import type { FormInstance } from 'element-plus'
113+
import { useRoute } from 'vue-router'
114+
import { MsgError, MsgSuccess } from '@/utils/message'
115+
import { copyClick } from '@/utils/clipboard'
116+
import { t } from '@/locales'
117+
import { loadSharedApi } from '@/utils/dynamics-api/shared-api'
119118
120119
type PlatformType = 'wechat' | 'dingtalk' | 'wecom' | 'lark' | 'slack' | 'wecomBot'
121120
122121
const route = useRoute()
123122
124123
const {
125-
params: {id},
124+
params: { id },
126125
} = route as any
127126
const apiType = computed(() => {
128127
if (route.path.includes('resource-management')) {
@@ -147,7 +146,7 @@ const form = reactive<any>({
147146
is_certification: false,
148147
callback_url: '',
149148
},
150-
dingtalk: {client_id: '', client_secret: '', callback_url: ''},
149+
dingtalk: { client_id: '', client_secret: '', callback_url: '' },
151150
wecom: {
152151
app_id: '',
153152
agent_id: '',
@@ -156,13 +155,13 @@ const form = reactive<any>({
156155
encoding_aes_key: '',
157156
callback_url: '',
158157
},
159-
lark: {app_id: '', app_secret: '', verification_token: '', callback_url: ''},
160-
slack: {signing_secret: '', bot_user_token: '', callback_url: ''},
158+
lark: { app_id: '', app_secret: '', verification_token: '', callback_url: '' },
159+
slack: { signing_secret: '', bot_user_token: '', callback_url: '' },
161160
wecomBot: {
162161
token: '',
163162
encoding_aes_key: '',
164163
callback_url: '',
165-
}
164+
},
166165
})
167166
168167
const rules = reactive<{ [propName: string]: any }>({
@@ -316,38 +315,38 @@ const configFields: { [propName: string]: { [propName: string]: any } } = {
316315
label: t('views.application.applicationAccess.wechatSetting.appSecret'),
317316
placeholder: '',
318317
},
319-
token: {label: t('views.application.applicationAccess.wechatSetting.token'), placeholder: ''},
318+
token: { label: t('views.application.applicationAccess.wechatSetting.token'), placeholder: '' },
320319
encoding_aes_key: {
321320
label: t('views.application.applicationAccess.wechatSetting.aesKey'),
322321
placeholder: '',
323322
},
324323
},
325324
dingtalk: {
326-
client_id: {label: 'Client ID', placeholder: ''},
327-
client_secret: {label: 'Client Secret', placeholder: ''},
325+
client_id: { label: 'Client ID', placeholder: '' },
326+
client_secret: { label: 'Client Secret', placeholder: '' },
328327
},
329328
wecom: {
330329
app_id: {
331330
label: t('views.application.applicationAccess.wecomSetting.cropId'),
332331
placeholder: '',
333332
},
334-
agent_id: {label: 'Agent ID', placeholder: ''},
335-
secret: {label: 'Secret', placeholder: ''},
336-
token: {label: 'Token', placeholder: ''},
337-
encoding_aes_key: {label: 'EncodingAESKey', placeholder: ''},
333+
agent_id: { label: 'Agent ID', placeholder: '' },
334+
secret: { label: 'Secret', placeholder: '' },
335+
token: { label: 'Token', placeholder: '' },
336+
encoding_aes_key: { label: 'EncodingAESKey', placeholder: '' },
338337
},
339338
wecomBot: {
340-
token: {label: 'Token', placeholder: ''},
341-
encoding_aes_key: {label: 'EncodingAESKey', placeholder: ''},
339+
token: { label: 'Token', placeholder: '' },
340+
encoding_aes_key: { label: 'EncodingAESKey', placeholder: '' },
342341
},
343342
lark: {
344-
app_id: {label: 'App ID', placeholder: ''},
345-
app_secret: {label: 'App Secret', placeholder: ''},
346-
verification_token: {label: 'Verification Token', placeholder: ''},
343+
app_id: { label: 'App ID', placeholder: '' },
344+
app_secret: { label: 'App Secret', placeholder: '' },
345+
verification_token: { label: 'Verification Token', placeholder: '' },
347346
},
348347
slack: {
349-
signing_secret: {label: 'Signing Secret', placeholder: ''},
350-
bot_user_token: {label: 'Bot User Token', placeholder: ''},
348+
signing_secret: { label: 'Signing Secret', placeholder: '' },
349+
bot_user_token: { label: 'Bot User Token', placeholder: '' },
351350
},
352351
}
353352
@@ -407,7 +406,7 @@ const submit = async () => {
407406
formRef.value?.validate(async (valid) => {
408407
if (valid) {
409408
try {
410-
loadSharedApi({type: 'application', systemType: apiType.value})
409+
loadSharedApi({ type: 'application', systemType: apiType.value })
411410
.updatePlatformConfig(id, configType.value, form[configType.value], loading)
412411
.then(() => {
413412
MsgSuccess(t('common.saveSuccess'))
@@ -445,5 +444,5 @@ const open = async (id: string, type: PlatformType) => {
445444
}
446445
}
447446
448-
defineExpose({open})
447+
defineExpose({ open })
449448
</script>

ui/src/views/document/upload/ResultSuccess.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949
<p class="bolder">{{ $t('views.knowledge.ResultSuccess.documentList') }}</p>
5050
<el-card
5151
shadow="never"
52-
class="file-List-card mt-8"
52+
class="mt-8"
53+
style="--el-card-padding: 8px 12px; line-height: normal"
5354
v-for="(item, index) in data?.document_list"
5455
:key="index"
5556
>

ui/src/views/document/upload/UploadComponent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@
187187
<el-row :gutter="8" v-if="form.fileList?.length">
188188
<template v-for="(item, index) in form.fileList" :key="index">
189189
<el-col :span="12" class="mb-8">
190-
<el-card shadow="never" class="file-List-card">
190+
<el-card shadow="never" style="--el-card-padding: 8px 12px; line-height: normal">
191191
<div class="flex-between">
192192
<div class="flex">
193193
<img :src="getImgUrl(item && item?.name)" alt="" width="40" />

ui/src/views/knowledge-workflow/component/list-action/index.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222
</template>
2323
</el-table-column>
2424
</el-table>
25-
<Result
25+
<!-- <Result
2626
v-if="active == 'details'"
2727
:id="active_action_id"
2828
:knowledge_id="active_knowledge_id"
29-
></Result>
29+
></Result> -->
3030
</el-drawer>
3131
</template>
3232
<script setup lang="ts">
@@ -64,7 +64,7 @@ const query = ref<any>({
6464
const data = ref<Array<any>>([])
6565
const page = () => {
6666
loadSharedApi({ type: 'knowledge', systemType: apiType.value })
67-
.pageWorkflowAction(active_knowledge_id.value, paginationConfig, query)
67+
.getWorkflowActionPage(active_knowledge_id.value, paginationConfig, query.value)
6868
.then((ok: any) => {
6969
paginationConfig.total = ok.data?.total
7070
data.value = ok.data.records

0 commit comments

Comments
 (0)