From a2d1b9886b00b5f4d4722c3379d3bd4f2f94b421 Mon Sep 17 00:00:00 2001 From: LAPTOP-RI7D261L\Mr Ke <545800322@qq.com> Date: Mon, 09 Mar 2020 17:02:35 +0800 Subject: [PATCH] Merge branch 'master' of http://120.79.193.119:9090/r/nsjcy/frontEnd/nsjcy --- SunshineIns/src/page/ActiveManage.jsx | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/SunshineIns/src/page/ActiveManage.jsx b/SunshineIns/src/page/ActiveManage.jsx index 1eebd18..819609c 100644 --- a/SunshineIns/src/page/ActiveManage.jsx +++ b/SunshineIns/src/page/ActiveManage.jsx @@ -89,7 +89,7 @@ } componentDidMount() { - document.title = '活动管理'; + document.title = '法治活动'; this.getData(); } @@ -144,7 +144,17 @@ this.setState({ formData: data, }); - this.getData(); + this.setState({ loading: true }) + Fetch.activeManage({ ...this.state.formData }) + .then(res => { + for (var i = 0; i < res.length; i++) { + res[i]['index'] = i + 1; + } + this.setState({ + data: res, + loading: false + }); + }); } saveInputChange = ({ target: { value, name } }) => { -- Gitblit v1.8.0