n20-common-lib 2.7.13 → 2.7.15
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 +1 -1
- package/src/components/FileUploadTable/index.vue +8 -4
- package/src/plugins/.DS_Store +0 -0
- package/src/plugins/Sign/.DS_Store +0 -0
- package/src/plugins/Sign/NetSM3/.DS_Store +0 -0
- package/src/plugins/Sign/NetSM3/InfosecNetSignCNGAgent.min.js +2 -2
- package/src/plugins/Sign/NetSM3/index.js +7 -6
- package/src/plugins/Sign/SkfSign/index.js +1 -1
- package/src/plugins/Sign/sign.js +4 -5
package/package.json
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
:disabled="row._typeDisabled"
|
|
55
55
|
:placeholder="'请选择' | $lc"
|
|
56
56
|
style="width: 100%"
|
|
57
|
+
@change="$emit('typeChange', row[keys.type])"
|
|
57
58
|
>
|
|
58
59
|
<el-option
|
|
59
60
|
v-for="item in typeOptions"
|
|
@@ -434,9 +435,13 @@ export default {
|
|
|
434
435
|
showClose: true
|
|
435
436
|
})
|
|
436
437
|
}
|
|
437
|
-
const { code, data } = await this.$axios.post(
|
|
438
|
-
|
|
439
|
-
|
|
438
|
+
const { code, data } = await this.$axios.post(
|
|
439
|
+
`/api/neams/eamsbaserecord/mergeDownladPdf`,
|
|
440
|
+
this.selectionList.map((res) => res.beid) || [],
|
|
441
|
+
{
|
|
442
|
+
responseType: 'blob'
|
|
443
|
+
}
|
|
444
|
+
)
|
|
440
445
|
if (code === 200) {
|
|
441
446
|
let aDom = document.createElement('a')
|
|
442
447
|
aDom.href = data
|
|
@@ -448,7 +453,6 @@ export default {
|
|
|
448
453
|
data && URL.revokeObjectURL(data)
|
|
449
454
|
})
|
|
450
455
|
}
|
|
451
|
-
|
|
452
456
|
},
|
|
453
457
|
batchBeforeUploadFn(file) {
|
|
454
458
|
let bu = this.$listeners['before-upload'] || this.$listeners['beforeUpload']
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -245,7 +245,7 @@ function sendAjaxSniffingData(t) {
|
|
|
245
245
|
ajaxInfosec({
|
|
246
246
|
url: r,
|
|
247
247
|
method: 'GET',
|
|
248
|
-
timeout:
|
|
248
|
+
timeout: 1000,
|
|
249
249
|
data: '',
|
|
250
250
|
async: false,
|
|
251
251
|
dataType: 'json',
|
|
@@ -273,7 +273,7 @@ function sendAjaxSniffingDataAsync(t) {
|
|
|
273
273
|
ajaxInfosec({
|
|
274
274
|
url: r,
|
|
275
275
|
method: 'GET',
|
|
276
|
-
timeout:
|
|
276
|
+
timeout: 1000,
|
|
277
277
|
data: '',
|
|
278
278
|
async: true,
|
|
279
279
|
dataType: 'json',
|
|
@@ -159,7 +159,7 @@ export function availableSign(fn, url) {
|
|
|
159
159
|
duration: 5000
|
|
160
160
|
})
|
|
161
161
|
}
|
|
162
|
-
},
|
|
162
|
+
}, 1000)
|
|
163
163
|
}
|
|
164
164
|
}
|
|
165
165
|
|
|
@@ -168,21 +168,22 @@ function verifyDn(dnList, dn) {
|
|
|
168
168
|
if (!dnList) return 'Empty'
|
|
169
169
|
if (!dn) return 'dnIsEmpty'
|
|
170
170
|
|
|
171
|
-
let checkRes = 0
|
|
172
171
|
let userDnAttrsArr = dn.split(',').map((c) => c.trim())
|
|
173
172
|
|
|
174
173
|
let isIn = false
|
|
175
|
-
|
|
174
|
+
let index = 0
|
|
175
|
+
dnList.find((C, i) => {
|
|
176
176
|
let dnAttrsArr = C.certDN.split(',').map((c) => c.trim())
|
|
177
177
|
if (dnAttrsArr.every((dnAttr) => userDnAttrsArr.includes(dnAttr))) {
|
|
178
|
+
index = i
|
|
178
179
|
return (isIn = true)
|
|
179
180
|
}
|
|
180
181
|
})
|
|
181
182
|
if (!isIn) {
|
|
182
|
-
|
|
183
|
+
index = -1
|
|
183
184
|
}
|
|
184
185
|
|
|
185
|
-
return
|
|
186
|
+
return index
|
|
186
187
|
}
|
|
187
188
|
|
|
188
189
|
// 签名
|
|
@@ -201,7 +202,7 @@ export async function getSign(plain, dn) {
|
|
|
201
202
|
plainText = plain
|
|
202
203
|
}
|
|
203
204
|
let answer
|
|
204
|
-
const checkRes = await getCertInfo()
|
|
205
|
+
const checkRes = await getCertInfo(dn)
|
|
205
206
|
|
|
206
207
|
if (checkRes != 'checkRes') {
|
|
207
208
|
switch (checkRes) {
|
package/src/plugins/Sign/sign.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Attached方式签名
|
|
2
|
-
import { IWSAgent } from './InfosecNetSignCNGAgent.min.js'
|
|
3
2
|
import { Message, Notification } from 'element-ui'
|
|
3
|
+
import { IWSAgent } from './InfosecNetSignCNGAgent.min.js'
|
|
4
4
|
const {
|
|
5
5
|
IWSASetTimeOut,
|
|
6
6
|
IWSAAttachedSign,
|
|
@@ -42,7 +42,7 @@ export function availableSign(fn, url) {
|
|
|
42
42
|
duration: 5000
|
|
43
43
|
})
|
|
44
44
|
}
|
|
45
|
-
},
|
|
45
|
+
}, 1000)
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
|
|
@@ -68,16 +68,15 @@ export function getSign(plain, dn) {
|
|
|
68
68
|
} else {
|
|
69
69
|
plainText = plain
|
|
70
70
|
}
|
|
71
|
-
return
|
|
71
|
+
return performSign(plainText, index)
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
|
|
75
74
|
/**
|
|
76
75
|
* 获取证书信息
|
|
77
76
|
* @param dn
|
|
78
77
|
* @returns {*|string|boolean}
|
|
79
78
|
*/
|
|
80
|
-
export
|
|
79
|
+
export function getCertInfo(dn) {
|
|
81
80
|
if (dn === undefined) {
|
|
82
81
|
dn = getDN()
|
|
83
82
|
}
|