fix: Update lark icon and dialog style

This commit is contained in:
wangdan-fit2cloud 2025-03-26 20:46:14 +08:00 committed by GitHub
parent 601b03d84e
commit eed4d6857e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
21 changed files with 353 additions and 268 deletions

View File

@ -720,14 +720,9 @@ defineExpose({ open })
</script>
<style lang="scss">
.execution-details-dialog {
padding: 0;
.el-dialog__header {
padding: 24px 24px 0 24px;
}
.el-dialog__body {
padding: 8px !important;
padding-bottom: 16px;
}
.execution-details {

View File

@ -198,7 +198,7 @@
}}{{ getAcceptList().replace(/\./g, '').replace(/,/g, '、').toUpperCase() }}
</div>
</template>
<el-button text :disabled="checkMaxFilesLimit()" class="mt-4">
<el-button text :disabled="checkMaxFilesLimit() || loading" class="mt-4">
<el-icon><Paperclip /></el-icon>
</el-button>
</el-tooltip>

View File

@ -11,6 +11,15 @@
<AppAvatar v-if="data.type === '1'" class="mr-8 avatar-purple" shape="square" :size="32">
<img src="@/assets/icon_web.svg" style="width: 58%" alt="" />
</AppAvatar>
<AppAvatar
v-else-if="data.type === '2'"
class="mr-8 avatar-purple"
shape="square"
:size="32"
style="background: none"
>
<img src="@/assets/logo_lark.svg" style="width: 100%" alt="" />
</AppAvatar>
<AppAvatar v-else class="mr-12 avatar-blue" shape="square" :size="32">
<img src="@/assets/icon_document.svg" style="width: 58%" alt="" />

View File

@ -36,10 +36,19 @@
>
<img src="@/assets/icon_web.svg" style="width: 58%" alt="" />
</AppAvatar>
<AppAvatar
v-else-if="isDataset && current?.type === '2'"
class="mr-8 avatar-purple"
shape="square"
:size="24"
style="background: none"
>
<img src="@/assets/logo_lark.svg" style="width: 100%" alt="" />
</AppAvatar>
<AppAvatar v-else class="mr-8 avatar-blue" shape="square" :size="24">
<img src="@/assets/icon_document.svg" style="width: 58%" alt="" />
</AppAvatar>
<div class="ellipsis">{{ current?.name }}</div>
<div class="ellipsis" :title="current?.name">{{ current?.name }}</div>
</div>
<el-button text>
@ -63,6 +72,7 @@
>
<img :src="item?.icon" alt="" />
</AppAvatar>
<AppAvatar
v-else-if="isApplication"
:name="item.name"
@ -79,10 +89,19 @@
>
<img src="@/assets/icon_web.svg" style="width: 58%" alt="" />
</AppAvatar>
<AppAvatar
v-else-if="isDataset && item.type === '2'"
class="mr-8 avatar-purple"
shape="square"
:size="24"
style="background: none"
>
<img src="@/assets/logo_lark.svg" style="width: 100%" alt="" />
</AppAvatar>
<AppAvatar v-else class="mr-12 avatar-blue" shape="square" :size="24">
<img src="@/assets/icon_document.svg" style="width: 58%" alt="" />
</AppAvatar>
<span class="ellipsis"> {{ item?.name }}</span>
<span class="ellipsis" :title="item?.name"> {{ item?.name }}</span>
</div>
</el-dropdown-item>
</div>

View File

