董国庆
2025-02-27 cc6a5dcac86b83b8b665770039d30e2c466b9925
management/src/pages/setting/user/index.jsx
@@ -5,7 +5,7 @@
import { useEffect, useRef, useState } from 'react';
import { Access, useAccess } from 'umi';
import AddAndEdit from './components/addAndEdit';
import { add, del, edit, getUnitList } from './service';
import { add, del, edit, getUnitList ,editSystemUserInfo,addSystemUserInfo} from './service';
const Role = () => {
  const actionRef = useRef();
@@ -191,7 +191,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();
@@ -199,7 +199,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();