更新版本库

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,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
View 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,
}

View File

@ -0,0 +1,12 @@
import React from 'react';
import NoticeList from './components/NoticeList';
const Index: React.FC = () => {
return (
<>
<NoticeList />
</>
)
}
export default Index;

View 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);
}