@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.common.js
CHANGED
|
@@ -87,21 +87,6 @@ module.exports =
|
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
-
/***/ "1be4":
|
|
91
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
92
|
-
|
|
93
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
94
|
-
|
|
95
|
-
// load the styles
|
|
96
|
-
var content = __webpack_require__("8b98");
|
|
97
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
98
|
-
if(content.locals) module.exports = content.locals;
|
|
99
|
-
// add the styles to the DOM
|
|
100
|
-
var add = __webpack_require__("499e").default
|
|
101
|
-
var update = add("07ae2840", content, true, {"sourceMap":false,"shadowMode":false});
|
|
102
|
-
|
|
103
|
-
/***/ }),
|
|
104
|
-
|
|
105
90
|
/***/ "24fb":
|
|
106
91
|
/***/ (function(module, exports, __webpack_require__) {
|
|
107
92
|
|
|
@@ -203,18 +188,17 @@ function toComment(sourceMap) {
|
|
|
203
188
|
|
|
204
189
|
/***/ }),
|
|
205
190
|
|
|
206
|
-
/***/ "
|
|
191
|
+
/***/ "29f3":
|
|
207
192
|
/***/ (function(module, exports, __webpack_require__) {
|
|
208
193
|
|
|
209
|
-
//
|
|
194
|
+
// Imports
|
|
195
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
196
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
197
|
+
// Module
|
|
198
|
+
exports.push([module.i, ".CryptoAgent-wrapper[data-v-2976751a]{height:0;width:0;position:absoute;left:-5000px}", ""]);
|
|
199
|
+
// Exports
|
|
200
|
+
module.exports = exports;
|
|
210
201
|
|
|
211
|
-
// load the styles
|
|
212
|
-
var content = __webpack_require__("e185");
|
|
213
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
214
|
-
if(content.locals) module.exports = content.locals;
|
|
215
|
-
// add the styles to the DOM
|
|
216
|
-
var add = __webpack_require__("499e").default
|
|
217
|
-
var update = add("17d56150", content, true, {"sourceMap":false,"shadowMode":false});
|
|
218
202
|
|
|
219
203
|
/***/ }),
|
|
220
204
|
|
|
@@ -233,37 +217,12 @@ var update = add("271332fa", content, true, {"sourceMap":false,"shadowMode":fals
|
|
|
233
217
|
|
|
234
218
|
/***/ }),
|
|
235
219
|
|
|
236
|
-
/***/ "
|
|
220
|
+
/***/ "41b6":
|
|
237
221
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
238
222
|
|
|
239
223
|
"use strict";
|
|
240
|
-
/* harmony import */ var
|
|
241
|
-
/* harmony import */ var
|
|
242
|
-
/* unused harmony reexport * */
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
/***/ }),
|
|
246
|
-
|
|
247
|
-
/***/ "3ee9":
|
|
248
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
249
|
-
|
|
250
|
-
// Imports
|
|
251
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
252
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
253
|
-
// Module
|
|
254
|
-
exports.push([module.i, ".CryptoAgent-wrapper[data-v-22a309ec]{height:0;width:0;position:absoute;left:-5000px}", ""]);
|
|
255
|
-
// Exports
|
|
256
|
-
module.exports = exports;
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
/***/ }),
|
|
260
|
-
|
|
261
|
-
/***/ "4224":
|
|
262
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
263
|
-
|
|
264
|
-
"use strict";
|
|
265
|
-
/* 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");
|
|
266
|
-
/* 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__);
|
|
224
|
+
/* 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");
|
|
225
|
+
/* 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__);
|
|
267
226
|
/* unused harmony reexport * */
|
|
268
227
|
|
|
269
228
|
|
|
@@ -533,6 +492,35 @@ function applyToTag (styleElement, obj) {
|
|
|
533
492
|
}
|
|
534
493
|
|
|
535
494
|
|
|
495
|
+
/***/ }),
|
|
496
|
+
|
|
497
|
+
/***/ "4b68":
|
|
498
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
499
|
+
|
|
500
|
+
// Imports
|
|
501
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
502
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
503
|
+
// Module
|
|
504
|
+
exports.push([module.i, ".CryptoAgent-wrapper[data-v-72dd253b]{height:0;width:0;position:absolute;left:-5000px}", ""]);
|
|
505
|
+
// Exports
|
|
506
|
+
module.exports = exports;
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
/***/ }),
|
|
510
|
+
|
|
511
|
+
/***/ "63db":
|
|
512
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
513
|
+
|
|
514
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
515
|
+
|
|
516
|
+
// load the styles
|
|
517
|
+
var content = __webpack_require__("4b68");
|
|
518
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
519
|
+
if(content.locals) module.exports = content.locals;
|
|
520
|
+
// add the styles to the DOM
|
|
521
|
+
var add = __webpack_require__("499e").default
|
|
522
|
+
var update = add("72d7693b", content, true, {"sourceMap":false,"shadowMode":false});
|
|
523
|
+
|
|
536
524
|
/***/ }),
|
|
537
525
|
|
|
538
526
|
/***/ "6780":
|
|
@@ -549,12 +537,12 @@ module.exports = exports;
|
|
|
549
537
|
|
|
550
538
|
/***/ }),
|
|
551
539
|
|
|
552
|
-
/***/ "
|
|
540
|
+
/***/ "6bd3":
|
|
553
541
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
554
542
|
|
|
555
543
|
"use strict";
|
|
556
|
-
/* harmony import */ var
|
|
557
|
-
/* harmony import */ var
|
|
544
|
+
/* 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");
|
|
545
|
+
/* 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__);
|
|
558
546
|
/* unused harmony reexport * */
|
|
559
547
|
|
|
560
548
|
|
|
@@ -645,47 +633,59 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
645
633
|
|
|
646
634
|
/***/ }),
|
|
647
635
|
|
|
648
|
-
/***/ "
|
|
649
|
-
/***/ (function(module,
|
|
636
|
+
/***/ "890c":
|
|
637
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
650
638
|
|
|
651
|
-
|
|
652
|
-
var
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
exports.push([module.i, ".CryptoAgent-wrapper[data-v-7a77408f]{height:0;width:0;position:absolute;left:-5000px}", ""]);
|
|
656
|
-
// Exports
|
|
657
|
-
module.exports = exports;
|
|
639
|
+
"use strict";
|
|
640
|
+
/* 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");
|
|
641
|
+
/* 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__);
|
|
642
|
+
/* unused harmony reexport * */
|
|
658
643
|
|
|
659
644
|
|
|
660
645
|
/***/ }),
|
|
661
646
|
|
|
662
|
-
/***/ "
|
|
647
|
+
/***/ "c13c":
|
|
663
648
|
/***/ (function(module, exports, __webpack_require__) {
|
|
664
649
|
|
|
665
650
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
666
651
|
|
|
667
652
|
// load the styles
|
|
668
|
-
var content = __webpack_require__("
|
|
653
|
+
var content = __webpack_require__("29f3");
|
|
669
654
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
670
655
|
if(content.locals) module.exports = content.locals;
|
|
671
656
|
// add the styles to the DOM
|
|
672
657
|
var add = __webpack_require__("499e").default
|
|
673
|
-
var update = add("
|
|
658
|
+
var update = add("765e63b4", content, true, {"sourceMap":false,"shadowMode":false});
|
|
674
659
|
|
|
675
660
|
/***/ }),
|
|
676
661
|
|
|
677
|
-
/***/ "
|
|
662
|
+
/***/ "c3a0":
|
|
678
663
|
/***/ (function(module, exports, __webpack_require__) {
|
|
679
664
|
|
|
680
665
|
// Imports
|
|
681
666
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
682
667
|
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
683
668
|
// Module
|
|
684
|
-
exports.push([module.i, ".CryptoAgent-wrapper[data-v-
|
|
669
|
+
exports.push([module.i, ".CryptoAgent-wrapper[data-v-339a252e]{height:0;width:0;position:absolute;left:-5000px}", ""]);
|
|
685
670
|
// Exports
|
|
686
671
|
module.exports = exports;
|
|
687
672
|
|
|
688
673
|
|
|
674
|
+
/***/ }),
|
|
675
|
+
|
|
676
|
+
/***/ "c488":
|
|
677
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
678
|
+
|
|
679
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
680
|
+
|
|
681
|
+
// load the styles
|
|
682
|
+
var content = __webpack_require__("c3a0");
|
|
683
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
684
|
+
if(content.locals) module.exports = content.locals;
|
|
685
|
+
// add the styles to the DOM
|
|
686
|
+
var add = __webpack_require__("499e").default
|
|
687
|
+
var update = add("74daed76", content, true, {"sourceMap":false,"shadowMode":false});
|
|
688
|
+
|
|
689
689
|
/***/ }),
|
|
690
690
|
|
|
691
691
|
/***/ "fb15":
|
|
@@ -719,7 +719,7 @@ if (typeof window !== 'undefined') {
|
|
|
719
719
|
// Indicate to webpack that this file can be concatenated
|
|
720
720
|
/* harmony default export */ var setPublicPath = (null);
|
|
721
721
|
|
|
722
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
722
|
+
// 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&
|
|
723
723
|
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)}
|
|
724
724
|
var staticRenderFns = []
|
|
725
725
|
|
|
@@ -1613,57 +1613,13 @@ var component = normalizeComponent(
|
|
|
1613
1613
|
)
|
|
1614
1614
|
|
|
1615
1615
|
/* harmony default export */ var CfcaPdf = (component.exports);
|
|
1616
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1617
|
-
var
|
|
1618
|
-
var
|
|
1616
|
+
// 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&
|
|
1617
|
+
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)}
|
|
1618
|
+
var Ukeyvue_type_template_id_2976751a_scoped_true_staticRenderFns = []
|
|
1619
1619
|
|
|
1620
1620
|
|
|
1621
|
-
// CONCATENATED MODULE: ./src/packages/ukey/Ukey.vue?vue&type=template&id=
|
|
1622
|
-
|
|
1623
|
-
// CONCATENATED MODULE: ./src/packages/ukey/CheckUkeyMethods.js
|
|
1624
|
-
/* harmony default export */ var CheckUkeyMethods = ({
|
|
1625
|
-
methods: {
|
|
1626
|
-
// 消息签名, 生成Base64 编码的 PKCS#7 签名结果
|
|
1627
|
-
SignOnClick: function SignOnClick() {
|
|
1628
|
-
var errorDesc = '';
|
|
1629
|
-
this.sourceData = "".concat(new Date().getTime());
|
|
1630
|
-
|
|
1631
|
-
try {
|
|
1632
|
-
var source = this.sourceData;
|
|
1633
|
-
var signature = '';
|
|
1634
|
-
var signType = 'Attach'; // 签名类型
|
|
1635
|
-
|
|
1636
|
-
var selectedAlg = 'SHA-1'; // 哈希算法(仅对RSA算法有效,SM2默认使用SM3哈希算法):
|
|
1621
|
+
// CONCATENATED MODULE: ./src/packages/ukey/Ukey.vue?vue&type=template&id=2976751a&scoped=true&
|
|
1637
1622
|
|
|
1638
|
-
if (signType === 'Attach') {
|
|
1639
|
-
// PKCS#7 Attach
|
|
1640
|
-
signature = this.CryptoAgent.SignMsgPKCS7(source, selectedAlg, true);
|
|
1641
|
-
} else if (signType === 'Detach') {
|
|
1642
|
-
// PKCS#7 Detach
|
|
1643
|
-
signature = this.CryptoAgent.SignMsgPKCS7(source, selectedAlg, false);
|
|
1644
|
-
} else {
|
|
1645
|
-
// PKCS#1
|
|
1646
|
-
signature = this.CryptoAgent.SignMsgPKCS1(source, selectedAlg);
|
|
1647
|
-
}
|
|
1648
|
-
|
|
1649
|
-
if (!signature) {
|
|
1650
|
-
errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
1651
|
-
alert(errorDesc);
|
|
1652
|
-
return '';
|
|
1653
|
-
}
|
|
1654
|
-
|
|
1655
|
-
console.log('SignOnClick 签名结果:', signature);
|
|
1656
|
-
return signature;
|
|
1657
|
-
} catch (e) {
|
|
1658
|
-
console.log('SignOnClick error=', e);
|
|
1659
|
-
errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
1660
|
-
alert(errorDesc);
|
|
1661
|
-
}
|
|
1662
|
-
|
|
1663
|
-
return '';
|
|
1664
|
-
}
|
|
1665
|
-
}
|
|
1666
|
-
});
|
|
1667
1623
|
// 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&
|
|
1668
1624
|
//
|
|
1669
1625
|
//
|
|
@@ -1687,10 +1643,48 @@ var Ukeyvue_type_template_id_22a309ec_scoped_true_staticRenderFns = []
|
|
|
1687
1643
|
* 下面是 签章 的公用方法,通过mixin 使用
|
|
1688
1644
|
*
|
|
1689
1645
|
* */
|
|
1646
|
+
// 消息签名, 生成Base64 编码的 PKCS#7 签名结果
|
|
1647
|
+
function Ukeyvue_type_script_lang_js_SignOnClick() {
|
|
1648
|
+
var errorDesc = '';
|
|
1649
|
+
this.sourceData = "".concat(new Date().getTime());
|
|
1650
|
+
|
|
1651
|
+
try {
|
|
1652
|
+
var source = this.sourceData;
|
|
1653
|
+
var signature = '';
|
|
1654
|
+
var signType = 'Attach'; // 签名类型
|
|
1655
|
+
|
|
1656
|
+
var selectedAlg = 'SHA-1'; // 哈希算法(仅对RSA算法有效,SM2默认使用SM3哈希算法):
|
|
1657
|
+
|
|
1658
|
+
if (signType === 'Attach') {
|
|
1659
|
+
// PKCS#7 Attach
|
|
1660
|
+
signature = this.CryptoAgent.SignMsgPKCS7(source, selectedAlg, true);
|
|
1661
|
+
} else if (signType === 'Detach') {
|
|
1662
|
+
// PKCS#7 Detach
|
|
1663
|
+
signature = this.CryptoAgent.SignMsgPKCS7(source, selectedAlg, false);
|
|
1664
|
+
} else {
|
|
1665
|
+
// PKCS#1
|
|
1666
|
+
signature = this.CryptoAgent.SignMsgPKCS1(source, selectedAlg);
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
if (!signature) {
|
|
1670
|
+
errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
1671
|
+
alert(errorDesc);
|
|
1672
|
+
return '';
|
|
1673
|
+
}
|
|
1674
|
+
|
|
1675
|
+
console.log('SignOnClick 签名结果:', signature);
|
|
1676
|
+
return signature;
|
|
1677
|
+
} catch (e) {
|
|
1678
|
+
console.log('SignOnClick error=', e);
|
|
1679
|
+
errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
1680
|
+
alert(errorDesc);
|
|
1681
|
+
}
|
|
1682
|
+
|
|
1683
|
+
return '';
|
|
1684
|
+
}
|
|
1690
1685
|
|
|
1691
1686
|
/* harmony default export */ var Ukeyvue_type_script_lang_js_ = ({
|
|
1692
1687
|
name: 'ukey',
|
|
1693
|
-
mixins: [CheckUkeyMethods],
|
|
1694
1688
|
data: function data() {
|
|
1695
1689
|
var codebase = '';
|
|
1696
1690
|
var classid = '';
|
|
@@ -1746,6 +1740,7 @@ var Ukeyvue_type_template_id_22a309ec_scoped_true_staticRenderFns = []
|
|
|
1746
1740
|
return false;
|
|
1747
1741
|
}
|
|
1748
1742
|
},
|
|
1743
|
+
SignOnClick: Ukeyvue_type_script_lang_js_SignOnClick,
|
|
1749
1744
|
// 筛选证书
|
|
1750
1745
|
SelectCertificateOnClick: function SelectCertificateOnClick(serialNo) {
|
|
1751
1746
|
if (!this.isIE) {
|
|
@@ -1808,8 +1803,8 @@ var Ukeyvue_type_template_id_22a309ec_scoped_true_staticRenderFns = []
|
|
|
1808
1803
|
});
|
|
1809
1804
|
// CONCATENATED MODULE: ./src/packages/ukey/Ukey.vue?vue&type=script&lang=js&
|
|
1810
1805
|
/* harmony default export */ var ukey_Ukeyvue_type_script_lang_js_ = (Ukeyvue_type_script_lang_js_);
|
|
1811
|
-
// EXTERNAL MODULE: ./src/packages/ukey/Ukey.vue?vue&type=style&index=0&id=
|
|
1812
|
-
var
|
|
1806
|
+
// EXTERNAL MODULE: ./src/packages/ukey/Ukey.vue?vue&type=style&index=0&id=2976751a&lang=less&scoped=true&
|
|
1807
|
+
var Ukeyvue_type_style_index_0_id_2976751a_lang_less_scoped_true_ = __webpack_require__("890c");
|
|
1813
1808
|
|
|
1814
1809
|
// CONCATENATED MODULE: ./src/packages/ukey/Ukey.vue
|
|
1815
1810
|
|
|
@@ -1822,22 +1817,22 @@ var Ukeyvue_type_style_index_0_id_22a309ec_lang_less_scoped_true_ = __webpack_re
|
|
|
1822
1817
|
|
|
1823
1818
|
var Ukey_component = normalizeComponent(
|
|
1824
1819
|
ukey_Ukeyvue_type_script_lang_js_,
|
|
1825
|
-
|
|
1826
|
-
|
|
1820
|
+
Ukeyvue_type_template_id_2976751a_scoped_true_render,
|
|
1821
|
+
Ukeyvue_type_template_id_2976751a_scoped_true_staticRenderFns,
|
|
1827
1822
|
false,
|
|
1828
1823
|
null,
|
|
1829
|
-
"
|
|
1824
|
+
"2976751a",
|
|
1830
1825
|
null
|
|
1831
1826
|
|
|
1832
1827
|
)
|
|
1833
1828
|
|
|
1834
1829
|
/* harmony default export */ var Ukey = (Ukey_component.exports);
|
|
1835
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1836
|
-
var
|
|
1837
|
-
var
|
|
1830
|
+
// 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&
|
|
1831
|
+
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"}})])}
|
|
1832
|
+
var WzhSignvue_type_template_id_339a252e_scoped_true_staticRenderFns = []
|
|
1838
1833
|
|
|
1839
1834
|
|
|
1840
|
-
// CONCATENATED MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=template&id=
|
|
1835
|
+
// CONCATENATED MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=template&id=339a252e&scoped=true&
|
|
1841
1836
|
|
|
1842
1837
|
// 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&
|
|
1843
1838
|
|
|
@@ -1847,6 +1842,7 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
1847
1842
|
//
|
|
1848
1843
|
//
|
|
1849
1844
|
//
|
|
1845
|
+
//
|
|
1850
1846
|
// import { getSignHash, mergeHash } from '@/api/ess'
|
|
1851
1847
|
|
|
1852
1848
|
/* harmony default export */ var WzhSignvue_type_script_lang_js_ = ({
|
|
@@ -1857,10 +1853,10 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
1857
1853
|
|
|
1858
1854
|
if (window.navigator.cpuClass === 'x86') {
|
|
1859
1855
|
codebase = 'wzh/CryptoKit.Paperless.x86.cab';
|
|
1860
|
-
classid = 'clsid:B64B695B-348D-400D-8D58-9AAB1DA5851A';
|
|
1856
|
+
classid = 'clsid:B64B695B-348D-400D-8D58-9AAB1DA5851A'; // classid = '5635B01D-C661-4ACE-B997-EECFA63BD388'
|
|
1861
1857
|
} else {
|
|
1862
1858
|
codebase = 'wzh/CryptoKit.Paperless.x64.cab';
|
|
1863
|
-
classid = 'clsid:8BF7E683-630E-4B59-9E61-C996B671EBDF';
|
|
1859
|
+
classid = 'clsid:8BF7E683-630E-4B59-9E61-C996B671EBDF'; // classid = 'clsid:63F9892E-D854-476E-A839-C8BA79254EC1'
|
|
1864
1860
|
}
|
|
1865
1861
|
|
|
1866
1862
|
return {
|
|
@@ -1949,7 +1945,6 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
1949
1945
|
},
|
|
1950
1946
|
// 消息签名, 生成Base64 编码的 PKCS#7 签名结果
|
|
1951
1947
|
SignOnClick: function SignOnClick() {
|
|
1952
|
-
var errorDesc = '';
|
|
1953
1948
|
this.sourceData = "".concat(new Date().getTime());
|
|
1954
1949
|
|
|
1955
1950
|
try {
|
|
@@ -1971,8 +1966,7 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
1971
1966
|
}
|
|
1972
1967
|
|
|
1973
1968
|
if (!signature) {
|
|
1974
|
-
|
|
1975
|
-
alert(errorDesc);
|
|
1969
|
+
this.ShowErrorInfo();
|
|
1976
1970
|
return '';
|
|
1977
1971
|
}
|
|
1978
1972
|
|
|
@@ -1980,8 +1974,7 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
1980
1974
|
return signature;
|
|
1981
1975
|
} catch (e) {
|
|
1982
1976
|
console.log('SignOnClick error=', e);
|
|
1983
|
-
|
|
1984
|
-
alert(errorDesc);
|
|
1977
|
+
this.ShowErrorInfo();
|
|
1985
1978
|
}
|
|
1986
1979
|
|
|
1987
1980
|
return '';
|
|
@@ -1994,27 +1987,22 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
1994
1987
|
var InfoContent = this.CryptoAgent.GetSignCertInfo(InfoTypeID); // Opera浏览器,NPAPI函数执行结果为false时,不能触发异常,需要自己判断返回值。
|
|
1995
1988
|
|
|
1996
1989
|
if (!InfoContent) {
|
|
1997
|
-
|
|
1998
|
-
alert(errorDesc);
|
|
1990
|
+
this.ShowErrorInfo();
|
|
1999
1991
|
return false;
|
|
2000
1992
|
}
|
|
2001
1993
|
|
|
2002
1994
|
return InfoContent;
|
|
2003
1995
|
} catch (e) {
|
|
2004
1996
|
console.log('GetCertInfoOnClick-WzhSign: ', e);
|
|
2005
|
-
|
|
2006
|
-
var _errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
2007
|
-
|
|
2008
|
-
alert(_errorDesc + e);
|
|
1997
|
+
this.ShowErrorInfo(e);
|
|
2009
1998
|
}
|
|
2010
1999
|
},
|
|
2011
2000
|
SelectCertificateOnClick: function SelectCertificateOnClick() {
|
|
2012
2001
|
var serialNo = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
2013
2002
|
|
|
2014
|
-
if (!this.isIE) {
|
|
2015
|
-
|
|
2016
|
-
}
|
|
2017
|
-
|
|
2003
|
+
// if (!this.isIE) {
|
|
2004
|
+
// alert('请使用IE浏览器!')
|
|
2005
|
+
// }
|
|
2018
2006
|
try {
|
|
2019
2007
|
var subjectDNFilter = '';
|
|
2020
2008
|
var issuerDNFilter = 'CFCA ACS'; // CFCA ACS OCA31 ,CFCA ACS OCA32, CFCA ACS TEST OCA31
|
|
@@ -2026,18 +2014,16 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
2026
2014
|
bSelectCertResult = this.CryptoAgent.SelectCertificate(subjectDNFilter, issuerDNFilter, serialNumFilter, bstrSM2CSPNameList); // Opera浏览器,NPAPI函数执行结果为false时,不能触发异常,需要自己判断返回值。
|
|
2027
2015
|
|
|
2028
2016
|
if (!bSelectCertResult) {
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
alert(errorDesc);
|
|
2017
|
+
console.log('wzh SelectCertResult 不存在');
|
|
2018
|
+
this.ShowErrorInfo();
|
|
2032
2019
|
return false;
|
|
2033
2020
|
}
|
|
2034
2021
|
|
|
2035
2022
|
console.log('wzh SelectCertResult', bSelectCertResult);
|
|
2036
2023
|
return true;
|
|
2037
2024
|
} catch (e) {
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
alert(errorDesc2 + e);
|
|
2025
|
+
console.log('wzh SelectCertResult catch error: ');
|
|
2026
|
+
this.ShowErrorInfo(e);
|
|
2041
2027
|
return false;
|
|
2042
2028
|
}
|
|
2043
2029
|
},
|
|
@@ -2086,7 +2072,7 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
2086
2072
|
var _this = this;
|
|
2087
2073
|
|
|
2088
2074
|
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
2089
|
-
var sourceHashData, _yield$_this$getHashV2, code, data, signature
|
|
2075
|
+
var sourceHashData, _yield$_this$getHashV2, code, data, signature;
|
|
2090
2076
|
|
|
2091
2077
|
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
2092
2078
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -2120,32 +2106,32 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
2120
2106
|
signature = _this.CryptoAgent.SignHashMsgPKCS7Detached(sourceHashData, 'SHA-1');
|
|
2121
2107
|
|
|
2122
2108
|
if (signature) {
|
|
2123
|
-
_context.next =
|
|
2109
|
+
_context.next = 15;
|
|
2124
2110
|
break;
|
|
2125
2111
|
}
|
|
2126
2112
|
|
|
2127
|
-
|
|
2128
|
-
|
|
2113
|
+
_this.ShowErrorInfo();
|
|
2114
|
+
|
|
2129
2115
|
return _context.abrupt("return", false);
|
|
2130
2116
|
|
|
2131
|
-
case
|
|
2117
|
+
case 15:
|
|
2132
2118
|
return _context.abrupt("return", {
|
|
2133
2119
|
signature: signature,
|
|
2134
2120
|
id: data.bean.id
|
|
2135
2121
|
});
|
|
2136
2122
|
|
|
2137
|
-
case
|
|
2138
|
-
_context.prev =
|
|
2123
|
+
case 18:
|
|
2124
|
+
_context.prev = 18;
|
|
2139
2125
|
_context.t0 = _context["catch"](0);
|
|
2140
|
-
errorDesc2 = _this.CryptoAgent.GetLastErrorDesc();
|
|
2141
2126
|
console.log('getSignHashValue', _context.t0);
|
|
2142
|
-
alert(errorDesc2 + _context.t0);
|
|
2143
2127
|
|
|
2144
|
-
|
|
2128
|
+
_this.ShowErrorInfo(_context.t0);
|
|
2129
|
+
|
|
2130
|
+
case 22:
|
|
2145
2131
|
case "end":
|
|
2146
2132
|
return _context.stop();
|
|
2147
2133
|
}
|
|
2148
|
-
}, _callee, null, [[0,
|
|
2134
|
+
}, _callee, null, [[0, 18]]);
|
|
2149
2135
|
}))();
|
|
2150
2136
|
},
|
|
2151
2137
|
signFileKeyImage: function signFileKeyImage(item, fileItem, image) {
|
|
@@ -2316,12 +2302,28 @@ var WzhSignvue_type_template_id_7a77408f_scoped_true_staticRenderFns = []
|
|
|
2316
2302
|
}, _callee3);
|
|
2317
2303
|
}))();
|
|
2318
2304
|
}
|
|
2305
|
+
},
|
|
2306
|
+
ShowErrorInfo: function ShowErrorInfo() {
|
|
2307
|
+
var response = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
2308
|
+
|
|
2309
|
+
if (!this.CryptoAgent || !this.CryptoAgent.GetLastErrorDesc) {
|
|
2310
|
+
alert('不支持该功能!');
|
|
2311
|
+
} else {
|
|
2312
|
+
// host error
|
|
2313
|
+
var errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
2314
|
+
|
|
2315
|
+
if (response) {
|
|
2316
|
+
errorDesc = "".concat(errorDesc, "[").concat(response, "]");
|
|
2317
|
+
}
|
|
2318
|
+
|
|
2319
|
+
alert(errorDesc);
|
|
2320
|
+
}
|
|
2319
2321
|
}
|
|
2320
2322
|
});
|
|
2321
2323
|
// CONCATENATED MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=script&lang=js&
|
|
2322
2324
|
/* harmony default export */ var ukey_WzhSignvue_type_script_lang_js_ = (WzhSignvue_type_script_lang_js_);
|
|
2323
|
-
// EXTERNAL MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=style&index=0&id=
|
|
2324
|
-
var
|
|
2325
|
+
// EXTERNAL MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=style&index=0&id=339a252e&lang=less&scoped=true&
|
|
2326
|
+
var WzhSignvue_type_style_index_0_id_339a252e_lang_less_scoped_true_ = __webpack_require__("6bd3");
|
|
2325
2327
|
|
|
2326
2328
|
// CONCATENATED MODULE: ./src/packages/ukey/WzhSign.vue
|
|
2327
2329
|
|
|
@@ -2334,29 +2336,29 @@ var WzhSignvue_type_style_index_0_id_7a77408f_lang_less_scoped_true_ = __webpack
|
|
|
2334
2336
|
|
|
2335
2337
|
var WzhSign_component = normalizeComponent(
|
|
2336
2338
|
ukey_WzhSignvue_type_script_lang_js_,
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
+
WzhSignvue_type_template_id_339a252e_scoped_true_render,
|
|
2340
|
+
WzhSignvue_type_template_id_339a252e_scoped_true_staticRenderFns,
|
|
2339
2341
|
false,
|
|
2340
2342
|
null,
|
|
2341
|
-
"
|
|
2343
|
+
"339a252e",
|
|
2342
2344
|
null
|
|
2343
2345
|
|
|
2344
2346
|
)
|
|
2345
2347
|
|
|
2346
2348
|
/* harmony default export */ var WzhSign = (WzhSign_component.exports);
|
|
2347
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2348
|
-
var
|
|
2349
|
-
var
|
|
2349
|
+
// 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&
|
|
2350
|
+
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)}
|
|
2351
|
+
var SignNewvue_type_template_id_77c835ca_staticRenderFns = []
|
|
2350
2352
|
|
|
2351
2353
|
|
|
2352
|
-
// CONCATENATED MODULE: ./src/packages/ukey/SignNew.vue?vue&type=template&id=
|
|
2354
|
+
// CONCATENATED MODULE: ./src/packages/ukey/SignNew.vue?vue&type=template&id=77c835ca&
|
|
2353
2355
|
|
|
2354
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2355
|
-
var
|
|
2356
|
-
var
|
|
2356
|
+
// 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&
|
|
2357
|
+
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"})}
|
|
2358
|
+
var WzhSignChromevue_type_template_id_72dd253b_scoped_true_staticRenderFns = []
|
|
2357
2359
|
|
|
2358
2360
|
|
|
2359
|
-
// CONCATENATED MODULE: ./src/packages/ukey/WzhSignChrome.vue?vue&type=template&id=
|
|
2361
|
+
// CONCATENATED MODULE: ./src/packages/ukey/WzhSignChrome.vue?vue&type=template&id=72dd253b&scoped=true&
|
|
2360
2362
|
|
|
2361
2363
|
// CONCATENATED MODULE: ./src/packages/ukey/nmCryptokit.ToToDi.js
|
|
2362
2364
|
/* eslint-disable */
|
|
@@ -2797,20 +2799,14 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
2797
2799
|
}
|
|
2798
2800
|
},
|
|
2799
2801
|
ShowErrorInfo: function ShowErrorInfo(response) {
|
|
2800
|
-
if (response == null) {
|
|
2802
|
+
if (response == null || !this.CryptoAgent || !this.CryptoAgent.GetLastErrorDesc) {
|
|
2801
2803
|
alert('不支持该功能!');
|
|
2802
2804
|
} else if (response.errorcode == 1) {
|
|
2803
|
-
// connection error
|
|
2804
2805
|
alert(response.result);
|
|
2805
2806
|
} else {
|
|
2806
|
-
|
|
2807
|
-
|
|
2808
|
-
|
|
2809
|
-
alert(response.result);
|
|
2810
|
-
});
|
|
2811
|
-
} else {
|
|
2812
|
-
alert('不支持该功能!!');
|
|
2813
|
-
}
|
|
2807
|
+
this.CryptoAgent.GetLastErrorDesc().then(function (responseE) {
|
|
2808
|
+
alert(responseE.result);
|
|
2809
|
+
});
|
|
2814
2810
|
}
|
|
2815
2811
|
}
|
|
2816
2812
|
}
|
|
@@ -2966,26 +2962,32 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
2966
2962
|
bstrSM2CSPNameList = 'Uyee CSP v6.0 (Enterprise)||CFCA FOR UKEY CSP v1.1.0'; // 如果没有serialNumFilter 说明是初始调用,检测一下版本(初始化是否成功)
|
|
2967
2963
|
|
|
2968
2964
|
if (serialNumFilter) {
|
|
2969
|
-
_context2.next =
|
|
2965
|
+
_context2.next = 16;
|
|
2970
2966
|
break;
|
|
2971
2967
|
}
|
|
2972
2968
|
|
|
2973
|
-
|
|
2974
|
-
|
|
2969
|
+
_this4.CryptoAgent.GetVersion().then(function (response) {
|
|
2970
|
+
console.log(5444444, response);
|
|
2971
|
+
})["catch"](function (response) {
|
|
2972
|
+
console.log(44444, response);
|
|
2973
|
+
});
|
|
2974
|
+
|
|
2975
|
+
_context2.prev = 6;
|
|
2976
|
+
_context2.next = 9;
|
|
2975
2977
|
return _this4.CryptoAgent.getExtensionVersion();
|
|
2976
2978
|
|
|
2977
|
-
case
|
|
2978
|
-
_context2.next =
|
|
2979
|
+
case 9:
|
|
2980
|
+
_context2.next = 16;
|
|
2979
2981
|
break;
|
|
2980
2982
|
|
|
2981
|
-
case
|
|
2982
|
-
_context2.prev =
|
|
2983
|
-
_context2.t0 = _context2["catch"](
|
|
2983
|
+
case 11:
|
|
2984
|
+
_context2.prev = 11;
|
|
2985
|
+
_context2.t0 = _context2["catch"](6);
|
|
2984
2986
|
console.log(644444, _context2.t0);
|
|
2985
2987
|
alert('扩展初始化失败,请联系管理员!');
|
|
2986
2988
|
return _context2.abrupt("return", Promise.reject());
|
|
2987
2989
|
|
|
2988
|
-
case
|
|
2990
|
+
case 16:
|
|
2989
2991
|
return _context2.abrupt("return", new Promise(function (resolve, reject) {
|
|
2990
2992
|
_this4.CryptoAgent.SelectCertificate(subjectDNFilter, issuerDNFilter, serialNumFilter, bstrSM2CSPNameList).then(function (response) {
|
|
2991
2993
|
resolve(response.result);
|
|
@@ -2995,19 +2997,13 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
2995
2997
|
|
|
2996
2998
|
_this4.ShowErrorInfo(response);
|
|
2997
2999
|
});
|
|
2998
|
-
|
|
2999
|
-
_this4.CryptoAgent.getExtensionVersion().then(function (response) {
|
|
3000
|
-
console.log(53333, response);
|
|
3001
|
-
})["catch"](function (response) {
|
|
3002
|
-
console.log(644444, response);
|
|
3003
|
-
});
|
|
3004
3000
|
}));
|
|
3005
3001
|
|
|
3006
|
-
case
|
|
3002
|
+
case 17:
|
|
3007
3003
|
case "end":
|
|
3008
3004
|
return _context2.stop();
|
|
3009
3005
|
}
|
|
3010
|
-
}, _callee2, null, [[
|
|
3006
|
+
}, _callee2, null, [[6, 11]]);
|
|
3011
3007
|
}))();
|
|
3012
3008
|
},
|
|
3013
3009
|
getHashValue: function getHashValue(label, fileOss, sealImage) {
|
|
@@ -3307,8 +3303,8 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
3307
3303
|
});
|
|
3308
3304
|
// CONCATENATED MODULE: ./src/packages/ukey/WzhSignChrome.vue?vue&type=script&lang=js&
|
|
3309
3305
|
/* harmony default export */ var ukey_WzhSignChromevue_type_script_lang_js_ = (WzhSignChromevue_type_script_lang_js_);
|
|
3310
|
-
// EXTERNAL MODULE: ./src/packages/ukey/WzhSignChrome.vue?vue&type=style&index=0&id=
|
|
3311
|
-
var
|
|
3306
|
+
// EXTERNAL MODULE: ./src/packages/ukey/WzhSignChrome.vue?vue&type=style&index=0&id=72dd253b&lang=less&scoped=true&
|
|
3307
|
+
var WzhSignChromevue_type_style_index_0_id_72dd253b_lang_less_scoped_true_ = __webpack_require__("41b6");
|
|
3312
3308
|
|
|
3313
3309
|
// CONCATENATED MODULE: ./src/packages/ukey/WzhSignChrome.vue
|
|
3314
3310
|
|
|
@@ -3321,11 +3317,11 @@ var WzhSignChromevue_type_style_index_0_id_745f92c4_lang_less_scoped_true_ = __w
|
|
|
3321
3317
|
|
|
3322
3318
|
var WzhSignChrome_component = normalizeComponent(
|
|
3323
3319
|
ukey_WzhSignChromevue_type_script_lang_js_,
|
|
3324
|
-
|
|
3325
|
-
|
|
3320
|
+
WzhSignChromevue_type_template_id_72dd253b_scoped_true_render,
|
|
3321
|
+
WzhSignChromevue_type_template_id_72dd253b_scoped_true_staticRenderFns,
|
|
3326
3322
|
false,
|
|
3327
3323
|
null,
|
|
3328
|
-
"
|
|
3324
|
+
"72dd253b",
|
|
3329
3325
|
null
|
|
3330
3326
|
|
|
3331
3327
|
)
|
|
@@ -3348,7 +3344,7 @@ var WzhSignChrome_component = normalizeComponent(
|
|
|
3348
3344
|
data: function data() {
|
|
3349
3345
|
return {
|
|
3350
3346
|
child: null,
|
|
3351
|
-
isIE:
|
|
3347
|
+
isIE: false
|
|
3352
3348
|
};
|
|
3353
3349
|
},
|
|
3354
3350
|
props: {
|
|
@@ -3357,6 +3353,9 @@ var WzhSignChrome_component = normalizeComponent(
|
|
|
3357
3353
|
required: true
|
|
3358
3354
|
}
|
|
3359
3355
|
},
|
|
3356
|
+
created: function created() {
|
|
3357
|
+
this.getBrowserInfo();
|
|
3358
|
+
},
|
|
3360
3359
|
mounted: function mounted() {
|
|
3361
3360
|
if (this.isIE) {
|
|
3362
3361
|
this.child = this.$refs.signIe;
|
|
@@ -3364,7 +3363,28 @@ var WzhSignChrome_component = normalizeComponent(
|
|
|
3364
3363
|
this.child = this.$refs.signChrome;
|
|
3365
3364
|
}
|
|
3366
3365
|
},
|
|
3367
|
-
methods: {
|
|
3366
|
+
methods: {
|
|
3367
|
+
getBrowserInfo: function getBrowserInfo() {
|
|
3368
|
+
var _navigator = navigator,
|
|
3369
|
+
appVersion = _navigator.appVersion,
|
|
3370
|
+
appName = _navigator.appName;
|
|
3371
|
+
|
|
3372
|
+
if (appName.indexOf('Internet') >= 0) {
|
|
3373
|
+
this.isIE = true;
|
|
3374
|
+
return false;
|
|
3375
|
+
}
|
|
3376
|
+
|
|
3377
|
+
if (appVersion.indexOf('Trident') >= 0) {
|
|
3378
|
+
this.isIE = true;
|
|
3379
|
+
return false;
|
|
3380
|
+
} // 360的急速模式,需要使用id签署控件
|
|
3381
|
+
|
|
3382
|
+
|
|
3383
|
+
if (appVersion.indexOf(' WOW64') >= 0) {
|
|
3384
|
+
this.isIE = true;
|
|
3385
|
+
}
|
|
3386
|
+
}
|
|
3387
|
+
}
|
|
3368
3388
|
});
|
|
3369
3389
|
// CONCATENATED MODULE: ./src/packages/ukey/SignNew.vue?vue&type=script&lang=js&
|
|
3370
3390
|
/* harmony default export */ var ukey_SignNewvue_type_script_lang_js_ = (SignNewvue_type_script_lang_js_);
|
|
@@ -3378,8 +3398,8 @@ var WzhSignChrome_component = normalizeComponent(
|
|
|
3378
3398
|
|
|
3379
3399
|
var SignNew_component = normalizeComponent(
|
|
3380
3400
|
ukey_SignNewvue_type_script_lang_js_,
|
|
3381
|
-
|
|
3382
|
-
|
|
3401
|
+
SignNewvue_type_template_id_77c835ca_render,
|
|
3402
|
+
SignNewvue_type_template_id_77c835ca_staticRenderFns,
|
|
3383
3403
|
false,
|
|
3384
3404
|
null,
|
|
3385
3405
|
null,
|