|
@@ -135,7 +135,7 @@
|
|
|
listType="picture-card"
|
|
|
upText="上传"
|
|
|
></Upload>
|
|
|
- <img v-else :src="formData.image" style="width:100px ;height: auto;" />
|
|
|
+ <img v-else :src="formData.image" style="max-width:400px ;height: auto;" />
|
|
|
</a-form-item>
|
|
|
<a-form-item :wrapper-col="{ span: 12, offset: 6}" style="text-align: center;">
|
|
|
<a-button type="primary" html-type="submit" v-if="!disabled" id="bannerSetting-submit" style="margin-right: 15px">保存</a-button>
|
|
@@ -304,7 +304,9 @@ export default {
|
|
|
this.formData.type = ''
|
|
|
this.formData.image = ''
|
|
|
this.title = '新增'
|
|
|
- this.$refs.bannerImage.setFileList('')
|
|
|
+ if (this.$refs.bannerImage) {
|
|
|
+ this.$refs.bannerImage.setFileList('')
|
|
|
+ }
|
|
|
this.form.resetFields()
|
|
|
},
|
|
|
// 赋值
|
|
@@ -320,20 +322,19 @@ export default {
|
|
|
// 0 修改,1 查看详情
|
|
|
handleEdit (row, type) {
|
|
|
const _this = this
|
|
|
- console.log(row)
|
|
|
if (type == 1) {
|
|
|
this.title = '查看详情'
|
|
|
this.hideRequiredMark = true
|
|
|
} else if (type == 0) {
|
|
|
this.title = '编辑'
|
|
|
this.hideRequiredMark = false
|
|
|
+ setTimeout(() => {
|
|
|
+ _this.$refs.bannerImage.setFileList(this.formData.image)
|
|
|
+ }, 500)
|
|
|
}
|
|
|
this.assignment(row)
|
|
|
this.disabled = type == 1
|
|
|
this.visible = true
|
|
|
- setTimeout(() => {
|
|
|
- _this.$refs.bannerImage.setFileList(this.formData.image)
|
|
|
- }, 500)
|
|
|
},
|
|
|
// 删除
|
|
|
delect (row) {
|