unify-external-plugin-platform 0.0.3-36 → 0.0.3-38

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.
@@ -83083,1130 +83083,6 @@ id_card_reader_demo.install = Vue => {
83083
83083
  Vue.component(id_card_reader_demo.name, id_card_reader_demo);
83084
83084
  };
83085
83085
  /* harmony default export */ var id_card_reader_id_card_reader_demo = (id_card_reader_demo);
83086
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue?vue&type=template&id=ffa79d1e&scoped=true&
83087
- var scanner_high_camera_jieyuvue_type_template_id_ffa79d1e_scoped_true_render = function render() {
83088
- var _vm = this,
83089
- _c = _vm._self._c;
83090
- return _c('div', {
83091
- staticClass: "scanner-high-camera-container"
83092
- }, [_vm.openMode === 'dialog' ? _c('div', {
83093
- staticClass: "scanner-high-camera-button"
83094
- }, [_vm.tip ? _c('el-tooltip', {
83095
- staticClass: "id-card-reader-demo",
83096
- attrs: {
83097
- "content": _vm.tip,
83098
- "placement": "top"
83099
- }
83100
- }, [_c('el-button', _vm._b({
83101
- on: {
83102
- "click": _vm.openScanDialog
83103
- }
83104
- }, 'el-button', {
83105
- disabled: _vm.disabled,
83106
- icon: _vm.icon,
83107
- loading: _vm.loading,
83108
- plain: _vm.plain,
83109
- round: _vm.round,
83110
- size: _vm.size,
83111
- type: _vm.type,
83112
- class: _vm._className
83113
- }, false), [_vm._t("default", function () {
83114
- return [_vm._v(_vm._s(_vm.label))];
83115
- })], 2)], 1) : _c('el-button', _vm._b({
83116
- on: {
83117
- "click": _vm.openScanDialog
83118
- }
83119
- }, 'el-button', {
83120
- disabled: _vm.disabled,
83121
- icon: _vm.icon,
83122
- loading: _vm.loading,
83123
- plain: _vm.plain,
83124
- round: _vm.round,
83125
- size: _vm.size,
83126
- type: _vm.type,
83127
- class: _vm._className
83128
- }, false), [_vm._t("default", function () {
83129
- return [_vm._v(_vm._s(_vm.label))];
83130
- })], 2), _c('el-dialog', {
83131
- staticClass: "scanner-high-camera-dialog",
83132
- attrs: {
83133
- "title": "影像扫描",
83134
- "visible": _vm.dialogVisible,
83135
- "width": "60%"
83136
- },
83137
- on: {
83138
- "update:visible": function ($event) {
83139
- _vm.dialogVisible = $event;
83140
- }
83141
- }
83142
- }, [_vm.dialogVisible ? _c('scanner-high-camera-component', {
83143
- on: {
83144
- "send-scanner-result": _vm.setScannerResult
83145
- },
83146
- scopedSlots: _vm._u([{
83147
- key: "action",
83148
- fn: function () {
83149
- return [_vm._t("right-action")];
83150
- },
83151
- proxy: true
83152
- }], null, true)
83153
- }) : _vm._e(), _c('span', {
83154
- staticClass: "dialog-footer",
83155
- attrs: {
83156
- "slot": "footer"
83157
- },
83158
- slot: "footer"
83159
- }, [_c('el-button', {
83160
- attrs: {
83161
- "size": "small"
83162
- },
83163
- on: {
83164
- "click": function ($event) {
83165
- _vm.dialogVisible = false;
83166
- }
83167
- }
83168
- }, [_vm._v("取 消")]), _c('el-button', {
83169
- attrs: {
83170
- "size": "small",
83171
- "type": "primary"
83172
- },
83173
- on: {
83174
- "click": _vm.sendScannerResult
83175
- }
83176
- }, [_vm._v("确 定")])], 1)], 1)], 1) : _c('scanner-high-camera-component', {
83177
- on: {
83178
- "send-scanner-result": _vm.setScannerResult
83179
- },
83180
- scopedSlots: _vm._u([{
83181
- key: "action",
83182
- fn: function () {
83183
- return [_vm._t("right-action")];
83184
- },
83185
- proxy: true
83186
- }], null, true)
83187
- })], 1);
83188
- };
83189
- var scanner_high_camera_jieyuvue_type_template_id_ffa79d1e_scoped_true_staticRenderFns = [];
83190
-
83191
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue?vue&type=template&id=e24dd0c8&scoped=true&
83192
- var scanner_high_camera_componentvue_type_template_id_e24dd0c8_scoped_true_render = function render() {
83193
- var _vm = this,
83194
- _c = _vm._self._c;
83195
- return _c('div', {
83196
- staticClass: "scanner-high-camera-component"
83197
- }, [_c('div', {
83198
- staticClass: "scanner-result-content"
83199
- }, [_c('div', {
83200
- staticClass: "content-main flex-1"
83201
- }, [_vm.loadSuccess ? _c('div', {
83202
- staticClass: "load-success"
83203
- }, [_c('img', {
83204
- attrs: {
83205
- "id": "photo",
83206
- "src": _vm.scannerResultSrc
83207
- }
83208
- })]) : _c('div', {
83209
- staticClass: "load-error"
83210
- }, [_c('i', {
83211
- staticClass: "el-icon-s-cooperation"
83212
- }), _c('p', [_vm._v("请先安装插件")])])]), _c('div', {
83213
- staticClass: "handle-action"
83214
- }, [_c('el-select', {
83215
- staticClass: "select",
83216
- attrs: {
83217
- "size": "small"
83218
- },
83219
- on: {
83220
- "change": _vm.selectChange
83221
- },
83222
- model: {
83223
- value: _vm.camera,
83224
- callback: function ($$v) {
83225
- _vm.camera = $$v;
83226
- },
83227
- expression: "camera"
83228
- }
83229
- }, _vm._l(_vm.cameras, function (item) {
83230
- return _c('el-option', {
83231
- key: item.value,
83232
- attrs: {
83233
- "label": item.name,
83234
- "value": item.value
83235
- }
83236
- });
83237
- }), 1), _vm._l(_vm.buttonList, function (item) {
83238
- return [_c('el-button', {
83239
- key: item.name,
83240
- attrs: {
83241
- "type": "primary",
83242
- "size": "small"
83243
- },
83244
- on: {
83245
- "click": function ($event) {
83246
- return _vm.handleAction(item.name);
83247
- }
83248
- }
83249
- }, [_vm._v(_vm._s(item.label))]), _vm._t("action")];
83250
- })], 2)])]);
83251
- };
83252
- var scanner_high_camera_componentvue_type_template_id_e24dd0c8_scoped_true_staticRenderFns = [];
83253
-
83254
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue?vue&type=script&lang=js&
83255
- const BEGIN_DATA = 'data:image/jpeg;base64,';
83256
- /* harmony default export */ var scanner_high_camera_componentvue_type_script_lang_js_ = ({
83257
- name: "scanner-high-camera-component",
83258
- data: () => {
83259
- return {
83260
- totalTimeLength: 0,
83261
- timeLength: '',
83262
- timer: 0,
83263
- str1: '',
83264
- str2: '',
83265
- webSocket: {},
83266
- scannerResultSrc: '',
83267
- loadSuccess: true,
83268
- camera: 0,
83269
- cameras: [{
83270
- name: '文档',
83271
- value: 0
83272
- }, {
83273
- name: '照片',
83274
- value: 1
83275
- }],
83276
- buttonList: [
83277
- // {label: '启动主', name: 'start-main'},
83278
- // {label: '旋转启动主', name: 'rotation'},
83279
- // {label: '启动副', name: 'start-vice'},
83280
- // {label: '停止', name: 'stop'},
83281
- // {label: '自动对焦', name: 'autofocus'},
83282
- // {label: '去黑边', name: 'Black edge'},
83283
- // {label: 'Base64', name: 'base64'},
83284
- // {label: '开始录屏', name: 'start-record'},
83285
- // {label: '停止录屏', name: 'stop-record'},
83286
- {
83287
- label: '拍照',
83288
- name: 'take-pictures'
83289
- }
83290
- // {label: '设置去灰底', name: ''},
83291
- // {label: 'FILTER设置', name: ''},
83292
- // {label: 'PIN设置', name: ''},
83293
- // {label: '自动寻边', name: ''},
83294
- // {label: '身份证自动寻边', name: ''},
83295
- // {label: 'vSetExposure', name: ''},
83296
- // {label: 'vSetBrightness', name: ''},
83297
- // {label: 'vSetContrast', name: ''},
83298
- // {label: '设置分辨率', name: ''},
83299
- ]
83300
- };
83301
- },
83302
-
83303
- mounted() {
83304
- this.webSocket = new WebSocket('ws://127.0.0.1:1818');
83305
- window.onbeforeunload = () => {
83306
- this.webSocket.send("bStopPlay()");
83307
- this.webSocket.send("bStopPlay4()");
83308
- };
83309
- this.webSocket.onerror = event => {
83310
- this.onError(event);
83311
- };
83312
- this.webSocket.onopen = event => {
83313
- this.onOpen(event);
83314
- };
83315
- this.webSocket.onclose = event => {
83316
- this.onClose(event);
83317
- this.webSocket.send("bStopPlay()");
83318
- };
83319
- this.webSocket.onmessage = event => {
83320
- this.onMessage(event);
83321
- };
83322
- setTimeout(() => {
83323
- this.handleAction('start-main');
83324
- }, 800);
83325
- },
83326
- destroyed() {
83327
- this.handleAction('stop');
83328
- this.webSocket.close();
83329
- },
83330
- methods: {
83331
- selectChange(val) {
83332
- let handleName = val === 1 ? 'start-vice' : 'start-main';
83333
- this.handleAction(handleName);
83334
- },
83335
- handleAction(name) {
83336
- switch (name) {
83337
- case 'start-main':
83338
- this.StartPlay_onclick();
83339
- break;
83340
- case 'rotation':
83341
- this.start('bStartPlayRotate(90)');
83342
- break;
83343
- case 'start-vice':
83344
- this.start('bStartPlay2');
83345
- break;
83346
- case 'stop':
83347
- this.start('bStopPlay');
83348
- break;
83349
- case 'autofocus':
83350
- this.start('AutoFocus');
83351
- break;
83352
- case 'Black edge':
83353
- this.start('vSetDelHBFlag(true)');
83354
- break;
83355
- case 'base64':
83356
- this.start('sGetBase64');
83357
- break;
83358
- case 'start-record':
83359
- this.start('bStartRec(d:\\test.avi)');
83360
- break;
83361
- case 'stop-record':
83362
- this.start('bStopRec');
83363
- break;
83364
- case 'take-pictures':
83365
- this.start('bSaveJPG(D:\\,Photo)');
83366
- this.$emit('send-scanner-result', this.scannerResultSrc);
83367
- break;
83368
- }
83369
- },
83370
- timeGo() {
83371
- this.totalTimeLength++;
83372
- let Hour = 0,
83373
- Minue = 0,
83374
- Second = 0;
83375
- Hour = Math.floor(this.totalTimeLength / 3600);
83376
- Minue = Math.floor(this.totalTimeLength / 60 % 60);
83377
- Second = Math.floor(this.totalTimeLength % 60);
83378
- this.timeLength = Hour + "时" + Minue + "分" + Second + "秒";
83379
- },
83380
- onMessage(event) {
83381
- if (event.data.indexOf('BarCodeTransferBegin') >= 0) {
83382
- console.log(event.data.replace('BarCodeTransferBegin', '').replace('BarCodeTransferEnd', ''));
83383
- } else if (event.data.indexOf('BeginbSaveJPG') >= 0) {
83384
- this.str1 = event.data.replace('BeginbSaveJPG', '').replace('EndbSaveJPG', '');
83385
- console.log(this.str1);
83386
- } else if (event.data.indexOf('BeginbStopPlay') >= 0) {
83387
- console.log(event.data);
83388
- console.log(event.data.replace('BeginbStopPlay', '').replace('EndbStopPlay', ''));
83389
- } else if (event.data.indexOf('BeginvSetResolution') >= 0) {
83390
- console.log(event.data.replace('BeginvSetResolution', '').replace('EndvSetResolution', ''));
83391
- } else if (event.data.indexOf('BeginvSetRemoveGBFlag') >= 0) {
83392
- console.log(event.data.replace('BeginvSetRemoveGBFlag', '').replace('EndvSetRemoveGBFlag', ''));
83393
- } else if (event.data.indexOf('BeginbFileExist') >= 0) {
83394
- console.log(event.data.replace('BeginbFileExist', '').replace('EndbFileExist', ''));
83395
- } else if (event.data.indexOf('BeginbStartPlay2') >= 0) {
83396
- console.log(event.data.replace('BeginbStartPlay2', '').replace('EndbStartPlay2', ''));
83397
- } else if (event.data.indexOf('BeginbStartPlay') >= 0) {
83398
- console.log(event.data.replace('BeginbStartPlay', '').replace('EndbStartPlay', ''));
83399
- } else if (event.data.indexOf('BeginbSetMode') >= 0) {
83400
- console.log(event.data.replace('BeginbSetMode', '').replace('EndbSetMode', ''));
83401
- } else {
83402
- this.scannerResultSrc = `${BEGIN_DATA}${event.data}`;
83403
- // this.$emit('send-scanner-result', this.scannerResultSrc);
83404
- }
83405
- },
83406
-
83407
- onError(event) {
83408
- console.log('error', event.data);
83409
- this.loadSuccess = false;
83410
- },
83411
- onClose(event) {
83412
- this.webSocket.send("bStopPlay()");
83413
- this.webSocket.send("bStopPlay4()");
83414
- },
83415
- onOpen(event) {},
83416
- start(el) {
83417
- if (el == 'bStartRec(d:\\test.avi)') {
83418
- this.timer = window.setInterval(this.timeGo, 1000);
83419
- }
83420
- if (el == 'bStopRec') {
83421
- window.clearInterval(this.timer);
83422
- this.totalTimeLength = 0;
83423
- console.log("录屏结束");
83424
- }
83425
- this.webSocket.send(el);
83426
- return false;
83427
- },
83428
- vout_OnClick() {},
83429
- Stop_onclick() {
83430
- this.webSocket.send("bStopPlay()");
83431
- },
83432
- StartPlay_onclick() {
83433
- this.webSocket.send("vSetResolution(8)");
83434
- this.webSocket.send("bStartPlay()");
83435
- // this.loadSuccess = true
83436
- }
83437
- }
83438
- });
83439
- ;// CONCATENATED MODULE: ./packages/scanner/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue?vue&type=script&lang=js&
83440
- /* harmony default export */ var component_scanner_high_camera_componentvue_type_script_lang_js_ = (scanner_high_camera_componentvue_type_script_lang_js_);
83441
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue?vue&type=style&index=0&id=e24dd0c8&prod&scoped=true&lang=scss&
83442
- // extracted by mini-css-extract-plugin
83443
-
83444
- ;// CONCATENATED MODULE: ./packages/scanner/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue?vue&type=style&index=0&id=e24dd0c8&prod&scoped=true&lang=scss&
83445
-
83446
- ;// CONCATENATED MODULE: ./packages/scanner/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue
83447
-
83448
-
83449
-
83450
- ;
83451
-
83452
-
83453
- /* normalize component */
83454
-
83455
- var scanner_high_camera_component_component = normalizeComponent(
83456
- component_scanner_high_camera_componentvue_type_script_lang_js_,
83457
- scanner_high_camera_componentvue_type_template_id_e24dd0c8_scoped_true_render,
83458
- scanner_high_camera_componentvue_type_template_id_e24dd0c8_scoped_true_staticRenderFns,
83459
- false,
83460
- null,
83461
- "e24dd0c8",
83462
- null
83463
-
83464
- )
83465
-
83466
- /* harmony default export */ var scanner_high_camera_component = (scanner_high_camera_component_component.exports);
83467
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue?vue&type=script&lang=js&
83468
-
83469
-
83470
- /* harmony default export */ var scanner_high_camera_jieyuvue_type_script_lang_js_ = ({
83471
- name: "scanner-high-camera-jieyu",
83472
- components: {
83473
- ScannerHighCameraComponent: scanner_high_camera_component
83474
- },
83475
- props: {
83476
- openMode: {
83477
- default: '',
83478
- type: String
83479
- },
83480
- label: {
83481
- default: '',
83482
- type: String
83483
- },
83484
- tip: {
83485
- default: '',
83486
- type: String
83487
- },
83488
- className: {
83489
- default: '',
83490
- type: String
83491
- },
83492
- size: {
83493
- default: '',
83494
- type: String
83495
- },
83496
- type: {
83497
- default: '',
83498
- type: String
83499
- },
83500
- plain: {
83501
- default: false,
83502
- type: Boolean
83503
- },
83504
- round: {
83505
- default: false,
83506
- type: Boolean
83507
- },
83508
- loading: {
83509
- default: false,
83510
- type: Boolean
83511
- },
83512
- icon: {
83513
- default: '',
83514
- type: String
83515
- },
83516
- disabled: {
83517
- default: false,
83518
- type: Boolean
83519
- }
83520
- },
83521
- data: () => {
83522
- return {
83523
- dialogVisible: false,
83524
- scannerResult: ''
83525
- };
83526
- },
83527
- computed: {
83528
- _className() {
83529
- const classBase = ['z-button'];
83530
- if (this.type === 'text') {
83531
- classBase.push('i-font-size');
83532
- }
83533
- if (!this.className) {
83534
- return classBase;
83535
- } else if (typeof this.className === 'string') {
83536
- classBase.push(this.className);
83537
- } else {
83538
- classBase.push(...this.className);
83539
- }
83540
- return classBase;
83541
- }
83542
- },
83543
- methods: {
83544
- openScanDialog() {
83545
- this.dialogVisible = true;
83546
- },
83547
- setScannerResult(src) {
83548
- this.scannerResult = src;
83549
- if (this.openMode !== 'dialog') {
83550
- this.$emit('send-scanner-result', this.scannerResult);
83551
- }
83552
- },
83553
- sendScannerResult() {
83554
- if (this.scannerResult) {
83555
- this.$emit('send-scanner-result', this.scannerResult);
83556
- this.dialogVisible = false;
83557
- }
83558
- }
83559
- }
83560
- });
83561
- ;// CONCATENATED MODULE: ./packages/scanner/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue?vue&type=script&lang=js&
83562
- /* harmony default export */ var src_scanner_high_camera_jieyuvue_type_script_lang_js_ = (scanner_high_camera_jieyuvue_type_script_lang_js_);
83563
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue?vue&type=style&index=0&id=ffa79d1e&prod&scoped=true&lang=scss&
83564
- // extracted by mini-css-extract-plugin
83565
-
83566
- ;// CONCATENATED MODULE: ./packages/scanner/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue?vue&type=style&index=0&id=ffa79d1e&prod&scoped=true&lang=scss&
83567
-
83568
- ;// CONCATENATED MODULE: ./packages/scanner/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue
83569
-
83570
-
83571
-
83572
- ;
83573
-
83574
-
83575
- /* normalize component */
83576
-
83577
- var scanner_high_camera_jieyu_component = normalizeComponent(
83578
- src_scanner_high_camera_jieyuvue_type_script_lang_js_,
83579
- scanner_high_camera_jieyuvue_type_template_id_ffa79d1e_scoped_true_render,
83580
- scanner_high_camera_jieyuvue_type_template_id_ffa79d1e_scoped_true_staticRenderFns,
83581
- false,
83582
- null,
83583
- "ffa79d1e",
83584
- null
83585
-
83586
- )
83587
-
83588
- /* harmony default export */ var scanner_high_camera_jieyu = (scanner_high_camera_jieyu_component.exports);
83589
- ;// CONCATENATED MODULE: ./packages/scanner/scanner-high-camera-jieyu/index.js
83590
- /**
83591
- * @author: lvcy
83592
- * @date: 2023-01-09
83593
- * @description:index
83594
- */
83595
-
83596
-
83597
- // 组件的install方法用于按需引入
83598
- // @ts-ignore
83599
- scanner_high_camera_jieyu.install = Vue => {
83600
- Vue.component(scanner_high_camera_jieyu.name, scanner_high_camera_jieyu);
83601
- };
83602
- /* harmony default export */ var scanner_scanner_high_camera_jieyu = (scanner_high_camera_jieyu);
83603
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-eloam/src/scanner-eloam.vue?vue&type=template&id=a80d3a26&scoped=true&
83604
- var scanner_eloamvue_type_template_id_a80d3a26_scoped_true_render = function render() {
83605
- var _vm = this,
83606
- _c = _vm._self._c;
83607
- return _c('div', {
83608
- staticClass: "scanner-high-camera-container"
83609
- }, [_vm.openMode === 'dialog' ? _c('div', {
83610
- staticClass: "scanner-high-camera-button"
83611
- }, [_vm.tip ? _c('el-tooltip', {
83612
- staticClass: "id-card-reader-demo",
83613
- attrs: {
83614
- "content": _vm.tip,
83615
- "placement": "top"
83616
- }
83617
- }, [_c('el-button', _vm._b({
83618
- on: {
83619
- "click": _vm.openScanDialog
83620
- }
83621
- }, 'el-button', {
83622
- disabled: _vm.disabled,
83623
- icon: _vm.icon,
83624
- loading: _vm.loading,
83625
- plain: _vm.plain,
83626
- round: _vm.round,
83627
- size: _vm.size,
83628
- type: _vm.type,
83629
- class: _vm._className
83630
- }, false), [_vm._t("default", function () {
83631
- return [_vm._v(_vm._s(_vm.label))];
83632
- })], 2)], 1) : _c('el-button', _vm._b({
83633
- on: {
83634
- "click": _vm.openScanDialog
83635
- }
83636
- }, 'el-button', {
83637
- disabled: _vm.disabled,
83638
- icon: _vm.icon,
83639
- loading: _vm.loading,
83640
- plain: _vm.plain,
83641
- round: _vm.round,
83642
- size: _vm.size,
83643
- type: _vm.type,
83644
- class: _vm._className
83645
- }, false), [_vm._t("default", function () {
83646
- return [_vm._v(_vm._s(_vm.label))];
83647
- })], 2), _c('el-dialog', {
83648
- staticClass: "scanner-high-camera-dialog",
83649
- attrs: {
83650
- "title": "影像扫描",
83651
- "visible": _vm.dialogVisible,
83652
- "width": "60%"
83653
- },
83654
- on: {
83655
- "update:visible": function ($event) {
83656
- _vm.dialogVisible = $event;
83657
- }
83658
- }
83659
- }, [_vm.dialogVisible ? _c('scanner-eloam-component', {
83660
- on: {
83661
- "send-scanner-result": _vm.setScannerResult
83662
- },
83663
- scopedSlots: _vm._u([{
83664
- key: "action",
83665
- fn: function () {
83666
- return [_vm._t("right-action")];
83667
- },
83668
- proxy: true
83669
- }], null, true)
83670
- }) : _vm._e(), _c('span', {
83671
- staticClass: "dialog-footer",
83672
- attrs: {
83673
- "slot": "footer"
83674
- },
83675
- slot: "footer"
83676
- }, [_c('el-button', {
83677
- attrs: {
83678
- "size": "small"
83679
- },
83680
- on: {
83681
- "click": function ($event) {
83682
- _vm.dialogVisible = false;
83683
- }
83684
- }
83685
- }, [_vm._v("取 消")]), _c('el-button', {
83686
- attrs: {
83687
- "size": "small",
83688
- "type": "primary"
83689
- },
83690
- on: {
83691
- "click": _vm.sendScannerResult
83692
- }
83693
- }, [_vm._v("确 定")])], 1)], 1)], 1) : _c('scanner-eloam-component', {
83694
- on: {
83695
- "send-scanner-result": _vm.setScannerResult
83696
- },
83697
- scopedSlots: _vm._u([{
83698
- key: "action",
83699
- fn: function () {
83700
- return [_vm._t("right-action")];
83701
- },
83702
- proxy: true
83703
- }], null, true)
83704
- })], 1);
83705
- };
83706
- var scanner_eloamvue_type_template_id_a80d3a26_scoped_true_staticRenderFns = [];
83707
-
83708
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-eloam/src/component/scanner-eloam-component.vue?vue&type=template&id=428304e7&scoped=true&
83709
- var scanner_eloam_componentvue_type_template_id_428304e7_scoped_true_render = function render() {
83710
- var _vm = this,
83711
- _c = _vm._self._c;
83712
- return _c('div', {
83713
- staticClass: "scanner-high-camera-component"
83714
- }, [_c('div', {
83715
- staticClass: "scanner-result-content"
83716
- }, [_c('div', {
83717
- staticClass: "content-main flex-1"
83718
- }, [_vm.loadSuccess ? _c('div', {
83719
- staticClass: "load-success"
83720
- }, [_c('img', {
83721
- staticStyle: {
83722
- "width": "800px",
83723
- "height": "600px"
83724
- },
83725
- attrs: {
83726
- "id": "photo",
83727
- "src": _vm.scannerVideoSrc
83728
- }
83729
- })]) : _c('div', {
83730
- staticClass: "load-error"
83731
- }, [_c('i', {
83732
- staticClass: "el-icon-s-cooperation"
83733
- }), _c('p', [_vm._v("请先安装插件")])])]), _c('div', {
83734
- staticClass: "handle-action"
83735
- }, [_c('el-select', {
83736
- staticClass: "select",
83737
- attrs: {
83738
- "size": "small"
83739
- },
83740
- on: {
83741
- "change": _vm.selectChange
83742
- },
83743
- model: {
83744
- value: _vm.camera,
83745
- callback: function ($$v) {
83746
- _vm.camera = $$v;
83747
- },
83748
- expression: "camera"
83749
- }
83750
- }, _vm._l(_vm.cameras, function (item) {
83751
- return _c('el-option', {
83752
- key: item.value,
83753
- attrs: {
83754
- "label": item.name,
83755
- "value": item.value
83756
- }
83757
- });
83758
- }), 1), _vm._l(_vm.buttonList, function (item) {
83759
- return [_c('el-button', {
83760
- key: item.name,
83761
- attrs: {
83762
- "type": "primary",
83763
- "size": "small"
83764
- },
83765
- on: {
83766
- "click": function ($event) {
83767
- return _vm.handleAction(item.name);
83768
- }
83769
- }
83770
- }, [_vm._v(_vm._s(item.label))]), _vm._t("action")];
83771
- })], 2)])]);
83772
- };
83773
- var scanner_eloam_componentvue_type_template_id_428304e7_scoped_true_staticRenderFns = [];
83774
-
83775
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
83776
- function _typeof(obj) {
83777
- "@babel/helpers - typeof";
83778
-
83779
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
83780
- return typeof obj;
83781
- } : function (obj) {
83782
- return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
83783
- }, _typeof(obj);
83784
- }
83785
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
83786
-
83787
- function _toPrimitive(input, hint) {
83788
- if (_typeof(input) !== "object" || input === null) return input;
83789
- var prim = input[Symbol.toPrimitive];
83790
- if (prim !== undefined) {
83791
- var res = prim.call(input, hint || "default");
83792
- if (_typeof(res) !== "object") return res;
83793
- throw new TypeError("@@toPrimitive must return a primitive value.");
83794
- }
83795
- return (hint === "string" ? String : Number)(input);
83796
- }
83797
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
83798
-
83799
-
83800
- function _toPropertyKey(arg) {
83801
- var key = _toPrimitive(arg, "string");
83802
- return _typeof(key) === "symbol" ? key : String(key);
83803
- }
83804
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
83805
-
83806
- function _defineProperty(obj, key, value) {
83807
- key = _toPropertyKey(key);
83808
- if (key in obj) {
83809
- Object.defineProperty(obj, key, {
83810
- value: value,
83811
- enumerable: true,
83812
- configurable: true,
83813
- writable: true
83814
- });
83815
- } else {
83816
- obj[key] = value;
83817
- }
83818
- return obj;
83819
- }
83820
- ;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/src/util/custom-axios.ts
83821
- /**
83822
- * @author: lvcy
83823
- * @date: 2023-06-21
83824
- * @description:custom-axios
83825
- */
83826
- class CustomAxios {
83827
- static startConnect(method, url, data = {}) {
83828
- return new Promise((resolve, reject) => {
83829
- let xhr = new XMLHttpRequest();
83830
- method = method.toUpperCase();
83831
- if (method == 'GET') {
83832
- let param = ''; //数据拼接字符串
83833
- Object.keys(data).forEach(key => {
83834
- param += `${key}=${data[key]}&`;
83835
- });
83836
- param = param.substring(0, param.lastIndexOf('&'));
83837
- url = url + '?' + param;
83838
- } else if (method == 'POST') {} else {
83839
- reject('error method: Currently only supported GET or POST method!');
83840
- }
83841
- xhr.open(method, url, true);
83842
- xhr.setRequestHeader('Accept', 'application/json');
83843
- if (method === 'GET') {
83844
- xhr.send();
83845
- } else {
83846
- xhr.send(JSON.stringify(data));
83847
- }
83848
- xhr.onreadystatechange = function () {
83849
- if (this.readyState !== 4) {
83850
- return;
83851
- }
83852
- if (this.status === 200) {
83853
- let obj = this.response;
83854
- if (typeof obj !== 'object') {
83855
- obj = JSON.parse(obj);
83856
- }
83857
- resolve(obj);
83858
- } else {
83859
- reject(xhr);
83860
- }
83861
- };
83862
- });
83863
- }
83864
- static async get(url) {
83865
- let res = await CustomAxios.startConnect('GET', url);
83866
- return res;
83867
- }
83868
- static async post(url, data) {
83869
- let res = await CustomAxios.startConnect('POST', url, data);
83870
- return res;
83871
- }
83872
- }
83873
- ;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/src/util/eloam-plugin.service.ts
83874
-
83875
- /**
83876
- * @author: lvcy
83877
- * @date: 2023-06-21
83878
- * @description:良田高拍仪
83879
- */
83880
-
83881
- var ELoamMethodCode;
83882
- (function (ELoamMethodCode) {
83883
- /** 扫描-主摄像头 */
83884
- ELoamMethodCode["ScannerMainCamera_Base64"] = "ScannerMainCamera_Base64";
83885
- /** 扫描-副摄像头 */
83886
- ELoamMethodCode["ScannerSecondaryCamera_Base64"] = "ScannerSecondaryCamera_Base64";
83887
- /** 读取二代身份证 */
83888
- ELoamMethodCode["ReadIDCard_Base64"] = "ReadIDCard_Base64";
83889
- })(ELoamMethodCode || (ELoamMethodCode = {}));
83890
- const ELoamMethodDesc = {
83891
- [ELoamMethodCode.ScannerMainCamera_Base64]: '扫描',
83892
- [ELoamMethodCode.ScannerSecondaryCamera_Base64]: '拍照',
83893
- [ELoamMethodCode.ReadIDCard_Base64]: '读取二代身份证'
83894
- };
83895
- class ELoamPassService {
83896
- /** 主摄像头地址 */
83897
- static get mainCameraUrl() {
83898
- return this.baseServiceUrl + '/video=stream&camidx=0';
83899
- }
83900
- /** 副摄像头地址 */
83901
- static get secondaryCameraUrl() {
83902
- return this.baseServiceUrl + '/video=stream&camidx=1';
83903
- }
83904
- static async read(method) {
83905
- let param = {},
83906
- url = '';
83907
- switch (method) {
83908
- case ELoamMethodCode.ScannerMainCamera_Base64:
83909
- // rotate: 旋转角度;deskew:纠偏,主摄像头1,副摄像头0 camidx:主摄像头0,副摄像头1;ColorMode:quality
83910
- url = this.baseServiceUrl + '/video=grabimage';
83911
- param = {
83912
- filepath: "base64",
83913
- rotate: "0",
83914
- deskew: "1",
83915
- camidx: "0",
83916
- ColorMode: "0",
83917
- quality: "0"
83918
- };
83919
- break;
83920
- case ELoamMethodCode.ScannerSecondaryCamera_Base64:
83921
- // rotate: 旋转角度,;deskew:纠偏,主摄像头1,副摄像头0 camidx:主摄像头0,副摄像头1;ColorMode:quality
83922
- url = this.baseServiceUrl + '/video=grabimage';
83923
- param = {
83924
- filepath: "base64",
83925
- rotate: "0",
83926
- deskew: "0",
83927
- camidx: "1",
83928
- ColorMode: "0",
83929
- quality: "0"
83930
- };
83931
- break;
83932
- case ELoamMethodCode.ReadIDCard_Base64:
83933
- url = this.baseServiceUrl + '/card=idcard';
83934
- break;
83935
- }
83936
- let res = await CustomAxios.post(url, param);
83937
- return res;
83938
- }
83939
- /** 主摄像头拍照 */
83940
- static async scanByMainCamera() {
83941
- const res = await ELoamPassService.read(ELoamMethodCode.ScannerMainCamera_Base64);
83942
- return res.photoBase64;
83943
- }
83944
- /** 副摄像头拍照 */
83945
- static async scanBySecondaryCamera() {
83946
- const res = await ELoamPassService.read(ELoamMethodCode.ScannerSecondaryCamera_Base64);
83947
- return res.photoBase64;
83948
- }
83949
- /** 读取身份证 */
83950
- static async idCardRead() {
83951
- const res = await ELoamPassService.read(ELoamMethodCode.ReadIDCard_Base64);
83952
- let {
83953
- name,
83954
- sex,
83955
- birthday,
83956
- address,
83957
- cardID,
83958
- nationCode,
83959
- photoBase64,
83960
- issueOrgan,
83961
- validStart,
83962
- validEnd
83963
- } = res.IDCardInfo;
83964
- const IDCardData = {
83965
- info: {
83966
- name,
83967
- sex,
83968
- birthday: birthday.replace('-', '').replace('-', ''),
83969
- address,
83970
- cardId: cardID,
83971
- nation: nationCode,
83972
- police: issueOrgan,
83973
- validStart,
83974
- validEnd
83975
- },
83976
- headImage: photoBase64
83977
- };
83978
- return IDCardData;
83979
- }
83980
- }
83981
- _defineProperty(ELoamPassService, "baseServiceUrl", 'http://127.0.0.1:38088');
83982
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-eloam/src/component/scanner-eloam-component.vue?vue&type=script&lang=js&
83983
-
83984
- const scanner_eloam_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/jpg;base64,';
83985
- /* harmony default export */ var scanner_eloam_componentvue_type_script_lang_js_ = ({
83986
- name: "scanner-eloam-component",
83987
- data: () => {
83988
- return {
83989
- totalTimeLength: 0,
83990
- timeLength: '',
83991
- timer: 0,
83992
- str1: '',
83993
- str2: '',
83994
- webSocket: {},
83995
- scannerVideoSrc: '',
83996
- scannerResultSrc: '',
83997
- loadSuccess: true,
83998
- camera: 0,
83999
- cameras: [{
84000
- name: '文档',
84001
- value: 0
84002
- }, {
84003
- name: '照片',
84004
- value: 1
84005
- }],
84006
- buttonList: [{
84007
- label: '拍照',
84008
- name: 'take-pictures'
84009
- }]
84010
- };
84011
- },
84012
- created() {
84013
- this.scannerVideoSrc = ELoamPassService.mainCameraUrl;
84014
- },
84015
- methods: {
84016
- selectChange(val) {
84017
- let handleName = val === 1 ? 'start-vice' : 'start-main';
84018
- this.handleAction(handleName);
84019
- },
84020
- handleAction(name) {
84021
- switch (name) {
84022
- case 'start-main':
84023
- // 主摄像头
84024
- this.scannerVideoSrc = ELoamPassService.mainCameraUrl;
84025
- break;
84026
- case 'start-vice':
84027
- // 副摄像头
84028
- this.scannerVideoSrc = ELoamPassService.secondaryCameraUrl;
84029
- break;
84030
- case 'take-pictures':
84031
- // 拍照
84032
- this.takePictures();
84033
- break;
84034
- }
84035
- },
84036
- async takePictures() {
84037
- if (this.camera === 0) {
84038
- // 主摄像头
84039
- const res = await ELoamPassService.scanByMainCamera();
84040
- this.$emit('send-scanner-result', `${scanner_eloam_componentvue_type_script_lang_js_BEGIN_DATA}${res}`);
84041
- } else {
84042
- // 副摄像头
84043
- const res = await ELoamPassService.scanBySecondaryCamera();
84044
- this.$emit('send-scanner-result', `${scanner_eloam_componentvue_type_script_lang_js_BEGIN_DATA}${res}`);
84045
- }
84046
- }
84047
- }
84048
- });
84049
- ;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/src/component/scanner-eloam-component.vue?vue&type=script&lang=js&
84050
- /* harmony default export */ var component_scanner_eloam_componentvue_type_script_lang_js_ = (scanner_eloam_componentvue_type_script_lang_js_);
84051
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-eloam/src/component/scanner-eloam-component.vue?vue&type=style&index=0&id=428304e7&prod&scoped=true&lang=scss&
84052
- // extracted by mini-css-extract-plugin
84053
-
84054
- ;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/src/component/scanner-eloam-component.vue?vue&type=style&index=0&id=428304e7&prod&scoped=true&lang=scss&
84055
-
84056
- ;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/src/component/scanner-eloam-component.vue
84057
-
84058
-
84059
-
84060
- ;
84061
-
84062
-
84063
- /* normalize component */
84064
-
84065
- var scanner_eloam_component_component = normalizeComponent(
84066
- component_scanner_eloam_componentvue_type_script_lang_js_,
84067
- scanner_eloam_componentvue_type_template_id_428304e7_scoped_true_render,
84068
- scanner_eloam_componentvue_type_template_id_428304e7_scoped_true_staticRenderFns,
84069
- false,
84070
- null,
84071
- "428304e7",
84072
- null
84073
-
84074
- )
84075
-
84076
- /* harmony default export */ var scanner_eloam_component = (scanner_eloam_component_component.exports);
84077
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-eloam/src/scanner-eloam.vue?vue&type=script&lang=js&
84078
-
84079
-
84080
- /* harmony default export */ var scanner_eloamvue_type_script_lang_js_ = ({
84081
- name: "scanner-eloam",
84082
- components: {
84083
- ScannerEloamComponent: scanner_eloam_component
84084
- },
84085
- props: {
84086
- openMode: {
84087
- default: '',
84088
- type: String
84089
- },
84090
- label: {
84091
- default: '',
84092
- type: String
84093
- },
84094
- tip: {
84095
- default: '',
84096
- type: String
84097
- },
84098
- className: {
84099
- default: '',
84100
- type: String
84101
- },
84102
- size: {
84103
- default: '',
84104
- type: String
84105
- },
84106
- type: {
84107
- default: '',
84108
- type: String
84109
- },
84110
- plain: {
84111
- default: false,
84112
- type: Boolean
84113
- },
84114
- round: {
84115
- default: false,
84116
- type: Boolean
84117
- },
84118
- loading: {
84119
- default: false,
84120
- type: Boolean
84121
- },
84122
- icon: {
84123
- default: '',
84124
- type: String
84125
- },
84126
- disabled: {
84127
- default: false,
84128
- type: Boolean
84129
- }
84130
- },
84131
- data: () => {
84132
- return {
84133
- dialogVisible: false,
84134
- scannerResult: ''
84135
- };
84136
- },
84137
- computed: {
84138
- _className() {
84139
- const classBase = ['z-button'];
84140
- if (this.type === 'text') {
84141
- classBase.push('i-font-size');
84142
- }
84143
- if (!this.className) {
84144
- return classBase;
84145
- } else if (typeof this.className === 'string') {
84146
- classBase.push(this.className);
84147
- } else {
84148
- classBase.push(...this.className);
84149
- }
84150
- return classBase;
84151
- }
84152
- },
84153
- methods: {
84154
- openScanDialog() {
84155
- this.dialogVisible = true;
84156
- },
84157
- setScannerResult(src) {
84158
- this.scannerResult = src;
84159
- if (this.openMode !== 'dialog') {
84160
- this.$emit('send-scanner-result', this.scannerResult);
84161
- }
84162
- },
84163
- sendScannerResult() {
84164
- if (this.scannerResult) {
84165
- this.$emit('send-scanner-result', this.scannerResult);
84166
- this.dialogVisible = false;
84167
- }
84168
- }
84169
- }
84170
- });
84171
- ;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/src/scanner-eloam.vue?vue&type=script&lang=js&
84172
- /* harmony default export */ var src_scanner_eloamvue_type_script_lang_js_ = (scanner_eloamvue_type_script_lang_js_);
84173
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-eloam/src/scanner-eloam.vue?vue&type=style&index=0&id=a80d3a26&prod&scoped=true&lang=scss&
84174
- // extracted by mini-css-extract-plugin
84175
-
84176
- ;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/src/scanner-eloam.vue?vue&type=style&index=0&id=a80d3a26&prod&scoped=true&lang=scss&
84177
-
84178
- ;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/src/scanner-eloam.vue
84179
-
84180
-
84181
-
84182
- ;
84183
-
84184
-
84185
- /* normalize component */
84186
-
84187
- var src_scanner_eloam_component = normalizeComponent(
84188
- src_scanner_eloamvue_type_script_lang_js_,
84189
- scanner_eloamvue_type_template_id_a80d3a26_scoped_true_render,
84190
- scanner_eloamvue_type_template_id_a80d3a26_scoped_true_staticRenderFns,
84191
- false,
84192
- null,
84193
- "a80d3a26",
84194
- null
84195
-
84196
- )
84197
-
84198
- /* harmony default export */ var scanner_eloam = (src_scanner_eloam_component.exports);
84199
- ;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/index.js
84200
- /**
84201
- * @author: lvcy
84202
- * @date: 2023-06-21
84203
- * @description:index
84204
- */
84205
-
84206
- scanner_eloam.install = Vue => {
84207
- Vue.component(scanner_eloam.name, scanner_eloam);
84208
- };
84209
- /* harmony default export */ var scanner_scanner_eloam = (scanner_eloam);
84210
83086
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/scanner/scanner-camera/src/scanner-camera.vue?vue&type=template&id=00e9072f&scoped=true&
84211
83087
  var scanner_cameravue_type_template_id_00e9072f_scoped_true_render = function render() {
84212
83088
  var _vm = this,
@@ -84385,13 +83261,58 @@ var scanner_camera_componentvue_type_template_id_7676b84c_scoped_true_render = f
84385
83261
  };
