更新版本库
This commit is contained in:
66
src/pages/Evaluation/BaseInf/index.tsx
Normal file
66
src/pages/Evaluation/BaseInf/index.tsx
Normal 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
|
23
src/pages/Evaluation/BaseInf/service.ts
Normal file
23
src/pages/Evaluation/BaseInf/service.ts
Normal 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',
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user