n20-common-lib 2.7.20 → 2.7.22
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
|
@@ -2,8 +2,7 @@
|
|
|
2
2
|
<el-carousel height="50px" :interval="3000" direction="vertical" indicator-position="none" :autoplay="true">
|
|
3
3
|
<el-carousel-item v-for="tip in tips" :key="tip.id">
|
|
4
4
|
<div v-if="tip.isShow === '1'" v-title:br="list" :class="`tip_color_${tip.style || 'default'}`">
|
|
5
|
-
{{ tip.busNname }}{{ enumData[tip.busState]
|
|
6
|
-
}}{{ tip.busNname === $lc('财司系统') ? '(' + tip.currency + ')' : ''
|
|
5
|
+
{{ tip.busNname }}{{ enumData[tip.busState] }}{{ tip.busCode.includes('CENTER') ? '(' + tip.currency + ')' : ''
|
|
7
6
|
}}{{ tip.isError === '1' ? '(有异常)' : '' }}
|
|
8
7
|
</div>
|
|
9
8
|
</el-carousel-item>
|
|
@@ -68,7 +67,7 @@ export default {
|
|
|
68
67
|
this.list = cloneDeep(data)
|
|
69
68
|
.map((tip) => {
|
|
70
69
|
return `${tip.updateTime || tip.createtime}${tip.busNname}${enumData[tip.busState]}${
|
|
71
|
-
tip.
|
|
70
|
+
tip.busCode.includes('CENTER') ? '(' + tip.currency + ')' : ''
|
|
72
71
|
}`
|
|
73
72
|
})
|
|
74
73
|
.join(',')
|
|
@@ -204,7 +204,7 @@ export async function getSign(plain, dn) {
|
|
|
204
204
|
let answer
|
|
205
205
|
const checkRes = await getCertInfo(dn)
|
|
206
206
|
|
|
207
|
-
if (checkRes
|
|
207
|
+
if (checkRes === -1 || ['dnListEmpty', 'dnIsEmpty', 'Empty'].includes(checkRes)) {
|
|
208
208
|
switch (checkRes) {
|
|
209
209
|
case 'dnListEmpty':
|
|
210
210
|
Message.warning('没有匹配到证书!')
|
|
@@ -203,7 +203,7 @@ export async function getSign(plain, dn) {
|
|
|
203
203
|
}
|
|
204
204
|
const checkRes = await getCertInfo(dn)
|
|
205
205
|
|
|
206
|
-
if (checkRes) {
|
|
206
|
+
if (checkRes === -1 || ['dnListEmpty', 'dnIsEmpty', 'Empty'].includes(checkRes)) {
|
|
207
207
|
switch (checkRes) {
|
|
208
208
|
case 'dnListEmpty':
|
|
209
209
|
Message.warning('没有匹配到证书!')
|
package/src/plugins/Sign/sign.js
CHANGED
|
@@ -89,8 +89,20 @@ export function getCertInfo(dn) {
|
|
|
89
89
|
IWSAGetAllCertsListInfoByCertDN('', 'Sign', parseCA(dn), 0, (dnList) => {
|
|
90
90
|
certInfo = verifyDn(dnList, dn)
|
|
91
91
|
})
|
|
92
|
-
if (
|
|
93
|
-
|
|
92
|
+
if (checkRes === -1 || ['dnListEmpty', 'dnIsEmpty', 'Empty'].includes(checkRes)) {
|
|
93
|
+
switch (checkRes) {
|
|
94
|
+
case 'dnListEmpty':
|
|
95
|
+
Message.warning('没有匹配到证书!')
|
|
96
|
+
break
|
|
97
|
+
case 'dnIsEmpty':
|
|
98
|
+
Message.warning('DN参数为空!')
|
|
99
|
+
break
|
|
100
|
+
case 'Empty':
|
|
101
|
+
Message.warning('当前Ukey不匹配!')
|
|
102
|
+
break
|
|
103
|
+
default:
|
|
104
|
+
Message.warning('没有匹配到证书!')
|
|
105
|
+
}
|
|
94
106
|
return ''
|
|
95
107
|
}
|
|
96
108
|
|