From 4e82b0a5667f119fdfb813d166e2a8f78177f4f2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E8=B0=A2=E6=80=9D?= <2897217417@qq.com>
Date: Wed, 6 Sep 2023 14:38:33 +0800
Subject: [PATCH] =?UTF-8?q?=E9=9B=86=E7=BE=A4=E7=AA=81=E5=87=BB=E7=AB=9E?=
=?UTF-8?q?=E8=B5=9B=E6=B7=BB=E5=8A=A0=E4=BD=9C=E5=93=81=E6=8F=90=E4=BA=A4?=
=?UTF-8?q?=E5=88=97=E8=A1=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/military/competition/api.js | 9 ++
.../competition/management/index.scss | 2 +-
src/military/competition/management/jqtj.jsx | 122 +++++++++++-------
3 files changed, 86 insertions(+), 47 deletions(-)
diff --git a/src/military/competition/api.js b/src/military/competition/api.js
index 370add8c0..aba1b2d57 100644
--- a/src/military/competition/api.js
+++ b/src/military/competition/api.js
@@ -170,3 +170,12 @@ export function matchReplay(data) {
data: data
});
}
+
+// 报名列表-获取用户模拟成绩
+export function getScoreList(data) {
+ return fetch({
+ url: '/api/match/simulated_match_team_list',
+ method: 'post',
+ data: data
+ });
+}
\ No newline at end of file
diff --git a/src/military/competition/management/index.scss b/src/military/competition/management/index.scss
index 7d27ed926..81e203a35 100644
--- a/src/military/competition/management/index.scss
+++ b/src/military/competition/management/index.scss
@@ -2,7 +2,7 @@
width: 1200px;
margin: 35px auto 0;
background: #fff;
- padding-bottom: 20px;
+ padding-bottom: 100px;
.qz_manage_head{
color: #181818;
padding: 12px 0 13px 30px;
diff --git a/src/military/competition/management/jqtj.jsx b/src/military/competition/management/jqtj.jsx
index b83452951..5a650a355 100644
--- a/src/military/competition/management/jqtj.jsx
+++ b/src/military/competition/management/jqtj.jsx
@@ -4,7 +4,9 @@ import { Select, Button, Tooltip, Input, Popconfirm, message } from 'antd';
import { current_main_site_url } from '../fetch';
import PaginationTable from "../../components/paginationTable";
-import { getEnrollList, getProList, updateEnroll, createUser, encryptionuserId } from "../api.js";
+import { getEnrollList, updateEnroll, createUser, encryptionuserId, getScoreList } from "../api.js";
+import moment from "moment";
+import Nodata from "src/forge/Nodata";
const Option = Select.Option;
const { Search } = Input;
@@ -20,6 +22,8 @@ function Introduce({ history: { location: { pathname } }, qzDetail, match }) {
const [keyword, setKeyword] = useState(undefined);
const [reload, setReload] = useState(undefined);
const [searchValue, setSearchValue] = useState(undefined);
+ const [scoreList, setScoreList] = useState({});
+ const [loadingBut, setLoadingBut] = useState(false);
useEffect(() => {
setKeyword(undefined);
@@ -34,30 +38,17 @@ function Introduce({ history: { location: { pathname } }, qzDetail, match }) {
page: curPage,
limit: 10,
keyword,
- status
- }
- if (type === "applys") {
- // 报名列表
- getEnrollList(params, competitionId).then(response => {
- if (response && response.status === 200) {
- setTotal(response.data.count);
- setDataList(response.data.data);
- }
- }).finally(() => {
- setLoading(false);
- })
- } else {
- // 提交作品列表
- delete params.status;
- getProList(params, competitionId).then(response => {
- if (response && response.status === 200) {
- setTotal(response.data.count);
- setDataList(response.data.data);
- }
- }).finally(() => {
- setLoading(false);
- })
+ status: type === "applys" ? status : '2'
}
+ // 获取报名信息
+ getEnrollList(params, competitionId).then(response => {
+ if (response && response.status === 200) {
+ setTotal(response.data.count);
+ setDataList(response.data.data);
+ }
+ }).finally(() => {
+ setLoading(false);
+ })
}, [type, curPage, keyword, status, reload])
// 改变用户的报名信息
@@ -169,24 +160,9 @@ function Introduce({ history: { location: { pathname } }, qzDetail, match }) {
return