diff --git a/src/components/AiUploader/AiUploader.vue b/src/components/AiUploader/AiUploader.vue index cf620a8..bef535c 100644 --- a/src/components/AiUploader/AiUploader.vue +++ b/src/components/AiUploader/AiUploader.vue @@ -40,6 +40,10 @@ import AiImage from '../AiImage/AiImage' export default { name: 'AiUploader', components: {AiImage}, + model:{ + prop: 'def', + event: 'input' + }, props: { limit: {default: 1}, //数量 placeholder: {default: '添加图片'}, // 文字提示 @@ -86,7 +90,7 @@ export default { methods: { remove(index) { this.fileList.splice(index, 1) - this.$emit('list', this.fileList) + this.$emit('input', this.fileList) }, upload(wait) { let count = this.limit - (this.fileList?.length || 0) @@ -145,8 +149,6 @@ export default { this.$u.toast('上传成功!') if (this.action.endsWith('/file/add')) { this.fileList.push({url: res.data?.[0]?.split(";")?.[0], id: res.data?.[0]?.split(";")?.[1]}) - this.$emit('input', [...this.fileList]) - this.$emit('change', [...this.fileList]) } else if (this.action == '/admin/file/add2') { let info = res.data this.$emit('update:fileId', info?.id) @@ -155,7 +157,7 @@ export default { this.fileList.push({url: res.data?.split(";")?.[0], id: res.data?.split(";")?.[1]}) } this.$emit("update:def", this.fileList) - this.$emit("list", this.fileList) + this.$emit("input", this.fileList) } else { this.$u.toast(res.msg) } diff --git a/src/mods/work/AppServiceOnline/serviceForm.vue b/src/mods/work/AppServiceOnline/serviceForm.vue index 47b4fee..fb8d9bf 100644 --- a/src/mods/work/AppServiceOnline/serviceForm.vue +++ b/src/mods/work/AppServiceOnline/serviceForm.vue @@ -28,7 +28,7 @@ *

请上传{{ item.annexName }}

- +
diff --git a/src/project/fengdu/AppPhotoReport/PhotoDetail.vue b/src/project/fengdu/AppPhotoReport/PhotoDetail.vue index 6c9feb4..da3e2b5 100644 --- a/src/project/fengdu/AppPhotoReport/PhotoDetail.vue +++ b/src/project/fengdu/AppPhotoReport/PhotoDetail.vue @@ -9,7 +9,9 @@ - +
+ +
暂无照片
@@ -17,7 +19,9 @@ - +
+ +
暂无照片
@@ -163,5 +167,17 @@ export default { background: #FF4466; } } + + .imageItem { + min-width: 30%; + height: 30vw; + flex-shrink: 0; + margin-right: 16px; + margin-bottom: 16px; + + &:nth-of-type(3n) { + margin-right: 0; + } + } }