forked from Gitlink/forgeplus-react
启智2022新增功能
This commit is contained in:
parent
c97dcb1192
commit
eaf1cdfbfd
|
@ -165,7 +165,7 @@ const Qz2022 = (props) => {
|
|||
<React.Fragment>
|
||||
<Login {...props} />
|
||||
{/* banner图+选项 */}
|
||||
<img src={banner_url || (is_local?banner_local: banner)} className="qz_banner"/>
|
||||
<img src={banner_url || (is_local?banner_local: banner)} className="qz_banner" alt=""/>
|
||||
<div className="qz2022">
|
||||
<div className={`qz2022-top ${fixedTop}`}>
|
||||
{paths.indexOf(active) !== -1 && <ul className="qz2022Menu mt20 qz_main">
|
||||
|
|
|
@ -115,7 +115,7 @@
|
|||
// 按钮样式
|
||||
.but_2e5 {
|
||||
border: none;
|
||||
background-color: #2e5bfe;
|
||||
background-color: #4154f1;
|
||||
padding: 0 14px;
|
||||
height: 36px;
|
||||
border-radius: 4px;
|
||||
|
@ -124,7 +124,7 @@
|
|||
}
|
||||
&:hover,
|
||||
&:focus {
|
||||
background-color: #2e5bfe;
|
||||
background-color: #4154f1;
|
||||
opacity: 0.9;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import React, { useState, useMemo, useEffect } from "react";
|
||||
import { Base64 } from 'js-base64';
|
||||
import {Select, Button, Tooltip } from 'antd';
|
||||
import {Select, Button, Tooltip, Input, Popconfirm } from 'antd';
|
||||
import {current_main_site_url} from '../fetch';
|
||||
import PaginationTable from "../../components/paginationTable";
|
||||
|
||||
|
@ -8,6 +8,7 @@ import './index.scss';
|
|||
import '../index.scss';
|
||||
import { getQzEnrollList, getQzProList } from "../api.js";
|
||||
const Option = Select.Option;
|
||||
const {Search} = Input;
|
||||
|
||||
function Introduce({history:{location:{pathname}},qzDetail }) {
|
||||
// 报名列表和作品列表到指向此处,type做区分,0报名,1作品
|
||||
|
@ -58,7 +59,7 @@ function Introduce({history:{location:{pathname}},qzDetail }) {
|
|||
})
|
||||
}
|
||||
}, [type, zone, subCompetition, curPage])
|
||||
|
||||
|
||||
let columns_apply = useMemo(() => {
|
||||
return [
|
||||
{
|
||||
|
@ -71,7 +72,6 @@ function Introduce({history:{location:{pathname}},qzDetail }) {
|
|||
dataIndex: 'leader',
|
||||
key: 'leader',
|
||||
},
|
||||
|
||||
{
|
||||
title: '电话',
|
||||
dataIndex: 'phone',
|
||||
|
@ -91,6 +91,17 @@ function Introduce({history:{location:{pathname}},qzDetail }) {
|
|||
render:(text, record)=>{
|
||||
return '';
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
dataIndex: "action",
|
||||
align: "center",
|
||||
render:(text, record)=>{
|
||||
return <Popconfirm
|
||||
title="您确定驳回此用户的报名信息?"
|
||||
icon={<i className="iconfont icon-shanchu_tc_icon mr3 font-15" style={{float: 'left', color: "red"}}></i>}
|
||||
><Button size="small">驳回</Button></Popconfirm>
|
||||
}
|
||||
}
|
||||
];
|
||||
}, [qzDetail]);
|
||||
|
@ -120,6 +131,17 @@ function Introduce({history:{location:{pathname}},qzDetail }) {
|
|||
return <Tooltip title={text[0] && text[0].title} placement="topLeft"><a href={current_main_site_url+(text[0] && text[0].url)} className="attachments_a">{text[0] && text[0].title}</a></Tooltip>;
|
||||
}
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
dataIndex: "action",
|
||||
align: "center",
|
||||
render:(text, record)=>{
|
||||
return <Popconfirm
|
||||
title="您确定驳回此用户的作品信息?"
|
||||
icon={<i className="iconfont icon-shanchu_tc_icon mr3 font-15" style={{float: 'left', color: "red"}}></i>}
|
||||
><Button size="small">驳回</Button></Popconfirm>
|
||||
}
|
||||
}
|
||||
];
|
||||
}, [qzDetail, reload]);
|
||||
|
||||
|
@ -207,13 +229,14 @@ function Introduce({history:{location:{pathname}},qzDetail }) {
|
|||
|
||||
<div className="search">
|
||||
<div className="font-14">
|
||||
赛区:
|
||||
<Select defaultValue="-1" style={{ width: 200 }} onChange={(value)=>{setZone(value)}}>
|
||||
<Search placeholder={`输入单位/负责人${type === "applys" ? "/电话" : ""}进行搜索`} onSearch={value => console.log(value)} enterButton style={{width: 300, marginRight: "30px"}}/>
|
||||
<span>赛区: </span>
|
||||
<Select defaultValue="-1" style={{ width: 150 }} onChange={(value)=>{setZone(value)}}>
|
||||
<Option value='-1'>所有赛区</Option>
|
||||
{qzDetail && qzDetail.manager_zones.map((item,i)=> {return <Option value={item} key={i}>{item}</Option>})}
|
||||
</Select>
|
||||
<span className="ml30">赛项:</span>
|
||||
<Select defaultValue="-1" style={{ width: 200 }} onChange={(value)=>{setSubCompetition(value)}}>
|
||||
<span className="ml30">赛项: </span>
|
||||
<Select defaultValue="-1" style={{ width: 150 }} onChange={(value)=>{setSubCompetition(value)}}>
|
||||
<Option value='-1'>所有赛项</Option>
|
||||
{qzDetail && qzDetail.sub_competitions.map((item,i)=> {return <Option value={item} key={i}>{item}</Option>})}
|
||||
</Select>
|
||||
|
@ -230,7 +253,7 @@ function Introduce({history:{location:{pathname}},qzDetail }) {
|
|||
setCurPage={(page)=>setCurPage(page)}
|
||||
current={curPage}
|
||||
expandedRowRender={qzDetail && qzDetail.is_local ? expandRow : expandRowWai}
|
||||
expandIconColumnIndex={qzDetail && qzDetail.is_local ? 8 : 5}
|
||||
expandIconColumnIndex={type === "applys" ? qzDetail && qzDetail.is_local ? 8 : 5 : 20}
|
||||
expandIconAsCell={false}
|
||||
expandIcon={customExpandIcon}
|
||||
pageSize={10}/>
|
||||
|
|
|
@ -13,6 +13,9 @@
|
|||
display: flex;
|
||||
justify-content: space-between;
|
||||
padding: 20px 30px;
|
||||
.ant-input:hover{
|
||||
border-color: #4154f1;
|
||||
}
|
||||
}
|
||||
.pagination-table.qzManageTable {
|
||||
padding: 0 30px;
|
||||
|
|
Loading…
Reference in New Issue