feat(cms): 新增网站密钥和字段加密功能- 在 CMS 网站模型中新增 websiteSecret 字段用于存储小程序密钥

- 为 CMS 网站字段添加 encrypted 字段以支持内容加密- 实现字段值的加密和解密功能,提升数据安全性- 更新网站编辑组件以支持密钥的输入和存储- 调整字段编辑组件,增加加密开关和类型选项
-优化字段列表展示逻辑,支持加密字段的特殊处理- 修改字段值类型为 any以适应多种数据格式
- 完善字段编辑表单验证规则和保存逻辑
- 更新相关组件的类型定义和事件处理- 调整界面布局和交互细节,提升用户体验
This commit is contained in:
2025-09-30 17:25:23 +08:00
parent cdb90cb60f
commit db143a73d6
15 changed files with 1528 additions and 300 deletions

View File

@@ -25,6 +25,7 @@
<div class="font-medium">{{ record.websiteName }}</div>
</template>
<template v-if="column.key === 'websiteCode'">
<div class="text-gray-400">{{ record.tenantId }}</div>
<div class="text-gray-400">
{{ record.websiteCode }}
</div>
@@ -177,9 +178,9 @@ const datasource: DatasourceFunction = ({
// 表格列配置
const columns = ref<ColumnItem[]>([
// {
// title: 'ID',
// dataIndex: 'websiteId',
// key: 'websiteId',
// title: 'AppID',
// dataIndex: 'tenantId',
// key: 'tenantId',
// width: 90
// },
{
@@ -198,16 +199,15 @@ const columns = ref<ColumnItem[]>([
{
title: '小程序信息',
dataIndex: 'websiteCode',
key: 'websiteCode',
align: 'center'
},
{
title: '小程序描述',
dataIndex: 'comments',
key: 'comments',
align: 'center'
key: 'websiteCode'
},
// {
// title: '小程序描述',
// dataIndex: 'comments',
// key: 'comments',
// align: 'center'
// },
// {
// title: '当前版本',
// dataIndex: 'version',
// key: 'version',