Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
B
bigDataSystem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
bigDataSystem
Commits
74119e59
Commit
74119e59
authored
Nov 08, 2024
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部分修改
parent
f3269985
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
115 additions
and
60 deletions
+115
-60
desensitizationAlgorithm.data.ts
...desensitizationAlgorithm/desensitizationAlgorithm.data.ts
+2
-12
index.vue
src/views/dataSecurity/desensitizationAlgorithm/index.vue
+15
-4
gradingResults.data.ts
src/views/dataSecurity/gradingResults/gradingResults.data.ts
+10
-15
gradingResultsModal.vue
...views/dataSecurity/gradingResults/gradingResultsModal.vue
+7
-2
index.vue
src/views/dataSecurity/gradingResults/index.vue
+1
-1
addObjectModal.vue
src/views/dataSecurity/protectionRules/addObjectModal.vue
+1
-9
index.vue
src/views/dataSecurity/protectionRules/index.vue
+12
-3
protectionRules.data.ts
...iews/dataSecurity/protectionRules/protectionRules.data.ts
+37
-9
protectionRulesModal.vue
...ews/dataSecurity/protectionRules/protectionRulesModal.vue
+3
-0
index.vue
src/views/dataSecurity/sensitiveRules/index.vue
+13
-2
index.vue
src/views/dataSecurity/sensitiveType/index.vue
+13
-2
index.vue
src/views/knowledgeBase/index.vue
+1
-1
No files found.
src/views/dataSecurity/desensitizationAlgorithm/desensitizationAlgorithm.data.ts
View file @
74119e59
...
...
@@ -100,12 +100,7 @@ export const formSchema: any[] = [
field
:
'algorithmDes'
,
label
:
'算法描述'
,
component
:
'Input'
,
rules
:
[
{
required
:
true
,
message
:
'请输入算法描述'
,
},
],
},
{
field
:
'params'
,
...
...
@@ -117,12 +112,7 @@ export const formSchema: any[] = [
{
label
:
'INT'
,
value
:
'INT'
},
],
},
rules
:
[
{
required
:
true
,
message
:
'请选择敏感类型'
,
},
],
},
{
field
:
'describe'
,
...
...
src/views/dataSecurity/desensitizationAlgorithm/index.vue
View file @
74119e59
...
...
@@ -2,7 +2,7 @@
<PageWrapper
dense
contentFullHeight
fixedHeight
contentClass=
"flex"
>
<BasicTable
@
register=
"registerTable"
:searchInfo=
"searchInfo"
>
<template
#
toolbar
>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"handle
Export
"
>
删除
</a-button>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"handle
DeleteIds
"
>
删除
</a-button>
<a-button
type=
"primary"
@
click=
"handleCreate"
>
新增
</a-button>
</
template
>
<
template
#
bodyCell=
"{ column, record }"
>
...
...
@@ -31,7 +31,7 @@
</
template
>
</template>
</BasicTable>
<
sensitiveRules
Modal
@
register=
"registerModal"
@
success=
"handleSuccess"
/>
<
desensitizationAlgorithm
Modal
@
register=
"registerModal"
@
success=
"handleSuccess"
/>
</PageWrapper>
</template>
<
script
lang=
"ts"
setup
>
...
...
@@ -40,7 +40,7 @@ import { BasicTable, useTable, TableAction } from '@/components/Table';
import
{
PageWrapper
}
from
'@/components/Page'
;
import
{
useMessage
}
from
'@/hooks/web/useMessage'
;
import
{
useModal
}
from
'@/components/Modal'
;
import
sensitiveRules
Modal
from
'./desensitizationAlgorithmModal.vue'
;
import
desensitizationAlgorithm
Modal
from
'./desensitizationAlgorithmModal.vue'
;
import
{
columns
,
searchFormSchema
}
from
'./desensitizationAlgorithm.data'
;
import
{
tableList
}
from
"@/views/dataSecurity/desensitizationAlgorithm/mock"
;
...
...
@@ -49,7 +49,7 @@ import { useRoute, onBeforeRouteLeave } from 'vue-router';
import
{
router
}
from
'@/router'
;
defineOptions
({
name
:
'sensitiveRules'
});
const
{
createMessage
}
=
useMessage
();
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
route
=
useRoute
();
const
[
registerModal
,
{
openModal
}]
=
useModal
();
const
[
registerResetPassword
,
{
openModal
:
openResetPasswordModal
}]
=
useModal
();
...
...
@@ -94,6 +94,17 @@ const [registerTable, { reload, updateTableDataRecord, getSearchInfo, getForm,ge
// slots: { customRender: 'action' },
},
});
function
handleDeleteIds
()
{
createConfirm
({
iconType
:
'warning'
,
title
:
'确认删除'
,
content
:
'确认批量删除选中数据吗?'
,
onOk
()
{
createMessage
.
success
(
'批量删除成功!'
);
},
});
}
/** 新增按钮*/
function
handleCreate
()
{
openModal
(
true
,
{
...
...
src/views/dataSecurity/gradingResults/gradingResults.data.ts
View file @
74119e59
...
...
@@ -13,7 +13,7 @@ export const searchFormSchema: FormSchema[] = [
field
:
'dataLink'
,
label
:
''
,
component
:
'Select'
,
colProps
:
{
span
:
3
},
colProps
:
{
span
:
2
},
componentProps
:
{
placeholder
:
'请选择数据链接'
,
options
:
[
...
...
@@ -27,7 +27,7 @@ export const searchFormSchema: FormSchema[] = [
field
:
'databaseLink'
,
label
:
' '
,
component
:
'Select'
,
colProps
:
{
span
:
3
},
colProps
:
{
span
:
2
},
componentProps
:
{
placeholder
:
'请选择数据库链接'
,
options
:
[
...
...
@@ -53,7 +53,7 @@ export const searchFormSchema: FormSchema[] = [
field
:
'name'
,
label
:
' '
,
component
:
'Input'
,
colProps
:
{
span
:
3
},
colProps
:
{
span
:
2
},
componentProps
:
{
placeholder
:
'字段名'
,
},
...
...
@@ -179,13 +179,11 @@ export const formSchema: any[] = [
{
label
:
'担保方式'
,
value
:
'担保方式'
},
],
},
rules
:
[
{
required
:
true
,
message
:
'请选择敏感类型'
,
},
],
dynamicRules
:
({
values
})
=>
{
return
values
.
flag
===
'敏感'
?
[{
required
:
true
,
message
:
'说明必填'
}]
:
[];
},
},
{
field
:
'level'
,
label
:
'安全分级'
,
...
...
@@ -201,11 +199,8 @@ export const formSchema: any[] = [
{
label
:
'G5'
,
value
:
'G5'
},
],
},
rules
:
[
{
required
:
true
,
message
:
'请选择安全分级'
,
},
],
dynamicRules
:
({
values
})
=>
{
return
values
.
flag
===
'敏感'
?
[{
required
:
true
,
message
:
'说明必填'
}]
:
[];
},
},
]
src/views/dataSecurity/gradingResults/gradingResultsModal.vue
View file @
74119e59
...
...
@@ -3,8 +3,8 @@
<div
class=
"modal_top"
>
<div><Icon
icon=
"ant-design:hdd-outlined"
:size=
"30"
:color=
"'#1091FE'"
/></div>
<div>
<div
class=
"title"
>
uuid
</div>
<div
class=
"path"
>
17kundb/foresight_foresight1/fs_assets/uuid
</div>
<div
class=
"title"
>
{{
formParams
.
name
}}
</div>
<div
class=
"path"
>
{{
formParams
.
dataLink
}}
/
{{
formParams
.
databaseLink
}}
/
{{
formParams
.
dataTable
}}
/
{{
formParams
.
name
}}
</div>
</div>
</div>
<BasicForm
@
register=
"registerForm"
/>
...
...
@@ -23,6 +23,7 @@ const emit = defineEmits(['success', 'register']);
const
{
createMessage
}
=
useMessage
();
const
isUpdate
=
ref
(
true
);
const
rowId
=
ref
(
''
);
const
formParams
=
ref
(
''
);
//获取接口数据并放在下拉框里(这里是打开了一个弹框)
//初始化表单
const
[
registerForm
,
{
setFieldsValue
,
updateSchema
,
resetFields
,
validate
}]
=
useForm
({
...
...
@@ -39,6 +40,10 @@ const [registerModal, { setModalProps, closeModal }] = useModalInner(async (data
resetFields
();
setModalProps
({
confirmLoading
:
false
});
isUpdate
.
value
=
!!
data
?.
isUpdate
;
if
(
unref
(
isUpdate
))
{
formParams
.
value
=
data
.
record
console
.
log
(
'formParams'
,
formParams
)
}
if
(
unref
(
isUpdate
))
{
// 通过id获取行详情信息
...
...
src/views/dataSecurity/gradingResults/index.vue
View file @
74119e59
...
...
@@ -44,7 +44,7 @@ const [registerModal, { openModal }] = useModal();
const
[
registerImport
,
{
openModal
:
openImportModal
}]
=
useModal
();
const
searchInfo
=
reactive
<
Recordable
>
({});
const
[
registerTable
,
{
reload
,
updateTableDataRecord
,
getSearchInfo
,
getForm
}]
=
useTable
({
title
:
'
脱敏算法
'
,
title
:
'
分类分级结果
'
,
api
:
async
(
params
)
=>
{
console
.
log
(
params
)
const
response
=
{
...
...
src/views/dataSecurity/protectionRules/addObjectModal.vue
View file @
74119e59
...
...
@@ -111,15 +111,7 @@ function changeTabs(activeKey: any) {
}
async
function
handleSubmit
()
{
try
{
const
values
=
await
validate
();
setModalProps
({
confirmLoading
:
true
});
// TODO custom api
closeModal
();
emit
(
'success'
,
{
isUpdate
:
unref
(
isUpdate
),
values
:
{
...
values
,
id
:
rowId
.
value
}
});
}
finally
{
setModalProps
({
confirmLoading
:
false
});
}
closeModal
();
}
</
script
>
<
style
lang=
"scss"
scoped
>
...
...
src/views/dataSecurity/protectionRules/index.vue
View file @
74119e59
...
...
@@ -2,7 +2,7 @@
<PageWrapper
dense
contentFullHeight
fixedHeight
contentClass=
"flex"
>
<BasicTable
@
register=
"registerTable"
:searchInfo=
"searchInfo"
>
<template
#
toolbar
>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"handle
Export
"
>
删除
</a-button>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"handle
DeleteIds
"
>
删除
</a-button>
<a-button
type=
"primary"
@
click=
"handleCreate"
>
新增
</a-button>
<a-button
type=
"primary"
@
click=
"handleImport"
>
导入
</a-button>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"handleExport"
>
导出
</a-button>
...
...
@@ -52,7 +52,7 @@ import { useRoute, onBeforeRouteLeave } from 'vue-router';
import
{
router
}
from
'@/router'
;
defineOptions
({
name
:
'sensitiveRules'
});
const
{
createMessage
}
=
useMessage
();
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
route
=
useRoute
();
const
[
registerModal
,
{
openModal
}]
=
useModal
();
const
[
registerResetPassword
,
{
openModal
:
openResetPasswordModal
}]
=
useModal
();
...
...
@@ -103,7 +103,16 @@ function handleCreate() {
isUpdate
:
false
,
});
}
function
handleDeleteIds
()
{
createConfirm
({
iconType
:
'warning'
,
title
:
'确认删除'
,
content
:
'确认批量删除选中数据吗?'
,
onOk
()
{
createMessage
.
success
(
'批量删除成功!'
);
},
});
}
function
handleImport
()
{
openImportModal
(
true
,
{
});
...
...
src/views/dataSecurity/protectionRules/protectionRules.data.ts
View file @
74119e59
...
...
@@ -13,7 +13,7 @@ export const searchFormSchema: FormSchema[] = [
field
:
'name'
,
label
:
''
,
component
:
'Input'
,
colProps
:
{
span
:
4
},
colProps
:
{
span
:
3
},
componentProps
:
{
placeholder
:
'搜索对象'
,
},
...
...
@@ -22,7 +22,7 @@ export const searchFormSchema: FormSchema[] = [
field
:
'flag'
,
label
:
' '
,
component
:
'Select'
,
colProps
:
{
span
:
4
},
colProps
:
{
span
:
3
},
componentProps
:
{
placeholder
:
'对象属性'
,
options
:
[
...
...
@@ -35,7 +35,7 @@ export const searchFormSchema: FormSchema[] = [
field
:
'level'
,
label
:
' '
,
component
:
'Select'
,
colProps
:
{
span
:
4
},
colProps
:
{
span
:
3
},
componentProps
:
{
placeholder
:
'安全分级'
,
options
:
[
...
...
@@ -50,7 +50,7 @@ export const searchFormSchema: FormSchema[] = [
field
:
'type'
,
label
:
' '
,
component
:
'Select'
,
colProps
:
{
span
:
4
},
colProps
:
{
span
:
3
},
componentProps
:
{
placeholder
:
'敏感类型'
,
options
:
[
...
...
@@ -64,7 +64,7 @@ export const searchFormSchema: FormSchema[] = [
field
:
'protectiveAction'
,
label
:
' '
,
component
:
'Select'
,
colProps
:
{
span
:
4
},
colProps
:
{
span
:
3
},
componentProps
:
{
placeholder
:
'保护动作'
,
options
:
[
...
...
@@ -156,9 +156,9 @@ export const formSchema: any[] = [
componentProps
:
{
placeholder
:
'优先级'
,
options
:
[
{
label
:
'
放行'
,
value
:
'放行
'
},
{
label
:
'
脱敏'
,
value
:
'脱敏
'
},
{
label
:
'
拒绝'
,
value
:
'拒绝
'
},
{
label
:
'
低'
,
value
:
'低
'
},
{
label
:
'
中'
,
value
:
'中
'
},
{
label
:
'
高'
,
value
:
'高
'
},
],
},
rules
:
[
...
...
@@ -188,5 +188,33 @@ export const formSchema: any[] = [
},
],
},
{
field
:
'protectiveActionFun'
,
label
:
'脱敏算法'
,
component
:
'Select'
,
colProps
:
{
span
:
4
},
componentProps
:
{
placeholder
:
'脱敏算法'
,
options
:
[
{
label
:
'Unbase64'
,
value
:
'Unbase64'
},
],
},
ifShow
:
({
values
})
=>
values
.
protectiveAction
===
'脱敏'
,
rules
:
[
{
required
:
true
,
message
:
'请选择脱敏算法'
,
},
],
},
{
field
:
'name'
,
label
:
'算法参数'
,
component
:
'Input'
,
colProps
:
{
span
:
4
},
componentProps
:
{
placeholder
:
'算法参数'
,
},
ifShow
:
({
values
})
=>
values
.
protectiveAction
===
'脱敏'
,
},
]
src/views/dataSecurity/protectionRules/protectionRulesModal.vue
View file @
74119e59
...
...
@@ -7,6 +7,9 @@
<Tabs
default-active-key=
"1"
@
change=
"changeTabs"
>
<Tabs
.
TabPane
key=
"1"
tab=
"用户"
>
<div
class=
"addDialogBG"
>
<div
style=
"float: right"
>
<Icon
icon=
"ant-design:delete-outlined"
:size=
"25"
:color=
"'#ED6F6F'"
/>
</div>
<a-input
placeholder=
"请输入"
v-model:value=
"valueRef"
/>
<CheckboxGroup
v-model=
"selectedValues"
>
<div
v-for=
"(item, index) in plainOptions"
:key=
"item.value"
:span=
"24"
class=
"checkRow"
>
...
...
src/views/dataSecurity/sensitiveRules/index.vue
View file @
74119e59
...
...
@@ -2,7 +2,7 @@
<PageWrapper
dense
contentFullHeight
fixedHeight
contentClass=
"flex"
>
<BasicTable
@
register=
"registerTable"
:searchInfo=
"searchInfo"
>
<template
#
toolbar
>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"handle
Export
"
>
删除
</a-button>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"handle
DeleteIds
"
>
删除
</a-button>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"handleExport"
>
导出
</a-button>
<a-button
type=
"primary"
@
click=
"handleCreate"
>
新增
</a-button>
</
template
>
...
...
@@ -50,7 +50,7 @@ import { useRoute, onBeforeRouteLeave } from 'vue-router';
import
{
router
}
from
'@/router'
;
defineOptions
({
name
:
'sensitiveRules'
});
const
{
createMessage
}
=
useMessage
();
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
route
=
useRoute
();
const
[
registerModal
,
{
openModal
}]
=
useModal
();
const
[
registerResetPassword
,
{
openModal
:
openResetPasswordModal
}]
=
useModal
();
...
...
@@ -95,6 +95,17 @@ const [registerTable, { reload, updateTableDataRecord, getSearchInfo, getForm,ge
// slots: { customRender: 'action' },
},
});
function
handleDeleteIds
()
{
createConfirm
({
iconType
:
'warning'
,
title
:
'确认删除'
,
content
:
'确认批量删除选中数据吗?'
,
onOk
()
{
createMessage
.
success
(
'批量删除成功!'
);
},
});
}
/** 新增按钮*/
function
handleCreate
()
{
openModal
(
true
,
{
...
...
src/views/dataSecurity/sensitiveType/index.vue
View file @
74119e59
...
...
@@ -2,7 +2,7 @@
<PageWrapper
dense
contentFullHeight
fixedHeight
contentClass=
"flex"
>
<BasicTable
@
register=
"registerTable"
:searchInfo=
"searchInfo"
:rowSelection=
"rowSelection"
>
<template
#
toolbar
>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"handle
Export
"
>
删除
</a-button>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"handle
DeleteIds
"
>
删除
</a-button>
<a-button
:disabled=
"getRowSelection().selectedRowKeys
<
=
0
"
type=
"primary"
@
click=
"handleExport"
>
导出
</a-button>
<a-button
type=
"primary"
@
click=
"handleImport"
>
导入
</a-button>
<a-button
type=
"primary"
@
click=
"handleCreate"
>
新增
</a-button>
...
...
@@ -52,7 +52,7 @@ import { useRoute, onBeforeRouteLeave } from 'vue-router';
import
{
router
}
from
'@/router'
;
defineOptions
({
name
:
'safetyLevelManage'
});
const
{
createMessage
}
=
useMessage
();
const
{
createMessage
,
createConfirm
}
=
useMessage
();
const
route
=
useRoute
();
const
[
registerModal
,
{
openModal
}]
=
useModal
();
const
[
registerImport
,
{
openModal
:
openImportModal
}]
=
useModal
();
...
...
@@ -105,6 +105,17 @@ function handleImport() {
});
}
function
handleDeleteIds
()
{
createConfirm
({
iconType
:
'warning'
,
title
:
'确认删除'
,
content
:
'确认批量删除选中数据吗?'
,
onOk
()
{
createMessage
.
success
(
'批量删除成功!'
);
},
});
}
/** 新增按钮*/
function
handleCreate
()
{
openModal
(
true
,
{
...
...
src/views/knowledgeBase/index.vue
View file @
74119e59
...
...
@@ -152,7 +152,7 @@
createConfirm
({
iconType
:
'warning'
,
title
:
'确认删除'
,
content
:
'确认批量删除选中
文件
吗?'
,
content
:
'确认批量删除选中
数据
吗?'
,
onOk
()
{
createMessage
.
success
(
'批量删除成功!'
);
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment