王露 před 2 roky
rodič
revize
c408487dde

+ 2
- 3
digital-park-web/digital-park/src/views/park-enterprises/Detail.vue Zobrazit soubor

@@ -280,9 +280,8 @@ export default {
this.isEditing = false;
},
updateCompany() {
this.companyInfo.enterpriseFeatures = this.$refs.content4.$data.uploadFileList.join(
","
);
this.companyInfo.enterpriseFeatures = this.$refs.content4.$data.uploadFileList;
// console.log(this.companyInfo.enterpriseFeatures);
updateCompany(this.companyInfo)
.then(res => {
console.log(res.data);

+ 4
- 2
digital-park-web/digital-park/src/views/park-enterprises/components/OtherInfo.vue Zobrazit soubor

@@ -135,12 +135,14 @@ export default {
async afterReadUrl(file) {
let photo2Url = await this.uploadFile(file, null);
this.uploadFileList.push(photo2Url);
console.log(this.uploadFileList);
// console.log(this.uploadFileList);
},
},
//生命周期 - 创建完成(可以访问当前this实例)
created() {
this.uploadFileList = JSON.parse(this.companyInfo.enterpriseFeatures);
this.uploadFileList = this.companyInfo.enterpriseFeatures
? JSON.parse(this.companyInfo.enterpriseFeatures)
: [];
if (this.companyInfo.enterpriseFeatures) {
this.uploadFileList.forEach(item => {
this.fileList.push({

Načítá se…
Zrušit
Uložit