From 248d4e6f000e19efe3b5e6f1fd838a2853deae5c Mon Sep 17 00:00:00 2001 From: yunkexin <760754045@qq.com> Date: Mon, 11 May 2026 09:27:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=94=B9=E9=99=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/FullOther/HomeContent.js | 52 ++++++----------------------- src/layout/FullScreenInter.js | 2 +- 2 files changed, 12 insertions(+), 42 deletions(-) diff --git a/src/layout/FullOther/HomeContent.js b/src/layout/FullOther/HomeContent.js index 0441520..b7f055a 100644 --- a/src/layout/FullOther/HomeContent.js +++ b/src/layout/FullOther/HomeContent.js @@ -7,7 +7,8 @@ import echarts from 'echarts'; import configc from '../../config'; import 'slick-carousel/slick/slick.css'; import 'slick-carousel/slick/slick-theme.css'; -import { extendRule } from '../../utils/common'; +import { extendRule, showFileModal, showFiles, GetFileModel } from '../../utils/common'; +import FormPage from '../../components/FormPage'; class HomeContent extends React.Component { constructor(props) { @@ -22,6 +23,12 @@ class HomeContent extends React.Component { this.chartResizeHandlers = {}; this.isUnmounted = false; this.autoplayTimer = null; + this.state = { + fileForm: { + title: '', + visible: false, + }, + }; } waitForElement = (elementId, maxRetries = 10) => { @@ -753,46 +760,9 @@ class HomeContent extends React.Component {
附件 ({Nav_Files.length}个)
-
- {Nav_Files.map((file, index) => ( -
- - - {file.Nav_ImgFile?.FILE_NAME || '未知文件'} - -
- - -
-
- ))} -
+ {showFiles(Nav_Files, configc.picServerHost, this)} + {GetFileModel(Modal, FormPage, this, this.state.fileForm.visible)} + )} diff --git a/src/layout/FullScreenInter.js b/src/layout/FullScreenInter.js index 67c9945..3a184d9 100644 --- a/src/layout/FullScreenInter.js +++ b/src/layout/FullScreenInter.js @@ -170,7 +170,7 @@ class FullScreen extends React.Component { this.props.dispatch({ type: 'app/getDataByPost', payload: json, - url: 'PF/Annourcement/Get', + url: 'PF/PFAnnourcement/Get', onComplete: (ret) => { if (ret && !this.isUnmounted) { this.setState({