commit
This commit is contained in:
@@ -267,7 +267,11 @@ export default {
|
||||
},
|
||||
uploadSuccess(res, file, fileList) {
|
||||
if (res.ok) {
|
||||
// this.value += res.data.id + ','
|
||||
let obj = {name: '', response: {}}
|
||||
obj.name = file.response.data.oldFileName
|
||||
obj.response.data = file.response.data
|
||||
this.showFileList.push(obj)
|
||||
// this.value += res.data.id + ','
|
||||
this.$emit('input', this.value ? this.value + ','+ res.data.id + ',' : this.value+ res.data.id + ',')
|
||||
this.$emit('success')
|
||||
this.$message({
|
||||
@@ -314,7 +318,6 @@ export default {
|
||||
this.$emit('input', '')
|
||||
}
|
||||
}
|
||||
|
||||
const showFileList = []
|
||||
fileList.map(item => {
|
||||
let obj = {name: '', response: {}}
|
||||
|
||||
@@ -196,7 +196,11 @@
|
||||
},
|
||||
computed: {
|
||||
placeholder () {
|
||||
return `${this.placeholderText}`
|
||||
if (this.placeholderText){
|
||||
return `${this.placeholderText}`
|
||||
} else {
|
||||
return `请输入${this.config.attrName}`
|
||||
}
|
||||
},
|
||||
showMessage () {
|
||||
return `${this.config.attrName}不能为空`
|
||||
|
||||
Reference in New Issue
Block a user