|
@@ -8,9 +8,8 @@
|
|
|
@preview="handlePreview"
|
|
|
accept="image/*"
|
|
|
:headers="headers"
|
|
|
- :disabled="disabled"
|
|
|
>
|
|
|
- <div>
|
|
|
+ <div v-if="defaultApplicationFileList.length==0">
|
|
|
<a-icon type="plus" />
|
|
|
<div class="ant-upload-text">
|
|
|
Upload
|
|
@@ -38,22 +37,13 @@ export default {
|
|
|
modal: {},
|
|
|
headers: {
|
|
|
Authorization: 'Bearer ' + Vue.ls.get(ACCESS_TOKEN)
|
|
|
- },
|
|
|
- disabled: false
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- base (record, disabled = false) {
|
|
|
- this.disabled = disabled
|
|
|
+ base (record) {
|
|
|
this.visible = true
|
|
|
this.modal = record
|
|
|
- if (disabled) {
|
|
|
- this.defaultApplicationFileList = this.BaseTool.UPLOAD.transImg(record.usedFileList.map((item, i) => {
|
|
|
- item.id = i
|
|
|
- return item
|
|
|
- }))
|
|
|
- return
|
|
|
- }
|
|
|
if (!record.sbFileList) {
|
|
|
record.sbFileList = []
|
|
|
return
|