品规管理、库存管理 table第一列文案渲染更改为序号

merge-requests/1/head
张鑫 5 years ago
parent e6639fea14
commit bbbc322dca

@ -213,7 +213,7 @@ export default {
reset() {
this.queryParam.startTime = ""
this.queryParam.endTime = ""
this.time = ""
this.time = []
this.handleGetalarmLog()
},
showModel(data) {

@ -55,8 +55,13 @@ import Model from "./model.vue"
import {importCategoryExcelUrl} from "@/api/importExcel";
const columns = [
{
title: 'ID',
dataIndex: 'id',
title: '序号',
// dataIndex: 'id',
customRender: (text, record, index) => {
return (
(record.pageNumber - 1) * 10 + index + 1
)
}
},
{
title: '品类',

@ -36,8 +36,13 @@
import {importStockExcelUrl} from "@/api/importExcel";
const columns = [
{
title: 'ID',
dataIndex: 'id',
title: '序号',
// dataIndex: 'id',
customRender: (text, record, index) => {
return (
(record.pageNumber - 1) * 10 + index + 1
)
}
},
{
title: '品规',

Loading…
Cancel
Save