123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- <template>
- <!-- 图片视图 -->
- <div class="pic">
- <div class="item" style="padding:10px;display: flex;flex-wrap: wrap;">
- <el-card shadow="hover" v-for="(item, index) in tableData" style="width:200px" :key="index">
- <div slot="header"
- style="width: 100%; white-space: nowrap;overflow-x: hidden;text-overflow: ellipsis;font-size:12px;">
- <div>序号:{{ (index + 1) + ((queryParams.current - 1) * queryParams.size) }}</div>
- <el-divider></el-divider>
- <span v-if="refresh"> <el-checkbox :label="item.id" @change="changeSelect(item)">
- <el-link :disabled="!$permission('/workspace/details')"
- :class="$permission('/workspace/details') ? '' : 'jinzhi'" :type="item.read === 1 ? 'success' : 'danger'"
- @click.native.prevent="handleClick(item, index)">
- <span v-html="getView(item, 'patentNo')"></span>
- </el-link>
- </el-checkbox> </span>
- <el-tooltip effect="dark" :content="getView(item, 'title')" placement="left">
- <span style="" v-html="getView(item, 'title')"></span>
- </el-tooltip>
- </div>
- <div class="picture text-align_center" style="height: 200px;width:100%;line-height:200px;">
- <el-image :src="$commonJS.checkViewer(item.pictureGuid)"
- :preview-src-list="$commonJS.checkViewer(item.pictureGuid)" style="margin:0 auto;vertical-align:middle;"
- :style="{ width: item.imgWidth ? item.imgWidth : '100%', height: item.imgHeight ? item.imgHeight : '100%' }">
- <div slot="error" class="image-slot">
- <img src="https://www.patentstar.com.cn/img/Common/nopic.jpg" alt="" style="">
- </div>
- </el-image>
- <!-- <el-image v-if="(!projectId && item.abstractPath2) || projectId"
- :src="item.abstractPath2 ? item.abstractPath2 : getImagePath1(item)" :preview-src-list="[item.abstractPath2]"
- style="margin:0 auto;vertical-align:middle;"
- :style="{ width: item.imgWidth ? item.imgWidth : '100%', height: item.imgHeight ? item.imgHeight : '100%' }">
- <div slot="error" class="image-slot">
- <el-image :src="getErrorImage(item)" :preview-src-list="[getErrorImage(item)]">
- <div slot="error" class="image-slot">
- <img src="https://www.patentstar.com.cn/img/Common/nopic.jpg" alt="" style="">
- </div>
- </el-image>
- </div>
- </el-image> -->
- </div>
- </el-card>
- <!--
- </el-col>
- </el-row> -->
- </div>
- </div>
- </template>
- <script>
- // import { commonMixins } from "../../articles/components/mixins"
- // import { patentViewList, patentKeywordsHighlight } from '../mixins'
- import { projectData, handleData } from '../mixins/index'
- export default {
- mixins: [projectData, handleData],
- props: [],
- // mixins:[commonMixins,patentViewList, patentKeywordsHighlight ],
- data() {
- return {
- }
- },
- computed: {
- // records() {
- // return this.$store.state.patent.records
- // }
- },
- watch: {
- records(val, oldval) {
- if (val != oldval) {
- this.$nextTick(() => {
- this.addRecords()
- this.refreshCheckBox()
- })
- }
- }
- },
- mounted() {
- },
- methods: {
- },
- }
- </script>
- <style lang="scss">
- .pic {
- .el-divider {
- margin: 5px 0px;
- }
- .el-card__header {
- padding: 5px !important
- }
- .el-card__body {
- padding: 0px !important
- }
- }
- </style>
|