n20-common-lib 1.3.155 → 1.3.156
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
|
@@ -51,6 +51,9 @@
|
|
|
51
51
|
<slot name="name" :row="row">{{ row[keys.name] ? row[keys.name] : '' }}</slot>
|
|
52
52
|
</template>
|
|
53
53
|
</el-table-column>
|
|
54
|
+
<template slot-scope="{ row }">
|
|
55
|
+
<slot name="slotCol" :row="row"></slot>
|
|
56
|
+
</template>
|
|
54
57
|
<el-table-column :label="'上传时间' | $lc" :prop="keys.time" width="170" align="left">
|
|
55
58
|
<template slot="header" slot-scope="scope">
|
|
56
59
|
<slot name="time-header" :column="scope.column">{{ '上传时间' | $lc }}</slot>
|
|
@@ -102,7 +105,6 @@
|
|
|
102
105
|
</div>
|
|
103
106
|
</div>
|
|
104
107
|
</div>
|
|
105
|
-
|
|
106
108
|
<el-table :data="tableData" :row-key="keys.rowKey" @selection-change="(selection) => (selectionList = selection)">
|
|
107
109
|
<slot name="selection-column">
|
|
108
110
|
<el-table-column type="selection" width="50" align="center" />
|
|
@@ -118,7 +120,7 @@
|
|
|
118
120
|
:show-overflow-tooltip="item['show-overflow-tooltip']"
|
|
119
121
|
/>
|
|
120
122
|
</template>
|
|
121
|
-
<template v-else>
|
|
123
|
+
<template v-else >
|
|
122
124
|
<el-table-column :label="'附件类型' | $lc" min-width="160">
|
|
123
125
|
<template slot="header" slot-scope="scope">
|
|
124
126
|
<slot name="type-header" :column="scope.column">{{ '附件类型' | $lc }}</slot>
|
|
@@ -183,6 +185,7 @@
|
|
|
183
185
|
</slot>
|
|
184
186
|
</template>
|
|
185
187
|
</el-table-column>
|
|
188
|
+
<slot name="slotCol"></slot>
|
|
186
189
|
<el-table-column :label="'上传时间' | $lc" :prop="keys.time" width="170" align="left">
|
|
187
190
|
<template slot="header" slot-scope="scope">
|
|
188
191
|
<slot name="time-header" :column="scope.column">{{ '上传时间' | $lc }}</slot>
|
|
@@ -1551,7 +1551,6 @@ try {
|
|
|
1551
1551
|
TCA.config(config)
|
|
1552
1552
|
initCertList()
|
|
1553
1553
|
} catch (err) {
|
|
1554
|
-
console.log(err)
|
|
1555
1554
|
Message.warning('没有检测到证书助手,请下载并安装证书助手!')
|
|
1556
1555
|
window.open(window.location.origin + '/portal/天诚安信数字证书助手-3.7.7.0.exe')
|
|
1557
1556
|
}
|
|
@@ -1578,28 +1577,28 @@ export function getSign(plain, dn) {
|
|
|
1578
1577
|
return false
|
|
1579
1578
|
}
|
|
1580
1579
|
var certs = CertStore.listAllCerts()
|
|
1581
|
-
|
|
1582
1580
|
if (certs.size() > 0) {
|
|
1583
1581
|
var sginCert = null
|
|
1584
1582
|
for (var i = 0; i < certs.size(); i++) {
|
|
1585
1583
|
var cert = certs.get(i)
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
if (t[i] == dn) {
|
|
1584
|
+
let t = cert.subject()
|
|
1585
|
+
if (t == dn) {
|
|
1589
1586
|
sginCert = cert
|
|
1590
1587
|
break
|
|
1591
1588
|
}
|
|
1592
1589
|
}
|
|
1593
|
-
}
|
|
1594
1590
|
if (sginCert) {
|
|
1595
1591
|
return sginCert.signMessage(plain, false)
|
|
1596
1592
|
} else {
|
|
1597
|
-
Message.warning('
|
|
1593
|
+
Message.warning('没有匹配到证书!')
|
|
1598
1594
|
}
|
|
1595
|
+
} else {
|
|
1596
|
+
Message.warning('请检查key是否插入!')
|
|
1599
1597
|
}
|
|
1598
|
+
|
|
1600
1599
|
} catch (e) {
|
|
1601
1600
|
if (e instanceof TCACErr) {
|
|
1602
|
-
|
|
1601
|
+
Message.error(e.toStr())
|
|
1603
1602
|
} else {
|
|
1604
1603
|
Message.error('签名失败!')
|
|
1605
1604
|
}
|