diff --git a/src/views/modules/book/book-add-or-update.vue b/src/views/modules/book/book-add-or-update.vue index ae8c10d..56b288c 100644 --- a/src/views/modules/book/book-add-or-update.vue +++ b/src/views/modules/book/book-add-or-update.vue @@ -75,10 +75,18 @@ 普通 中医经典 国学经典 - + + + + + + + + - + @@ -220,7 +220,7 @@ if (val == 1) { return '吴门之歌' } else if (val == 2) { - return '巴山夜雨' + return '巴山夜语' } else { return '吴门之徽' } @@ -242,6 +242,7 @@ }, // 新增 / 修改 editOrUpdateHandle(row) { + console.log(row) this.titlesub = '修改' // this.getbookname() this.editId = row.id @@ -256,7 +257,10 @@ } var attr = [] attr.push(img) - this.fileList = attr + if (attr[0].url != '') { + this.fileList = attr + } + console.log('this.fileList', this.fileList); this.addOrUpdateVisible = true