| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { getToken } from '@/utils/auth' |
| | | import { sessionToken } from '@/settings' |
| | | import { getDownUrl } from '@/utils/base' |
| | | import {getToken} from '@/utils/auth' |
| | | import {sessionToken} from '@/settings' |
| | | import {getDownUrl} from '@/utils/base' |
| | | import Viewer from 'viewerjs' |
| | | import 'viewerjs/dist/viewer.css' |
| | | |
| | |
| | | title: '附件上传', |
| | | max: 100, // 最大大小,单位M |
| | | num: 10, // 支持上传图片个数 |
| | | accept: '.jpg,.jpeg,.png,.bmp,.pdf,.doc,.docx,.xls,.xlsx,.apk,.zip', // 限制格式 |
| | | accept: '.jpg,.jpeg,.png,.pdf,.doc,.docx,.xls,.xlsx', // 限制格式 |
| | | tip: '', // 提示 默认:`只能上传${this.defaultSettings.num}个${this.defaultSettings.accept}文件,且不超过${this.defaultSettings.max}kb` |
| | | uploadUrl: '', // 上传路径 |
| | | multiple: true, // 是否支持批量上传 |