feat(data): 添加数据不去重功能
部署开发环境 / deploy-dev (push) Successful in 2m6s

- 在数据控制器中引入去重对象逻辑
- 根据去重对象配置决定是否执行去重操作
- 当去重对象为 false 时不进行去重直接写入数据库
- 在管理界面令牌管理页面添加不去重选项
- 表格中显示去重对象时将 false 显示为不去重中文描述
This commit is contained in:
2026-07-09 00:21:04 +08:00
parent ac72b80505
commit bc15b19474
2 changed files with 20 additions and 2 deletions
+4 -1
View File
@@ -43,6 +43,7 @@ const clear = () => {
}
const options = [
{value: 'false', label: '不用去重'},
{value: 'uid', label: 'uid'},
{value: 'secid', label: 'secid'},
{value: 'pid', label: 'pid'},
@@ -234,7 +235,9 @@ onMounted(() => {
<el-table-column prop="dedup_object" label="去重对象" width="200">
<template #default="{ row }">
<el-tag type="primary" effect="plain">{{ row.dedup_object }}</el-tag>
<el-tag type="primary" effect="plain">
{{ row.dedup_object == "false" ? "不去重" : row.dedup_object }}
</el-tag>
</template>
</el-table-column>