Commit 8dd1b0e7 by 陈浩建

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

parent f73659d5
...@@ -50,9 +50,9 @@ ...@@ -50,9 +50,9 @@
<!--列表--> <!--列表-->
<s-table :locale="emptyText" :columns="columns" :data="rowdata" bordered ref="table" size="small" class="flex-filling" <s-table :locale="emptyText" :columns="columns" :data="rowdata" bordered ref="table" size="small" class="flex-filling"
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"> :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }">
<template slot="imageUrl" slot-scope="text"> <!-- <template slot="imageUrl" slot-scope="text">-->
<img style="width: 20%" :src="apis + text" @click="imgClick(text)"> <!-- <img style="width: 20%" :src="apis + text" @click="imgClick(text)">-->
</template> <!-- </template>-->
<!--拦截器--> <!--拦截器-->
<template slot="createTime" slot-scope="text">{{ text | dayjs}}</template> <template slot="createTime" slot-scope="text">{{ text | dayjs}}</template>
<template slot="operation" slot-scope="text,record"> <template slot="operation" slot-scope="text,record">
...@@ -60,6 +60,8 @@ ...@@ -60,6 +60,8 @@
<a-divider type="vertical"/> <a-divider type="vertical"/>
<a @click="modifyfunction(record)">编辑</a> <a @click="modifyfunction(record)">编辑</a>
<a-divider type="vertical"/> <a-divider type="vertical"/>
<a @click="imgClick(text)">图片</a>
<a-divider type="vertical"/>
<a-popconfirm title="是否要删除此行?" @confirm="deleteActivity(record.id)"><a>删除</a></a-popconfirm> <a-popconfirm title="是否要删除此行?" @confirm="deleteActivity(record.id)"><a>删除</a></a-popconfirm>
</template> </template>
<template slot="status" slot-scope="text"> <template slot="status" slot-scope="text">
...@@ -203,7 +205,7 @@ ...@@ -203,7 +205,7 @@
{dataIndex: 'title', width: 100, title: '活动标题', align: "center"}, {dataIndex: 'title', width: 100, title: '活动标题', align: "center"},
{dataIndex: 'desc', width: 200, title: '活动详情', align: "center"}, {dataIndex: 'desc', width: 200, title: '活动详情', align: "center"},
{dataIndex: 'integral', width: 80, 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", {dataIndex: 'status', width: 80, title: '审核状态', align: "center",
scopedSlots: {customRender: 'status'}}, scopedSlots: {customRender: 'status'}},
{dataIndex: 'activityType', width: 80, title: '活动类型', align: "center"}, {dataIndex: 'activityType', width: 80, title: '活动类型', align: "center"},
......
...@@ -133,19 +133,23 @@ ...@@ -133,19 +133,23 @@
<template slot="studentCardUrl" slot-scope="text"> <template slot="studentCardUrl" slot-scope="text">
<p v-show="text=='' "></p> <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>
<template slot="otherImgUrl1" slot-scope="text"> <template slot="otherImgUrl1" slot-scope="text">
<p v-show="text=='' "></p> <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>
<template slot="otherImgUrl2" slot-scope="text"> <template slot="otherImgUrl2" slot-scope="text">
<p v-show="text=='' "></p> <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>
<template slot="otherImgUrl3" slot-scope="text"> <template slot="otherImgUrl3" slot-scope="text">
<p v-show="text=='' "></p> <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>
<!--<template slot="operation" slot-scope="text,record"> <!--<template slot="operation" slot-scope="text,record">
<span> <span>
...@@ -483,4 +487,4 @@ ...@@ -483,4 +487,4 @@
<style scoped> <style scoped>
</style> </style>
\ No newline at end of file
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