Commit 7fb5d511 by 李伟康

修改众筹活动

1 parent 4c19ca24
...@@ -85,6 +85,18 @@ ...@@ -85,6 +85,18 @@
</template> </template>
</div> </div>
<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" class="table-btns"
slot="auth-button" slot="auth-button"
slot-scope="scope" slot-scope="scope"
...@@ -352,17 +364,18 @@ export default { ...@@ -352,17 +364,18 @@ export default {
} }
}, },
{ {
label: '秒杀价(元)', label: '秒杀价/元',
prop: 'activityPrice',
name: 'activityPrice', name: 'activityPrice',
width: 140, width: 140,
formatter: cellValue => { addHtml: 'joinText'
return (cellValue.activityPrice / 100).toFixed(2)
}
}, },
{ {
label: '库存', label: '库存',
prop: 'goodsStock', prop: 'goodsStock',
width: 110 width: 110,
addHtml: 'joinText'
}, },
{ {
label: '创建日期', label: '创建日期',
...@@ -601,6 +614,14 @@ export default { ...@@ -601,6 +614,14 @@ export default {
setTableFinishFun () { setTableFinishFun () {
//接收到的数据为空 //接收到的数据为空
this.$refs.activity.data.length ? (this.$refs.activity.tableHeightValues = '') : this.$refs.activity.setTableHeightFun() 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!