fix(ui): 统一菜单ID参数命名
- 将菜单ID参数名由 menuid 修改为 menuId - 修改多个列表页面中 useTable 调用的 params 配置 - 保证参数命名一致性,避免潜在错误 - 优化代码可读性和维护性配合重庆项目需求变更
parent
95f7d94911
commit
bc2e64cf1a
|
|
@ -25,7 +25,7 @@ function List(props) {
|
||||||
const { tableProps, getData } = useTable(props["corpInfoList"], {
|
const { tableProps, getData } = useTable(props["corpInfoList"], {
|
||||||
form,
|
form,
|
||||||
ready: menuId !== undefined,
|
ready: menuId !== undefined,
|
||||||
params: () => ({ menuid: menuId }),
|
params: () => ({ menuId }),
|
||||||
transform: (formData) => {
|
transform: (formData) => {
|
||||||
return {
|
return {
|
||||||
...formData,
|
...formData,
|
||||||
|
|
|
||||||
|
|
@ -54,7 +54,7 @@ function List(props) {
|
||||||
const { tableProps, getData } = useTable(props["corpInfoList"], {
|
const { tableProps, getData } = useTable(props["corpInfoList"], {
|
||||||
form,
|
form,
|
||||||
ready: menuId !== undefined,
|
ready: menuId !== undefined,
|
||||||
params: () => ({ menuid: menuId }),
|
params: () => ({ menuId }),
|
||||||
});
|
});
|
||||||
const [addModalOpen, setAddModalOpen] = useState(false);
|
const [addModalOpen, setAddModalOpen] = useState(false);
|
||||||
const [currentId, setCurrentId] = useState("");
|
const [currentId, setCurrentId] = useState("");
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ function List(props) {
|
||||||
const { tableProps, getData } = useTable(props["corpInfoList"], {
|
const { tableProps, getData } = useTable(props["corpInfoList"], {
|
||||||
form,
|
form,
|
||||||
ready: menuId !== undefined,
|
ready: menuId !== undefined,
|
||||||
params: () => ({ menuid: menuId }),
|
params: () => ({ menuId }),
|
||||||
transform: (formData) => {
|
transform: (formData) => {
|
||||||
return {
|
return {
|
||||||
...formData,
|
...formData,
|
||||||
|
|
|
||||||
|
|
@ -23,7 +23,7 @@ function List(props) {
|
||||||
const { tableProps, getData } = useTable(props["corpInfoList"], {
|
const { tableProps, getData } = useTable(props["corpInfoList"], {
|
||||||
form,
|
form,
|
||||||
ready: menuId !== undefined,
|
ready: menuId !== undefined,
|
||||||
params: () => ({ menuid: menuId }),
|
params: () => ({ menuId }),
|
||||||
transform: (formData) => {
|
transform: (formData) => {
|
||||||
return {
|
return {
|
||||||
...formData,
|
...formData,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue