董国庆
2025-03-17 697d9b799f18b47142b85c5241e936f7b1d0ef99
management/src/pages/party/audit/index.jsx
@@ -4,7 +4,7 @@
import { useRef, useState, useEffect } from 'react';
import { Access, history, useAccess } from 'umi';
import AddAndEdit from './components/index';
import { getList, regionTree } from './service'
import { getList, regionTree, audit } from './service'
const Banner = () => {
  const actionRef = useRef();
@@ -22,7 +22,11 @@
    {
      title: '性别',
      hideInSearch: true,
      dataIndex: 'gender'
      dataIndex: 'gender',
      valueEnum: {
        1: { text: '男' },
        0: { text: '女' },
      }
    },
    {
      title: '联系电话',
@@ -138,20 +142,12 @@
        visible={modalVisible}
        onCancel={() => handleModalVisible(false)}
        onSave={async (fileds) => {
          // const success = await sendRequest(add, fileds);
          // if (success) {
          //   handleModalVisible(false);
          // addViewRef.current.clean()
          //   actionRef.current.reload();
          // }
        }}
        onUpdate={async (fileds) => {
          // const success = await sendRequest(Edit, fileds);
          // if (success) {
          //   handleModalVisible(false);
          // addViewRef.current.clean()
          //   actionRef.current.reload();
          // }
          const success = await sendRequest(audit, fileds);
          if (success) {
            handleModalVisible(false);
            addViewRef.current.clean()
            actionRef.current.reload();
          }
        }}
      />
    </PageContainer>