Commit 8dd1b0e7 by 陈浩建

页面列表图片不显示缩略图

parent f73659d5
......@@ -50,9 +50,9 @@
<!--列表-->
<s-table :locale="emptyText" :columns="columns" :data="rowdata" bordered ref="table" size="small" class="flex-filling"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }">
<template slot="imageUrl" slot-scope="text">
<img style="width: 20%" :src="apis + text" @click="imgClick(text)">
</template>
<!-- <template slot="imageUrl" slot-scope="text">-->
<!-- <img style="width: 20%" :src="apis + text" @click="imgClick(text)">-->
<!-- </template>-->
<!--拦截器-->
<template slot="createTime" slot-scope="text">{{ text | dayjs}}</template>
<template slot="operation" slot-scope="text,record">
......@@ -60,6 +60,8 @@
<a-divider type="vertical"/>
<a @click="modifyfunction(record)">编辑</a>
<a-divider type="vertical"/>
<a @click="imgClick(text)">图片</a>
<a-divider type="vertical"/>
<a-popconfirm title="是否要删除此行?" @confirm="deleteActivity(record.id)"><a>删除</a></a-popconfirm>
</template>
<template slot="status" slot-scope="text">
......@@ -203,7 +205,7 @@
{dataIndex: 'title', width: 100, title: '活动标题', align: "center"},
{dataIndex: 'desc', width: 200, title: '活动详情', align: "center"},
{dataIndex: 'integral', width: 80, title: '活动积分', align: "center"},
{dataIndex: 'imageUrl', title: '图片 ', scopedSlots: {customRender: 'imageUrl'},align: 'center'},
// {dataIndex: 'imageUrl', title: '图片', scopedSlots: {customRender: 'imageUrl'},align: 'center'},
{dataIndex: 'status', width: 80, title: '审核状态', align: "center",
scopedSlots: {customRender: 'status'}},
{dataIndex: 'activityType', width: 80, title: '活动类型', align: "center"},
......
......@@ -133,19 +133,23 @@
<template slot="studentCardUrl" slot-scope="text">
<p v-show="text=='' "></p>
<van-image v-show="text!='' " width="100" height="100" @click="imgClick(text)" :src="replaceUrl(text)" />
<!-- <van-image v-show="text!='' " width="100" height="100" @click="imgClick(text)" :src="replaceUrl(text)" />-->
<a v-show="text != '' " href="javascript:void(0);" @click="imgClick(text)">点击查看</a>
</template>
<template slot="otherImgUrl1" slot-scope="text">
<p v-show="text=='' "></p>
<van-image v-show="text!='' " width="100" height="100" @click="imgClick(text)" :src="replaceUrl(text)" />
<!-- <van-image v-show="text!='' " width="100" height="100" @click="imgClick(text)" :src="replaceUrl(text)" />-->
<a v-show="text != '' " href="javascript:void(0);" @click="imgClick(text)">点击查看</a>
</template>
<template slot="otherImgUrl2" slot-scope="text">
<p v-show="text=='' "></p>
<van-image v-show="text!='' " width="100" height="100" @click="imgClick(text)" :src="replaceUrl(text)" />
<!-- <van-image v-show="text!='' " width="100" height="100" @click="imgClick(text)" :src="replaceUrl(text)" />-->
<a v-show="text != '' " href="javascript:void(0);" @click="imgClick(text)">点击查看</a>
</template>
<template slot="otherImgUrl3" slot-scope="text">
<p v-show="text=='' "></p>
<van-image v-show="text!='' " width="100" height="100" @click="imgClick(text)" :src="replaceUrl(text)" />
<!-- <van-image v-show="text!='' " width="100" height="100" @click="imgClick(text)" :src="replaceUrl(text)" />-->
<a v-show="text != '' " href="javascript:void(0);" @click="imgClick(text)">点击查看</a>
</template>
<!--<template slot="operation" slot-scope="text,record">
<span>
......@@ -483,4 +487,4 @@
<style scoped>
</style>
\ No newline at end of file
</style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment