|
@@ -54,39 +54,13 @@
|
|
|
</a-form-item>
|
|
|
<a-form-item v-else-if="area.type === 2" label="" name="fileContent" class="message-content">
|
|
|
<div class="upload-contant">
|
|
|
- <!-- <a-upload-dragger
|
|
|
- class="upload"
|
|
|
- :custom-request="customRequest"
|
|
|
- :before-upload="beforeUpload"
|
|
|
- :file-list="fileList"
|
|
|
- :on-change="handleChange"
|
|
|
- :on-remove="handleRemove"
|
|
|
- :multiple="false"
|
|
|
- :accept="acceptTypes"
|
|
|
- v-model:file-list="fileList"
|
|
|
- list-type="picture-card"
|
|
|
- >
|
|
|
- <template #default>
|
|
|
- <div v-if="fileList.length === 0">
|
|
|
- <CloudUploadOutlined style="font-size: 25px" />
|
|
|
- <div>
|
|
|
- 将文件拖到此处,或
|
|
|
- <span style="color: #1890ff">点击上传</span>
|
|
|
- </div>
|
|
|
- <div>支持上传文件为图片、视频、pdf、word、excel</div>
|
|
|
- </div>
|
|
|
- </template>
|
|
|
- </a-upload-dragger> -->
|
|
|
- <!-- <BasicUpload :maxSize="20" :maxNumber="10" @change="handleChange" :api="uploadApi" /> -->
|
|
|
<BasicUpload
|
|
|
:maxSize="100"
|
|
|
:maxNumber="1"
|
|
|
@change="handleChange"
|
|
|
:api="uploadApi"
|
|
|
- v-model:file="fileList"
|
|
|
+ v-model:value="fileList"
|
|
|
/>
|
|
|
- <!-- :accept="['image/*', 'video/*', 'audio/*','application/pdf', 'application/vnd.ms-excel','application/vnd.openxmlformats-officedocument.spreadsheetml.sheet', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document']" -->
|
|
|
- <!-- @remove="emit('remove')" @moveUp="emit('moveUp')" @moveDown="emit('moveDown')" -->
|
|
|
<CustomIcons :index="index" :length="length" :iconDisable="msgDisabled" />
|
|
|
</div>
|
|
|
</a-form-item>
|
|
@@ -130,6 +104,7 @@
|
|
|
import ProductNote from './productNote.vue';
|
|
|
import { BasicUpload } from '@/components/Upload';
|
|
|
import { deleteFile, downloadFile, getFileList, uploadApi } from '@/api/fms/file';
|
|
|
+ // import { uploadApi } from '@/api/sys/upload';
|
|
|
import { uploadPics } from '@/api/wechat/tes';
|
|
|
import ProductContant from './productContant.vue';
|
|
|
export default defineComponent({
|