84386
83262
  var scanner_camera_componentvue_type_template_id_7676b84c_scoped_true_staticRenderFns = [];
84387
83263
 
83264
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
83265
+ function _typeof(obj) {
83266
+ "@babel/helpers - typeof";
83267
+
83268
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
83269
+ return typeof obj;
83270
+ } : function (obj) {
83271
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
83272
+ }, _typeof(obj);
83273
+ }
83274
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
83275
+
83276
+ function _toPrimitive(input, hint) {
83277
+ if (_typeof(input) !== "object" || input === null) return input;
83278
+ var prim = input[Symbol.toPrimitive];
83279
+ if (prim !== undefined) {
83280
+ var res = prim.call(input, hint || "default");
83281
+ if (_typeof(res) !== "object") return res;
83282
+ throw new TypeError("@@toPrimitive must return a primitive value.");
83283
+ }
83284
+ return (hint === "string" ? String : Number)(input);
83285
+ }
83286
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
83287
+
83288
+
83289
+ function _toPropertyKey(arg) {
83290
+ var key = _toPrimitive(arg, "string");
83291
+ return _typeof(key) === "symbol" ? key : String(key);
83292
+ }
83293
+ ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
83294
+
83295
+ function _defineProperty(obj, key, value) {
83296
+ key = _toPropertyKey(key);
83297
+ if (key in obj) {
83298
+ Object.defineProperty(obj, key, {
83299
+ value: value,
83300
+ enumerable: true,
83301
+ configurable: true,
83302
+ writable: true
83303
+ });
83304
+ } else {
83305
+ obj[key] = value;
83306
+ }
83307
+ return obj;
83308
+ }
84388
83309
  ;// CONCATENATED MODULE: ./packages/utils/custom-axios.ts
