优化全局提醒

This commit is contained in:
mmc
2026-05-15 16:28:42 +08:00
parent b18d293268
commit 451d90894a
4 changed files with 49 additions and 3 deletions

View File

@@ -44,6 +44,7 @@ import { orderTypeConfig, sourceTypeMap } from '../constants';
import { useSelector } from 'react-redux';
import { RootState } from '../store';
import { getUser } from '../api/user';
import utils from '../lib/utils';
const { Option } = Select;
const { Search } = Input;
@@ -92,7 +93,7 @@ const WorkOrderPage = () => {
const [completeModalVisible, setCompleteModalVisible] = useState(false);
const [completeForm] = Form.useForm(); // 完成工单表单
const [messageApi, contextHolder] = message.useMessage();
const messageApi = utils.message; // 使用全局 message
// 获取用户列表 (用于负责人选择)
const fetchUserList = async () => {
@@ -409,7 +410,6 @@ const WorkOrderPage = () => {
return (
<div style={{ padding: '0px 0px', background: '#f5f7fa', minHeight: '100vh', boxSizing: 'border-box' }}>
{contextHolder}
<style>{`
.compact-table .ant-table-thead > tr > th { background: #f8fafc; padding: 2px 4px !important; font-size: 12px; color: #4E5969; }
.compact-table .ant-table-tbody > tr > td { padding: 2px 4px !important; font-size: 12px; }