| | |
| | | remark: undefined, |
| | | url: "", |
| | | }, |
| | | ID: undefined, |
| | | dialogImageUrl: '', |
| | | url1:undefined, |
| | | dialogVisible: false, |
| | |
| | | this.isShow=false |
| | | // alert(this.btn) |
| | | } |
| | | |
| | | this.ID = id; |
| | | let _this = this |
| | | if (id) { |
| | | this.loading = true; |
| | |
| | | //console.log(_this.fileList) |
| | | // alert(response.fileNames) |
| | | _this.formData.url = _this.formData.url+","+response.fileNames |
| | | |
| | | _this.uploadFileList = [] |
| | | // alert(87) |
| | | updateFamilyevent(_this.formData).then(response => { |
| | | _this.$modal.msgSuccess("图片上传成功"); |
| | | let id = _this.ID |
| | | if (id) { |
| | | _this.loading = true; |
| | | getFamilyeventInfo(id).then((response) => { |
| | | _this.formData = response.data; |
| | | alert(123) |
| | | let paths = _this.formData.url.split(","); |
| | | for(let i = 0; i < paths.length; i++) |
| | | { |
| | | if(paths[i]!="") { |
| | | |
| | | let pth = paths[i].substr(paths[i].length - 4, paths[i].length) |
| | | // alert(pth) |
| | | if (_this.fot.includes(pth) === true) |
| | | { |
| | | if(paths[i][0]=="/") |
| | | _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileList.push({name:paths[i],url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | } |
| | | else { |
| | | // alert(paths[i]) |
| | | // alert() |
| | | let nms = paths[i].split("\/") |
| | | let nm = nms[nms.length - 1] |
| | | if(paths[i][0]=="/") |
| | | _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i].substr(1),res:false}) |
| | | else |
| | | _this.fileListOther.push({name:nm, url: process.env.VUE_APP_BASE_TRUE_API+paths[i],res:false}) |
| | | |
| | | } |
| | | } |
| | | // _this.fileList1 = _this.fileList |
| | | } |
| | | _this.loading = false; |
| | | }); |
| | | } |
| | | // this.open = false; |
| | | |
| | | }); |