vue2-client 1.18.56 → 1.18.57

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue2-client",
3
- "version": "1.18.56",
3
+ "version": "1.18.57",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "SET NODE_OPTIONS=--openssl-legacy-provider && vue-cli-service serve --no-eslint",
@@ -74,7 +74,7 @@
74
74
  </a-button>
75
75
  </a-upload>
76
76
 
77
- <height-scanner v-if="useScanner" @confirmPhoto="confirmPhoto" ref="heightScanner"/>
77
+ <height-scanner v-if="useScanner" :show="showScanner" @confirmPhoto="confirmPhoto" @cancel="handleCancelScanner" ref="heightScanner"/>
78
78
 
79
79
  <!-- 使用封装的图片预览组件 -->
80
80
  <image-preview-modal
@@ -105,7 +105,8 @@ export default {
105
105
  uploadedFileList: [],
106
106
  previewVisible: false,
107
107
  previewImage: '',
108
- previewImageName: ''
108
+ previewImageName: '',
109
+ showScanner: false
109
110
  }
110
111
  },
111
112
  props: {
@@ -219,7 +220,12 @@ export default {
219
220
 
220
221
  useScannerUpload (e) {
221
222
  // 打开高拍仪
222
- this.$refs.heightScanner.show = true
223
+ this.showScanner = true
224
+ },
225
+
226
+ handleCancelScanner () {
227
+ // 关闭高拍仪弹窗
228
+ this.showScanner = false
223
229
  },
224
230
 
225
231
  uploadFiles (info) {
@@ -101,7 +101,7 @@
101
101
  <a-col :span="24">
102
102
  <a-space>
103
103
  高拍仪
104
- <a-button @click="handleCancel">取消</a-button>
104
+ <a-button @click="handleCancel">关闭</a-button>
105
105
  </a-space>
106
106
  </a-col>
107
107
  </a-row>
@@ -582,7 +582,7 @@ export default {
582
582
  this.$emit('confirmPhoto', this.previewImage)
583
583
  },
584
584
  handleCancel () {
585
- this.show = false
585
+ this.$emit('cancel')
586
586
  }
587
587
  },
588
588