From f532c3f25335deb1bc5ff9cd6fa712cf9b222343 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@163.com>
Date: 星期二, 24 九月 2024 15:09:01 +0800
Subject: [PATCH] #

---
 zy-acs-flow/src/page/bus/BusList.jsx |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/zy-acs-flow/src/page/bus/BusList.jsx b/zy-acs-flow/src/page/bus/BusList.jsx
index da2a17a..0cc67d2 100644
--- a/zy-acs-flow/src/page/bus/BusList.jsx
+++ b/zy-acs-flow/src/page/bus/BusList.jsx
@@ -33,6 +33,7 @@
     FunctionField,
     Pagination,
     useNotify,
+    useRefresh,
 } from 'react-admin';
 import { Box, Typography, Button, Chip } from '@mui/material';
 import { styled } from '@mui/material/styles';
@@ -99,6 +100,7 @@
 const BusList = () => {
     const translate = useTranslate();
     const notify = useNotify();
+    const refresh = useRefresh();
     const [createDialog, setCreateDialog] = useState(false);
     const [drawerVal, setDrawerVal] = useState(false);
 
@@ -107,6 +109,7 @@
             const { code, msg, data } = res.data;
             if (code === 200) {
                 notify(msg || 'common.response.success', { type: 'success', messageArgs: { _: msg } });
+                refresh();
             } else {
                 notify(msg || 'common.response.fail', { type: 'error', messageArgs: { _: msg } });
             }
@@ -179,7 +182,7 @@
                     {/* <BooleanField source="statusBool" label="common.field.status" sortable={false} /> */}
                     <TextField source="memo" label="common.field.memo" sortable={false} emptyText="-" />
                     <FunctionField label="common.field.opt" cellClassName="opt" render={record => (
-                        (record.busSts === 15 || true) && (
+                        (record.busSts === 15) && (
                             <ConfirmButton
                                 label="ra.action.cancel"
                                 size="small"

--
Gitblit v1.9.1