更新版本库
This commit is contained in:
45
src/pages/notice/noticeList/components/NoticeList.tsx
Normal file
45
src/pages/notice/noticeList/components/NoticeList.tsx
Normal file
@ -0,0 +1,45 @@
|
||||
import React, { useState } from 'react';
|
||||
import ProTable from '@ant-design/pro-table';
|
||||
import { getPage} from '../service';
|
||||
|
||||
|
||||
const NoticeList: React.FC<{}> = () => {
|
||||
|
||||
|
||||
|
||||
const columns: any = [
|
||||
{
|
||||
title: '序号',
|
||||
valueType: 'index',
|
||||
width:80
|
||||
},
|
||||
{
|
||||
title: '标题',
|
||||
dataIndex: 'noticeTitle',
|
||||
width:220
|
||||
},
|
||||
{
|
||||
title: '发布人',
|
||||
dataIndex: 'noticeName',
|
||||
width:220
|
||||
},
|
||||
{
|
||||
title: '发布时间',
|
||||
dataIndex: 'createDate',
|
||||
width:220
|
||||
},
|
||||
]
|
||||
|
||||
return (
|
||||
<>
|
||||
<ProTable
|
||||
columns={columns}
|
||||
request={params => getPage(params)}
|
||||
rowKey="id"
|
||||
/>
|
||||
</>
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
export default NoticeList;
|
22
src/pages/notice/noticeList/data.d.ts
vendored
Normal file
22
src/pages/notice/noticeList/data.d.ts
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
//项目建档信息
|
||||
export interface TableListItem {
|
||||
|
||||
id :number,
|
||||
// 主键
|
||||
|
||||
lastUpdateTime :string,
|
||||
// 最后更新时间戳
|
||||
|
||||
updateBy :number,
|
||||
// 更新者
|
||||
|
||||
updateDate :string,
|
||||
// 更新时间
|
||||
|
||||
noticeId:String,
|
||||
noticeTitle:String,
|
||||
noticeContent:String,
|
||||
noticeRelease:String,
|
||||
noticeTop:String,
|
||||
|
||||
}
|
12
src/pages/notice/noticeList/index.tsx
Normal file
12
src/pages/notice/noticeList/index.tsx
Normal file
@ -0,0 +1,12 @@
|
||||
import React from 'react';
|
||||
import NoticeList from './components/NoticeList';
|
||||
|
||||
const Index: React.FC = () => {
|
||||
return (
|
||||
<>
|
||||
<NoticeList />
|
||||
</>
|
||||
)
|
||||
}
|
||||
|
||||
export default Index;
|
20
src/pages/notice/noticeList/service.ts
Normal file
20
src/pages/notice/noticeList/service.ts
Normal file
@ -0,0 +1,20 @@
|
||||
import request from '@/utils/request';
|
||||
/**
|
||||
* 查询数据并分页
|
||||
* @param params
|
||||
*/
|
||||
export async function getPage(params?: any) {
|
||||
return request('/api/biz-service-ebtp-extend/v1/bizbidnotice/list',{
|
||||
method: 'POST',
|
||||
data:params,
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据id查询项目信息
|
||||
* @param id
|
||||
*/
|
||||
export function getProjectById(id:any){
|
||||
return request('/api/biz-service-ebtp-project/v1/projectRecord/' + id);
|
||||
}
|
Reference in New Issue
Block a user