@ -93,6 +93,7 @@
.el-dialog__header {
padding-bottom: 24px;
font-weight: 500;
margin-top: -5px;
}
.el-dialog__footer {
padding-top: 0;
@ -378,18 +379,7 @@
// radio 一行一个样式
.radio-block {
width: 100%;
display: block;
.el-radio {
align-items: flex-start;
height: 100%;
width: 100%;
}
.el-radio__label {
width: 100%;
margin-top: -8px;
line-height: 30px;
}
display: inline-grid;
}
// 提示横幅

View File

@ -5,7 +5,7 @@
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<el-radio-group v-model="radioType" class="radio-block mb-16">
<el-radio-group v-model="radioType" class="radio-block-avatar mb-16">
<div>
<el-radio value="default">
<p>{{ $t('views.applicationOverview.appInfo.EditAvatarDialog.default') }}</p>
@ -139,4 +139,19 @@ function submit() {
defineExpose({ open })
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped>
.radio-block-avatar {
width: 100%;
display: block;
.el-radio {
align-items: flex-start;
height: 100%;
width: 100%;
}
.el-radio__label {
width: 100%;
margin-top: -8px;
line-height: 30px;
}
}
</style>

View File

@ -585,7 +585,7 @@ const submit = async (formEl: FormInstance | undefined) => {
defineExpose({ open })
</script>
<style lang="scss" scoped>
<style lang="scss">
.setting-preview {
background: #f5f6f7;
height: 570px;
@ -621,11 +621,11 @@ defineExpose({ open })
.display-setting-dialog {
.el-dialog__header {
padding-right: 16px;
padding-right: 8px;
}
.el-dialog__headerbtn {
top: 13px;
top: 8px;
}
}
</style>

View File

@ -204,7 +204,15 @@
>
<img src="@/assets/icon_web.svg" style="width: 58%" alt="" />
</AppAvatar>
<AppAvatar
v-if="relatedObject(datasetList, item, 'id')?.type === '2'"
class="mr-8 avatar-purple"
shape="square"
:size="32"
style="background: none"
>
<img src="@/assets/logo_lark.svg" style="width: 100%" alt="" />
</AppAvatar>
<AppAvatar v-else class="mr-8 avatar-blue" shape="square" :size="32">
<img src="@/assets/icon_document.svg" style="width: 58%" alt="" />
</AppAvatar>

View File

@ -2,7 +2,6 @@
<el-dialog
align-center
:title="$t('common.paramSetting')"
class="param-dialog"
v-model="dialogVisible"
style="width: 550px"
append-to-body
@ -21,7 +20,7 @@
</DynamicsForm>
<template #footer>
<span class="dialog-footer p-16">
<span class="dialog-footer">
<el-button @click.prevent="dialogVisible = false">
{{ $t('common.cancel') }}
</el-button>

View File

@ -158,7 +158,7 @@ defineExpose({ open })
}
.el-dialog__headerbtn {
top: 13px;
top: 9px;
}
.max-height {
max-height: calc(100vh - 260px);

View File

@ -2,7 +2,6 @@
<el-dialog
align-center
:title="$t('common.setting')"
class="param-dialog"
v-model="dialogVisible"
style="width: 550px"
append-to-body
@ -34,7 +33,7 @@
</el-form>
<template #footer>
<span class="dialog-footer p-16">
<span class="dialog-footer">
<el-button @click.prevent="dialogVisible = false">{{ $t('common.cancel') }}</el-button>
<el-button type="primary" @click="submit()" :loading="loading">
{{ $t('common.save') }}

View File

@ -9,8 +9,7 @@
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<div class="dialog-max-height">
<el-scrollbar>
<el-scrollbar max-height="550">
<div class="p-16">
<el-form label-position="top" ref="paramFormRef" :model="form">
<el-form-item :label="$t('views.application.applicationForm.dialog.selectSearchMode')">
@ -115,6 +114,7 @@
class="custom-slider"
/>
</el-form-item>
<el-form-item
v-if="!isWorkflowType"
:label="$t('views.application.applicationForm.dialog.noReferencesAction')"
@ -124,8 +124,8 @@
ref="noReferencesformRef"
:model="noReferencesform"
:rules="noReferencesRules"
class="w-full"
:hide-required-asterisk="true"
class="w-full"
>
<el-radio-group
v-model="form.dataset_setting.no_references_setting.status"
@ -140,9 +140,7 @@
<el-radio value="designated_answer">
<p>{{ $t('views.application.applicationForm.dialog.provideAnswer') }}</p>
<el-form-item
v-if="
form.dataset_setting.no_references_setting.status === 'designated_answer'
"
v-if="form.dataset_setting.no_references_setting.status === 'designated_answer'"
prop="designated_answer"
>
<el-input
@ -183,7 +181,7 @@
</el-form>
</div>
</el-scrollbar>
</div>
<template #footer>
<span class="dialog-footer p-16">
<el-button @click.prevent="dialogVisible = false">{{ $t('common.cancel') }}</el-button>
@ -326,6 +324,4 @@ function changeHandle(val: string) {
defineExpose({ open })
</script>
<style lang="scss">
</style>
<style lang="scss"></style>

View File

@ -4,7 +4,6 @@
:title="$t('common.paramSetting')"
v-model="dialogVisible"
style="width: 550px"
class="param-dialog"
append-to-body
:close-on-click-modal="false"
:close-on-press-escape="false"
@ -21,13 +20,12 @@
<template #footer>
<div class="flex-between">
<span class="p-16">
<el-button @click="testPlay" :loading="playLoading">
<AppIcon iconName="app-video-play" class="mr-4"></AppIcon>
{{ $t('views.application.applicationForm.form.voicePlay.listeningTest') }}
</el-button>
</span>
<span class="dialog-footer p-16">
<span class="dialog-footer">
<el-button @click.prevent="dialogVisible = false">
{{ $t('common.cancel') }}
</el-button>

View File

@ -6,7 +6,7 @@
width="450"
>
<el-radio-group v-model="state" class="radio-block">
<el-radio value="error" size="large" class="mb-16">{{
<el-radio value="error" size="large">{{
$t('components.selectParagraph.error')
}}</el-radio>
<el-radio value="all" size="large">{{ $t('components.selectParagraph.all') }}</el-radio>

View File

@ -21,11 +21,7 @@
<div class="p-16">
<el-row :gutter="12" v-loading="loading">
<el-col :span="12" v-for="(item, index) in datasetList" :key="index" class="mb-16">
<el-card
shadow="never"
class="mb-8"
:class="item.id === selectDataset ? 'active' : ''"
>
<el-card shadow="never" :class="item.id === selectDataset ? 'active' : ''">
<el-radio :value="item.id" size="large">
<div class="flex align-center">
<AppAvatar
@ -44,7 +40,16 @@
>
<img src="@/assets/icon_web.svg" style="width: 58%" alt="" />
</AppAvatar>
<span class="ellipsis">
<AppAvatar
v-if="item?.type === '2'"
class="mr-8 avatar-purple"
shape="square"
:size="32"
style="background: none"
>
<img src="@/assets/logo_lark.svg" style="width: 100%" alt="" />
</AppAvatar>
<span class="ellipsis" :title="item.name">
{{ item.name }}
</span>
</div>
@ -121,7 +126,7 @@ const refresh = () => {
defineExpose({ open })
</script>
<style lang="scss" scoped>
<style lang="scss">
.select-dataset-dialog {
padding: 0;
.el-dialog__header {

View File

@ -5,7 +5,7 @@
:close-on-click-modal="false"
:close-on-press-escape="false"
>
<el-radio-group v-model="radioType" class="radio-block mb-16">
<el-radio-group v-model="radioType" class="radio-block-avatar mb-16">
<div>
<el-radio value="default">
<p>{{ $t('views.applicationOverview.appInfo.EditAvatarDialog.default') }}</p>
@ -40,9 +40,8 @@
accept="image/jpeg, image/png, image/gif"
:on-change="onChange"
>
<el-button icon="Upload" :disabled="radioType !== 'custom'">{{
$t('views.applicationOverview.appInfo.EditAvatarDialog.upload')
}}
<el-button icon="Upload" :disabled="radioType !== 'custom'"
>{{ $t('views.applicationOverview.appInfo.EditAvatarDialog.upload') }}
</el-button>
</el-upload>
</div>
@ -54,9 +53,7 @@
</el-radio-group>
<template #footer>
<span class="dialog-footer">
<el-button @click.prevent="dialogVisible = false">
{{ $t('common.cancel') }}</el-button
>
<el-button @click.prevent="dialogVisible = false"> {{ $t('common.cancel') }}</el-button>
<el-button type="primary" @click="submit" :loading="loading">
{{ $t('common.save') }}</el-button
>
@ -116,8 +113,7 @@ function submit() {
} else if (radioType.value === 'custom' && iconFile.value) {
let fd = new FormData()
fd.append('file', iconFile.value.raw)
functionLibApi.putFunctionLibIcon(detail.value.id, fd, loading)
.then((res: any) => {
functionLibApi.putFunctionLibIcon(detail.value.id, fd, loading).then((res: any) => {
emit('refresh', res.data)
dialogVisible.value = false
})
@ -128,4 +124,19 @@ function submit() {
defineExpose({ open })
</script>
<style lang="scss" scoped></style>
<style lang="scss" scoped>
.radio-block-avatar {
width: 100%;
display: block;
.el-radio {
align-items: flex-start;
height: 100%;
width: 100%;
}
.el-radio__label {
width: 100%;
margin-top: -8px;
line-height: 30px;
}
}
</style>

View File

@ -16,7 +16,7 @@
require-asterisk-position="right"
>
<el-radio-group v-model="form.permission_type" class="radio-block">
<el-radio value="PRIVATE" size="large" class="mb-16">
<el-radio value="PRIVATE" size="large">
{{ $t('common.private') }}
<el-text type="info">{{
$t('views.template.templateForm.form.permissionType.privateDesc')

View File

@ -66,6 +66,15 @@
>
<img src="@/assets/icon_web.svg" style="width: 58%" alt="" />
</AppAvatar>
<AppAvatar
v-if="!item.dataset_id && item.type === '2'"
class="mr-8 avatar-purple"
shape="square"
:size="24"
style="background: none"
>
<img src="@/assets/logo_lark.svg" style="width: 100%" alt="" />
</AppAvatar>
<AppAvatar
v-else-if="!item.dataset_id && item.type === '0'"
class="mr-12 avatar-blue"

View File

@ -231,6 +231,15 @@
>
<img src="@/assets/icon_web.svg" style="width: 58%" alt="" />
</AppAvatar>
<AppAvatar
v-if="!item.dataset_id && item.type === '2'"
class="mr-12 avatar-purple"
shape="square"
:size="24"
style="background: none"
>
<img src="@/assets/logo_lark.svg" style="width: 100%" alt="" />
</AppAvatar>
<AppAvatar
v-else-if="!item.dataset_id && item.type === '0'"
class="mr-12 avatar-blue"

View File

@ -32,6 +32,15 @@
>
<img src="@/assets/icon_web.svg" style="width: 58%" alt="" />
</AppAvatar>
<AppAvatar
v-if="!item.dataset_id && item.type === '2'"
class="mr-12 avatar-purple"
shape="square"
:size="24"
style="background: none"
>
<img src="@/assets/logo_lark.svg" style="width: 100%" alt="" />
</AppAvatar>
<AppAvatar
v-else-if="!item.dataset_id && item.type === '0'"
class="mr-12 avatar-blue"
@ -99,7 +108,9 @@ const form = ref<any>({
})
const rules = reactive<FormRules>({
dataset_id: [{ required: true, message: t('views.log.selectDatasetPlaceholder'), trigger: 'change' }],
dataset_id: [
{ required: true, message: t('views.log.selectDatasetPlaceholder'), trigger: 'change' }
],
document_id: [{ required: true, message: t('views.log.documentPlaceholder'), trigger: 'change' }]
})

View File

@ -34,7 +34,15 @@
>
<img src="@/assets/icon_web.svg" style="width: 58%" alt="" />
</AppAvatar>
<AppAvatar
v-if="relatedObject(datasetList, item, 'id')?.type === '2'"
class="mr-8 avatar-purple"
shape="square"
:size="20"
style="background: none"
>
<img src="@/assets/logo_lark.svg" style="width: 100%" alt="" />
</AppAvatar>
<AppAvatar v-else class="mr-8 avatar-blue" shape="square" :size="20">
<img src="@/assets/icon_document.svg" style="width: 58%" alt="" />
</AppAvatar>
@ -92,7 +100,9 @@
:label="$t('views.applicationWorkflow.nodes.searchDatasetNode.searchQuestion.label')"
prop="question_reference_address"
:rules="{
message: $t('views.applicationWorkflow.nodes.searchDatasetNode.searchQuestion.requiredMessage'),
message: $t(
'views.applicationWorkflow.nodes.searchDatasetNode.searchQuestion.requiredMessage'
),
trigger: 'blur',
required: true
}"
@ -101,7 +111,9 @@
ref="nodeCascaderRef"
:nodeModel="nodeModel"
class="w-full"
:placeholder="$t('views.applicationWorkflow.nodes.searchDatasetNode.searchQuestion.placeholder')"
:placeholder="
$t('views.applicationWorkflow.nodes.searchDatasetNode.searchQuestion.placeholder')
"
v-model="form_data.question_reference_address"
/>
</el-form-item>