|
@@ -48,11 +48,15 @@
|
|
:beforeUpload="beforeUpload"
|
|
:beforeUpload="beforeUpload"
|
|
>
|
|
>
|
|
<p class="ant-upload-drag-icon">
|
|
<p class="ant-upload-drag-icon">
|
|
- <a-icon type="inbox" />
|
|
|
|
|
|
+ <a-icon v-if="!loading" type="inbox" />
|
|
|
|
+ <a-icon v-else type="loading" />
|
|
</p>
|
|
</p>
|
|
- <p class="ant-upload-text">
|
|
|
|
|
|
+ <p class="ant-upload-text" v-if="!loading">
|
|
点击或将文件拖拽到这里上传(仅可上传一份
|
|
点击或将文件拖拽到这里上传(仅可上传一份
|
|
</p>
|
|
</p>
|
|
|
|
+ <p v-else class="ant-upload-text">
|
|
|
|
+ 上传中...
|
|
|
|
+ </p>
|
|
<p class="ant-upload-hint">
|
|
<p class="ant-upload-hint">
|
|
支持扩展名:.doc .docx .pdf .xls .xlsx .pptx
|
|
支持扩展名:.doc .docx .pdf .xls .xlsx .pptx
|
|
</p>
|
|
</p>
|
|
@@ -152,6 +156,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ loading:false,
|
|
api,
|
|
api,
|
|
classApi,
|
|
classApi,
|
|
saveLoading: false,
|
|
saveLoading: false,
|
|
@@ -333,6 +338,7 @@ export default {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
if(info.file.status === 'done') {
|
|
if(info.file.status === 'done') {
|
|
|
|
+ this.loading = false
|
|
this.knowledgeForm.attachment = info.file.response.data[0].fileId
|
|
this.knowledgeForm.attachment = info.file.response.data[0].fileId
|
|
this.knowledgeForm.attachmentName = info.file.response.data[0].fileName
|
|
this.knowledgeForm.attachmentName = info.file.response.data[0].fileName
|
|
}
|
|
}
|
|
@@ -436,7 +442,7 @@ export default {
|
|
this.option.isEdit = false
|
|
this.option.isEdit = false
|
|
this.option.lang = 'zh-CN'
|
|
this.option.lang = 'zh-CN'
|
|
// this.option.url = 'http://10.5.100.64:9900/api-system/system/core/sysFile/previewFile?fileId=1597050108435845121'
|
|
// this.option.url = 'http://10.5.100.64:9900/api-system/system/core/sysFile/previewFile?fileId=1597050108435845121'
|
|
- this.option.url = 'http://www.hkcqjy.com.cn:8088/api/api-system/system/core/sysFile/previewFile?fileId='+ this.knowledgeForm.attachment,
|
|
|
|
|
|
+ this.option.url = 'http://10.5.100.101/:8088/api/api-system/system/core/sysFile/previewFile?fileId='+ this.knowledgeForm.attachment,
|
|
this.option.title = this.knowledgeForm.attachmentName
|
|
this.option.title = this.knowledgeForm.attachmentName
|
|
this.option.fileType = this.knowledgeForm.attachmentName.split('.').slice(-1)[0]
|
|
this.option.fileType = this.knowledgeForm.attachmentName.split('.').slice(-1)[0]
|
|
this.option.isPrint = false
|
|
this.option.isPrint = false
|