<el-table-column
align="left "
label="啟用時間和停用時間">
<template slot-scope="scope">
<div v-html="scope.row.time"></div>
</template>
</el-table-column>
handleDate(params){
;(async () => {
const data = await Http.shop['jsth/jsthList'](params)()
data.msg.list = data.msg.list.map((e)=>({
...e,
name: '金上添花 翻開有禮',
time: `
啟用時間:${e.starttime_date||'--' }<br/>停用時間:${e.endtime_date || '--'}
`,
statusv: e.status == 0 ? '未開始' :
e.status == 1 ? '啟動中' :
e.status == 2 ? '已停用' :
'未知狀態(tài)'
}))
this.tableData = data.msg.list
this.xhrOldParams = params
this.pageTotal = data.msg.total
this.isPagination = data.msg.list.length == 0 ? false : true
})()
},