Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
N
nse-ui
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
吴超
nse-ui
Commits
ec77fb36
Commit
ec77fb36
authored
Aug 22, 2025
by
wanglizhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
脱敏算法上传
parent
0b0f16b2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
38 行增加
和
45 行删除
+38
-45
src/api/ruleConfig/algorithm.js
+15
-0
src/views/ruleConfig/Algorithm/index.vue
+23
-45
没有找到文件。
src/api/ruleConfig/algorithm.js
0 → 100644
View file @
ec77fb36
import
request
from
'@/utils/request'
/**
* 脱敏算法 - 查询规则
* @param {*} query
* @returns
*/
export
function
query
(
query
)
{
return
request
({
url
:
'/core/desensitizationrule/query'
,
method
:
'get'
,
params
:
query
})
}
\ No newline at end of file
src/views/ruleConfig/Algorithm/index.vue
View file @
ec77fb36
...
@@ -6,8 +6,11 @@ import CollapseView from '@/components/CollapseView/index.vue'
...
@@ -6,8 +6,11 @@ import CollapseView from '@/components/CollapseView/index.vue'
import
formModule
from
'./modules/formModule.vue'
import
formModule
from
'./modules/formModule.vue'
import
ModalPop
from
"@/components/EditPop/ModalPop.vue"
import
ModalPop
from
"@/components/EditPop/ModalPop.vue"
import
{
query
}
from
'@/api/ruleConfig/algorithm.js'
const
splitNum
=
ref
(
0.31
)
// 左右分割比例
const
splitNum
=
ref
(
0.31
)
// 左右分割比例
const
collapseList
=
ref
([])
const
collapseList
=
ref
([])
const
searchValue
=
ref
(
''
)
const
data
=
reactive
({
const
data
=
reactive
({
formEdit
:
{
formEdit
:
{
...
@@ -31,50 +34,25 @@ const modalPopShow = ref(false)
...
@@ -31,50 +34,25 @@ const modalPopShow = ref(false)
// 获取数据
// 获取数据
const
getCollapse
=
()
=>
{
const
getCollapse
=
()
=>
{
const
data
=
[
query
({
dataarea
:
searchValue
.
value
}).
then
(
res
=>
{
{
name
:
'测试数据域'
,
list
:
[
{
name
:
'aaaaa'
},
{
name
:
'bbbbb'
}
]
},
{
name
:
'通用规则'
,
list
:
[
{
name
:
'aaaaa'
},
{
name
:
'bbbbb'
}
]
},
{
name
:
'解密数据'
,
list
:
[]
}
]
collapseList
.
value
=
data
.
map
(
item
=>
{
const
list
=
item
.
list
.
map
(
itemTwo
=>
{
return
{
...
itemTwo
,
isCheck
:
false
,
isDelete
:
true
,
}
})
return
{
...
item
,
list
:
list
,
isAdd
:
true
,
isView
:
false
,
isDelete
:
false
,
}
})
})
// collapseList.value = data.map(item => {
// const list = item.list.map(itemTwo => {
// return {
// ...itemTwo,
// isCheck: false,
// isDelete: true,
// }
// })
// return {
// ...item,
// list: list,
// isAdd: true,
// isView: false,
// isDelete: false,
// }
// })
}
}
// 新增算法关闭
// 新增算法关闭
...
@@ -129,9 +107,9 @@ onMounted(() => {
...
@@ -129,9 +107,9 @@ onMounted(() => {
<Split
v-model=
"splitNum"
>
<Split
v-model=
"splitNum"
>
<
template
#
left
>
<
template
#
left
>
<div
class=
"demo-split-pane"
style=
"padding: 0 38px 10px 0;width: 100%;overflow: auto;height: 100%;"
>
<div
class=
"demo-split-pane"
style=
"padding: 0 38px 10px 0;width: 100%;overflow: auto;height: 100%;"
>
<el-input
class=
"mb20"
placeholder=
"脱敏规则搜索"
>
<el-input
class=
"mb20"
v-model=
"searchValue"
placeholder=
"脱敏规则搜索"
>
<template
#
suffix
>
<template
#
suffix
>
<el-icon
style=
"vertical-align: middle;"
>
<el-icon
style=
"vertical-align: middle;
cursor: pointer;"
@
click=
"getCollapse
"
>
<search
/>
<search
/>
</el-icon>
</el-icon>
</
template
>
</
template
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论