perf: Advanced Assistant Application Adds AES Encryption Fields

This commit is contained in:
fit2cloud-chenyw
2025-08-29 17:20:46 +08:00
parent 4b7d27057d
commit 1e0f6d0eb6
3 changed files with 40 additions and 2 deletions
+3 -1
View File
@@ -514,6 +514,8 @@
"creating_advanced_applications": "Creating Advanced Applications",
"configure_interface": "Configure interface",
"interface_url": "Interface URL",
"aes_enable": "Enable AES encryption. The fields (host, user, password, dataBase, schema) are all encrypted using the AES-CBC-PKCS5Padding encryption method",
"bit": "bit",
"credential_acquisition_method": "Credential acquisition method",
"table_notes": "Table notes",
"system_credential_type": "Source system credential type",
@@ -647,4 +649,4 @@
"setting_successfully": "Setting Successfully",
"customize_theme_color": "Customize theme color"
}
}
}
+3 -1
View File
@@ -513,6 +513,8 @@
"private": "私有",
"configure_interface": "配置接口",
"interface_url": "接口 URL",
"aes_enable": "开启 AES 加密,加密字段 (host, user, password, dataBase, schema) 均采用 AES-CBC-PKCS5Padding 加密方式",
"bit": "位",
"creating_advanced_applications": "创建高级应用",
"credential_acquisition_method": "凭证获取方式",
"table_notes": "表备注",
@@ -647,4 +649,4 @@
"setting_successfully": "设置成功",
"customize_theme_color": "自定义主题色"
}
}
}
@@ -79,6 +79,9 @@ const certificateForm = reactive(cloneDeep(defaultCertificateForm))
const defaultUrlForm = {
endpoint: '',
encrypt: true,
aes_key: '',
aes_iv: '',
certificate: [] as any,
}
const urlForm = reactive(cloneDeep(defaultUrlForm))
@@ -722,6 +725,37 @@ const saveHandler = () => {
autocomplete="off"
/>
</el-form-item>
<el-form-item prop="AES" :label="t('embedded.aes_enable')">
<el-switch v-model="urlForm.encrypt" />
</el-form-item>
<el-form-item v-if="urlForm.encrypt" prop="aes_key" label="AES Key">
<el-input
v-model="urlForm.aes_key"
clearable
:placeholder="
$t('datasource.please_enter') +
$t('common.empty') +
' 32 ' +
$t('embedded.bit') +
' AES Key'
"
autocomplete="off"
/>
</el-form-item>
<el-form-item v-if="urlForm.encrypt" prop="aes_iv" label="AES IV">
<el-input
v-model="urlForm.aes_iv"
clearable
:placeholder="
$t('datasource.please_enter') +
$t('common.empty') +
' 16 ' +
$t('embedded.bit') +
' AES IV'
"
autocomplete="off"
/>
</el-form-item>
<el-form-item class="certificate-table_form" prop="type">
<template #label>
<div class="title-content">