|
@@ -28,6 +28,16 @@
|
|
|
<span>{{ row.name }}</span>
|
|
<span>{{ row.name }}</span>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
|
+ <el-table-column label="图片" align="center" width="180">
|
|
|
|
|
+ <template slot-scope="{row}">
|
|
|
|
|
+ <el-image
|
|
|
|
|
+ v-if="row.images && row.images.length > 0"
|
|
|
|
|
+ style="width: 150px; height: 100px"
|
|
|
|
|
+ :src="row.images[0]"
|
|
|
|
|
+ fit="contain"
|
|
|
|
|
+ />
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="转换关系" align="center">
|
|
<el-table-column label="转换关系" align="center">
|
|
|
<template slot-scope="{row}">
|
|
<template slot-scope="{row}">
|
|
|
<span v-if="row.quantity">{{ row.quantity + row.unit }}</span>
|
|
<span v-if="row.quantity">{{ row.quantity + row.unit }}</span>
|