unify-external-plugin-platform 0.0.2-38 → 0.0.2-40
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 +789 -10
- package/dist/external-plugin.common.js.map +1 -1
- package/dist/external-plugin.css +1 -1
- package/dist/external-plugin.umd.js +789 -10
- package/dist/external-plugin.umd.js.map +1 -1
- package/dist/external-plugin.umd.min.js +1 -1
- package/dist/external-plugin.umd.min.js.map +1 -1
- package/package.json +1 -1
@@ -83918,6 +83918,780 @@ scanner_eloam.install = Vue => {
|
|
83918
83918
|
Vue.component(scanner_eloam.name, scanner_eloam);
|
83919
83919
|
};
|
83920
83920
|
/* harmony default export */ var scanner_scanner_eloam = (scanner_eloam);
|
83921
|
+
;// 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&
|
83922
|
+
var scanner_cameravue_type_template_id_00e9072f_scoped_true_render = function render() {
|
83923
|
+
var _vm = this,
|
83924
|
+
_c = _vm._self._c;
|
83925
|
+
return _c('div', {
|
83926
|
+
staticClass: "scanner-camera-container"
|
83927
|
+
}, [_vm.openMode === 'dialog' ? _c('div', {
|
83928
|
+
staticClass: "scanner-camera-button"
|
83929
|
+
}, [_vm.tip ? _c('el-tooltip', {
|
83930
|
+
staticClass: "id-card-reader-demo",
|
83931
|
+
attrs: {
|
83932
|
+
"content": _vm.tip,
|
83933
|
+
"placement": "top"
|
83934
|
+
}
|
83935
|
+
}, [_c('el-button', _vm._b({
|
83936
|
+
on: {
|
83937
|
+
"click": _vm.openScanDialog
|
83938
|
+
}
|
83939
|
+
}, 'el-button', {
|
83940
|
+
disabled: _vm.disabled,
|
83941
|
+
icon: _vm.icon,
|
83942
|
+
loading: _vm.loading,
|
83943
|
+
plain: _vm.plain,
|
83944
|
+
round: _vm.round,
|
83945
|
+
size: _vm.size,
|
83946
|
+
type: _vm.type,
|
83947
|
+
class: _vm._className
|
83948
|
+
}, false), [_vm._t("default", function () {
|
83949
|
+
return [_vm._v(_vm._s(_vm.label))];
|
83950
|
+
})], 2)], 1) : _c('el-button', _vm._b({
|
83951
|
+
on: {
|
83952
|
+
"click": _vm.openScanDialog
|
83953
|
+
}
|
83954
|
+
}, 'el-button', {
|
83955
|
+
disabled: _vm.disabled,
|
83956
|
+
icon: _vm.icon,
|
83957
|
+
loading: _vm.loading,
|
83958
|
+
plain: _vm.plain,
|
83959
|
+
round: _vm.round,
|
83960
|
+
size: _vm.size,
|
83961
|
+
type: _vm.type,
|
83962
|
+
class: _vm._className
|
83963
|
+
}, false), [_vm._t("default", function () {
|
83964
|
+
return [_vm._v(_vm._s(_vm.label))];
|
83965
|
+
})], 2), _c('el-dialog', {
|
83966
|
+
staticClass: "scanner-camera-dialog",
|
83967
|
+
attrs: {
|
83968
|
+
"title": "影像扫描",
|
83969
|
+
"visible": _vm.dialogVisible,
|
83970
|
+
"width": "60%"
|
83971
|
+
},
|
83972
|
+
on: {
|
83973
|
+
"update:visible": function ($event) {
|
83974
|
+
_vm.dialogVisible = $event;
|
83975
|
+
}
|
83976
|
+
}
|
83977
|
+
}, [_vm.dialogVisible ? _c('scanner-camera-component', {
|
83978
|
+
attrs: {
|
83979
|
+
"machine-type": _vm.machineType
|
83980
|
+
},
|
83981
|
+
on: {
|
83982
|
+
"send-scanner-result": _vm.setScannerResult
|
83983
|
+
},
|
83984
|
+
scopedSlots: _vm._u([{
|
83985
|
+
key: "action",
|
83986
|
+
fn: function () {
|
83987
|
+
return [_vm._t("right-action")];
|
83988
|
+
},
|
83989
|
+
proxy: true
|
83990
|
+
}], null, true)
|
83991
|
+
}) : _vm._e(), _c('span', {
|
83992
|
+
staticClass: "dialog-footer",
|
83993
|
+
attrs: {
|
83994
|
+
"slot": "footer"
|
83995
|
+
},
|
83996
|
+
slot: "footer"
|
83997
|
+
}, [_c('el-button', {
|
83998
|
+
attrs: {
|
83999
|
+
"size": "small"
|
84000
|
+
},
|
84001
|
+
on: {
|
84002
|
+
"click": function ($event) {
|
84003
|
+
_vm.dialogVisible = false;
|
84004
|
+
}
|
84005
|
+
}
|
84006
|
+
}, [_vm._v("取 消")]), _c('el-button', {
|
84007
|
+
attrs: {
|
84008
|
+
"size": "small",
|
84009
|
+
"type": "primary"
|
84010
|
+
},
|
84011
|
+
on: {
|
84012
|
+
"click": _vm.sendScannerResult
|
84013
|
+
}
|
84014
|
+
}, [_vm._v("确 定")])], 1)], 1)], 1) : _c('scanner-camera-component', {
|
84015
|
+
attrs: {
|
84016
|
+
"machine-type": _vm.machineType
|
84017
|
+
},
|
84018
|
+
on: {
|
84019
|
+
"send-scanner-result": _vm.setScannerResult
|
84020
|
+
},
|
84021
|
+
scopedSlots: _vm._u([{
|
84022
|
+
key: "action",
|
84023
|
+
fn: function () {
|
84024
|
+
return [_vm._t("right-action")];
|
84025
|
+
},
|
84026
|
+
proxy: true
|
84027
|
+
}], null, true)
|
84028
|
+
})], 1);
|
84029
|
+
};
|
84030
|
+
var scanner_cameravue_type_template_id_00e9072f_scoped_true_staticRenderFns = [];
|
84031
|
+
|
84032
|
+
;// 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/component/scanner-camera-component.vue?vue&type=template&id=1d5c68b5&scoped=true&
|
84033
|
+
var scanner_camera_componentvue_type_template_id_1d5c68b5_scoped_true_render = function render() {
|
84034
|
+
var _vm = this,
|
84035
|
+
_c = _vm._self._c;
|
84036
|
+
return _c('div', {
|
84037
|
+
staticClass: "scanner-high-camera-component"
|
84038
|
+
}, [_c('div', {
|
84039
|
+
staticClass: "scanner-result-content"
|
84040
|
+
}, [_c('div', {
|
84041
|
+
staticClass: "content-main flex-1"
|
84042
|
+
}, [_vm.loadSuccess ? _c('div', {
|
84043
|
+
staticClass: "load-success"
|
84044
|
+
}, [_c('img', {
|
84045
|
+
staticStyle: {
|
84046
|
+
"width": "800px",
|
84047
|
+
"height": "600px"
|
84048
|
+
},
|
84049
|
+
attrs: {
|
84050
|
+
"id": "photo",
|
84051
|
+
"src": _vm.scannerVideoSrc
|
84052
|
+
}
|
84053
|
+
})]) : _c('div', {
|
84054
|
+
staticClass: "load-error"
|
84055
|
+
}, [_c('i', {
|
84056
|
+
staticClass: "el-icon-s-cooperation"
|
84057
|
+
}), _c('p', [_vm._v("请先安装插件")])])]), _c('div', {
|
84058
|
+
staticClass: "handle-action"
|
84059
|
+
}, [_c('el-select', {
|
84060
|
+
staticClass: "select",
|
84061
|
+
attrs: {
|
84062
|
+
"size": "small"
|
84063
|
+
},
|
84064
|
+
on: {
|
84065
|
+
"change": _vm.selectChange
|
84066
|
+
},
|
84067
|
+
model: {
|
84068
|
+
value: _vm.camera,
|
84069
|
+
callback: function ($$v) {
|
84070
|
+
_vm.camera = $$v;
|
84071
|
+
},
|
84072
|
+
expression: "camera"
|
84073
|
+
}
|
84074
|
+
}, _vm._l(_vm.cameras, function (item) {
|
84075
|
+
return _c('el-option', {
|
84076
|
+
key: item.value,
|
84077
|
+
attrs: {
|
84078
|
+
"label": item.name,
|
84079
|
+
"value": item.value
|
84080
|
+
}
|
84081
|
+
});
|
84082
|
+
}), 1), _vm._l(_vm.buttonList, function (item) {
|
84083
|
+
return [_c('el-button', {
|
84084
|
+
key: item.name,
|
84085
|
+
attrs: {
|
84086
|
+
"type": "primary",
|
84087
|
+
"size": "small"
|
84088
|
+
},
|
84089
|
+
on: {
|
84090
|
+
"click": function ($event) {
|
84091
|
+
return _vm.handleAction(item.name);
|
84092
|
+
}
|
84093
|
+
}
|
84094
|
+
}, [_vm._v(_vm._s(item.label))]), _vm._t("action")];
|
84095
|
+
})], 2)])]);
|
84096
|
+
};
|
84097
|
+
var scanner_camera_componentvue_type_template_id_1d5c68b5_scoped_true_staticRenderFns = [];
|
84098
|
+
|
84099
|
+
;// CONCATENATED MODULE: ./packages/utils/custom-axios.ts
|
84100
|
+
/**
|
84101
|
+
* @author: lvcy
|
84102
|
+
* @date: 2023-06-21
|
84103
|
+
* @description:custom-axios
|
84104
|
+
*/
|
84105
|
+
class custom_axios_CustomAxios {
|
84106
|
+
static startConnect(method, url, data = {}) {
|
84107
|
+
return new Promise((resolve, reject) => {
|
84108
|
+
let xhr = new XMLHttpRequest();
|
84109
|
+
method = method.toUpperCase();
|
84110
|
+
if (method == 'GET') {
|
84111
|
+
let param = ''; //数据拼接字符串
|
84112
|
+
Object.keys(data).forEach(key => {
|
84113
|
+
param += `${key}=${data[key]}&`;
|
84114
|
+
});
|
84115
|
+
param = param.substring(0, param.lastIndexOf('&'));
|
84116
|
+
url = url + '?' + param;
|
84117
|
+
} else if (method == 'POST') {} else {
|
84118
|
+
reject('error method: Currently only supported GET or POST method!');
|
84119
|
+
}
|
84120
|
+
xhr.open(method, url, true);
|
84121
|
+
xhr.setRequestHeader('Accept', 'application/json');
|
84122
|
+
if (method === 'GET') {
|
84123
|
+
xhr.send();
|
84124
|
+
} else {
|
84125
|
+
xhr.send(JSON.stringify(data));
|
84126
|
+
}
|
84127
|
+
xhr.onreadystatechange = function () {
|
84128
|
+
if (this.readyState !== 4) {
|
84129
|
+
return;
|
84130
|
+
}
|
84131
|
+
if (this.status === 200) {
|
84132
|
+
let obj = this.response;
|
84133
|
+
if (typeof obj !== 'object') {
|
84134
|
+
obj = JSON.parse(obj);
|
84135
|
+
}
|
84136
|
+
resolve(obj);
|
84137
|
+
} else {
|
84138
|
+
reject(xhr);
|
84139
|
+
}
|
84140
|
+
};
|
84141
|
+
});
|
84142
|
+
}
|
84143
|
+
static async get(url) {
|
84144
|
+
let res = await custom_axios_CustomAxios.startConnect('GET', url);
|
84145
|
+
return res;
|
84146
|
+
}
|
84147
|
+
static async post(url, data) {
|
84148
|
+
let res = await custom_axios_CustomAxios.startConnect('POST', url, data);
|
84149
|
+
return res;
|
84150
|
+
}
|
84151
|
+
}
|
84152
|
+
;// CONCATENATED MODULE: ./packages/service/external-plugins/eloam-plugin.service.ts
|
84153
|
+
|
84154
|
+
/**
|
84155
|
+
* @author: lvcy
|
84156
|
+
* @date: 2023-06-21
|
84157
|
+
* @description:良田高拍仪
|
84158
|
+
*/
|
84159
|
+
|
84160
|
+
var eloam_plugin_service_ELoamMethodCode;
|
84161
|
+
(function (ELoamMethodCode) {
|
84162
|
+
/** 扫描-主摄像头 */
|
84163
|
+
ELoamMethodCode["ScannerMainCamera_Base64"] = "ScannerMainCamera_Base64";
|
84164
|
+
/** 扫描-副摄像头 */
|
84165
|
+
ELoamMethodCode["ScannerSecondaryCamera_Base64"] = "ScannerSecondaryCamera_Base64";
|
84166
|
+
/** 读取二代身份证 */
|
84167
|
+
ELoamMethodCode["ReadIDCard_Base64"] = "ReadIDCard_Base64";
|
84168
|
+
})(eloam_plugin_service_ELoamMethodCode || (eloam_plugin_service_ELoamMethodCode = {}));
|
84169
|
+
const eloam_plugin_service_ELoamMethodDesc = {
|
84170
|
+
[eloam_plugin_service_ELoamMethodCode.ScannerMainCamera_Base64]: '扫描',
|
84171
|
+
[eloam_plugin_service_ELoamMethodCode.ScannerSecondaryCamera_Base64]: '拍照',
|
84172
|
+
[eloam_plugin_service_ELoamMethodCode.ReadIDCard_Base64]: '读取二代身份证'
|
84173
|
+
};
|
84174
|
+
class eloam_plugin_service_ELoamPassService {
|
84175
|
+
/** 主摄像头地址 */
|
84176
|
+
static get mainCameraUrl() {
|
84177
|
+
return this.baseServiceUrl + '/video=stream&camidx=0';
|
84178
|
+
}
|
84179
|
+
/** 副摄像头地址 */
|
84180
|
+
static get secondaryCameraUrl() {
|
84181
|
+
return this.baseServiceUrl + '/video=stream&camidx=1';
|
84182
|
+
}
|
84183
|
+
static async read(method) {
|
84184
|
+
let param = {},
|
84185
|
+
url = '';
|
84186
|
+
switch (method) {
|
84187
|
+
case eloam_plugin_service_ELoamMethodCode.ScannerMainCamera_Base64:
|
84188
|
+
// rotate: 旋转角度;deskew:纠偏,主摄像头1,副摄像头0 camidx:主摄像头0,副摄像头1;ColorMode:quality
|
84189
|
+
url = this.baseServiceUrl + '/video=grabimage';
|
84190
|
+
param = {
|
84191
|
+
filepath: "base64",
|
84192
|
+
rotate: "0",
|
84193
|
+
deskew: "1",
|
84194
|
+
camidx: "0",
|
84195
|
+
ColorMode: "0",
|
84196
|
+
quality: "0"
|
84197
|
+
};
|
84198
|
+
break;
|
84199
|
+
case eloam_plugin_service_ELoamMethodCode.ScannerSecondaryCamera_Base64:
|
84200
|
+
// rotate: 旋转角度,;deskew:纠偏,主摄像头1,副摄像头0 camidx:主摄像头0,副摄像头1;ColorMode:quality
|
84201
|
+
url = this.baseServiceUrl + '/video=grabimage';
|
84202
|
+
param = {
|
84203
|
+
filepath: "base64",
|
84204
|
+
rotate: "0",
|
84205
|
+
deskew: "0",
|
84206
|
+
camidx: "1",
|
84207
|
+
ColorMode: "0",
|
84208
|
+
quality: "0"
|
84209
|
+
};
|
84210
|
+
break;
|
84211
|
+
case eloam_plugin_service_ELoamMethodCode.ReadIDCard_Base64:
|
84212
|
+
url = this.baseServiceUrl + '/card=idcard';
|
84213
|
+
break;
|
84214
|
+
}
|
84215
|
+
let res = await custom_axios_CustomAxios.post(url, param);
|
84216
|
+
return res;
|
84217
|
+
}
|
84218
|
+
/** 主摄像头拍照 */
|
84219
|
+
static async scanByMainCamera() {
|
84220
|
+
const res = await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ScannerMainCamera_Base64);
|
84221
|
+
return res.photoBase64;
|
84222
|
+
}
|
84223
|
+
/** 副摄像头拍照 */
|
84224
|
+
static async scanBySecondaryCamera() {
|
84225
|
+
const res = await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ScannerSecondaryCamera_Base64);
|
84226
|
+
return res.photoBase64;
|
84227
|
+
}
|
84228
|
+
static async scanByCamera(type) {
|
84229
|
+
switch (type) {
|
84230
|
+
case "main":
|
84231
|
+
return this.scanByMainCamera();
|
84232
|
+
case 'vice':
|
84233
|
+
return this.scanBySecondaryCamera();
|
84234
|
+
}
|
84235
|
+
}
|
84236
|
+
/** 读取身份证 */
|
84237
|
+
static async idCardRead() {
|
84238
|
+
const res = await eloam_plugin_service_ELoamPassService.read(eloam_plugin_service_ELoamMethodCode.ReadIDCard_Base64);
|
84239
|
+
let {
|
84240
|
+
name,
|
84241
|
+
sex,
|
84242
|
+
birthday,
|
84243
|
+
address,
|
84244
|
+
cardID,
|
84245
|
+
nationCode,
|
84246
|
+
photoBase64,
|
84247
|
+
issueOrgan,
|
84248
|
+
validStart,
|
84249
|
+
validEnd
|
84250
|
+
} = res.IDCardInfo;
|
84251
|
+
const IDCardData = {
|
84252
|
+
info: {
|
84253
|
+
name,
|
84254
|
+
sex,
|
84255
|
+
birthday: birthday.replace('-', '').replace('-', ''),
|
84256
|
+
address,
|
84257
|
+
cardId: cardID,
|
84258
|
+
nation: nationCode,
|
84259
|
+
police: issueOrgan,
|
84260
|
+
validStart,
|
84261
|
+
validEnd
|
84262
|
+
},
|
84263
|
+
headImage: photoBase64
|
84264
|
+
};
|
84265
|
+
return IDCardData;
|
84266
|
+
}
|
84267
|
+
}
|
84268
|
+
_defineProperty(eloam_plugin_service_ELoamPassService, "baseServiceUrl", 'http://127.0.0.1:38088');
|
84269
|
+
;// CONCATENATED MODULE: ./packages/model/common-message.ts
|
84270
|
+
|
84271
|
+
/**
|
84272
|
+
* @author: lvcy
|
84273
|
+
* @date: 2023-07-25
|
84274
|
+
* @description:common-message
|
84275
|
+
*/
|
84276
|
+
const SCANNER_CAMERA_REFRESH_PHOTO_EVENT = 'scanner-camera-refresh-photo-event';
|
84277
|
+
class ScannerCameraRefreshPhotoEvent extends Event {
|
84278
|
+
constructor(url) {
|
84279
|
+
super(SCANNER_CAMERA_REFRESH_PHOTO_EVENT);
|
84280
|
+
_defineProperty(this, "scannerResultUrl", '');
|
84281
|
+
this.scannerResultUrl = url;
|
84282
|
+
}
|
84283
|
+
}
|
84284
|
+
;// CONCATENATED MODULE: ./packages/service/external-plugins/jie-yu-plugin.service.ts
|
84285
|
+
|
84286
|
+
|
84287
|
+
|
84288
|
+
/**
|
84289
|
+
* @author: lvcy
|
84290
|
+
* @date: 2023-07-24
|
84291
|
+
* @description:捷宇高拍仪
|
84292
|
+
*/
|
84293
|
+
var JieYuMethodCode;
|
84294
|
+
(function (JieYuMethodCode) {
|
84295
|
+
/** 扫描-主摄像头 */
|
84296
|
+
JieYuMethodCode["ScannerMainCamera_Base64"] = "vSetResolution(8)";
|
84297
|
+
/** 扫描-副摄像头 */
|
84298
|
+
JieYuMethodCode["ScannerSecondaryCamera_Base64"] = "bStartPlay2";
|
84299
|
+
JieYuMethodCode["TakePhoto_Base64"] = "bSaveJPG(D:\\,Photo)";
|
84300
|
+
})(JieYuMethodCode || (JieYuMethodCode = {}));
|
84301
|
+
const JieYuMethodDesc = {
|
84302
|
+
[JieYuMethodCode.ScannerMainCamera_Base64]: '扫描',
|
84303
|
+
[JieYuMethodCode.ScannerSecondaryCamera_Base64]: '拍照'
|
84304
|
+
};
|
84305
|
+
class JieYueService {
|
84306
|
+
static startConnect() {
|
84307
|
+
if (this.ws && this.ws.readyState === WebSocket.CONNECTING) {
|
84308
|
+
return this;
|
84309
|
+
}
|
84310
|
+
const ws = new WebSocket(this.scannerCameraUrl);
|
84311
|
+
let resolved;
|
84312
|
+
const onConnect = new Promise(resolve => {
|
84313
|
+
resolved = resolve;
|
84314
|
+
});
|
84315
|
+
ws.onopen = () => {
|
84316
|
+
resolved(true);
|
84317
|
+
};
|
84318
|
+
ws.onmessage = event => {
|
84319
|
+
this.handleMessage(event);
|
84320
|
+
};
|
84321
|
+
ws.onclose = () => this.handleClose();
|
84322
|
+
ws.onerror = () => this.handleError();
|
84323
|
+
this.ws = ws;
|
84324
|
+
return onConnect;
|
84325
|
+
}
|
84326
|
+
static handleError() {
|
84327
|
+
for (const type in this.requestStore) {
|
84328
|
+
this.requestStore.forEach(({
|
84329
|
+
reject
|
84330
|
+
}) => {
|
84331
|
+
reject('handleError');
|
84332
|
+
});
|
84333
|
+
}
|
84334
|
+
throw Error('捷宇高拍仪设备功能加载失败');
|
84335
|
+
}
|
84336
|
+
static handleClose() {
|
84337
|
+
for (const type in this.requestStore) {
|
84338
|
+
this.requestStore.forEach(({
|
84339
|
+
reject
|
84340
|
+
}) => {
|
84341
|
+
reject('close');
|
84342
|
+
});
|
84343
|
+
}
|
84344
|
+
}
|
84345
|
+
static handleMessage(msg) {
|
84346
|
+
let data = msg.data;
|
84347
|
+
if (!data.startsWith('BarCode') && !data.startsWith('Begin')) {
|
84348
|
+
const event = new ScannerCameraRefreshPhotoEvent(data);
|
84349
|
+
return window.dispatchEvent(event);
|
84350
|
+
}
|
84351
|
+
//
|
84352
|
+
//
|
84353
|
+
// this.requestStore.forEach(({ resolve }: PromiseStore) => {
|
84354
|
+
// resolve(data)
|
84355
|
+
// });
|
84356
|
+
// this.requestStore = [];
|
84357
|
+
}
|
84358
|
+
/**
|
84359
|
+
* 发送请求
|
84360
|
+
*/
|
84361
|
+
static async read(type) {
|
84362
|
+
await this.startConnect();
|
84363
|
+
if (this.ws.readyState === 1) {
|
84364
|
+
let method = '';
|
84365
|
+
switch (type) {
|
84366
|
+
case 'main':
|
84367
|
+
this.ws.send('bStartPlay()');
|
84368
|
+
method = JieYuMethodCode.ScannerMainCamera_Base64;
|
84369
|
+
break;
|
84370
|
+
case 'vice':
|
84371
|
+
method = JieYuMethodCode.ScannerSecondaryCamera_Base64;
|
84372
|
+
break;
|
84373
|
+
case 'takePhoto':
|
84374
|
+
method = JieYuMethodCode.TakePhoto_Base64;
|
84375
|
+
}
|
84376
|
+
this.ws.send(method);
|
84377
|
+
return new Promise((resolve, reject) => {
|
84378
|
+
if (!this.requestStore) {
|
84379
|
+
this.requestStore = [];
|
84380
|
+
}
|
84381
|
+
this.requestStore.push({
|
84382
|
+
resolve,
|
84383
|
+
reject
|
84384
|
+
});
|
84385
|
+
});
|
84386
|
+
} else {
|
84387
|
+
throw Error('设备未准备完成');
|
84388
|
+
}
|
84389
|
+
}
|
84390
|
+
static async turnOnTheCamera(type) {
|
84391
|
+
if (this.ws) this.ws.close();
|
84392
|
+
await JieYueService.read(type);
|
84393
|
+
}
|
84394
|
+
static async scanByCamera() {
|
84395
|
+
if (this.ws) this.ws.close();
|
84396
|
+
await JieYueService.read('takePhoto');
|
84397
|
+
}
|
84398
|
+
}
|
84399
|
+
_defineProperty(JieYueService, "scannerCameraUrl", 'ws://127.0.0.1:1818');
|
84400
|
+
_defineProperty(JieYueService, "ws", void 0);
|
84401
|
+
_defineProperty(JieYueService, "requestStore", []);
|
84402
|
+
;// 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-camera/src/component/scanner-camera-component.vue?vue&type=script&lang=js&
|
84403
|
+
|
84404
|
+
|
84405
|
+
|
84406
|
+
const scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA = 'data:image/jpg;base64,';
|
84407
|
+
/* harmony default export */ var scanner_camera_componentvue_type_script_lang_js_ = ({
|
84408
|
+
name: "scanner-camera-component",
|
84409
|
+
props: {
|
84410
|
+
/**
|
84411
|
+
* 0-捷宇;5-良田
|
84412
|
+
*/
|
84413
|
+
machineType: {
|
84414
|
+
//
|
84415
|
+
default: 0,
|
84416
|
+
type: Number
|
84417
|
+
}
|
84418
|
+
},
|
84419
|
+
data: () => {
|
84420
|
+
return {
|
84421
|
+
scannerVideoSrc: '',
|
84422
|
+
scannerResultSrc: '',
|
84423
|
+
loadSuccess: true,
|
84424
|
+
camera: 0,
|
84425
|
+
cameras: [{
|
84426
|
+
name: '文档',
|
84427
|
+
value: 0
|
84428
|
+
}, {
|
84429
|
+
name: '照片',
|
84430
|
+
value: 1
|
84431
|
+
}],
|
84432
|
+
buttonList: [{
|
84433
|
+
label: '拍照',
|
84434
|
+
name: 'take-pictures'
|
84435
|
+
}]
|
84436
|
+
};
|
84437
|
+
},
|
84438
|
+
watch: {
|
84439
|
+
'machineType': function () {
|
84440
|
+
let handleName = this.camera === 1 ? 'start-vice' : 'start-main';
|
84441
|
+
this.handleAction(handleName);
|
84442
|
+
}
|
84443
|
+
},
|
84444
|
+
created() {
|
84445
|
+
this.handleAction('start-main');
|
84446
|
+
window.addEventListener(SCANNER_CAMERA_REFRESH_PHOTO_EVENT, message => {
|
84447
|
+
if (message.type === SCANNER_CAMERA_REFRESH_PHOTO_EVENT) {
|
84448
|
+
this.scannerVideoSrc = `${scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA}${message.scannerResultUrl}`;
|
84449
|
+
}
|
84450
|
+
});
|
84451
|
+
},
|
84452
|
+
methods: {
|
84453
|
+
/**
|
84454
|
+
* 切换扫描、拍照
|
84455
|
+
* @param val
|
84456
|
+
*/
|
84457
|
+
selectChange(val) {
|
84458
|
+
let handleName = val === 1 ? 'start-vice' : 'start-main';
|
84459
|
+
this.handleAction(handleName);
|
84460
|
+
},
|
84461
|
+
/**
|
84462
|
+
* 拍照
|
84463
|
+
*/
|
84464
|
+
async takePictures() {
|
84465
|
+
switch (this.machineType) {
|
84466
|
+
case 0:
|
84467
|
+
{
|
84468
|
+
// await JieYueService.scanByCamera();
|
84469
|
+
this.$emit('send-scanner-result', this.scannerVideoSrc);
|
84470
|
+
}
|
84471
|
+
break;
|
84472
|
+
case 5:
|
84473
|
+
{
|
84474
|
+
let type = this.camera === 0 ? 'main' : 'vice';
|
84475
|
+
const res = await eloam_plugin_service_ELoamPassService.scanByCamera(type);
|
84476
|
+
this.$emit('send-scanner-result', `${scanner_camera_componentvue_type_script_lang_js_BEGIN_DATA}${res}`);
|
84477
|
+
}
|
84478
|
+
}
|
84479
|
+
},
|
84480
|
+
/**
|
84481
|
+
* 主摄像头
|
84482
|
+
*/
|
84483
|
+
async handleStartMain() {
|
84484
|
+
switch (this.machineType) {
|
84485
|
+
case 0:
|
84486
|
+
await JieYueService.turnOnTheCamera('main');
|
84487
|
+
break;
|
84488
|
+
case 5:
|
84489
|
+
// 良田
|
84490
|
+
this.scannerVideoSrc = eloam_plugin_service_ELoamPassService.mainCameraUrl;
|
84491
|
+
break;
|
84492
|
+
}
|
84493
|
+
},
|
84494
|
+
/**
|
84495
|
+
* 副摄像头
|
84496
|
+
*/
|
84497
|
+
async handleStartVice() {
|
84498
|
+
switch (this.machineType) {
|
84499
|
+
case 0:
|
84500
|
+
await JieYueService.turnOnTheCamera('vice');
|
84501
|
+
break;
|
84502
|
+
case 5:
|
84503
|
+
// 良田
|
84504
|
+
this.scannerVideoSrc = eloam_plugin_service_ELoamPassService.secondaryCameraUrl;
|
84505
|
+
break;
|
84506
|
+
}
|
84507
|
+
},
|
84508
|
+
handleAction(name) {
|
84509
|
+
switch (name) {
|
84510
|
+
case 'start-main':
|
84511
|
+
// 主摄像头
|
84512
|
+
this.handleStartMain();
|
84513
|
+
break;
|
84514
|
+
case 'start-vice':
|
84515
|
+
// 副摄像头
|
84516
|
+
this.handleStartVice();
|
84517
|
+
break;
|
84518
|
+
case 'take-pictures':
|
84519
|
+
// 拍照
|
84520
|
+
this.takePictures();
|
84521
|
+
break;
|
84522
|
+
}
|
84523
|
+
}
|
84524
|
+
}
|
84525
|
+
});
|
84526
|
+
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=script&lang=js&
|
84527
|
+
/* harmony default export */ var component_scanner_camera_componentvue_type_script_lang_js_ = (scanner_camera_componentvue_type_script_lang_js_);
|
84528
|
+
;// 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-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=1d5c68b5&prod&scoped=true&lang=scss&
|
84529
|
+
// extracted by mini-css-extract-plugin
|
84530
|
+
|
84531
|
+
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue?vue&type=style&index=0&id=1d5c68b5&prod&scoped=true&lang=scss&
|
84532
|
+
|
84533
|
+
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/component/scanner-camera-component.vue
|
84534
|
+
|
84535
|
+
|
84536
|
+
|
84537
|
+
;
|
84538
|
+
|
84539
|
+
|
84540
|
+
/* normalize component */
|
84541
|
+
|
84542
|
+
var scanner_camera_component_component = normalizeComponent(
|
84543
|
+
component_scanner_camera_componentvue_type_script_lang_js_,
|
84544
|
+
scanner_camera_componentvue_type_template_id_1d5c68b5_scoped_true_render,
|
84545
|
+
scanner_camera_componentvue_type_template_id_1d5c68b5_scoped_true_staticRenderFns,
|
84546
|
+
false,
|
84547
|
+
null,
|
84548
|
+
"1d5c68b5",
|
84549
|
+
null
|
84550
|
+
|
84551
|
+
)
|
84552
|
+
|
84553
|
+
/* harmony default export */ var scanner_camera_component = (scanner_camera_component_component.exports);
|
84554
|
+
;// 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-camera/src/scanner-camera.vue?vue&type=script&lang=js&
|
84555
|
+
|
84556
|
+
|
84557
|
+
/* harmony default export */ var scanner_cameravue_type_script_lang_js_ = ({
|
84558
|
+
name: "scanner-camera",
|
84559
|
+
components: {
|
84560
|
+
ScannerCameraComponent: scanner_camera_component
|
84561
|
+
},
|
84562
|
+
props: {
|
84563
|
+
/**
|
84564
|
+
* 0-捷宇;5-良田
|
84565
|
+
*/
|
84566
|
+
machineType: {
|
84567
|
+
//
|
84568
|
+
default: 0,
|
84569
|
+
type: Number
|
84570
|
+
},
|
84571
|
+
openMode: {
|
84572
|
+
default: '',
|
84573
|
+
type: String
|
84574
|
+
},
|
84575
|
+
label: {
|
84576
|
+
default: '',
|
84577
|
+
type: String
|
84578
|
+
},
|
84579
|
+
tip: {
|
84580
|
+
default: '',
|
84581
|
+
type: String
|
84582
|
+
},
|
84583
|
+
className: {
|
84584
|
+
default: '',
|
84585
|
+
type: String
|
84586
|
+
},
|
84587
|
+
size: {
|
84588
|
+
default: '',
|
84589
|
+
type: String
|
84590
|
+
},
|
84591
|
+
type: {
|
84592
|
+
default: '',
|
84593
|
+
type: String
|
84594
|
+
},
|
84595
|
+
plain: {
|
84596
|
+
default: false,
|
84597
|
+
type: Boolean
|
84598
|
+
},
|
84599
|
+
round: {
|
84600
|
+
default: false,
|
84601
|
+
type: Boolean
|
84602
|
+
},
|
84603
|
+
loading: {
|
84604
|
+
default: false,
|
84605
|
+
type: Boolean
|
84606
|
+
},
|
84607
|
+
icon: {
|
84608
|
+
default: '',
|
84609
|
+
type: String
|
84610
|
+
},
|
84611
|
+
disabled: {
|
84612
|
+
default: false,
|
84613
|
+
type: Boolean
|
84614
|
+
}
|
84615
|
+
},
|
84616
|
+
data: () => {
|
84617
|
+
return {
|
84618
|
+
dialogVisible: false,
|
84619
|
+
scannerResult: ''
|
84620
|
+
};
|
84621
|
+
},
|
84622
|
+
computed: {
|
84623
|
+
_className() {
|
84624
|
+
const classBase = ['z-button'];
|
84625
|
+
if (this.type === 'text') {
|
84626
|
+
classBase.push('i-font-size');
|
84627
|
+
}
|
84628
|
+
if (!this.className) {
|
84629
|
+
return classBase;
|
84630
|
+
} else if (typeof this.className === 'string') {
|
84631
|
+
classBase.push(this.className);
|
84632
|
+
} else {
|
84633
|
+
classBase.push(...this.className);
|
84634
|
+
}
|
84635
|
+
return classBase;
|
84636
|
+
}
|
84637
|
+
},
|
84638
|
+
methods: {
|
84639
|
+
openScanDialog() {
|
84640
|
+
this.dialogVisible = true;
|
84641
|
+
},
|
84642
|
+
setScannerResult(src) {
|
84643
|
+
this.scannerResult = src;
|
84644
|
+
if (this.openMode !== 'dialog') {
|
84645
|
+
this.$emit('send-scanner-result', this.scannerResult);
|
84646
|
+
}
|
84647
|
+
},
|
84648
|
+
sendScannerResult() {
|
84649
|
+
if (this.scannerResult) {
|
84650
|
+
this.$emit('send-scanner-result', this.scannerResult);
|
84651
|
+
this.dialogVisible = false;
|
84652
|
+
}
|
84653
|
+
}
|
84654
|
+
}
|
84655
|
+
});
|
84656
|
+
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/scanner-camera.vue?vue&type=script&lang=js&
|
84657
|
+
/* harmony default export */ var src_scanner_cameravue_type_script_lang_js_ = (scanner_cameravue_type_script_lang_js_);
|
84658
|
+
;// 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-camera/src/scanner-camera.vue?vue&type=style&index=0&id=00e9072f&prod&scoped=true&lang=scss&
|
84659
|
+
// extracted by mini-css-extract-plugin
|
84660
|
+
|
84661
|
+
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/scanner-camera.vue?vue&type=style&index=0&id=00e9072f&prod&scoped=true&lang=scss&
|
84662
|
+
|
84663
|
+
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/src/scanner-camera.vue
|
84664
|
+
|
84665
|
+
|
84666
|
+
|
84667
|
+
;
|
84668
|
+
|
84669
|
+
|
84670
|
+
/* normalize component */
|
84671
|
+
|
84672
|
+
var src_scanner_camera_component = normalizeComponent(
|
84673
|
+
src_scanner_cameravue_type_script_lang_js_,
|
84674
|
+
scanner_cameravue_type_template_id_00e9072f_scoped_true_render,
|
84675
|
+
scanner_cameravue_type_template_id_00e9072f_scoped_true_staticRenderFns,
|
84676
|
+
false,
|
84677
|
+
null,
|
84678
|
+
"00e9072f",
|
84679
|
+
null
|
84680
|
+
|
84681
|
+
)
|
84682
|
+
|
84683
|
+
/* harmony default export */ var scanner_camera = (src_scanner_camera_component.exports);
|
84684
|
+
;// CONCATENATED MODULE: ./packages/scanner/scanner-camera/index.js
|
84685
|
+
/**
|
84686
|
+
* @author: lvcy
|
84687
|
+
* @date: 2023-07-24
|
84688
|
+
* @description:index
|
84689
|
+
*/
|
84690
|
+
|
84691
|
+
scanner_camera.install = Vue => {
|
84692
|
+
Vue.component(scanner_camera.name, scanner_camera);
|
84693
|
+
};
|
84694
|
+
/* harmony default export */ var scanner_scanner_camera = (scanner_camera);
|
83921
84695
|
;// 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-eloam/src/id-card-reader-eloam.vue?vue&type=template&id=5b7ce781&scoped=true&
|
83922
84696
|
var id_card_reader_eloamvue_type_template_id_5b7ce781_scoped_true_render = function render() {
|
83923
84697
|
var _vm = this,
|
@@ -84066,8 +84840,8 @@ id_card_reader_eloam.install = Vue => {
|
|
84066
84840
|
Vue.component(id_card_reader_eloam.name, id_card_reader_eloam);
|
84067
84841
|
};
|
84068
84842
|
/* harmony default export */ var id_card_reader_id_card_reader_eloam = (id_card_reader_eloam);
|
84069
|
-
;// 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=
|
84070
|
-
var
|
84843
|
+
;// 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=6bdb0354&scoped=true&
|
84844
|
+
var id_card_reader_buttonvue_type_template_id_6bdb0354_scoped_true_render = function render() {
|
84071
84845
|
var _vm = this,
|
84072
84846
|
_c = _vm._self._c;
|
84073
84847
|
return _vm.tip ? _c('el-tooltip', {
|
@@ -84126,7 +84900,7 @@ var id_card_reader_buttonvue_type_template_id_7cd25906_scoped_true_render = func
|
|
84126
84900
|
return [_vm._v(_vm._s(_vm.label))];
|
84127
84901
|
})], 2);
|
84128
84902
|
};
|
84129
|
-
var
|
84903
|
+
var id_card_reader_buttonvue_type_template_id_6bdb0354_scoped_true_staticRenderFns = [];
|
84130
84904
|
|
84131
84905
|
;// CONCATENATED MODULE: ./packages/service/external-plugins/default-plugin-socket.service.ts
|
84132
84906
|
|
@@ -85666,6 +86440,9 @@ var eloam_take_photo_dialog_component = normalizeComponent(
|
|
85666
86440
|
)
|
85667
86441
|
|
85668
86442
|
/* harmony default export */ var eloam_take_photo_dialog = (eloam_take_photo_dialog_component.exports);
|
86443
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
86444
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(7203);
|
86445
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
85669
86446
|
;// 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/id-card-reader-button.vue?vue&type=script&lang=js&
|
85670
86447
|
|
85671
86448
|
|
@@ -85676,6 +86453,7 @@ var eloam_take_photo_dialog_component = normalizeComponent(
|
|
85676
86453
|
|
85677
86454
|
|
85678
86455
|
|
86456
|
+
|
85679
86457
|
/* harmony default export */ var id_card_reader_buttonvue_type_script_lang_js_ = ({
|
85680
86458
|
name: 'id-card-reader-button',
|
85681
86459
|
props: {
|
@@ -85857,7 +86635,7 @@ var eloam_take_photo_dialog_component = normalizeComponent(
|
|
85857
86635
|
*/
|
85858
86636
|
async signEvent() {
|
85859
86637
|
let userSignature = '';
|
85860
|
-
switch (this.
|
86638
|
+
switch (this.readMachineType) {
|
85861
86639
|
case 0:
|
85862
86640
|
userSignature = await SignReadService.read();
|
85863
86641
|
break;
|
@@ -85876,7 +86654,7 @@ var eloam_take_photo_dialog_component = normalizeComponent(
|
|
85876
86654
|
debugger;
|
85877
86655
|
const modalNode = document.createElement('div');
|
85878
86656
|
document.body.appendChild(modalNode);
|
85879
|
-
const vm = new
|
86657
|
+
const vm = new (external_commonjs_vue_commonjs2_vue_root_Vue_default())({
|
85880
86658
|
render: h => {
|
85881
86659
|
return h(face_auth_dialog, {
|
85882
86660
|
props: {},
|
@@ -85903,7 +86681,7 @@ var eloam_take_photo_dialog_component = normalizeComponent(
|
|
85903
86681
|
readFacePhotoByELoam() {
|
85904
86682
|
const modalNode = document.createElement('div');
|
85905
86683
|
document.body.appendChild(modalNode);
|
85906
|
-
const vm = new
|
86684
|
+
const vm = new (external_commonjs_vue_commonjs2_vue_root_Vue_default())({
|
85907
86685
|
render: h => {
|
85908
86686
|
return h(eloam_take_photo_dialog, {
|
85909
86687
|
props: {},
|
@@ -85948,11 +86726,11 @@ var eloam_take_photo_dialog_component = normalizeComponent(
|
|
85948
86726
|
;
|
85949
86727
|
var id_card_reader_button_component = normalizeComponent(
|
85950
86728
|
src_id_card_reader_buttonvue_type_script_lang_js_,
|
85951
|
-
|
85952
|
-
|
86729
|
+
id_card_reader_buttonvue_type_template_id_6bdb0354_scoped_true_render,
|
86730
|
+
id_card_reader_buttonvue_type_template_id_6bdb0354_scoped_true_staticRenderFns,
|
85953
86731
|
false,
|
85954
86732
|
null,
|
85955
|
-
"
|
86733
|
+
"6bdb0354",
|
85956
86734
|
null
|
85957
86735
|
|
85958
86736
|
)
|
@@ -85976,6 +86754,7 @@ id_card_reader_button.install = Vue => {
|
|
85976
86754
|
|
85977
86755
|
|
85978
86756
|
|
86757
|
+
|
85979
86758
|
// import {
|
85980
86759
|
// Button,
|
85981
86760
|
// Tooltip,
|
@@ -85991,7 +86770,7 @@ id_card_reader_button.install = Vue => {
|
|
85991
86770
|
// Dialog
|
85992
86771
|
// ]
|
85993
86772
|
// 组件列表
|
85994
|
-
const components = [packages_zs_empty, id_card_reader_id_card_reader_demo, scanner_scanner_high_camera_jieyu, scanner_scanner_eloam,
|
86773
|
+
const components = [packages_zs_empty, id_card_reader_id_card_reader_demo, id_card_reader_id_card_reader_eloam, id_card_reader_id_card_reader_button, scanner_scanner_high_camera_jieyu, scanner_scanner_eloam, scanner_scanner_camera];
|
85995
86774
|
|
85996
86775
|
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,那么所有的组件都会被注册
|
85997
86776
|
const install = Vue => {
|