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