unify-external-plugin-platform 0.0.3-37 → 0.0.3-39
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 +151 -1362
- package/dist/external-plugin.css +1 -1
- package/dist/external-plugin.umd.js +151 -1362
- package/dist/external-plugin.umd.min.js +3 -3
- package/package.json +1 -1
@@ -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,
|
@@ -84318,8 +83194,8 @@ var scanner_cameravue_type_template_id_00e9072f_scoped_true_render = function re
|
|
84318
83194
|
};
|
84319
83195
|
var scanner_cameravue_type_template_id_00e9072f_scoped_true_staticRenderFns = [];
|
84320
83196
|
|
84321
|
-
;// 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/component/scanner-camera-component.vue?vue&type=template&id=
|
84322
|
-
var
|
83197
|
+
;// 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/component/scanner-camera-component.vue?vue&type=template&id=7ab9db0a&scoped=true&
|
83198
|
+
var scanner_camera_componentvue_type_template_id_7ab9db0a_scoped_true_render = function render() {
|
84323
83199
|
var _vm = this,
|
84324
83200
|
_c = _vm._self._c;
|
84325
83201
|
return _c('div', {
|
@@ -84328,12 +83204,14 @@ var scanner_camera_componentvue_type_template_id_7676b84c_scoped_true_render = f
|
|
84328
83204
|
staticClass: "scanner-result-content"
|
84329
83205
|
}, [_c('div', {
|
84330
83206
|
staticClass: "content-main flex-1"
|
84331
|
-
}, [_vm.loadSuccess ? _c('div', {
|
83207
|
+
}, [_vm.loadSuccess && _vm.scannerVideoSrc ? _c('div', {
|
84332
83208
|
staticClass: "load-success"
|
84333
83209
|
}, [_c('img', {
|
84334
83210
|
staticStyle: {
|
84335
|
-
"width": "800px",
|
84336
|
-
"height": "600px"
|
83211
|
+
"max-width": "800px",
|
83212
|
+
"max-height": "600px",
|
83213
|
+
"width": "100%",
|
83214
|
+
"height": "100%"
|
84337
83215
|
},
|
84338
83216
|
attrs: {
|
84339
83217
|
"id": "photo",
|
@@ -84343,7 +83221,7 @@ var scanner_camera_componentvue_type_template_id_7676b84c_scoped_true_render = f
|
|
84343
83221
|
staticClass: "load-error"
|
84344
83222
|
}, [_c('i', {
|
84345
83223
|
staticClass: "el-icon-s-cooperation"
|
84346
|
-
}), _c('p', [_vm._v("
|
83224
|
+
}), _c('p', [_vm._v("请先安装插件,并确保设备已连接")])])]), _vm.loadSuccess && _vm.scannerVideoSrc ? _c('div', {
|
84347
83225
|
staticClass: "handle-action"
|
84348
83226
|
}, [_c('el-select', {
|
84349
83227
|
staticClass: "select",
|
@@ -84381,17 +83259,62 @@ var scanner_camera_componentvue_type_template_id_7676b84c_scoped_true_render = f
|
|
84381
83259
|
}
|
84382
83260
|
}
|
84383
83261
|
}, [_vm._v(_vm._s(item.label))]) : _vm._e()];
|
84384
|
-
}), _vm._t("action")]], 2)])]);
|
83262
|
+
}), _vm._t("action")]], 2) : _vm._e()])]);
|
84385
83263
|
};
|
84386
|
-
var
|
83264
|
+
var scanner_camera_componentvue_type_template_id_7ab9db0a_scoped_true_staticRenderFns = [];
|
83265
|
+
|
83266
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
83267
|
+
function _typeof(obj) {
|
83268
|
+
"@babel/helpers - typeof";
|
83269
|
+
|
83270
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
83271
|
+
return typeof obj;
|
83272
|
+
} : function (obj) {
|
83273
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
83274
|
+
}, _typeof(obj);
|
83275
|
+
}
|
83276
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
83277
|
+
|
83278
|
+
function _toPrimitive(input, hint) {
|
83279
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
83280
|
+
var prim = input[Symbol.toPrimitive];
|
83281
|
+
if (prim !== undefined) {
|
83282
|
+
var res = prim.call(input, hint || "default");
|
83283
|
+
if (_typeof(res) !== "object") return res;
|
83284
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
83285
|
+
}
|
83286
|
+
return (hint === "string" ? String : Number)(input);
|
83287
|
+
}
|
83288
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
83289
|
+
|
83290
|
+
|
83291
|
+
function _toPropertyKey(arg) {
|
83292
|
+
var key = _toPrimitive(arg, "string");
|
83293
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
83294
|
+
}
|
83295
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
84387
83296
|
|
83297
|
+
function _defineProperty(obj, key, value) {
|
83298
|
+
key = _toPropertyKey(key);
|
83299
|
+
if (key in obj) {
|
83300
|
+
Object.defineProperty(obj, key, {
|
83301
|
+
value: value,
|
83302
|
+
enumerable: true,
|
83303
|
+
configurable: true,
|
83304
|
+
writable: true
|
83305
|
+
});
|
83306
|
+
} else {
|
83307
|
+
obj[key] = value;
|
83308
|
+
}
|
83309
|
+
return obj;
|
83310
|
+
}
|
84388
83311
|
;// CONCATENATED MODULE: ./packages/utils/custom-axios.ts
|
84389
83312
|
/**
|
84390
83313
|
* @author: lvcy
|
84391
83314
|
* @date: 2023-06-21
|
84392
83315
|
* @description:custom-axios
|
84393
83316
|
*/
|
84394
|
-
class
|
83317
|
+
class CustomAxios {
|
84395
83318
|
static startConnect(method, url, data = {}, header = {}) {
|
84396
83319
|
return new Promise((resolve, reject) => {
|
84397
83320
|
let xhr = new XMLHttpRequest();
|
@@ -84438,11 +83361,11 @@ class custom_axios_CustomAxios {
|
|
84438
83361
|
});
|
84439
83362
|
}
|
84440
83363
|
static async get(url, data = {}, header = {}) {
|
84441
|
-
let res = await
|
83364
|
+
let res = await CustomAxios.startConnect('GET', url, data, header);
|
84442
83365
|
return res;
|
84443
83366
|
}
|
84444
83367
|
static async post(url, data, header = {}) {
|
84445
|
-
let res = await
|
83368
|
+
let res = await CustomAxios.startConnect('POST', url, data, header);
|
84446
83369
|
return res;
|
84447
83370
|
}
|
84448
83371
|
}
|
@@ -84454,7 +83377,7 @@ class custom_axios_CustomAxios {
|
|
84454
83377
|
* @description:良田高拍仪
|
84455
83378
|
*/
|
84456
83379
|
|
84457
|
-
var
|
83380
|
+
var ELoamMethodCode;
|
84458
83381
|
(function (ELoamMethodCode) {
|
84459
83382
|
ELoamMethodCode["ScannerCameraLinuxInit"] = "ScannerCameraLinuxInit";
|
84460
83383
|
/** 打开摄像头linux*/
|
@@ -84475,13 +83398,13 @@ var eloam_plugin_service_ELoamMethodCode;
|
|
84475
83398
|
ELoamMethodCode["ReadIDCard_Base64"] = "ReadIDCard_Base64";
|
84476
83399
|
/** 关闭摄像头*/
|
84477
83400
|
ELoamMethodCode["StopCamera"] = "stopCamera";
|
84478
|
-
})(
|
84479
|
-
const
|
84480
|
-
[
|
84481
|
-
[
|
84482
|
-
[
|
83401
|
+
})(ELoamMethodCode || (ELoamMethodCode = {}));
|
83402
|
+
const ELoamMethodDesc = {
|
83403
|
+
[ELoamMethodCode.ScannerMainCamera_Base64]: '扫描',
|
83404
|
+
[ELoamMethodCode.ScannerSecondaryCamera_Base64]: '拍照',
|
83405
|
+
[ELoamMethodCode.ReadIDCard_Base64]: '读取二代身份证'
|
84483
83406
|
};
|
84484
|
-
class
|
83407
|
+
class ELoamPassService {
|
84485
83408
|
/** 主摄像头地址 */
|
84486
83409
|
static get mainCameraUrl() {
|
84487
83410
|
if (this._isLinux) {
|
@@ -84503,20 +83426,20 @@ class eloam_plugin_service_ELoamPassService {
|
|
84503
83426
|
url = '',
|
84504
83427
|
requestType = '';
|
84505
83428
|
switch (method) {
|
84506
|
-
case
|
83429
|
+
case ELoamMethodCode.ScannerCameraLinuxInit:
|
84507
83430
|
url = `${this.baseLinuxServiceUrl}/GetAllDisplayInfo`;
|
84508
83431
|
requestType = 'get';
|
84509
83432
|
break;
|
84510
|
-
case
|
83433
|
+
case ELoamMethodCode.ScannerCameraLinuxStartPreview:
|
84511
83434
|
url = `${this.baseLinuxServiceUrl}/StartPreview?dev_idx=${data}&res_id=0`;
|
84512
83435
|
requestType = 'get';
|
84513
83436
|
break;
|
84514
|
-
case
|
83437
|
+
case ELoamMethodCode.ScannerCameraLinuxGetFrame:
|
84515
83438
|
url = `${this.baseLinuxServiceUrl}/getFrame`;
|
84516
83439
|
requestType = 'get';
|
84517
83440
|
break;
|
84518
|
-
case
|
84519
|
-
if (
|
83441
|
+
case ELoamMethodCode.ScannerCameraRotate:
|
83442
|
+
if (ELoamPassService._isLinux) {
|
84520
83443
|
let count = data / 90;
|
84521
83444
|
url = this.baseLinuxServiceUrl + `/Rotate?count=${count}`;
|
84522
83445
|
requestType = 'get';
|
@@ -84529,9 +83452,9 @@ class eloam_plugin_service_ELoamPassService {
|
|
84529
83452
|
requestType = 'post';
|
84530
83453
|
}
|
84531
83454
|
break;
|
84532
|
-
case
|
83455
|
+
case ELoamMethodCode.ScannerCameraDeskew_Base64:
|
84533
83456
|
// 纠偏
|
84534
|
-
if (
|
83457
|
+
if (ELoamPassService._isLinux) {
|
84535
83458
|
url = `${this.baseLinuxServiceUrl}/EnableDeskImage?enable=${data}`;
|
84536
83459
|
requestType = 'get';
|
84537
83460
|
} else {
|
@@ -84544,7 +83467,7 @@ class eloam_plugin_service_ELoamPassService {
|
|
84544
83467
|
requestType = 'post';
|
84545
83468
|
}
|
84546
83469
|
break;
|
84547
|
-
case
|
83470
|
+
case ELoamMethodCode.ScannerCameraMerge_Base64:
|
84548
83471
|
// 合并
|
84549
83472
|
if (this._isLinux) {
|
84550
83473
|
// 国产
|
@@ -84563,7 +83486,7 @@ class eloam_plugin_service_ELoamPassService {
|
|
84563
83486
|
requestType = 'post';
|
84564
83487
|
}
|
84565
83488
|
break;
|
84566
|
-
case
|
83489
|
+
case ELoamMethodCode.ScannerMainCamera_Base64:
|
84567
83490
|
if (this._isLinux) {
|
84568
83491
|
url = this.baseLinuxServiceUrl + '/getPic?filepath=/tmp';
|
84569
83492
|
requestType = 'get';
|
@@ -84582,7 +83505,7 @@ class eloam_plugin_service_ELoamPassService {
|
|
84582
83505
|
requestType = 'post';
|
84583
83506
|
}
|
84584
83507
|
break;
|
84585
|
-
case
|
83508
|
+
case ELoamMethodCode.ScannerSecondaryCamera_Base64:
|
84586
83509
|
if (this._isLinux) {
|
84587
83510
|
url = this.baseLinuxServiceUrl + '/getPic?filepath=/tmp';
|
84588
83511
|
requestType = 'get';
|
@@ -84601,7 +83524,7 @@ class eloam_plugin_service_ELoamPassService {
|
|
84601
83524
|
requestType = 'post';
|
84602
83525
|
}
|
84603
83526
|
break;
|
84604
|
-
case
|
83527
|
+
case ELoamMethodCode.StopCamera:
|
84605
83528
|
if (this._isLinux) {
|
84606
83529
|
url = this.baseLinuxServiceUrl + '/StopPreview?dev_idx=0';
|
84607
83530
|
requestType = 'get';
|
@@ -84613,26 +83536,26 @@ class eloam_plugin_service_ELoamPassService {
|
|
84613
83536
|
requestType = 'post';
|
84614
83537
|
}
|
84615
83538
|
break;
|
84616
|
-
case
|
83539
|
+
case ELoamMethodCode.ReadIDCard_Base64:
|
84617
83540
|
url = this.baseServiceUrl + '/card=idcard';
|
84618
83541
|
requestType = 'post';
|
84619
83542
|
break;
|
84620
83543
|
}
|
84621
|
-
let res = await
|
83544
|
+
let res = await CustomAxios[requestType](url, param);
|
84622
83545
|
return res;
|
84623
83546
|
}
|
84624
83547
|
static async initLinuxCamera() {
|
84625
|
-
await
|
83548
|
+
await ELoamPassService.read(ELoamMethodCode.ScannerCameraLinuxInit);
|
84626
83549
|
}
|
84627
83550
|
static async startPreview(data) {
|
84628
|
-
return await
|
83551
|
+
return await ELoamPassService.read(ELoamMethodCode.ScannerCameraLinuxStartPreview, data);
|
84629
83552
|
}
|
84630
83553
|
static async getEloamFrame() {
|
84631
|
-
return await
|
83554
|
+
return await ELoamPassService.read(ELoamMethodCode.ScannerCameraLinuxGetFrame);
|
84632
83555
|
}
|
84633
83556
|
/** 主摄像头拍照 */
|
84634
83557
|
static async scanByMainCamera(deskew) {
|
84635
|
-
const res = await
|
83558
|
+
const res = await ELoamPassService.read(ELoamMethodCode.ScannerMainCamera_Base64, deskew);
|
84636
83559
|
if (this._isLinux) {
|
84637
83560
|
return res; // 国产
|
84638
83561
|
} else {
|
@@ -84641,7 +83564,7 @@ class eloam_plugin_service_ELoamPassService {
|
|
84641
83564
|
}
|
84642
83565
|
/** 副摄像头拍照 */
|
84643
83566
|
static async scanBySecondaryCamera() {
|
84644
|
-
const res = await
|
83567
|
+
const res = await ELoamPassService.read(ELoamMethodCode.ScannerSecondaryCamera_Base64);
|
84645
83568
|
if (this._isLinux) {
|
84646
83569
|
return res.data.img; // 国产
|
84647
83570
|
} else {
|
@@ -84649,7 +83572,7 @@ class eloam_plugin_service_ELoamPassService {
|
|
84649
83572
|
}
|
84650
83573
|
}
|
84651
83574
|
static async mergeImage(list, type) {
|
84652
|
-
const res = await
|
83575
|
+
const res = await ELoamPassService.read(ELoamMethodCode.ScannerCameraMerge_Base64, {
|
84653
83576
|
list,
|
84654
83577
|
type
|
84655
83578
|
});
|
@@ -84680,11 +83603,11 @@ class eloam_plugin_service_ELoamPassService {
|
|
84680
83603
|
}
|
84681
83604
|
static async turnOnTheCamera() {}
|
84682
83605
|
static async stopCamera() {
|
84683
|
-
const res = await
|
83606
|
+
const res = await ELoamPassService.read(ELoamMethodCode.StopCamera);
|
84684
83607
|
}
|
84685
83608
|
/** 读取身份证 */
|
84686
83609
|
static async idCardRead() {
|
84687
|
-
const res = await
|
83610
|
+
const res = await ELoamPassService.read(ELoamMethodCode.ReadIDCard_Base64);
|
84688
83611
|
var readData = res.IDCardInfo;
|
84689
83612
|
// Agency 发证机关,外国人永居证时,该值为中文名
|
84690
83613
|
var name = (readData.name || '').trim();
|
@@ -84736,9 +83659,9 @@ class eloam_plugin_service_ELoamPassService {
|
|
84736
83659
|
return IDCardData;
|
84737
83660
|
}
|
84738
83661
|
}
|
84739
|
-
_defineProperty(
|
84740
|
-
_defineProperty(
|
84741
|
-
_defineProperty(
|
83662
|
+
_defineProperty(ELoamPassService, "baseServiceUrl", 'http://127.0.0.1:38088');
|
83663
|
+
_defineProperty(ELoamPassService, "baseLinuxServiceUrl", 'http://127.0.0.1:6543');
|
83664
|
+
_defineProperty(ELoamPassService, "_isLinux", String(navigator.platform).indexOf("Linux") > -1);
|
84742
83665
|
;// CONCATENATED MODULE: ./packages/model/common-message.ts
|
84743
83666
|
|
84744
83667
|
/**
|
@@ -85868,7 +84791,8 @@ _defineProperty(WeiRongPluginService, "timer", null);
|
|
85868
84791
|
|
85869
84792
|
|
85870
84793
|
|
85871
|
-
|
84794
|
+
|
84795
|
+
const BEGIN_DATA = 'data:image/jpg;base64,';
|
85872
84796
|
/* harmony default export */ var scanner_camera_componentvue_type_script_lang_js_ = ({
|
85873
84797
|
name: "scanner-camera-component",
|
85874
84798
|
props: {
|
@@ -85921,7 +84845,23 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
85921
84845
|
};
|
85922
84846
|
},
|
85923
84847
|
watch: {
|
84848
|
+
'scannerVideoSrc': {
|
84849
|
+
immediate: true,
|
84850
|
+
handler(newVal, oldVal) {
|
84851
|
+
if (newVal && newVal.startsWith("http")) {
|
84852
|
+
CustomAxios.get(newVal).then(res => {
|
84853
|
+
if (this.machineType === 5 && res.code !== '0') {
|
84854
|
+
this.loadSuccess = false;
|
84855
|
+
}
|
84856
|
+
}).catch(err => {
|
84857
|
+
this.loadSuccess = false;
|
84858
|
+
});
|
84859
|
+
}
|
84860
|
+
}
|
84861
|
+
},
|
85924
84862
|
'machineType': function () {
|
84863
|
+
this.loadSuccess = true;
|
84864
|
+
this.scannerVideoSrc = '';
|
85925
84865
|
let handleName = this.camera === 1 ? 'start-vice' : 'start-main';
|
85926
84866
|
this.handleAction(handleName);
|
85927
84867
|
}
|
@@ -85930,7 +84870,7 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
85930
84870
|
this.handleAction('start-main');
|
85931
84871
|
window.addEventListener(SCANNER_CAMERA_REFRESH_PHOTO_EVENT, message => {
|
85932
84872
|
if (message.type === SCANNER_CAMERA_REFRESH_PHOTO_EVENT) {
|
85933
|
-
this.scannerVideoSrc = `${
|
84873
|
+
this.scannerVideoSrc = `${BEGIN_DATA}${message.scannerResultUrl}`;
|
85934
84874
|
}
|
85935
84875
|
});
|
85936
84876
|
window.addEventListener('beforeunload', this.beforeunload);
|
@@ -85949,7 +84889,7 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
85949
84889
|
break;
|
85950
84890
|
case 5:
|
85951
84891
|
// 良田
|
85952
|
-
await
|
84892
|
+
await ELoamPassService.stopCamera();
|
85953
84893
|
break;
|
85954
84894
|
}
|
85955
84895
|
},
|
@@ -85969,7 +84909,7 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
85969
84909
|
case 0:
|
85970
84910
|
// 捷宇
|
85971
84911
|
let res = await JieYueService.scanByCamera();
|
85972
|
-
this.$emit('send-scanner-result', `${
|
84912
|
+
this.$emit('send-scanner-result', `${BEGIN_DATA}${res}`);
|
85973
84913
|
break;
|
85974
84914
|
case 3:
|
85975
84915
|
{
|
@@ -85980,17 +84920,17 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
85980
84920
|
case 4:
|
85981
84921
|
{
|
85982
84922
|
let res = await UdsPluginSocketService.scanByCamera();
|
85983
|
-
this.$emit('send-scanner-result', `${
|
84923
|
+
this.$emit('send-scanner-result', `${BEGIN_DATA}${res}`);
|
85984
84924
|
break;
|
85985
84925
|
}
|
85986
84926
|
case 5:
|
85987
84927
|
{
|
85988
84928
|
// 良田
|
85989
84929
|
let type = this.camera === 0 ? 'main' : 'vice';
|
85990
|
-
const res = await
|
84930
|
+
const res = await ELoamPassService.scanByCamera(type, this.deskewStatus);
|
85991
84931
|
if (res) {
|
85992
84932
|
let path = res;
|
85993
|
-
this.$emit('send-scanner-result', `${
|
84933
|
+
this.$emit('send-scanner-result', `${BEGIN_DATA}${path}`);
|
85994
84934
|
} else {
|
85995
84935
|
this.$message.error('拍照出错,请检查设备是否连接成功');
|
85996
84936
|
}
|
@@ -86000,7 +84940,7 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
86000
84940
|
{
|
86001
84941
|
// 国产客户端一体机
|
86002
84942
|
let res = await WeiRongPluginService.scanByCamera();
|
86003
|
-
this.$emit('send-scanner-result', `${
|
84943
|
+
this.$emit('send-scanner-result', `${BEGIN_DATA}${res}`);
|
86004
84944
|
break;
|
86005
84945
|
}
|
86006
84946
|
}
|
@@ -86025,10 +84965,10 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
86025
84965
|
case 5:
|
86026
84966
|
// 良田高拍仪
|
86027
84967
|
if (!(String(navigator.platform).indexOf("Linux") > -1)) {
|
86028
|
-
this.scannerVideoSrc =
|
84968
|
+
this.scannerVideoSrc = ELoamPassService.mainCameraUrl;
|
86029
84969
|
} else {
|
86030
|
-
await
|
86031
|
-
let res = await
|
84970
|
+
await ELoamPassService.initLinuxCamera();
|
84971
|
+
let res = await ELoamPassService.startPreview('0');
|
86032
84972
|
if (res.returnCode == "0" || res.returnCode == "2") {
|
86033
84973
|
this.eloamLinuxFrameTimer = setInterval(this.getEloamFrame, 300);
|
86034
84974
|
}
|
@@ -86041,13 +84981,13 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
86041
84981
|
}
|
86042
84982
|
},
|
86043
84983
|
async getEloamFrame() {
|
86044
|
-
let res = await
|
84984
|
+
let res = await ELoamPassService.getEloamFrame();
|
86045
84985
|
if (res.returnCode == "1") {
|
86046
84986
|
clearInterval(this.eloamLinuxFrameTimer);
|
86047
84987
|
return;
|
86048
84988
|
}
|
86049
84989
|
if (res.data.img == "") return;
|
86050
|
-
this.scannerVideoSrc = `${
|
84990
|
+
this.scannerVideoSrc = `${BEGIN_DATA}${res.data.img}`;
|
86051
84991
|
},
|
86052
84992
|
/**
|
86053
84993
|
* 副摄像头
|
@@ -86069,10 +85009,10 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
86069
85009
|
case 5:
|
86070
85010
|
// 良田
|
86071
85011
|
if (!(String(navigator.platform).indexOf("Linux") > -1)) {
|
86072
|
-
this.scannerVideoSrc =
|
85012
|
+
this.scannerVideoSrc = ELoamPassService.mainCameraUrl;
|
86073
85013
|
} else {
|
86074
|
-
await
|
86075
|
-
await
|
85014
|
+
await ELoamPassService.initLinuxCamera();
|
85015
|
+
await ELoamPassService.startPreview('1');
|
86076
85016
|
this.eloamLinuxFrameTimer = setInterval(this.getEloamFrame, 300);
|
86077
85017
|
}
|
86078
85018
|
break;
|
@@ -86084,16 +85024,16 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
86084
85024
|
},
|
86085
85025
|
async takePictureMerge(type) {
|
86086
85026
|
if (type === '1' && this.deskewStatus === '0') return this.$message.warning('请先开启纠偏');
|
86087
|
-
const res = await
|
85027
|
+
const res = await ELoamPassService.scanByCamera('main', this.deskewStatus, true);
|
86088
85028
|
if (res) {
|
86089
85029
|
let path = res;
|
86090
85030
|
this.mergeImageList.push(path);
|
86091
85031
|
if (this.mergeImageList.length === 1) this.$message.success('第一张拍摄成功,请拍第二张');
|
86092
85032
|
if (this.mergeImageList.length === 2) {
|
86093
|
-
let result = await
|
85033
|
+
let result = await ELoamPassService.mergeImage(this.mergeImageList, type);
|
86094
85034
|
this.mergeImageList = [];
|
86095
85035
|
this.$message.success('合并成功');
|
86096
|
-
this.$emit('send-scanner-result', `${
|
85036
|
+
this.$emit('send-scanner-result', `${BEGIN_DATA}${result}`);
|
86097
85037
|
}
|
86098
85038
|
} else {
|
86099
85039
|
this.$message.error('合并拍照出错,请检查设备是否连接成功');
|
@@ -86141,14 +85081,14 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
86141
85081
|
} else {
|
86142
85082
|
this.rotateDeg = 90;
|
86143
85083
|
}
|
86144
|
-
|
85084
|
+
ELoamPassService.read(ELoamMethodCode.ScannerCameraRotate, this.rotateDeg); // 选装
|
86145
85085
|
break;
|
86146
85086
|
case 'open-deskew':
|
86147
85087
|
this.deskewStatus = this.deskewStatus === '1' ? '0' : '1';
|
86148
|
-
|
85088
|
+
ELoamPassService.read(ELoamMethodCode.ScannerCameraDeskew_Base64, this.deskewStatus); // 开启纠偏裁边
|
86149
85089
|
break;
|
86150
85090
|
case 'close':
|
86151
|
-
await
|
85091
|
+
await ELoamPassService.stopCamera();
|
86152
85092
|
break;
|
86153
85093
|
}
|
86154
85094
|
}
|
@@ -86156,10 +85096,10 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
86156
85096
|
});
|
86157
85097
|
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=script&lang=js&
|
86158
85098
|
/* harmony default export */ var component_scanner_camera_componentvue_type_script_lang_js_ = (scanner_camera_componentvue_type_script_lang_js_);
|
86159
|
-
;// 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-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=
|
85099
|
+
;// 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-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=7ab9db0a&prod&scoped=true&lang=scss&
|
86160
85100
|
// extracted by mini-css-extract-plugin
|
86161
85101
|
|
86162
|
-
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=
|
85102
|
+
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=7ab9db0a&prod&scoped=true&lang=scss&
|
86163
85103
|
|
86164
85104
|
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue
|
86165
85105
|
|
@@ -86172,11 +85112,11 @@ const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/j
|
|
86172
85112
|
|
86173
85113
|
var scanner_camera_component_component = normalizeComponent(
|
86174
85114
|
component_scanner_camera_componentvue_type_script_lang_js_,
|
86175
|
-
|
86176
|
-
|
85115
|
+
scanner_camera_componentvue_type_template_id_7ab9db0a_scoped_true_render,
|
85116
|
+
scanner_camera_componentvue_type_template_id_7ab9db0a_scoped_true_staticRenderFns,
|
86177
85117
|
false,
|
86178
85118
|
null,
|
86179
|
-
"
|
85119
|
+
"7ab9db0a",
|
86180
85120
|
null
|
86181
85121
|
|
86182
85122
|
)
|
@@ -86323,156 +85263,8 @@ scanner_camera.install = Vue => {
|
|
86323
85263
|
Vue.component(scanner_camera.name, scanner_camera);
|
86324
85264
|
};
|
86325
85265
|
/* 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-
|
86327
|
-
var
|
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() {
|
85266
|
+
;// 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&
|
85267
|
+
var id_card_reader_buttonvue_type_template_id_43b57092_scoped_true_render = function render() {
|
86476
85268
|
var _vm = this,
|
86477
85269
|
_c = _vm._self._c;
|
86478
85270
|
return _vm.tip ? _c('el-tooltip', {
|
@@ -86549,7 +85341,7 @@ var id_card_reader_buttonvue_type_template_id_cd700468_scoped_true_render = func
|
|
86549
85341
|
}
|
86550
85342
|
})], 2);
|
86551
85343
|
};
|
86552
|
-
var
|
85344
|
+
var id_card_reader_buttonvue_type_template_id_43b57092_scoped_true_staticRenderFns = [];
|
86553
85345
|
|
86554
85346
|
;// CONCATENATED MODULE: ./packages/service/external-plugins/default-plugin-socket.service.ts
|
86555
85347
|
|
@@ -87870,8 +86662,8 @@ var face_auth_dialog_component = normalizeComponent(
|
|
87870
86662
|
)
|
87871
86663
|
|
87872
86664
|
/* 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=
|
87874
|
-
var
|
86665
|
+
;// 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&
|
86666
|
+
var eloam_take_photo_dialogvue_type_template_id_0b1e6b36_scoped_true_render = function render() {
|
87875
86667
|
var _vm = this,
|
87876
86668
|
_c = _vm._self._c;
|
87877
86669
|
return _vm.visibility ? _c('el-dialog', {
|
@@ -87937,7 +86729,7 @@ var eloam_take_photo_dialogvue_type_template_id_6e18b4de_scoped_true_render = fu
|
|
87937
86729
|
}, 'el-button', button, false), [_vm._v(_vm._s(button.label) + " ")]) : _vm._e()];
|
87938
86730
|
})], 2)]) : _vm._e();
|
87939
86731
|
};
|
87940
|
-
var
|
86732
|
+
var eloam_take_photo_dialogvue_type_template_id_0b1e6b36_scoped_true_staticRenderFns = [];
|
87941
86733
|
|
87942
86734
|
;// 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
86735
|
|
@@ -88016,11 +86808,11 @@ var eloam_take_photo_dialogvue_type_template_id_6e18b4de_scoped_true_staticRende
|
|
88016
86808
|
;
|
88017
86809
|
var eloam_take_photo_dialog_component = normalizeComponent(
|
88018
86810
|
dialog_eloam_take_photo_dialogvue_type_script_lang_js_,
|
88019
|
-
|
88020
|
-
|
86811
|
+
eloam_take_photo_dialogvue_type_template_id_0b1e6b36_scoped_true_render,
|
86812
|
+
eloam_take_photo_dialogvue_type_template_id_0b1e6b36_scoped_true_staticRenderFns,
|
88021
86813
|
false,
|
88022
86814
|
null,
|
88023
|
-
"
|
86815
|
+
"0b1e6b36",
|
88024
86816
|
null
|
88025
86817
|
|
88026
86818
|
)
|
@@ -88944,9 +87736,9 @@ class ExitAndEntryPluginService {
|
|
88944
87736
|
}
|
88945
87737
|
let res;
|
88946
87738
|
if (requestType === 'get') {
|
88947
|
-
res = await
|
87739
|
+
res = await CustomAxios[requestType](url, param, headers);
|
88948
87740
|
} else {
|
88949
|
-
res = await
|
87741
|
+
res = await CustomAxios[requestType](url, param, headers);
|
88950
87742
|
}
|
88951
87743
|
return res;
|
88952
87744
|
}
|
@@ -89350,7 +88142,7 @@ class PuTianPluginService {
|
|
89350
88142
|
url = this.idCardWebSocketUrl + '/readCard';
|
89351
88143
|
break;
|
89352
88144
|
}
|
89353
|
-
let res = await
|
88145
|
+
let res = await CustomAxios.get(url);
|
89354
88146
|
return res;
|
89355
88147
|
}
|
89356
88148
|
static async idCardRead() {
|
@@ -89480,7 +88272,7 @@ class JingLunPluginService {
|
|
89480
88272
|
url = this.idCardWebSocketUrl + '/api/readCard';
|
89481
88273
|
break;
|
89482
88274
|
}
|
89483
|
-
let res = await
|
88275
|
+
let res = await CustomAxios.post(url, {});
|
89484
88276
|
return res;
|
89485
88277
|
}
|
89486
88278
|
static async idCardRead() {
|
@@ -89635,7 +88427,7 @@ class HanWangPluginService {
|
|
89635
88427
|
url = this.windowsWebServiceUrl + '/HWPenSign/HWGetSign';
|
89636
88428
|
break;
|
89637
88429
|
}
|
89638
|
-
let res = await
|
88430
|
+
let res = await CustomAxios.get(url, data);
|
89639
88431
|
return res;
|
89640
88432
|
}
|
89641
88433
|
static async readInLinux(methodCode) {
|
@@ -90248,11 +89040,11 @@ _defineProperty(HanWangPluginService, "_isLinux", String(navigator.platform).ind
|
|
90248
89040
|
;
|
90249
89041
|
var id_card_reader_button_component = normalizeComponent(
|
90250
89042
|
src_id_card_reader_buttonvue_type_script_lang_js_,
|
90251
|
-
|
90252
|
-
|
89043
|
+
id_card_reader_buttonvue_type_template_id_43b57092_scoped_true_render,
|
89044
|
+
id_card_reader_buttonvue_type_template_id_43b57092_scoped_true_staticRenderFns,
|
90253
89045
|
false,
|
90254
89046
|
null,
|
90255
|
-
"
|
89047
|
+
"43b57092",
|
90256
89048
|
null
|
90257
89049
|
|
90258
89050
|
)
|
@@ -91124,9 +89916,6 @@ scanner_nko.install = Vue => {
|
|
91124
89916
|
|
91125
89917
|
|
91126
89918
|
|
91127
|
-
|
91128
|
-
|
91129
|
-
|
91130
89919
|
// import {
|
91131
89920
|
// Button,
|
91132
89921
|
// Tooltip,
|
@@ -91142,7 +89931,7 @@ scanner_nko.install = Vue => {
|
|
91142
89931
|
// Dialog
|
91143
89932
|
// ]
|
91144
89933
|
// 组件列表
|
91145
|
-
const components = [packages_zs_empty, id_card_reader_id_card_reader_demo,
|
89934
|
+
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
89935
|
|
91147
89936
|
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,那么所有的组件都会被注册
|
91148
89937
|
const install = Vue => {
|