diff --git a/dangan-ui/src/views/dangan/collection/index.vue b/dangan-ui/src/views/dangan/collection/index.vue index d7006df..478c039 100644 --- a/dangan-ui/src/views/dangan/collection/index.vue +++ b/dangan-ui/src/views/dangan/collection/index.vue @@ -121,7 +121,7 @@ -
+
物理书架:
-
+
@@ -253,6 +254,7 @@ export default { // 扫描文件上传 smwj: { loading: false, + smloading: false, // 是否显示弹出层(用户导入) open: false, shelfId: undefined, @@ -288,7 +290,7 @@ export default { _this.WebScan.initSef('',function (result){ if(result.code!=200){ - this.$alert(`初始化失败,返回错误:${result.msg}`, `提示`, { + _this.$alert(`初始化失败,返回错误:${result.msg}`, `提示`, { type: 'error' }); }else { @@ -302,14 +304,14 @@ export default { let _this = this; _this.WebScan.getDevices(function (result){ if(result.code!=200){ - this.$alert(`初始化失败,返回错误:${result.msg}`, `提示`, { + _this.$alert(`初始化失败,返回错误:${result.msg}`, `提示`, { type: 'error' }); }else { if(result.data.indexOf('M3230') !== -1){ _this.WebScanSetParams() }else { - this.$alert(`未检测到设备`, `提示`, { + _this.$alert(`未检测到设备`, `提示`, { type: 'error' }); } @@ -368,11 +370,13 @@ export default { }; _this.WebScan.setParams(form,function(result){ if(result.code!=200){ - this.$alert(`${result.msg}`, `提示`, { + _this.$alert(`${result.msg}`, `提示`, { type: 'error' }); }else{ + _this.smwj.smloading = true; _this.WebScan.startScan(function(result){ + _this.smwj.smloading = false; if(result.code==201){ _this.smwj.list.push({ base64Str: result.image, @@ -380,7 +384,7 @@ export default { }) } if(result.code==500){ - this.$alert(`${result.msg}`, `提示`, { + _this.$alert(`${result.msg}`, `提示`, { type: 'error' }); }