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
ebb848ed
Commit
ebb848ed
authored
Aug 26, 2025
by
周海峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
加密管理
parent
bf195290
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
124 行增加
和
54 行删除
+124
-54
src/api/classification/encryptionManagement.js
+77
-2
src/constants/encryptFlag.js
+22
-0
src/views/classification/Classification/modules/EncryptionTab.vue
+2
-17
src/views/classification/EncryptionManagement/QueryForm.vue
+23
-35
src/views/classification/EncryptionManagement/list.vue
+0
-0
没有找到文件。
src/api/classification/encryptionManagement.js
View file @
ebb848ed
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
import
{
pa
}
from
'element-plus/es/locales.mjs'
export
function
query
(
data
)
{
/**
* 查询批量原始数据
* @param {*} data
* @returns
*/
export
function
queryBatchOriginalList
(
data
)
{
return
request
({
return
request
({
url
:
'/'
,
url
:
'/
core/encryptionconfig/queryBatchOriginalList
'
,
method
:
'post'
,
method
:
'post'
,
data
:
data
data
:
data
})
})
}
/**
* 查询所有加密数据
* @param {*} data
* @returns
*/
export
function
queryAllEncrypted
(
data
)
{
return
request
({
url
:
'/core/encryptionconfig/queryAllEncrypted'
,
method
:
'post'
,
data
:
data
})
}
/**
* 删除批量表字段
* @param {*} data projectid
* @returns
*/
export
function
delBatchTableColumn
(
data
)
{
return
request
({
url
:
'/switchfield/delBatchTableColumn'
,
method
:
'post'
,
data
:
data
})
}
/**
* 加载批量表参数
* @param {*} data operate
* @param {*} data projectid
* @returns
*/
export
function
loadingBatchTableParams
(
data
)
{
return
request
({
url
:
'/core/encryption/loadingBatchTableParams'
,
method
:
'post'
,
data
:
data
})
}
/**
* 加载进度
* @param {*} data
* @returns
*/
export
function
loadingProgress
(
data
)
{
return
request
({
url
:
'/core/encryption/loadingProgress'
,
method
:
'post'
,
data
:
data
})
}
/**
* 获取进度日志
* @param {*} data
* @returns
*/
export
function
getProcesslog
(
query
)
{
return
request
({
url
:
'/core/encryption/getProcesslog'
,
method
:
'get'
,
params
:
query
})
}
}
\ No newline at end of file
src/constants/encryptFlag.js
0 → 100644
View file @
ebb848ed
// 状态标识对象数组
const
encryptFlag
=
[
{
value
:
'0'
,
label
:
'无'
},
{
value
:
'-2'
,
label
:
'解密中'
,
type
:
'warning'
},
{
value
:
'-1'
,
label
:
'加密中'
,
type
:
'warning'
},
// { value: '1', label: '加密完成' },
{
value
:
'5'
,
label
:
'加密完成'
,
type
:
'success'
},
{
value
:
'4'
,
label
:
'加密失败'
,
type
:
'danger'
},
{
value
:
'44'
,
label
:
'解密失败'
,
type
:
'danger'
},
// { value: '6', label: '解密完成' },
{
value
:
'7'
,
label
:
'解密完成'
,
type
:
'success'
}
// { value: '9', label: '加密替换失败' },
// { value: '10', label: '解密替换失败' },
// { value: '11', label: '解密校验失败' },
// { value: '12', label: '加密校验失败' }
]
export
default
encryptFlag
;
\ No newline at end of file
src/views/classification/Classification/modules/EncryptionTab.vue
View file @
ebb848ed
...
@@ -117,6 +117,8 @@ import { queryOriginalList, queryEncryptionList, hasRedundanceColumns,
...
@@ -117,6 +117,8 @@ import { queryOriginalList, queryEncryptionList, hasRedundanceColumns,
loadingColumn
,
checkCanReload
,
removeLoadingColumn
,
checkTableEncOrDecColumn
,
loadingColumn
,
checkCanReload
,
removeLoadingColumn
,
checkTableEncOrDecColumn
,
loadingTableParams
,
reloadingColumn
loadingTableParams
,
reloadingColumn
}
from
'@/api/classification/classification.js'
}
from
'@/api/classification/classification.js'
import
encryptFlag
from
'@/constants/encryptFlag.js'
const
props
=
defineProps
({
const
props
=
defineProps
({
// tableData: {
// tableData: {
// type: Array,
// type: Array,
...
@@ -183,23 +185,6 @@ const getTableData = async () => {
...
@@ -183,23 +185,6 @@ const getTableData = async () => {
tableDataCache
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
tableData
.
value
))
tableDataCache
.
value
=
JSON
.
parse
(
JSON
.
stringify
(
tableData
.
value
))
}
}
// 状态标识对象数组
const
encryptFlag
=
[
{
value
:
'0'
,
label
:
'无'
},
{
value
:
'-2'
,
label
:
'解密中'
},
{
value
:
'-1'
,
label
:
'加密中'
},
{
value
:
'1'
,
label
:
'加密完成'
},
{
value
:
'5'
,
label
:
'加密完成'
},
{
value
:
'4'
,
label
:
'加密失败'
},
{
value
:
'44'
,
label
:
'解密失败'
},
{
value
:
'6'
,
label
:
'解密完成'
},
{
value
:
'7'
,
label
:
'解密完成'
},
{
value
:
'9'
,
label
:
'加密替换失败'
},
{
value
:
'10'
,
label
:
'解密替换失败'
},
{
value
:
'11'
,
label
:
'解密校验失败'
},
{
value
:
'12'
,
label
:
'加密校验失败'
}
]
/**
/**
* 加密状态标识
* 加密状态标识
*/
*/
...
...
src/views/classification/EncryptionManagement/QueryForm.vue
View file @
ebb848ed
<
script
setup
lang=
"ts"
name=
"QueryForm"
>
<
script
setup
>
import
{
computed
,
ref
,
watch
}
from
'vue'
import
{
computed
,
ref
,
watch
}
from
'vue'
;
import
type
{
FormInstance
}
from
'element-plus'
import
PageWrapperSearch
from
'@/components/search/PageWrapperSearch.vue'
;
import
PageWrapperSearch
from
'@/components/search/PageWrapperSearch.vue'
import
encryptFlag
from
'@/constants/encryptFlag.js'
;
// import { useDict } from '@/utils/dict'
const
emit
=
defineEmits
([
'update:modelValue'
,
'query'
,
'reset'
]);
// import { listDept } from '@/api/system/dept'// 部门
const
props
=
defineProps
({
modelValue
:
Object
});
// const { approve_status, invoice_status} = useDict('approve_status', 'invoice_status')
const
emit
=
defineEmits
([
'update:modelValue'
,
'query'
,
'reset'
])
const
invoice_status_filter
=
ref
([])
const
employeesList
=
ref
([])
const
props
=
defineProps
<
{
modelValue
:
any
}
>
()
const
queryForm
=
computed
({
const
queryForm
=
computed
({
get
()
{
get
()
{
return
props
.
modelValue
return
props
.
modelValue
;
},
},
set
(
val
:
any
)
{
set
(
val
)
{
console
.
log
(
'query computed'
,
val
)
console
.
log
(
'query computed'
,
val
)
;
emit
(
'update:modelValue'
,
val
)
emit
(
'update:modelValue'
,
val
)
;
}
}
})
})
;
// 搜索
// 搜索
function
onSearch
()
{
function
onSearch
()
{
emit
(
'query'
)
emit
(
'query'
)
;
}
}
// 重置
// 重置
function
onReset
(
formRef
:
FormInstance
)
{
function
onReset
(
formRef
)
{
queryForm
.
value
.
datasource
=
''
queryForm
.
value
.
datasource
=
''
;
queryForm
.
value
.
schema
=
''
queryForm
.
value
.
schema
=
''
;
queryForm
.
value
.
tableName
=
''
queryForm
.
value
.
tableName
=
''
;
queryForm
.
value
.
fieldName
=
''
queryForm
.
value
.
fieldName
=
''
;
queryForm
.
value
.
status
=
''
queryForm
.
value
.
status
=
[];
emit
(
'reset'
,
formRef
)
emit
(
'reset'
,
formRef
)
;
}
}
</
script
>
</
script
>
<
template
>
<
template
>
...
@@ -87,10 +75,10 @@ function onReset(formRef: FormInstance) {
...
@@ -87,10 +75,10 @@ function onReset(formRef: FormInstance) {
<el-select
<el-select
v-model=
"queryForm.status"
v-model=
"queryForm.status"
placeholder=
"请选择状态"
placeholder=
"请选择状态"
multiple
clearable
clearable
>
>
<el-option
label=
"启用"
value=
"active"
/>
<el-option
v-for=
"value in encryptFlag"
:label=
"value.label"
:value=
"value.value"
/>
<el-option
label=
"禁用"
value=
"inactive"
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</page-wrapper-search>
</page-wrapper-search>
...
...
src/views/classification/EncryptionManagement/list.vue
View file @
ebb848ed
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论