优化刷新方法

This commit is contained in:
tao
2026-01-09 16:51:27 +08:00
parent c7f118dab1
commit 4371ced698
4 changed files with 24 additions and 4 deletions

View File

@@ -101,6 +101,11 @@ const handleRemoveMaterial = async (row: MaterialTableItem) => {
}
}
const handleRefresh = () => {
fetchPrimaryMaterialList();
renderTableHeight();
}
// 计算表格高度
const customTable = ref<HTMLElement | null>(null)
const tableHeight = ref(200)
@@ -133,7 +138,7 @@ fetchPrimaryMaterialList()
<template>
<div class="primary-material__container">
<Title name="主材料进站" showRefresh @refresh="fetchPrimaryMaterialList" />
<Title name="主材料进站" showRefresh @refresh="handleRefresh" />
<a-form layout="inline" size="large">
<a-form-item label="主材类型">
<a-input v-model:value="materialType" disabled />