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

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

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

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

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

Loading…
Cancel
Save