84389
83310
  /**
84390
83311
  * @author: lvcy
84391
83312
  * @date: 2023-06-21
84392
83313
  * @description:custom-axios
84393
83314
  */
84394
- class custom_axios_CustomAxios {
83315
+ class CustomAxios {
84395
83316
  static startConnect(method, url, data = {}, header = {}) {
84396
83317
  return new Promise((resolve, reject) => {
84397
83318
  let xhr = new XMLHttpRequest();
@@ -84438,11 +83359,11 @@ class custom_axios_CustomAxios {
84438
83359
  });
84439
83360
  }
84440
83361
  static async get(url, data = {}, header = {}) {
84441
- let res = await custom_axios_CustomAxios.startConnect('GET', url, data, header);
83362
+ let res = await CustomAxios.startConnect('GET', url, data, header);
84442
83363
  return res;
84443
83364
  }
84444
83365
  static async post(url, data, header = {}) {
84445
- let res = await custom_axios_CustomAxios.startConnect('POST', url, data, header);
83366
+ let res = await CustomAxios.startConnect('POST', url, data, header);
84446
83367
  return res;
84447
83368
  }
84448
83369
  }
@@ -84454,7 +83375,7 @@ class custom_axios_CustomAxios {
84454
83375
  * @description:良田高拍仪
84455
83376
  */
84456
83377
 
84457
- var eloam_plugin_service_ELoamMethodCode;
83378
+ var ELoamMethodCode;
84458
83379
  (function (ELoamMethodCode) {
84459
83380
  ELoamMethodCode["ScannerCameraLinuxInit"] = "ScannerCameraLinuxInit";
84460
83381
  /** 打开摄像头linux*/
@@ -84475,13 +83396,13 @@ var eloam_plugin_service_ELoamMethodCode;
84475
83396
  ELoamMethodCode["ReadIDCard_Base64"] = "ReadIDCard_Base64";
84476
83397
  /** 关闭摄像头*/
84477
83398
  ELoamMethodCode["StopCamera"] = "stopCamera";
84478
- })(eloam_plugin_service_ELoamMethodCode || (eloam_plugin_service_ELoamMethodCode = {}));
84479
- const eloam_plugin_service_ELoamMethodDesc = {
84480
- [eloam_plugin_service_ELoamMethodCode.ScannerMainCamera_Base64]: '扫描',
84481
- [eloam_plugin_service_ELoamMethodCode.ScannerSecondaryCamera_Base64]: '拍照',
84482
- [eloam_plugin_service_ELoamMethodCode.ReadIDCard_Base64]: '读取二代身份证'
83399
+ })(ELoamMethodCode || (ELoamMethodCode = {}));
83400
+ const ELoamMethodDesc = {
83401
+ [ELoamMethodCode.ScannerMainCamera_Base64]: '扫描',
83402
+ [ELoamMethodCode.ScannerSecondaryCamera_Base64]: '拍照',
83403
+ [ELoamMethodCode.ReadIDCard_Base64]: '读取二代身份证'
84483
83404
  };
84484
- class eloam_plugin_service_ELoamPassService {
83405
+ class ELoamPassService {
84485
83406
  /** 主摄像头地址 */
84486
83407
  static get mainCameraUrl() {
84487
83408
  if (this._isLinux) {
@@ -84503,20 +83424,20 @@ class eloam_plugin_service_ELoamPassService {
84503
83424
  url = '',
84504
83425
  requestType = '';
84505
83426
  switch (method) {
84506
- case eloam_plugin_service_ELoamMethodCode.ScannerCameraLinuxInit:
83427
+ case ELoamMethodCode.ScannerCameraLinuxInit:
84507
83428
  url = `${this.baseLinuxServiceUrl}/GetAllDisplayInfo`;
84508
83429
  requestType = 'get';
84509
83430
  break;
84510
- case eloam_plugin_service_ELoamMethodCode.ScannerCameraLinuxStartPreview:
83431
+ case ELoamMethodCode.ScannerCameraLinuxStartPreview:
84511
83432
  url = `${this.baseLinuxServiceUrl}/StartPreview?dev_idx=${data}&res_id=0`;
84512
83433
  requestType = 'get';
84513
83434
  break;
84514
- case eloam_plugin_service_ELoamMethodCode.ScannerCameraLinuxGetFrame:
83435
+ case ELoamMethodCode.ScannerCameraLinuxGetFrame:
84515
83436
  url = `${this.baseLinuxServiceUrl}/getFrame`;
84516
83437
  requestType = 'get';
84517
83438
  break;
84518
- case eloam_plugin_service_ELoamMethodCode.ScannerCameraRotate:
84519
- if (eloam_plugin_service_ELoamPassService._isLinux) {
83439
+ case ELoamMethodCode.ScannerCameraRotate:
83440
+ if (ELoamPassService._isLinux) {
84520
83441
  let count = data / 90;
84521
83442
  url = this.baseLinuxServiceUrl + `/Rotate?count=${count}`;
84522
83443
  requestType = 'get';
@@ -84529,9 +83450,9 @@ class eloam_plugin_service_ELoamPassService {
84529
83450
  requestType = 'post';
84530
83451
  }
84531
83452
  break;
84532
- case eloam_plugin_service_ELoamMethodCode.ScannerCameraDeskew_Base64:
83453
+ case ELoamMethodCode.ScannerCameraDeskew_Base64:
84533
83454
  // 纠偏
84534
- if (eloam_plugin_service_ELoamPassService._isLinux) {
83455
+ if (ELoamPassService._isLinux) {
84535
83456
  url = `${this.baseLinuxServiceUrl}/EnableDeskImage?enable=${data}`;
84536
83457
  requestType = 'get';
84537
83458
  } else {
@@ -84544,7 +83465,7 @@ class eloam_plugin_service_ELoamPassService {
84544
83465
  requestType = 'post';
84545
83466
  }
84546
83467
  break;
84547
- case eloam_plugin_service_ELoamMethodCode.ScannerCameraMerge_Base64:
83468
+ case ELoamMethodCode.ScannerCameraMerge_Base64:
84548
83469
  // 合并
84549
83470
  if (this._isLinux) {
84550
83471
  // 国产
@@ -84563,7 +83484,7 @@ class eloam_plugin_service_ELoamPassService {
84563
83484
  requestType = 'post';
84564
83485
  }
84565
83486
  break;
84566
- case eloam_plugin_service_ELoamMethodCode.ScannerMainCamera_Base64:
83487
+ case ELoamMethodCode.ScannerMainCamera_Base64:
84567
83488
  if (this._isLinux) {
84568
83489
  url = this.baseLinuxServiceUrl + '/getPic?filepath=/tmp';
84569
83490
  requestType = 'get';
@@ -84582,7 +83503,7 @@ class eloam_plugin_service_ELoamPassService {
84582
83503
  requestType = 'post';
84583
83504
  }
84584
83505
  break;
84585
- case eloam_plugin_service_ELoamMethodCode.ScannerSecondaryCamera_Base64:
83506
+ case ELoamMethodCode.ScannerSecondaryCamera_Base64:
84586
83507
  if (this._isLinux) {
84587
83508
  url = this.baseLinuxServiceUrl + '/getPic?filepath=/tmp';
84588
83509
  requestType = 'get';
@@ -84601,7 +83522,7 @@ class eloam_plugin_service_ELoamPassService {
84601
83522
  requestType = 'post';
84602
83523
  }
84603
83524
  break;
84604
- case eloam_plugin_service_ELoamMethodCode.StopCamera:
83525
+ case ELoamMethodCode.StopCamera:
84605
83526
  if (this._isLinux) {
84606
83527
  url = this.baseLinuxServiceUrl + '/StopPreview?dev_idx=0';
84607
83528
  requestType = 'get';
@@ -84613,26 +83534,26 @@ class eloam_plugin_service_ELoamPassService {
84613
83534
  requestType = 'post';
84614
83535
  }
84615
83536
  break;
84616
- case eloam_plugin_service_ELoamMethodCode.ReadIDCard_Base64:
83537
+ case ELoamMethodCode.ReadIDCard_Base64:
84617
83538
  url = this.baseServiceUrl + '/card=idcard';
84618
83539
  requestType = 'post';
84619
83540
  break;
84620
83541
  }
84621
- let res = await custom_axios_CustomAxios[requestType](url, param);
83542
+ let res = await CustomAxios[requestType](url, param);
84622
83543
  return res;
84623
83544
  }
84624
83545
  static async initLinuxCamera() {
84625
- await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ScannerCameraLinuxInit);
83546
+ await ELoamPassService.read(ELoamMethodCode.ScannerCameraLinuxInit);
84626
83547
  }
84627
83548
  static async startPreview(data) {
84628
- return await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ScannerCameraLinuxStartPreview, data);
83549
+ return await ELoamPassService.read(ELoamMethodCode.ScannerCameraLinuxStartPreview, data);
84629
83550
  }
84630
83551
  static async getEloamFrame() {
84631
- return await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ScannerCameraLinuxGetFrame);
83552
+ return await ELoamPassService.read(ELoamMethodCode.ScannerCameraLinuxGetFrame);
84632
83553
  }
84633
83554
  /** 主摄像头拍照 */
84634
83555
  static async scanByMainCamera(deskew) {
84635
- const res = await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ScannerMainCamera_Base64, deskew);
83556
+ const res = await ELoamPassService.read(ELoamMethodCode.ScannerMainCamera_Base64, deskew);
84636
83557
  if (this._isLinux) {
84637
83558
  return res; // 国产
84638
83559
  } else {
@@ -84641,7 +83562,7 @@ class eloam_plugin_service_ELoamPassService {
84641
83562
  }
84642
83563
  /** 副摄像头拍照 */
84643
83564
  static async scanBySecondaryCamera() {
84644
- const res = await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ScannerSecondaryCamera_Base64);
83565
+ const res = await ELoamPassService.read(ELoamMethodCode.ScannerSecondaryCamera_Base64);
84645
83566
  if (this._isLinux) {
84646
83567
  return res.data.img; // 国产
84647
83568
  } else {
@@ -84649,7 +83570,7 @@ class eloam_plugin_service_ELoamPassService {
84649
83570
  }
84650
83571
  }
84651
83572
  static async mergeImage(list, type) {
84652
- const res = await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ScannerCameraMerge_Base64, {
83573
+ const res = await ELoamPassService.read(ELoamMethodCode.ScannerCameraMerge_Base64, {
84653
83574
  list,
84654
83575
  type
84655
83576
  });
@@ -84680,11 +83601,11 @@ class eloam_plugin_service_ELoamPassService {
84680
83601
  }
84681
83602
  static async turnOnTheCamera() {}
84682
83603
  static async stopCamera() {
84683
- const res = await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.StopCamera);
83604
+ const res = await ELoamPassService.read(ELoamMethodCode.StopCamera);
84684
83605
  }
84685
83606
  /** 读取身份证 */
84686
83607
  static async idCardRead() {
84687
- const res = await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ReadIDCard_Base64);
83608
+ const res = await ELoamPassService.read(ELoamMethodCode.ReadIDCard_Base64);
84688
83609
  var readData = res.IDCardInfo;
84689
83610
  // Agency 发证机关,外国人永居证时,该值为中文名
84690
83611
  var name = (readData.name || '').trim();
@@ -84736,9 +83657,9 @@ class eloam_plugin_service_ELoamPassService {
84736
83657
  return IDCardData;
84737
83658
  }
84738
83659
  }
84739
- _defineProperty(eloam_plugin_service_ELoamPassService, "baseServiceUrl", 'http://127.0.0.1:38088');
84740
- _defineProperty(eloam_plugin_service_ELoamPassService, "baseLinuxServiceUrl", 'http://127.0.0.1:6543');
84741
- _defineProperty(eloam_plugin_service_ELoamPassService, "_isLinux", String(navigator.platform).indexOf("Linux") > -1);
83660
+ _defineProperty(ELoamPassService, "baseServiceUrl", 'http://127.0.0.1:38088');
83661
+ _defineProperty(ELoamPassService, "baseLinuxServiceUrl", 'http://127.0.0.1:6543');
83662
+ _defineProperty(ELoamPassService, "_isLinux", String(navigator.platform).indexOf("Linux") > -1);
84742
83663
  ;// CONCATENATED MODULE: ./packages/model/common-message.ts
84743
83664
 
84744
83665
  /**
@@ -85868,7 +84789,7 @@ _defineProperty(WeiRongPluginService, "timer", null);
85868
84789
 
85869
84790
 
85870
84791
 
85871
- const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/jpg;base64,';
84792
+ const BEGIN_DATA = 'data:image/jpg;base64,';
85872
84793
  /* harmony default export */ var scanner_camera_componentvue_type_script_lang_js_ = ({
85873
84794
  name: "scanner-camera-component",
85874
84795
  props: {
@@ -85930,7 +84851,7 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
85930
84851
  this.handleAction('start-main');
85931
84852
  window.addEventListener(SCANNER_CAMERA_REFRESH_PHOTO_EVENT, message => {
85932
84853
  if (message.type === SCANNER_CAMERA_REFRESH_PHOTO_EVENT) {
85933
- this.scannerVideoSrc = `${scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA}${message.scannerResultUrl}`;
84854
+ this.scannerVideoSrc = `${BEGIN_DATA}${message.scannerResultUrl}`;
85934
84855
  }
85935
84856
  });
85936
84857
  window.addEventListener('beforeunload', this.beforeunload);
@@ -85949,7 +84870,7 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
85949
84870
  break;
85950
84871
  case 5:
85951
84872
  // 良田
85952
- await eloam_plugin_service_ELoamPassService.stopCamera();
84873
+ await ELoamPassService.stopCamera();
85953
84874
  break;
85954
84875
  }
85955
84876
  },
@@ -85969,7 +84890,7 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
85969
84890
  case 0:
85970
84891
  // 捷宇
85971
84892
  let res = await JieYueService.scanByCamera();
85972
- this.$emit('send-scanner-result', `${scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA}${res}`);
84893
+ this.$emit('send-scanner-result', `${BEGIN_DATA}${res}`);
85973
84894
  break;
85974
84895
  case 3:
85975
84896
  {
@@ -85980,17 +84901,17 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
85980
84901
  case 4:
85981
84902
  {
85982
84903
  let res = await UdsPluginSocketService.scanByCamera();
85983
- this.$emit('send-scanner-result', `${scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA}${res}`);
84904
+ this.$emit('send-scanner-result', `${BEGIN_DATA}${res}`);
85984
84905
  break;
85985
84906
  }
85986
84907
  case 5:
85987
84908
  {
85988
84909
  // 良田
85989
84910
  let type = this.camera === 0 ? 'main' : 'vice';
85990
- const res = await eloam_plugin_service_ELoamPassService.scanByCamera(type, this.deskewStatus);
84911
+ const res = await ELoamPassService.scanByCamera(type, this.deskewStatus);
85991
84912
  if (res) {
85992
84913
  let path = res;
85993
- this.$emit('send-scanner-result', `${scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA}${path}`);
84914
+ this.$emit('send-scanner-result', `${BEGIN_DATA}${path}`);
85994
84915
  } else {
85995
84916
  this.$message.error('拍照出错,请检查设备是否连接成功');
85996
84917
  }
@@ -86000,7 +84921,7 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
86000
84921
  {
86001
84922
  // 国产客户端一体机
86002
84923
  let res = await WeiRongPluginService.scanByCamera();
86003
- this.$emit('send-scanner-result', `${scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA}${res}`);
84924
+ this.$emit('send-scanner-result', `${BEGIN_DATA}${res}`);
86004
84925
  break;
86005
84926
  }
86006
84927
  }
@@ -86025,10 +84946,10 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
86025
84946
  case 5:
86026
84947
  // 良田高拍仪
86027
84948
  if (!(String(navigator.platform).indexOf("Linux") > -1)) {
86028
- this.scannerVideoSrc = eloam_plugin_service_ELoamPassService.mainCameraUrl;
84949
+ this.scannerVideoSrc = ELoamPassService.mainCameraUrl;
86029
84950
  } else {
86030
- await eloam_plugin_service_ELoamPassService.initLinuxCamera();
86031
- let res = await eloam_plugin_service_ELoamPassService.startPreview('0');
84951
+ await ELoamPassService.initLinuxCamera();
84952
+ let res = await ELoamPassService.startPreview('0');
86032
84953
  if (res.returnCode == "0" || res.returnCode == "2") {
86033
84954
  this.eloamLinuxFrameTimer = setInterval(this.getEloamFrame, 300);
86034
84955
  }
@@ -86041,13 +84962,13 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
86041
84962
  }
86042
84963
  },
86043
84964
  async getEloamFrame() {
86044
- let res = await eloam_plugin_service_ELoamPassService.getEloamFrame();
84965
+ let res = await ELoamPassService.getEloamFrame();
86045
84966
  if (res.returnCode == "1") {
86046
84967
  clearInterval(this.eloamLinuxFrameTimer);
86047
84968
  return;
86048
84969
  }
86049
84970
  if (res.data.img == "") return;
86050
- this.scannerVideoSrc = `${scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA}${res.data.img}`;
84971
+ this.scannerVideoSrc = `${BEGIN_DATA}${res.data.img}`;
86051
84972
  },
86052
84973
  /**
86053
84974
  * 副摄像头
@@ -86069,10 +84990,10 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
86069
84990
  case 5:
86070
84991
  // 良田
86071
84992
  if (!(String(navigator.platform).indexOf("Linux") > -1)) {
86072
- this.scannerVideoSrc = eloam_plugin_service_ELoamPassService.mainCameraUrl;
84993
+ this.scannerVideoSrc = ELoamPassService.mainCameraUrl;
86073
84994
  } else {
86074
- await eloam_plugin_service_ELoamPassService.initLinuxCamera();
86075
- await eloam_plugin_service_ELoamPassService.startPreview('1');
84995
+ await ELoamPassService.initLinuxCamera();
84996
+ await ELoamPassService.startPreview('1');
86076
84997
  this.eloamLinuxFrameTimer = setInterval(this.getEloamFrame, 300);
86077
84998
  }
86078
84999
  break;
@@ -86084,16 +85005,16 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
86084
85005
  },
86085
85006
  async takePictureMerge(type) {
86086
85007
  if (type === '1' && this.deskewStatus === '0') return this.$message.warning('请先开启纠偏');
86087
- const res = await eloam_plugin_service_ELoamPassService.scanByCamera('main', this.deskewStatus, true);
85008
+ const res = await ELoamPassService.scanByCamera('main', this.deskewStatus, true);
86088
85009
  if (res) {
86089
85010
  let path = res;
86090
85011
  this.mergeImageList.push(path);
86091
85012
  if (this.mergeImageList.length === 1) this.$message.success('第一张拍摄成功,请拍第二张');
86092
85013
  if (this.mergeImageList.length === 2) {
86093
- let result = await eloam_plugin_service_ELoamPassService.mergeImage(this.mergeImageList, type);
85014
+ let result = await ELoamPassService.mergeImage(this.mergeImageList, type);
86094
85015
  this.mergeImageList = [];
86095
85016
  this.$message.success('合并成功');
86096
- this.$emit('send-scanner-result', `${scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA}${result}`);
85017
+ this.$emit('send-scanner-result', `${BEGIN_DATA}${result}`);
86097
85018
  }
86098
85019
  } else {
86099
85020
  this.$message.error('合并拍照出错,请检查设备是否连接成功');
@@ -86141,14 +85062,14 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
86141
85062
  } else {
86142
85063
  this.rotateDeg = 90;
86143
85064
  }
86144
- eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ScannerCameraRotate, this.rotateDeg); // 选装
85065
+ ELoamPassService.read(ELoamMethodCode.ScannerCameraRotate, this.rotateDeg); // 选装
86145
85066
  break;
86146
85067
  case 'open-deskew':
86147
85068
  this.deskewStatus = this.deskewStatus === '1' ? '0' : '1';
86148
- eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ScannerCameraDeskew_Base64, this.deskewStatus); // 开启纠偏裁边
85069
+ ELoamPassService.read(ELoamMethodCode.ScannerCameraDeskew_Base64, this.deskewStatus); // 开启纠偏裁边
86149
85070
  break;
86150
85071
  case 'close':
86151
- await eloam_plugin_service_ELoamPassService.stopCamera();
85072
+ await ELoamPassService.stopCamera();
86152
85073
  break;
86153
85074
  }
86154
85075
  }
@@ -86323,156 +85244,8 @@ scanner_camera.install = Vue => {
86323
85244
  Vue.component(scanner_camera.name, scanner_camera);
86324
85245
  };
86325
85246
  /* harmony default export */ var scanner_scanner_camera = (scanner_camera);
86326
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/id-card-reader/id-card-reader-eloam/src/id-card-reader-eloam.vue?vue&type=template&id=5b7ce781&scoped=true&
86327
- var id_card_reader_eloamvue_type_template_id_5b7ce781_scoped_true_render = function render() {
86328
- var _vm = this,
86329
- _c = _vm._self._c;
86330
- return _vm.tip ? _c('el-tooltip', {
86331
- staticClass: "id-card-reader-eloam",
86332
- attrs: {
86333
- "content": _vm.tip,
86334
- "placement": "top"
86335
- }
86336
- }, [_c('el-button', _vm._b({
86337
- on: {
86338
- "click": _vm.handleClick
86339
- }
86340
- }, 'el-button', {
86341
- disabled: _vm.disabled,
86342
- icon: _vm.icon,
86343
- loading: _vm.loading,
86344
- plain: _vm.plain,
86345
- round: _vm.round,
86346
- size: _vm.size,
86347
- type: _vm.type,
86348
- class: _vm._className
86349
- }, false), [_vm._t("default", function () {
86350
- return [_vm._v(_vm._s(_vm.label))];
86351
- })], 2)], 1) : _c('el-button', _vm._b({
86352
- on: {
86353
- "click": _vm.handleClick
86354
- }
86355
- }, 'el-button', {
86356
- disabled: _vm.disabled,
86357
- icon: _vm.icon,
86358
- loading: _vm.loading,
86359
- plain: _vm.plain,
86360
- round: _vm.round,
86361
- size: _vm.size,
86362
- type: _vm.type,
86363
- class: _vm._className
86364
- }, false), [_vm._t("default", function () {
86365
- return [_vm._v(_vm._s(_vm.label))];
86366
- })], 2);
86367
- };
86368
- var id_card_reader_eloamvue_type_template_id_5b7ce781_scoped_true_staticRenderFns = [];
86369
-
86370
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/id-card-reader/id-card-reader-eloam/src/id-card-reader-eloam.vue?vue&type=script&lang=js&
86371
-
86372
-
86373
- /* harmony default export */ var id_card_reader_eloamvue_type_script_lang_js_ = ({
86374
- name: 'id-card-reader-eloam',
86375
- props: {
86376
- label: {
86377
- default: '',
86378
- type: String
86379
- },
86380
- tip: {
86381
- default: '',
86382
- type: String
86383
- },
86384
- className: {
86385
- default: '',
86386
- type: String
86387
- },
86388
- size: {
86389
- default: 'mini',
86390
- type: String
86391
- },
86392
- type: {
86393
- default: 'primary',
86394
- type: String
86395
- },
86396
- plain: {
86397
- default: false,
86398
- type: Boolean
86399
- },
86400
- /** Determine whether it's a round button */
86401
- round: {
86402
- default: false,
86403
- type: Boolean
86404
- },
86405
- /** Determine whether it's loading */
86406
- loading: {
86407
- default: false,
86408
- type: Boolean
86409
- },
86410
- /** Button icon, accepts an icon name of Element icon component */
86411
- icon: {
86412
- default: 'el-icon-postcard',
86413
- type: String
86414
- },
86415
- disabled: {
86416
- default: false,
86417
- type: Boolean
86418
- }
86419
- },
86420
- computed: {
86421
- _className() {
86422
- const classBase = ['z-button'];
86423
- if (this.type === 'text') {
86424
- classBase.push('i-font-size');
86425
- }
86426
- if (!this.className) {
86427
- return classBase;
86428
- } else if (typeof this.className === 'string') {
86429
- classBase.push(this.className);
86430
- } else {
86431
- classBase.push(...this.className);
86432
- }
86433
- return classBase;
86434
- }
86435
- },
86436
- methods: {
86437
- async handleClick() {
86438
- let res = await ELoamPassService.idCardRead();
86439
- this.$emit('click', res);
86440
- }
86441
- }
86442
- });
86443
- ;// CONCATENATED MODULE: ./packages/id-card-reader/id-card-reader-eloam/src/id-card-reader-eloam.vue?vue&type=script&lang=js&
86444
- /* harmony default export */ var src_id_card_reader_eloamvue_type_script_lang_js_ = (id_card_reader_eloamvue_type_script_lang_js_);
86445
- ;// CONCATENATED MODULE: ./packages/id-card-reader/id-card-reader-eloam/src/id-card-reader-eloam.vue
86446
-
86447
-
86448
-
86449
-
86450
-
86451
- /* normalize component */
86452
- ;
86453
- var id_card_reader_eloam_component = normalizeComponent(
86454
- src_id_card_reader_eloamvue_type_script_lang_js_,
86455
- id_card_reader_eloamvue_type_template_id_5b7ce781_scoped_true_render,
86456
- id_card_reader_eloamvue_type_template_id_5b7ce781_scoped_true_staticRenderFns,
86457
- false,
86458
- null,
86459
- "5b7ce781",
86460
- null
86461
-
86462
- )
86463
-
86464
- /* harmony default export */ var id_card_reader_eloam = (id_card_reader_eloam_component.exports);
86465
- ;// CONCATENATED MODULE: ./packages/id-card-reader/id-card-reader-eloam/index.js
86466
-
86467
-
86468
- // 组件的install方法用于按需引入
86469
- // @ts-ignore
86470
- id_card_reader_eloam.install = Vue => {
86471
- Vue.component(id_card_reader_eloam.name, id_card_reader_eloam);
86472
- };
86473
- /* harmony default export */ var id_card_reader_id_card_reader_eloam = (id_card_reader_eloam);
86474
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/id-card-reader/id-card-reader-button/src/id-card-reader-button.vue?vue&type=template&id=cd700468&scoped=true&
86475
- var id_card_reader_buttonvue_type_template_id_cd700468_scoped_true_render = function render() {
85247
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/id-card-reader/id-card-reader-button/src/id-card-reader-button.vue?vue&type=template&id=43b57092&scoped=true&
85248
+ var id_card_reader_buttonvue_type_template_id_43b57092_scoped_true_render = function render() {
86476
85249
  var _vm = this,
86477
85250
  _c = _vm._self._c;
86478
85251
  return _vm.tip ? _c('el-tooltip', {
@@ -86549,7 +85322,7 @@ var id_card_reader_buttonvue_type_template_id_cd700468_scoped_true_render = func
86549
85322
  }
86550
85323
  })], 2);
86551
85324
  };
86552
- var id_card_reader_buttonvue_type_template_id_cd700468_scoped_true_staticRenderFns = [];
85325
+ var id_card_reader_buttonvue_type_template_id_43b57092_scoped_true_staticRenderFns = [];
86553
85326
 
86554
85327
  ;// CONCATENATED MODULE: ./packages/service/external-plugins/default-plugin-socket.service.ts
86555
85328
 
@@ -87870,8 +86643,8 @@ var face_auth_dialog_component = normalizeComponent(
87870
86643
  )
87871
86644
 
87872
86645
  /* harmony default export */ var face_auth_dialog = (face_auth_dialog_component.exports);
87873
- ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/id-card-reader/id-card-reader-button/src/dialog/eloam-take-photo-dialog.vue?vue&type=template&id=6e18b4de&scoped=true&
87874
- var eloam_take_photo_dialogvue_type_template_id_6e18b4de_scoped_true_render = function render() {
86646
+ ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/id-card-reader/id-card-reader-button/src/dialog/eloam-take-photo-dialog.vue?vue&type=template&id=0b1e6b36&scoped=true&
86647
+ var eloam_take_photo_dialogvue_type_template_id_0b1e6b36_scoped_true_render = function render() {
87875
86648
  var _vm = this,
87876
86649
  _c = _vm._self._c;
87877
86650
  return _vm.visibility ? _c('el-dialog', {
@@ -87937,7 +86710,7 @@ var eloam_take_photo_dialogvue_type_template_id_6e18b4de_scoped_true_render = fu
87937
86710
  }, 'el-button', button, false), [_vm._v(_vm._s(button.label) + " ")]) : _vm._e()];
87938
86711
  })], 2)]) : _vm._e();
87939
86712
  };
87940
- var eloam_take_photo_dialogvue_type_template_id_6e18b4de_scoped_true_staticRenderFns = [];
86713
+ var eloam_take_photo_dialogvue_type_template_id_0b1e6b36_scoped_true_staticRenderFns = [];
87941
86714
 
87942
86715
  ;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/@vue/cli-service/node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./packages/id-card-reader/id-card-reader-button/src/dialog/eloam-take-photo-dialog.vue?vue&type=script&lang=js&
87943
86716
 
@@ -88016,11 +86789,11 @@ var eloam_take_photo_dialogvue_type_template_id_6e18b4de_scoped_true_staticRende
88016
86789
  ;
88017
86790
  var eloam_take_photo_dialog_component = normalizeComponent(
88018
86791
  dialog_eloam_take_photo_dialogvue_type_script_lang_js_,
88019
- eloam_take_photo_dialogvue_type_template_id_6e18b4de_scoped_true_render,
88020
- eloam_take_photo_dialogvue_type_template_id_6e18b4de_scoped_true_staticRenderFns,
86792
+ eloam_take_photo_dialogvue_type_template_id_0b1e6b36_scoped_true_render,
86793
+ eloam_take_photo_dialogvue_type_template_id_0b1e6b36_scoped_true_staticRenderFns,
88021
86794
  false,
88022
86795
  null,
88023
- "6e18b4de",
86796
+ "0b1e6b36",
88024
86797
  null
88025
86798
 
88026
86799
  )
@@ -88944,9 +87717,9 @@ class ExitAndEntryPluginService {
88944
87717
  }
88945
87718
  let res;
88946
87719
  if (requestType === 'get') {
88947
- res = await custom_axios_CustomAxios[requestType](url, param, headers);
87720
+ res = await CustomAxios[requestType](url, param, headers);
88948
87721
  } else {
88949
- res = await custom_axios_CustomAxios[requestType](url, param, headers);
87722
+ res = await CustomAxios[requestType](url, param, headers);
88950
87723
  }
88951
87724
  return res;
88952
87725
  }
@@ -89350,7 +88123,7 @@ class PuTianPluginService {
89350
88123
  url = this.idCardWebSocketUrl + '/readCard';
89351
88124
  break;
89352
88125
  }
89353
- let res = await custom_axios_CustomAxios.get(url);
88126
+ let res = await CustomAxios.get(url);
89354
88127
  return res;
89355
88128
  }
89356
88129
  static async idCardRead() {
@@ -89480,7 +88253,7 @@ class JingLunPluginService {
89480
88253
  url = this.idCardWebSocketUrl + '/api/readCard';
89481
88254
  break;
89482
88255
  }
89483
- let res = await custom_axios_CustomAxios.post(url, {});
88256
+ let res = await CustomAxios.post(url, {});
89484
88257
  return res;
89485
88258
  }
89486
88259
  static async idCardRead() {
@@ -89489,7 +88262,7 @@ class JingLunPluginService {
89489
88262
  let data = readData.resultContent;
89490
88263
  let type = '1',
89491
88264
  name = data.partyName,
89492
- sex = data.gender === 1 ? '男' : '女',
88265
+ sex = data.gender == 1 ? '男' : '女',
89493
88266
  nation = data.nation,
89494
88267
  nationality = '中国',
89495
88268
  birthday = data.bornDay,
@@ -89635,7 +88408,7 @@ class HanWangPluginService {
89635
88408
  url = this.windowsWebServiceUrl + '/HWPenSign/HWGetSign';
89636
88409
  break;
89637
88410
  }
89638
- let res = await custom_axios_CustomAxios.get(url, data);
88411
+ let res = await CustomAxios.get(url, data);
89639
88412
  return res;
89640
88413
  }
89641
88414
  static async readInLinux(methodCode) {
@@ -90248,11 +89021,11 @@ _defineProperty(HanWangPluginService, "_isLinux", String(navigator.platform).ind
90248
89021
  ;
90249
89022
  var id_card_reader_button_component = normalizeComponent(
90250
89023
  src_id_card_reader_buttonvue_type_script_lang_js_,
90251
- id_card_reader_buttonvue_type_template_id_cd700468_scoped_true_render,
90252
- id_card_reader_buttonvue_type_template_id_cd700468_scoped_true_staticRenderFns,
89024
+ id_card_reader_buttonvue_type_template_id_43b57092_scoped_true_render,
89025
+ id_card_reader_buttonvue_type_template_id_43b57092_scoped_true_staticRenderFns,
90253
89026
  false,
90254
89027
  null,
90255
- "cd700468",
89028
+ "43b57092",
90256
89029
  null
90257
89030
 
90258
89031
  )
@@ -91124,9 +89897,6 @@ scanner_nko.install = Vue => {
91124
89897
 
91125
89898
 
91126
89899
 
91127
-
91128
-
91129
-
91130
89900
  // import {
91131
89901
  // Button,
91132
89902
  // Tooltip,
@@ -91142,7 +89912,7 @@ scanner_nko.install = Vue => {
91142
89912
  // Dialog
91143
89913
  // ]
91144
89914
  // 组件列表
91145
- const components = [packages_zs_empty, id_card_reader_id_card_reader_demo, id_card_reader_id_card_reader_eloam, id_card_reader_id_card_reader_button, scanner_scanner_high_camera_jieyu, scanner_scanner_eloam, scanner_scanner_camera, scanner_scanner_nko];
89915
+ const components = [packages_zs_empty, id_card_reader_id_card_reader_demo, id_card_reader_id_card_reader_button, scanner_scanner_camera, scanner_scanner_nko];
91146
89916
 
91147
89917
  // 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,那么所有的组件都会被注册
91148
89918
  const install = Vue => {