@toolspack/ttd-common 0.5.6 → 1.0.1
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 +4 -1
- package/lib/ttd-common.common.js +545 -480
- package/lib/ttd-common.umd.js +545 -480
- package/lib/ttd-common.umd.min.js +3 -1
- package/package.json +1 -2
- package/src/App.vue +5 -22
- package/src/packages/ukey/SignNew.vue +19 -11
- package/src/packages/ukey/Ukey.vue +1 -1
- package/src/packages/ukey/WzhSign.vue +17 -18
- package/src/packages/ukey/WzhSignChrome.vue +3 -7
- package/src/packages/pdfjs/PdfView2.vue +0 -331
- package/src/packages/ukey/SignNew copy.vue +0 -54
package/lib/ttd-common.common.js
CHANGED
|
@@ -87,6 +87,17 @@ module.exports =
|
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
+
/***/ "1ad4":
|
|
91
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
|
+
|
|
93
|
+
"use strict";
|
|
94
|
+
/* 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_225ea8bc_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d75a");
|
|
95
|
+
/* 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_225ea8bc_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_225ea8bc_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
96
|
+
/* unused harmony reexport * */
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
/***/ }),
|
|
100
|
+
|
|
90
101
|
/***/ "24fb":
|
|
91
102
|
/***/ (function(module, exports, __webpack_require__) {
|
|
92
103
|
|
|
@@ -188,58 +199,44 @@ function toComment(sourceMap) {
|
|
|
188
199
|
|
|
189
200
|
/***/ }),
|
|
190
201
|
|
|
191
|
-
/***/ "
|
|
192
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
193
|
-
|
|
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;
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
/***/ }),
|
|
204
|
-
|
|
205
|
-
/***/ "3075":
|
|
202
|
+
/***/ "3a06":
|
|
206
203
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
207
204
|
|
|
208
205
|
"use strict";
|
|
209
|
-
/* harmony import */ var
|
|
210
|
-
/* harmony import */ var
|
|
206
|
+
/* 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_4934471a_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("4188");
|
|
207
|
+
/* 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_4934471a_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_4934471a_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
211
208
|
/* unused harmony reexport * */
|
|
212
209
|
|
|
213
210
|
|
|
214
211
|
/***/ }),
|
|
215
212
|
|
|
216
|
-
/***/ "
|
|
213
|
+
/***/ "3a50":
|
|
217
214
|
/***/ (function(module, exports, __webpack_require__) {
|
|
218
215
|
|
|
219
216
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
220
217
|
|
|
221
218
|
// load the styles
|
|
222
|
-
var content = __webpack_require__("
|
|
219
|
+
var content = __webpack_require__("6780");
|
|
223
220
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
224
221
|
if(content.locals) module.exports = content.locals;
|
|
225
222
|
// add the styles to the DOM
|
|
226
223
|
var add = __webpack_require__("499e").default
|
|
227
|
-
var update = add("
|
|
224
|
+
var update = add("271332fa", content, true, {"sourceMap":false,"shadowMode":false});
|
|
228
225
|
|
|
229
226
|
/***/ }),
|
|
230
227
|
|
|
231
|
-
/***/ "
|
|
228
|
+
/***/ "4188":
|
|
232
229
|
/***/ (function(module, exports, __webpack_require__) {
|
|
233
230
|
|
|
234
231
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
235
232
|
|
|
236
233
|
// load the styles
|
|
237
|
-
var content = __webpack_require__("
|
|
234
|
+
var content = __webpack_require__("f5e4");
|
|
238
235
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
239
236
|
if(content.locals) module.exports = content.locals;
|
|
240
237
|
// add the styles to the DOM
|
|
241
238
|
var add = __webpack_require__("499e").default
|
|
242
|
-
var update = add("
|
|
239
|
+
var update = add("fbc85da2", content, true, {"sourceMap":false,"shadowMode":false});
|
|
243
240
|
|
|
244
241
|
/***/ }),
|
|
245
242
|
|
|
@@ -523,15 +520,30 @@ module.exports = exports;
|
|
|
523
520
|
|
|
524
521
|
/***/ }),
|
|
525
522
|
|
|
526
|
-
/***/ "
|
|
523
|
+
/***/ "794c":
|
|
527
524
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
528
525
|
|
|
529
526
|
"use strict";
|
|
530
|
-
/* harmony import */ var
|
|
531
|
-
/* harmony import */ var
|
|
527
|
+
/* 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_92ccc742_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("7c43");
|
|
528
|
+
/* 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_92ccc742_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_92ccc742_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
532
529
|
/* unused harmony reexport * */
|
|
533
530
|
|
|
534
531
|
|
|
532
|
+
/***/ }),
|
|
533
|
+
|
|
534
|
+
/***/ "7c43":
|
|
535
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
536
|
+
|
|
537
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
538
|
+
|
|
539
|
+
// load the styles
|
|
540
|
+
var content = __webpack_require__("c433");
|
|
541
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
542
|
+
if(content.locals) module.exports = content.locals;
|
|
543
|
+
// add the styles to the DOM
|
|
544
|
+
var add = __webpack_require__("499e").default
|
|
545
|
+
var update = add("0f021eee", content, true, {"sourceMap":false,"shadowMode":false});
|
|
546
|
+
|
|
535
547
|
/***/ }),
|
|
536
548
|
|
|
537
549
|
/***/ "8875":
|
|
@@ -619,69 +631,57 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
619
631
|
|
|
620
632
|
/***/ }),
|
|
621
633
|
|
|
622
|
-
/***/ "
|
|
623
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
624
|
-
|
|
625
|
-
"use strict";
|
|
626
|
-
/* 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");
|
|
627
|
-
/* 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__);
|
|
628
|
-
/* unused harmony reexport * */
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
/***/ }),
|
|
632
|
-
|
|
633
|
-
/***/ "c13c":
|
|
634
|
+
/***/ "b33c":
|
|
634
635
|
/***/ (function(module, exports, __webpack_require__) {
|
|
635
636
|
|
|
636
|
-
//
|
|
637
|
+
// Imports
|
|
638
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
639
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
640
|
+
// Module
|
|
641
|
+
exports.push([module.i, ".CryptoAgent-wrapper[data-v-225ea8bc]{height:0;width:0;position:absoute;left:-5000px}", ""]);
|
|
642
|
+
// Exports
|
|
643
|
+
module.exports = exports;
|
|
637
644
|
|
|
638
|
-
// load the styles
|
|
639
|
-
var content = __webpack_require__("29f3");
|
|
640
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
641
|
-
if(content.locals) module.exports = content.locals;
|
|
642
|
-
// add the styles to the DOM
|
|
643
|
-
var add = __webpack_require__("499e").default
|
|
644
|
-
var update = add("765e63b4", content, true, {"sourceMap":false,"shadowMode":false});
|
|
645
645
|
|
|
646
646
|
/***/ }),
|
|
647
647
|
|
|
648
|
-
/***/ "
|
|
648
|
+
/***/ "c433":
|
|
649
649
|
/***/ (function(module, exports, __webpack_require__) {
|
|
650
650
|
|
|
651
651
|
// Imports
|
|
652
652
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
653
653
|
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
654
654
|
// Module
|
|
655
|
-
exports.push([module.i, ".CryptoAgent-wrapper[data-v-
|
|
655
|
+
exports.push([module.i, ".CryptoAgent-wrapper[data-v-92ccc742]{height:0;width:0;position:absolute;left:-5000px}", ""]);
|
|
656
656
|
// Exports
|
|
657
657
|
module.exports = exports;
|
|
658
658
|
|
|
659
659
|
|
|
660
660
|
/***/ }),
|
|
661
661
|
|
|
662
|
-
/***/ "
|
|
662
|
+
/***/ "d75a":
|
|
663
663
|
/***/ (function(module, exports, __webpack_require__) {
|
|
664
664
|
|
|
665
665
|
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
666
666
|
|
|
667
667
|
// load the styles
|
|
668
|
-
var content = __webpack_require__("
|
|
668
|
+
var content = __webpack_require__("b33c");
|
|
669
669
|
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
670
670
|
if(content.locals) module.exports = content.locals;
|
|
671
671
|
// add the styles to the DOM
|
|
672
672
|
var add = __webpack_require__("499e").default
|
|
673
|
-
var update = add("
|
|
673
|
+
var update = add("bb6be8cc", content, true, {"sourceMap":false,"shadowMode":false});
|
|
674
674
|
|
|
675
675
|
/***/ }),
|
|
676
676
|
|
|
677
|
-
/***/ "
|
|
677
|
+
/***/ "f5e4":
|
|
678
678
|
/***/ (function(module, exports, __webpack_require__) {
|
|
679
679
|
|
|
680
680
|
// Imports
|
|
681
681
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
682
682
|
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
683
683
|
// Module
|
|
684
|
-
exports.push([module.i, ".CryptoAgent-wrapper[data-v-
|
|
684
|
+
exports.push([module.i, ".CryptoAgent-wrapper[data-v-4934471a]{height:0;width:0;position:absolute;left:-5000px}", ""]);
|
|
685
685
|
// Exports
|
|
686
686
|
module.exports = exports;
|
|
687
687
|
|
|
@@ -719,13 +719,329 @@ 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":"56cdd3d2-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
|
|
|
726
726
|
|
|
727
727
|
// CONCATENATED MODULE: ./src/packages/cfca/CfcaPdf.vue?vue&type=template&id=cd924424&
|
|
728
728
|
|
|
729
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
730
|
+
function _typeof(obj) {
|
|
731
|
+
"@babel/helpers - typeof";
|
|
732
|
+
|
|
733
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
734
|
+
return typeof obj;
|
|
735
|
+
} : function (obj) {
|
|
736
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
737
|
+
}, _typeof(obj);
|
|
738
|
+
}
|
|
739
|
+
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
|
|
740
|
+
|
|
741
|
+
function _regeneratorRuntime() {
|
|
742
|
+
"use strict";
|
|
743
|
+
|
|
744
|
+
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
|
|
745
|
+
_regeneratorRuntime = function _regeneratorRuntime() {
|
|
746
|
+
return exports;
|
|
747
|
+
};
|
|
748
|
+
var exports = {},
|
|
749
|
+
Op = Object.prototype,
|
|
750
|
+
hasOwn = Op.hasOwnProperty,
|
|
751
|
+
defineProperty = Object.defineProperty || function (obj, key, desc) {
|
|
752
|
+
obj[key] = desc.value;
|
|
753
|
+
},
|
|
754
|
+
$Symbol = "function" == typeof Symbol ? Symbol : {},
|
|
755
|
+
iteratorSymbol = $Symbol.iterator || "@@iterator",
|
|
756
|
+
asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator",
|
|
757
|
+
toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag";
|
|
758
|
+
function define(obj, key, value) {
|
|
759
|
+
return Object.defineProperty(obj, key, {
|
|
760
|
+
value: value,
|
|
761
|
+
enumerable: !0,
|
|
762
|
+
configurable: !0,
|
|
763
|
+
writable: !0
|
|
764
|
+
}), obj[key];
|
|
765
|
+
}
|
|
766
|
+
try {
|
|
767
|
+
define({}, "");
|
|
768
|
+
} catch (err) {
|
|
769
|
+
define = function define(obj, key, value) {
|
|
770
|
+
return obj[key] = value;
|
|
771
|
+
};
|
|
772
|
+
}
|
|
773
|
+
function wrap(innerFn, outerFn, self, tryLocsList) {
|
|
774
|
+
var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator,
|
|
775
|
+
generator = Object.create(protoGenerator.prototype),
|
|
776
|
+
context = new Context(tryLocsList || []);
|
|
777
|
+
return defineProperty(generator, "_invoke", {
|
|
778
|
+
value: makeInvokeMethod(innerFn, self, context)
|
|
779
|
+
}), generator;
|
|
780
|
+
}
|
|
781
|
+
function tryCatch(fn, obj, arg) {
|
|
782
|
+
try {
|
|
783
|
+
return {
|
|
784
|
+
type: "normal",
|
|
785
|
+
arg: fn.call(obj, arg)
|
|
786
|
+
};
|
|
787
|
+
} catch (err) {
|
|
788
|
+
return {
|
|
789
|
+
type: "throw",
|
|
790
|
+
arg: err
|
|
791
|
+
};
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
exports.wrap = wrap;
|
|
795
|
+
var ContinueSentinel = {};
|
|
796
|
+
function Generator() {}
|
|
797
|
+
function GeneratorFunction() {}
|
|
798
|
+
function GeneratorFunctionPrototype() {}
|
|
799
|
+
var IteratorPrototype = {};
|
|
800
|
+
define(IteratorPrototype, iteratorSymbol, function () {
|
|
801
|
+
return this;
|
|
802
|
+
});
|
|
803
|
+
var getProto = Object.getPrototypeOf,
|
|
804
|
+
NativeIteratorPrototype = getProto && getProto(getProto(values([])));
|
|
805
|
+
NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype);
|
|
806
|
+
var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype);
|
|
807
|
+
function defineIteratorMethods(prototype) {
|
|
808
|
+
["next", "throw", "return"].forEach(function (method) {
|
|
809
|
+
define(prototype, method, function (arg) {
|
|
810
|
+
return this._invoke(method, arg);
|
|
811
|
+
});
|
|
812
|
+
});
|
|
813
|
+
}
|
|
814
|
+
function AsyncIterator(generator, PromiseImpl) {
|
|
815
|
+
function invoke(method, arg, resolve, reject) {
|
|
816
|
+
var record = tryCatch(generator[method], generator, arg);
|
|
817
|
+
if ("throw" !== record.type) {
|
|
818
|
+
var result = record.arg,
|
|
819
|
+
value = result.value;
|
|
820
|
+
return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) {
|
|
821
|
+
invoke("next", value, resolve, reject);
|
|
822
|
+
}, function (err) {
|
|
823
|
+
invoke("throw", err, resolve, reject);
|
|
824
|
+
}) : PromiseImpl.resolve(value).then(function (unwrapped) {
|
|
825
|
+
result.value = unwrapped, resolve(result);
|
|
826
|
+
}, function (error) {
|
|
827
|
+
return invoke("throw", error, resolve, reject);
|
|
828
|
+
});
|
|
829
|
+
}
|
|
830
|
+
reject(record.arg);
|
|
831
|
+
}
|
|
832
|
+
var previousPromise;
|
|
833
|
+
defineProperty(this, "_invoke", {
|
|
834
|
+
value: function value(method, arg) {
|
|
835
|
+
function callInvokeWithMethodAndArg() {
|
|
836
|
+
return new PromiseImpl(function (resolve, reject) {
|
|
837
|
+
invoke(method, arg, resolve, reject);
|
|
838
|
+
});
|
|
839
|
+
}
|
|
840
|
+
return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg();
|
|
841
|
+
}
|
|
842
|
+
});
|
|
843
|
+
}
|
|
844
|
+
function makeInvokeMethod(innerFn, self, context) {
|
|
845
|
+
var state = "suspendedStart";
|
|
846
|
+
return function (method, arg) {
|
|
847
|
+
if ("executing" === state) throw new Error("Generator is already running");
|
|
848
|
+
if ("completed" === state) {
|
|
849
|
+
if ("throw" === method) throw arg;
|
|
850
|
+
return doneResult();
|
|
851
|
+
}
|
|
852
|
+
for (context.method = method, context.arg = arg;;) {
|
|
853
|
+
var delegate = context.delegate;
|
|
854
|
+
if (delegate) {
|
|
855
|
+
var delegateResult = maybeInvokeDelegate(delegate, context);
|
|
856
|
+
if (delegateResult) {
|
|
857
|
+
if (delegateResult === ContinueSentinel) continue;
|
|
858
|
+
return delegateResult;
|
|
859
|
+
}
|
|
860
|
+
}
|
|
861
|
+
if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) {
|
|
862
|
+
if ("suspendedStart" === state) throw state = "completed", context.arg;
|
|
863
|
+
context.dispatchException(context.arg);
|
|
864
|
+
} else "return" === context.method && context.abrupt("return", context.arg);
|
|
865
|
+
state = "executing";
|
|
866
|
+
var record = tryCatch(innerFn, self, context);
|
|
867
|
+
if ("normal" === record.type) {
|
|
868
|
+
if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue;
|
|
869
|
+
return {
|
|
870
|
+
value: record.arg,
|
|
871
|
+
done: context.done
|
|
872
|
+
};
|
|
873
|
+
}
|
|
874
|
+
"throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg);
|
|
875
|
+
}
|
|
876
|
+
};
|
|
877
|
+
}
|
|
878
|
+
function maybeInvokeDelegate(delegate, context) {
|
|
879
|
+
var methodName = context.method,
|
|
880
|
+
method = delegate.iterator[methodName];
|
|
881
|
+
if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel;
|
|
882
|
+
var record = tryCatch(method, delegate.iterator, context.arg);
|
|
883
|
+
if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel;
|
|
884
|
+
var info = record.arg;
|
|
885
|
+
return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel);
|
|
886
|
+
}
|
|
887
|
+
function pushTryEntry(locs) {
|
|
888
|
+
var entry = {
|
|
889
|
+
tryLoc: locs[0]
|
|
890
|
+
};
|
|
891
|
+
1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry);
|
|
892
|
+
}
|
|
893
|
+
function resetTryEntry(entry) {
|
|
894
|
+
var record = entry.completion || {};
|
|
895
|
+
record.type = "normal", delete record.arg, entry.completion = record;
|
|
896
|
+
}
|
|
897
|
+
function Context(tryLocsList) {
|
|
898
|
+
this.tryEntries = [{
|
|
899
|
+
tryLoc: "root"
|
|
900
|
+
}], tryLocsList.forEach(pushTryEntry, this), this.reset(!0);
|
|
901
|
+
}
|
|
902
|
+
function values(iterable) {
|
|
903
|
+
if (iterable) {
|
|
904
|
+
var iteratorMethod = iterable[iteratorSymbol];
|
|
905
|
+
if (iteratorMethod) return iteratorMethod.call(iterable);
|
|
906
|
+
if ("function" == typeof iterable.next) return iterable;
|
|
907
|
+
if (!isNaN(iterable.length)) {
|
|
908
|
+
var i = -1,
|
|
909
|
+
next = function next() {
|
|
910
|
+
for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next;
|
|
911
|
+
return next.value = undefined, next.done = !0, next;
|
|
912
|
+
};
|
|
913
|
+
return next.next = next;
|
|
914
|
+
}
|
|
915
|
+
}
|
|
916
|
+
return {
|
|
917
|
+
next: doneResult
|
|
918
|
+
};
|
|
919
|
+
}
|
|
920
|
+
function doneResult() {
|
|
921
|
+
return {
|
|
922
|
+
value: undefined,
|
|
923
|
+
done: !0
|
|
924
|
+
};
|
|
925
|
+
}
|
|
926
|
+
return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", {
|
|
927
|
+
value: GeneratorFunctionPrototype,
|
|
928
|
+
configurable: !0
|
|
929
|
+
}), defineProperty(GeneratorFunctionPrototype, "constructor", {
|
|
930
|
+
value: GeneratorFunction,
|
|
931
|
+
configurable: !0
|
|
932
|
+
}), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) {
|
|
933
|
+
var ctor = "function" == typeof genFun && genFun.constructor;
|
|
934
|
+
return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name));
|
|
935
|
+
}, exports.mark = function (genFun) {
|
|
936
|
+
return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun;
|
|
937
|
+
}, exports.awrap = function (arg) {
|
|
938
|
+
return {
|
|
939
|
+
__await: arg
|
|
940
|
+
};
|
|
941
|
+
}, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () {
|
|
942
|
+
return this;
|
|
943
|
+
}), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) {
|
|
944
|
+
void 0 === PromiseImpl && (PromiseImpl = Promise);
|
|
945
|
+
var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl);
|
|
946
|
+
return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) {
|
|
947
|
+
return result.done ? result.value : iter.next();
|
|
948
|
+
});
|
|
949
|
+
}, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () {
|
|
950
|
+
return this;
|
|
951
|
+
}), define(Gp, "toString", function () {
|
|
952
|
+
return "[object Generator]";
|
|
953
|
+
}), exports.keys = function (val) {
|
|
954
|
+
var object = Object(val),
|
|
955
|
+
keys = [];
|
|
956
|
+
for (var key in object) keys.push(key);
|
|
957
|
+
return keys.reverse(), function next() {
|
|
958
|
+
for (; keys.length;) {
|
|
959
|
+
var key = keys.pop();
|
|
960
|
+
if (key in object) return next.value = key, next.done = !1, next;
|
|
961
|
+
}
|
|
962
|
+
return next.done = !0, next;
|
|
963
|
+
};
|
|
964
|
+
}, exports.values = values, Context.prototype = {
|
|
965
|
+
constructor: Context,
|
|
966
|
+
reset: function reset(skipTempReset) {
|
|
967
|
+
if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined);
|
|
968
|
+
},
|
|
969
|
+
stop: function stop() {
|
|
970
|
+
this.done = !0;
|
|
971
|
+
var rootRecord = this.tryEntries[0].completion;
|
|
972
|
+
if ("throw" === rootRecord.type) throw rootRecord.arg;
|
|
973
|
+
return this.rval;
|
|
974
|
+
},
|
|
975
|
+
dispatchException: function dispatchException(exception) {
|
|
976
|
+
if (this.done) throw exception;
|
|
977
|
+
var context = this;
|
|
978
|
+
function handle(loc, caught) {
|
|
979
|
+
return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught;
|
|
980
|
+
}
|
|
981
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
982
|
+
var entry = this.tryEntries[i],
|
|
983
|
+
record = entry.completion;
|
|
984
|
+
if ("root" === entry.tryLoc) return handle("end");
|
|
985
|
+
if (entry.tryLoc <= this.prev) {
|
|
986
|
+
var hasCatch = hasOwn.call(entry, "catchLoc"),
|
|
987
|
+
hasFinally = hasOwn.call(entry, "finallyLoc");
|
|
988
|
+
if (hasCatch && hasFinally) {
|
|
989
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
990
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
991
|
+
} else if (hasCatch) {
|
|
992
|
+
if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0);
|
|
993
|
+
} else {
|
|
994
|
+
if (!hasFinally) throw new Error("try statement without catch or finally");
|
|
995
|
+
if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc);
|
|
996
|
+
}
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
},
|
|
1000
|
+
abrupt: function abrupt(type, arg) {
|
|
1001
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
1002
|
+
var entry = this.tryEntries[i];
|
|
1003
|
+
if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) {
|
|
1004
|
+
var finallyEntry = entry;
|
|
1005
|
+
break;
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null);
|
|
1009
|
+
var record = finallyEntry ? finallyEntry.completion : {};
|
|
1010
|
+
return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record);
|
|
1011
|
+
},
|
|
1012
|
+
complete: function complete(record, afterLoc) {
|
|
1013
|
+
if ("throw" === record.type) throw record.arg;
|
|
1014
|
+
return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel;
|
|
1015
|
+
},
|
|
1016
|
+
finish: function finish(finallyLoc) {
|
|
1017
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
1018
|
+
var entry = this.tryEntries[i];
|
|
1019
|
+
if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel;
|
|
1020
|
+
}
|
|
1021
|
+
},
|
|
1022
|
+
"catch": function _catch(tryLoc) {
|
|
1023
|
+
for (var i = this.tryEntries.length - 1; i >= 0; --i) {
|
|
1024
|
+
var entry = this.tryEntries[i];
|
|
1025
|
+
if (entry.tryLoc === tryLoc) {
|
|
1026
|
+
var record = entry.completion;
|
|
1027
|
+
if ("throw" === record.type) {
|
|
1028
|
+
var thrown = record.arg;
|
|
1029
|
+
resetTryEntry(entry);
|
|
1030
|
+
}
|
|
1031
|
+
return thrown;
|
|
1032
|
+
}
|
|
1033
|
+
}
|
|
1034
|
+
throw new Error("illegal catch attempt");
|
|
1035
|
+
},
|
|
1036
|
+
delegateYield: function delegateYield(iterable, resultName, nextLoc) {
|
|
1037
|
+
return this.delegate = {
|
|
1038
|
+
iterator: values(iterable),
|
|
1039
|
+
resultName: resultName,
|
|
1040
|
+
nextLoc: nextLoc
|
|
1041
|
+
}, "next" === this.method && (this.arg = undefined), ContinueSentinel;
|
|
1042
|
+
}
|
|
1043
|
+
}, exports;
|
|
1044
|
+
}
|
|
729
1045
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js
|
|
730
1046
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
731
1047
|
try {
|
|
@@ -735,29 +1051,24 @@ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
|
735
1051
|
reject(error);
|
|
736
1052
|
return;
|
|
737
1053
|
}
|
|
738
|
-
|
|
739
1054
|
if (info.done) {
|
|
740
1055
|
resolve(value);
|
|
741
1056
|
} else {
|
|
742
1057
|
Promise.resolve(value).then(_next, _throw);
|
|
743
1058
|
}
|
|
744
1059
|
}
|
|
745
|
-
|
|
746
1060
|
function _asyncToGenerator(fn) {
|
|
747
1061
|
return function () {
|
|
748
1062
|
var self = this,
|
|
749
|
-
|
|
1063
|
+
args = arguments;
|
|
750
1064
|
return new Promise(function (resolve, reject) {
|
|
751
1065
|
var gen = fn.apply(self, args);
|
|
752
|
-
|
|
753
1066
|
function _next(value) {
|
|
754
1067
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
755
1068
|
}
|
|
756
|
-
|
|
757
1069
|
function _throw(err) {
|
|
758
1070
|
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
759
1071
|
}
|
|
760
|
-
|
|
761
1072
|
_next(undefined);
|
|
762
1073
|
});
|
|
763
1074
|
};
|
|
@@ -765,7 +1076,6 @@ function _asyncToGenerator(fn) {
|
|
|
765
1076
|
// CONCATENATED MODULE: ./src/packages/utils/index.js
|
|
766
1077
|
var getUrl = function getUrl(str) {
|
|
767
1078
|
var obj = {};
|
|
768
|
-
|
|
769
1079
|
if (str) {
|
|
770
1080
|
if (typeof str === 'string' && /^{/.test(str)) {
|
|
771
1081
|
obj = JSON.parse(str);
|
|
@@ -773,11 +1083,9 @@ var getUrl = function getUrl(str) {
|
|
|
773
1083
|
obj = str;
|
|
774
1084
|
}
|
|
775
1085
|
}
|
|
776
|
-
|
|
777
1086
|
if (obj.url) {
|
|
778
1087
|
obj.url = decodeURI(obj.url);
|
|
779
1088
|
}
|
|
780
|
-
|
|
781
1089
|
return obj;
|
|
782
1090
|
};
|
|
783
1091
|
/* harmony default export */ var utils = ({
|
|
@@ -785,6 +1093,7 @@ var getUrl = function getUrl(str) {
|
|
|
785
1093
|
});
|
|
786
1094
|
// 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/cfca/CfcaPdf.vue?vue&type=script&lang=js&
|
|
787
1095
|
|
|
1096
|
+
|
|
788
1097
|
//
|
|
789
1098
|
//
|
|
790
1099
|
//
|
|
@@ -893,6 +1202,7 @@ var getUrl = function getUrl(str) {
|
|
|
893
1202
|
//
|
|
894
1203
|
//
|
|
895
1204
|
//
|
|
1205
|
+
|
|
896
1206
|
// import config from {};
|
|
897
1207
|
|
|
898
1208
|
/* harmony default export */ var CfcaPdfvue_type_script_lang_js_ = ({
|
|
@@ -925,13 +1235,11 @@ var getUrl = function getUrl(str) {
|
|
|
925
1235
|
},
|
|
926
1236
|
data: function data() {
|
|
927
1237
|
var codebase = '';
|
|
928
|
-
|
|
929
1238
|
if (window.navigator.cpuClass === 'x86') {
|
|
930
1239
|
codebase = 'TrustSignPDFPlugin.ttd.x86.cab#version=3,2,1,4';
|
|
931
1240
|
} else {
|
|
932
1241
|
codebase = 'TrustSignPDFPlugin.ttd.x64.cab#version=3,2,1,4';
|
|
933
1242
|
}
|
|
934
|
-
|
|
935
1243
|
return {
|
|
936
1244
|
publicPath: 'https://wsp.totodi.com/cfca_plug/',
|
|
937
1245
|
// 为了获取public下的静态文件
|
|
@@ -951,19 +1259,16 @@ var getUrl = function getUrl(str) {
|
|
|
951
1259
|
},
|
|
952
1260
|
beforeRouteLeave: function beforeRouteLeave(to, from, next) {
|
|
953
1261
|
var _this = this;
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
1262
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
1263
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
957
1264
|
while (1) switch (_context.prev = _context.next) {
|
|
958
1265
|
case 0:
|
|
959
1266
|
// 子组件不会触发这个方法
|
|
960
1267
|
console.log('-cfca--beforeRouteLeave---');
|
|
961
1268
|
_context.next = 3;
|
|
962
1269
|
return _this.CloseFile();
|
|
963
|
-
|
|
964
1270
|
case 3:
|
|
965
1271
|
next();
|
|
966
|
-
|
|
967
1272
|
case 4:
|
|
968
1273
|
case "end":
|
|
969
1274
|
return _context.stop();
|
|
@@ -975,11 +1280,11 @@ var getUrl = function getUrl(str) {
|
|
|
975
1280
|
if (this.isIE) {
|
|
976
1281
|
this.OnLoad();
|
|
977
1282
|
console.log("cfca mounted =".concat(this.pdfurl));
|
|
978
|
-
|
|
979
1283
|
if (this.pdfurl) {
|
|
980
1284
|
// console.log('cfca mounted this.pdfurl==' + this.pdfurl)
|
|
981
1285
|
// 这里的 setTimeout 必须存在,否则 补充协议签署时,会看不到pdf
|
|
982
1286
|
// PDFCtrl 没有初始化完毕 ($nextTick 不行 必须用setTimeout)
|
|
1287
|
+
|
|
983
1288
|
// this.$nextTick(this.OpenFile)
|
|
984
1289
|
setTimeout(this.OpenFile, 100);
|
|
985
1290
|
}
|
|
@@ -990,18 +1295,15 @@ var getUrl = function getUrl(str) {
|
|
|
990
1295
|
if (this.PDFCtrl) {
|
|
991
1296
|
return false;
|
|
992
1297
|
}
|
|
993
|
-
|
|
994
1298
|
if (this.isIE) {
|
|
995
1299
|
// 使用refs 拿到的元素 不能ukey签章
|
|
996
1300
|
this.PDFCtrl = this.$refs.pdfCtrl;
|
|
997
|
-
|
|
998
1301
|
if (!this.PDFCtrl) {
|
|
999
1302
|
console.log('使用id 加载this.PDFCtrl ');
|
|
1000
1303
|
this.PDFCtrl = window["PDFCtrl".concat(this.idstr)];
|
|
1001
|
-
}
|
|
1304
|
+
}
|
|
1305
|
+
// console.log('加载this.PDFCtrl ', this.PDFCtrl)
|
|
1002
1306
|
// 将OnClickPoint事件放入 全局函数
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
1307
|
window.OnClickPoint = this.OnClickPoint;
|
|
1006
1308
|
} else {
|
|
1007
1309
|
// alert('请使用 IE 浏览器!')
|
|
@@ -1010,21 +1312,17 @@ var getUrl = function getUrl(str) {
|
|
|
1010
1312
|
},
|
|
1011
1313
|
OpenFile: function OpenFile(src) {
|
|
1012
1314
|
var _this2 = this;
|
|
1013
|
-
|
|
1014
1315
|
src = src || this.pdfurl;
|
|
1015
|
-
|
|
1016
1316
|
if (!src) {
|
|
1017
1317
|
alert('未发现pdf资源路径!');
|
|
1018
1318
|
return false;
|
|
1019
1319
|
}
|
|
1020
|
-
|
|
1021
1320
|
try {
|
|
1022
1321
|
console.log("OpenFile--src--".concat(src));
|
|
1023
1322
|
this.PDFCtrl.OpenWebFile(encodeURI(src));
|
|
1024
1323
|
this.PDFCtrl = this.$refs.pdfCtrl;
|
|
1025
1324
|
setTimeout(function () {
|
|
1026
1325
|
_this2.PDFCtrl.ZoomTo(-1);
|
|
1027
|
-
|
|
1028
1326
|
_this2.GetPageNo();
|
|
1029
1327
|
}, 100);
|
|
1030
1328
|
} catch (e) {
|
|
@@ -1043,11 +1341,11 @@ var getUrl = function getUrl(str) {
|
|
|
1043
1341
|
try {
|
|
1044
1342
|
if (this.pdfurl && this.PDFCtrl) {
|
|
1045
1343
|
console.log('CloseFile---');
|
|
1046
|
-
this.PDFCtrl.CloseFile();
|
|
1344
|
+
this.PDFCtrl.CloseFile();
|
|
1345
|
+
// await this.sleep(1000)
|
|
1047
1346
|
}
|
|
1048
1347
|
} catch (e) {
|
|
1049
1348
|
console.log('CloseFile error--', e);
|
|
1050
|
-
|
|
1051
1349
|
if (this.PDFCtrl && this.PDFCtrl.GetLastErrorDesc) {
|
|
1052
1350
|
var LastErrorDesc = this.PDFCtrl.GetLastErrorDesc();
|
|
1053
1351
|
alert(LastErrorDesc + e);
|
|
@@ -1088,7 +1386,6 @@ var getUrl = function getUrl(str) {
|
|
|
1088
1386
|
GoToPrevPage: function GoToPrevPage() {
|
|
1089
1387
|
this.active = 'left';
|
|
1090
1388
|
var me = this;
|
|
1091
|
-
|
|
1092
1389
|
try {
|
|
1093
1390
|
this.PDFCtrl.GoToPrevPage();
|
|
1094
1391
|
this.inputPage = '';
|
|
@@ -1105,7 +1402,6 @@ var getUrl = function getUrl(str) {
|
|
|
1105
1402
|
GoToNextPage: function GoToNextPage() {
|
|
1106
1403
|
this.active = 'right';
|
|
1107
1404
|
var me = this;
|
|
1108
|
-
|
|
1109
1405
|
try {
|
|
1110
1406
|
this.PDFCtrl.GoToNextPage();
|
|
1111
1407
|
this.inputPage = '';
|
|
@@ -1132,15 +1428,12 @@ var getUrl = function getUrl(str) {
|
|
|
1132
1428
|
},
|
|
1133
1429
|
GoToPage: function GoToPage() {
|
|
1134
1430
|
var me = this;
|
|
1135
|
-
|
|
1136
1431
|
try {
|
|
1137
1432
|
var pageNo = this.inputPage.replace(/\D/, '');
|
|
1138
|
-
|
|
1139
1433
|
if (pageNo === '') {
|
|
1140
1434
|
alert('请输入页码!');
|
|
1141
1435
|
return;
|
|
1142
1436
|
}
|
|
1143
|
-
|
|
1144
1437
|
this.PDFCtrl.GoToPage(pageNo);
|
|
1145
1438
|
setTimeout(function () {
|
|
1146
1439
|
me.GetPageNo();
|
|
@@ -1186,16 +1479,13 @@ var getUrl = function getUrl(str) {
|
|
|
1186
1479
|
// 把章合到pdf 中去, 拖动签使用的
|
|
1187
1480
|
OnClickPoint: function OnClickPoint(nPageNo, x, y) {
|
|
1188
1481
|
console.log('OnClickPoint--', "nPageNo=".concat(nPageNo, ", x=").concat(x, ", y=").concat(y));
|
|
1189
|
-
|
|
1190
1482
|
try {
|
|
1191
1483
|
console.log('image2=', this.image);
|
|
1192
|
-
|
|
1193
1484
|
if (this.image) {
|
|
1194
1485
|
this.PDFCtrl.SignFile_Image(nPageNo, x, y, this.image);
|
|
1195
1486
|
} else {
|
|
1196
1487
|
this.PDFCtrl.SignFile_KeyImage(nPageNo, x, y);
|
|
1197
1488
|
}
|
|
1198
|
-
|
|
1199
1489
|
this.$emit('cfca-point', nPageNo, x, y);
|
|
1200
1490
|
} catch (e) {
|
|
1201
1491
|
var LastErrorDesc = this.PDFCtrl.GetLastErrorDesc();
|
|
@@ -1205,10 +1495,9 @@ var getUrl = function getUrl(str) {
|
|
|
1205
1495
|
// 外部打开dialog 调用
|
|
1206
1496
|
openDialog: function openDialog(url) {
|
|
1207
1497
|
var _this3 = this;
|
|
1208
|
-
|
|
1209
1498
|
if (this.isIE) {
|
|
1210
|
-
console.log(' openDialog---');
|
|
1211
|
-
|
|
1499
|
+
console.log(' openDialog---');
|
|
1500
|
+
// 外部dialog 这里需要使用延时,否则pdf 还未初始化完毕
|
|
1212
1501
|
setTimeout(function () {
|
|
1213
1502
|
_this3.OpenFile(url);
|
|
1214
1503
|
}, 350);
|
|
@@ -1218,12 +1507,10 @@ var getUrl = function getUrl(str) {
|
|
|
1218
1507
|
var version = this.PDFCtrl.GetVersion();
|
|
1219
1508
|
console.log(version);
|
|
1220
1509
|
this.PDFCtrl.SetPKCS11Module('UyeePKCS11.Enterprise.dll|UlanPKCS11.Enterprise.dll|UlanPKCS11.dll|CFCA_UKEY_P11.dll');
|
|
1221
|
-
|
|
1222
1510
|
if (version === '3.2.1.7') {
|
|
1223
1511
|
// 获取版本号报错 (必须升级到3.2.1.7)
|
|
1224
1512
|
return this.PDFCtrl.ReadKeyImage();
|
|
1225
1513
|
}
|
|
1226
|
-
|
|
1227
1514
|
alert("\u5BA2\u6237\u7AEF\u7B7E\u7AE0\u63A7\u4EF6[v=".concat(version, "]\uFF0C\u9700\u8981\u5347\u7EA7\uFF01"));
|
|
1228
1515
|
},
|
|
1229
1516
|
GetCertInfo: function GetCertInfo(InfoTypeID) {
|
|
@@ -1238,28 +1525,22 @@ var getUrl = function getUrl(str) {
|
|
|
1238
1525
|
// '\n证书算法:\t\t' + PDFCtrl.GetSignCertInfo('CertAlgorithm') +
|
|
1239
1526
|
// '\n证书内容:\n' + PDFCtrl.GetSignCertInfo('CertContent');
|
|
1240
1527
|
InfoTypeID = InfoTypeID || 'SubjectDN';
|
|
1241
|
-
|
|
1242
1528
|
try {
|
|
1243
|
-
var InfoContent = this.PDFCtrl.GetSignCertInfo(InfoTypeID);
|
|
1244
|
-
|
|
1529
|
+
var InfoContent = this.PDFCtrl.GetSignCertInfo(InfoTypeID);
|
|
1530
|
+
// Opera浏览器,NPAPI函数执行结果为false时,不能触发异常,需要自己判断返回值。
|
|
1245
1531
|
if (!InfoContent) {
|
|
1246
1532
|
var errorDesc = this.PDFCtrl.GetLastErrorDesc();
|
|
1247
1533
|
alert(errorDesc);
|
|
1248
1534
|
return;
|
|
1249
1535
|
}
|
|
1250
|
-
|
|
1251
1536
|
return InfoContent;
|
|
1252
1537
|
} catch (e) {
|
|
1253
1538
|
console.log('GetCertInfo :', e);
|
|
1254
|
-
|
|
1255
1539
|
var _errorDesc = this.PDFCtrl.GetLastErrorDesc();
|
|
1256
|
-
|
|
1257
1540
|
alert(_errorDesc + e);
|
|
1258
1541
|
}
|
|
1259
1542
|
},
|
|
1260
|
-
|
|
1261
|
-
/* */
|
|
1262
|
-
selectSignCert: function selectSignCert(serialNo) {
|
|
1543
|
+
/* */selectSignCert: function selectSignCert(serialNo) {
|
|
1263
1544
|
// 使用PDFCtrl.GetSignCertInfo 会报错, 必须在选完证书才能调用
|
|
1264
1545
|
// let subjectDN1 = this.PDFCtrl.GetSignCertInfo('SubjectCN')
|
|
1265
1546
|
// let issuerDN1 = this.PDFCtrl.GetSignCertInfo('IssuerDN')
|
|
@@ -1270,14 +1551,12 @@ var getUrl = function getUrl(str) {
|
|
|
1270
1551
|
try {
|
|
1271
1552
|
// 序列号等数据,通过 验签工具包,或者 签章工具包,都可以获取
|
|
1272
1553
|
var subjectDN = ''; // this.PDFCtrl.GetSignCertInfo('SubjectCN')
|
|
1273
|
-
|
|
1274
1554
|
var issuerDN = 'CFCA ACS '; // this.PDFCtrl.GetSignCertInfo('IssuerDN')
|
|
1275
|
-
|
|
1276
1555
|
var certSN = serialNo || ''; // this.PDFCtrl.GetSignCertInfo('SerialNumber')
|
|
1277
1556
|
|
|
1278
1557
|
console.log('证书序列号,精确匹配', certSN);
|
|
1279
|
-
this.PDFCtrl.SelectSignCert(subjectDN, issuerDN, "".concat(certSN), '');
|
|
1280
|
-
|
|
1558
|
+
this.PDFCtrl.SelectSignCert(subjectDN, issuerDN, "".concat(certSN), '');
|
|
1559
|
+
// 添加一个设置服务器时间戳的方法
|
|
1281
1560
|
this.PDFCtrl.SetTimestampServer('http://210.74.41.195/timestamp');
|
|
1282
1561
|
return true;
|
|
1283
1562
|
} catch (e) {
|
|
@@ -1288,33 +1567,28 @@ var getUrl = function getUrl(str) {
|
|
|
1288
1567
|
},
|
|
1289
1568
|
UploadFile: function UploadFile() {
|
|
1290
1569
|
try {
|
|
1291
|
-
var response = this.PDFCtrl.UploadCurrentFile(this.action);
|
|
1292
|
-
|
|
1570
|
+
var response = this.PDFCtrl.UploadCurrentFile(this.action);
|
|
1571
|
+
// 这里是同步的, 这个方法会在返回数据后才继续往后走
|
|
1293
1572
|
response = JSON.parse(response);
|
|
1294
|
-
|
|
1295
1573
|
if (response.code === 0) {
|
|
1296
1574
|
return response.data.list[0];
|
|
1297
1575
|
}
|
|
1298
|
-
|
|
1299
1576
|
return '';
|
|
1300
1577
|
} catch (e) {
|
|
1301
1578
|
var LastErrorDesc = this.PDFCtrl.GetLastErrorDesc();
|
|
1302
1579
|
console.log('PDFCtrl 文件上传:', LastErrorDesc);
|
|
1303
1580
|
alert("PDFCtrl \u6587\u4EF6\u4E0A\u4F20\uFF1A".concat(LastErrorDesc).concat(e));
|
|
1304
1581
|
}
|
|
1305
|
-
|
|
1306
1582
|
return false;
|
|
1307
1583
|
},
|
|
1308
1584
|
signFileKeyImage: function signFileKeyImage(item, image) {
|
|
1309
1585
|
// 将印章内的图片合成到pdf中,此处使用PDFCtrl在 引用该组件的view内
|
|
1310
1586
|
var certSN = this.PDFCtrl.GetSignCertInfo('SerialNumber');
|
|
1311
1587
|
console.log("-signFileKeyImage--certSN-".concat(certSN), item);
|
|
1312
|
-
|
|
1313
1588
|
try {
|
|
1314
1589
|
// 套印是 已左下角为原定, ukey 签署是以左上角未原点,并且,图像是图像的中心点 140/1.5/2 = 47
|
|
1315
1590
|
var lacotionX = '';
|
|
1316
1591
|
var lacotionY = '';
|
|
1317
|
-
|
|
1318
1592
|
if (item.height) {
|
|
1319
1593
|
lacotionX = Number(item.X) + 47;
|
|
1320
1594
|
lacotionY = Number(item.height) - Number(item.Y) - 47;
|
|
@@ -1323,16 +1597,15 @@ var getUrl = function getUrl(str) {
|
|
|
1323
1597
|
lacotionX = Number(item.X) + 47;
|
|
1324
1598
|
lacotionY = Number(item.Y) - 47;
|
|
1325
1599
|
}
|
|
1326
|
-
|
|
1327
1600
|
console.log(" \u53C2\u6570 pageIndex = ".concat(item.pageIndex, " x = ").concat(lacotionX, " Y = ").concat(lacotionY));
|
|
1328
|
-
console.log("signFileKeyImage: image=".concat(image));
|
|
1601
|
+
console.log("signFileKeyImage: image=".concat(image));
|
|
1329
1602
|
|
|
1603
|
+
// this.PDFCtrl.SignFile_KeyImage(item.pageIndex, lacotionX, lacotionY)
|
|
1330
1604
|
if (image) {
|
|
1331
1605
|
this.PDFCtrl.SignFile_Image(item.pageIndex, lacotionX, lacotionY, image);
|
|
1332
1606
|
} else {
|
|
1333
1607
|
this.PDFCtrl.SignFile_KeyImage(item.pageIndex, lacotionX, lacotionY);
|
|
1334
1608
|
}
|
|
1335
|
-
|
|
1336
1609
|
console.log('SignFile_KeyImage 成功');
|
|
1337
1610
|
return true;
|
|
1338
1611
|
} catch (e) {
|
|
@@ -1346,16 +1619,13 @@ var getUrl = function getUrl(str) {
|
|
|
1346
1619
|
multipleSign7: function multipleSign7(labels, fileOss, serialNo, image, isOffset) {
|
|
1347
1620
|
for (var index = 0; index < labels.length; index++) {
|
|
1348
1621
|
var item = labels[index];
|
|
1349
|
-
|
|
1350
1622
|
if (typeof isOffset === 'number') {
|
|
1351
1623
|
// 印章统一向下偏移
|
|
1352
1624
|
item.Y -= isOffset;
|
|
1353
1625
|
}
|
|
1354
|
-
|
|
1355
1626
|
try {
|
|
1356
1627
|
var lacotionX = '';
|
|
1357
1628
|
var lacotionY = '';
|
|
1358
|
-
|
|
1359
1629
|
if (item.height) {
|
|
1360
1630
|
lacotionX = Number(item.X) + 47;
|
|
1361
1631
|
lacotionY = Number(item.height) - Number(item.Y) - 47;
|
|
@@ -1364,18 +1634,16 @@ var getUrl = function getUrl(str) {
|
|
|
1364
1634
|
lacotionX = Number(item.X) + 47;
|
|
1365
1635
|
lacotionY = Number(item.Y) - 47;
|
|
1366
1636
|
}
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1637
|
+
this.PDFCtrl.AddSignaturePosition(item.pageIndex, lacotionX, lacotionY);
|
|
1638
|
+
// console.log(`参数 pageIndex = ${ label.pageIndex} x = ${ lacotionX} Y = ${ lacotionY}`)
|
|
1370
1639
|
return true;
|
|
1371
1640
|
} catch (e) {
|
|
1372
1641
|
var LastErrorDesc = this.PDFCtrl.GetLastErrorDesc();
|
|
1373
1642
|
console.log(' multipleSign7', e);
|
|
1374
1643
|
alert(LastErrorDesc + e);
|
|
1375
1644
|
}
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
|
-
|
|
1645
|
+
}
|
|
1646
|
+
// 如果服务端图片 传进来就用,没有用ukey图片,无需单独再获取
|
|
1379
1647
|
if (image) {
|
|
1380
1648
|
this.PDFCtrl.SignFile_Image(image);
|
|
1381
1649
|
} else {
|
|
@@ -1387,29 +1655,27 @@ var getUrl = function getUrl(str) {
|
|
|
1387
1655
|
console.log('multipleSign 循环签的begin ', serialNo);
|
|
1388
1656
|
var serialNoBegin = this.PDFCtrl.GetSignCertInfo('SerialNumber');
|
|
1389
1657
|
console.log('serialNoBegin ', serialNoBegin);
|
|
1390
|
-
var result = '';
|
|
1658
|
+
var result = '';
|
|
1659
|
+
|
|
1660
|
+
// image 为 服务端印章图片
|
|
1391
1661
|
// 获取ukey 中的图片 (每次都要输密码,不利于一印多签)
|
|
1392
1662
|
// 3.2.1.5的插件没有获取图片的方法
|
|
1393
1663
|
|
|
1394
1664
|
for (var index = 0; index < labels.length; index++) {
|
|
1395
1665
|
var item = labels[index];
|
|
1396
1666
|
console.log('item=', item);
|
|
1397
|
-
|
|
1398
1667
|
if (typeof isOffset === 'number') {
|
|
1399
1668
|
// 印章统一向下偏移
|
|
1400
1669
|
item.Y -= isOffset;
|
|
1401
|
-
}
|
|
1402
|
-
|
|
1403
|
-
|
|
1670
|
+
}
|
|
1671
|
+
// this.$message.success(`签署 [${text}] 位于第${label.pageIndex}页的位置,[总共:${index + 1}/${labels.length}个位置]`)
|
|
1404
1672
|
if (index > 0) {
|
|
1405
1673
|
var serialNoAgain = this.PDFCtrl.GetSignCertInfo('SerialNumber');
|
|
1406
1674
|
console.log('本次获得的序列号serialNoAgain:', serialNoAgain);
|
|
1407
|
-
|
|
1408
1675
|
if (serialNoBegin !== serialNoAgain) {
|
|
1409
1676
|
alert('签署过程中,请不要更换ukey!');
|
|
1410
1677
|
return false;
|
|
1411
1678
|
}
|
|
1412
|
-
|
|
1413
1679
|
console.log('serialNo=', serialNo);
|
|
1414
1680
|
result = result && this.signFileKeyImage(item, image);
|
|
1415
1681
|
console.log("iterateSign \u7B7E\u7AE0\u7ED3\u679C".concat(index, "-------"), result);
|
|
@@ -1417,37 +1683,31 @@ var getUrl = function getUrl(str) {
|
|
|
1417
1683
|
console.log('第一个章,不用验签', index);
|
|
1418
1684
|
result = this.signFileKeyImage(item, image);
|
|
1419
1685
|
console.log('iterateSign 签章结果', result);
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
|
-
|
|
1686
|
+
}
|
|
1687
|
+
// 如果签署失败,直接跳出循环
|
|
1423
1688
|
if (!result) {
|
|
1424
1689
|
return false;
|
|
1425
1690
|
}
|
|
1426
1691
|
}
|
|
1427
|
-
|
|
1428
1692
|
console.log('multipleSign 签章的结果', result);
|
|
1429
1693
|
return result;
|
|
1430
1694
|
},
|
|
1431
1695
|
// 循环调用签章(一印多签) fileOss 没用,可以传空
|
|
1432
1696
|
multipleSign: function multipleSign(labels, fileOss, serialNo, image) {
|
|
1433
1697
|
var isOffset = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : 0;
|
|
1434
|
-
|
|
1435
1698
|
if (!image) {
|
|
1436
1699
|
this.PDFCtrl.SetPKCS11Module('UyeePKCS11.Enterprise.dll|UlanPKCS11.Enterprise.dll|UlanPKCS11.dll|CFCA_UKEY_P11.dll');
|
|
1437
1700
|
}
|
|
1438
|
-
|
|
1439
1701
|
if (this.PDFCtrl.AddSignaturePosition) {
|
|
1440
1702
|
console.log('新版插件');
|
|
1441
1703
|
return this.multipleSign7(labels, fileOss, serialNo, image, isOffset);
|
|
1442
1704
|
}
|
|
1443
|
-
|
|
1444
1705
|
return this.multipleSign5(labels, fileOss, serialNo, image, isOffset);
|
|
1445
1706
|
},
|
|
1446
1707
|
GetSignatureInfo: function GetSignatureInfo() {
|
|
1447
1708
|
// 查询文件上的,签章信息, 据此验证,一印多签,是否签署成功
|
|
1448
1709
|
var count = this.PDFCtrl.GetSignatureCount();
|
|
1449
1710
|
var signatureList = [];
|
|
1450
|
-
|
|
1451
1711
|
for (var i = 0; i < count; i++) {
|
|
1452
1712
|
var signature = this.PDFCtrl.VerifySignature(i);
|
|
1453
1713
|
var result = signature.GetSignCertInfo('SerialNumber');
|
|
@@ -1455,24 +1715,21 @@ var getUrl = function getUrl(str) {
|
|
|
1455
1715
|
SerialNumber: result
|
|
1456
1716
|
});
|
|
1457
1717
|
}
|
|
1458
|
-
|
|
1459
1718
|
return signatureList;
|
|
1460
1719
|
}
|
|
1461
1720
|
},
|
|
1462
1721
|
watch: {
|
|
1463
1722
|
pdfurl: function pdfurl(val, oldval) {
|
|
1464
1723
|
this.inputPage = 1;
|
|
1465
|
-
|
|
1466
1724
|
if (this.isIE && val) {
|
|
1467
1725
|
if (this.PDFCtrl) {
|
|
1468
1726
|
console.log('cfca watch pdfurl==');
|
|
1469
|
-
|
|
1470
1727
|
if (oldval) {
|
|
1471
1728
|
if (oldval !== val) {
|
|
1472
|
-
console.log('cfca watch oldval==', oldval);
|
|
1729
|
+
console.log('cfca watch oldval==', oldval);
|
|
1730
|
+
// 这里不先CloseFile, PDF控件没反应
|
|
1473
1731
|
// beforeRouterLeve 不会在子组件触发,
|
|
1474
1732
|
// 同一个页面被 这个判断打开第二个PDF时,关闭第一个 ,否则在签署多个文件时,切换文件,并未打开新文件
|
|
1475
|
-
|
|
1476
1733
|
this.CloseFile();
|
|
1477
1734
|
setTimeout(this.OpenFile, 100);
|
|
1478
1735
|
}
|
|
@@ -1613,12 +1870,12 @@ var component = normalizeComponent(
|
|
|
1613
1870
|
)
|
|
1614
1871
|
|
|
1615
1872
|
/* 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
|
|
1873
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"56cdd3d2-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=225ea8bc&scoped=true&
|
|
1874
|
+
var Ukeyvue_type_template_id_225ea8bc_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)}
|
|
1875
|
+
var Ukeyvue_type_template_id_225ea8bc_scoped_true_staticRenderFns = []
|
|
1619
1876
|
|
|
1620
1877
|
|
|
1621
|
-
// CONCATENATED MODULE: ./src/packages/ukey/Ukey.vue?vue&type=template&id=
|
|
1878
|
+
// CONCATENATED MODULE: ./src/packages/ukey/Ukey.vue?vue&type=template&id=225ea8bc&scoped=true&
|
|
1622
1879
|
|
|
1623
1880
|
// 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&
|
|
1624
1881
|
//
|
|
@@ -1643,16 +1900,15 @@ var Ukeyvue_type_template_id_2976751a_scoped_true_staticRenderFns = []
|
|
|
1643
1900
|
* 下面是 签章 的公用方法,通过mixin 使用
|
|
1644
1901
|
*
|
|
1645
1902
|
* */
|
|
1903
|
+
|
|
1646
1904
|
// 消息签名, 生成Base64 编码的 PKCS#7 签名结果
|
|
1647
1905
|
function Ukeyvue_type_script_lang_js_SignOnClick() {
|
|
1648
1906
|
var errorDesc = '';
|
|
1649
1907
|
this.sourceData = "".concat(new Date().getTime());
|
|
1650
|
-
|
|
1651
1908
|
try {
|
|
1652
1909
|
var source = this.sourceData;
|
|
1653
1910
|
var signature = '';
|
|
1654
1911
|
var signType = 'Attach'; // 签名类型
|
|
1655
|
-
|
|
1656
1912
|
var selectedAlg = 'SHA-1'; // 哈希算法(仅对RSA算法有效,SM2默认使用SM3哈希算法):
|
|
1657
1913
|
|
|
1658
1914
|
if (signType === 'Attach') {
|
|
@@ -1665,13 +1921,11 @@ function Ukeyvue_type_script_lang_js_SignOnClick() {
|
|
|
1665
1921
|
// PKCS#1
|
|
1666
1922
|
signature = this.CryptoAgent.SignMsgPKCS1(source, selectedAlg);
|
|
1667
1923
|
}
|
|
1668
|
-
|
|
1669
1924
|
if (!signature) {
|
|
1670
1925
|
errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
1671
1926
|
alert(errorDesc);
|
|
1672
1927
|
return '';
|
|
1673
1928
|
}
|
|
1674
|
-
|
|
1675
1929
|
console.log('SignOnClick 签名结果:', signature);
|
|
1676
1930
|
return signature;
|
|
1677
1931
|
} catch (e) {
|
|
@@ -1679,16 +1933,13 @@ function Ukeyvue_type_script_lang_js_SignOnClick() {
|
|
|
1679
1933
|
errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
1680
1934
|
alert(errorDesc);
|
|
1681
1935
|
}
|
|
1682
|
-
|
|
1683
1936
|
return '';
|
|
1684
1937
|
}
|
|
1685
|
-
|
|
1686
1938
|
/* harmony default export */ var Ukeyvue_type_script_lang_js_ = ({
|
|
1687
1939
|
name: 'ukey',
|
|
1688
1940
|
data: function data() {
|
|
1689
1941
|
var codebase = '';
|
|
1690
1942
|
var classid = '';
|
|
1691
|
-
|
|
1692
1943
|
if (window.navigator.cpuClass === 'x86') {
|
|
1693
1944
|
codebase = 'ukey/Cryptokit/x86/CryptoKit.ToToDi.x86.cab';
|
|
1694
1945
|
classid = 'clsid:5635B01D-C661-4ACE-B997-EECFA63BD388';
|
|
@@ -1696,7 +1947,6 @@ function Ukeyvue_type_script_lang_js_SignOnClick() {
|
|
|
1696
1947
|
codebase = 'ukey/Cryptokit/x64/CryptoKit.ToToDi.x64.cab';
|
|
1697
1948
|
classid = 'clsid:63F9892E-D854-476E-A839-C8BA79254EC1';
|
|
1698
1949
|
}
|
|
1699
|
-
|
|
1700
1950
|
return {
|
|
1701
1951
|
isIE: navigator.appName.indexOf('Internet') >= 0 || navigator.appVersion.indexOf('Trident') >= 0,
|
|
1702
1952
|
publicPath: 'https://wsp.totodi.com/jz/',
|
|
@@ -1724,16 +1974,13 @@ function Ukeyvue_type_script_lang_js_SignOnClick() {
|
|
|
1724
1974
|
if (this.CryptoAgent) {
|
|
1725
1975
|
return false;
|
|
1726
1976
|
}
|
|
1727
|
-
|
|
1728
1977
|
if (this.isIE) {
|
|
1729
1978
|
// 使用refs 拿到的元素 不能ukey签章
|
|
1730
1979
|
// this.CryptoAgent = document.getElementById('CryptoAgent')
|
|
1731
1980
|
this.CryptoAgent = this.$refs.CryptoAgent;
|
|
1732
|
-
|
|
1733
1981
|
if (!this.CryptoAgent) {
|
|
1734
1982
|
alert('验签插件加载失败!');
|
|
1735
1983
|
}
|
|
1736
|
-
|
|
1737
1984
|
console.log('加载this.CryptoAgent ', this.CryptoAgent);
|
|
1738
1985
|
} else {
|
|
1739
1986
|
// alert('请使用IE浏览器验签!')
|
|
@@ -1746,28 +1993,24 @@ function Ukeyvue_type_script_lang_js_SignOnClick() {
|
|
|
1746
1993
|
if (!this.isIE) {
|
|
1747
1994
|
alert('请使用IE浏览器!');
|
|
1748
1995
|
}
|
|
1749
|
-
|
|
1750
1996
|
try {
|
|
1751
1997
|
var subjectDNFilter = '';
|
|
1752
|
-
var issuerDNFilter = 'CFCA ACS ';
|
|
1753
|
-
|
|
1998
|
+
var issuerDNFilter = 'CFCA ACS ';
|
|
1999
|
+
// 此处获取SerialNumber 会报错
|
|
1754
2000
|
var serialNumFilter = serialNo; // this.GetSignCertInfoUkey('SerialNumber');
|
|
1755
2001
|
|
|
1756
2002
|
if (!serialNumFilter) {
|
|
1757
2003
|
console.log(' Ukye, 无序列号筛选证书, serialNo 非必传 ');
|
|
1758
2004
|
}
|
|
1759
|
-
|
|
1760
2005
|
var bSelectCertResult = '';
|
|
1761
2006
|
var errorDesc = '';
|
|
1762
|
-
var csp = 'Uyee CSP v6.0 (Enterprise)||CFCA FOR UKEY CSP v1.1.0';
|
|
1763
|
-
|
|
2007
|
+
var csp = 'Uyee CSP v6.0 (Enterprise)||CFCA FOR UKEY CSP v1.1.0';
|
|
2008
|
+
// SelectCertificate 通过传入的字符串作为 DN 的筛选条件,选择出符合 DN 条件的带私钥的SM2/RSA 签名证书。如果筛选字符串为空,则对相应条件不进行筛选
|
|
1764
2009
|
bSelectCertResult = this.CryptoAgent.SelectCertificate(subjectDNFilter, issuerDNFilter, serialNumFilter, csp);
|
|
1765
|
-
|
|
1766
2010
|
if (!bSelectCertResult) {
|
|
1767
2011
|
errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
1768
2012
|
alert(errorDesc);
|
|
1769
2013
|
}
|
|
1770
|
-
|
|
1771
2014
|
return bSelectCertResult;
|
|
1772
2015
|
} catch (e) {
|
|
1773
2016
|
console.log('SelectCertificateOnClick catch', e);
|
|
@@ -1780,22 +2023,18 @@ function Ukeyvue_type_script_lang_js_SignOnClick() {
|
|
|
1780
2023
|
// 有时候获取不到数据
|
|
1781
2024
|
InfoTypeID = InfoTypeID || 'SubjectDN';
|
|
1782
2025
|
console.log('-Ukey-GetSignCertInfoUkey:InfoTypeID ', InfoTypeID);
|
|
1783
|
-
|
|
1784
2026
|
try {
|
|
1785
|
-
var InfoContent = this.CryptoAgent.GetSignCertInfo(InfoTypeID);
|
|
1786
|
-
|
|
2027
|
+
var InfoContent = this.CryptoAgent.GetSignCertInfo(InfoTypeID);
|
|
2028
|
+
// Opera浏览器,NPAPI函数执行结果为false时,不能触发异常,需要自己判断返回值。
|
|
1787
2029
|
if (!InfoContent) {
|
|
1788
2030
|
var errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
1789
2031
|
alert(errorDesc);
|
|
1790
2032
|
return;
|
|
1791
2033
|
}
|
|
1792
|
-
|
|
1793
2034
|
return InfoContent;
|
|
1794
2035
|
} catch (e) {
|
|
1795
2036
|
console.log('GetSignCertInfoUkey-Ukey: ', e);
|
|
1796
|
-
|
|
1797
2037
|
var _errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
1798
|
-
|
|
1799
2038
|
alert(_errorDesc);
|
|
1800
2039
|
}
|
|
1801
2040
|
}
|
|
@@ -1803,8 +2042,8 @@ function Ukeyvue_type_script_lang_js_SignOnClick() {
|
|
|
1803
2042
|
});
|
|
1804
2043
|
// CONCATENATED MODULE: ./src/packages/ukey/Ukey.vue?vue&type=script&lang=js&
|
|
1805
2044
|
/* harmony default export */ var ukey_Ukeyvue_type_script_lang_js_ = (Ukeyvue_type_script_lang_js_);
|
|
1806
|
-
// EXTERNAL MODULE: ./src/packages/ukey/Ukey.vue?vue&type=style&index=0&id=
|
|
1807
|
-
var
|
|
2045
|
+
// EXTERNAL MODULE: ./src/packages/ukey/Ukey.vue?vue&type=style&index=0&id=225ea8bc&lang=less&scoped=true&
|
|
2046
|
+
var Ukeyvue_type_style_index_0_id_225ea8bc_lang_less_scoped_true_ = __webpack_require__("1ad4");
|
|
1808
2047
|
|
|
1809
2048
|
// CONCATENATED MODULE: ./src/packages/ukey/Ukey.vue
|
|
1810
2049
|
|
|
@@ -1817,25 +2056,26 @@ var Ukeyvue_type_style_index_0_id_2976751a_lang_less_scoped_true_ = __webpack_re
|
|
|
1817
2056
|
|
|
1818
2057
|
var Ukey_component = normalizeComponent(
|
|
1819
2058
|
ukey_Ukeyvue_type_script_lang_js_,
|
|
1820
|
-
|
|
1821
|
-
|
|
2059
|
+
Ukeyvue_type_template_id_225ea8bc_scoped_true_render,
|
|
2060
|
+
Ukeyvue_type_template_id_225ea8bc_scoped_true_staticRenderFns,
|
|
1822
2061
|
false,
|
|
1823
2062
|
null,
|
|
1824
|
-
"
|
|
2063
|
+
"225ea8bc",
|
|
1825
2064
|
null
|
|
1826
2065
|
|
|
1827
2066
|
)
|
|
1828
2067
|
|
|
1829
2068
|
/* harmony default export */ var Ukey = (Ukey_component.exports);
|
|
1830
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1831
|
-
var
|
|
1832
|
-
var
|
|
2069
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"56cdd3d2-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=92ccc742&scoped=true&
|
|
2070
|
+
var WzhSignvue_type_template_id_92ccc742_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"}})])}
|
|
2071
|
+
var WzhSignvue_type_template_id_92ccc742_scoped_true_staticRenderFns = []
|
|
1833
2072
|
|
|
1834
2073
|
|
|
1835
|
-
// CONCATENATED MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=template&id=
|
|
2074
|
+
// CONCATENATED MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=template&id=92ccc742&scoped=true&
|
|
1836
2075
|
|
|
1837
2076
|
// 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&
|
|
1838
2077
|
|
|
2078
|
+
|
|
1839
2079
|
//
|
|
1840
2080
|
//
|
|
1841
2081
|
//
|
|
@@ -1843,24 +2083,28 @@ var WzhSignvue_type_template_id_339a252e_scoped_true_staticRenderFns = []
|
|
|
1843
2083
|
//
|
|
1844
2084
|
//
|
|
1845
2085
|
//
|
|
1846
|
-
|
|
2086
|
+
|
|
1847
2087
|
|
|
1848
2088
|
/* harmony default export */ var WzhSignvue_type_script_lang_js_ = ({
|
|
1849
2089
|
name: 'wzh-sing',
|
|
1850
2090
|
data: function data() {
|
|
1851
2091
|
var codebase = '';
|
|
1852
2092
|
var classid = '';
|
|
1853
|
-
|
|
1854
2093
|
if (window.navigator.cpuClass === 'x86') {
|
|
1855
2094
|
codebase = 'wzh/CryptoKit.Paperless.x86.cab';
|
|
1856
|
-
classid = 'clsid:B64B695B-348D-400D-8D58-9AAB1DA5851A';
|
|
2095
|
+
classid = 'clsid:B64B695B-348D-400D-8D58-9AAB1DA5851A';
|
|
2096
|
+
// classid = '5635B01D-C661-4ACE-B997-EECFA63BD388'
|
|
1857
2097
|
} else {
|
|
1858
2098
|
codebase = 'wzh/CryptoKit.Paperless.x64.cab';
|
|
1859
|
-
classid = 'clsid:8BF7E683-630E-4B59-9E61-C996B671EBDF';
|
|
2099
|
+
classid = 'clsid:8BF7E683-630E-4B59-9E61-C996B671EBDF';
|
|
2100
|
+
// classid = 'clsid:63F9892E-D854-476E-A839-C8BA79254EC1'
|
|
1860
2101
|
}
|
|
1861
2102
|
|
|
2103
|
+
var _navigator = navigator,
|
|
2104
|
+
userAgent = _navigator.userAgent;
|
|
2105
|
+
var isIE = userAgent.indexOf('Trident') >= 0;
|
|
1862
2106
|
return {
|
|
1863
|
-
isIE:
|
|
2107
|
+
isIE: isIE,
|
|
1864
2108
|
publicPath: 'https://wsp.totodi.com/jz/',
|
|
1865
2109
|
// 为了获取public下的静态文件
|
|
1866
2110
|
codebase: codebase,
|
|
@@ -1888,28 +2132,21 @@ var WzhSignvue_type_template_id_339a252e_scoped_true_staticRenderFns = []
|
|
|
1888
2132
|
onLoad: function onLoad() {
|
|
1889
2133
|
if (this.CryptoAgent) {
|
|
1890
2134
|
return false;
|
|
1891
|
-
}
|
|
1892
|
-
// this.CryptoAgent = document.getElementById('CryptoAgent')
|
|
1893
|
-
|
|
1894
|
-
|
|
2135
|
+
}
|
|
1895
2136
|
this.CryptoAgent = this.$refs.CryptoAgent;
|
|
1896
|
-
|
|
1897
2137
|
if (!this.CryptoAgent) {
|
|
1898
2138
|
alert('验签插件加载失败!');
|
|
1899
2139
|
}
|
|
1900
|
-
|
|
1901
2140
|
console.log('加载this.CryptoAgent ', this.CryptoAgent);
|
|
1902
2141
|
},
|
|
1903
2142
|
getUkeyImage: function getUkeyImage() {
|
|
1904
2143
|
var image = '';
|
|
1905
|
-
|
|
1906
2144
|
try {
|
|
1907
2145
|
image = this.CryptoAgent.GetSealImage('CFCA_UKEY_P11.dll');
|
|
1908
2146
|
console.log('CFCA_UKEY_P11', image);
|
|
1909
2147
|
} catch (e) {
|
|
1910
2148
|
console.log('CFCA_UKEY_P11 error', e);
|
|
1911
2149
|
}
|
|
1912
|
-
|
|
1913
2150
|
if (!image) {
|
|
1914
2151
|
try {
|
|
1915
2152
|
image = this.CryptoAgent.GetSealImage('UyeePKCS11.Enterprise.dll');
|
|
@@ -1918,7 +2155,6 @@ var WzhSignvue_type_template_id_339a252e_scoped_true_staticRenderFns = []
|
|
|
1918
2155
|
console.log('UyeePKCS11 error', e);
|
|
1919
2156
|
}
|
|
1920
2157
|
}
|
|
1921
|
-
|
|
1922
2158
|
if (!image) {
|
|
1923
2159
|
try {
|
|
1924
2160
|
image = this.CryptoAgent.GetSealImage('UlanPKCS11.Enterprise.dll');
|
|
@@ -1927,7 +2163,6 @@ var WzhSignvue_type_template_id_339a252e_scoped_true_staticRenderFns = []
|
|
|
1927
2163
|
console.log('UlanPKCS11.Enterprise error', e);
|
|
1928
2164
|
}
|
|
1929
2165
|
}
|
|
1930
|
-
|
|
1931
2166
|
if (!image) {
|
|
1932
2167
|
try {
|
|
1933
2168
|
image = this.CryptoAgent.GetSealImage('UlanPKCS11.dll');
|
|
@@ -1936,22 +2171,18 @@ var WzhSignvue_type_template_id_339a252e_scoped_true_staticRenderFns = []
|
|
|
1936
2171
|
console.log('error', e);
|
|
1937
2172
|
}
|
|
1938
2173
|
}
|
|
1939
|
-
|
|
1940
2174
|
if (!image) {
|
|
1941
2175
|
alert('读取Ukey印章图片失败!');
|
|
1942
2176
|
}
|
|
1943
|
-
|
|
1944
2177
|
return image;
|
|
1945
2178
|
},
|
|
1946
2179
|
// 消息签名, 生成Base64 编码的 PKCS#7 签名结果
|
|
1947
2180
|
SignOnClick: function SignOnClick() {
|
|
1948
2181
|
this.sourceData = "".concat(new Date().getTime());
|
|
1949
|
-
|
|
1950
2182
|
try {
|
|
1951
2183
|
var source = this.sourceData;
|
|
1952
2184
|
var signature = '';
|
|
1953
2185
|
var signType = 'Attach'; // 签名类型
|
|
1954
|
-
|
|
1955
2186
|
var selectedAlg = 'SHA-1'; // 哈希算法(仅对RSA算法有效,SM2默认使用SM3哈希算法):
|
|
1956
2187
|
|
|
1957
2188
|
if (signType === 'Attach') {
|
|
@@ -1964,33 +2195,28 @@ var WzhSignvue_type_template_id_339a252e_scoped_true_staticRenderFns = []
|
|
|
1964
2195
|
// PKCS#1
|
|
1965
2196
|
signature = this.CryptoAgent.SignMsgPKCS1(source, selectedAlg);
|
|
1966
2197
|
}
|
|
1967
|
-
|
|
1968
2198
|
if (!signature) {
|
|
1969
2199
|
this.ShowErrorInfo();
|
|
1970
2200
|
return '';
|
|
1971
2201
|
}
|
|
1972
|
-
|
|
1973
2202
|
console.log('SignOnClick 签名结果:', signature);
|
|
1974
2203
|
return signature;
|
|
1975
2204
|
} catch (e) {
|
|
1976
2205
|
console.log('SignOnClick error=', e);
|
|
1977
2206
|
this.ShowErrorInfo();
|
|
1978
2207
|
}
|
|
1979
|
-
|
|
1980
2208
|
return '';
|
|
1981
2209
|
},
|
|
1982
2210
|
GetCertInfoOnClick: function GetCertInfoOnClick(InfoTypeID) {
|
|
1983
2211
|
InfoTypeID = InfoTypeID || 'SubjectDN';
|
|
1984
2212
|
console.log('GetCertInfoOnClick:InfoTypeID ', InfoTypeID);
|
|
1985
|
-
|
|
1986
2213
|
try {
|
|
1987
|
-
var InfoContent = this.CryptoAgent.GetSignCertInfo(InfoTypeID);
|
|
1988
|
-
|
|
2214
|
+
var InfoContent = this.CryptoAgent.GetSignCertInfo(InfoTypeID);
|
|
2215
|
+
// Opera浏览器,NPAPI函数执行结果为false时,不能触发异常,需要自己判断返回值。
|
|
1989
2216
|
if (!InfoContent) {
|
|
1990
2217
|
this.ShowErrorInfo();
|
|
1991
2218
|
return false;
|
|
1992
2219
|
}
|
|
1993
|
-
|
|
1994
2220
|
return InfoContent;
|
|
1995
2221
|
} catch (e) {
|
|
1996
2222
|
console.log('GetCertInfoOnClick-WzhSign: ', e);
|
|
@@ -1999,30 +2225,27 @@ var WzhSignvue_type_template_id_339a252e_scoped_true_staticRenderFns = []
|
|
|
1999
2225
|
},
|
|
2000
2226
|
SelectCertificateOnClick: function SelectCertificateOnClick() {
|
|
2001
2227
|
var serialNo = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
2002
|
-
|
|
2003
2228
|
// if (!this.isIE) {
|
|
2004
2229
|
// alert('请使用IE浏览器!')
|
|
2005
2230
|
// }
|
|
2006
2231
|
try {
|
|
2007
2232
|
var subjectDNFilter = '';
|
|
2008
2233
|
var issuerDNFilter = 'CFCA ACS'; // CFCA ACS OCA31 ,CFCA ACS OCA32, CFCA ACS TEST OCA31
|
|
2009
|
-
|
|
2010
2234
|
var serialNumFilter = serialNo;
|
|
2011
2235
|
var bstrSM2CSPNameList = 'Uyee CSP v6.0 (Enterprise)||CFCA FOR UKEY CSP v1.1.0';
|
|
2012
2236
|
var bSelectCertResult = '';
|
|
2013
2237
|
console.log('无纸化 选证书 selectSignCert, serialNo(非传)=', serialNo);
|
|
2014
|
-
bSelectCertResult = this.CryptoAgent.SelectCertificate(subjectDNFilter, issuerDNFilter, serialNumFilter, bstrSM2CSPNameList);
|
|
2015
|
-
|
|
2238
|
+
bSelectCertResult = this.CryptoAgent.SelectCertificate(subjectDNFilter, issuerDNFilter, serialNumFilter, bstrSM2CSPNameList);
|
|
2239
|
+
// Opera浏览器,NPAPI函数执行结果为false时,不能触发异常,需要自己判断返回值。
|
|
2016
2240
|
if (!bSelectCertResult) {
|
|
2017
2241
|
console.log('wzh SelectCertResult 不存在');
|
|
2018
2242
|
this.ShowErrorInfo();
|
|
2019
2243
|
return false;
|
|
2020
2244
|
}
|
|
2021
|
-
|
|
2022
2245
|
console.log('wzh SelectCertResult', bSelectCertResult);
|
|
2023
2246
|
return true;
|
|
2024
2247
|
} catch (e) {
|
|
2025
|
-
console.log('wzh SelectCertResult
|
|
2248
|
+
console.log('wzh SelectCertResult error: ', e);
|
|
2026
2249
|
this.ShowErrorInfo(e);
|
|
2027
2250
|
return false;
|
|
2028
2251
|
}
|
|
@@ -2030,12 +2253,10 @@ var WzhSignvue_type_template_id_339a252e_scoped_true_staticRenderFns = []
|
|
|
2030
2253
|
getHashValue: function getHashValue(label, fileOss, sealImage) {
|
|
2031
2254
|
var CertContent = this.CryptoAgent.GetSignCertInfo('CertContent');
|
|
2032
2255
|
this.$emit('getImg', sealImage);
|
|
2033
|
-
|
|
2034
2256
|
if (!CertContent) {
|
|
2035
2257
|
alert('获取证书公钥失败!');
|
|
2036
2258
|
return Promise.reject();
|
|
2037
2259
|
}
|
|
2038
|
-
|
|
2039
2260
|
if (fileOss.bucketName && fileOss.objectKey) {
|
|
2040
2261
|
return this.api.getSignHash({
|
|
2041
2262
|
jsonData: {
|
|
@@ -2059,7 +2280,6 @@ var WzhSignvue_type_template_id_339a252e_scoped_true_staticRenderFns = []
|
|
|
2059
2280
|
pageY: Number(label.Y),
|
|
2060
2281
|
// 签章页签章位置Y坐标
|
|
2061
2282
|
certBase64: CertContent // 证书公钥
|
|
2062
|
-
|
|
2063
2283
|
}
|
|
2064
2284
|
}
|
|
2065
2285
|
});
|
|
@@ -2070,63 +2290,49 @@ var WzhSignvue_type_template_id_339a252e_scoped_true_staticRenderFns = []
|
|
|
2070
2290
|
},
|
|
2071
2291
|
getSignHashValue: function getSignHashValue(item, fileItem, image) {
|
|
2072
2292
|
var _this = this;
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
return regeneratorRuntime.wrap(function _callee$(_context) {
|
|
2293
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
2294
|
+
var sourceHashData, _yield$_this$getHashV, code, data, signature;
|
|
2295
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2078
2296
|
while (1) switch (_context.prev = _context.next) {
|
|
2079
2297
|
case 0:
|
|
2080
2298
|
_context.prev = 0;
|
|
2081
2299
|
sourceHashData = '';
|
|
2082
2300
|
_context.next = 4;
|
|
2083
2301
|
return _this.getHashValue(item, fileItem, image);
|
|
2084
|
-
|
|
2085
2302
|
case 4:
|
|
2086
|
-
_yield$_this$
|
|
2087
|
-
code = _yield$_this$
|
|
2088
|
-
data = _yield$_this$
|
|
2089
|
-
|
|
2303
|
+
_yield$_this$getHashV = _context.sent;
|
|
2304
|
+
code = _yield$_this$getHashV.code;
|
|
2305
|
+
data = _yield$_this$getHashV.data;
|
|
2090
2306
|
if (code === 0) {
|
|
2091
2307
|
if ("".concat(data.bean.code) === '200') {
|
|
2092
2308
|
sourceHashData = data.bean.pdfHash;
|
|
2093
2309
|
}
|
|
2094
2310
|
}
|
|
2095
|
-
|
|
2096
2311
|
if (sourceHashData) {
|
|
2097
2312
|
_context.next = 11;
|
|
2098
2313
|
break;
|
|
2099
2314
|
}
|
|
2100
|
-
|
|
2101
2315
|
alert("CFCA\u8BA1\u7B97HASH\u503C\u5931\u8D25\uFF01( ".concat(data.bean.msg || '', ")"));
|
|
2102
2316
|
return _context.abrupt("return", false);
|
|
2103
|
-
|
|
2104
2317
|
case 11:
|
|
2105
2318
|
// 将原文Hash值的Base64编码解码后,对其进行PKCS#7分离式签名
|
|
2106
2319
|
signature = _this.CryptoAgent.SignHashMsgPKCS7Detached(sourceHashData, 'SHA-1');
|
|
2107
|
-
|
|
2108
2320
|
if (signature) {
|
|
2109
2321
|
_context.next = 15;
|
|
2110
2322
|
break;
|
|
2111
2323
|
}
|
|
2112
|
-
|
|
2113
2324
|
_this.ShowErrorInfo();
|
|
2114
|
-
|
|
2115
2325
|
return _context.abrupt("return", false);
|
|
2116
|
-
|
|
2117
2326
|
case 15:
|
|
2118
2327
|
return _context.abrupt("return", {
|
|
2119
2328
|
signature: signature,
|
|
2120
2329
|
id: data.bean.id
|
|
2121
2330
|
});
|
|
2122
|
-
|
|
2123
2331
|
case 18:
|
|
2124
2332
|
_context.prev = 18;
|
|
2125
2333
|
_context.t0 = _context["catch"](0);
|
|
2126
2334
|
console.log('getSignHashValue', _context.t0);
|
|
2127
|
-
|
|
2128
2335
|
_this.ShowErrorInfo(_context.t0);
|
|
2129
|
-
|
|
2130
2336
|
case 22:
|
|
2131
2337
|
case "end":
|
|
2132
2338
|
return _context.stop();
|
|
@@ -2136,25 +2342,20 @@ var WzhSignvue_type_template_id_339a252e_scoped_true_staticRenderFns = []
|
|
|
2136
2342
|
},
|
|
2137
2343
|
signFileKeyImage: function signFileKeyImage(item, fileItem, image) {
|
|
2138
2344
|
var _this2 = this;
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
return regeneratorRuntime.wrap(function _callee2$(_context2) {
|
|
2345
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
2346
|
+
var res, errorMsg, _yield$_this2$api$mer, data, code;
|
|
2347
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2144
2348
|
while (1) switch (_context2.prev = _context2.next) {
|
|
2145
2349
|
case 0:
|
|
2146
2350
|
_context2.next = 2;
|
|
2147
2351
|
return _this2.getSignHashValue(item, fileItem, image);
|
|
2148
|
-
|
|
2149
2352
|
case 2:
|
|
2150
2353
|
res = _context2.sent;
|
|
2151
2354
|
errorMsg = '计算Hash 失败!';
|
|
2152
|
-
|
|
2153
2355
|
if (!res) {
|
|
2154
2356
|
_context2.next = 17;
|
|
2155
2357
|
break;
|
|
2156
2358
|
}
|
|
2157
|
-
|
|
2158
2359
|
_context2.next = 7;
|
|
2159
2360
|
return _this2.api.mergeHash({
|
|
2160
2361
|
jsonData: {
|
|
@@ -2164,41 +2365,31 @@ var WzhSignvue_type_template_id_339a252e_scoped_true_staticRenderFns = []
|
|
|
2164
2365
|
sigString: res.signature,
|
|
2165
2366
|
// 签名后的hash值
|
|
2166
2367
|
id: res.id // 计算接口返回的ID
|
|
2167
|
-
|
|
2168
2368
|
}
|
|
2169
2369
|
}
|
|
2170
2370
|
});
|
|
2171
|
-
|
|
2172
2371
|
case 7:
|
|
2173
|
-
_yield$_this2$api$
|
|
2174
|
-
data = _yield$_this2$api$
|
|
2175
|
-
code = _yield$_this2$api$
|
|
2176
|
-
|
|
2372
|
+
_yield$_this2$api$mer = _context2.sent;
|
|
2373
|
+
data = _yield$_this2$api$mer.data;
|
|
2374
|
+
code = _yield$_this2$api$mer.code;
|
|
2177
2375
|
if (!(code === 0)) {
|
|
2178
2376
|
_context2.next = 16;
|
|
2179
2377
|
break;
|
|
2180
2378
|
}
|
|
2181
|
-
|
|
2182
2379
|
if (!data.bean.url) {
|
|
2183
2380
|
_context2.next = 13;
|
|
2184
2381
|
break;
|
|
2185
2382
|
}
|
|
2186
|
-
|
|
2187
2383
|
return _context2.abrupt("return", data.bean);
|
|
2188
|
-
|
|
2189
2384
|
case 13:
|
|
2190
2385
|
errorMsg = data.bean.msg;
|
|
2191
2386
|
_context2.next = 17;
|
|
2192
2387
|
break;
|
|
2193
|
-
|
|
2194
2388
|
case 16:
|
|
2195
2389
|
errorMsg = data.msg;
|
|
2196
|
-
|
|
2197
2390
|
case 17:
|
|
2198
2391
|
_this2.$message.error(errorMsg || 'error计算Hash失败!');
|
|
2199
|
-
|
|
2200
2392
|
return _context2.abrupt("return", false);
|
|
2201
|
-
|
|
2202
2393
|
case 19:
|
|
2203
2394
|
case "end":
|
|
2204
2395
|
return _context2.stop();
|
|
@@ -2210,120 +2401,97 @@ var WzhSignvue_type_template_id_339a252e_scoped_true_staticRenderFns = []
|
|
|
2210
2401
|
// isOffset: 修正印章的位置,印章加时间后需要向下修正
|
|
2211
2402
|
multipleSign: function multipleSign(labels, fileOss, serialNo, image) {
|
|
2212
2403
|
var _arguments = arguments,
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
2404
|
+
_this3 = this;
|
|
2405
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
2216
2406
|
var isOffset, serialNoBegin, result, index, item, serialNoAgain;
|
|
2217
|
-
return
|
|
2407
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
2218
2408
|
while (1) switch (_context3.prev = _context3.next) {
|
|
2219
2409
|
case 0:
|
|
2220
2410
|
isOffset = _arguments.length > 4 && _arguments[4] !== undefined ? _arguments[4] : 18;
|
|
2221
2411
|
serialNoBegin = _this3.CryptoAgent.GetSignCertInfo('SerialNumber');
|
|
2222
2412
|
result = '';
|
|
2223
|
-
|
|
2224
2413
|
if (image) {
|
|
2225
2414
|
_context3.next = 6;
|
|
2226
2415
|
break;
|
|
2227
2416
|
}
|
|
2228
|
-
|
|
2229
2417
|
alert('印章图片缺失!');
|
|
2230
2418
|
return _context3.abrupt("return", false);
|
|
2231
|
-
|
|
2232
2419
|
case 6:
|
|
2233
2420
|
index = 0;
|
|
2234
|
-
|
|
2235
2421
|
case 7:
|
|
2236
2422
|
if (!(index < labels.length)) {
|
|
2237
2423
|
_context3.next = 29;
|
|
2238
2424
|
break;
|
|
2239
2425
|
}
|
|
2240
|
-
|
|
2241
2426
|
item = getUrl(labels[index]); // 此处for循环多个文件时候以前签署,所以提示无意义
|
|
2242
2427
|
// const message = `签署 [${text}] 位于第${label.pageIndex}页的位置,[总共:${index + 1}/${labels.length}个位置]`
|
|
2243
|
-
|
|
2244
2428
|
if (typeof isOffset === 'number') {
|
|
2245
2429
|
// 印章统一向下偏移
|
|
2246
2430
|
item.Y -= isOffset;
|
|
2247
2431
|
}
|
|
2248
|
-
|
|
2249
2432
|
if (!(index > 0)) {
|
|
2250
2433
|
_context3.next = 22;
|
|
2251
2434
|
break;
|
|
2252
2435
|
}
|
|
2253
|
-
|
|
2254
2436
|
serialNoAgain = _this3.CryptoAgent.GetSignCertInfo('SerialNumber');
|
|
2255
|
-
|
|
2256
2437
|
if (!(serialNoBegin !== serialNoAgain)) {
|
|
2257
2438
|
_context3.next = 15;
|
|
2258
2439
|
break;
|
|
2259
2440
|
}
|
|
2260
|
-
|
|
2261
2441
|
alert('签署过程中,请不要更换ukey!');
|
|
2262
2442
|
return _context3.abrupt("return", false);
|
|
2263
|
-
|
|
2264
2443
|
case 15:
|
|
2265
2444
|
if (!result) {
|
|
2266
2445
|
_context3.next = 19;
|
|
2267
2446
|
break;
|
|
2268
2447
|
}
|
|
2269
|
-
|
|
2270
2448
|
_context3.next = 18;
|
|
2271
2449
|
return _this3.signFileKeyImage(item, result, image);
|
|
2272
|
-
|
|
2273
2450
|
case 18:
|
|
2274
2451
|
result = _context3.sent;
|
|
2275
|
-
|
|
2276
2452
|
case 19:
|
|
2277
2453
|
console.log("iterateSign \u7B7E\u7AE0\u7ED3\u679C".concat(index, "---result----"), result);
|
|
2278
2454
|
_context3.next = 26;
|
|
2279
2455
|
break;
|
|
2280
|
-
|
|
2281
2456
|
case 22:
|
|
2282
2457
|
_context3.next = 24;
|
|
2283
2458
|
return _this3.signFileKeyImage(item, fileOss, image);
|
|
2284
|
-
|
|
2285
2459
|
case 24:
|
|
2286
2460
|
result = _context3.sent;
|
|
2287
2461
|
console.log('第一个章 签章结果', result);
|
|
2288
|
-
|
|
2289
2462
|
case 26:
|
|
2290
2463
|
index++;
|
|
2291
2464
|
_context3.next = 7;
|
|
2292
2465
|
break;
|
|
2293
|
-
|
|
2294
2466
|
case 29:
|
|
2295
2467
|
console.log('multipleSign 签章的结果', result);
|
|
2296
2468
|
return _context3.abrupt("return", result);
|
|
2297
|
-
|
|
2298
2469
|
case 31:
|
|
2299
2470
|
case "end":
|
|
2300
2471
|
return _context3.stop();
|
|
2301
2472
|
}
|
|
2302
2473
|
}, _callee3);
|
|
2303
2474
|
}))();
|
|
2304
|
-
}
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
errorDesc = "".concat(errorDesc, "[").concat(response, "]");
|
|
2475
|
+
},
|
|
2476
|
+
ShowErrorInfo: function ShowErrorInfo() {
|
|
2477
|
+
var response = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
2478
|
+
if (!this.CryptoAgent || !this.CryptoAgent.GetLastErrorDesc) {
|
|
2479
|
+
alert('不支持该功能!');
|
|
2480
|
+
} else {
|
|
2481
|
+
// host error
|
|
2482
|
+
var errorDesc = this.CryptoAgent.GetLastErrorDesc();
|
|
2483
|
+
if (response) {
|
|
2484
|
+
errorDesc = "".concat(errorDesc, "[").concat(response, "]");
|
|
2485
|
+
}
|
|
2486
|
+
alert(errorDesc);
|
|
2317
2487
|
}
|
|
2318
|
-
|
|
2319
|
-
alert(errorDesc);
|
|
2320
2488
|
}
|
|
2321
2489
|
}
|
|
2322
2490
|
});
|
|
2323
2491
|
// CONCATENATED MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=script&lang=js&
|
|
2324
2492
|
/* harmony default export */ var ukey_WzhSignvue_type_script_lang_js_ = (WzhSignvue_type_script_lang_js_);
|
|
2325
|
-
// EXTERNAL MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=style&index=0&id=
|
|
2326
|
-
var
|
|
2493
|
+
// EXTERNAL MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=style&index=0&id=92ccc742&lang=less&scoped=true&
|
|
2494
|
+
var WzhSignvue_type_style_index_0_id_92ccc742_lang_less_scoped_true_ = __webpack_require__("794c");
|
|
2327
2495
|
|
|
2328
2496
|
// CONCATENATED MODULE: ./src/packages/ukey/WzhSign.vue
|
|
2329
2497
|
|
|
@@ -2336,29 +2504,29 @@ var WzhSignvue_type_style_index_0_id_339a252e_lang_less_scoped_true_ = __webpack
|
|
|
2336
2504
|
|
|
2337
2505
|
var WzhSign_component = normalizeComponent(
|
|
2338
2506
|
ukey_WzhSignvue_type_script_lang_js_,
|
|
2339
|
-
|
|
2340
|
-
|
|
2507
|
+
WzhSignvue_type_template_id_92ccc742_scoped_true_render,
|
|
2508
|
+
WzhSignvue_type_template_id_92ccc742_scoped_true_staticRenderFns,
|
|
2341
2509
|
false,
|
|
2342
2510
|
null,
|
|
2343
|
-
"
|
|
2511
|
+
"92ccc742",
|
|
2344
2512
|
null
|
|
2345
2513
|
|
|
2346
2514
|
)
|
|
2347
2515
|
|
|
2348
2516
|
/* harmony default export */ var WzhSign = (WzhSign_component.exports);
|
|
2349
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2350
|
-
var
|
|
2351
|
-
var
|
|
2517
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"56cdd3d2-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=6fac980f&
|
|
2518
|
+
var SignNewvue_type_template_id_6fac980f_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)}
|
|
2519
|
+
var SignNewvue_type_template_id_6fac980f_staticRenderFns = []
|
|
2352
2520
|
|
|
2353
2521
|
|
|
2354
|
-
// CONCATENATED MODULE: ./src/packages/ukey/SignNew.vue?vue&type=template&id=
|
|
2522
|
+
// CONCATENATED MODULE: ./src/packages/ukey/SignNew.vue?vue&type=template&id=6fac980f&
|
|
2355
2523
|
|
|
2356
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2357
|
-
var
|
|
2358
|
-
var
|
|
2524
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"56cdd3d2-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=4934471a&scoped=true&
|
|
2525
|
+
var WzhSignChromevue_type_template_id_4934471a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"CryptoAgent-wrapper"})}
|
|
2526
|
+
var WzhSignChromevue_type_template_id_4934471a_scoped_true_staticRenderFns = []
|
|
2359
2527
|
|
|
2360
2528
|
|
|
2361
|
-
// CONCATENATED MODULE: ./src/packages/ukey/WzhSignChrome.vue?vue&type=template&id=
|
|
2529
|
+
// CONCATENATED MODULE: ./src/packages/ukey/WzhSignChrome.vue?vue&type=template&id=4934471a&scoped=true&
|
|
2362
2530
|
|
|
2363
2531
|
// CONCATENATED MODULE: ./src/packages/ukey/nmCryptokit.ToToDi.js
|
|
2364
2532
|
/* eslint-disable */
|
|
@@ -2384,15 +2552,13 @@ function GenerateRandomId() {
|
|
|
2384
2552
|
var charstring = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890';
|
|
2385
2553
|
var maxPos = charstring.length;
|
|
2386
2554
|
var randomId = '';
|
|
2387
|
-
|
|
2388
2555
|
for (var i = 0; i < 10; i++) {
|
|
2389
2556
|
randomId += charstring.charAt(Math.floor(Math.random() * maxPos));
|
|
2390
2557
|
}
|
|
2391
|
-
|
|
2392
2558
|
return randomId;
|
|
2393
2559
|
}
|
|
2394
|
-
window.nmCryptokit = nmCryptokit;
|
|
2395
|
-
|
|
2560
|
+
window.nmCryptokit = nmCryptokit;
|
|
2561
|
+
// Encapsulate Chrome sendMessage callback to Promise
|
|
2396
2562
|
nmCryptokit.SendMessageforChrome = function (request) {
|
|
2397
2563
|
return new Promise(function (resolve, reject) {
|
|
2398
2564
|
chrome.runtime.sendMessage(nmCryptokit.chromeExtension, request, function (response) {
|
|
@@ -2410,9 +2576,9 @@ nmCryptokit.SendMessageforChrome = function (request) {
|
|
|
2410
2576
|
}
|
|
2411
2577
|
});
|
|
2412
2578
|
});
|
|
2413
|
-
};
|
|
2414
|
-
|
|
2579
|
+
};
|
|
2415
2580
|
|
|
2581
|
+
// Encapsulate Chrome sendMessage callback to Promise
|
|
2416
2582
|
nmCryptokit.SendMessageforEdge = function (request) {
|
|
2417
2583
|
return new Promise(function (resolve, reject) {
|
|
2418
2584
|
chrome.runtime.sendMessage(nmCryptokit.edgeExtension, request, function (response) {
|
|
@@ -2430,9 +2596,9 @@ nmCryptokit.SendMessageforEdge = function (request) {
|
|
|
2430
2596
|
}
|
|
2431
2597
|
});
|
|
2432
2598
|
});
|
|
2433
|
-
};
|
|
2434
|
-
|
|
2599
|
+
};
|
|
2435
2600
|
|
|
2601
|
+
// Encapsulate Edge&Firefox event to Promise
|
|
2436
2602
|
nmCryptokit.SendMessagebyEvent = function (request) {
|
|
2437
2603
|
var event = new CustomEvent(nmCryptokit.reqEventName, {
|
|
2438
2604
|
detail: request
|
|
@@ -2444,7 +2610,6 @@ nmCryptokit.SendMessagebyEvent = function (request) {
|
|
|
2444
2610
|
document.addEventListener(responseEventName, function CallBack(e) {
|
|
2445
2611
|
document.removeEventListener(e.type, CallBack);
|
|
2446
2612
|
var eJson = JSON.parse(e.detail);
|
|
2447
|
-
|
|
2448
2613
|
if (null != eJson && 0 == eJson.errorcode) {
|
|
2449
2614
|
resolve(eJson);
|
|
2450
2615
|
} else {
|
|
@@ -2453,7 +2618,6 @@ nmCryptokit.SendMessagebyEvent = function (request) {
|
|
|
2453
2618
|
}, false);
|
|
2454
2619
|
});
|
|
2455
2620
|
};
|
|
2456
|
-
|
|
2457
2621
|
nmCryptokit.SendMessage = function (browser, requestJSON) {
|
|
2458
2622
|
if (nmCryptokit.Browser.Chrome == browser) {
|
|
2459
2623
|
return nmCryptokit.SendMessageforChrome(requestJSON);
|
|
@@ -2463,12 +2627,10 @@ nmCryptokit.SendMessage = function (browser, requestJSON) {
|
|
|
2463
2627
|
return nmCryptokit.SendMessagebyEvent(requestJSON);
|
|
2464
2628
|
}
|
|
2465
2629
|
};
|
|
2466
|
-
|
|
2467
2630
|
nmCryptokit.checkExtension = function (browser) {
|
|
2468
2631
|
return new Promise(function (resolve, reject) {
|
|
2469
2632
|
var result = new Object();
|
|
2470
2633
|
console.log('444', browser);
|
|
2471
|
-
|
|
2472
2634
|
if (nmCryptokit.Browser.Chrome == browser || nmCryptokit.Browser.Edg == browser) {
|
|
2473
2635
|
// chrome.runtime.sendMessage() could check extension existence.
|
|
2474
2636
|
if (chrome.runtime) {
|
|
@@ -2493,7 +2655,6 @@ nmCryptokit.checkExtension = function (browser) {
|
|
|
2493
2655
|
}
|
|
2494
2656
|
});
|
|
2495
2657
|
};
|
|
2496
|
-
|
|
2497
2658
|
nmCryptokit.prototype.init = function () {
|
|
2498
2659
|
var browser = this.browser;
|
|
2499
2660
|
console.log('2223', browser);
|
|
@@ -2514,14 +2675,12 @@ nmCryptokit.prototype.init = function () {
|
|
|
2514
2675
|
return nmCryptokit.SendMessage(browser, request);
|
|
2515
2676
|
});
|
|
2516
2677
|
};
|
|
2517
|
-
|
|
2518
2678
|
nmCryptokit.prototype.uninit = function () {
|
|
2519
2679
|
var request = new Object();
|
|
2520
2680
|
request.action = "disconnect";
|
|
2521
2681
|
request.host = nmCryptokit.productID;
|
|
2522
2682
|
return nmCryptokit.SendMessage(this.browser, request);
|
|
2523
2683
|
};
|
|
2524
|
-
|
|
2525
2684
|
nmCryptokit.prototype.getExtensionVersion = function () {
|
|
2526
2685
|
var request = new Object();
|
|
2527
2686
|
var funcInfo = new Object();
|
|
@@ -2531,7 +2690,6 @@ nmCryptokit.prototype.getExtensionVersion = function () {
|
|
|
2531
2690
|
request.funcInfo = funcInfo;
|
|
2532
2691
|
return nmCryptokit.SendMessage(this.browser, request);
|
|
2533
2692
|
};
|
|
2534
|
-
|
|
2535
2693
|
nmCryptokit.prototype.GetSealImage = function (bstrP11Name) {
|
|
2536
2694
|
var request = new Object();
|
|
2537
2695
|
var funcInfo = new Object();
|
|
@@ -2545,7 +2703,6 @@ nmCryptokit.prototype.GetSealImage = function (bstrP11Name) {
|
|
|
2545
2703
|
request.funcInfo = funcInfo;
|
|
2546
2704
|
return nmCryptokit.SendMessage(this.browser, request);
|
|
2547
2705
|
};
|
|
2548
|
-
|
|
2549
2706
|
nmCryptokit.prototype.getHostVersion = function () {
|
|
2550
2707
|
var request = new Object();
|
|
2551
2708
|
var funcInfo = new Object();
|
|
@@ -2557,7 +2714,6 @@ nmCryptokit.prototype.getHostVersion = function () {
|
|
|
2557
2714
|
request.funcInfo = funcInfo;
|
|
2558
2715
|
return nmCryptokit.SendMessage(this.browser, request);
|
|
2559
2716
|
};
|
|
2560
|
-
|
|
2561
2717
|
nmCryptokit.prototype.SelectCertificate = function (bstrSubjectDNFilter, bstrIssuerDNFilter, bstrSerialNumFilter, bstrCSPNameList) {
|
|
2562
2718
|
var request = new Object();
|
|
2563
2719
|
var funcInfo = new Object();
|
|
@@ -2574,7 +2730,6 @@ nmCryptokit.prototype.SelectCertificate = function (bstrSubjectDNFilter, bstrIss
|
|
|
2574
2730
|
request.funcInfo = funcInfo;
|
|
2575
2731
|
return nmCryptokit.SendMessage(this.browser, request);
|
|
2576
2732
|
};
|
|
2577
|
-
|
|
2578
2733
|
nmCryptokit.prototype.GetSignCertInfo = function (bstrInfoType) {
|
|
2579
2734
|
var request = new Object();
|
|
2580
2735
|
var funcInfo = new Object();
|
|
@@ -2588,7 +2743,6 @@ nmCryptokit.prototype.GetSignCertInfo = function (bstrInfoType) {
|
|
|
2588
2743
|
request.funcInfo = funcInfo;
|
|
2589
2744
|
return nmCryptokit.SendMessage(this.browser, request);
|
|
2590
2745
|
};
|
|
2591
|
-
|
|
2592
2746
|
nmCryptokit.prototype.SignMsgPKCS7 = function (bstrSourceData, bstrHashAlg, bWithSourceData) {
|
|
2593
2747
|
var request = new Object();
|
|
2594
2748
|
var funcInfo = new Object();
|
|
@@ -2604,7 +2758,6 @@ nmCryptokit.prototype.SignMsgPKCS7 = function (bstrSourceData, bstrHashAlg, bWit
|
|
|
2604
2758
|
request.funcInfo = funcInfo;
|
|
2605
2759
|
return nmCryptokit.SendMessage(this.browser, request);
|
|
2606
2760
|
};
|
|
2607
|
-
|
|
2608
2761
|
nmCryptokit.prototype.SignHashMsgPKCS7Detached = function (bstrSourceData, bstrHashAlg) {
|
|
2609
2762
|
var request = new Object();
|
|
2610
2763
|
var funcInfo = new Object();
|
|
@@ -2619,7 +2772,6 @@ nmCryptokit.prototype.SignHashMsgPKCS7Detached = function (bstrSourceData, bstrH
|
|
|
2619
2772
|
request.funcInfo = funcInfo;
|
|
2620
2773
|
return nmCryptokit.SendMessage(this.browser, request);
|
|
2621
2774
|
};
|
|
2622
|
-
|
|
2623
2775
|
nmCryptokit.prototype.GetVersion = function () {
|
|
2624
2776
|
var request = new Object();
|
|
2625
2777
|
var funcInfo = new Object();
|
|
@@ -2631,7 +2783,6 @@ nmCryptokit.prototype.GetVersion = function () {
|
|
|
2631
2783
|
request.funcInfo = funcInfo;
|
|
2632
2784
|
return nmCryptokit.SendMessage(this.browser, request);
|
|
2633
2785
|
};
|
|
2634
|
-
|
|
2635
2786
|
nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
2636
2787
|
var request = new Object();
|
|
2637
2788
|
var funcInfo = new Object();
|
|
@@ -2655,7 +2806,6 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
2655
2806
|
};
|
|
2656
2807
|
var reg;
|
|
2657
2808
|
var userAgent = self.navigator.userAgent;
|
|
2658
|
-
|
|
2659
2809
|
if (reg = /edge\/([\d\.]+)/i.exec(userAgent)) {
|
|
2660
2810
|
res.name = 'Edge';
|
|
2661
2811
|
res.version = reg[1];
|
|
@@ -2678,18 +2828,15 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
2678
2828
|
res.name = 'Firefox';
|
|
2679
2829
|
res.version = /firefox\/([\d\.]+)/i.exec(userAgent)[1];
|
|
2680
2830
|
}
|
|
2681
|
-
|
|
2682
2831
|
return res;
|
|
2683
2832
|
},
|
|
2684
2833
|
LoadObj: function LoadObj() {
|
|
2685
2834
|
var _this = this;
|
|
2686
|
-
|
|
2687
2835
|
try {
|
|
2688
2836
|
var extensionVer;
|
|
2689
2837
|
var hostVer;
|
|
2690
2838
|
var browser = this.BrowserInfo();
|
|
2691
2839
|
console.log('browser=', browser);
|
|
2692
|
-
|
|
2693
2840
|
if (browser.name == 'Edge' || browser.name == 'Edge(Chromium)' || browser.name == 'Chrome' && parseInt(browser.version) > 41 || browser.name == 'Firefox' && parseInt(browser.version) > 52) {
|
|
2694
2841
|
this.CryptoAgent = new nmCryptokit(browser.name);
|
|
2695
2842
|
console.log(6661, this.CryptoAgent);
|
|
@@ -2705,14 +2852,10 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
2705
2852
|
hostVer = response.result;
|
|
2706
2853
|
console.log("extension version: ".concat(extensionVer));
|
|
2707
2854
|
console.log("host version: ".concat(hostVer));
|
|
2708
|
-
|
|
2709
2855
|
var extensionLevel = _this.compareExtensionVersion(extensionVer);
|
|
2710
|
-
|
|
2711
2856
|
var hostLevel = _this.compareVersion(hostVer, '3.4.0.1');
|
|
2712
|
-
|
|
2713
2857
|
console.log("extensionLevel ".concat(extensionLevel));
|
|
2714
2858
|
console.log("hostLevel: ".concat(hostLevel));
|
|
2715
|
-
|
|
2716
2859
|
if (hostLevel < 0 && extensionLevel < 0) {
|
|
2717
2860
|
console.log('Please install host');
|
|
2718
2861
|
} else if (hostLevel < 0) {
|
|
@@ -2737,17 +2880,14 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
2737
2880
|
var v1Arr = version1.split('.');
|
|
2738
2881
|
var v2Arr = version2.split('.');
|
|
2739
2882
|
var len = Math.min(v1Arr.length, v2Arr.length);
|
|
2740
|
-
|
|
2741
2883
|
for (var i = 0; i < len; i++) {
|
|
2742
2884
|
if (parseInt(v1Arr[i], 10) > parseInt(v2Arr[i], 10)) {
|
|
2743
2885
|
return 1;
|
|
2744
2886
|
}
|
|
2745
|
-
|
|
2746
2887
|
if (parseInt(v1Arr[i], 10) < parseInt(v2Arr[i], 10)) {
|
|
2747
2888
|
return -1;
|
|
2748
2889
|
}
|
|
2749
2890
|
}
|
|
2750
|
-
|
|
2751
2891
|
if (len < v1Arr.length) {
|
|
2752
2892
|
for (var j = len; j < v1Arr.length; j++) {
|
|
2753
2893
|
if (parseInt(v1Arr[j], 10) != 0) {
|
|
@@ -2755,7 +2895,6 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
2755
2895
|
}
|
|
2756
2896
|
}
|
|
2757
2897
|
}
|
|
2758
|
-
|
|
2759
2898
|
if (len < v2Arr.length) {
|
|
2760
2899
|
for (var j = len; j < v2Arr.length; j++) {
|
|
2761
2900
|
if (parseInt(v2Arr[j], 10) != 0) {
|
|
@@ -2763,7 +2902,6 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
2763
2902
|
}
|
|
2764
2903
|
}
|
|
2765
2904
|
}
|
|
2766
|
-
|
|
2767
2905
|
return 0;
|
|
2768
2906
|
},
|
|
2769
2907
|
// version1 == version2 0
|
|
@@ -2771,15 +2909,12 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
2771
2909
|
// version1 > version2 1
|
|
2772
2910
|
compareExtensionVersion: function compareExtensionVersion(version) {
|
|
2773
2911
|
var browser = this.BrowserInfo();
|
|
2774
|
-
|
|
2775
2912
|
if (browser.name == 'Edge') {
|
|
2776
2913
|
return this.compareVersion(version, '3.4.0.1');
|
|
2777
2914
|
}
|
|
2778
|
-
|
|
2779
2915
|
if (browser.name == 'Chrome') {
|
|
2780
2916
|
return this.compareVersion(version, '3.4.0.1');
|
|
2781
2917
|
}
|
|
2782
|
-
|
|
2783
2918
|
if (browser.name == 'Firefox') {
|
|
2784
2919
|
return this.compareVersion(version, '3.4.0.1');
|
|
2785
2920
|
}
|
|
@@ -2813,19 +2948,18 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
2813
2948
|
});
|
|
2814
2949
|
// 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/WzhSignChrome.vue?vue&type=script&lang=js&
|
|
2815
2950
|
|
|
2951
|
+
|
|
2816
2952
|
//
|
|
2817
2953
|
//
|
|
2818
2954
|
//
|
|
2819
2955
|
//
|
|
2820
|
-
|
|
2821
|
-
// import { getSignHash, mergeHash } from '@/api/ess'
|
|
2956
|
+
|
|
2822
2957
|
|
|
2823
2958
|
|
|
2824
2959
|
/* harmony default export */ var WzhSignChromevue_type_script_lang_js_ = ({
|
|
2825
2960
|
mixins: [WZHforChrome],
|
|
2826
2961
|
data: function data() {
|
|
2827
2962
|
return {
|
|
2828
|
-
isIE: navigator.appName.indexOf('Internet') >= 0 || navigator.appVersion.indexOf('Trident') >= 0,
|
|
2829
2963
|
sourceData: '',
|
|
2830
2964
|
// 签名原文, 动态随机字符串
|
|
2831
2965
|
certType: 'RSA',
|
|
@@ -2851,12 +2985,10 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
2851
2985
|
console.log(3333, this.CryptoAgent);
|
|
2852
2986
|
return false;
|
|
2853
2987
|
}
|
|
2854
|
-
|
|
2855
2988
|
this.LoadObj();
|
|
2856
2989
|
},
|
|
2857
2990
|
getUkeyImage: function getUkeyImage() {
|
|
2858
2991
|
var _this = this;
|
|
2859
|
-
|
|
2860
2992
|
return new Promise(function (resolve, reject) {
|
|
2861
2993
|
_this.CryptoAgent.GetSealImage('UyeePKCS11.Enterprise.dll').then(function (response) {
|
|
2862
2994
|
resolve(response.result);
|
|
@@ -2865,9 +2997,8 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
2865
2997
|
_this.CryptoAgent.GetSealImage('CFCA_UKEY_P11.dll').then(function (response2) {
|
|
2866
2998
|
resolve(response2.result);
|
|
2867
2999
|
})["catch"](function (response2) {
|
|
2868
|
-
_this.ShowErrorInfo(response2);
|
|
2869
|
-
|
|
2870
|
-
|
|
3000
|
+
_this.ShowErrorInfo(response2);
|
|
3001
|
+
// ('读取Ukey印章图片失败!')
|
|
2871
3002
|
reject(response2);
|
|
2872
3003
|
});
|
|
2873
3004
|
});
|
|
@@ -2875,70 +3006,56 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
2875
3006
|
},
|
|
2876
3007
|
GetCertInfoOnClick: function GetCertInfoOnClick(InfoTypeID) {
|
|
2877
3008
|
var _this2 = this;
|
|
2878
|
-
|
|
2879
3009
|
InfoTypeID = InfoTypeID || 'SubjectDN';
|
|
2880
3010
|
console.log('GetCertInfoOnClick:InfoTypeID ', InfoTypeID);
|
|
2881
3011
|
return this.CryptoAgent.GetSignCertInfo(InfoTypeID).then(function (response) {
|
|
2882
3012
|
return response.result;
|
|
2883
3013
|
})["catch"](function (e) {
|
|
2884
3014
|
console.log('GetCertInfoOnClick-WzhSign: ', e);
|
|
2885
|
-
|
|
2886
3015
|
_this2.ShowErrorInfo(e);
|
|
2887
3016
|
});
|
|
2888
3017
|
},
|
|
2889
3018
|
SignOnClick: function SignOnClick() {
|
|
2890
3019
|
var _this3 = this;
|
|
2891
|
-
|
|
2892
|
-
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
|
|
3020
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
2893
3021
|
var source, signature, signType, selectedAlg;
|
|
2894
|
-
return
|
|
3022
|
+
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2895
3023
|
while (1) switch (_context.prev = _context.next) {
|
|
2896
3024
|
case 0:
|
|
2897
3025
|
_this3.sourceData = "".concat(new Date().getTime());
|
|
2898
3026
|
source = _this3.sourceData;
|
|
2899
3027
|
signature = '';
|
|
2900
3028
|
signType = 'Attach'; // 签名类型
|
|
2901
|
-
|
|
2902
3029
|
selectedAlg = 'SHA-1'; // 哈希算法(仅对RSA算法有效,SM2默认使用SM3哈希算法):
|
|
2903
|
-
|
|
2904
3030
|
if (!(signType === 'Attach')) {
|
|
2905
3031
|
_context.next = 11;
|
|
2906
3032
|
break;
|
|
2907
3033
|
}
|
|
2908
|
-
|
|
2909
3034
|
_context.next = 8;
|
|
2910
3035
|
return _this3.CryptoAgent.SignMsgPKCS7(source, selectedAlg, true);
|
|
2911
|
-
|
|
2912
3036
|
case 8:
|
|
2913
3037
|
signature = _context.sent;
|
|
2914
3038
|
_context.next = 20;
|
|
2915
3039
|
break;
|
|
2916
|
-
|
|
2917
3040
|
case 11:
|
|
2918
3041
|
if (!(signType === 'Detach')) {
|
|
2919
3042
|
_context.next = 17;
|
|
2920
3043
|
break;
|
|
2921
3044
|
}
|
|
2922
|
-
|
|
2923
3045
|
_context.next = 14;
|
|
2924
3046
|
return _this3.CryptoAgent.SignMsgPKCS7(source, selectedAlg, false);
|
|
2925
|
-
|
|
2926
3047
|
case 14:
|
|
2927
3048
|
signature = _context.sent;
|
|
2928
3049
|
_context.next = 20;
|
|
2929
3050
|
break;
|
|
2930
|
-
|
|
2931
3051
|
case 17:
|
|
2932
3052
|
_context.next = 19;
|
|
2933
3053
|
return _this3.CryptoAgent.SignMsgPKCS1(source, selectedAlg);
|
|
2934
|
-
|
|
2935
3054
|
case 19:
|
|
2936
3055
|
signature = _context.sent;
|
|
2937
|
-
|
|
2938
3056
|
case 20:
|
|
2939
3057
|
console.log('SignOnClick 签名结果:', signature);
|
|
2940
3058
|
return _context.abrupt("return", signature.result);
|
|
2941
|
-
|
|
2942
3059
|
case 22:
|
|
2943
3060
|
case "end":
|
|
2944
3061
|
return _context.stop();
|
|
@@ -2948,57 +3065,46 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
2948
3065
|
},
|
|
2949
3066
|
SelectCertificateOnClick: function SelectCertificateOnClick() {
|
|
2950
3067
|
var _arguments = arguments,
|
|
2951
|
-
|
|
2952
|
-
|
|
2953
|
-
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
|
|
3068
|
+
_this4 = this;
|
|
3069
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
2954
3070
|
var serialNumFilter, subjectDNFilter, issuerDNFilter, bstrSM2CSPNameList, version;
|
|
2955
|
-
return
|
|
3071
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
2956
3072
|
while (1) switch (_context2.prev = _context2.next) {
|
|
2957
3073
|
case 0:
|
|
2958
3074
|
serialNumFilter = _arguments.length > 0 && _arguments[0] !== undefined ? _arguments[0] : '';
|
|
2959
3075
|
subjectDNFilter = '';
|
|
2960
3076
|
issuerDNFilter = 'CFCA ACS '; // CFCA ACS OCA31 ,CFCA ACS OCA32, CFCA ACS TEST OCA31
|
|
2961
|
-
|
|
2962
3077
|
bstrSM2CSPNameList = 'Uyee CSP v6.0 (Enterprise)||CFCA FOR UKEY CSP v1.1.0'; // 如果没有serialNumFilter 说明是初始调用,检测一下版本(初始化是否成功)
|
|
2963
|
-
|
|
2964
3078
|
if (serialNumFilter) {
|
|
2965
|
-
_context2.next =
|
|
3079
|
+
_context2.next = 18;
|
|
2966
3080
|
break;
|
|
2967
3081
|
}
|
|
2968
|
-
|
|
2969
3082
|
_context2.prev = 5;
|
|
2970
3083
|
_context2.next = 8;
|
|
2971
3084
|
return _this4.CryptoAgent.GetVersion();
|
|
2972
|
-
|
|
2973
3085
|
case 8:
|
|
2974
3086
|
version = _context2.sent;
|
|
2975
3087
|
console.log(5444444, version);
|
|
2976
|
-
_context2.next =
|
|
3088
|
+
_context2.next = 18;
|
|
2977
3089
|
break;
|
|
2978
|
-
|
|
2979
3090
|
case 12:
|
|
2980
3091
|
_context2.prev = 12;
|
|
2981
3092
|
_context2.t0 = _context2["catch"](5);
|
|
2982
|
-
console.log(44444, _context2.t0);
|
|
2983
|
-
|
|
3093
|
+
console.log(44444, _context2.t0);
|
|
3094
|
+
alert('扩展初始化失败,请联系管理员!');
|
|
2984
3095
|
_this4.ShowErrorInfo(_context2.t0);
|
|
2985
|
-
|
|
2986
3096
|
return _context2.abrupt("return", Promise.reject());
|
|
2987
|
-
|
|
2988
|
-
case 17:
|
|
3097
|
+
case 18:
|
|
2989
3098
|
return _context2.abrupt("return", new Promise(function (resolve, reject) {
|
|
2990
3099
|
_this4.CryptoAgent.SelectCertificate(subjectDNFilter, issuerDNFilter, serialNumFilter, bstrSM2CSPNameList).then(function (response) {
|
|
2991
3100
|
resolve(response.result);
|
|
2992
3101
|
})["catch"](function (response) {
|
|
2993
3102
|
console.log('SelectCertificate:', response);
|
|
2994
|
-
|
|
2995
3103
|
_this4.ShowErrorInfo(response);
|
|
2996
|
-
|
|
2997
3104
|
reject();
|
|
2998
3105
|
});
|
|
2999
3106
|
}));
|
|
3000
|
-
|
|
3001
|
-
case 18:
|
|
3107
|
+
case 19:
|
|
3002
3108
|
case "end":
|
|
3003
3109
|
return _context2.stop();
|
|
3004
3110
|
}
|
|
@@ -3007,34 +3113,27 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
3007
3113
|
},
|
|
3008
3114
|
getHashValue: function getHashValue(label, fileOss, sealImage) {
|
|
3009
3115
|
var _this5 = this;
|
|
3010
|
-
|
|
3011
|
-
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3() {
|
|
3116
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
|
|
3012
3117
|
var CertContent;
|
|
3013
|
-
return
|
|
3118
|
+
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
3014
3119
|
while (1) switch (_context3.prev = _context3.next) {
|
|
3015
3120
|
case 0:
|
|
3016
3121
|
_context3.next = 2;
|
|
3017
3122
|
return _this5.GetCertInfoOnClick('CertContent');
|
|
3018
|
-
|
|
3019
3123
|
case 2:
|
|
3020
3124
|
CertContent = _context3.sent;
|
|
3021
|
-
|
|
3022
3125
|
_this5.$emit('getImg', sealImage);
|
|
3023
|
-
|
|
3024
3126
|
if (CertContent) {
|
|
3025
3127
|
_context3.next = 7;
|
|
3026
3128
|
break;
|
|
3027
3129
|
}
|
|
3028
|
-
|
|
3029
3130
|
alert('获取证书公钥失败!');
|
|
3030
3131
|
return _context3.abrupt("return", Promise.reject());
|
|
3031
|
-
|
|
3032
3132
|
case 7:
|
|
3033
3133
|
if (!(fileOss.bucketName && fileOss.objectKey)) {
|
|
3034
3134
|
_context3.next = 9;
|
|
3035
3135
|
break;
|
|
3036
3136
|
}
|
|
3037
|
-
|
|
3038
3137
|
return _context3.abrupt("return", _this5.api.getSignHash({
|
|
3039
3138
|
jsonData: {
|
|
3040
3139
|
source: 'TTDFUND',
|
|
@@ -3057,15 +3156,12 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
3057
3156
|
pageY: Number(label.Y),
|
|
3058
3157
|
// 签章页签章位置Y坐标
|
|
3059
3158
|
certBase64: CertContent // 证书公钥
|
|
3060
|
-
|
|
3061
3159
|
}
|
|
3062
3160
|
}
|
|
3063
3161
|
}));
|
|
3064
|
-
|
|
3065
3162
|
case 9:
|
|
3066
3163
|
alert('文件对象不合规!');
|
|
3067
3164
|
return _context3.abrupt("return", Promise.reject());
|
|
3068
|
-
|
|
3069
3165
|
case 11:
|
|
3070
3166
|
case "end":
|
|
3071
3167
|
return _context3.stop();
|
|
@@ -3075,36 +3171,29 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
3075
3171
|
},
|
|
3076
3172
|
getSignHashValue: function getSignHashValue(item, fileItem, image) {
|
|
3077
3173
|
var _this6 = this;
|
|
3078
|
-
|
|
3079
|
-
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee4() {
|
|
3174
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee4() {
|
|
3080
3175
|
var sourceHashData, _yield$_this6$getHash, code, data;
|
|
3081
|
-
|
|
3082
|
-
return regeneratorRuntime.wrap(function _callee4$(_context4) {
|
|
3176
|
+
return _regeneratorRuntime().wrap(function _callee4$(_context4) {
|
|
3083
3177
|
while (1) switch (_context4.prev = _context4.next) {
|
|
3084
3178
|
case 0:
|
|
3085
3179
|
sourceHashData = '';
|
|
3086
3180
|
_context4.next = 3;
|
|
3087
3181
|
return _this6.getHashValue(item, fileItem, image);
|
|
3088
|
-
|
|
3089
3182
|
case 3:
|
|
3090
3183
|
_yield$_this6$getHash = _context4.sent;
|
|
3091
3184
|
code = _yield$_this6$getHash.code;
|
|
3092
3185
|
data = _yield$_this6$getHash.data;
|
|
3093
|
-
|
|
3094
3186
|
if (code === 0) {
|
|
3095
3187
|
if ("".concat(data.bean.code) === '200') {
|
|
3096
3188
|
sourceHashData = data.bean.pdfHash;
|
|
3097
3189
|
}
|
|
3098
3190
|
}
|
|
3099
|
-
|
|
3100
3191
|
if (sourceHashData) {
|
|
3101
3192
|
_context4.next = 10;
|
|
3102
3193
|
break;
|
|
3103
3194
|
}
|
|
3104
|
-
|
|
3105
3195
|
alert("CFCA\u8BA1\u7B97HASH\u503C\u5931\u8D25\uFF01( ".concat(data.bean.msg || '', ")"));
|
|
3106
3196
|
return _context4.abrupt("return", false);
|
|
3107
|
-
|
|
3108
3197
|
case 10:
|
|
3109
3198
|
return _context4.abrupt("return", _this6.CryptoAgent.SignHashMsgPKCS7Detached(sourceHashData, 'SHA-1').then(function (response) {
|
|
3110
3199
|
return {
|
|
@@ -3114,7 +3203,6 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
3114
3203
|
})["catch"](function (response) {
|
|
3115
3204
|
_this6.ShowErrorInfo(response);
|
|
3116
3205
|
}));
|
|
3117
|
-
|
|
3118
3206
|
case 11:
|
|
3119
3207
|
case "end":
|
|
3120
3208
|
return _context4.stop();
|
|
@@ -3124,25 +3212,20 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
3124
3212
|
},
|
|
3125
3213
|
signFileKeyImage: function signFileKeyImage(item, fileItem, image) {
|
|
3126
3214
|
var _this7 = this;
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
return regeneratorRuntime.wrap(function _callee5$(_context5) {
|
|
3215
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee5() {
|
|
3216
|
+
var res, errorMsg, _yield$_this7$api$mer, data, code;
|
|
3217
|
+
return _regeneratorRuntime().wrap(function _callee5$(_context5) {
|
|
3132
3218
|
while (1) switch (_context5.prev = _context5.next) {
|
|
3133
3219
|
case 0:
|
|
3134
3220
|
_context5.next = 2;
|
|
3135
3221
|
return _this7.getSignHashValue(item, fileItem, image);
|
|
3136
|
-
|
|
3137
3222
|
case 2:
|
|
3138
3223
|
res = _context5.sent;
|
|
3139
3224
|
errorMsg = '计算Hash 失败!';
|
|
3140
|
-
|
|
3141
3225
|
if (!res) {
|
|
3142
3226
|
_context5.next = 17;
|
|
3143
3227
|
break;
|
|
3144
3228
|
}
|
|
3145
|
-
|
|
3146
3229
|
_context5.next = 7;
|
|
3147
3230
|
return _this7.api.mergeHash({
|
|
3148
3231
|
jsonData: {
|
|
@@ -3152,41 +3235,31 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
3152
3235
|
sigString: res.signature,
|
|
3153
3236
|
// 签名后的hash值
|
|
3154
3237
|
id: res.id // 计算接口返回的ID
|
|
3155
|
-
|
|
3156
3238
|
}
|
|
3157
3239
|
}
|
|
3158
3240
|
});
|
|
3159
|
-
|
|
3160
3241
|
case 7:
|
|
3161
|
-
_yield$_this7$api$
|
|
3162
|
-
data = _yield$_this7$api$
|
|
3163
|
-
code = _yield$_this7$api$
|
|
3164
|
-
|
|
3242
|
+
_yield$_this7$api$mer = _context5.sent;
|
|
3243
|
+
data = _yield$_this7$api$mer.data;
|
|
3244
|
+
code = _yield$_this7$api$mer.code;
|
|
3165
3245
|
if (!(code === 0)) {
|
|
3166
3246
|
_context5.next = 16;
|
|
3167
3247
|
break;
|
|
3168
3248
|
}
|
|
3169
|
-
|
|
3170
3249
|
if (!data.bean.url) {
|
|
3171
3250
|
_context5.next = 13;
|
|
3172
3251
|
break;
|
|
3173
3252
|
}
|
|
3174
|
-
|
|
3175
3253
|
return _context5.abrupt("return", data.bean);
|
|
3176
|
-
|
|
3177
3254
|
case 13:
|
|
3178
3255
|
errorMsg = data.bean.msg;
|
|
3179
3256
|
_context5.next = 17;
|
|
3180
3257
|
break;
|
|
3181
|
-
|
|
3182
3258
|
case 16:
|
|
3183
3259
|
errorMsg = data.msg;
|
|
3184
|
-
|
|
3185
3260
|
case 17:
|
|
3186
3261
|
_this7.$message.error(errorMsg || 'error计算Hash失败!');
|
|
3187
|
-
|
|
3188
3262
|
return _context5.abrupt("return", false);
|
|
3189
|
-
|
|
3190
3263
|
case 19:
|
|
3191
3264
|
case "end":
|
|
3192
3265
|
return _context5.stop();
|
|
@@ -3198,99 +3271,77 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
3198
3271
|
// isOffset: 修正印章的位置,印章加时间后需要向下修正
|
|
3199
3272
|
multipleSign: function multipleSign(labels, fileOss, serialNo, image) {
|
|
3200
3273
|
var _arguments2 = arguments,
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee6() {
|
|
3274
|
+
_this8 = this;
|
|
3275
|
+
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee6() {
|
|
3204
3276
|
var isOffset, serialNoBegin, result, index, item, serialNoAgain;
|
|
3205
|
-
return
|
|
3277
|
+
return _regeneratorRuntime().wrap(function _callee6$(_context6) {
|
|
3206
3278
|
while (1) switch (_context6.prev = _context6.next) {
|
|
3207
3279
|
case 0:
|
|
3208
3280
|
isOffset = _arguments2.length > 4 && _arguments2[4] !== undefined ? _arguments2[4] : 18;
|
|
3209
3281
|
_context6.next = 3;
|
|
3210
3282
|
return _this8.GetCertInfoOnClick('SerialNumber');
|
|
3211
|
-
|
|
3212
3283
|
case 3:
|
|
3213
3284
|
serialNoBegin = _context6.sent;
|
|
3214
3285
|
result = '';
|
|
3215
|
-
|
|
3216
3286
|
if (image) {
|
|
3217
3287
|
_context6.next = 8;
|
|
3218
3288
|
break;
|
|
3219
3289
|
}
|
|
3220
|
-
|
|
3221
3290
|
alert('印章图片缺失!');
|
|
3222
3291
|
return _context6.abrupt("return", false);
|
|
3223
|
-
|
|
3224
3292
|
case 8:
|
|
3225
3293
|
index = 0;
|
|
3226
|
-
|
|
3227
3294
|
case 9:
|
|
3228
3295
|
if (!(index < labels.length)) {
|
|
3229
3296
|
_context6.next = 33;
|
|
3230
3297
|
break;
|
|
3231
3298
|
}
|
|
3232
|
-
|
|
3233
3299
|
item = getUrl(labels[index]); // 此处for循环多个文件时候以前签署,所以提示无意义
|
|
3234
3300
|
// const message = `签署 [${text}] 位于第${label.pageIndex}页的位置,[总共:${index + 1}/${labels.length}个位置]`
|
|
3235
|
-
|
|
3236
3301
|
if (typeof isOffset === 'number') {
|
|
3237
3302
|
// 印章统一向下偏移
|
|
3238
3303
|
item.Y -= isOffset;
|
|
3239
3304
|
}
|
|
3240
|
-
|
|
3241
3305
|
if (!(index > 0)) {
|
|
3242
3306
|
_context6.next = 26;
|
|
3243
3307
|
break;
|
|
3244
3308
|
}
|
|
3245
|
-
|
|
3246
3309
|
_context6.next = 15;
|
|
3247
3310
|
return _this8.GetCertInfoOnClick('SerialNumber');
|
|
3248
|
-
|
|
3249
3311
|
case 15:
|
|
3250
3312
|
serialNoAgain = _context6.sent;
|
|
3251
|
-
|
|
3252
3313
|
if (!(serialNoBegin !== serialNoAgain)) {
|
|
3253
3314
|
_context6.next = 19;
|
|
3254
3315
|
break;
|
|
3255
3316
|
}
|
|
3256
|
-
|
|
3257
3317
|
alert('签署过程中,请不要更换ukey!');
|
|
3258
3318
|
return _context6.abrupt("return", false);
|
|
3259
|
-
|
|
3260
3319
|
case 19:
|
|
3261
3320
|
if (!result) {
|
|
3262
3321
|
_context6.next = 23;
|
|
3263
3322
|
break;
|
|
3264
3323
|
}
|
|
3265
|
-
|
|
3266
3324
|
_context6.next = 22;
|
|
3267
3325
|
return _this8.signFileKeyImage(item, result, image);
|
|
3268
|
-
|
|
3269
3326
|
case 22:
|
|
3270
3327
|
result = _context6.sent;
|
|
3271
|
-
|
|
3272
3328
|
case 23:
|
|
3273
3329
|
console.log("iterateSign \u7B7E\u7AE0\u7ED3\u679C".concat(index, "---result----"), result);
|
|
3274
3330
|
_context6.next = 30;
|
|
3275
3331
|
break;
|
|
3276
|
-
|
|
3277
3332
|
case 26:
|
|
3278
3333
|
_context6.next = 28;
|
|
3279
3334
|
return _this8.signFileKeyImage(item, fileOss, image);
|
|
3280
|
-
|
|
3281
3335
|
case 28:
|
|
3282
3336
|
result = _context6.sent;
|
|
3283
3337
|
console.log('第一个章 签章结果', result);
|
|
3284
|
-
|
|
3285
3338
|
case 30:
|
|
3286
3339
|
index++;
|
|
3287
3340
|
_context6.next = 9;
|
|
3288
3341
|
break;
|
|
3289
|
-
|
|
3290
3342
|
case 33:
|
|
3291
3343
|
console.log('multipleSign 签章的结果', result);
|
|
3292
3344
|
return _context6.abrupt("return", result);
|
|
3293
|
-
|
|
3294
3345
|
case 35:
|
|
3295
3346
|
case "end":
|
|
3296
3347
|
return _context6.stop();
|
|
@@ -3302,8 +3353,8 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
3302
3353
|
});
|
|
3303
3354
|
// CONCATENATED MODULE: ./src/packages/ukey/WzhSignChrome.vue?vue&type=script&lang=js&
|
|
3304
3355
|
/* harmony default export */ var ukey_WzhSignChromevue_type_script_lang_js_ = (WzhSignChromevue_type_script_lang_js_);
|
|
3305
|
-
// EXTERNAL MODULE: ./src/packages/ukey/WzhSignChrome.vue?vue&type=style&index=0&id=
|
|
3306
|
-
var
|
|
3356
|
+
// EXTERNAL MODULE: ./src/packages/ukey/WzhSignChrome.vue?vue&type=style&index=0&id=4934471a&lang=less&scoped=true&
|
|
3357
|
+
var WzhSignChromevue_type_style_index_0_id_4934471a_lang_less_scoped_true_ = __webpack_require__("3a06");
|
|
3307
3358
|
|
|
3308
3359
|
// CONCATENATED MODULE: ./src/packages/ukey/WzhSignChrome.vue
|
|
3309
3360
|
|
|
@@ -3316,11 +3367,11 @@ var WzhSignChromevue_type_style_index_0_id_74a914d1_lang_less_scoped_true_ = __w
|
|
|
3316
3367
|
|
|
3317
3368
|
var WzhSignChrome_component = normalizeComponent(
|
|
3318
3369
|
ukey_WzhSignChromevue_type_script_lang_js_,
|
|
3319
|
-
|
|
3320
|
-
|
|
3370
|
+
WzhSignChromevue_type_template_id_4934471a_scoped_true_render,
|
|
3371
|
+
WzhSignChromevue_type_template_id_4934471a_scoped_true_staticRenderFns,
|
|
3321
3372
|
false,
|
|
3322
3373
|
null,
|
|
3323
|
-
"
|
|
3374
|
+
"4934471a",
|
|
3324
3375
|
null
|
|
3325
3376
|
|
|
3326
3377
|
)
|
|
@@ -3335,6 +3386,7 @@ var WzhSignChrome_component = normalizeComponent(
|
|
|
3335
3386
|
//
|
|
3336
3387
|
|
|
3337
3388
|
|
|
3389
|
+
|
|
3338
3390
|
/* harmony default export */ var SignNewvue_type_script_lang_js_ = ({
|
|
3339
3391
|
components: {
|
|
3340
3392
|
WzhSign: WzhSign,
|
|
@@ -3352,29 +3404,42 @@ var WzhSignChrome_component = normalizeComponent(
|
|
|
3352
3404
|
required: true
|
|
3353
3405
|
}
|
|
3354
3406
|
},
|
|
3355
|
-
created: function created() {
|
|
3407
|
+
created: function created() {
|
|
3408
|
+
this.getBrowserInfo();
|
|
3356
3409
|
},
|
|
3357
3410
|
mounted: function mounted() {
|
|
3358
3411
|
if (this.isIE) {
|
|
3412
|
+
console.log('--- ie sign');
|
|
3359
3413
|
this.child = this.$refs.signIe;
|
|
3360
3414
|
} else {
|
|
3415
|
+
console.log('--- chrome sign');
|
|
3361
3416
|
this.child = this.$refs.signChrome;
|
|
3362
3417
|
}
|
|
3363
3418
|
},
|
|
3364
3419
|
methods: {
|
|
3365
|
-
getBrowserInfo: function getBrowserInfo() {
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
|
|
3420
|
+
getBrowserInfo: function getBrowserInfo() {
|
|
3421
|
+
var _navigator = navigator,
|
|
3422
|
+
userAgent = _navigator.userAgent,
|
|
3423
|
+
plugins = _navigator.plugins,
|
|
3424
|
+
mimeTypes = _navigator.mimeTypes;
|
|
3425
|
+
if (userAgent.indexOf('Trident') >= 0) {
|
|
3426
|
+
this.isIE = true;
|
|
3427
|
+
return true;
|
|
3428
|
+
}
|
|
3429
|
+
// 360的急速模式,需要使用ie签署控件(無法實現,或不稳定,360会快速修复让用户无法检测)
|
|
3430
|
+
// 测试后,360的急速模式 可以和chrome 用一个签署代码了
|
|
3431
|
+
// const plugin360 = [
|
|
3432
|
+
// '360', '360SoftMgrPlugin', 'ActiveX hosting plugin for Firefox/Chrome',
|
|
3433
|
+
// 'GamePlugin', 'QQMail Plugin', 'Tencent QQ', 'npQQPhotoDrawEx']
|
|
3434
|
+
// if (plugins['360SoftMgrPlugin']) {
|
|
3371
3435
|
// this.isIE = true
|
|
3372
|
-
// return
|
|
3436
|
+
// return true
|
|
3373
3437
|
// }
|
|
3374
|
-
//
|
|
3375
|
-
// if (appVersion.indexOf(' WOW64') >= 0) {
|
|
3438
|
+
// if (mimeTypes['application/360softmgrplugin']) {
|
|
3376
3439
|
// this.isIE = true
|
|
3440
|
+
// return true
|
|
3377
3441
|
// }
|
|
3442
|
+
this.isIE = false;
|
|
3378
3443
|
}
|
|
3379
3444
|
}
|
|
3380
3445
|
});
|
|
@@ -3390,8 +3455,8 @@ var WzhSignChrome_component = normalizeComponent(
|
|
|
3390
3455
|
|
|
3391
3456
|
var SignNew_component = normalizeComponent(
|
|
3392
3457
|
ukey_SignNewvue_type_script_lang_js_,
|
|
3393
|
-
|
|
3394
|
-
|
|
3458
|
+
SignNewvue_type_template_id_6fac980f_render,
|
|
3459
|
+
SignNewvue_type_template_id_6fac980f_staticRenderFns,
|
|
3395
3460
|
false,
|
|
3396
3461
|
null,
|
|
3397
3462
|
null,
|