| | |
| | | } |
| | | } |
| | | this.addLoad = true |
| | | this.upHead.forEach((item,index)=>{ |
| | | if(this.data.cascaderField&&this.data.cascaderField[item.label]){ |
| | | if(this.upData[item.label]){ |
| | | this.upData[item.label] = this.upData[item.label].join(','); |
| | | }else{ |
| | | this.upData[item.label] = '' |
| | | } |
| | | } |
| | | }) |
| | | this.$axios.post(this.addUrl, this.upData, { |
| | | headers: { |
| | | 'Content-Type': 'application/json' |
| | |
| | | return count * 15 + 60 + 'px' |
| | | }, |
| | | handleSuccessUp(response,label){ |
| | | if(label){ |
| | | if(typeof label === 'string'){ |
| | | if(response.code==200){ |
| | | this.upData[label] = response.data.url; |
| | | } |