From 694e39b645f4671cf6ae73508181e0211e5deb34 Mon Sep 17 00:00:00 2001 From: 董国庆 <364620639@qq.com> Date: 星期五, 28 二月 2025 16:26:20 +0800 Subject: [PATCH] 修改文案 --- management/src/pages/message-notification/index.jsx | 13 ++++++++++--- 1 files changed, 10 insertions(+), 3 deletions(-) diff --git a/management/src/pages/message-notification/index.jsx b/management/src/pages/message-notification/index.jsx index dc1a090..e4a88ac 100644 --- a/management/src/pages/message-notification/index.jsx +++ b/management/src/pages/message-notification/index.jsx @@ -3,13 +3,14 @@ import { Button, message, Space, Select, Cascader } from 'antd'; import { useRef, useState, useEffect } from 'react'; import { Access, history, useAccess } from 'umi'; -import { getList, setStatus, getUnitList } from './service' +import { getList, setStatus, getUnitList,systemPostList } from './service' import { render } from 'react-dom'; const Banner = () => { const actionRef = useRef(); const access = useAccess(); const [items, setItems] = useState([]); + const [positionList, setPositionList] = useState([]); const columns = [ { @@ -52,7 +53,8 @@ allowClear placeholder="请选择" filterOption={false} - options={[{ label: '市级', value: '1' }, { label: '区县', value: '2' }, { label: '街道', value: '3' }, { label: '社区', value: '4' }, { label: '党员', value: '5' }]} + fieldNames={{ label: 'name', value: 'id' }} + options={positionList} > </Select > ) @@ -120,6 +122,9 @@ ] useEffect(() => { fetchUnit(); + systemPostList({ pageNum: 1, pageSize: 10000 }).then(res => { + setPositionList(() => res.data.records) + }) }, []); const fetchUnit = () => { @@ -141,7 +146,9 @@ }; return <div> - <PageContainer title='消息通知'> + <PageContainer title='消息通知' header={{ + breadcrumb: {}, + }}> <ProTable rowKey='id' actionRef={actionRef} -- Gitblit v1.7.1