flat: 修改传说中的Attachment
This commit is contained in:
@@ -103,7 +103,8 @@
|
||||
companyTid: {
|
||||
type: 'string',
|
||||
required: true,
|
||||
message: '请输入统一信用代码',
|
||||
max: 18,
|
||||
message: '请输入18位统一信用代码',
|
||||
trigger: ['change']
|
||||
},
|
||||
masterName: {
|
||||
@@ -251,6 +252,7 @@
|
||||
}
|
||||
let resData = await getInviteCompanyAuthInfo(params)
|
||||
if (resData.data.code === 200) {
|
||||
console.log(resData.data.data)
|
||||
this.formData = {
|
||||
...resData.data.data,
|
||||
nature: String(resData.data.data.nature),
|
||||
|
||||
@@ -39,7 +39,15 @@
|
||||
},
|
||||
computed: {
|
||||
ImgUrl(val) {
|
||||
return this.value ? [this.value] : []
|
||||
if (this.value) {
|
||||
const url = this.value.split('|')
|
||||
return [{
|
||||
name: 'img',
|
||||
url: url[url.length - 1]
|
||||
}]
|
||||
} else {
|
||||
return []
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -49,7 +57,13 @@
|
||||
name
|
||||
}) {
|
||||
// this.$emit("input", file);
|
||||
uploadFile(file).then((url) => {
|
||||
uploadFile(file).then((fileObj) => {
|
||||
const {
|
||||
id,
|
||||
path
|
||||
} = fileObj.data
|
||||
const url = `${id}|${path}$`
|
||||
console.log(url)
|
||||
this.$emit("input", url);
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user