| | |
| | | <template> |
| | | <div style="display: flex"> |
| | | <el-input :disabled="true" type="text" size="medium" v-model="viewName" style="width: 60%" ></el-input> |
| | | <el-input :disabled="inputDisable" type="text" size="medium" v-model="viewName" style="width: 60%" @change="fileNameChange" ></el-input> |
| | | <el-upload |
| | | v-if="!disabled" |
| | | action="" |
| | |
| | | fileName: '', |
| | | filePath: '', |
| | | downloadUrl: '', |
| | | inputDisable:true, |
| | | fileList: [], |
| | | } |
| | | }, |
| | |
| | | message:'上传成功', |
| | | duration:2000, |
| | | }) |
| | | this.inputDisable = false; |
| | | }else { |
| | | this.$message.error('上传失败,系统未知错误!错误码为【500】'); |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | handleClear(){ |
| | | handleClear(index){ |
| | | this.fileName = ''; |
| | | this.fileList = []; |
| | | this.viewName="" |
| | |
| | | fileUrl: '', |
| | | fileName: '' |
| | | }); |
| | | this.inputDisable = true; |
| | | }, |
| | | |
| | | fileNameChange(event){ |
| | | this.$emit('fileNameChange', event); |
| | | }, |
| | | |
| | | beforeUpload(file) { |