diff --git a/src/pages/supplier/informationRetrieval/groupQualifiedSupplierQuery/index.tsx b/src/pages/supplier/informationRetrieval/groupQualifiedSupplierQuery/index.tsx index 1337c31..48ca154 100644 --- a/src/pages/supplier/informationRetrieval/groupQualifiedSupplierQuery/index.tsx +++ b/src/pages/supplier/informationRetrieval/groupQualifiedSupplierQuery/index.tsx @@ -205,11 +205,18 @@ const groupQualifiedSupplierQuery: React.FC = ({ dispatch }) => { title: '操作', key: 'option', align: 'center', - width: 140, + width: 80, render: (record: any) => ( - { setCurrentRecord(record.id); setViewVisible(true); }}>查看 - { setCurrentRecord(record.id); setDetailVisible(true); }}>准入明细 + { + dispatch({ + type: 'globalModal/show', + payload: { + id: record.id, + }, + }); + }}>查看 + {/* { setCurrentRecord(record.id); setDetailVisible(true); }}>准入明细 */} ), }, diff --git a/src/pages/supplier/informationRetrieval/mySupplierInquiry/index.tsx b/src/pages/supplier/informationRetrieval/mySupplierInquiry/index.tsx index 1444aef..5beb376 100644 --- a/src/pages/supplier/informationRetrieval/mySupplierInquiry/index.tsx +++ b/src/pages/supplier/informationRetrieval/mySupplierInquiry/index.tsx @@ -160,11 +160,18 @@ const mySupplierInquiry: React.FC = ({ dispatch }) => { render: (record: any) => ( { setCurrentRecord(record.id); setViewVisible(true); }} + onClick={() => { + dispatch({ + type: 'globalModal/show', + payload: { + id: record.id, + }, + }); + }} >查看 - { setCurrentRecord(record.id); setDetailVisible(true); }} - >准入明细 + >准入明细 */} ), }, diff --git a/src/pages/supplier/informationRetrieval/personQualifiedSupplierQuery/index.tsx b/src/pages/supplier/informationRetrieval/personQualifiedSupplierQuery/index.tsx index 6611c27..f5fb340 100644 --- a/src/pages/supplier/informationRetrieval/personQualifiedSupplierQuery/index.tsx +++ b/src/pages/supplier/informationRetrieval/personQualifiedSupplierQuery/index.tsx @@ -183,8 +183,15 @@ const PersonQualifiedSupplierQuery: React.FC = ({ dispatch }) => { width: 140, render: (record: any) => ( - { setCurrentRecord(record.id); setViewVisible(true); }}>查看 - { setCurrentRecord(record.id); setDetailVisible(true); }}>准入明细 + { + dispatch({ + type: 'globalModal/show', + payload: { + id: record.id, + }, + }); + }}>查看 + {/* { setCurrentRecord(record.id); setDetailVisible(true); }}>准入明细 */} ), }, diff --git a/src/pages/supplier/informationRetrieval/registrationQuery/components/SupplierDetailModal.tsx b/src/pages/supplier/informationRetrieval/registrationQuery/components/SupplierDetailModal.tsx index ab2986d..d0016de 100644 --- a/src/pages/supplier/informationRetrieval/registrationQuery/components/SupplierDetailModal.tsx +++ b/src/pages/supplier/informationRetrieval/registrationQuery/components/SupplierDetailModal.tsx @@ -1,10 +1,10 @@ import React, { useState, useEffect } from "react"; //第三方UI库/组件 -import { Modal, Form, Input, Button, Table, message, Tooltip } from "antd"; +import { Modal, Form, Input, Button, Table } from "antd"; //类型定义 import type { ColumnsType, TablePaginationConfig } from 'antd/es/table'; //umi 相关 -import { useIntl } from 'umi'; +// import { useIntl } from 'umi'; //本地服务/接口 import { getCategoryPage } from '../services'; @@ -26,7 +26,7 @@ interface SupplierAccessDetailModalProps { //主体 const SupplierAccessDetailModal: React.FC = ({ visible, onCancel, record, }) => { //双语 - const intl = useIntl(); + // const intl = useIntl(); //查询表单 const [form] = Form.useForm(); //列表渲染数据 diff --git a/src/pages/supplier/informationRetrieval/registrationQuery/index.tsx b/src/pages/supplier/informationRetrieval/registrationQuery/index.tsx index 46041dc..349d813 100644 --- a/src/pages/supplier/informationRetrieval/registrationQuery/index.tsx +++ b/src/pages/supplier/informationRetrieval/registrationQuery/index.tsx @@ -156,15 +156,22 @@ const RegistrationQuery: React.FC = ({ dispatch }) => { title: '操作', key: 'option', align: 'center', - width: 160, + width: 80, render: (record) => ( { setCurrentRecord(record.id); setViewVisible(true); }} + onClick={() => { + dispatch({ + type: 'globalModal/show', + payload: { + id: record.id, + }, + }); + }} >查看 - { setCurrentRecord(record.id); setDetailVisible(true); }} - >准入明细 + >准入明细 */} ), },