Browse Source

图片

master
xuhuajiao 5 months ago
parent
commit
80a740bd07
  1. 6
      src/views/visualCheck/bookstore/book/index.vue
  2. 2
      src/views/visualCheck/bookstore/collection/index.vue
  3. 4
      src/views/visualCheck/checkManage/bookSearch/index.vue

6
src/views/visualCheck/bookstore/book/index.vue

@ -91,7 +91,7 @@
<template slot-scope="scope"> <template slot-scope="scope">
<!-- <svg-icon :icon-class="scope.row.icon ? scope.row.icon : ''" /> --> <!-- <svg-icon :icon-class="scope.row.icon ? scope.row.icon : ''" /> -->
<img v-if="!scope.row.bookCover" src="~@/assets/images/cover-bg.png" alt="" style="height: 60px;"> <img v-if="!scope.row.bookCover" src="~@/assets/images/cover-bg.png" alt="" style="height: 60px;">
<img v-else :src="baseApi + '/api/fileRelevant/getImg?imgType=2&imgId=' + scope.row.bookCover" alt="" style="height: 60px;">
<img v-else :src="baseApi + '/api/fileRelevant/getImg?imgType=2&imgId=' + scope.row.bookCover + '.jpg'" alt="" style="height: 60px;">
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="题名" prop="title" width="300px" :show-overflow-tooltip="true" /> <el-table-column label="题名" prop="title" width="300px" :show-overflow-tooltip="true" />
@ -196,7 +196,7 @@ export default {
// //
[CRUD.HOOK.beforeToEdit](crud, form) { [CRUD.HOOK.beforeToEdit](crud, form) {
if (this.crud.form.bookCover) { if (this.crud.form.bookCover) {
this.bookCover = this.baseApi + '/api/fileRelevant/getImg?imgType=2&imgId=' + this.crud.form.bookCover
this.bookCover = this.baseApi + '/api/fileRelevant/getImg?imgType=2&imgId=' + this.crud.form.bookCover + '.jpg'
} else { } else {
this.bookCover = require('@/assets/images/cover-bg.png') this.bookCover = require('@/assets/images/cover-bg.png')
} }
@ -226,7 +226,7 @@ export default {
console.log(value) console.log(value)
if (value) { if (value) {
this.form.bookCover = value this.form.bookCover = value
this.bookCover = this.baseApi + '/api/fileRelevant/getImg?imgType=2&imgId=' + value
this.bookCover = this.baseApi + '/api/fileRelevant/getImg?imgType=2&imgId=' + value + '.jpg'
} else { } else {
this.form.bookCover = null this.form.bookCover = null
this.bookCover = null this.bookCover = null

2
src/views/visualCheck/bookstore/collection/index.vue

@ -390,7 +390,7 @@ export default {
console.log(res) console.log(res)
if (res) { if (res) {
this.crud.form.title = res.title this.crud.form.title = res.title
this.imageUrl = this.baseApi + '/api/fileRelevant/getImg?imgType=2&imgId=' + res.bookCover
this.imageUrl = this.baseApi + '/api/fileRelevant/getImg?imgType=2&imgId=' + res.bookCover + '.jpg'
} else { } else {
this.crud.form.title = null this.crud.form.title = null
this.imageUrl = require('@/assets/images/system/default-img.jpg') this.imageUrl = require('@/assets/images/system/default-img.jpg')

4
src/views/visualCheck/checkManage/bookSearch/index.vue

@ -168,8 +168,8 @@
<li><span>ISBN</span>{{ detailContent.isbn }}</li> <li><span>ISBN</span>{{ detailContent.isbn }}</li>
<li><span>条码号</span>{{ detailContent.barcode }}</li> <li><span>条码号</span>{{ detailContent.barcode }}</li>
<!-- <li><span>馆藏地</span>机构-楼层-馆藏地名称</li> --> <!-- <li><span>馆藏地</span>机构-楼层-馆藏地名称</li> -->
<!-- :src="baseApi + '/api/fileRelevant/getImg?imgType=2&imgId=' + scope.row.bookCover" -->
<li class="book-img"><img :src="detailContent.bookCover === null ? defaultImg : baseApi + '/api/fileRelevant/getImg?imgType=2&imgId=' + detailContent.bookCover" :onerror="defaultImg" alt=""></li>
<!-- :src="baseApi + '/api/fileRelevant/getImg?imgType=2&imgId=' +scope.row.bookCover+'.jpg'" -->
<li class="book-img"><img :src="detailContent.bookCover === null ? defaultImg : baseApi + '/api/fileRelevant/getImg?imgType=2&imgId=' +detailContent.bookCover+'.jpg'" :onerror="defaultImg" alt=""></li>
<li class="book-summary"><span>简介</span><p>{{ detailContent.summary ? detailContent.summary :"暂无简介" }}</p></li> <li class="book-summary"><span>简介</span><p>{{ detailContent.summary ? detailContent.summary :"暂无简介" }}</p></li>
</ul> </ul>
<ul v-if="tabIndex===1" class="book-detail book-other"> <ul v-if="tabIndex===1" class="book-detail book-other">

Loading…
Cancel
Save