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
e85fa964
Commit
e85fa964
authored
Sep 24, 2025
by
ningjihai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
脱敏策略管理 列表
parent
b09cb553
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
64 行增加
和
46 行删除
+64
-46
src/views/desensitizationStrategy/DesensitizationStrategy/QueryForm.vue
+23
-6
src/views/desensitizationStrategy/DesensitizationStrategy/list.vue
+41
-40
没有找到文件。
src/views/desensitizationStrategy/DesensitizationStrategy/QueryForm.vue
View file @
e85fa964
...
...
@@ -2,13 +2,14 @@
import
{
computed
,
ref
,
watch
}
from
'vue'
import
type
{
FormInstance
}
from
'element-plus'
import
PageWrapperSearch
from
'@/components/search/PageWrapperSearch.vue'
// import { useDict } from '@/utils/dict'
// import { listDept } from '@/api/system/dept'// 部门
import
{
Plus
}
from
'@element-plus/icons-vue'
// const { approve_status, invoice_status} = useDict('approve_status', 'invoice_status')
const
emit
=
defineEmits
([
'update:modelValue'
,
'query'
,
'reset'
])
const
emit
=
defineEmits
([
'update:modelValue'
,
'query'
,
'reset'
,
'handleAdd'
])
const
invoice_status_filter
=
ref
([])
const
employeesList
=
ref
([])
const
props
=
defineProps
<
{
...
...
@@ -39,7 +40,9 @@ function onReset(formRef: FormInstance) {
queryForm
.
value
.
state
=
''
emit
(
'reset'
,
formRef
)
}
function
handleAdd
()
{
emit
(
'handleAdd'
)
}
</
script
>
...
...
@@ -47,6 +50,16 @@ function onReset(formRef: FormInstance) {
<!-- el-form -->
<page-wrapper-search
:model=
"queryForm"
:extraButtons=
"[
{
text: '新增',
icon: Plus,
color: 'rgba(0, 189, 207, 1)',
type: 'success',
class: 'btn-fff',
onClick: handleAdd
}
]"
@search="onSearch"
@reset="onReset">
<el-form-item
label=
"策略名"
prop=
"strategyName"
>
...
...
@@ -81,6 +94,10 @@ function onReset(formRef: FormInstance) {
</page-wrapper-search>
</
template
>
<
style
scoped
>
<
style
scoped
lang=
"scss"
>
:deep
(
.btn-fff
)
{
span{
color
:
#fff
;
}
}
</
style
>
src/views/desensitizationStrategy/DesensitizationStrategy/list.vue
View file @
e85fa964
...
...
@@ -214,61 +214,62 @@ const toggleStatus = (row) => {
<
template
>
<div
class=
"app-container scroller"
>
<PageTitle
:back=
"true"
@
back
=
"pageProjectManage"
>
<PageTitle
backProject
@
handleBackProject
=
"pageProjectManage"
>
<template
#
title
>
返回项目
管理
脱敏策略
管理
</
template
>
<
template
#
buttons
>
<el-button
<
!--
<
el-button
icon=
"Plus"
type=
"primary"
@
click=
"handleAdd"
>
新增策略
</el-button>
</el-button>
-->
</
template
>
</PageTitle>
<div
class=
"app-container__body"
>
<div>
<query-form
ref=
"QueryFormRef"
v-model=
"queryParams"
@
query=
"onQuery"
@
reset=
"onReset"
/>
<el-table
:data=
"tableData"
border
style=
"width: 100%"
:header-cell-style=
"{ background: '#f5f7fa', color: '#606266' }"
v-loading=
"loading"
>
<el-table-column
prop=
"strategyName"
label=
"策略名称"
min-width=
"120"
fiexd
/>
<el-table-column
prop=
"remarks"
label=
"备注"
min-width=
"120"
show-overflow-tooltip
/>
<el-table-column
prop=
"createtime"
label=
"创建时间"
min-width=
"180"
/>
<el-table-column
prop=
"createuser"
label=
"创建人"
width=
"120"
/>
<el-table-column
prop=
"statezh"
label=
"状态"
width=
"100"
align=
"center"
>
<
template
#
default=
"{ row }"
>
<el-tag
:type=
"row.state === '1' ? 'success' : 'info'"
>
{{
row
.
state
===
'1'
?
'已启用'
:
'未启用'
}}
</el-tag>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"280"
align=
"center"
fixed=
"right"
>
<
template
#
default=
"{ row }"
>
<el-button
link
type=
"primary"
size=
"small"
@
click=
"showDetail(row)"
>
详情
</el-button>
<el-divider
direction=
"vertical"
/>
<el-button
link
type=
"primary"
size=
"small"
@
click=
"editStrategy(row)"
>
编辑策略
</el-button>
<el-divider
direction=
"vertical"
/>
<el-button
link
type=
"danger"
size=
"small"
@
click=
"deleteStrategy(row)"
>
删除
</el-button>
<el-divider
direction=
"vertical"
/>
<el-button
link
type=
"success"
size=
"small"
@
click=
"toggleStatus(row)"
>
{{
row
.
state
===
'1'
?
'禁用'
:
'启用'
}}
</el-button>
</
template
>
</el-table-column>
</el-table>
@
reset=
"onReset"
@
handleAdd=
"handleAdd"
/>
<div
style=
"flex: 1;"
>
<el-table
height=
"100%"
:data=
"tableData"
stripe
style=
"width: 100%"
v-loading=
"loading"
>
<el-table-column
prop=
"strategyName"
label=
"策略名称"
min-width=
"120"
fiexd
/>
<el-table-column
prop=
"remarks"
label=
"备注"
min-width=
"120"
show-overflow-tooltip
/>
<el-table-column
prop=
"createtime"
label=
"创建时间"
min-width=
"180"
/>
<el-table-column
prop=
"createuser"
label=
"创建人"
width=
"120"
/>
<el-table-column
prop=
"statezh"
label=
"状态"
width=
"100"
align=
"center"
>
<
template
#
default=
"{ row }"
>
<el-tag
:type=
"row.state === '1' ? 'success' : 'info'"
>
{{
row
.
state
===
'1'
?
'已启用'
:
'未启用'
}}
</el-tag>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
width=
"340"
align=
"center"
fixed=
"right"
>
<
template
#
default=
"{ row }"
>
<el-button
plain
type=
"primary"
size=
"small"
icon=
"Tickets"
@
click=
"showDetail(row)"
>
详情
</el-button>
<el-button
plain
color=
"rgba(237, 183, 5, 1)"
size=
"small"
icon=
"edit"
@
click=
"editStrategy(row)"
>
编辑
</el-button>
<el-button
plain
color=
"rgba(255, 141, 26, 1)"
size=
"small"
icon=
"delete"
@
click=
"deleteStrategy(row)"
>
删除
</el-button>
<el-button
:icon=
"row.state === '1'?'WarningFilled' : 'SuccessFilled'"
:type=
"row.state === '1' ? 'warning' : 'success'"
size=
"small"
plain
@
click=
"toggleStatus(row)"
>
{{
row
.
state
===
'1'
?
'禁用'
:
'启用'
}}
</el-button>
</
template
>
</el-table-column>
</el-table>
</div>
<pagination
v-show=
"total > 0"
...
...
@@ -278,7 +279,7 @@ const toggleStatus = (row) => {
@
pagination=
"getList"
/>
</div>
</div>
<!-- 统一策略对话框组件 -->
<StrategyAddDialog
:title=
"dialog.title"
ref=
"strategyAddDialogRef"
@
refresh=
"handleQuery"
/>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论