fix: optimize folder style (#4104)

v3.2
wangdan-fit2cloud 2025-09-26 17:44:26 +08:00
parent 9640c7ba9e
commit 196b8bba58
8 changed files with 61 additions and 53 deletions

View File

@ -139,5 +139,8 @@ defineExpose({ open })
padding: 0 !important;
margin-bottom: 8px;
}
:deep(.tree-label) {
max-width: 100% !important;
}
}
</style>

View File

@ -42,7 +42,7 @@
<div class="flex-between w-full" @mouseenter.stop="handleMouseEnter(data)">
<div class="flex align-center">
<AppIcon iconName="app-folder" style="font-size: 20px"></AppIcon>
<span class="ml-8 ellipsis" style="max-width: 110px" :title="node.label">{{
<span class="ml-8 ellipsis tree-label" style="max-width: 110px" :title="node.label">{{
node.label
}}</span>
</div>

View File

@ -7,7 +7,7 @@ export default {
importApplication: '导入应用',
copyApplication: '复制应用',
workflow: '高级编排',
simple: '简应用',
simple: '简应用',
simplePlaceholder: '适用于初级用户使用表单设置构建AI对话助手',
workflowPlaceholder: '适用于高级用户使用低代码拖拉拽方式构建复杂逻辑的AI对话助手',
appTest: '调试预览',

View File

@ -5,7 +5,7 @@ export default {
importApplication: '匯入應用',
copyApplication: '複製應用',
workflow: '進階編排',
simple: '簡單配置',
simple: '簡易應用',
simplePlaceholder: '適用於初級用戶使用表單設定構建AI對話助手',
workflowPlaceholder: '適用於高階用戶使用低代碼拖拉拽方式構建複雜邏輯的AI對話助手',
appTest: '調試預覽',

View File

@ -116,7 +116,11 @@
</el-checkbox-group>
</el-form-item>
<el-form-item
v-if="form.authentication_value.type === 'login' && form.authentication_value?.login_value?.includes('LOCAL')"
class="ml-24"
v-if="
form.authentication_value.type === 'login' &&
form.authentication_value?.login_value?.includes('LOCAL')
"
:label="$t('views.system.display_code')"
:rules="[
{
@ -127,21 +131,21 @@
]"
prop="authentication_value.max_attempts"
>
<span style="font-size: 13px;">
<span style="font-size: 13px">
{{ $t('views.system.loginFailed') }}
</span>
<el-input-number
style="margin-left: 8px;"
style="margin-left: 8px"
v-model="form.authentication_value.max_attempts"
:min="-1"
:max="10"
:step="1"
controls-position="right"
/>
<span style="margin-left: 8px; font-size: 13px;">
<span style="margin-left: 8px; font-size: 13px">
{{ $t('views.system.loginFailedMessage') }}
</span>
<span style="margin-left: 8px; color: #909399; font-size: 12px;">
<span style="margin-left: 8px; color: #909399; font-size: 12px">
({{ $t('views.system.display_codeTip') }})
</span>
</el-form-item>

View File

@ -338,7 +338,6 @@ function generatePrompt(inputValue: any) {
reader.read().then(getWrite(reader))
})
} else if (apiType.value === 'systemManage') {
console.log(apiType.value)
systemGeneratePromptAPI
.generate_prompt(applicationID.value, modelID.value, requestData)
.then((response) => {
@ -423,6 +422,7 @@ const handleScroll = () => {
}
const handleDialogClose = (done: () => void) => {
if (answer.value) {
//
MsgConfirm(t('common.tip'), t('views.application.generateDialog.exit'), {
confirmButtonText: t('common.confirm'),
@ -442,6 +442,7 @@ const handleDialogClose = (done: () => void) => {
//
})
}
}
//
onUnmounted(() => {

View File

@ -1,7 +1,7 @@
<template>
<el-dialog
v-model="dialogVisible"
width="1000"
width="1200"
append-to-body
class="tool-store-dialog"
align-center
@ -10,7 +10,7 @@
>
<template #header="{ titleId }">
<div class="dialog-header flex-between mb-8">
<h4 :id="titleId" class="medium">
<h4 :id="titleId" class="medium w-240 mr-8">
{{ $t('views.tool.toolStore.title') }}
</h4>
<el-radio-group v-model="toolType" @change="radioChange" class="app-radio-button-group">

View File

@ -201,8 +201,8 @@ const defaultPrompt = `{{${t('views.applicationWorkflow.nodes.startNode.label')}
const form = {
model_id: '',
system: defaultPrompt,
prompt: t('views.applicationWorkflow.nodes.questionNode.systemDefault'),
system: t('views.applicationWorkflow.nodes.questionNode.systemDefault'),
prompt: defaultPrompt,
dialogue_number: 1,
is_result: false,
}