n20-common-lib 2.9.50 → 2.9.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.9.50",
3
+ "version": "2.9.51",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
package/src/i18n.json CHANGED
@@ -1080,7 +1080,7 @@
1080
1080
  "vi": "Một cột hiển thị cột"
1081
1081
  },
1082
1082
  "最近一月": {
1083
- "en": "Last January",
1083
+ "en": "Last month",
1084
1084
  "th": "เดือนมกราคมที่แล้ว",
1085
1085
  "vi": "Tháng 1 vừa qua"
1086
1086
  },
@@ -1550,7 +1550,7 @@
1550
1550
  "vi": "Từ chối"
1551
1551
  },
1552
1552
  "最近三月": {
1553
- "en": "Last March",
1553
+ "en": "Last three",
1554
1554
  "th": "เดือนมีนาคมที่แล้ว",
1555
1555
  "vi": "Tháng ba vừa qua"
1556
1556
  },
@@ -2165,7 +2165,7 @@
2165
2165
  "vi": "Kiểu thường dùng"
2166
2166
  },
2167
2167
  "最近六月": {
2168
- "en": "Last June",
2168
+ "en": "Last six",
2169
2169
  "th": "เมื่อเดือนมิถุนายนล่าสุด",
2170
2170
  "vi": "Tháng 6 gần đây nhất"
2171
2171
  },
@@ -59,6 +59,17 @@ function getUserCert(uno) {
59
59
  let dn = getDN()
60
60
  let sd = data.sd === 'd'
61
61
 
62
+ /**
63
+ * (方法 RSA)生成 P10 包,新容器
64
+ * 参数一:签名密钥或加密密钥标识,”true”/”false”
65
+ * 参数二:密钥长度 512,1024, 2048,4096
66
+ * 参数三:主题 DN,空值 DN 请赋值””空串
67
+ * 参数四:摘要算法 OID,使用默认值请赋值””空串
68
+ * 参数五:公钥算法 OID,,使用默认值请赋值””空串
69
+ * 参数六:签名算法 OID,,使用默认值请赋值””空串
70
+ * 参数七:私钥是否可导出,”true”/”false”
71
+ * 参数八:是否启用增强密钥保护,”true”/”false”
72
+ */
62
73
  const res = IWSA_rsa_csp_genContainerP10('true', alg, data.subjectDN || dn, '', '', '', 'false', 'false')
63
74
  if (res[0] === '0') {
64
75
  let dto = {
@@ -68,6 +79,11 @@ function getUserCert(uno) {
68
79
  }
69
80
  axios.post(`/bems/prod_1.0/dssc/sign/getRadsCert`, dto).then(({ code, data }) => {
70
81
  if (code === 200) {
82
+ /**
83
+ * (方法 RSA)导入签名证书 X509
84
+ * 参数一:容器名,支持””:使用产生 P10 时的容器
85
+ * 参数二:X509 证书,Base64 编码
86
+ */
71
87
  const certData = IWSA_rsa_csp_importSignX509Cert(res[1], data.signCer)
72
88
  if (certData[0] === '0') {
73
89
  Message.success('证书导入成功')
Binary file