table chart

This commit is contained in:
helloDy
2024-04-03 11:21:37 +08:00
parent 34aeb029b5
commit 21cef13168
46 changed files with 455 additions and 201 deletions

View File

@@ -9,7 +9,8 @@
:table-props="tableProps"
:page="listQuery.pageNo"
:limit="listQuery.pageSize"
:table-data="tableData">
:table-data="tableData"
:max-height="tableH">
<method-btn
v-if="tableBtn.length"
slot="handleBtn"
@@ -43,38 +44,51 @@ import basicPage from '../../core/mixins/basic-page';
import { parseTime } from '../../core/mixins/code-filter';
import { getHotMaterialPage, deleteHotMaterial } from '@/api/base/coreHotMaterial';
import { publicFormatter } from "@/utils/dict";
import tableHeightMixin from '@/mixins/lb/tableHeightMixin';
const tableProps = [
{
prop: 'createTime',
label: '添加时间',
filter: parseTime
filter: parseTime,
width: 180,
showOverflowtooltip: true
},
{
prop: 'name',
label: '原料名称'
label: '原料名称',
minWidth: 250,
showOverflowtooltip: true
},
{
prop: 'code',
label: '原料编码'
label: '原料编码',
width: 250,
showOverflowtooltip: true
},
{
prop: 'unit',
label: '单位',
filter: publicFormatter('unit_dict')
filter: publicFormatter('unit_dict'),
width: 90,
showOverflowtooltip: true
},
{
prop: 'dailyCost',
label: '每日消耗量'
label: '每日消耗量',
width: 120,
showOverflowtooltip: true
},
{
prop: 'remark',
label: '备注'
label: '备注',
width: 120,
showOverflowtooltip: true
},
];
export default {
mixins: [basicPage],
mixins: [basicPage, tableHeightMixin],
data() {
return {
urlOptions: {