|
@@ -24,7 +24,7 @@
|
|
<div class="file-footer-inner">
|
|
<div class="file-footer-inner">
|
|
<div
|
|
<div
|
|
v-for="(item,index) in fileList"
|
|
v-for="(item,index) in fileList"
|
|
- :key="item.ID"
|
|
|
|
|
|
+ :key="item.id"
|
|
class="file-footer-item"
|
|
class="file-footer-item"
|
|
:class=" item.open ? 'file-active' : '' "
|
|
:class=" item.open ? 'file-active' : '' "
|
|
@click="handleChoose(item,index)"
|
|
@click="handleChoose(item,index)"
|
|
@@ -244,7 +244,7 @@ export default {
|
|
},
|
|
},
|
|
handleChoose(e, index) {
|
|
handleChoose(e, index) {
|
|
if (this.multiple) {
|
|
if (this.multiple) {
|
|
- const fileIndex = this.resultList.findIndex(item => item.ID === e.ID)
|
|
|
|
|
|
+ const fileIndex = this.resultList.findIndex(item => item.id === e.id)
|
|
if (e.open) {
|
|
if (e.open) {
|
|
if (fileIndex < 0) {
|
|
if (fileIndex < 0) {
|
|
return false
|
|
return false
|
|
@@ -272,7 +272,7 @@ export default {
|
|
for (let i = 0; i < this.fileList.length; i++) {
|
|
for (let i = 0; i < this.fileList.length; i++) {
|
|
this.fileList[i].open = false
|
|
this.fileList[i].open = false
|
|
for (let j = 0; j < this.resultList.length; j++) {
|
|
for (let j = 0; j < this.resultList.length; j++) {
|
|
- if (this.resultList[j].ID === this.fileList[i].ID) {
|
|
|
|
|
|
+ if (this.resultList[j].id === this.fileList[i].id) {
|
|
this.fileList[i].open = true
|
|
this.fileList[i].open = true
|
|
}
|
|
}
|
|
continue
|
|
continue
|
|
@@ -280,7 +280,7 @@ export default {
|
|
}
|
|
}
|
|
} else {
|
|
} else {
|
|
for (let i = 0; i < this.fileList.length; i++) {
|
|
for (let i = 0; i < this.fileList.length; i++) {
|
|
- if (this.resultList.every(e => e.ID === this.fileList[i].ID)) {
|
|
|
|
|
|
+ if (this.resultList.every(e => e.id === this.fileList[i].id)) {
|
|
this.fileList[i].open = true
|
|
this.fileList[i].open = true
|
|
} else {
|
|
} else {
|
|
this.fileList[i].open = false
|
|
this.fileList[i].open = false
|