lichao 9 months ago
parent
commit
250ede0d9f
  1. 5
      src/views/modules/shequzhili/materialcode/event.vue
  2. 8
      src/views/modules/shequzhili/materialcode/icmaterialcode.vue

5
src/views/modules/shequzhili/materialcode/event.vue

@ -29,14 +29,15 @@
<div class="m-info-prop" style="flex: 0 0 50%;"> <div class="m-info-prop" style="flex: 0 0 50%;">
<span class="u-info-title-2">照片: </span> <span class="u-info-title-2">照片: </span>
<span style="margin-right: 10px;">&nbsp;</span> <span style="margin-right: 10px;">&nbsp;</span>
<span>{{ formData.picture || "--" }}</span> <span><img :src="formData.picture" style="width: 50px;height: 50px;"/></span>
</div> </div>
</div> </div>
<div style="display: flex;"> <div style="display: flex;">
<div class="m-info-prop" style="flex: 0 0 50%;"> <div class="m-info-prop" style="flex: 0 0 50%;">
<span class="u-info-title-2">二维码: </span> <span class="u-info-title-2">二维码: </span>
<span style="margin-right: 10px;">&nbsp;</span> <span style="margin-right: 10px;">&nbsp;</span>
<span>{{ formData.code || "--" }}</span> <!-- <span>{{ formData.code || "&#45;&#45;" }}</span>-->
<span><img :src="formData.code" style="width: 50px;height: 50px;"/></span>
</div> </div>
</div> </div>

8
src/views/modules/shequzhili/materialcode/icmaterialcode.vue

@ -46,10 +46,10 @@
<el-table-column prop="name" label="名称" header-align="center" align="center"></el-table-column> <el-table-column prop="name" label="名称" header-align="center" align="center"></el-table-column>
<el-table-column prop="introduce" label="介绍" header-align="center" align="center"></el-table-column> <el-table-column prop="introduce" label="介绍" header-align="center" align="center"></el-table-column>
<el-table-column prop="picture" label="图片" header-align="center" align="center"> <el-table-column prop="picture" label="图片" header-align="center" align="center" >
<template slot-scope="scope"> <template slot-scope="scope" >
<img :src="scope.row.picture"/> <img :src="scope.row.picture" style="width: 50px;height: 50px;"/>
</template> </template>
</el-table-column> </el-table-column>
@ -66,7 +66,7 @@
<el-button type="text" style="color:#1C6AFD;" size="small" <el-button type="text" style="color:#1C6AFD;" size="small"
@click="handleDelete(scope.row)">删除</el-button> @click="handleDelete(scope.row)">删除</el-button>
<el-button type="text" style="color:#1C6AFD;" size="small" <el-button type="text" style="color:#1C6AFD;" size="small"
@click="download(scope.row)">下载</el-button> @click="download(scope.row)">二维码</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

Loading…
Cancel
Save