| | |
| | | import { upload } from '@/api/basicApi/index' |
| | | |
| | | // import type { UploadProps } from 'element-plus' |
| | | import { getImage, setImage } from '@/utils/methods' |
| | | import { getImage, setImage } from '@/utils/validate.js' |
| | | const props = defineProps({ |
| | | imageList: { |
| | | type: String, |
| | |
| | | let form = new FormData(); |
| | | form.append("file1", params.file); |
| | | form.append("fileId", params.file.lastModified); |
| | | form.append("path", 'revenue'); |
| | | form.append("path", 'hydropower'); |
| | | //发出上传文件请求 |
| | | let res = await upload().uploadFile(form) |
| | | if(res.code == 200){ |
| | |
| | | }) |
| | | }) |
| | | fileList.value = list |
| | | console.log('回显',fileList.value) |
| | | |
| | | file.value = newList.split(',') |
| | | } |