| | |
| | | submitDataScope: function() { |
| | | let ul = this.fileList[0].url |
| | | this.formDat.avatar = ul, |
| | | alert(this.formDat.avatar) |
| | | // alert(this.formDat.avatar) |
| | | this.$refs["elForm"].validate(valid => { |
| | | if (valid && this.formDat.roomId > 0) { |
| | | addWebcast(this.formDat).then(response => { |
| | |
| | | // for(let i = 0; i < this.fileListOther.length; i++){ |
| | | // this.handleRemoveFile(this.fileListOther[0]); |
| | | // } |
| | | this.fileList = [] |
| | | this.getList(); |
| | | }); |
| | | }else{ |
| | |
| | | _this.fileList.push({name:response.data.fileName, url:response.data.url}) |
| | | console.log(this.fileList) |
| | | // _this.fileList2.push({name:response.data.fileName, url:response.data.url}) |
| | | alert('ok') |
| | | // alert('ok') |
| | | }) |
| | | |
| | | }, |