This commit is contained in:
zds
2022-11-12 10:39:30 +08:00
parent 26831b9970
commit 6e1686c05e
52 changed files with 283 additions and 33 deletions

View File

@@ -141,7 +141,7 @@
</div>
</el-dialog>
<!--表格渲染-->
<el-table ref="table" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table ref="table" :max-height="590" v-loading="crud.loading" :data="crud.data" size="mini" style="width: 100%;" @selection-change="crud.selectionChangeHandler">
<el-table-column prop="material_code" label="物料编码" width="160" />
<el-table-column prop="material_name" label="物料名称" width="180" show-overflow-tooltip />
<el-table-column prop="material_spec" label="物料规格" width="140" />
@@ -197,7 +197,12 @@ export default {
components: { pagination, crudOperation, rrOperation, udOperation, Treeselect },
mixins: [presenter(), header(), form(defaultForm), crud()],
cruds() {
return CRUD({ title: '物料', optShow: { add: true, reset: true }, url: 'api/Materialbase', idField: 'material_id', sort: 'material_id,desc', crudMethod: { ...crudMaterialbase }})
return CRUD({ title: '物料',
props: {
// 每页数据条数
size: 20
},
optShow: { add: true, reset: true }, url: 'api/Materialbase', idField: 'material_id', sort: 'material_id,desc', crudMethod: { ...crudMaterialbase }})
},
data() {
return {