diff --git a/src/views/admin/ParkEdit.vue b/src/views/admin/ParkEdit.vue
index f4647e1..40aedca 100644
--- a/src/views/admin/ParkEdit.vue
+++ b/src/views/admin/ParkEdit.vue
@@ -59,7 +59,7 @@
-
+
@@ -204,9 +204,9 @@ export default {
if (!isJpgOrPng) {
this.$message.error('You can only upload JPG file!')
}
- const isLt2M = file.size / 1024 < 500
+ const isLt2M = file.size / 1024 < 5000
if (!isLt2M) {
- this.$message.error('图片必须小于 500kb!')
+ this.$message.error('图片必须小于 5M!')
}
return isJpgOrPng && isLt2M
},
diff --git a/src/views/admin/RoomEdit.vue b/src/views/admin/RoomEdit.vue
index cd9cc5c..62983e3 100644
--- a/src/views/admin/RoomEdit.vue
+++ b/src/views/admin/RoomEdit.vue
@@ -140,7 +140,7 @@
-
+
diff --git a/src/views/admin/modules/CustomerContactsModal.vue b/src/views/admin/modules/CustomerContactsModal.vue
index f7d6b90..0ad362e 100644
--- a/src/views/admin/modules/CustomerContactsModal.vue
+++ b/src/views/admin/modules/CustomerContactsModal.vue
@@ -240,8 +240,12 @@ export default {
},
edit (record) {
+ console.log('编辑按钮',111)
this.mdl = Object.assign(record)
- console.log(this.mdl)
+ console.log(this.mdl.photo)
+ if (this.mdl.photo) {
+ this.photoImageUrl = process.env.VUE_APP_API_BASE_URL + this.mdl.photo
+ }
this.visible = true
this.$nextTick(() => {
this.form.setFieldsValue(pick(this.mdl, 'id','name','username','mobile','gender',