Commit 8e7087c8 by 周海峰

密钥管理

parent 67d2e764
...@@ -160,3 +160,16 @@ export function downloadZdxlzjceConfig(query) { ...@@ -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
})
}
...@@ -43,6 +43,7 @@ ...@@ -43,6 +43,7 @@
@download-template="handleDownloadTemplate" @download-template="handleDownloadTemplate"
@upload-config="handleUploadConfig" @upload-config="handleUploadConfig"
@upload-cert="handleUploadCert" @upload-cert="handleUploadCert"
@generate-params="generateParams"
/> />
</div> </div>
</div> </div>
...@@ -90,7 +91,7 @@ ...@@ -90,7 +91,7 @@
</template> </template>
<script> <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' import ParamsConfig from './components/ParamsConfig.vue'
/** /**
...@@ -309,6 +310,19 @@ export default { ...@@ -309,6 +310,19 @@ export default {
this.uploadLoading = false; 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> </script>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论