|
|
@ -4,8 +4,7 @@ import { useEffect, useState } from 'react';
|
|
|
|
import { Button, Divider, FormControlLabel, Grid, InputAdornment, Radio, RadioGroup, TextField } from '@mui/material';
|
|
|
|
import { Button, Divider, FormControlLabel, Grid, InputAdornment, Radio, RadioGroup, TextField } from '@mui/material';
|
|
|
|
|
|
|
|
|
|
|
|
// assets
|
|
|
|
// assets
|
|
|
|
import LinkTwoToneIcon from '@mui/icons-material/LinkTwoTone';
|
|
|
|
import { IconFile, IconFileCheck, IconFileText } from '@tabler/icons';
|
|
|
|
import LockTwoToneIcon from '@mui/icons-material/LockTwoTone';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// berry ui
|
|
|
|
// berry ui
|
|
|
|
import MainCard from 'ui-component/cards/MainCard';
|
|
|
|
import MainCard from 'ui-component/cards/MainCard';
|
|
|
@ -14,6 +13,7 @@ import MainCard from 'ui-component/cards/MainCard';
|
|
|
|
import MuiGridList from 'views/form/MuiGridList';
|
|
|
|
import MuiGridList from 'views/form/MuiGridList';
|
|
|
|
import InputLabel from 'ui-component/extended/Form/InputLabel';
|
|
|
|
import InputLabel from 'ui-component/extended/Form/InputLabel';
|
|
|
|
import opstBizService from '../../../apis/OpstBizService';
|
|
|
|
import opstBizService from '../../../apis/OpstBizService';
|
|
|
|
|
|
|
|
import * as React from 'react';
|
|
|
|
|
|
|
|
|
|
|
|
const PublicBoard = () => {
|
|
|
|
const PublicBoard = () => {
|
|
|
|
const [totalCount, setTotalCount] = useState(0);
|
|
|
|
const [totalCount, setTotalCount] = useState(0);
|
|
|
@ -25,22 +25,26 @@ const PublicBoard = () => {
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
const columns = [
|
|
|
|
const columns = [
|
|
|
|
{ headerName: '게시판코드', field: 'ciCode' },
|
|
|
|
{ headerName: 'No.', headerAlign: 'center', field: 'rowId', align: 'center', width: 70 },
|
|
|
|
{ headerName: '글번호', field: 'ciContentno' },
|
|
|
|
{
|
|
|
|
{ headerName: '제목', field: 'ciTitle', editable: true },
|
|
|
|
headerName: '업무구분',
|
|
|
|
{ headerName: '사용자ID', field: 'ciId' },
|
|
|
|
headerAlign: 'center',
|
|
|
|
{ headerName: '사용자 비번', field: 'ciPwd' },
|
|
|
|
field: 'inDept',
|
|
|
|
{ headerName: '사용자 이름', field: 'ciName' },
|
|
|
|
align: 'center'
|
|
|
|
{ headerName: '등록일', field: 'ciNalja' },
|
|
|
|
},
|
|
|
|
{ headerName: '등록시간', field: 'ciTime' },
|
|
|
|
{ headerName: '제목', headerAlign: 'center', field: 'inTitle', minWidth: 200 },
|
|
|
|
{ headerName: '조회수', field: 'ciHit' },
|
|
|
|
{
|
|
|
|
{ headerName: 'ref', field: 'ciRef' },
|
|
|
|
headerName: '첨부파일',
|
|
|
|
{ headerName: 'step', field: 'ciStep' },
|
|
|
|
headerAlign: 'center',
|
|
|
|
{ headerName: 'level', field: 'ciRevel' },
|
|
|
|
field: 'inFile',
|
|
|
|
{ headerName: '비번', field: 'ciPass' },
|
|
|
|
align: 'center',
|
|
|
|
{ headerName: 'email', field: 'ciEmail' },
|
|
|
|
renderCell: (params) => {
|
|
|
|
{ headerName: '내용', field: 'ciContents' },
|
|
|
|
console.log(params.row.inFilename);
|
|
|
|
{ headerName: 'IP', field: `ciIp` }
|
|
|
|
return <>{params.row.inFilename ? <IconFileText stroke={1.5} size="1rem" /> : ''}</>;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
{ headerName: '작성일자', headerAlign: 'center', field: 'inNalja', align: 'center' },
|
|
|
|
|
|
|
|
{ headerName: '조회수', headerAlign: 'center', field: 'inHit', align: 'right' }
|
|
|
|
];
|
|
|
|
];
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
useEffect(() => {
|
|
|
@ -49,7 +53,7 @@ const PublicBoard = () => {
|
|
|
|
size: rowsState.pageSize
|
|
|
|
size: rowsState.pageSize
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
opstBizService.getBoardList(params).then((response) => {
|
|
|
|
opstBizService.getPublicBoardList(params).then((response) => {
|
|
|
|
console.log(response);
|
|
|
|
console.log(response);
|
|
|
|
if (response && response.data) {
|
|
|
|
if (response && response.data) {
|
|
|
|
setTotalCount(response.count);
|
|
|
|
setTotalCount(response.count);
|
|
|
|