更新版本库

This commit is contained in:
ajaxfan
2021-01-16 11:29:42 +08:00
parent b42e0c1ddd
commit ff889c3db4
352 changed files with 39993 additions and 15507 deletions

View File

@ -0,0 +1,66 @@
import { Button, Table, Popconfirm} from 'antd';
import { getRoomId} from '@/utils/session';
import { getInfId, getInfList, upDataid } from './service';
import React, { useEffect, useState } from 'react';
const Index: React.FC<{}> = () => {
const [data, setData] = useState<any>([]);
const [data2, setData2] = useState<any>({});
// const InfId2 = getSessionUserData().userId;
const InfId = getRoomId();
function resetApi () {
getInfId( InfId ).then(res=>{
if(res.code == 200) {
if(res.data == undefined) {} else {
setData2(res.data)
}
}
})
getInfList( InfId ).then(res=>{
if(res.code == 200) {
if(res.data == undefined) {} else {
setData(res.data);
console.log(res.data)
}
}
})
}
useEffect(() => {
resetApi();
}, []);
const columns: any[] = [
{
title: '评委会成员',
dataIndex: 'name',
},
{
title: '状态',
dataIndex: 'status',
},
{
title: '身份',
dataIndex: 'duty',
}
]
return (
<div className="projectsInvolved" style={{backgroundColor: '#ffffff', padding:'20px'}}>
<h3 style={{fontSize: '16px',fontWeight: '600', color: '#980000'}}></h3>
<p>{data2.sectionName}</p>
<p>{data2.roomSort}</p>
<p>{data2.openTime}</p>
<h3 style={{fontSize: '16px', fontWeight: '600', color: '#980000'}}></h3>
<div>
<Table pagination={false} columns={columns} dataSource={data}/>
</div>
</div>
)
}
export default Index

View File

@ -0,0 +1,23 @@
import request from "@/utils/request";
export async function getInfId(data: any) {
return request(`/api/biz-service-ebtp-process/v1/bizassessroom/info/${data}`, {
method: 'GET',
params: {
}
});
}
export async function getInfList(data: any) {
return request(`/api/biz-service-ebtp-rsms/v1/jury/member/info/${data}`, {
method: 'GET',
params: {
}
});
}
export async function upDataid(data: any) {
return request(`/api/biz-service-ebtp-rsms/v1/jury/member/chooseLeader/?id=${data}`, {
method: 'PUT',
});
}