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
8e7087c8
Commit
8e7087c8
authored
Aug 23, 2025
by
周海峰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
密钥管理
parent
67d2e764
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
28 行增加
和
1 行删除
+28
-1
src/api/ruleConfig/keyManagement.js
+13
-0
src/views/ruleConfig/keyManagement/components/ParamsConfig.vue
+0
-0
src/views/ruleConfig/keyManagement/index.vue
+15
-1
没有找到文件。
src/api/ruleConfig/keyManagement.js
View file @
8e7087c8
...
...
@@ -160,3 +160,16 @@ export function downloadZdxlzjceConfig(query) {
})
}
/**
* 国芯加密卡创建参数
* @param {string} query
* @returns
*/
export
function
createParam
(
query
)
{
return
request
({
url
:
'key/manager/createParam'
,
method
:
'get'
,
params
:
query
})
}
src/views/ruleConfig/keyManagement/components/ParamsConfig.vue
View file @
8e7087c8
差异被折叠。
点击展开。
src/views/ruleConfig/keyManagement/index.vue
View file @
8e7087c8
...
...
@@ -43,6 +43,7 @@
@
download-template=
"handleDownloadTemplate"
@
upload-config=
"handleUploadConfig"
@
upload-cert=
"handleUploadCert"
@
generate-params=
"generateParams"
/>
</div>
</div>
...
...
@@ -90,7 +91,7 @@
</template>
<
script
>
import
{
queryKeys
,
showKeyParams
,
editIsUse
,
testCallKey
,
saveKeyParams
,
uploadHsmConfig
}
from
"@/api/ruleConfig/keyManagement.js"
import
{
queryKeys
,
showKeyParams
,
editIsUse
,
testCallKey
,
saveKeyParams
,
uploadHsmConfig
,
createParam
}
from
"@/api/ruleConfig/keyManagement.js"
import
ParamsConfig
from
'./components/ParamsConfig.vue'
/**
...
...
@@ -309,6 +310,19 @@ export default {
this
.
uploadLoading
=
false
;
}
},
generateParams
()
{
// TODO: 实现生成国芯加密卡参数的逻辑
this
.
$modal
.
msgSuccess
(
'开始生成国芯加密卡参数'
)
createParam
({
cphpwd
:
this
.
configParams
.
cphpwd
}).
then
(
res
=>
{
if
(
res
.
code
===
'POP_00014'
)
{
this
.
$modal
.
msgSuccess
(
'生成成功'
)
}
else
{
this
.
$modal
.
msgError
(
res
.
msg
||
'生成失败'
)
}
}).
catch
(()
=>
{
this
.
$modal
.
msgError
(
'生成异常'
)
})
}
}
}
</
script
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论