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.
- package/dist/external-plugin.common.js +120 -1350
- package/dist/external-plugin.css +1 -1
- package/dist/external-plugin.umd.js +120 -1350
- package/dist/external-plugin.umd.min.js +3 -3
- package/package.json +1 -1
@@ -83093,1130 +83093,6 @@ id_card_reader_demo.install = Vue => {
|
|
83093
83093
|
Vue.component(id_card_reader_demo.name, id_card_reader_demo);
|
83094
83094
|
};
|
83095
83095
|
/* harmony default export */ var id_card_reader_id_card_reader_demo = (id_card_reader_demo);
|
83096
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
83097
|
-
var scanner_high_camera_jieyuvue_type_template_id_ffa79d1e_scoped_true_render = function render() {
|
83098
|
-
var _vm = this,
|
83099
|
-
_c = _vm._self._c;
|
83100
|
-
return _c('div', {
|
83101
|
-
staticClass: "scanner-high-camera-container"
|
83102
|
-
}, [_vm.openMode === 'dialog' ? _c('div', {
|
83103
|
-
staticClass: "scanner-high-camera-button"
|
83104
|
-
}, [_vm.tip ? _c('el-tooltip', {
|
83105
|
-
staticClass: "id-card-reader-demo",
|
83106
|
-
attrs: {
|
83107
|
-
"content": _vm.tip,
|
83108
|
-
"placement": "top"
|
83109
|
-
}
|
83110
|
-
}, [_c('el-button', _vm._b({
|
83111
|
-
on: {
|
83112
|
-
"click": _vm.openScanDialog
|
83113
|
-
}
|
83114
|
-
}, 'el-button', {
|
83115
|
-
disabled: _vm.disabled,
|
83116
|
-
icon: _vm.icon,
|
83117
|
-
loading: _vm.loading,
|
83118
|
-
plain: _vm.plain,
|
83119
|
-
round: _vm.round,
|
83120
|
-
size: _vm.size,
|
83121
|
-
type: _vm.type,
|
83122
|
-
class: _vm._className
|
83123
|
-
}, false), [_vm._t("default", function () {
|
83124
|
-
return [_vm._v(_vm._s(_vm.label))];
|
83125
|
-
})], 2)], 1) : _c('el-button', _vm._b({
|
83126
|
-
on: {
|
83127
|
-
"click": _vm.openScanDialog
|
83128
|
-
}
|
83129
|
-
}, 'el-button', {
|
83130
|
-
disabled: _vm.disabled,
|
83131
|
-
icon: _vm.icon,
|
83132
|
-
loading: _vm.loading,
|
83133
|
-
plain: _vm.plain,
|
83134
|
-
round: _vm.round,
|
83135
|
-
size: _vm.size,
|
83136
|
-
type: _vm.type,
|
83137
|
-
class: _vm._className
|
83138
|
-
}, false), [_vm._t("default", function () {
|
83139
|
-
return [_vm._v(_vm._s(_vm.label))];
|
83140
|
-
})], 2), _c('el-dialog', {
|
83141
|
-
staticClass: "scanner-high-camera-dialog",
|
83142
|
-
attrs: {
|
83143
|
-
"title": "影像扫描",
|
83144
|
-
"visible": _vm.dialogVisible,
|
83145
|
-
"width": "60%"
|
83146
|
-
},
|
83147
|
-
on: {
|
83148
|
-
"update:visible": function ($event) {
|
83149
|
-
_vm.dialogVisible = $event;
|
83150
|
-
}
|
83151
|
-
}
|
83152
|
-
}, [_vm.dialogVisible ? _c('scanner-high-camera-component', {
|
83153
|
-
on: {
|
83154
|
-
"send-scanner-result": _vm.setScannerResult
|
83155
|
-
},
|
83156
|
-
scopedSlots: _vm._u([{
|
83157
|
-
key: "action",
|
83158
|
-
fn: function () {
|
83159
|
-
return [_vm._t("right-action")];
|
83160
|
-
},
|
83161
|
-
proxy: true
|
83162
|
-
}], null, true)
|
83163
|
-
}) : _vm._e(), _c('span', {
|
83164
|
-
staticClass: "dialog-footer",
|
83165
|
-
attrs: {
|
83166
|
-
"slot": "footer"
|
83167
|
-
},
|
83168
|
-
slot: "footer"
|
83169
|
-
}, [_c('el-button', {
|
83170
|
-
attrs: {
|
83171
|
-
"size": "small"
|
83172
|
-
},
|
83173
|
-
on: {
|
83174
|
-
"click": function ($event) {
|
83175
|
-
_vm.dialogVisible = false;
|
83176
|
-
}
|
83177
|
-
}
|
83178
|
-
}, [_vm._v("取 消")]), _c('el-button', {
|
83179
|
-
attrs: {
|
83180
|
-
"size": "small",
|
83181
|
-
"type": "primary"
|
83182
|
-
},
|
83183
|
-
on: {
|
83184
|
-
"click": _vm.sendScannerResult
|
83185
|
-
}
|
83186
|
-
}, [_vm._v("确 定")])], 1)], 1)], 1) : _c('scanner-high-camera-component', {
|
83187
|
-
on: {
|
83188
|
-
"send-scanner-result": _vm.setScannerResult
|
83189
|
-
},
|
83190
|
-
scopedSlots: _vm._u([{
|
83191
|
-
key: "action",
|
83192
|
-
fn: function () {
|
83193
|
-
return [_vm._t("right-action")];
|
83194
|
-
},
|
83195
|
-
proxy: true
|
83196
|
-
}], null, true)
|
83197
|
-
})], 1);
|
83198
|
-
};
|
83199
|
-
var scanner_high_camera_jieyuvue_type_template_id_ffa79d1e_scoped_true_staticRenderFns = [];
|
83200
|
-
|
83201
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
83202
|
-
var scanner_high_camera_componentvue_type_template_id_e24dd0c8_scoped_true_render = function render() {
|
83203
|
-
var _vm = this,
|
83204
|
-
_c = _vm._self._c;
|
83205
|
-
return _c('div', {
|
83206
|
-
staticClass: "scanner-high-camera-component"
|
83207
|
-
}, [_c('div', {
|
83208
|
-
staticClass: "scanner-result-content"
|
83209
|
-
}, [_c('div', {
|
83210
|
-
staticClass: "content-main flex-1"
|
83211
|
-
}, [_vm.loadSuccess ? _c('div', {
|
83212
|
-
staticClass: "load-success"
|
83213
|
-
}, [_c('img', {
|
83214
|
-
attrs: {
|
83215
|
-
"id": "photo",
|
83216
|
-
"src": _vm.scannerResultSrc
|
83217
|
-
}
|
83218
|
-
})]) : _c('div', {
|
83219
|
-
staticClass: "load-error"
|
83220
|
-
}, [_c('i', {
|
83221
|
-
staticClass: "el-icon-s-cooperation"
|
83222
|
-
}), _c('p', [_vm._v("请先安装插件")])])]), _c('div', {
|
83223
|
-
staticClass: "handle-action"
|
83224
|
-
}, [_c('el-select', {
|
83225
|
-
staticClass: "select",
|
83226
|
-
attrs: {
|
83227
|
-
"size": "small"
|
83228
|
-
},
|
83229
|
-
on: {
|
83230
|
-
"change": _vm.selectChange
|
83231
|
-
},
|
83232
|
-
model: {
|
83233
|
-
value: _vm.camera,
|
83234
|
-
callback: function ($$v) {
|
83235
|
-
_vm.camera = $$v;
|
83236
|
-
},
|
83237
|
-
expression: "camera"
|
83238
|
-
}
|
83239
|
-
}, _vm._l(_vm.cameras, function (item) {
|
83240
|
-
return _c('el-option', {
|
83241
|
-
key: item.value,
|
83242
|
-
attrs: {
|
83243
|
-
"label": item.name,
|
83244
|
-
"value": item.value
|
83245
|
-
}
|
83246
|
-
});
|
83247
|
-
}), 1), _vm._l(_vm.buttonList, function (item) {
|
83248
|
-
return [_c('el-button', {
|
83249
|
-
key: item.name,
|
83250
|
-
attrs: {
|
83251
|
-
"type": "primary",
|
83252
|
-
"size": "small"
|
83253
|
-
},
|
83254
|
-
on: {
|
83255
|
-
"click": function ($event) {
|
83256
|
-
return _vm.handleAction(item.name);
|
83257
|
-
}
|
83258
|
-
}
|
83259
|
-
}, [_vm._v(_vm._s(item.label))]), _vm._t("action")];
|
83260
|
-
})], 2)])]);
|
83261
|
-
};
|
83262
|
-
var scanner_high_camera_componentvue_type_template_id_e24dd0c8_scoped_true_staticRenderFns = [];
|
83263
|
-
|
83264
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
83265
|
-
const BEGIN_DATA = 'data:image/jpeg;base64,';
|
83266
|
-
/* harmony default export */ var scanner_high_camera_componentvue_type_script_lang_js_ = ({
|
83267
|
-
name: "scanner-high-camera-component",
|
83268
|
-
data: () => {
|
83269
|
-
return {
|
83270
|
-
totalTimeLength: 0,
|
83271
|
-
timeLength: '',
|
83272
|
-
timer: 0,
|
83273
|
-
str1: '',
|
83274
|
-
str2: '',
|
83275
|
-
webSocket: {},
|
83276
|
-
scannerResultSrc: '',
|
83277
|
-
loadSuccess: true,
|
83278
|
-
camera: 0,
|
83279
|
-
cameras: [{
|
83280
|
-
name: '文档',
|
83281
|
-
value: 0
|
83282
|
-
}, {
|
83283
|
-
name: '照片',
|
83284
|
-
value: 1
|
83285
|
-
}],
|
83286
|
-
buttonList: [
|
83287
|
-
// {label: '启动主', name: 'start-main'},
|
83288
|
-
// {label: '旋转启动主', name: 'rotation'},
|
83289
|
-
// {label: '启动副', name: 'start-vice'},
|
83290
|
-
// {label: '停止', name: 'stop'},
|
83291
|
-
// {label: '自动对焦', name: 'autofocus'},
|
83292
|
-
// {label: '去黑边', name: 'Black edge'},
|
83293
|
-
// {label: 'Base64', name: 'base64'},
|
83294
|
-
// {label: '开始录屏', name: 'start-record'},
|
83295
|
-
// {label: '停止录屏', name: 'stop-record'},
|
83296
|
-
{
|
83297
|
-
label: '拍照',
|
83298
|
-
name: 'take-pictures'
|
83299
|
-
}
|
83300
|
-
// {label: '设置去灰底', name: ''},
|
83301
|
-
// {label: 'FILTER设置', name: ''},
|
83302
|
-
// {label: 'PIN设置', name: ''},
|
83303
|
-
// {label: '自动寻边', name: ''},
|
83304
|
-
// {label: '身份证自动寻边', name: ''},
|
83305
|
-
// {label: 'vSetExposure', name: ''},
|
83306
|
-
// {label: 'vSetBrightness', name: ''},
|
83307
|
-
// {label: 'vSetContrast', name: ''},
|
83308
|
-
// {label: '设置分辨率', name: ''},
|
83309
|
-
]
|
83310
|
-
};
|
83311
|
-
},
|
83312
|
-
|
83313
|
-
mounted() {
|
83314
|
-
this.webSocket = new WebSocket('ws://127.0.0.1:1818');
|
83315
|
-
window.onbeforeunload = () => {
|
83316
|
-
this.webSocket.send("bStopPlay()");
|
83317
|
-
this.webSocket.send("bStopPlay4()");
|
83318
|
-
};
|
83319
|
-
this.webSocket.onerror = event => {
|
83320
|
-
this.onError(event);
|
83321
|
-
};
|
83322
|
-
this.webSocket.onopen = event => {
|
83323
|
-
this.onOpen(event);
|
83324
|
-
};
|
83325
|
-
this.webSocket.onclose = event => {
|
83326
|
-
this.onClose(event);
|
83327
|
-
this.webSocket.send("bStopPlay()");
|
83328
|
-
};
|
83329
|
-
this.webSocket.onmessage = event => {
|
83330
|
-
this.onMessage(event);
|
83331
|
-
};
|
83332
|
-
setTimeout(() => {
|
83333
|
-
this.handleAction('start-main');
|
83334
|
-
}, 800);
|
83335
|
-
},
|
83336
|
-
destroyed() {
|
83337
|
-
this.handleAction('stop');
|
83338
|
-
this.webSocket.close();
|
83339
|
-
},
|
83340
|
-
methods: {
|
83341
|
-
selectChange(val) {
|
83342
|
-
let handleName = val === 1 ? 'start-vice' : 'start-main';
|
83343
|
-
this.handleAction(handleName);
|
83344
|
-
},
|
83345
|
-
handleAction(name) {
|
83346
|
-
switch (name) {
|
83347
|
-
case 'start-main':
|
83348
|
-
this.StartPlay_onclick();
|
83349
|
-
break;
|
83350
|
-
case 'rotation':
|
83351
|
-
this.start('bStartPlayRotate(90)');
|
83352
|
-
break;
|
83353
|
-
case 'start-vice':
|
83354
|
-
this.start('bStartPlay2');
|
83355
|
-
break;
|
83356
|
-
case 'stop':
|
83357
|
-
this.start('bStopPlay');
|
83358
|
-
break;
|
83359
|
-
case 'autofocus':
|
83360
|
-
this.start('AutoFocus');
|
83361
|
-
break;
|
83362
|
-
case 'Black edge':
|
83363
|
-
this.start('vSetDelHBFlag(true)');
|
83364
|
-
break;
|
83365
|
-
case 'base64':
|
83366
|
-
this.start('sGetBase64');
|
83367
|
-
break;
|
83368
|
-
case 'start-record':
|
83369
|
-
this.start('bStartRec(d:\\test.avi)');
|
83370
|
-
break;
|
83371
|
-
case 'stop-record':
|
83372
|
-
this.start('bStopRec');
|
83373
|
-
break;
|
83374
|
-
case 'take-pictures':
|
83375
|
-
this.start('bSaveJPG(D:\\,Photo)');
|
83376
|
-
this.$emit('send-scanner-result', this.scannerResultSrc);
|
83377
|
-
break;
|
83378
|
-
}
|
83379
|
-
},
|
83380
|
-
timeGo() {
|
83381
|
-
this.totalTimeLength++;
|
83382
|
-
let Hour = 0,
|
83383
|
-
Minue = 0,
|
83384
|
-
Second = 0;
|
83385
|
-
Hour = Math.floor(this.totalTimeLength / 3600);
|
83386
|
-
Minue = Math.floor(this.totalTimeLength / 60 % 60);
|
83387
|
-
Second = Math.floor(this.totalTimeLength % 60);
|
83388
|
-
this.timeLength = Hour + "时" + Minue + "分" + Second + "秒";
|
83389
|
-
},
|
83390
|
-
onMessage(event) {
|
83391
|
-
if (event.data.indexOf('BarCodeTransferBegin') >= 0) {
|
83392
|
-
console.log(event.data.replace('BarCodeTransferBegin', '').replace('BarCodeTransferEnd', ''));
|
83393
|
-
} else if (event.data.indexOf('BeginbSaveJPG') >= 0) {
|
83394
|
-
this.str1 = event.data.replace('BeginbSaveJPG', '').replace('EndbSaveJPG', '');
|
83395
|
-
console.log(this.str1);
|
83396
|
-
} else if (event.data.indexOf('BeginbStopPlay') >= 0) {
|
83397
|
-
console.log(event.data);
|
83398
|
-
console.log(event.data.replace('BeginbStopPlay', '').replace('EndbStopPlay', ''));
|
83399
|
-
} else if (event.data.indexOf('BeginvSetResolution') >= 0) {
|
83400
|
-
console.log(event.data.replace('BeginvSetResolution', '').replace('EndvSetResolution', ''));
|
83401
|
-
} else if (event.data.indexOf('BeginvSetRemoveGBFlag') >= 0) {
|
83402
|
-
console.log(event.data.replace('BeginvSetRemoveGBFlag', '').replace('EndvSetRemoveGBFlag', ''));
|
83403
|
-
} else if (event.data.indexOf('BeginbFileExist') >= 0) {
|
83404
|
-
console.log(event.data.replace('BeginbFileExist', '').replace('EndbFileExist', ''));
|
83405
|
-
} else if (event.data.indexOf('BeginbStartPlay2') >= 0) {
|
83406
|
-
console.log(event.data.replace('BeginbStartPlay2', '').replace('EndbStartPlay2', ''));
|
83407
|
-
} else if (event.data.indexOf('BeginbStartPlay') >= 0) {
|
83408
|
-
console.log(event.data.replace('BeginbStartPlay', '').replace('EndbStartPlay', ''));
|
83409
|
-
} else if (event.data.indexOf('BeginbSetMode') >= 0) {
|
83410
|
-
console.log(event.data.replace('BeginbSetMode', '').replace('EndbSetMode', ''));
|
83411
|
-
} else {
|
83412
|
-
this.scannerResultSrc = `${BEGIN_DATA}${event.data}`;
|
83413
|
-
// this.$emit('send-scanner-result', this.scannerResultSrc);
|
83414
|
-
}
|
83415
|
-
},
|
83416
|
-
|
83417
|
-
onError(event) {
|
83418
|
-
console.log('error', event.data);
|
83419
|
-
this.loadSuccess = false;
|
83420
|
-
},
|
83421
|
-
onClose(event) {
|
83422
|
-
this.webSocket.send("bStopPlay()");
|
83423
|
-
this.webSocket.send("bStopPlay4()");
|
83424
|
-
},
|
83425
|
-
onOpen(event) {},
|
83426
|
-
start(el) {
|
83427
|
-
if (el == 'bStartRec(d:\\test.avi)') {
|
83428
|
-
this.timer = window.setInterval(this.timeGo, 1000);
|
83429
|
-
}
|
83430
|
-
if (el == 'bStopRec') {
|
83431
|
-
window.clearInterval(this.timer);
|
83432
|
-
this.totalTimeLength = 0;
|
83433
|
-
console.log("录屏结束");
|
83434
|
-
}
|
83435
|
-
this.webSocket.send(el);
|
83436
|
-
return false;
|
83437
|
-
},
|
83438
|
-
vout_OnClick() {},
|
83439
|
-
Stop_onclick() {
|
83440
|
-
this.webSocket.send("bStopPlay()");
|
83441
|
-
},
|
83442
|
-
StartPlay_onclick() {
|
83443
|
-
this.webSocket.send("vSetResolution(8)");
|
83444
|
-
this.webSocket.send("bStartPlay()");
|
83445
|
-
// this.loadSuccess = true
|
83446
|
-
}
|
83447
|
-
}
|
83448
|
-
});
|
83449
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue?vue&type=script&lang=js&
|
83450
|
-
/* harmony default export */ var component_scanner_high_camera_componentvue_type_script_lang_js_ = (scanner_high_camera_componentvue_type_script_lang_js_);
|
83451
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.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-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.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&
|
83452
|
-
// extracted by mini-css-extract-plugin
|
83453
|
-
|
83454
|
-
;// 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&
|
83455
|
-
|
83456
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-high-camera-jieyu/src/component/scanner-high-camera-component.vue
|
83457
|
-
|
83458
|
-
|
83459
|
-
|
83460
|
-
;
|
83461
|
-
|
83462
|
-
|
83463
|
-
/* normalize component */
|
83464
|
-
|
83465
|
-
var scanner_high_camera_component_component = normalizeComponent(
|
83466
|
-
component_scanner_high_camera_componentvue_type_script_lang_js_,
|
83467
|
-
scanner_high_camera_componentvue_type_template_id_e24dd0c8_scoped_true_render,
|
83468
|
-
scanner_high_camera_componentvue_type_template_id_e24dd0c8_scoped_true_staticRenderFns,
|
83469
|
-
false,
|
83470
|
-
null,
|
83471
|
-
"e24dd0c8",
|
83472
|
-
null
|
83473
|
-
|
83474
|
-
)
|
83475
|
-
|
83476
|
-
/* harmony default export */ var scanner_high_camera_component = (scanner_high_camera_component_component.exports);
|
83477
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
83478
|
-
|
83479
|
-
|
83480
|
-
/* harmony default export */ var scanner_high_camera_jieyuvue_type_script_lang_js_ = ({
|
83481
|
-
name: "scanner-high-camera-jieyu",
|
83482
|
-
components: {
|
83483
|
-
ScannerHighCameraComponent: scanner_high_camera_component
|
83484
|
-
},
|
83485
|
-
props: {
|
83486
|
-
openMode: {
|
83487
|
-
default: '',
|
83488
|
-
type: String
|
83489
|
-
},
|
83490
|
-
label: {
|
83491
|
-
default: '',
|
83492
|
-
type: String
|
83493
|
-
},
|
83494
|
-
tip: {
|
83495
|
-
default: '',
|
83496
|
-
type: String
|
83497
|
-
},
|
83498
|
-
className: {
|
83499
|
-
default: '',
|
83500
|
-
type: String
|
83501
|
-
},
|
83502
|
-
size: {
|
83503
|
-
default: '',
|
83504
|
-
type: String
|
83505
|
-
},
|
83506
|
-
type: {
|
83507
|
-
default: '',
|
83508
|
-
type: String
|
83509
|
-
},
|
83510
|
-
plain: {
|
83511
|
-
default: false,
|
83512
|
-
type: Boolean
|
83513
|
-
},
|
83514
|
-
round: {
|
83515
|
-
default: false,
|
83516
|
-
type: Boolean
|
83517
|
-
},
|
83518
|
-
loading: {
|
83519
|
-
default: false,
|
83520
|
-
type: Boolean
|
83521
|
-
},
|
83522
|
-
icon: {
|
83523
|
-
default: '',
|
83524
|
-
type: String
|
83525
|
-
},
|
83526
|
-
disabled: {
|
83527
|
-
default: false,
|
83528
|
-
type: Boolean
|
83529
|
-
}
|
83530
|
-
},
|
83531
|
-
data: () => {
|
83532
|
-
return {
|
83533
|
-
dialogVisible: false,
|
83534
|
-
scannerResult: ''
|
83535
|
-
};
|
83536
|
-
},
|
83537
|
-
computed: {
|
83538
|
-
_className() {
|
83539
|
-
const classBase = ['z-button'];
|
83540
|
-
if (this.type === 'text') {
|
83541
|
-
classBase.push('i-font-size');
|
83542
|
-
}
|
83543
|
-
if (!this.className) {
|
83544
|
-
return classBase;
|
83545
|
-
} else if (typeof this.className === 'string') {
|
83546
|
-
classBase.push(this.className);
|
83547
|
-
} else {
|
83548
|
-
classBase.push(...this.className);
|
83549
|
-
}
|
83550
|
-
return classBase;
|
83551
|
-
}
|
83552
|
-
},
|
83553
|
-
methods: {
|
83554
|
-
openScanDialog() {
|
83555
|
-
this.dialogVisible = true;
|
83556
|
-
},
|
83557
|
-
setScannerResult(src) {
|
83558
|
-
this.scannerResult = src;
|
83559
|
-
if (this.openMode !== 'dialog') {
|
83560
|
-
this.$emit('send-scanner-result', this.scannerResult);
|
83561
|
-
}
|
83562
|
-
},
|
83563
|
-
sendScannerResult() {
|
83564
|
-
if (this.scannerResult) {
|
83565
|
-
this.$emit('send-scanner-result', this.scannerResult);
|
83566
|
-
this.dialogVisible = false;
|
83567
|
-
}
|
83568
|
-
}
|
83569
|
-
}
|
83570
|
-
});
|
83571
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue?vue&type=script&lang=js&
|
83572
|
-
/* harmony default export */ var src_scanner_high_camera_jieyuvue_type_script_lang_js_ = (scanner_high_camera_jieyuvue_type_script_lang_js_);
|
83573
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.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-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.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&
|
83574
|
-
// extracted by mini-css-extract-plugin
|
83575
|
-
|
83576
|
-
;// 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&
|
83577
|
-
|
83578
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-high-camera-jieyu/src/scanner-high-camera-jieyu.vue
|
83579
|
-
|
83580
|
-
|
83581
|
-
|
83582
|
-
;
|
83583
|
-
|
83584
|
-
|
83585
|
-
/* normalize component */
|
83586
|
-
|
83587
|
-
var scanner_high_camera_jieyu_component = normalizeComponent(
|
83588
|
-
src_scanner_high_camera_jieyuvue_type_script_lang_js_,
|
83589
|
-
scanner_high_camera_jieyuvue_type_template_id_ffa79d1e_scoped_true_render,
|
83590
|
-
scanner_high_camera_jieyuvue_type_template_id_ffa79d1e_scoped_true_staticRenderFns,
|
83591
|
-
false,
|
83592
|
-
null,
|
83593
|
-
"ffa79d1e",
|
83594
|
-
null
|
83595
|
-
|
83596
|
-
)
|
83597
|
-
|
83598
|
-
/* harmony default export */ var scanner_high_camera_jieyu = (scanner_high_camera_jieyu_component.exports);
|
83599
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-high-camera-jieyu/index.js
|
83600
|
-
/**
|
83601
|
-
* @author: lvcy
|
83602
|
-
* @date: 2023-01-09
|
83603
|
-
* @description:index
|
83604
|
-
*/
|
83605
|
-
|
83606
|
-
|
83607
|
-
// 组件的install方法用于按需引入
|
83608
|
-
// @ts-ignore
|
83609
|
-
scanner_high_camera_jieyu.install = Vue => {
|
83610
|
-
Vue.component(scanner_high_camera_jieyu.name, scanner_high_camera_jieyu);
|
83611
|
-
};
|
83612
|
-
/* harmony default export */ var scanner_scanner_high_camera_jieyu = (scanner_high_camera_jieyu);
|
83613
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
83614
|
-
var scanner_eloamvue_type_template_id_a80d3a26_scoped_true_render = function render() {
|
83615
|
-
var _vm = this,
|
83616
|
-
_c = _vm._self._c;
|
83617
|
-
return _c('div', {
|
83618
|
-
staticClass: "scanner-high-camera-container"
|
83619
|
-
}, [_vm.openMode === 'dialog' ? _c('div', {
|
83620
|
-
staticClass: "scanner-high-camera-button"
|
83621
|
-
}, [_vm.tip ? _c('el-tooltip', {
|
83622
|
-
staticClass: "id-card-reader-demo",
|
83623
|
-
attrs: {
|
83624
|
-
"content": _vm.tip,
|
83625
|
-
"placement": "top"
|
83626
|
-
}
|
83627
|
-
}, [_c('el-button', _vm._b({
|
83628
|
-
on: {
|
83629
|
-
"click": _vm.openScanDialog
|
83630
|
-
}
|
83631
|
-
}, 'el-button', {
|
83632
|
-
disabled: _vm.disabled,
|
83633
|
-
icon: _vm.icon,
|
83634
|
-
loading: _vm.loading,
|
83635
|
-
plain: _vm.plain,
|
83636
|
-
round: _vm.round,
|
83637
|
-
size: _vm.size,
|
83638
|
-
type: _vm.type,
|
83639
|
-
class: _vm._className
|
83640
|
-
}, false), [_vm._t("default", function () {
|
83641
|
-
return [_vm._v(_vm._s(_vm.label))];
|
83642
|
-
})], 2)], 1) : _c('el-button', _vm._b({
|
83643
|
-
on: {
|
83644
|
-
"click": _vm.openScanDialog
|
83645
|
-
}
|
83646
|
-
}, 'el-button', {
|
83647
|
-
disabled: _vm.disabled,
|
83648
|
-
icon: _vm.icon,
|
83649
|
-
loading: _vm.loading,
|
83650
|
-
plain: _vm.plain,
|
83651
|
-
round: _vm.round,
|
83652
|
-
size: _vm.size,
|
83653
|
-
type: _vm.type,
|
83654
|
-
class: _vm._className
|
83655
|
-
}, false), [_vm._t("default", function () {
|
83656
|
-
return [_vm._v(_vm._s(_vm.label))];
|
83657
|
-
})], 2), _c('el-dialog', {
|
83658
|
-
staticClass: "scanner-high-camera-dialog",
|
83659
|
-
attrs: {
|
83660
|
-
"title": "影像扫描",
|
83661
|
-
"visible": _vm.dialogVisible,
|
83662
|
-
"width": "60%"
|
83663
|
-
},
|
83664
|
-
on: {
|
83665
|
-
"update:visible": function ($event) {
|
83666
|
-
_vm.dialogVisible = $event;
|
83667
|
-
}
|
83668
|
-
}
|
83669
|
-
}, [_vm.dialogVisible ? _c('scanner-eloam-component', {
|
83670
|
-
on: {
|
83671
|
-
"send-scanner-result": _vm.setScannerResult
|
83672
|
-
},
|
83673
|
-
scopedSlots: _vm._u([{
|
83674
|
-
key: "action",
|
83675
|
-
fn: function () {
|
83676
|
-
return [_vm._t("right-action")];
|
83677
|
-
},
|
83678
|
-
proxy: true
|
83679
|
-
}], null, true)
|
83680
|
-
}) : _vm._e(), _c('span', {
|
83681
|
-
staticClass: "dialog-footer",
|
83682
|
-
attrs: {
|
83683
|
-
"slot": "footer"
|
83684
|
-
},
|
83685
|
-
slot: "footer"
|
83686
|
-
}, [_c('el-button', {
|
83687
|
-
attrs: {
|
83688
|
-
"size": "small"
|
83689
|
-
},
|
83690
|
-
on: {
|
83691
|
-
"click": function ($event) {
|
83692
|
-
_vm.dialogVisible = false;
|
83693
|
-
}
|
83694
|
-
}
|
83695
|
-
}, [_vm._v("取 消")]), _c('el-button', {
|
83696
|
-
attrs: {
|
83697
|
-
"size": "small",
|
83698
|
-
"type": "primary"
|
83699
|
-
},
|
83700
|
-
on: {
|
83701
|
-
"click": _vm.sendScannerResult
|
83702
|
-
}
|
83703
|
-
}, [_vm._v("确 定")])], 1)], 1)], 1) : _c('scanner-eloam-component', {
|
83704
|
-
on: {
|
83705
|
-
"send-scanner-result": _vm.setScannerResult
|
83706
|
-
},
|
83707
|
-
scopedSlots: _vm._u([{
|
83708
|
-
key: "action",
|
83709
|
-
fn: function () {
|
83710
|
-
return [_vm._t("right-action")];
|
83711
|
-
},
|
83712
|
-
proxy: true
|
83713
|
-
}], null, true)
|
83714
|
-
})], 1);
|
83715
|
-
};
|
83716
|
-
var scanner_eloamvue_type_template_id_a80d3a26_scoped_true_staticRenderFns = [];
|
83717
|
-
|
83718
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
83719
|
-
var scanner_eloam_componentvue_type_template_id_428304e7_scoped_true_render = function render() {
|
83720
|
-
var _vm = this,
|
83721
|
-
_c = _vm._self._c;
|
83722
|
-
return _c('div', {
|
83723
|
-
staticClass: "scanner-high-camera-component"
|
83724
|
-
}, [_c('div', {
|
83725
|
-
staticClass: "scanner-result-content"
|
83726
|
-
}, [_c('div', {
|
83727
|
-
staticClass: "content-main flex-1"
|
83728
|
-
}, [_vm.loadSuccess ? _c('div', {
|
83729
|
-
staticClass: "load-success"
|
83730
|
-
}, [_c('img', {
|
83731
|
-
staticStyle: {
|
83732
|
-
"width": "800px",
|
83733
|
-
"height": "600px"
|
83734
|
-
},
|
83735
|
-
attrs: {
|
83736
|
-
"id": "photo",
|
83737
|
-
"src": _vm.scannerVideoSrc
|
83738
|
-
}
|
83739
|
-
})]) : _c('div', {
|
83740
|
-
staticClass: "load-error"
|
83741
|
-
}, [_c('i', {
|
83742
|
-
staticClass: "el-icon-s-cooperation"
|
83743
|
-
}), _c('p', [_vm._v("请先安装插件")])])]), _c('div', {
|
83744
|
-
staticClass: "handle-action"
|
83745
|
-
}, [_c('el-select', {
|
83746
|
-
staticClass: "select",
|
83747
|
-
attrs: {
|
83748
|
-
"size": "small"
|
83749
|
-
},
|
83750
|
-
on: {
|
83751
|
-
"change": _vm.selectChange
|
83752
|
-
},
|
83753
|
-
model: {
|
83754
|
-
value: _vm.camera,
|
83755
|
-
callback: function ($$v) {
|
83756
|
-
_vm.camera = $$v;
|
83757
|
-
},
|
83758
|
-
expression: "camera"
|
83759
|
-
}
|
83760
|
-
}, _vm._l(_vm.cameras, function (item) {
|
83761
|
-
return _c('el-option', {
|
83762
|
-
key: item.value,
|
83763
|
-
attrs: {
|
83764
|
-
"label": item.name,
|
83765
|
-
"value": item.value
|
83766
|
-
}
|
83767
|
-
});
|
83768
|
-
}), 1), _vm._l(_vm.buttonList, function (item) {
|
83769
|
-
return [_c('el-button', {
|
83770
|
-
key: item.name,
|
83771
|
-
attrs: {
|
83772
|
-
"type": "primary",
|
83773
|
-
"size": "small"
|
83774
|
-
},
|
83775
|
-
on: {
|
83776
|
-
"click": function ($event) {
|
83777
|
-
return _vm.handleAction(item.name);
|
83778
|
-
}
|
83779
|
-
}
|
83780
|
-
}, [_vm._v(_vm._s(item.label))]), _vm._t("action")];
|
83781
|
-
})], 2)])]);
|
83782
|
-
};
|
83783
|
-
var scanner_eloam_componentvue_type_template_id_428304e7_scoped_true_staticRenderFns = [];
|
83784
|
-
|
83785
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
83786
|
-
function _typeof(obj) {
|
83787
|
-
"@babel/helpers - typeof";
|
83788
|
-
|
83789
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
83790
|
-
return typeof obj;
|
83791
|
-
} : function (obj) {
|
83792
|
-
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
83793
|
-
}, _typeof(obj);
|
83794
|
-
}
|
83795
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
83796
|
-
|
83797
|
-
function _toPrimitive(input, hint) {
|
83798
|
-
if (_typeof(input) !== "object" || input === null) return input;
|
83799
|
-
var prim = input[Symbol.toPrimitive];
|
83800
|
-
if (prim !== undefined) {
|
83801
|
-
var res = prim.call(input, hint || "default");
|
83802
|
-
if (_typeof(res) !== "object") return res;
|
83803
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
83804
|
-
}
|
83805
|
-
return (hint === "string" ? String : Number)(input);
|
83806
|
-
}
|
83807
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
83808
|
-
|
83809
|
-
|
83810
|
-
function _toPropertyKey(arg) {
|
83811
|
-
var key = _toPrimitive(arg, "string");
|
83812
|
-
return _typeof(key) === "symbol" ? key : String(key);
|
83813
|
-
}
|
83814
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
83815
|
-
|
83816
|
-
function _defineProperty(obj, key, value) {
|
83817
|
-
key = _toPropertyKey(key);
|
83818
|
-
if (key in obj) {
|
83819
|
-
Object.defineProperty(obj, key, {
|
83820
|
-
value: value,
|
83821
|
-
enumerable: true,
|
83822
|
-
configurable: true,
|
83823
|
-
writable: true
|
83824
|
-
});
|
83825
|
-
} else {
|
83826
|
-
obj[key] = value;
|
83827
|
-
}
|
83828
|
-
return obj;
|
83829
|
-
}
|
83830
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/src/util/custom-axios.ts
|
83831
|
-
/**
|
83832
|
-
* @author: lvcy
|
83833
|
-
* @date: 2023-06-21
|
83834
|
-
* @description:custom-axios
|
83835
|
-
*/
|
83836
|
-
class CustomAxios {
|
83837
|
-
static startConnect(method, url, data = {}) {
|
83838
|
-
return new Promise((resolve, reject) => {
|
83839
|
-
let xhr = new XMLHttpRequest();
|
83840
|
-
method = method.toUpperCase();
|
83841
|
-
if (method == 'GET') {
|
83842
|
-
let param = ''; //数据拼接字符串
|
83843
|
-
Object.keys(data).forEach(key => {
|
83844
|
-
param += `${key}=${data[key]}&`;
|
83845
|
-
});
|
83846
|
-
param = param.substring(0, param.lastIndexOf('&'));
|
83847
|
-
url = url + '?' + param;
|
83848
|
-
} else if (method == 'POST') {} else {
|
83849
|
-
reject('error method: Currently only supported GET or POST method!');
|
83850
|
-
}
|
83851
|
-
xhr.open(method, url, true);
|
83852
|
-
xhr.setRequestHeader('Accept', 'application/json');
|
83853
|
-
if (method === 'GET') {
|
83854
|
-
xhr.send();
|
83855
|
-
} else {
|
83856
|
-
xhr.send(JSON.stringify(data));
|
83857
|
-
}
|
83858
|
-
xhr.onreadystatechange = function () {
|
83859
|
-
if (this.readyState !== 4) {
|
83860
|
-
return;
|
83861
|
-
}
|
83862
|
-
if (this.status === 200) {
|
83863
|
-
let obj = this.response;
|
83864
|
-
if (typeof obj !== 'object') {
|
83865
|
-
obj = JSON.parse(obj);
|
83866
|
-
}
|
83867
|
-
resolve(obj);
|
83868
|
-
} else {
|
83869
|
-
reject(xhr);
|
83870
|
-
}
|
83871
|
-
};
|
83872
|
-
});
|
83873
|
-
}
|
83874
|
-
static async get(url) {
|
83875
|
-
let res = await CustomAxios.startConnect('GET', url);
|
83876
|
-
return res;
|
83877
|
-
}
|
83878
|
-
static async post(url, data) {
|
83879
|
-
let res = await CustomAxios.startConnect('POST', url, data);
|
83880
|
-
return res;
|
83881
|
-
}
|
83882
|
-
}
|
83883
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/src/util/eloam-plugin.service.ts
|
83884
|
-
|
83885
|
-
/**
|
83886
|
-
* @author: lvcy
|
83887
|
-
* @date: 2023-06-21
|
83888
|
-
* @description:良田高拍仪
|
83889
|
-
*/
|
83890
|
-
|
83891
|
-
var ELoamMethodCode;
|
83892
|
-
(function (ELoamMethodCode) {
|
83893
|
-
/** 扫描-主摄像头 */
|
83894
|
-
ELoamMethodCode["ScannerMainCamera_Base64"] = "ScannerMainCamera_Base64";
|
83895
|
-
/** 扫描-副摄像头 */
|
83896
|
-
ELoamMethodCode["ScannerSecondaryCamera_Base64"] = "ScannerSecondaryCamera_Base64";
|
83897
|
-
/** 读取二代身份证 */
|
83898
|
-
ELoamMethodCode["ReadIDCard_Base64"] = "ReadIDCard_Base64";
|
83899
|
-
})(ELoamMethodCode || (ELoamMethodCode = {}));
|
83900
|
-
const ELoamMethodDesc = {
|
83901
|
-
[ELoamMethodCode.ScannerMainCamera_Base64]: '扫描',
|
83902
|
-
[ELoamMethodCode.ScannerSecondaryCamera_Base64]: '拍照',
|
83903
|
-
[ELoamMethodCode.ReadIDCard_Base64]: '读取二代身份证'
|
83904
|
-
};
|
83905
|
-
class ELoamPassService {
|
83906
|
-
/** 主摄像头地址 */
|
83907
|
-
static get mainCameraUrl() {
|
83908
|
-
return this.baseServiceUrl + '/video=stream&camidx=0';
|
83909
|
-
}
|
83910
|
-
/** 副摄像头地址 */
|
83911
|
-
static get secondaryCameraUrl() {
|
83912
|
-
return this.baseServiceUrl + '/video=stream&camidx=1';
|
83913
|
-
}
|
83914
|
-
static async read(method) {
|
83915
|
-
let param = {},
|
83916
|
-
url = '';
|
83917
|
-
switch (method) {
|
83918
|
-
case ELoamMethodCode.ScannerMainCamera_Base64:
|
83919
|
-
// rotate: 旋转角度;deskew:纠偏,主摄像头1,副摄像头0 camidx:主摄像头0,副摄像头1;ColorMode:quality
|
83920
|
-
url = this.baseServiceUrl + '/video=grabimage';
|
83921
|
-
param = {
|
83922
|
-
filepath: "base64",
|
83923
|
-
rotate: "0",
|
83924
|
-
deskew: "1",
|
83925
|
-
camidx: "0",
|
83926
|
-
ColorMode: "0",
|
83927
|
-
quality: "0"
|
83928
|
-
};
|
83929
|
-
break;
|
83930
|
-
case ELoamMethodCode.ScannerSecondaryCamera_Base64:
|
83931
|
-
// rotate: 旋转角度,;deskew:纠偏,主摄像头1,副摄像头0 camidx:主摄像头0,副摄像头1;ColorMode:quality
|
83932
|
-
url = this.baseServiceUrl + '/video=grabimage';
|
83933
|
-
param = {
|
83934
|
-
filepath: "base64",
|
83935
|
-
rotate: "0",
|
83936
|
-
deskew: "0",
|
83937
|
-
camidx: "1",
|
83938
|
-
ColorMode: "0",
|
83939
|
-
quality: "0"
|
83940
|
-
};
|
83941
|
-
break;
|
83942
|
-
case ELoamMethodCode.ReadIDCard_Base64:
|
83943
|
-
url = this.baseServiceUrl + '/card=idcard';
|
83944
|
-
break;
|
83945
|
-
}
|
83946
|
-
let res = await CustomAxios.post(url, param);
|
83947
|
-
return res;
|
83948
|
-
}
|
83949
|
-
/** 主摄像头拍照 */
|
83950
|
-
static async scanByMainCamera() {
|
83951
|
-
const res = await ELoamPassService.read(ELoamMethodCode.ScannerMainCamera_Base64);
|
83952
|
-
return res.photoBase64;
|
83953
|
-
}
|
83954
|
-
/** 副摄像头拍照 */
|
83955
|
-
static async scanBySecondaryCamera() {
|
83956
|
-
const res = await ELoamPassService.read(ELoamMethodCode.ScannerSecondaryCamera_Base64);
|
83957
|
-
return res.photoBase64;
|
83958
|
-
}
|
83959
|
-
/** 读取身份证 */
|
83960
|
-
static async idCardRead() {
|
83961
|
-
const res = await ELoamPassService.read(ELoamMethodCode.ReadIDCard_Base64);
|
83962
|
-
let {
|
83963
|
-
name,
|
83964
|
-
sex,
|
83965
|
-
birthday,
|
83966
|
-
address,
|
83967
|
-
cardID,
|
83968
|
-
nationCode,
|
83969
|
-
photoBase64,
|
83970
|
-
issueOrgan,
|
83971
|
-
validStart,
|
83972
|
-
validEnd
|
83973
|
-
} = res.IDCardInfo;
|
83974
|
-
const IDCardData = {
|
83975
|
-
info: {
|
83976
|
-
name,
|
83977
|
-
sex,
|
83978
|
-
birthday: birthday.replace('-', '').replace('-', ''),
|
83979
|
-
address,
|
83980
|
-
cardId: cardID,
|
83981
|
-
nation: nationCode,
|
83982
|
-
police: issueOrgan,
|
83983
|
-
validStart,
|
83984
|
-
validEnd
|
83985
|
-
},
|
83986
|
-
headImage: photoBase64
|
83987
|
-
};
|
83988
|
-
return IDCardData;
|
83989
|
-
}
|
83990
|
-
}
|
83991
|
-
_defineProperty(ELoamPassService, "baseServiceUrl", 'http://127.0.0.1:38088');
|
83992
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
83993
|
-
|
83994
|
-
const scanner_eloam_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/jpg;base64,';
|
83995
|
-
/* harmony default export */ var scanner_eloam_componentvue_type_script_lang_js_ = ({
|
83996
|
-
name: "scanner-eloam-component",
|
83997
|
-
data: () => {
|
83998
|
-
return {
|
83999
|
-
totalTimeLength: 0,
|
84000
|
-
timeLength: '',
|
84001
|
-
timer: 0,
|
84002
|
-
str1: '',
|
84003
|
-
str2: '',
|
84004
|
-
webSocket: {},
|
84005
|
-
scannerVideoSrc: '',
|
84006
|
-
scannerResultSrc: '',
|
84007
|
-
loadSuccess: true,
|
84008
|
-
camera: 0,
|
84009
|
-
cameras: [{
|
84010
|
-
name: '文档',
|
84011
|
-
value: 0
|
84012
|
-
}, {
|
84013
|
-
name: '照片',
|
84014
|
-
value: 1
|
84015
|
-
}],
|
84016
|
-
buttonList: [{
|
84017
|
-
label: '拍照',
|
84018
|
-
name: 'take-pictures'
|
84019
|
-
}]
|
84020
|
-
};
|
84021
|
-
},
|
84022
|
-
created() {
|
84023
|
-
this.scannerVideoSrc = ELoamPassService.mainCameraUrl;
|
84024
|
-
},
|
84025
|
-
methods: {
|
84026
|
-
selectChange(val) {
|
84027
|
-
let handleName = val === 1 ? 'start-vice' : 'start-main';
|
84028
|
-
this.handleAction(handleName);
|
84029
|
-
},
|
84030
|
-
handleAction(name) {
|
84031
|
-
switch (name) {
|
84032
|
-
case 'start-main':
|
84033
|
-
// 主摄像头
|
84034
|
-
this.scannerVideoSrc = ELoamPassService.mainCameraUrl;
|
84035
|
-
break;
|
84036
|
-
case 'start-vice':
|
84037
|
-
// 副摄像头
|
84038
|
-
this.scannerVideoSrc = ELoamPassService.secondaryCameraUrl;
|
84039
|
-
break;
|
84040
|
-
case 'take-pictures':
|
84041
|
-
// 拍照
|
84042
|
-
this.takePictures();
|
84043
|
-
break;
|
84044
|
-
}
|
84045
|
-
},
|
84046
|
-
async takePictures() {
|
84047
|
-
if (this.camera === 0) {
|
84048
|
-
// 主摄像头
|
84049
|
-
const res = await ELoamPassService.scanByMainCamera();
|
84050
|
-
this.$emit('send-scanner-result', `${scanner_eloam_componentvue_type_script_lang_js_BEGIN_DATA}${res}`);
|
84051
|
-
} else {
|
84052
|
-
// 副摄像头
|
84053
|
-
const res = await ELoamPassService.scanBySecondaryCamera();
|
84054
|
-
this.$emit('send-scanner-result', `${scanner_eloam_componentvue_type_script_lang_js_BEGIN_DATA}${res}`);
|
84055
|
-
}
|
84056
|
-
}
|
84057
|
-
}
|
84058
|
-
});
|
84059
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/src/component/scanner-eloam-component.vue?vue&type=script&lang=js&
|
84060
|
-
/* harmony default export */ var component_scanner_eloam_componentvue_type_script_lang_js_ = (scanner_eloam_componentvue_type_script_lang_js_);
|
84061
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.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-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.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&
|
84062
|
-
// extracted by mini-css-extract-plugin
|
84063
|
-
|
84064
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/src/component/scanner-eloam-component.vue?vue&type=style&index=0&id=428304e7&prod&scoped=true&lang=scss&
|
84065
|
-
|
84066
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/src/component/scanner-eloam-component.vue
|
84067
|
-
|
84068
|
-
|
84069
|
-
|
84070
|
-
;
|
84071
|
-
|
84072
|
-
|
84073
|
-
/* normalize component */
|
84074
|
-
|
84075
|
-
var scanner_eloam_component_component = normalizeComponent(
|
84076
|
-
component_scanner_eloam_componentvue_type_script_lang_js_,
|
84077
|
-
scanner_eloam_componentvue_type_template_id_428304e7_scoped_true_render,
|
84078
|
-
scanner_eloam_componentvue_type_template_id_428304e7_scoped_true_staticRenderFns,
|
84079
|
-
false,
|
84080
|
-
null,
|
84081
|
-
"428304e7",
|
84082
|
-
null
|
84083
|
-
|
84084
|
-
)
|
84085
|
-
|
84086
|
-
/* harmony default export */ var scanner_eloam_component = (scanner_eloam_component_component.exports);
|
84087
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
84088
|
-
|
84089
|
-
|
84090
|
-
/* harmony default export */ var scanner_eloamvue_type_script_lang_js_ = ({
|
84091
|
-
name: "scanner-eloam",
|
84092
|
-
components: {
|
84093
|
-
ScannerEloamComponent: scanner_eloam_component
|
84094
|
-
},
|
84095
|
-
props: {
|
84096
|
-
openMode: {
|
84097
|
-
default: '',
|
84098
|
-
type: String
|
84099
|
-
},
|
84100
|
-
label: {
|
84101
|
-
default: '',
|
84102
|
-
type: String
|
84103
|
-
},
|
84104
|
-
tip: {
|
84105
|
-
default: '',
|
84106
|
-
type: String
|
84107
|
-
},
|
84108
|
-
className: {
|
84109
|
-
default: '',
|
84110
|
-
type: String
|
84111
|
-
},
|
84112
|
-
size: {
|
84113
|
-
default: '',
|
84114
|
-
type: String
|
84115
|
-
},
|
84116
|
-
type: {
|
84117
|
-
default: '',
|
84118
|
-
type: String
|
84119
|
-
},
|
84120
|
-
plain: {
|
84121
|
-
default: false,
|
84122
|
-
type: Boolean
|
84123
|
-
},
|
84124
|
-
round: {
|
84125
|
-
default: false,
|
84126
|
-
type: Boolean
|
84127
|
-
},
|
84128
|
-
loading: {
|
84129
|
-
default: false,
|
84130
|
-
type: Boolean
|
84131
|
-
},
|
84132
|
-
icon: {
|
84133
|
-
default: '',
|
84134
|
-
type: String
|
84135
|
-
},
|
84136
|
-
disabled: {
|
84137
|
-
default: false,
|
84138
|
-
type: Boolean
|
84139
|
-
}
|
84140
|
-
},
|
84141
|
-
data: () => {
|
84142
|
-
return {
|
84143
|
-
dialogVisible: false,
|
84144
|
-
scannerResult: ''
|
84145
|
-
};
|
84146
|
-
},
|
84147
|
-
computed: {
|
84148
|
-
_className() {
|
84149
|
-
const classBase = ['z-button'];
|
84150
|
-
if (this.type === 'text') {
|
84151
|
-
classBase.push('i-font-size');
|
84152
|
-
}
|
84153
|
-
if (!this.className) {
|
84154
|
-
return classBase;
|
84155
|
-
} else if (typeof this.className === 'string') {
|
84156
|
-
classBase.push(this.className);
|
84157
|
-
} else {
|
84158
|
-
classBase.push(...this.className);
|
84159
|
-
}
|
84160
|
-
return classBase;
|
84161
|
-
}
|
84162
|
-
},
|
84163
|
-
methods: {
|
84164
|
-
openScanDialog() {
|
84165
|
-
this.dialogVisible = true;
|
84166
|
-
},
|
84167
|
-
setScannerResult(src) {
|
84168
|
-
this.scannerResult = src;
|
84169
|
-
if (this.openMode !== 'dialog') {
|
84170
|
-
this.$emit('send-scanner-result', this.scannerResult);
|
84171
|
-
}
|
84172
|
-
},
|
84173
|
-
sendScannerResult() {
|
84174
|
-
if (this.scannerResult) {
|
84175
|
-
this.$emit('send-scanner-result', this.scannerResult);
|
84176
|
-
this.dialogVisible = false;
|
84177
|
-
}
|
84178
|
-
}
|
84179
|
-
}
|
84180
|
-
});
|
84181
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/src/scanner-eloam.vue?vue&type=script&lang=js&
|
84182
|
-
/* harmony default export */ var src_scanner_eloamvue_type_script_lang_js_ = (scanner_eloamvue_type_script_lang_js_);
|
84183
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-67.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-67.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-67.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-67.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&
|
84184
|
-
// extracted by mini-css-extract-plugin
|
84185
|
-
|
84186
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/src/scanner-eloam.vue?vue&type=style&index=0&id=a80d3a26&prod&scoped=true&lang=scss&
|
84187
|
-
|
84188
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/src/scanner-eloam.vue
|
84189
|
-
|
84190
|
-
|
84191
|
-
|
84192
|
-
;
|
84193
|
-
|
84194
|
-
|
84195
|
-
/* normalize component */
|
84196
|
-
|
84197
|
-
var src_scanner_eloam_component = normalizeComponent(
|
84198
|
-
src_scanner_eloamvue_type_script_lang_js_,
|
84199
|
-
scanner_eloamvue_type_template_id_a80d3a26_scoped_true_render,
|
84200
|
-
scanner_eloamvue_type_template_id_a80d3a26_scoped_true_staticRenderFns,
|
84201
|
-
false,
|
84202
|
-
null,
|
84203
|
-
"a80d3a26",
|
84204
|
-
null
|
84205
|
-
|
84206
|
-
)
|
84207
|
-
|
84208
|
-
/* harmony default export */ var scanner_eloam = (src_scanner_eloam_component.exports);
|
84209
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-eloam/index.js
|
84210
|
-
/**
|
84211
|
-
* @author: lvcy
|
84212
|
-
* @date: 2023-06-21
|
84213
|
-
* @description:index
|
84214
|
-
*/
|
84215
|
-
|
84216
|
-
scanner_eloam.install = Vue => {
|
84217
|
-
Vue.component(scanner_eloam.name, scanner_eloam);
|
84218
|
-
};
|
84219
|
-
/* harmony default export */ var scanner_scanner_eloam = (scanner_eloam);
|
84220
83096
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
84221
83097
|
var scanner_cameravue_type_template_id_00e9072f_scoped_true_render = function render() {
|
84222
83098
|
var _vm = this,
|
@@ -84395,13 +83271,58 @@ var scanner_camera_componentvue_type_template_id_7676b84c_scoped_true_render = f
|
|
84395
83271
|
};
|
84396
83272
|
var scanner_camera_componentvue_type_template_id_7676b84c_scoped_true_staticRenderFns = [];
|
84397
83273
|
|
83274
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
83275
|
+
function _typeof(obj) {
|
83276
|
+
"@babel/helpers - typeof";
|
83277
|
+
|
83278
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
83279
|
+
return typeof obj;
|
83280
|
+
} : function (obj) {
|
83281
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
83282
|
+
}, _typeof(obj);
|
83283
|
+
}
|
83284
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
83285
|
+
|
83286
|
+
function _toPrimitive(input, hint) {
|
83287
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
83288
|
+
var prim = input[Symbol.toPrimitive];
|
83289
|
+
if (prim !== undefined) {
|
83290
|
+
var res = prim.call(input, hint || "default");
|
83291
|
+
if (_typeof(res) !== "object") return res;
|
83292
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
83293
|
+
}
|
83294
|
+
return (hint === "string" ? String : Number)(input);
|
83295
|
+
}
|
83296
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
83297
|
+
|
83298
|
+
|
83299
|
+
function _toPropertyKey(arg) {
|
83300
|
+
var key = _toPrimitive(arg, "string");
|
83301
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
83302
|
+
}
|
83303
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
83304
|
+
|
83305
|
+
function _defineProperty(obj, key, value) {
|
83306
|
+
key = _toPropertyKey(key);
|
83307
|
+
if (key in obj) {
|
83308
|
+
Object.defineProperty(obj, key, {
|
83309
|
+
value: value,
|
83310
|
+
enumerable: true,
|
83311
|
+
configurable: true,
|
83312
|
+
writable: true
|
83313
|
+
});
|
83314
|
+
} else {
|
83315
|
+
obj[key] = value;
|
83316
|
+
}
|
83317
|
+
return obj;
|
83318
|
+
}
|
84398
83319
|
;// CONCATENATED MODULE: ./packages/utils/custom-axios.ts
|
84399
83320
|
/**
|
84400
83321
|
* @author: lvcy
|
84401
83322
|
* @date: 2023-06-21
|
84402
83323
|
* @description:custom-axios
|
84403
83324
|
*/
|
84404
|
-
class
|
83325
|
+
class CustomAxios {
|
84405
83326
|
static startConnect(method, url, data = {}, header = {}) {
|
84406
83327
|
return new Promise((resolve, reject) => {
|
84407
83328
|
let xhr = new XMLHttpRequest();
|
@@ -84448,11 +83369,11 @@ class custom_axios_CustomAxios {
|
|
84448
83369
|
});
|
84449
83370
|
}
|
84450
83371
|
static async get(url, data = {}, header = {}) {
|
84451
|
-
let res = await
|
83372
|
+
let res = await CustomAxios.startConnect('GET', url, data, header);
|
84452
83373
|
return res;
|
84453
83374
|
}
|
84454
83375
|
static async post(url, data, header = {}) {
|
84455
|
-
let res = await
|
83376
|
+
let res = await CustomAxios.startConnect('POST', url, data, header);
|
84456
83377
|
return res;
|
84457
83378
|
}
|
84458
83379
|
}
|
@@ -84464,7 +83385,7 @@ class custom_axios_CustomAxios {
|
|
84464
83385
|
* @description:良田高拍仪
|
84465
83386
|
*/
|
84466
83387
|
|
84467
|
-
var
|
83388
|
+
var ELoamMethodCode;
|
84468
83389
|
(function (ELoamMethodCode) {
|
84469
83390
|
ELoamMethodCode["ScannerCameraLinuxInit"] = "ScannerCameraLinuxInit";
|
84470
83391
|
/** 打开摄像头linux*/
|
@@ -84485,13 +83406,13 @@ var eloam_plugin_service_ELoamMethodCode;
|
|
84485
83406
|
ELoamMethodCode["ReadIDCard_Base64"] = "ReadIDCard_Base64";
|
84486
83407
|
/** 关闭摄像头*/
|
84487
83408
|
ELoamMethodCode["StopCamera"] = "stopCamera";
|
84488
|
-
})(
|
84489
|
-
const
|
84490
|
-
[
|
84491
|
-
[
|
84492
|
-
[
|
83409
|
+
})(ELoamMethodCode || (ELoamMethodCode = {}));
|
83410
|
+
const ELoamMethodDesc = {
|
83411
|
+
[ELoamMethodCode.ScannerMainCamera_Base64]: '扫描',
|
83412
|
+
[ELoamMethodCode.ScannerSecondaryCamera_Base64]: '拍照',
|
83413
|
+
[ELoamMethodCode.ReadIDCard_Base64]: '读取二代身份证'
|
84493
83414
|
};
|
84494
|
-
class
|
83415
|
+
class ELoamPassService {
|
84495
83416
|
/** 主摄像头地址 */
|
84496
83417
|
static get mainCameraUrl() {
|
84497
83418
|
if (this._isLinux) {
|
@@ -84513,20 +83434,20 @@ class eloam_plugin_service_ELoamPassService {
|
|
84513
83434
|
url = '',
|
84514
83435
|
requestType = '';
|
84515
83436
|
switch (method) {
|
84516
|
-
case
|
83437
|
+
case ELoamMethodCode.ScannerCameraLinuxInit:
|
84517
83438
|
url = `${this.baseLinuxServiceUrl}/GetAllDisplayInfo`;
|
84518
83439
|
requestType = 'get';
|
84519
83440
|
break;
|
84520
|
-
case
|
83441
|
+
case ELoamMethodCode.ScannerCameraLinuxStartPreview:
|
84521
83442
|
url = `${this.baseLinuxServiceUrl}/StartPreview?dev_idx=${data}&res_id=0`;
|
84522
83443
|
requestType = 'get';
|
84523
83444
|
break;
|
84524
|
-
case
|
83445
|
+
case ELoamMethodCode.ScannerCameraLinuxGetFrame:
|
84525
83446
|
url = `${this.baseLinuxServiceUrl}/getFrame`;
|
84526
83447
|
requestType = 'get';
|
84527
83448
|
break;
|
84528
|
-
case
|
84529
|
-
if (
|
83449
|
+
case ELoamMethodCode.ScannerCameraRotate:
|
83450
|
+
if (ELoamPassService._isLinux) {
|
84530
83451
|
let count = data / 90;
|
84531
83452
|
url = this.baseLinuxServiceUrl + `/Rotate?count=${count}`;
|
84532
83453
|
requestType = 'get';
|
@@ -84539,9 +83460,9 @@ class eloam_plugin_service_ELoamPassService {
|
|
84539
83460
|
requestType = 'post';
|
84540
83461
|
}
|
84541
83462
|
break;
|
84542
|
-
case
|
83463
|
+
case ELoamMethodCode.ScannerCameraDeskew_Base64:
|
84543
83464
|
// 纠偏
|
84544
|
-
if (
|
83465
|
+
if (ELoamPassService._isLinux) {
|
84545
83466
|
url = `${this.baseLinuxServiceUrl}/EnableDeskImage?enable=${data}`;
|
84546
83467
|
requestType = 'get';
|
84547
83468
|
} else {
|
@@ -84554,7 +83475,7 @@ class eloam_plugin_service_ELoamPassService {
|
|
84554
83475
|
requestType = 'post';
|
84555
83476
|
}
|
84556
83477
|
break;
|
84557
|
-
case
|
83478
|
+
case ELoamMethodCode.ScannerCameraMerge_Base64:
|
84558
83479
|
// 合并
|
84559
83480
|
if (this._isLinux) {
|
84560
83481
|
// 国产
|
@@ -84573,7 +83494,7 @@ class eloam_plugin_service_ELoamPassService {
|
|
84573
83494
|
requestType = 'post';
|
84574
83495
|
}
|
84575
83496
|
break;
|
84576
|
-
case
|
83497
|
+
case ELoamMethodCode.ScannerMainCamera_Base64:
|
84577
83498
|
if (this._isLinux) {
|
84578
83499
|
url = this.baseLinuxServiceUrl + '/getPic?filepath=/tmp';
|
84579
83500
|
requestType = 'get';
|
@@ -84592,7 +83513,7 @@ class eloam_plugin_service_ELoamPassService {
|
|
84592
83513
|
requestType = 'post';
|
84593
83514
|
}
|
84594
83515
|
break;
|
84595
|
-
case
|
83516
|
+
case ELoamMethodCode.ScannerSecondaryCamera_Base64:
|
84596
83517
|
if (this._isLinux) {
|
84597
83518
|
url = this.baseLinuxServiceUrl + '/getPic?filepath=/tmp';
|
84598
83519
|
requestType = 'get';
|
@@ -84611,7 +83532,7 @@ class eloam_plugin_service_ELoamPassService {
|
|
84611
83532
|
requestType = 'post';
|
84612
83533
|
}
|
84613
83534
|
break;
|
84614
|
-
case
|
83535
|
+
case ELoamMethodCode.StopCamera:
|
84615
83536
|
if (this._isLinux) {
|
84616
83537
|
url = this.baseLinuxServiceUrl + '/StopPreview?dev_idx=0';
|
84617
83538
|
requestType = 'get';
|
@@ -84623,26 +83544,26 @@ class eloam_plugin_service_ELoamPassService {
|
|
84623
83544
|
requestType = 'post';
|
84624
83545
|
}
|
84625
83546
|
break;
|
84626
|
-
case
|
83547
|
+
case ELoamMethodCode.ReadIDCard_Base64:
|
84627
83548
|
url = this.baseServiceUrl + '/card=idcard';
|
84628
83549
|
requestType = 'post';
|
84629
83550
|
break;
|
84630
83551
|
}
|
84631
|
-
let res = await
|
83552
|
+
let res = await CustomAxios[requestType](url, param);
|
84632
83553
|
return res;
|
84633
83554
|
}
|
84634
83555
|
static async initLinuxCamera() {
|
84635
|
-
await
|
83556
|
+
await ELoamPassService.read(ELoamMethodCode.ScannerCameraLinuxInit);
|
84636
83557
|
}
|
84637
83558
|
static async startPreview(data) {
|
84638
|
-
return await
|
83559
|
+
return await ELoamPassService.read(ELoamMethodCode.ScannerCameraLinuxStartPreview, data);
|
84639
83560
|
}
|
84640
83561
|
static async getEloamFrame() {
|
84641
|
-
return await
|
83562
|
+
return await ELoamPassService.read(ELoamMethodCode.ScannerCameraLinuxGetFrame);
|
84642
83563
|
}
|
84643
83564
|
/** 主摄像头拍照 */
|
84644
83565
|
static async scanByMainCamera(deskew) {
|
84645
|
-
const res = await
|
83566
|
+
const res = await ELoamPassService.read(ELoamMethodCode.ScannerMainCamera_Base64, deskew);
|
84646
83567
|
if (this._isLinux) {
|
84647
83568
|
return res; // 国产
|
84648
83569
|
} else {
|
@@ -84651,7 +83572,7 @@ class eloam_plugin_service_ELoamPassService {
|
|
84651
83572
|
}
|
84652
83573
|
/** 副摄像头拍照 */
|
84653
83574
|
static async scanBySecondaryCamera() {
|
84654
|
-
const res = await
|
83575
|
+
const res = await ELoamPassService.read(ELoamMethodCode.ScannerSecondaryCamera_Base64);
|
84655
83576
|
if (this._isLinux) {
|
84656
83577
|
return res.data.img; // 国产
|
84657
83578
|
} else {
|
@@ -84659,7 +83580,7 @@ class eloam_plugin_service_ELoamPassService {
|
|
84659
83580
|
}
|
84660
83581
|
}
|
84661
83582
|
static async mergeImage(list, type) {
|
84662
|
-
const res = await
|
83583
|
+
const res = await ELoamPassService.read(ELoamMethodCode.ScannerCameraMerge_Base64, {
|
84663
83584
|
list,
|
84664
83585
|
type
|
84665
83586
|
});
|
@@ -84690,11 +83611,11 @@ class eloam_plugin_service_ELoamPassService {
|
|
84690
83611
|
}
|
84691
83612
|
static async turnOnTheCamera() {}
|
84692
83613
|
static async stopCamera() {
|
84693
|
-
const res = await
|
83614
|
+
const res = await ELoamPassService.read(ELoamMethodCode.StopCamera);
|
84694
83615
|
}
|
84695
83616
|
/** 读取身份证 */
|
84696
83617
|
static async idCardRead() {
|
84697
|
-
const res = await
|
83618
|
+
const res = await ELoamPassService.read(ELoamMethodCode.ReadIDCard_Base64);
|
84698
83619
|
var readData = res.IDCardInfo;
|
84699
83620
|
// Agency 发证机关,外国人永居证时,该值为中文名
|
84700
83621
|
var name = (readData.name || '').trim();
|
@@ -84746,9 +83667,9 @@ class eloam_plugin_service_ELoamPassService {
|
|
84746
83667
|
return IDCardData;
|
84747
83668
|
}
|
84748
83669
|
}
|
84749
|
-
_defineProperty(
|
84750
|
-
_defineProperty(
|
84751
|
-
_defineProperty(
|
83670
|
+
_defineProperty(ELoamPassService, "baseServiceUrl", 'http://127.0.0.1:38088');
|
83671
|
+
_defineProperty(ELoamPassService, "baseLinuxServiceUrl", 'http://127.0.0.1:6543');
|
83672
|
+
_defineProperty(ELoamPassService, "_isLinux", String(navigator.platform).indexOf("Linux") > -1);
|
84752
83673
|
;// CONCATENATED MODULE: ./packages/model/common-message.ts
|
84753
83674
|
|
84754
83675
|
/**
|
@@ -85878,7 +84799,7 @@ _defineProperty(WeiRongPluginService, "timer", null);
|
|
85878
84799
|
|
85879
84800
|
|
85880
84801
|
|
85881
|
-
const
|
84802
|
+
const BEGIN_DATA = 'data:image/jpg;base64,';
|
85882
84803
|
/* harmony default export */ var scanner_camera_componentvue_type_script_lang_js_ = ({
|
85883
84804
|
name: "scanner-camera-component",
|
85884
84805
|
props: {
|
@@ -85940,7 +84861,7 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
85940
84861
|
this.handleAction('start-main');
|
85941
84862
|
window.addEventListener(SCANNER_CAMERA_REFRESH_PHOTO_EVENT, message => {
|
85942
84863
|
if (message.type === SCANNER_CAMERA_REFRESH_PHOTO_EVENT) {
|
85943
|
-
this.scannerVideoSrc = `${
|
84864
|
+
this.scannerVideoSrc = `${BEGIN_DATA}${message.scannerResultUrl}`;
|
85944
84865
|
}
|
85945
84866
|
});
|
85946
84867
|
window.addEventListener('beforeunload', this.beforeunload);
|
@@ -85959,7 +84880,7 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
85959
84880
|
break;
|
85960
84881
|
case 5:
|
85961
84882
|
// 良田
|
85962
|
-
await
|
84883
|
+
await ELoamPassService.stopCamera();
|
85963
84884
|
break;
|
85964
84885
|
}
|
85965
84886
|
},
|
@@ -85979,7 +84900,7 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
85979
84900
|
case 0:
|
85980
84901
|
// 捷宇
|
85981
84902
|
let res = await JieYueService.scanByCamera();
|
85982
|
-
this.$emit('send-scanner-result', `${
|
84903
|
+
this.$emit('send-scanner-result', `${BEGIN_DATA}${res}`);
|
85983
84904
|
break;
|
85984
84905
|
case 3:
|
85985
84906
|
{
|
@@ -85990,17 +84911,17 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
85990
84911
|
case 4:
|
85991
84912
|
{
|
85992
84913
|
let res = await UdsPluginSocketService.scanByCamera();
|
85993
|
-
this.$emit('send-scanner-result', `${
|
84914
|
+
this.$emit('send-scanner-result', `${BEGIN_DATA}${res}`);
|
85994
84915
|
break;
|
85995
84916
|
}
|
85996
84917
|
case 5:
|
85997
84918
|
{
|
85998
84919
|
// 良田
|
85999
84920
|
let type = this.camera === 0 ? 'main' : 'vice';
|
86000
|
-
const res = await
|
84921
|
+
const res = await ELoamPassService.scanByCamera(type, this.deskewStatus);
|
86001
84922
|
if (res) {
|
86002
84923
|
let path = res;
|
86003
|
-
this.$emit('send-scanner-result', `${
|
84924
|
+
this.$emit('send-scanner-result', `${BEGIN_DATA}${path}`);
|
86004
84925
|
} else {
|
86005
84926
|
this.$message.error('拍照出错,请检查设备是否连接成功');
|
86006
84927
|
}
|
@@ -86010,7 +84931,7 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
86010
84931
|
{
|
86011
84932
|
// 国产客户端一体机
|
86012
84933
|
let res = await WeiRongPluginService.scanByCamera();
|
86013
|
-
this.$emit('send-scanner-result', `${
|
84934
|
+
this.$emit('send-scanner-result', `${BEGIN_DATA}${res}`);
|
86014
84935
|
break;
|
86015
84936
|
}
|
86016
84937
|
}
|
@@ -86035,10 +84956,10 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
86035
84956
|
case 5:
|
86036
84957
|
// 良田高拍仪
|
86037
84958
|
if (!(String(navigator.platform).indexOf("Linux") > -1)) {
|
86038
|
-
this.scannerVideoSrc =
|
84959
|
+
this.scannerVideoSrc = ELoamPassService.mainCameraUrl;
|
86039
84960
|
} else {
|
86040
|
-
await
|
86041
|
-
let res = await
|
84961
|
+
await ELoamPassService.initLinuxCamera();
|
84962
|
+
let res = await ELoamPassService.startPreview('0');
|
86042
84963
|
if (res.returnCode == "0" || res.returnCode == "2") {
|
86043
84964
|
this.eloamLinuxFrameTimer = setInterval(this.getEloamFrame, 300);
|
86044
84965
|
}
|
@@ -86051,13 +84972,13 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
86051
84972
|
}
|
86052
84973
|
},
|
86053
84974
|
async getEloamFrame() {
|
86054
|
-
let res = await
|
84975
|
+
let res = await ELoamPassService.getEloamFrame();
|
86055
84976
|
if (res.returnCode == "1") {
|
86056
84977
|
clearInterval(this.eloamLinuxFrameTimer);
|
86057
84978
|
return;
|
86058
84979
|
}
|
86059
84980
|
if (res.data.img == "") return;
|
86060
|
-
this.scannerVideoSrc = `${
|
84981
|
+
this.scannerVideoSrc = `${BEGIN_DATA}${res.data.img}`;
|
86061
84982
|
},
|
86062
84983
|
/**
|
86063
84984
|
* 副摄像头
|
@@ -86079,10 +85000,10 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
86079
85000
|
case 5:
|
86080
85001
|
// 良田
|
86081
85002
|
if (!(String(navigator.platform).indexOf("Linux") > -1)) {
|
86082
|
-
this.scannerVideoSrc =
|
85003
|
+
this.scannerVideoSrc = ELoamPassService.mainCameraUrl;
|
86083
85004
|
} else {
|
86084
|
-
await
|
86085
|
-
await
|
85005
|
+
await ELoamPassService.initLinuxCamera();
|
85006
|
+
await ELoamPassService.startPreview('1');
|
86086
85007
|
this.eloamLinuxFrameTimer = setInterval(this.getEloamFrame, 300);
|
86087
85008
|
}
|
86088
85009
|
break;
|
@@ -86094,16 +85015,16 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
86094
85015
|
},
|
86095
85016
|
async takePictureMerge(type) {
|
86096
85017
|
if (type === '1' && this.deskewStatus === '0') return this.$message.warning('请先开启纠偏');
|
86097
|
-
const res = await
|
85018
|
+
const res = await ELoamPassService.scanByCamera('main', this.deskewStatus, true);
|
86098
85019
|
if (res) {
|
86099
85020
|
let path = res;
|
86100
85021
|
this.mergeImageList.push(path);
|
86101
85022
|
if (this.mergeImageList.length === 1) this.$message.success('第一张拍摄成功,请拍第二张');
|
86102
85023
|
if (this.mergeImageList.length === 2) {
|
86103
|
-
let result = await
|
85024
|
+
let result = await ELoamPassService.mergeImage(this.mergeImageList, type);
|
86104
85025
|
this.mergeImageList = [];
|
86105
85026
|
this.$message.success('合并成功');
|
86106
|
-
this.$emit('send-scanner-result', `${
|
85027
|
+
this.$emit('send-scanner-result', `${BEGIN_DATA}${result}`);
|
86107
85028
|
}
|
86108
85029
|
} else {
|
86109
85030
|
this.$message.error('合并拍照出错,请检查设备是否连接成功');
|
@@ -86151,14 +85072,14 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
86151
85072
|
} else {
|
86152
85073
|
this.rotateDeg = 90;
|
86153
85074
|
}
|
86154
|
-
|
85075
|
+
ELoamPassService.read(ELoamMethodCode.ScannerCameraRotate, this.rotateDeg); // 选装
|
86155
85076
|
break;
|
86156
85077
|
case 'open-deskew':
|
86157
85078
|
this.deskewStatus = this.deskewStatus === '1' ? '0' : '1';
|
86158
|
-
|
85079
|
+
ELoamPassService.read(ELoamMethodCode.ScannerCameraDeskew_Base64, this.deskewStatus); // 开启纠偏裁边
|
86159
85080
|
break;
|
86160
85081
|
case 'close':
|
86161
|
-
await
|
85082
|
+
await ELoamPassService.stopCamera();
|
86162
85083
|
break;
|
86163
85084
|
}
|
86164
85085
|
}
|
@@ -86333,156 +85254,8 @@ scanner_camera.install = Vue => {
|
|
86333
85254
|
Vue.component(scanner_camera.name, scanner_camera);
|
86334
85255
|
};
|
86335
85256
|
/* harmony default export */ var scanner_scanner_camera = (scanner_camera);
|
86336
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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-
|
86337
|
-
var
|
86338
|
-
var _vm = this,
|
86339
|
-
_c = _vm._self._c;
|
86340
|
-
return _vm.tip ? _c('el-tooltip', {
|
86341
|
-
staticClass: "id-card-reader-eloam",
|
86342
|
-
attrs: {
|
86343
|
-
"content": _vm.tip,
|
86344
|
-
"placement": "top"
|
86345
|
-
}
|
86346
|
-
}, [_c('el-button', _vm._b({
|
86347
|
-
on: {
|
86348
|
-
"click": _vm.handleClick
|
86349
|
-
}
|
86350
|
-
}, 'el-button', {
|
86351
|
-
disabled: _vm.disabled,
|
86352
|
-
icon: _vm.icon,
|
86353
|
-
loading: _vm.loading,
|
86354
|
-
plain: _vm.plain,
|
86355
|
-
round: _vm.round,
|
86356
|
-
size: _vm.size,
|
86357
|
-
type: _vm.type,
|
86358
|
-
class: _vm._className
|
86359
|
-
}, false), [_vm._t("default", function () {
|
86360
|
-
return [_vm._v(_vm._s(_vm.label))];
|
86361
|
-
})], 2)], 1) : _c('el-button', _vm._b({
|
86362
|
-
on: {
|
86363
|
-
"click": _vm.handleClick
|
86364
|
-
}
|
86365
|
-
}, 'el-button', {
|
86366
|
-
disabled: _vm.disabled,
|
86367
|
-
icon: _vm.icon,
|
86368
|
-
loading: _vm.loading,
|
86369
|
-
plain: _vm.plain,
|
86370
|
-
round: _vm.round,
|
86371
|
-
size: _vm.size,
|
86372
|
-
type: _vm.type,
|
86373
|
-
class: _vm._className
|
86374
|
-
}, false), [_vm._t("default", function () {
|
86375
|
-
return [_vm._v(_vm._s(_vm.label))];
|
86376
|
-
})], 2);
|
86377
|
-
};
|
86378
|
-
var id_card_reader_eloamvue_type_template_id_5b7ce781_scoped_true_staticRenderFns = [];
|
86379
|
-
|
86380
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
86381
|
-
|
86382
|
-
|
86383
|
-
/* harmony default export */ var id_card_reader_eloamvue_type_script_lang_js_ = ({
|
86384
|
-
name: 'id-card-reader-eloam',
|
86385
|
-
props: {
|
86386
|
-
label: {
|
86387
|
-
default: '',
|
86388
|
-
type: String
|
86389
|
-
},
|
86390
|
-
tip: {
|
86391
|
-
default: '',
|
86392
|
-
type: String
|
86393
|
-
},
|
86394
|
-
className: {
|
86395
|
-
default: '',
|
86396
|
-
type: String
|
86397
|
-
},
|
86398
|
-
size: {
|
86399
|
-
default: 'mini',
|
86400
|
-
type: String
|
86401
|
-
},
|
86402
|
-
type: {
|
86403
|
-
default: 'primary',
|
86404
|
-
type: String
|
86405
|
-
},
|
86406
|
-
plain: {
|
86407
|
-
default: false,
|
86408
|
-
type: Boolean
|
86409
|
-
},
|
86410
|
-
/** Determine whether it's a round button */
|
86411
|
-
round: {
|
86412
|
-
default: false,
|
86413
|
-
type: Boolean
|
86414
|
-
},
|
86415
|
-
/** Determine whether it's loading */
|
86416
|
-
loading: {
|
86417
|
-
default: false,
|
86418
|
-
type: Boolean
|
86419
|
-
},
|
86420
|
-
/** Button icon, accepts an icon name of Element icon component */
|
86421
|
-
icon: {
|
86422
|
-
default: 'el-icon-postcard',
|
86423
|
-
type: String
|
86424
|
-
},
|
86425
|
-
disabled: {
|
86426
|
-
default: false,
|
86427
|
-
type: Boolean
|
86428
|
-
}
|
86429
|
-
},
|
86430
|
-
computed: {
|
86431
|
-
_className() {
|
86432
|
-
const classBase = ['z-button'];
|
86433
|
-
if (this.type === 'text') {
|
86434
|
-
classBase.push('i-font-size');
|
86435
|
-
}
|
86436
|
-
if (!this.className) {
|
86437
|
-
return classBase;
|
86438
|
-
} else if (typeof this.className === 'string') {
|
86439
|
-
classBase.push(this.className);
|
86440
|
-
} else {
|
86441
|
-
classBase.push(...this.className);
|
86442
|
-
}
|
86443
|
-
return classBase;
|
86444
|
-
}
|
86445
|
-
},
|
86446
|
-
methods: {
|
86447
|
-
async handleClick() {
|
86448
|
-
let res = await ELoamPassService.idCardRead();
|
86449
|
-
this.$emit('click', res);
|
86450
|
-
}
|
86451
|
-
}
|
86452
|
-
});
|
86453
|
-
;// CONCATENATED MODULE: ./packages/id-card-reader/id-card-reader-eloam/src/id-card-reader-eloam.vue?vue&type=script&lang=js&
|
86454
|
-
/* harmony default export */ var src_id_card_reader_eloamvue_type_script_lang_js_ = (id_card_reader_eloamvue_type_script_lang_js_);
|
86455
|
-
;// CONCATENATED MODULE: ./packages/id-card-reader/id-card-reader-eloam/src/id-card-reader-eloam.vue
|
86456
|
-
|
86457
|
-
|
86458
|
-
|
86459
|
-
|
86460
|
-
|
86461
|
-
/* normalize component */
|
86462
|
-
;
|
86463
|
-
var id_card_reader_eloam_component = normalizeComponent(
|
86464
|
-
src_id_card_reader_eloamvue_type_script_lang_js_,
|
86465
|
-
id_card_reader_eloamvue_type_template_id_5b7ce781_scoped_true_render,
|
86466
|
-
id_card_reader_eloamvue_type_template_id_5b7ce781_scoped_true_staticRenderFns,
|
86467
|
-
false,
|
86468
|
-
null,
|
86469
|
-
"5b7ce781",
|
86470
|
-
null
|
86471
|
-
|
86472
|
-
)
|
86473
|
-
|
86474
|
-
/* harmony default export */ var id_card_reader_eloam = (id_card_reader_eloam_component.exports);
|
86475
|
-
;// CONCATENATED MODULE: ./packages/id-card-reader/id-card-reader-eloam/index.js
|
86476
|
-
|
86477
|
-
|
86478
|
-
// 组件的install方法用于按需引入
|
86479
|
-
// @ts-ignore
|
86480
|
-
id_card_reader_eloam.install = Vue => {
|
86481
|
-
Vue.component(id_card_reader_eloam.name, id_card_reader_eloam);
|
86482
|
-
};
|
86483
|
-
/* harmony default export */ var id_card_reader_id_card_reader_eloam = (id_card_reader_eloam);
|
86484
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
86485
|
-
var id_card_reader_buttonvue_type_template_id_cd700468_scoped_true_render = function render() {
|
85257
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
85258
|
+
var id_card_reader_buttonvue_type_template_id_43b57092_scoped_true_render = function render() {
|
86486
85259
|
var _vm = this,
|
86487
85260
|
_c = _vm._self._c;
|
86488
85261
|
return _vm.tip ? _c('el-tooltip', {
|
@@ -86559,7 +85332,7 @@ var id_card_reader_buttonvue_type_template_id_cd700468_scoped_true_render = func
|
|
86559
85332
|
}
|
86560
85333
|
})], 2);
|
86561
85334
|
};
|
86562
|
-
var
|
85335
|
+
var id_card_reader_buttonvue_type_template_id_43b57092_scoped_true_staticRenderFns = [];
|
86563
85336
|
|
86564
85337
|
;// CONCATENATED MODULE: ./packages/service/external-plugins/default-plugin-socket.service.ts
|
86565
85338
|
|
@@ -87880,8 +86653,8 @@ var face_auth_dialog_component = normalizeComponent(
|
|
87880
86653
|
)
|
87881
86654
|
|
87882
86655
|
/* harmony default export */ var face_auth_dialog = (face_auth_dialog_component.exports);
|
87883
|
-
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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=
|
87884
|
-
var
|
86656
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
86657
|
+
var eloam_take_photo_dialogvue_type_template_id_0b1e6b36_scoped_true_render = function render() {
|
87885
86658
|
var _vm = this,
|
87886
86659
|
_c = _vm._self._c;
|
87887
86660
|
return _vm.visibility ? _c('el-dialog', {
|
@@ -87947,7 +86720,7 @@ var eloam_take_photo_dialogvue_type_template_id_6e18b4de_scoped_true_render = fu
|
|
87947
86720
|
}, 'el-button', button, false), [_vm._v(_vm._s(button.label) + " ")]) : _vm._e()];
|
87948
86721
|
})], 2)]) : _vm._e();
|
87949
86722
|
};
|
87950
|
-
var
|
86723
|
+
var eloam_take_photo_dialogvue_type_template_id_0b1e6b36_scoped_true_staticRenderFns = [];
|
87951
86724
|
|
87952
86725
|
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-85.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&
|
87953
86726
|
|
@@ -88026,11 +86799,11 @@ var eloam_take_photo_dialogvue_type_template_id_6e18b4de_scoped_true_staticRende
|
|
88026
86799
|
;
|
88027
86800
|
var eloam_take_photo_dialog_component = normalizeComponent(
|
88028
86801
|
dialog_eloam_take_photo_dialogvue_type_script_lang_js_,
|
88029
|
-
|
88030
|
-
|
86802
|
+
eloam_take_photo_dialogvue_type_template_id_0b1e6b36_scoped_true_render,
|
86803
|
+
eloam_take_photo_dialogvue_type_template_id_0b1e6b36_scoped_true_staticRenderFns,
|
88031
86804
|
false,
|
88032
86805
|
null,
|
88033
|
-
"
|
86806
|
+
"0b1e6b36",
|
88034
86807
|
null
|
88035
86808
|
|
88036
86809
|
)
|
@@ -88954,9 +87727,9 @@ class ExitAndEntryPluginService {
|
|
88954
87727
|
}
|
88955
87728
|
let res;
|
88956
87729
|
if (requestType === 'get') {
|
88957
|
-
res = await
|
87730
|
+
res = await CustomAxios[requestType](url, param, headers);
|
88958
87731
|
} else {
|
88959
|
-
res = await
|
87732
|
+
res = await CustomAxios[requestType](url, param, headers);
|
88960
87733
|
}
|
88961
87734
|
return res;
|
88962
87735
|
}
|
@@ -89360,7 +88133,7 @@ class PuTianPluginService {
|
|
89360
88133
|
url = this.idCardWebSocketUrl + '/readCard';
|
89361
88134
|
break;
|
89362
88135
|
}
|
89363
|
-
let res = await
|
88136
|
+
let res = await CustomAxios.get(url);
|
89364
88137
|
return res;
|
89365
88138
|
}
|
89366
88139
|
static async idCardRead() {
|
@@ -89490,7 +88263,7 @@ class JingLunPluginService {
|
|
89490
88263
|
url = this.idCardWebSocketUrl + '/api/readCard';
|
89491
88264
|
break;
|
89492
88265
|
}
|
89493
|
-
let res = await
|
88266
|
+
let res = await CustomAxios.post(url, {});
|
89494
88267
|
return res;
|
89495
88268
|
}
|
89496
88269
|
static async idCardRead() {
|
@@ -89499,7 +88272,7 @@ class JingLunPluginService {
|
|
89499
88272
|
let data = readData.resultContent;
|
89500
88273
|
let type = '1',
|
89501
88274
|
name = data.partyName,
|
89502
|
-
sex = data.gender
|
88275
|
+
sex = data.gender == 1 ? '男' : '女',
|
89503
88276
|
nation = data.nation,
|
89504
88277
|
nationality = '中国',
|
89505
88278
|
birthday = data.bornDay,
|
@@ -89645,7 +88418,7 @@ class HanWangPluginService {
|
|
89645
88418
|
url = this.windowsWebServiceUrl + '/HWPenSign/HWGetSign';
|
89646
88419
|
break;
|
89647
88420
|
}
|
89648
|
-
let res = await
|
88421
|
+
let res = await CustomAxios.get(url, data);
|
89649
88422
|
return res;
|
89650
88423
|
}
|
89651
88424
|
static async readInLinux(methodCode) {
|
@@ -90258,11 +89031,11 @@ _defineProperty(HanWangPluginService, "_isLinux", String(navigator.platform).ind
|
|
90258
89031
|
;
|
90259
89032
|
var id_card_reader_button_component = normalizeComponent(
|
90260
89033
|
src_id_card_reader_buttonvue_type_script_lang_js_,
|
90261
|
-
|
90262
|
-
|
89034
|
+
id_card_reader_buttonvue_type_template_id_43b57092_scoped_true_render,
|
89035
|
+
id_card_reader_buttonvue_type_template_id_43b57092_scoped_true_staticRenderFns,
|
90263
89036
|
false,
|
90264
89037
|
null,
|
90265
|
-
"
|
89038
|
+
"43b57092",
|
90266
89039
|
null
|
90267
89040
|
|
90268
89041
|
)
|
@@ -91134,9 +89907,6 @@ scanner_nko.install = Vue => {
|
|
91134
89907
|
|
91135
89908
|
|
91136
89909
|
|
91137
|
-
|
91138
|
-
|
91139
|
-
|
91140
89910
|
// import {
|
91141
89911
|
// Button,
|
91142
89912
|
// Tooltip,
|
@@ -91152,7 +89922,7 @@ scanner_nko.install = Vue => {
|
|
91152
89922
|
// Dialog
|
91153
89923
|
// ]
|
91154
89924
|
// 组件列表
|
91155
|
-
const components = [packages_zs_empty, id_card_reader_id_card_reader_demo,
|
89925
|
+
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];
|
91156
89926
|
|
91157
89927
|
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,那么所有的组件都会被注册
|
91158
89928
|
const install = Vue => {
|