Commit 7fb5d511 by 李伟康

修改众筹活动

1 parent 4c19ca24
......@@ -85,6 +85,18 @@
</template>
</div>
<div
slot="joinText"
slot-scope="scope"
>
<el-tooltip
effect="dark"
:content="formatterNumber(scope.scope,scope.prop)"
placement="top"
>
<div class="line-ellipsis">{{formatterNumber(scope.scope,scope.prop)}}</div>
</el-tooltip>
</div>
<div
class="table-btns"
slot="auth-button"
slot-scope="scope"
......@@ -352,17 +364,18 @@ export default {
}
},
{
label: '秒杀价(元)',
label: '秒杀价/元',
prop: 'activityPrice',
name: 'activityPrice',
width: 140,
formatter: cellValue => {
return (cellValue.activityPrice / 100).toFixed(2)
}
addHtml: 'joinText'
},
{
label: '库存',
prop: 'goodsStock',
width: 110
width: 110,
addHtml: 'joinText'
},
{
label: '创建日期',
......@@ -601,6 +614,14 @@ export default {
setTableFinishFun () {
//接收到的数据为空
this.$refs.activity.data.length ? (this.$refs.activity.tableHeightValues = '') : this.$refs.activity.setTableHeightFun()
},
formatterNumber (cell, key) {
const str = []
cell?.goodsList.map(e => {
str.push(key != 'goodsStock' ? (e[key] / 100).toFixed(2) : e[key])
})
return str.length > 0 ? str.join(',') : '--'
}
}
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!