|
@@ -176,13 +176,15 @@ export default {
|
|
|
const _this = this
|
|
|
const tableTitle = await promoProvinceTableTitle().then(res => res.data)
|
|
|
this.columns = tableTitle.list
|
|
|
- this.columns.unshift({ title: '序号', dataIndex: 'no', fixed: 'left', align: 'center' })
|
|
|
+ this.columns.unshift({ title: '序号', customRender: 'no', dataIndex: 'no', fixed: 'left', align: 'center' })
|
|
|
this.countLabel = tableTitle.count
|
|
|
this.columns.map(item => {
|
|
|
let mw = 20
|
|
|
if (item.customRender == 'amount') {
|
|
|
mw = 15
|
|
|
item.customRender = function (text) { return (text || text == 0) ? _this.toThousands(text) : '--' }
|
|
|
+ } else if (item.customRender == 'no') {
|
|
|
+ mw = 10
|
|
|
} else {
|
|
|
item.customRender = function (text) { return text || '--' }
|
|
|
}
|