diff --git a/jsowell-ui/src/components/MapContainer/MapContainer.vue b/jsowell-ui/src/components/MapContainer/MapContainer.vue index c5b155a46..29b1519c1 100644 --- a/jsowell-ui/src/components/MapContainer/MapContainer.vue +++ b/jsowell-ui/src/components/MapContainer/MapContainer.vue @@ -16,17 +16,31 @@
-
- - 上传图片 -
+
上传图片
+ + + + + + + + + + + + + + + + + + + @@ -41,6 +55,11 @@ window._AMapSecurityConfig = { export default { data() { return { + dialogImageUrl: '', + dialogVisible: false, + // headers:{ + // Authorization:this.$store.state.user.token + // }, map: null, autoOptions: { input: "", @@ -58,6 +77,14 @@ export default { }; }, methods: { + handleRemove(file, fileList) { + console.log(file, fileList); + }, + handlePictureCardPreview(file) { + this.dialogImageUrl = file.url; + console.log(this.dialogImageUrl) + this.dialogVisible = true; + }, // 点击搜索按钮 send() { this.searchPlaceInput = this.inputObject.userInput; @@ -160,6 +187,7 @@ export default { }); }, onFileChange(e) { + console.log(e,'上传图片') // 1.获取用户选择的文件列表 const fileList = e.target.files; console.log(fileList);