pyt
2025-02-27 ad60dd3c7778ba0ad3cd3df488782488d2f33c46
management/src/pages/setting/user/index.jsx
@@ -6,7 +6,7 @@
import { Access, useAccess } from 'umi';
import AddAndEdit from './components/addAndEdit';
import AddUnit from './components/addUnit';
import { add, addUnit, del, delUnit, edit, editUnit, getList, getUnitList } from './service';
import { add, addUnit, del, delUnit, edit, editUnit, getList, getUnitList ,editSystemUserInfo,addSystemUserInfo} from './service';
const Role = () => {
  const actionRef = useRef();
@@ -361,7 +361,7 @@
        ref={addViewRef}
        visible={modalVisible}
        onSave={async (fileds) => {
          let success = await sendRequest(add, fileds);
          let success = await sendRequest(addSystemUserInfo, fileds);
          if (success) {
            handleModalVisibles(false);
            actionRef.current.reload();
@@ -369,7 +369,7 @@
          addViewRef.current.clean();
        }}
        onUpdate={async (fileds) => {
          let success = await sendRequest(edit, fileds);
          let success = await sendRequest(editSystemUserInfo, fileds);
          if (success) {
            handleModalVisibles(false);
            actionRef.current.reload();