@toolspack/ttd-common 1.1.4 → 1.1.5
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/.eslintignore +5 -5
- package/.eslintrc.js +52 -52
- package/README.md +46 -45
- package/lib/ttd-common.common.js +72 -70
- package/lib/ttd-common.umd.js +72 -70
- package/lib/ttd-common.umd.min.js +2 -2
- package/package.json +36 -36
- package/postcss.config.js +1 -1
- package/src/App.vue +53 -53
- package/src/main.js +8 -8
- package/src/packages/cfca/CfcaPdf.vue +649 -649
- package/src/packages/cfca/cfca-pdf.less +177 -177
- package/src/packages/index.js +13 -13
- package/src/packages/ukey/SignNew.vue +62 -62
- package/src/packages/ukey/Ukey.vue +170 -170
- package/src/packages/ukey/WzhSign.vue +328 -327
- package/src/packages/ukey/WzhSignChrome.vue +250 -250
- package/src/packages/utils/index.js +16 -16
- package/src/styles/base.scss +3 -3
- package/src/styles/common.scss +22 -22
- package/src/styles/components/el-pagination.scss +21 -21
- package/src/styles/components/file-group.scss +4 -4
- package/src/styles/components/message.scss +53 -53
- package/src/styles/components/reset.scss +8 -8
- package/src/styles/components/table.scss +35 -35
- package/src/styles/input.less +59 -59
package/.eslintignore
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
node_modules
|
|
2
|
-
public
|
|
3
|
-
pdf.js
|
|
4
|
-
pdf.worker.js
|
|
5
|
-
pdf.worker.min.js
|
|
1
|
+
node_modules
|
|
2
|
+
public
|
|
3
|
+
pdf.js
|
|
4
|
+
pdf.worker.js
|
|
5
|
+
pdf.worker.min.js
|
|
6
6
|
**/pdf-view/build/*.js
|
package/.eslintrc.js
CHANGED
|
@@ -1,52 +1,52 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
env: {
|
|
4
|
-
node: true,
|
|
5
|
-
},
|
|
6
|
-
extends: [
|
|
7
|
-
'plugin:vue/essential',
|
|
8
|
-
'@vue/airbnb',
|
|
9
|
-
],
|
|
10
|
-
rules: {
|
|
11
|
-
'template-curly-spacing': 'off',
|
|
12
|
-
semi: 0,
|
|
13
|
-
'no-unused-vars': 0,
|
|
14
|
-
'consistent-return': 0,
|
|
15
|
-
'max-len': 0,
|
|
16
|
-
'func-names': 0,
|
|
17
|
-
'no-console': 'off',
|
|
18
|
-
'no-control-regex': 'off',
|
|
19
|
-
'comma-dangle': ['error', 'always-multiline'],
|
|
20
|
-
'no-mixed-spaces-and-tabs': 'off',
|
|
21
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
22
|
-
'no-alert': 0,
|
|
23
|
-
'no-underscore-dangle': 0,
|
|
24
|
-
'no-await-in-loop': 0,
|
|
25
|
-
'no-restricted-syntax': 0,
|
|
26
|
-
'prefer-destructuring': 0,
|
|
27
|
-
'import/no-cycle': 0,
|
|
28
|
-
'import/prefer-default-export': 0,
|
|
29
|
-
camelcase: 'off',
|
|
30
|
-
'guard-for-in': 0,
|
|
31
|
-
'no-param-reassign': 0,
|
|
32
|
-
'no-plusplus': 0,
|
|
33
|
-
'no-unused-expressions': 0,
|
|
34
|
-
"linebreak-
|
|
35
|
-
'react/jsx-filename-extension': [0, { extensions: ['.js', '.jsx'] }],
|
|
36
|
-
},
|
|
37
|
-
settings: {
|
|
38
|
-
'import/resolver': {
|
|
39
|
-
node: {
|
|
40
|
-
paths: ['src'],
|
|
41
|
-
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
},
|
|
45
|
-
globals: {
|
|
46
|
-
PDFCtrl: true,
|
|
47
|
-
require: true,
|
|
48
|
-
},
|
|
49
|
-
parserOptions: {
|
|
50
|
-
parser: 'babel-eslint',
|
|
51
|
-
},
|
|
52
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
node: true,
|
|
5
|
+
},
|
|
6
|
+
extends: [
|
|
7
|
+
'plugin:vue/essential',
|
|
8
|
+
'@vue/airbnb',
|
|
9
|
+
],
|
|
10
|
+
rules: {
|
|
11
|
+
'template-curly-spacing': 'off',
|
|
12
|
+
semi: 0,
|
|
13
|
+
'no-unused-vars': 0,
|
|
14
|
+
'consistent-return': 0,
|
|
15
|
+
'max-len': 0,
|
|
16
|
+
'func-names': 0,
|
|
17
|
+
'no-console': 'off',
|
|
18
|
+
'no-control-regex': 'off',
|
|
19
|
+
'comma-dangle': ['error', 'always-multiline'],
|
|
20
|
+
'no-mixed-spaces-and-tabs': 'off',
|
|
21
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
|
|
22
|
+
'no-alert': 0,
|
|
23
|
+
'no-underscore-dangle': 0,
|
|
24
|
+
'no-await-in-loop': 0,
|
|
25
|
+
'no-restricted-syntax': 0,
|
|
26
|
+
'prefer-destructuring': 0,
|
|
27
|
+
'import/no-cycle': 0,
|
|
28
|
+
'import/prefer-default-export': 0,
|
|
29
|
+
camelcase: 'off',
|
|
30
|
+
'guard-for-in': 0,
|
|
31
|
+
'no-param-reassign': 0,
|
|
32
|
+
'no-plusplus': 0,
|
|
33
|
+
'no-unused-expressions': 0,
|
|
34
|
+
"linebreak-style": 0,
|
|
35
|
+
'react/jsx-filename-extension': [0, { extensions: ['.js', '.jsx'] }],
|
|
36
|
+
},
|
|
37
|
+
settings: {
|
|
38
|
+
'import/resolver': {
|
|
39
|
+
node: {
|
|
40
|
+
paths: ['src'],
|
|
41
|
+
extensions: ['.js', '.jsx', '.ts', '.tsx'],
|
|
42
|
+
},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
globals: {
|
|
46
|
+
PDFCtrl: true,
|
|
47
|
+
require: true,
|
|
48
|
+
},
|
|
49
|
+
parserOptions: {
|
|
50
|
+
parser: 'babel-eslint',
|
|
51
|
+
},
|
|
52
|
+
}
|
package/README.md
CHANGED
|
@@ -1,45 +1,46 @@
|
|
|
1
|
-
# ttd-bamboo
|
|
2
|
-
|
|
3
|
-
--target: 构建目标,默认为应用模式。这里修改为 lib 启用库模式。
|
|
4
|
-
|
|
5
|
-
--dest : 输出目录,默认 dist。这里我们改成 lib
|
|
6
|
-
|
|
7
|
-
[entry]: 最后一个参数为入口文件,默认为 src/App.vue。这里我们指定编译 packages/ 组件库目录。
|
|
8
|
-
|
|
9
|
-
# 调试方法
|
|
10
|
-
修改 package.json的main
|
|
11
|
-
"main": "lib/ttd-common.umd.min.js",
|
|
12
|
-
"main": "src/packages/index.js",
|
|
13
|
-
执行 npm link ,
|
|
14
|
-
然后在开发项目就可以用 npm link @toolspack/ttd-common(项目名或文件夹名称) 来使用 本组件
|
|
15
|
-
|
|
16
|
-
# 发布项目
|
|
17
|
-
(不能和上次版本一样) npm run lib (打包), 打包完成后,执行npm publish
|
|
18
|
-
|
|
19
|
-
# ukey签章,是以左上角为原点,使用前端打的标签位置 除以1.5,
|
|
20
|
-
# 套印签署,是以左下角为原点 除以1.5 并且 印章图片也是左下角为原点
|
|
21
|
-
# 服务端签署(wzh), 同套印
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
### 问题:
|
|
25
|
-
1. 使用 SignFile_KeyImage 签章时, 如果ukey内有多个印章, 只能选默认的第一个
|
|
26
|
-
2. 使用 SelectSignCert 选择印章对 SignFile_KeyImage, ReadKeyImage 无效
|
|
27
|
-
### 解决方案:
|
|
28
|
-
1. 使用 SelectSignCert 选择印章
|
|
29
|
-
2. 从服务端获取对应的印章图片
|
|
30
|
-
3. 用 SignFile_Image 进行签署
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
0.4.9: 更换依赖包位置: https://wsp.totodi.com/cfca_plug/
|
|
34
|
-
0.5.0: 支持chrome,edge
|
|
35
|
-
0.5.1: 支持chrome,edge 获取ukey图片
|
|
36
|
-
0.5.2: 添加没有扩展时报错,并babel 转化es5(否则ie打不开)
|
|
37
|
-
0.5.3: 360急速支持(加入embed元素)
|
|
38
|
-
0.5.4: 初始化失败不在报错,使用时报
|
|
39
|
-
0.5.5: 初始化不兼容浏览器报错改为console
|
|
40
|
-
0.5.6: 关闭chrome的支持(临时线上需要)
|
|
41
|
-
1.0.0: 加入pdfjs: 2.16.105 (此版本不支持ie, 导入需要使用try-chatch)
|
|
42
|
-
1.0.1: 移除pdfjs: 2.16.105 ,单独打包
|
|
43
|
-
1.1.0: 签署效验: 1校验前端上行 序列号和 ukey 类型是否匹配 2 校验上行的印章md5 和 后端获取的印章md5 是否匹配
|
|
44
|
-
1.1.2: 添加userId上行
|
|
45
|
-
1.1.4: sealId印章图片的id
|
|
1
|
+
# ttd-bamboo
|
|
2
|
+
|
|
3
|
+
--target: 构建目标,默认为应用模式。这里修改为 lib 启用库模式。
|
|
4
|
+
|
|
5
|
+
--dest : 输出目录,默认 dist。这里我们改成 lib
|
|
6
|
+
|
|
7
|
+
[entry]: 最后一个参数为入口文件,默认为 src/App.vue。这里我们指定编译 packages/ 组件库目录。
|
|
8
|
+
|
|
9
|
+
# 调试方法
|
|
10
|
+
修改 package.json的main
|
|
11
|
+
"main": "lib/ttd-common.umd.min.js",
|
|
12
|
+
"main": "src/packages/index.js",
|
|
13
|
+
执行 npm link ,
|
|
14
|
+
然后在开发项目就可以用 npm link @toolspack/ttd-common(项目名或文件夹名称) 来使用 本组件
|
|
15
|
+
|
|
16
|
+
# 发布项目
|
|
17
|
+
(不能和上次版本一样) npm run lib (打包), 打包完成后,执行npm publish
|
|
18
|
+
|
|
19
|
+
# ukey签章,是以左上角为原点,使用前端打的标签位置 除以1.5,
|
|
20
|
+
# 套印签署,是以左下角为原点 除以1.5 并且 印章图片也是左下角为原点
|
|
21
|
+
# 服务端签署(wzh), 同套印
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### 问题:
|
|
25
|
+
1. 使用 SignFile_KeyImage 签章时, 如果ukey内有多个印章, 只能选默认的第一个
|
|
26
|
+
2. 使用 SelectSignCert 选择印章对 SignFile_KeyImage, ReadKeyImage 无效
|
|
27
|
+
### 解决方案:
|
|
28
|
+
1. 使用 SelectSignCert 选择印章
|
|
29
|
+
2. 从服务端获取对应的印章图片
|
|
30
|
+
3. 用 SignFile_Image 进行签署
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
0.4.9: 更换依赖包位置: https://wsp.totodi.com/cfca_plug/
|
|
34
|
+
0.5.0: 支持chrome,edge
|
|
35
|
+
0.5.1: 支持chrome,edge 获取ukey图片
|
|
36
|
+
0.5.2: 添加没有扩展时报错,并babel 转化es5(否则ie打不开)
|
|
37
|
+
0.5.3: 360急速支持(加入embed元素)
|
|
38
|
+
0.5.4: 初始化失败不在报错,使用时报
|
|
39
|
+
0.5.5: 初始化不兼容浏览器报错改为console
|
|
40
|
+
0.5.6: 关闭chrome的支持(临时线上需要)
|
|
41
|
+
1.0.0: 加入pdfjs: 2.16.105 (此版本不支持ie, 导入需要使用try-chatch)
|
|
42
|
+
1.0.1: 移除pdfjs: 2.16.105 ,单独打包
|
|
43
|
+
1.1.0: 签署效验: 1校验前端上行 序列号和 ukey 类型是否匹配 2 校验上行的印章md5 和 后端获取的印章md5 是否匹配
|
|
44
|
+
1.1.2: 添加userId上行
|
|
45
|
+
1.1.4: sealId印章图片的id
|
|
46
|
+
1.1.5 : 显示后端返回error msg
|
package/lib/ttd-common.common.js
CHANGED
|
@@ -87,6 +87,20 @@ module.exports =
|
|
|
87
87
|
/************************************************************************/
|
|
88
88
|
/******/ ({
|
|
89
89
|
|
|
90
|
+
/***/ "17c2":
|
|
91
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
92
|
+
|
|
93
|
+
// Imports
|
|
94
|
+
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
95
|
+
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
96
|
+
// Module
|
|
97
|
+
exports.push([module.i, ".CryptoAgent-wrapper[data-v-35169d30]{height:0;width:0;position:absolute;left:-5000px}", ""]);
|
|
98
|
+
// Exports
|
|
99
|
+
module.exports = exports;
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
/***/ }),
|
|
103
|
+
|
|
90
104
|
/***/ "1ad4":
|
|
91
105
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
92
106
|
|
|
@@ -96,21 +110,6 @@ module.exports =
|
|
|
96
110
|
/* unused harmony reexport * */
|
|
97
111
|
|
|
98
112
|
|
|
99
|
-
/***/ }),
|
|
100
|
-
|
|
101
|
-
/***/ "1fd9":
|
|
102
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
103
|
-
|
|
104
|
-
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
105
|
-
|
|
106
|
-
// load the styles
|
|
107
|
-
var content = __webpack_require__("cf0d");
|
|
108
|
-
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
109
|
-
if(content.locals) module.exports = content.locals;
|
|
110
|
-
// add the styles to the DOM
|
|
111
|
-
var add = __webpack_require__("499e").default
|
|
112
|
-
var update = add("4092b311", content, true, {"sourceMap":false,"shadowMode":false});
|
|
113
|
-
|
|
114
113
|
/***/ }),
|
|
115
114
|
|
|
116
115
|
/***/ "24fb":
|
|
@@ -212,6 +211,17 @@ function toComment(sourceMap) {
|
|
|
212
211
|
return "/*# ".concat(data, " */");
|
|
213
212
|
}
|
|
214
213
|
|
|
214
|
+
/***/ }),
|
|
215
|
+
|
|
216
|
+
/***/ "3460":
|
|
217
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
218
|
+
|
|
219
|
+
"use strict";
|
|
220
|
+
/* 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_35169d30_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("824a");
|
|
221
|
+
/* 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_35169d30_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_35169d30_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
222
|
+
/* unused harmony reexport * */
|
|
223
|
+
|
|
224
|
+
|
|
215
225
|
/***/ }),
|
|
216
226
|
|
|
217
227
|
/***/ "3a50":
|
|
@@ -507,6 +517,21 @@ exports.push([module.i, ".cfca-pdf{width:100%;min-height:100%;position:relative;
|
|
|
507
517
|
module.exports = exports;
|
|
508
518
|
|
|
509
519
|
|
|
520
|
+
/***/ }),
|
|
521
|
+
|
|
522
|
+
/***/ "824a":
|
|
523
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
524
|
+
|
|
525
|
+
// style-loader: Adds some css to the DOM by adding a <style> tag
|
|
526
|
+
|
|
527
|
+
// load the styles
|
|
528
|
+
var content = __webpack_require__("17c2");
|
|
529
|
+
if(typeof content === 'string') content = [[module.i, content, '']];
|
|
530
|
+
if(content.locals) module.exports = content.locals;
|
|
531
|
+
// add the styles to the DOM
|
|
532
|
+
var add = __webpack_require__("499e").default
|
|
533
|
+
var update = add("05fb8df6", content, true, {"sourceMap":false,"shadowMode":false});
|
|
534
|
+
|
|
510
535
|
/***/ }),
|
|
511
536
|
|
|
512
537
|
/***/ "8875":
|
|
@@ -607,17 +632,6 @@ if(content.locals) module.exports = content.locals;
|
|
|
607
632
|
var add = __webpack_require__("499e").default
|
|
608
633
|
var update = add("9892f504", content, true, {"sourceMap":false,"shadowMode":false});
|
|
609
634
|
|
|
610
|
-
/***/ }),
|
|
611
|
-
|
|
612
|
-
/***/ "9bd7":
|
|
613
|
-
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
614
|
-
|
|
615
|
-
"use strict";
|
|
616
|
-
/* 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_4ff3c96d_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("1fd9");
|
|
617
|
-
/* 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_4ff3c96d_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_4ff3c96d_lang_less_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
|
618
|
-
/* unused harmony reexport * */
|
|
619
|
-
|
|
620
|
-
|
|
621
635
|
/***/ }),
|
|
622
636
|
|
|
623
637
|
/***/ "ad52":
|
|
@@ -646,20 +660,6 @@ exports.push([module.i, ".CryptoAgent-wrapper[data-v-225ea8bc]{height:0;width:0;
|
|
|
646
660
|
module.exports = exports;
|
|
647
661
|
|
|
648
662
|
|
|
649
|
-
/***/ }),
|
|
650
|
-
|
|
651
|
-
/***/ "cf0d":
|
|
652
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
653
|
-
|
|
654
|
-
// Imports
|
|
655
|
-
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__("24fb");
|
|
656
|
-
exports = ___CSS_LOADER_API_IMPORT___(false);
|
|
657
|
-
// Module
|
|
658
|
-
exports.push([module.i, ".CryptoAgent-wrapper[data-v-4ff3c96d]{height:0;width:0;position:absolute;left:-5000px}", ""]);
|
|
659
|
-
// Exports
|
|
660
|
-
module.exports = exports;
|
|
661
|
-
|
|
662
|
-
|
|
663
663
|
/***/ }),
|
|
664
664
|
|
|
665
665
|
/***/ "d75a":
|
|
@@ -719,7 +719,7 @@ if (typeof window !== 'undefined') {
|
|
|
719
719
|
// Indicate to webpack that this file can be concatenated
|
|
720
720
|
/* harmony default export */ var setPublicPath = (null);
|
|
721
721
|
|
|
722
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
722
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a07b9b12-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/cfca/CfcaPdf.vue?vue&type=template&id=cd924424&
|
|
723
723
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"cfca-pdf"},[(_vm.isIE)?[_c('div',{staticClass:"cfca-pdf-wrapper",style:({visibility: _vm.visible})},[_c('div',{class:{'cfca-left': true, 'active': _vm.active==='left', 'disabled': _vm.pageNo <= 1},on:{"click":function($event){return _vm.GoToPrevPage()}}},[_c('span',{staticClass:"el-icon-arrow-left"})]),_c('div',{staticClass:"cfca-content"},[_c('div',{staticClass:"cfca-page"},[_c('div',{staticClass:"fl cfca-title"},[_c('h2',[_vm._v(_vm._s(_vm.title))])]),_c('div',{staticClass:"fr"},[_vm._v(" "+_vm._s(_vm.pageNo)+"/"+_vm._s(_vm.pageCount)+" "),_c('span',{staticClass:"di"},[_vm._v("第")]),_c('el-input',{staticClass:"page-num",attrs:{"size":"mini"},on:{"change":_vm.GoToPage},nativeOn:{"keyup":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,"enter",13,$event.key,"Enter")){ return null; }return _vm.GoToPage($event)}},model:{value:(_vm.inputPage),callback:function ($$v) {_vm.inputPage=$$v},expression:"inputPage"}}),_vm._v("页 ")],1)]),_c('div',{ref:"PDFCtrlPlaceHolder",staticClass:"cfca-object"},[_c('div',{staticClass:"obj-wrapper",on:{"dragenter":_vm.onDragEnter,"dragover":_vm.onDragOver,"drop":_vm.onDrop}},[(this.idstr)?[_c('object',{ref:"pdfCtrl",staticClass:"PDFCtrlObject",staticStyle:{"position":"relative","z-Index":"1"},attrs:{"id":'PDFCtrl' + this.idstr,"tabindex":0,"codebase":_vm.publicPath + _vm.codebase,"classid":"clsid:6F60FE31-F827-4295-8AC4-775EF7478A6A","width":"100%","height":"100%"}},[_c('param',{attrs:{"name":"wmode","value":"transparent"}}),_c('param',{attrs:{"name":"showToolbar","value":"false"}})])]:[_c('object',{ref:"pdfCtrl",staticClass:"PDFCtrlObject",staticStyle:{"position":"relative","z-Index":"1"},attrs:{"tabindex":0,"codebase":_vm.publicPath + _vm.codebase,"classid":"clsid:6F60FE31-F827-4295-8AC4-775EF7478A6A","width":"100%","height":"100%"}},[_c('param',{attrs:{"name":"wmode","value":"transparent"}}),_c('param',{attrs:{"name":"showToolbar","value":"false"}})])]],2)]),_c('div',{staticClass:"cfca-control"},[_vm._t("default")],2)]),_c('div',{class:{'cfca-right': true, 'active': _vm.active==='right', 'disabled': _vm.pageNo >= _vm.pageCount},on:{"click":function($event){return _vm.GoToNextPage()}}},[_c('span',{staticClass:"el-icon-arrow-right"})])])]:[_c('div',{staticClass:"red",staticStyle:{"height":"350px","padding":"20px","position":"relative","margin-bottom":"20px"}},[_vm._v(" 提示:当前浏览器不支持控件预览,请切换IE浏览器进行查看 "),_c('div',{staticClass:"tc",staticStyle:{"position":"absolute","bottom":"0","left":"0","right":"0"}},[_vm._t("default")],2)])]],2)}
|
|
724
724
|
var staticRenderFns = []
|
|
725
725
|
|
|
@@ -1870,7 +1870,7 @@ var component = normalizeComponent(
|
|
|
1870
1870
|
)
|
|
1871
1871
|
|
|
1872
1872
|
/* harmony default export */ var CfcaPdf = (component.exports);
|
|
1873
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1873
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a07b9b12-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/packages/ukey/Ukey.vue?vue&type=template&id=225ea8bc&scoped=true&
|
|
1874
1874
|
var Ukeyvue_type_template_id_225ea8bc_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"CryptoAgent-wrapper"},[(_vm.isIE)?[_c('object',{ref:"CryptoAgent",attrs:{"codebase":_vm.publicPath + _vm.codebase,"classid":_vm.classid}})]:[_c('embed',{ref:"CryptoAgent",staticStyle:{"height":"0px","width":"0px"},attrs:{"type":"application/npCryptoKit.Ultimate.x86"}})]],2)}
|
|
1875
1875
|
var Ukeyvue_type_template_id_225ea8bc_scoped_true_staticRenderFns = []
|
|
1876
1876
|
|
|
@@ -1895,10 +1895,10 @@ var Ukeyvue_type_template_id_225ea8bc_scoped_true_staticRenderFns = []
|
|
|
1895
1895
|
//
|
|
1896
1896
|
//
|
|
1897
1897
|
|
|
1898
|
-
/* ukey 签章
|
|
1899
|
-
* cfca 有2中签章方式: 1 消息验签,2 文件验签, 我们使用的是消息验签的方式
|
|
1900
|
-
* 下面是 签章 的公用方法,通过mixin 使用
|
|
1901
|
-
*
|
|
1898
|
+
/* ukey 签章
|
|
1899
|
+
* cfca 有2中签章方式: 1 消息验签,2 文件验签, 我们使用的是消息验签的方式
|
|
1900
|
+
* 下面是 签章 的公用方法,通过mixin 使用
|
|
1901
|
+
*
|
|
1902
1902
|
* */
|
|
1903
1903
|
|
|
1904
1904
|
// 消息签名, 生成Base64 编码的 PKCS#7 签名结果
|
|
@@ -1967,8 +1967,8 @@ function Ukeyvue_type_script_lang_js_SignOnClick() {
|
|
|
1967
1967
|
this.onLoad();
|
|
1968
1968
|
},
|
|
1969
1969
|
methods: {
|
|
1970
|
-
/**
|
|
1971
|
-
* 初始化验签工具包,加载 验签空间(object)
|
|
1970
|
+
/**
|
|
1971
|
+
* 初始化验签工具包,加载 验签空间(object)
|
|
1972
1972
|
*/
|
|
1973
1973
|
onLoad: function onLoad() {
|
|
1974
1974
|
if (this.CryptoAgent) {
|
|
@@ -2066,12 +2066,12 @@ var Ukey_component = normalizeComponent(
|
|
|
2066
2066
|
)
|
|
2067
2067
|
|
|
2068
2068
|
/* harmony default export */ var Ukey = (Ukey_component.exports);
|
|
2069
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2070
|
-
var
|
|
2071
|
-
var
|
|
2069
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a07b9b12-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=35169d30&scoped=true&
|
|
2070
|
+
var WzhSignvue_type_template_id_35169d30_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"CryptoAgent-wrapper"},[(_vm.isIE)?_c('object',{ref:"CryptoAgent",attrs:{"codebase":_vm.publicPath + _vm.codebase,"classid":_vm.classid}}):_c('embed',{ref:"CryptoAgent",staticStyle:{"height":"0px","width":"0px"},attrs:{"type":"application/npCryptoKit.ToToDi.x86"}})])}
|
|
2071
|
+
var WzhSignvue_type_template_id_35169d30_scoped_true_staticRenderFns = []
|
|
2072
2072
|
|
|
2073
2073
|
|
|
2074
|
-
// CONCATENATED MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=template&id=
|
|
2074
|
+
// CONCATENATED MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=template&id=35169d30&scoped=true&
|
|
2075
2075
|
|
|
2076
2076
|
// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
2077
2077
|
|
|
@@ -2185,8 +2185,8 @@ function _objectSpread2(target) {
|
|
|
2185
2185
|
this.onLoad();
|
|
2186
2186
|
},
|
|
2187
2187
|
methods: {
|
|
2188
|
-
/**
|
|
2189
|
-
* 初始化验签工具包,加载 验签空间(object)
|
|
2188
|
+
/**
|
|
2189
|
+
* 初始化验签工具包,加载 验签空间(object)
|
|
2190
2190
|
*/
|
|
2191
2191
|
onLoad: function onLoad() {
|
|
2192
2192
|
if (this.CryptoAgent) {
|
|
@@ -2361,7 +2361,7 @@ function _objectSpread2(target) {
|
|
|
2361
2361
|
getSignHashValue: function getSignHashValue(item, fileItem, params) {
|
|
2362
2362
|
var _this = this;
|
|
2363
2363
|
return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
2364
|
-
var sourceHashData, _yield$_this$getHashV, code, data, signature;
|
|
2364
|
+
var sourceHashData, _yield$_this$getHashV, code, data, msg, _data$bean, errorMsg, signature;
|
|
2365
2365
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
2366
2366
|
while (1) switch (_context.prev = _context.next) {
|
|
2367
2367
|
case 0:
|
|
@@ -2372,18 +2372,20 @@ function _objectSpread2(target) {
|
|
|
2372
2372
|
_yield$_this$getHashV = _context.sent;
|
|
2373
2373
|
code = _yield$_this$getHashV.code;
|
|
2374
2374
|
data = _yield$_this$getHashV.data;
|
|
2375
|
+
msg = _yield$_this$getHashV.msg;
|
|
2375
2376
|
if (code === 0) {
|
|
2376
2377
|
if ("".concat(data.bean.code) === '200') {
|
|
2377
2378
|
sourceHashData = data.bean.pdfHash;
|
|
2378
2379
|
}
|
|
2379
2380
|
}
|
|
2380
2381
|
if (sourceHashData) {
|
|
2381
|
-
_context.next =
|
|
2382
|
+
_context.next = 12;
|
|
2382
2383
|
break;
|
|
2383
2384
|
}
|
|
2384
|
-
|
|
2385
|
+
errorMsg = msg || (data === null || data === void 0 ? void 0 : data.msg) || (data === null || data === void 0 || (_data$bean = data.bean) === null || _data$bean === void 0 ? void 0 : _data$bean.msg) || 'CFCA计算HASH值失败!';
|
|
2386
|
+
alert(errorMsg);
|
|
2385
2387
|
return _context.abrupt("return", false);
|
|
2386
|
-
case
|
|
2388
|
+
case 12:
|
|
2387
2389
|
// 将原文Hash值的Base64编码解码后,对其进行PKCS#7分离式签名
|
|
2388
2390
|
signature = '';
|
|
2389
2391
|
try {
|
|
@@ -2392,17 +2394,17 @@ function _objectSpread2(target) {
|
|
|
2392
2394
|
_this.ShowErrorInfo();
|
|
2393
2395
|
}
|
|
2394
2396
|
if (!signature) {
|
|
2395
|
-
_context.next =
|
|
2397
|
+
_context.next = 16;
|
|
2396
2398
|
break;
|
|
2397
2399
|
}
|
|
2398
2400
|
return _context.abrupt("return", {
|
|
2399
2401
|
signature: signature,
|
|
2400
2402
|
id: data.bean.id
|
|
2401
2403
|
});
|
|
2402
|
-
case
|
|
2404
|
+
case 16:
|
|
2403
2405
|
alert('获取PKCS#7分离式签名失败!');
|
|
2404
2406
|
return _context.abrupt("return", false);
|
|
2405
|
-
case
|
|
2407
|
+
case 18:
|
|
2406
2408
|
case "end":
|
|
2407
2409
|
return _context.stop();
|
|
2408
2410
|
}
|
|
@@ -2562,8 +2564,8 @@ function _objectSpread2(target) {
|
|
|
2562
2564
|
});
|
|
2563
2565
|
// CONCATENATED MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=script&lang=js&
|
|
2564
2566
|
/* harmony default export */ var ukey_WzhSignvue_type_script_lang_js_ = (WzhSignvue_type_script_lang_js_);
|
|
2565
|
-
// EXTERNAL MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=style&index=0&id=
|
|
2566
|
-
var
|
|
2567
|
+
// EXTERNAL MODULE: ./src/packages/ukey/WzhSign.vue?vue&type=style&index=0&id=35169d30&lang=less&scoped=true&
|
|
2568
|
+
var WzhSignvue_type_style_index_0_id_35169d30_lang_less_scoped_true_ = __webpack_require__("3460");
|
|
2567
2569
|
|
|
2568
2570
|
// CONCATENATED MODULE: ./src/packages/ukey/WzhSign.vue
|
|
2569
2571
|
|
|
@@ -2576,24 +2578,24 @@ var WzhSignvue_type_style_index_0_id_4ff3c96d_lang_less_scoped_true_ = __webpack
|
|
|
2576
2578
|
|
|
2577
2579
|
var WzhSign_component = normalizeComponent(
|
|
2578
2580
|
ukey_WzhSignvue_type_script_lang_js_,
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
+
WzhSignvue_type_template_id_35169d30_scoped_true_render,
|
|
2582
|
+
WzhSignvue_type_template_id_35169d30_scoped_true_staticRenderFns,
|
|
2581
2583
|
false,
|
|
2582
2584
|
null,
|
|
2583
|
-
"
|
|
2585
|
+
"35169d30",
|
|
2584
2586
|
null
|
|
2585
2587
|
|
|
2586
2588
|
)
|
|
2587
2589
|
|
|
2588
2590
|
/* harmony default export */ var WzhSign = (WzhSign_component.exports);
|
|
2589
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2591
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a07b9b12-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&
|
|
2590
2592
|
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)}
|
|
2591
2593
|
var SignNewvue_type_template_id_6fac980f_staticRenderFns = []
|
|
2592
2594
|
|
|
2593
2595
|
|
|
2594
2596
|
// CONCATENATED MODULE: ./src/packages/ukey/SignNew.vue?vue&type=template&id=6fac980f&
|
|
2595
2597
|
|
|
2596
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
2598
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"a07b9b12-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=fe79e680&scoped=true&
|
|
2597
2599
|
var WzhSignChromevue_type_template_id_fe79e680_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"CryptoAgent-wrapper"})}
|
|
2598
2600
|
var WzhSignChromevue_type_template_id_fe79e680_scoped_true_staticRenderFns = []
|
|
2599
2601
|
|
|
@@ -3047,8 +3049,8 @@ nmCryptokit.prototype.GetLastErrorDesc = function () {
|
|
|
3047
3049
|
this.onLoad();
|
|
3048
3050
|
},
|
|
3049
3051
|
methods: {
|
|
3050
|
-
/**
|
|
3051
|
-
* 初始化验签工具包,加载 验签空间(object)
|
|
3052
|
+
/**
|
|
3053
|
+
* 初始化验签工具包,加载 验签空间(object)
|
|
3052
3054
|
*/
|
|
3053
3055
|
onLoad: function onLoad() {
|
|
3054
3056
|
if (this.CryptoAgent) {
|