@toolspack/ttd-common 0.5.2 → 0.5.3
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/README.md +2 -1
- package/lib/ttd-common.common.js +231 -211
- package/lib/ttd-common.umd.js +231 -211
- package/lib/ttd-common.umd.min.js +1 -1
- package/package.json +2 -2
- package/src/packages/ukey/SignNew.vue +20 -1
- package/src/packages/ukey/Ukey.vue +35 -2
- package/src/packages/ukey/WZHforChrome.js +6 -11
- package/src/packages/ukey/WzhSign.vue +30 -25
- package/src/packages/ukey/WzhSignChrome.vue +5 -11
- package/src/packages/ukey/CheckUkeyMethods.js +0 -38
package/lib/ttd-common.umd.js
CHANGED
|
@@ -96,21 +96,6 @@ return /******/ (function(modules) { // webpackBootstrap
|
|
|
96
96
|
/************************************************************************/
|
|
97
97
|
/******/ ({
|
|
98
98
|
|
|
99
|
-
/***/ "1be4":
|
|
100
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
101
|
-
|
|
102
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
103
|
-
|
|
104
|
-
// load the styles
|
|
105
|
-
var content = __webpack_require__("8b98");
|
|
106
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
107
|
-
if(content.locals) module.exports = content.locals;
|
|
108
|
-
// add the styles to the DOM
|
|
109
|
-
var add = __webpack_require__("499e").default
|
|
110
|
-
var update = add("07ae2840", content, true, {"sourceMap":false,"shadowMode":false});
|
|
111
|
-
|
|
112
|
-
/***/ }),
|
|
113
|
-
|
|
114
99
|
/***/ "24fb":
|
|
115
100
|
/***/ (function(module, exports, __webpack_require__) {
|
|
116
101
|
|
|
@@ -212,18 +197,17 @@ function toComment(sourceMap) {
|
|
|
212
197
|
|
|
213
198
|
/***/ }),
|
|
214
199
|
|
|
215
|
-
/***/ "
|
|
200
|
+
/***/ "29f3":
|
|
216
201
|
/***/ (function(module, exports, __webpack_require__) {
|
|
217
202
|
|
|
218
|
-
//
|
|
203
|
+
// Imports
|
|
204
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
205
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
206
|
+
// Module
|
|
207
|
+
exports.push([module.i, ".CryptoAgent-wrapper[data-v-2976751a]{height:0;width:0;position:absoute;left:-5000px}", ""]);
|
|
208
|
+
// Exports
|
|
209
|
+
module.exports = exports;
|
|
219
210
|
|
|
220
|
-
// load the styles
|
|
221
|
-
var content = __webpack_require__("e185");
|
|
222
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
223
|
-
if(content.locals) module.exports = content.locals;
|
|
224
|
-
// add the styles to the DOM
|
|
225
|
-
var add = __webpack_require__("499e").default
|
|
226
|
-
var update = add("17d56150", content, true, {"sourceMap":false,"shadowMode":false});
|
|
227
211
|
|
|
228
212
|
/***/ }),
|
|
229
213
|
|
|
@@ -242,37 +226,12 @@ var update = add("271332fa", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
242
226
|
|
|
243
227
|
/***/ }),
|
|
244
228
|
|
|
245
|
-
/***/ "
|
|
229
|
+
/***/ "41b6":
|
|
246
230
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
247
231
|
|
|
248
232
|
"use strict";
|
|
249
|
-
/* harmony import */ var
|
|
250
|
-
/* harmony import */ var
|
|
251
|
-
/* unused harmony reexport * */
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
/***/ }),
|
|
255
|
-
|
|
256
|
-
/***/ "3ee9":
|
|
257
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
258
|
-
|
|
259
|
-
// Imports
|
|
260
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
261
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
262
|
-
// Module
|
|
263
|
-
exports.push([module.i, ".CryptoAgent-wrapper[data-v-22a309ec]{height:0;width:0;position:absoute;left:-5000px}", ""]);
|
|
264
|
-
// Exports
|
|
265
|
-
module.exports = exports;
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
/***/ }),
|
|
269
|
-
|
|
270
|
-
/***/ "4224":
|
|
271
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
272
|
-
|
|
273
|
-
"use strict";
|
|
274
|
-
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Ukey_vue_vue_type_style_index_0_id_22a309ec_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("8ff8");
|
|
275
|
-
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Ukey_vue_vue_type_style_index_0_id_22a309ec_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Ukey_vue_vue_type_style_index_0_id_22a309ec_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
233
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_WzhSignChrome_vue_vue_type_style_index_0_id_72dd253b_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("63db");
|
|
234
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_WzhSignChrome_vue_vue_type_style_index_0_id_72dd253b_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_WzhSignChrome_vue_vue_type_style_index_0_id_72dd253b_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
276
235
|
/* unused harmony reexport * */
|
|
277
236
|
|
|
278
237
|
|
|
@@ -542,6 +501,35 @@ function applyToTag (styleElement, obj) {
|
|
|
542
501
|
}
|
|
543
502
|
|
|
544
503
|
|
|
504
|
+
/***/ }),
|
|
505
|
+
|
|
506
|
+
/***/ "4b68":
|
|
507
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
508
|
+
|
|
509
|
+
// Imports
|
|
510
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
511
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
512
|
+
// Module
|
|
513
|
+
exports.push([module.i, ".CryptoAgent-wrapper[data-v-72dd253b]{height:0;width:0;position:absolute;left:-5000px}", ""]);
|
|
514
|
+
// Exports
|
|
515
|
+
module.exports = exports;
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
/***/ }),
|
|
519
|
+
|
|
520
|
+
/***/ "63db":
|
|
521
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
522
|
+
|
|
523
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
524
|
+
|
|
525
|
+
// load the styles
|
|
526
|
+
var content = __webpack_require__("4b68");
|
|
527
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
528
|
+
if(content.locals) module.exports = content.locals;
|
|
529
|
+
// add the styles to the DOM
|
|
530
|
+
var add = __webpack_require__("499e").default
|
|
531
|
+
var update = add("72d7693b", content, true, {"sourceMap":false,"shadowMode":false});
|
|
532
|
+
|
|
545
533
|
/***/ }),
|
|
546
534
|
|
|
547
535
|
/***/ "6780":
|
|
@@ -558,12 +546,12 @@ module.exports = exports;
|
|
|
558
546
|
|
|
559
547
|
/***/ }),
|
|
560
548
|
|
|
561
|
-
/***/ "
|
|
549
|
+
/***/ "6bd3":
|
|
562
550
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
563
551
|
|
|
564
552
|
"use strict";
|
|
565
|
-
/* harmony import */ var
|
|
566
|
-
/* harmony import */ var
|
|
553
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_WzhSign_vue_vue_type_style_index_0_id_339a252e_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c488");
|
|
554
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_WzhSign_vue_vue_type_style_index_0_id_339a252e_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_WzhSign_vue_vue_type_style_index_0_id_339a252e_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
567
555
|
/* unused harmony reexport * */
|
|
568
556
|
|
|
569
557
|
|
|
@@ -654,47 +642,59 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
654
642
|
|
|
655
643
|
/***/ }),
|
|
656
644
|
|
|
657
|
-
/***/ "
|
|
658
|
-
/***/ (function(module,
|
|
645
|
+
/***/ "890c":
|
|
646
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
659
647
|
|
|
660
|
-
|
|
661
|
-
var
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
exports.push([module.i, ".CryptoAgent-wrapper[data-v-7a77408f]{height:0;width:0;position:absolute;left:-5000px}", ""]);
|
|
665
|
-
// Exports
|
|
666
|
-
module.exports = exports;
|
|
648
|
+
"use strict";
|
|
649
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Ukey_vue_vue_type_style_index_0_id_2976751a_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("c13c");
|
|
650
|
+
/* harmony import */ var _node_modules_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Ukey_vue_vue_type_style_index_0_id_2976751a_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_vue_style_loader_index_js_ref_10_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_10_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_2_node_modules_postcss_loader_src_index_js_ref_10_oneOf_1_3_node_modules_less_loader_dist_cjs_js_ref_10_oneOf_1_4_node_modules_cache_loader_dist_cjs_js_ref_0_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Ukey_vue_vue_type_style_index_0_id_2976751a_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
651
|
+
/* unused harmony reexport * */
|
|
667
652
|
|
|
668
653
|
|
|
669
654
|
/***/ }),
|
|
670
655
|
|
|
671
|
-
/***/ "
|
|
656
|
+
/***/ "c13c":
|
|
672
657
|
/***/ (function(module, exports, __webpack_require__) {
|
|
673
658
|
|
|
674
659
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
675
660
|
|
|
676
661
|
// load the styles
|
|
677
|
-
var content = __webpack_require__("
|
|
662
|
+
var content = __webpack_require__("29f3");
|
|
678
663
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
679
664
|
if(content.locals) module.exports = content.locals;
|
|
680
665
|
// add the styles to the DOM
|
|
681
666
|
var add = __webpack_require__("499e").default
|
|
682
|
-
var update = add("
|
|
667
|
+
var update = add("765e63b4", content, true, {"sourceMap":false,"shadowMode":false});
|
|
683
668
|
|
|
684
669
|
/***/ }),
|
|
685
670
|
|
|
686
|
-
/***/ "
|
|
671
|
+
/***/ "c3a0":
|
|
687
672
|
/***/ (function(module, exports, __webpack_require__) {
|
|
688
673
|
|
|
689
674
|
// Imports
|
|
690
675
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
691
676
|
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
692
677
|
// Module
|
|
693
|
-
exports.push([module.i, ".CryptoAgent-wrapper[data-v-
|
|
678
|
+
exports.push([module.i, ".CryptoAgent-wrapper[data-v-339a252e]{height:0;width:0;position:absolute;left:-5000px}", ""]);
|
|
694
679
|
// Exports
|
|
695
680
|
module.exports = exports;
|
|
696
681
|
|
|
697
682
|
|
|
683
|
+
/***/ }),
|
|
684
|
+
|
|
685
|
+
/***/ "c488":
|
|
686
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
687
|
+
|
|
688
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
689
|
+
|
|
690
|
+
// load the styles
|
|
691
|
+
var content = __webpack_require__("c3a0");
|
|
692
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
693
|
+
if(content.locals) module.exports = content.locals;
|
|
694
|
+
// add the styles to the DOM
|
|
695
|
+
var add = __webpack_require__("499e").default
|
|
696
|
+
var update = add("74daed76", content, true, {"sourceMap":false,"shadowMode":false});
|
|
697
|
+
|
|
698
698
|
/***/ }),
|
|
699
699
|
|
|
700
700
|
/***/ "fb15":
|
|
@@ -728,7 +728,7 @@ if (typeof window !== 'undefined') {
|
|
|
728
728
|
// Indicate to webpack that this file can be concatenated
|
|
729
729
|
/* harmony default export */ var setPublicPath = (null);
|
|
730
730
|
|
|
731
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
731
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6547a1e8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/cfca/CfcaPdf.vue?vue&type=template&id=cd924424&
|
|
732
732
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"cfca-pdf"},[(_vm.isIE)?[_c('div',{staticClass:"cfca-pdf-wrapper",style:({visibility: _vm.visible})},[_c('div',{class:{'cfca-left': true, 'active': _vm.active==='left', 'disabled': _vm.pageNo <= 1},on:{"click":function($event){return _vm.GoToPrevPage()}}},[_c('span',{staticClass:"el-icon-arrow-left"})]),_c('div',{staticClass:"cfca-content"},[_c('div',{staticClass:"cfca-page"},[_c('div',{staticClass:"fl cfca-title"},[_c('h2',[_vm._v(_vm._s(_vm.title))])]),_c('div',{staticClass:"fr"},[_vm._v(" "+_vm._s(_vm.pageNo)+"/"+_vm._s(_vm.pageCount)+" "),_c('span',{staticClass:"di"},[_vm._v("第")]),_c('el-input',{staticClass:"page-num",attrs:{"size":"mini"},on:{"change":_vm.GoToPage},nativeOn:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.GoToPage($event)}},model:{value:(_vm.inputPage),callback:function ($$v) {_vm.inputPage=$$v},expression:"inputPage"}}),_vm._v("页 ")],1)]),_c('div',{ref:"PDFCtrlPlaceHolder",staticClass:"cfca-object"},[_c('div',{staticClass:"obj-wrapper",on:{"dragenter":_vm.onDragEnter,"dragover":_vm.onDragOver,"drop":_vm.onDrop}},[(this.idstr)?[_c('object',{ref:"pdfCtrl",staticClass:"PDFCtrlObject",staticStyle:{"position":"relative","z-Index":"1"},attrs:{"id":'PDFCtrl' + this.idstr,"tabindex":0,"codebase":_vm.publicPath + _vm.codebase,"classid":"clsid:6F60FE31-F827-4295-8AC4-775EF7478A6A","width":"100%","height":"100%"}},[_c('param',{attrs:{"name":"wmode","value":"transparent"}}),_c('param',{attrs:{"name":"showToolbar","value":"false"}})])]:[_c('object',{ref:"pdfCtrl",staticClass:"PDFCtrlObject",staticStyle:{"position":"relative","z-Index":"1"},attrs:{"tabindex":0,"codebase":_vm.publicPath + _vm.codebase,"classid":"clsid:6F60FE31-F827-4295-8AC4-775EF7478A6A","width":"100%","height":"100%"}},[_c('param',{attrs:{"name":"wmode","value":"transparent"}}),_c('param',{attrs:{"name":"showToolbar","value":"false"}})])]],2)]),_c('div',{staticClass:"cfca-control"},[_vm._t("default")],2)]),_c('div',{class:{'cfca-right': true, 'active': _vm.active==='right', 'disabled': _vm.pageNo >= _vm.pageCount},on:{"click":function($event){return _vm.GoToNextPage()}}},[_c('span',{staticClass:"el-icon-arrow-right"})])])]:[_c('div',{staticClass:"red",staticStyle:{"height":"350px","padding":"20px","position":"relative","margin-bottom":"20px"}},[_vm._v(" 提示:当前浏览器不支持控件预览,请切换IE浏览器进行查看 "),_c('div',{staticClass:"tc",staticStyle:{"position":"absolute","bottom":"0","left":"0","right":"0"}},[_vm._t("default")],2)])]],2)}
|
|
733
733
|
var staticRenderFns = []
|
|
734
734
|
|
|
@@ -1622,57 +1622,13 @@ var component = normalizeComponent(
|
|
|
1622
1622
|
)
|
|
1623
1623
|
|
|
1624
1624
|
/* harmony default export */ var CfcaPdf = (component.exports);
|
|
1625
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1626
|
-
var
|
|
1627
|
-
var
|
|
1625
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6547a1e8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/ukey/Ukey.vue?vue&type=template&id=2976751a&scoped=true&
|
|
1626
|
+
var Ukeyvue_type_template_id_2976751a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"CryptoAgent-wrapper"},[(_vm.isIE)?[_c('object',{ref:"CryptoAgent",attrs:{"codebase":_vm.publicPath + _vm.codebase,"classid":_vm.classid}})]:[_c('embed',{ref:"CryptoAgent",staticStyle:{"height":"0px","width":"0px"},attrs:{"type":"application/npCryptoKit.Ultimate.x86"}})]],2)}
|
|
1627
|
+
var Ukeyvue_type_template_id_2976751a_scoped_true_staticRenderFns = []
|
|
1628
1628
|
|
|
1629
1629
|
|
|
1630
|
-
// CONCATENATED MODULE: ./src/packages/ukey/Ukey.vue?vue&type=template&id=
|
|
1631
|
-
|
|
1632
|
-
// CONCATENATED MODULE: ./src/packages/ukey/CheckUkeyMethods.js
|
|
1633
|
-
/* harmony default export */ var CheckUkeyMethods = ({
|
|
1634
|
-
methods: {
|
|
1635
|
-
// 消息签名, 生成Base64 编码的 PKCS#7 签名结果
|
|
1636
|
-
SignOnClick: function SignOnClick() {
|
|
1637
|
-
var errorDesc = '';
|
|
1638
|
-
this.sourceData = "".concat(new Date().getTime());
|
|
1639
|
-
|
|
1640
|
-
try {
|
|
1641
|
-
var source = this.sourceData;
|
|
1642
|
-
var signature = '';
|
|
1643
|
-
var signType = 'Attach'; // 签名类型
|
|
1644
|
-
|
|
1645
|
-
var selectedAlg = 'SHA-1'; // 哈希算法(仅对RSA算法有效,SM2默认使用SM3哈希算法):
|
|
1630
|
+
// CONCATENATED MODULE: ./src/packages/ukey/Ukey.vue?vue&type=template&id=2976751a&scoped=true&
|
|
1646
1631
|
|
|
1647
|
-
if (signType === 'Attach') {
|
|
1648
|
-
// PKCS#7 Attach
|
|
1649
|
-
signature = this.CryptoAgent.SignMsgPKCS7(source, selectedAlg, true);
|
|
1650
|
-
} else if (signType === 'Detach') {
|
|
1651
|
-
// PKCS#7 Detach
|
|
1652
|
-
signature = this.CryptoAgent.SignMsgPKCS7(source, selectedAlg, false);
|
|
1653
|
-
} else {
|
|
1654
|
-
// PKCS#1
|
|
1655
|
-
signature = this.CryptoAgent.SignMsgPKCS1(source, selectedAlg);
|
|
1656
|
-
}
|
|
1657
|
-
|
|
1658
|
-
if (!signature) {
|
|
1659
|
-
errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
1660
|
-
alert(errorDesc);
|
|
1661
|
-
return '';
|
|
1662
|
-
}
|
|
1663
|
-
|
|
1664
|
-
console.log('SignOnClick 签名结果:', signature);
|
|
1665
|
-
return signature;
|
|
1666
|
-
} catch (e) {
|
|
1667
|
-
console.log('SignOnClick error=', e);
|
|
1668
|
-
errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
1669
|
-
alert(errorDesc);
|
|
1670
|
-
}
|
|
1671
|
-
|
|
1672
|
-
return '';
|
|
1673
|
-
}
|
|
1674
|
-
}
|
|
1675
|
-
});
|
|
1676
1632
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/ukey/Ukey.vue?vue&type=script&lang=js&
|
|
1677
1633
|
//
|
|
1678
1634
|
//
|
|
@@ -1696,10 +1652,48 @@ var Ukeyvue_type_template_id_22a309ec_scoped_true_staticRenderFns = []
|
|
|
1696
1652
|
* 下面是 签章 的公用方法,通过mixin 使用
|
|
1697
1653
|
*
|
|
1698
1654
|
* */
|
|
1655
|
+
// 消息签名, 生成Base64 编码的 PKCS#7 签名结果
|
|
1656
|
+
function Ukeyvue_type_script_lang_js_SignOnClick() {
|
|
1657
|
+
var errorDesc = '';
|
|
1658
|
+
this.sourceData = "".concat(new Date().getTime());
|
|
1659
|
+
|
|
1660
|
+
try {
|
|
1661
|
+
var source = this.sourceData;
|
|
1662
|
+
var signature = '';
|
|
1663
|
+
var signType = 'Attach'; // 签名类型
|
|
1664
|
+
|
|
1665
|
+
var selectedAlg = 'SHA-1'; // 哈希算法(仅对RSA算法有效,SM2默认使用SM3哈希算法):
|
|
1666
|
+
|
|
1667
|
+
if (signType === 'Attach') {
|
|
1668
|
+
// PKCS#7 Attach
|
|
1669
|
+
signature = this.CryptoAgent.SignMsgPKCS7(source, selectedAlg, true);
|
|
1670
|
+
} else if (signType === 'Detach') {
|
|
1671
|
+
// PKCS#7 Detach
|
|
1672
|
+
signature = this.CryptoAgent.SignMsgPKCS7(source, selectedAlg, false);
|
|
1673
|
+
} else {
|
|
1674
|
+
// PKCS#1
|
|
1675
|
+
signature = this.CryptoAgent.SignMsgPKCS1(source, selectedAlg);
|
|
1676
|
+
}
|
|
1677
|
+
|
|
1678
|
+
if (!signature) {
|
|
1679
|
+
errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
1680
|
+
alert(errorDesc);
|
|
1681
|
+
return '';
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
console.log('SignOnClick 签名结果:', signature);
|
|
1685
|
+
return signature;
|
|
1686
|
+
} catch (e) {
|
|
1687
|
+
console.log('SignOnClick error=', e);
|
|
1688
|
+
errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
1689
|
+
alert(errorDesc);
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
return '';
|
|
1693
|
+
}
|
|
1699
1694
|
|
|
1700
1695
|
/* harmony default export */ var Ukeyvue_type_script_lang_js_ = ({
|
|
1701
1696
|
name: 'ukey',
|
|
1702
|
-
mixins: [CheckUkeyMethods],
|
|
1703
1697
|
data: function data() {
|
|
1704
1698
|
var codebase = '';
|
|
1705
1699
|
var classid = '';
|
|
@@ -1755,6 +1749,7 @@ var Ukeyvue_type_template_id_22a309ec_scoped_true_staticRenderFns = []
|
|
|
1755
1749
|
return false;
|
|
1756
1750
|
}
|
|
1757
1751
|
},
|
|
1752
|
+
SignOnClick: Ukeyvue_type_script_lang_js_SignOnClick,
|
|
1758
1753
|
// 筛选证书
|
|
1759
1754
|
SelectCertificateOnClick: function SelectCertificateOnClick(serialNo) {
|
|
1760
1755
|
if (!this.isIE) {
|
|
@@ -1817,8 +1812,8 @@ var Ukeyvue_type_template_id_22a309ec_scoped_true_staticRenderFns = []
|
|
|
1817
1812
|
});
|
|
1818
1813
|
// CONCATENATED MODULE: ./src/packages/ukey/Ukey.vue?vue&type=script&lang=js&
|
|
1819
1814
|
/* harmony default export */ var ukey_Ukeyvue_type_script_lang_js_ = (Ukeyvue_type_script_lang_js_);
|
|
1820
|
-
// EXTERNAL MODULE: ./src/packages/ukey/Ukey.vue?vue&type=style&index=0&id=
|
|
1821
|
-
var
|
|
1815
|
+
// EXTERNAL MODULE: ./src/packages/ukey/Ukey.vue?vue&type=style&index=0&id=2976751a&lang=less&scoped=true&
|
|
1816
|
+
var Ukeyvue_type_style_index_0_id_2976751a_lang_less_scoped_true_ = __webpack_require__("890c");
|
|
1822
1817
|
|
|
1823
1818
|
// CONCATENATED MODULE: ./src/packages/ukey/Ukey.vue
|
|
1824
1819
|
|
|
@@ -1831,22 +1826,22 @@ var Ukeyvue_type_style_index_0_id_22a309ec_lang_less_scoped_true_ = __webpack_re
|
|
|
1831
1826
|
|
|
1832
1827
|
var Ukey_component = normalizeComponent(
|
|
1833
1828
|
ukey_Ukeyvue_type_script_lang_js_,
|
|
1834
|
-
|
|
1835
|
-
|
|
1829
|
+
Ukeyvue_type_template_id_2976751a_scoped_true_render,
|
|
1830
|
+
Ukeyvue_type_template_id_2976751a_scoped_true_staticRenderFns,
|
|
1836
1831
|
false,
|
|
1837
1832
|
null,
|
|
1838
|
-
"
|
|
1833
|
+
"2976751a",
|
|
1839
1834
|
null
|
|
1840
1835
|
|
|
1841
1836
|
)
|
|
1842
1837
|
|
|
1843
1838
|
/* harmony default export */ var Ukey = (Ukey_component.exports);
|
|
1844
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1845
|
-
var
|
|
1846
|
-
var
|
|
1839
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6547a1e8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/ukey/WzhSign.vue?vue&type=template&id=339a252e&scoped=true&
|
|
1840
|
+
var WzhSignvue_type_template_id_339a252e_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"CryptoAgent-wrapper"},[(_vm.isIE)?_c('object',{ref:"CryptoAgent",attrs:{"codebase":_vm.publicPath + _vm.codebase,"classid":_vm.classid}}):_c('embed',{ref:"CryptoAgent",staticStyle:{"height":"0px","width":"0px"},attrs:{"type":"application/npCryptoKit.ToToDi.x86"}})])}
|
|
1841
|
+
var WzhSignvue_type_template_id_339a252e_scoped_true_staticRenderFns = []
|
|
1847
1842
|
|
|
1848
1843
|
|
|
1849
|
-
// CONCATENATED MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=template&id=
|
|
1844
|
+
// CONCATENATED MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=template&id=339a252e&scoped=true&
|
|
1850
1845
|
|
|
1851
1846
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/ukey/WzhSign.vue?vue&type=script&lang=js&
|
|
1852
1847
|
|
|
@@ -1856,6 +1851,7 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
1856
1851
|
//
|
|
1857
1852
|
//
|
|
1858
1853
|
//
|
|
1854
|
+
//
|
|
1859
1855
|
// import { getSignHash, mergeHash } from '@/api/ess'
|
|
1860
1856
|
|
|
1861
1857
|
/* harmony default export */ var WzhSignvue_type_script_lang_js_ = ({
|
|
@@ -1866,10 +1862,10 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
1866
1862
|
|
|
1867
1863
|
if (window.navigator.cpuClass === 'x86') {
|
|
1868
1864
|
codebase = 'wzh/CryptoKit.Paperless.x86.cab';
|
|
1869
|
-
classid = 'clsid:B64B695B-348D-400D-8D58-9AAB1DA5851A';
|
|
1865
|
+
classid = 'clsid:B64B695B-348D-400D-8D58-9AAB1DA5851A'; // classid = '5635B01D-C661-4ACE-B997-EECFA63BD388'
|
|
1870
1866
|
} else {
|
|
1871
1867
|
codebase = 'wzh/CryptoKit.Paperless.x64.cab';
|
|
1872
|
-
classid = 'clsid:8BF7E683-630E-4B59-9E61-C996B671EBDF';
|
|
1868
|
+
classid = 'clsid:8BF7E683-630E-4B59-9E61-C996B671EBDF'; // classid = 'clsid:63F9892E-D854-476E-A839-C8BA79254EC1'
|
|
1873
1869
|
}
|
|
1874
1870
|
|
|
1875
1871
|
return {
|
|
@@ -1958,7 +1954,6 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
1958
1954
|
},
|
|
1959
1955
|
// 消息签名, 生成Base64 编码的 PKCS#7 签名结果
|
|
1960
1956
|
SignOnClick: function SignOnClick() {
|
|
1961
|
-
var errorDesc = '';
|
|
1962
1957
|
this.sourceData = "".concat(new Date().getTime());
|
|
1963
1958
|
|
|
1964
1959
|
try {
|
|
@@ -1980,8 +1975,7 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
1980
1975
|
}
|
|
1981
1976
|
|
|
1982
1977
|
if (!signature) {
|
|
1983
|
-
|
|
1984
|
-
alert(errorDesc);
|
|
1978
|
+
this.ShowErrorInfo();
|
|
1985
1979
|
return '';
|
|
1986
1980
|
}
|
|
1987
1981
|
|
|
@@ -1989,8 +1983,7 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
1989
1983
|
return signature;
|
|
1990
1984
|
} catch (e) {
|
|
1991
1985
|
console.log('SignOnClick error=', e);
|
|
1992
|
-
|
|
1993
|
-
alert(errorDesc);
|
|
1986
|
+
this.ShowErrorInfo();
|
|
1994
1987
|
}
|
|
1995
1988
|
|
|
1996
1989
|
return '';
|
|
@@ -2003,27 +1996,22 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
2003
1996
|
var InfoContent = this.CryptoAgent.GetSignCertInfo(InfoTypeID); // Opera浏览器,NPAPI函数执行结果为false时,不能触发异常,需要自己判断返回值。
|
|
2004
1997
|
|
|
2005
1998
|
if (!InfoContent) {
|
|
2006
|
-
|
|
2007
|
-
alert(errorDesc);
|
|
1999
|
+
this.ShowErrorInfo();
|
|
2008
2000
|
return false;
|
|
2009
2001
|
}
|
|
2010
2002
|
|
|
2011
2003
|
return InfoContent;
|
|
2012
2004
|
} catch (e) {
|
|
2013
2005
|
console.log('GetCertInfoOnClick-WzhSign: ', e);
|
|
2014
|
-
|
|
2015
|
-
var _errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
2016
|
-
|
|
2017
|
-
alert(_errorDesc + e);
|
|
2006
|
+
this.ShowErrorInfo(e);
|
|
2018
2007
|
}
|
|
2019
2008
|
},
|
|
2020
2009
|
SelectCertificateOnClick: function SelectCertificateOnClick() {
|
|
2021
2010
|
var serialNo = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
2022
2011
|
|
|
2023
|
-
if (!this.isIE) {
|
|
2024
|
-
|
|
2025
|
-
}
|
|
2026
|
-
|
|
2012
|
+
// if (!this.isIE) {
|
|
2013
|
+
// alert('请使用IE浏览器!')
|
|
2014
|
+
// }
|
|
2027
2015
|
try {
|
|
2028
2016
|
var subjectDNFilter = '';
|
|
2029
2017
|
var issuerDNFilter = 'CFCA ACS'; // CFCA ACS OCA31 ,CFCA ACS OCA32, CFCA ACS TEST OCA31
|
|
@@ -2035,18 +2023,16 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
2035
2023
|
bSelectCertResult = this.CryptoAgent.SelectCertificate(subjectDNFilter, issuerDNFilter, serialNumFilter, bstrSM2CSPNameList); // Opera浏览器,NPAPI函数执行结果为false时,不能触发异常,需要自己判断返回值。
|
|
2036
2024
|
|
|
2037
2025
|
if (!bSelectCertResult) {
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
alert(errorDesc);
|
|
2026
|
+
console.log('wzh SelectCertResult 不存在');
|
|
2027
|
+
this.ShowErrorInfo();
|
|
2041
2028
|
return false;
|
|
2042
2029
|
}
|
|
2043
2030
|
|
|
2044
2031
|
console.log('wzh SelectCertResult', bSelectCertResult);
|
|
2045
2032
|
return true;
|
|
2046
2033
|
} catch (e) {
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
alert(errorDesc2 + e);
|
|
2034
|
+
console.log('wzh SelectCertResult catch error: ');
|
|
2035
|
+
this.ShowErrorInfo(e);
|
|
2050
2036
|
return false;
|
|
2051
2037
|
}
|
|
2052
2038
|
},
|
|
@@ -2095,7 +2081,7 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
2095
2081
|
var _this = this;
|
|
2096
2082
|
|
|
2097
2083
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
2098
|
-
var sourceHashData, _yield$_this$getHashV2, code, data, signature
|
|
2084
|
+
var sourceHashData, _yield$_this$getHashV2, code, data, signature;
|
|
2099
2085
|
|
|
2100
2086
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
2101
2087
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -2129,32 +2115,32 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
2129
2115
|
signature = _this.CryptoAgent.SignHashMsgPKCS7Detached(sourceHashData, 'SHA-1');
|
|
2130
2116
|
|
|
2131
2117
|
if (signature) {
|
|
2132
|
-
_context.next =
|
|
2118
|
+
_context.next = 15;
|
|
2133
2119
|
break;
|
|
2134
2120
|
}
|
|
2135
2121
|
|
|
2136
|
-
|
|
2137
|
-
|
|
2122
|
+
_this.ShowErrorInfo();
|
|
2123
|
+
|
|
2138
2124
|
return _context.abrupt("return", false);
|
|
2139
2125
|
|
|
2140
|
-
case
|
|
2126
|
+
case 15:
|
|
2141
2127
|
return _context.abrupt("return", {
|
|
2142
2128
|
signature: signature,
|
|
2143
2129
|
id: data.bean.id
|
|
2144
2130
|
});
|
|
2145
2131
|
|
|
2146
|
-
case
|
|
2147
|
-
_context.prev =
|
|
2132
|
+
case 18:
|
|
2133
|
+
_context.prev = 18;
|
|
2148
2134
|
_context.t0 = _context["catch"](0);
|
|
2149
|
-
errorDesc2 = _this.CryptoAgent.GetLastErrorDesc();
|
|
2150
2135
|
console.log('getSignHashValue', _context.t0);
|
|
2151
|
-
alert(errorDesc2 + _context.t0);
|
|
2152
2136
|
|
|
2153
|
-
|
|
2137
|
+
_this.ShowErrorInfo(_context.t0);
|
|
2138
|
+
|
|
2139
|
+
case 22:
|
|
2154
2140
|
case "end":
|
|
2155
2141
|
return _context.stop();
|
|
2156
2142
|
}
|
|
2157
|
-
}, _callee, null, [[0,
|
|
2143
|
+
}, _callee, null, [[0, 18]]);
|
|
2158
2144
|
}))();
|
|
2159
2145
|
},
|
|
2160
2146
|
signFileKeyImage: function signFileKeyImage(item, fileItem, image) {
|
|
@@ -2325,12 +2311,28 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
2325
2311
|
}, _callee3);
|
|
2326
2312
|
}))();
|
|
2327
2313
|
}
|
|
2314
|
+
},
|
|
2315
|
+
ShowErrorInfo: function ShowErrorInfo() {
|
|
2316
|
+
var response = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
2317
|
+
|
|
2318
|
+
if (!this.CryptoAgent || !this.CryptoAgent.GetLastErrorDesc) {
|
|
2319
|
+
alert('不支持该功能!');
|
|
2320
|
+
} else {
|
|
2321
|
+
// host error
|
|
2322
|
+
var errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
2323
|
+
|
|
2324
|
+
if (response) {
|
|
2325
|
+
errorDesc = "".concat(errorDesc, "[").concat(response, "]");
|
|
2326
|
+
}
|
|
2327
|
+
|
|
2328
|
+
alert(errorDesc);
|
|
2329
|
+
}
|
|
2328
2330
|
}
|
|
2329
2331
|
});
|
|
2330
2332
|
// CONCATENATED MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=script&lang=js&
|
|
2331
2333
|
/* harmony default export */ var ukey_WzhSignvue_type_script_lang_js_ = (WzhSignvue_type_script_lang_js_);
|
|
2332
|
-
// EXTERNAL MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=style&index=0&id=
|
|
2333
|
-
var
|
|
2334
|
+
// EXTERNAL MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=style&index=0&id=339a252e&lang=less&scoped=true&
|
|
2335
|
+
var WzhSignvue_type_style_index_0_id_339a252e_lang_less_scoped_true_ = __webpack_require__("6bd3");
|
|
2334
2336
|
|
|
2335
2337
|
// CONCATENATED MODULE: ./src/packages/ukey/WzhSign.vue
|
|
2336
2338
|
|
|
@@ -2343,29 +2345,29 @@ var WzhSignvue_type_style_index_0_id_7a77408f_lang_less_scoped_true_ = __webpack
|
|
|
2343
2345
|
|
|
2344
2346
|
var WzhSign_component = normalizeComponent(
|
|
2345
2347
|
ukey_WzhSignvue_type_script_lang_js_,
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
+
WzhSignvue_type_template_id_339a252e_scoped_true_render,
|
|
2349
|
+
WzhSignvue_type_template_id_339a252e_scoped_true_staticRenderFns,
|
|
2348
2350
|
false,
|
|
2349
2351
|
null,
|
|
2350
|
-
"
|
|
2352
|
+
"339a252e",
|
|
2351
2353
|
null
|
|
2352
2354
|
|
|
2353
2355
|
)
|
|
2354
2356
|
|
|
2355
2357
|
/* harmony default export */ var WzhSign = (WzhSign_component.exports);
|
|
2356
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2357
|
-
var
|
|
2358
|
-
var
|
|
2358
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6547a1e8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/ukey/SignNew.vue?vue&type=template&id=77c835ca&
|
|
2359
|
+
var SignNewvue_type_template_id_77c835ca_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[(_vm.isIE)?_c('WzhSign',{ref:"signIe",attrs:{"api":_vm.api}}):_c('WzhSignChrome',{ref:"signChrome",attrs:{"api":_vm.api}})],1)}
|
|
2360
|
+
var SignNewvue_type_template_id_77c835ca_staticRenderFns = []
|
|
2359
2361
|
|
|
2360
2362
|
|
|
2361
|
-
// CONCATENATED MODULE: ./src/packages/ukey/SignNew.vue?vue&type=template&id=
|
|
2363
|
+
// CONCATENATED MODULE: ./src/packages/ukey/SignNew.vue?vue&type=template&id=77c835ca&
|
|
2362
2364
|
|
|
2363
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2364
|
-
var
|
|
2365
|
-
var
|
|
2365
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"6547a1e8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/ukey/WzhSignChrome.vue?vue&type=template&id=72dd253b&scoped=true&
|
|
2366
|
+
var WzhSignChromevue_type_template_id_72dd253b_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"CryptoAgent-wrapper"})}
|
|
2367
|
+
var WzhSignChromevue_type_template_id_72dd253b_scoped_true_staticRenderFns = []
|
|
2366
2368
|
|
|
2367
2369
|
|
|
2368
|
-
// CONCATENATED MODULE: ./src/packages/ukey/WzhSignChrome.vue?vue&type=template&id=
|
|
2370
|
+
// CONCATENATED MODULE: ./src/packages/ukey/WzhSignChrome.vue?vue&type=template&id=72dd253b&scoped=true&
|
|
2369
2371
|
|
|
2370
2372
|
// CONCATENATED MODULE: ./src/packages/ukey/nmCryptokit.ToToDi.js
|
|
2371
2373
|
/* eslint-disable */
|
|
@@ -2806,20 +2808,14 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
2806
2808
|
}
|
|
2807
2809
|
},
|
|
2808
2810
|
ShowErrorInfo: function ShowErrorInfo(response) {
|
|
2809
|
-
if (response == null) {
|
|
2811
|
+
if (response == null || !this.CryptoAgent || !this.CryptoAgent.GetLastErrorDesc) {
|
|
2810
2812
|
alert('不支持该功能!');
|
|
2811
2813
|
} else if (response.errorcode == 1) {
|
|
2812
|
-
// connection error
|
|
2813
2814
|
alert(response.result);
|
|
2814
2815
|
} else {
|
|
2815
|
-
|
|
2816
|
-
|
|
2817
|
-
|
|
2818
|
-
alert(response.result);
|
|
2819
|
-
});
|
|
2820
|
-
} else {
|
|
2821
|
-
alert('不支持该功能!!');
|
|
2822
|
-
}
|
|
2816
|
+
this.CryptoAgent.GetLastErrorDesc().then(function (responseE) {
|
|
2817
|
+
alert(responseE.result);
|
|
2818
|
+
});
|
|
2823
2819
|
}
|
|
2824
2820
|
}
|
|
2825
2821
|
}
|
|
@@ -2975,26 +2971,32 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
2975
2971
|
bstrSM2CSPNameList = 'Uyee CSP v6.0 (Enterprise)||CFCA FOR UKEY CSP v1.1.0'; // 如果没有serialNumFilter 说明是初始调用,检测一下版本(初始化是否成功)
|
|
2976
2972
|
|
|
2977
2973
|
if (serialNumFilter) {
|
|
2978
|
-
_context2.next =
|
|
2974
|
+
_context2.next = 16;
|
|
2979
2975
|
break;
|
|
2980
2976
|
}
|
|
2981
2977
|
|
|
2982
|
-
|
|
2983
|
-
|
|
2978
|
+
_this4.CryptoAgent.GetVersion().then(function (response) {
|
|
2979
|
+
console.log(5444444, response);
|
|
2980
|
+
})["catch"](function (response) {
|
|
2981
|
+
console.log(44444, response);
|
|
2982
|
+
});
|
|
2983
|
+
|
|
2984
|
+
_context2.prev = 6;
|
|
2985
|
+
_context2.next = 9;
|
|
2984
2986
|
return _this4.CryptoAgent.getExtensionVersion();
|
|
2985
2987
|
|
|
2986
|
-
case
|
|
2987
|
-
_context2.next =
|
|
2988
|
+
case 9:
|
|
2989
|
+
_context2.next = 16;
|
|
2988
2990
|
break;
|
|
2989
2991
|
|
|
2990
|
-
case
|
|
2991
|
-
_context2.prev =
|
|
2992
|
-
_context2.t0 = _context2["catch"](
|
|
2992
|
+
case 11:
|
|
2993
|
+
_context2.prev = 11;
|
|
2994
|
+
_context2.t0 = _context2["catch"](6);
|
|
2993
2995
|
console.log(644444, _context2.t0);
|
|
2994
2996
|
alert('扩展初始化失败,请联系管理员!');
|
|
2995
2997
|
return _context2.abrupt("return", Promise.reject());
|
|
2996
2998
|
|
|
2997
|
-
case
|
|
2999
|
+
case 16:
|
|
2998
3000
|
return _context2.abrupt("return", new Promise(function (resolve, reject) {
|
|
2999
3001
|
_this4.CryptoAgent.SelectCertificate(subjectDNFilter, issuerDNFilter, serialNumFilter, bstrSM2CSPNameList).then(function (response) {
|
|
3000
3002
|
resolve(response.result);
|
|
@@ -3004,19 +3006,13 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
3004
3006
|
|
|
3005
3007
|
_this4.ShowErrorInfo(response);
|
|
3006
3008
|
});
|
|
3007
|
-
|
|
3008
|
-
_this4.CryptoAgent.getExtensionVersion().then(function (response) {
|
|
3009
|
-
console.log(53333, response);
|
|
3010
|
-
})["catch"](function (response) {
|
|
3011
|
-
console.log(644444, response);
|
|
3012
|
-
});
|
|
3013
3009
|
}));
|
|
3014
3010
|
|
|
3015
|
-
case
|
|
3011
|
+
case 17:
|
|
3016
3012
|
case "end":
|
|
3017
3013
|
return _context2.stop();
|
|
3018
3014
|
}
|
|
3019
|
-
}, _callee2, null, [[
|
|
3015
|
+
}, _callee2, null, [[6, 11]]);
|
|
3020
3016
|
}))();
|
|
3021
3017
|
},
|
|
3022
3018
|
getHashValue: function getHashValue(label, fileOss, sealImage) {
|
|
@@ -3316,8 +3312,8 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
3316
3312
|
});
|
|
3317
3313
|
// CONCATENATED MODULE: ./src/packages/ukey/WzhSignChrome.vue?vue&type=script&lang=js&
|
|
3318
3314
|
/* harmony default export */ var ukey_WzhSignChromevue_type_script_lang_js_ = (WzhSignChromevue_type_script_lang_js_);
|
|
3319
|
-
// EXTERNAL MODULE: ./src/packages/ukey/WzhSignChrome.vue?vue&type=style&index=0&id=
|
|
3320
|
-
var
|
|
3315
|
+
// EXTERNAL MODULE: ./src/packages/ukey/WzhSignChrome.vue?vue&type=style&index=0&id=72dd253b&lang=less&scoped=true&
|
|
3316
|
+
var WzhSignChromevue_type_style_index_0_id_72dd253b_lang_less_scoped_true_ = __webpack_require__("41b6");
|
|
3321
3317
|
|
|
3322
3318
|
// CONCATENATED MODULE: ./src/packages/ukey/WzhSignChrome.vue
|
|
3323
3319
|
|
|
@@ -3330,11 +3326,11 @@ var WzhSignChromevue_type_style_index_0_id_745f92c4_lang_less_scoped_true_ = __w
|
|
|
3330
3326
|
|
|
3331
3327
|
var WzhSignChrome_component = normalizeComponent(
|
|
3332
3328
|
ukey_WzhSignChromevue_type_script_lang_js_,
|
|
3333
|
-
|
|
3334
|
-
|
|
3329
|
+
WzhSignChromevue_type_template_id_72dd253b_scoped_true_render,
|
|
3330
|
+
WzhSignChromevue_type_template_id_72dd253b_scoped_true_staticRenderFns,
|
|
3335
3331
|
false,
|
|
3336
3332
|
null,
|
|
3337
|
-
"
|
|
3333
|
+
"72dd253b",
|
|
3338
3334
|
null
|
|
3339
3335
|
|
|
3340
3336
|
)
|
|
@@ -3357,7 +3353,7 @@ var WzhSignChrome_component = normalizeComponent(
|
|
|
3357
3353
|
data: function data() {
|
|
3358
3354
|
return {
|
|
3359
3355
|
child: null,
|
|
3360
|
-
isIE:
|
|
3356
|
+
isIE: false
|
|
3361
3357
|
};
|
|
3362
3358
|
},
|
|
3363
3359
|
props: {
|
|
@@ -3366,6 +3362,9 @@ var WzhSignChrome_component = normalizeComponent(
|
|
|
3366
3362
|
required: true
|
|
3367
3363
|
}
|
|
3368
3364
|
},
|
|
3365
|
+
created: function created() {
|
|
3366
|
+
this.getBrowserInfo();
|
|
3367
|
+
},
|
|
3369
3368
|
mounted: function mounted() {
|
|
3370
3369
|
if (this.isIE) {
|
|
3371
3370
|
this.child = this.$refs.signIe;
|
|
@@ -3373,7 +3372,28 @@ var WzhSignChrome_component = normalizeComponent(
|
|
|
3373
3372
|
this.child = this.$refs.signChrome;
|
|
3374
3373
|
}
|
|
3375
3374
|
},
|
|
3376
|
-
methods: {
|
|
3375
|
+
methods: {
|
|
3376
|
+
getBrowserInfo: function getBrowserInfo() {
|
|
3377
|
+
var _navigator = navigator,
|
|
3378
|
+
appVersion = _navigator.appVersion,
|
|
3379
|
+
appName = _navigator.appName;
|
|
3380
|
+
|
|
3381
|
+
if (appName.indexOf('Internet') >= 0) {
|
|
3382
|
+
this.isIE = true;
|
|
3383
|
+
return false;
|
|
3384
|
+
}
|
|
3385
|
+
|
|
3386
|
+
if (appVersion.indexOf('Trident') >= 0) {
|
|
3387
|
+
this.isIE = true;
|
|
3388
|
+
return false;
|
|
3389
|
+
} // 360的急速模式,需要使用id签署控件
|
|
3390
|
+
|
|
3391
|
+
|
|
3392
|
+
if (appVersion.indexOf(' WOW64') >= 0) {
|
|
3393
|
+
this.isIE = true;
|
|
3394
|
+
}
|
|
3395
|
+
}
|
|
3396
|
+
}
|
|
3377
3397
|
});
|
|
3378
3398
|
// CONCATENATED MODULE: ./src/packages/ukey/SignNew.vue?vue&type=script&lang=js&
|
|
3379
3399
|
/* harmony default export */ var ukey_SignNewvue_type_script_lang_js_ = (SignNewvue_type_script_lang_js_);
|
|
@@ -3387,8 +3407,8 @@ var WzhSignChrome_component = normalizeComponent(
|
|
|
3387
3407
|
|
|
3388
3408
|
var SignNew_component = normalizeComponent(
|
|
3389
3409
|
ukey_SignNewvue_type_script_lang_js_,
|
|
3390
|
-
|
|
3391
|
-
|
|
3410
|
+
SignNewvue_type_template_id_77c835ca_render,
|
|
3411
|
+
SignNewvue_type_template_id_77c835ca_staticRenderFns,
|
|
3392
3412
|
false,
|
|
3393
3413
|
null,
|
|
3394
3414
|
null,
|