| | |
| | | <script> |
| | | import {deepClone, getCodeList} from '@/utils/helper' |
| | | import MyUpload from "@/components/myUpload" |
| | | import { FILE_ORIGINAL_URL } from "@/utils"; |
| | | export default { |
| | | components: { |
| | | MyUpload |
| | |
| | | writPic({ url }) { |
| | | const baseUrl = ''; |
| | | if (this.book.originalPic.length < 4) { |
| | | this.book.writPic.push(baseUrl + url) |
| | | this.book.writPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`) |
| | | } |
| | | }, |
| | | //删除图片 |
| | |
| | | otherPic({ url }) { |
| | | const baseUrl = ''; |
| | | if (this.book.otherPic.length < 4) { |
| | | this.book.otherPic.push(baseUrl + url) |
| | | this.book.otherPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`) |
| | | } |
| | | }, |
| | | //删除图片 |
| | |
| | | rectifiedPic({ url }) { |
| | | const baseUrl = ''; |
| | | if (this.book.otherPic.length < 4) { |
| | | this.book.rectifiedPic.push(baseUrl + url) |
| | | this.book.rectifiedPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`) |
| | | } |
| | | }, |
| | | //删除图片 |
| | |
| | | originalPic({ url }) { |
| | | const baseUrl = ''; |
| | | if (this.book.otherPic.length < 4) { |
| | | this.book.originalPic.push(baseUrl + url) |
| | | this.book.originalPic.push(`${FILE_ORIGINAL_URL}sccg/API/img?fileUrl=${url}`) |
| | | } |
| | | }, |
| | | //删除图片 |