| | |
| | | const reader = new FileReader(); |
| | | reader.onload = (e) => { |
| | | this.$set(this.currentFile, 'iconUrl', e.target.result); |
| | | this.$set(this.currentFile, 'iconUrl2', e.target.result); |
| | | }; |
| | | reader.readAsDataURL(file.raw); |
| | | return false; |
| | |
| | | fileName: file.fileName, |
| | | warningRules: file.warningRules, |
| | | rangeValue: file.rangeValue, |
| | | createUser:this.userInfo.id |
| | | createUser:this.userInfo.id, |
| | | iconUrl:file.iconUrl2 |
| | | }) |
| | | this.$message.success('添加成功') |
| | | this.fetchFiles() |
| | |
| | | fileName: file.fileName, |
| | | warningRules: file.warningRules, |
| | | rangeValue: file.rangeValue, |
| | | iconUrl:file.iconUrl |
| | | iconUrl:file.iconUrl2 |
| | | }) |
| | | this.$message.success('编辑成功') |
| | | this.fetchFiles() |