2021-12-18 16:05:52 +09:00
|
|
|
import React, { useRef, useEffect, useState } from 'react';
|
2021-10-05 00:35:47 +09:00
|
|
|
import moment from 'moment';
|
2022-01-13 20:11:18 +09:00
|
|
|
import { useNavigate, Link, useParams } from 'react-router-dom';
|
2022-01-15 16:22:33 +09:00
|
|
|
import copy from 'copy-to-clipboard';
|
2021-11-16 02:31:44 +09:00
|
|
|
|
2021-12-15 17:59:00 +09:00
|
|
|
import ModalEditMemo from '../../component/modal_edit_memo';
|
2021-10-05 00:35:47 +09:00
|
|
|
import ModalConfirm from '../../component/modal_confirm';
|
2021-11-15 15:35:26 +09:00
|
|
|
import ModalPdf from '../../component/pdf/modal_pdf';
|
2021-12-31 12:33:35 +09:00
|
|
|
import Notification from '../../component/notification';
|
2021-11-16 02:31:44 +09:00
|
|
|
import ModalSettingNotify from '../../component/modal_setting_notify';
|
|
|
|
import Alert from '../../component/alert';
|
2021-12-19 08:26:49 +09:00
|
|
|
import Thumbnail from '../../component/thumbnail';
|
2021-12-22 05:32:06 +09:00
|
|
|
import PageLoader from '../../component/page_loader';
|
2021-10-05 00:35:47 +09:00
|
|
|
|
2022-01-05 02:47:36 +09:00
|
|
|
const ParentMeetingDetail = () => {
|
2021-11-13 20:17:15 +09:00
|
|
|
|
2022-01-04 17:44:38 +09:00
|
|
|
const navigator = useNavigate();
|
2022-01-05 02:47:36 +09:00
|
|
|
const params = useParams();
|
2022-01-04 17:44:38 +09:00
|
|
|
|
2022-01-28 20:41:31 +09:00
|
|
|
const [notice, setNotice] = useState(-1);
|
2021-12-31 12:54:47 +09:00
|
|
|
const father_id = localStorage.getItem('kiki_acc_id');
|
2022-01-08 12:26:11 +09:00
|
|
|
|
2021-11-13 20:17:15 +09:00
|
|
|
const [loaded, setLoaded] = useState(false);
|
2022-01-05 19:38:20 +09:00
|
|
|
const [loaded_children, setLoadedChildren] = useState(false);
|
2021-11-16 14:36:47 +09:00
|
|
|
const [submit_delete, setSubmitDelete] = useState(false);
|
|
|
|
const [submit_notify, setSubmitNotify] = useState(false);
|
2022-01-13 20:11:18 +09:00
|
|
|
const [_success, setSuccess] = useState('');
|
2021-11-16 02:31:44 +09:00
|
|
|
const [_400error, set400Error] = useState('');
|
2021-11-30 18:08:59 +09:00
|
|
|
const [_404error, set404Error] = useState('');
|
2022-01-08 12:26:11 +09:00
|
|
|
|
2021-11-30 11:59:49 +09:00
|
|
|
const [show_delete_modal, setShowDeleteModal] = useState(false);
|
|
|
|
const [show_notify_all_modal, setShowNotifyAllModal] = useState(false);
|
|
|
|
const [show_memo_modal, setShowMemoModal] = useState(false);
|
|
|
|
const [show_notify_pickup_modal, setShowNotifySelectModal] = useState(false);
|
|
|
|
const [show_pdf_modal, setShowPDFModal] = useState(false);
|
2021-11-16 02:31:44 +09:00
|
|
|
|
2021-10-05 00:35:47 +09:00
|
|
|
const [meeting, setMeeting] = useState(null);
|
2021-11-13 20:17:15 +09:00
|
|
|
const [thumbnail, setThumbnail] = useState(null);
|
2021-10-10 23:08:06 +09:00
|
|
|
|
2022-01-14 16:33:26 +09:00
|
|
|
const isMountedRef = useRef(true);
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
isMountedRef.current = false;
|
2021-11-13 20:17:15 +09:00
|
|
|
setLoaded(false);
|
2021-12-31 12:54:47 +09:00
|
|
|
|
2022-01-14 16:54:51 +09:00
|
|
|
axios.get(`/api/fathers/meetings/detail/${params?.meeting_id}`, {params: { father_id: father_id}})
|
2021-12-30 13:57:05 +09:00
|
|
|
.then((response) => {
|
2022-01-14 16:33:26 +09:00
|
|
|
if(isMountedRef.current) return;
|
|
|
|
|
|
|
|
setLoaded(true);
|
|
|
|
setNotice(response.data.notice);
|
|
|
|
if(response.data.status_code==200){
|
|
|
|
var list = response.data.params;
|
|
|
|
var total=0, num=0;
|
|
|
|
for(var i in list.approval)
|
|
|
|
{
|
|
|
|
if(list.approval[i].approval_at) num ++;
|
|
|
|
total ++;
|
2022-01-08 12:26:11 +09:00
|
|
|
}
|
2022-01-14 16:33:26 +09:00
|
|
|
setMeeting({...list, denominator:total, numerator:num});
|
|
|
|
setThumbnail(response.data.params.meeting_image[0]?.image);
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
set400Error("失敗しました。");
|
2021-11-15 15:35:26 +09:00
|
|
|
}
|
2021-12-30 13:57:05 +09:00
|
|
|
})
|
|
|
|
.catch(err=>{
|
2022-01-14 16:33:26 +09:00
|
|
|
if(isMountedRef.current) return;
|
|
|
|
|
|
|
|
setLoaded(true);
|
|
|
|
setNotice(err.response.data.notice);
|
|
|
|
if(err.response.status==404){
|
|
|
|
set404Error(err.response.data.message);
|
2021-12-30 13:57:05 +09:00
|
|
|
}
|
|
|
|
})
|
2022-01-14 16:33:26 +09:00
|
|
|
return () => {
|
|
|
|
isMountedRef.current = true;
|
|
|
|
}
|
2021-10-05 00:35:47 +09:00
|
|
|
}, []);
|
|
|
|
|
2021-11-17 14:47:53 +09:00
|
|
|
//-------------------------------------------------------------
|
|
|
|
useEffect(()=>{
|
|
|
|
var navbar_list = document.getElementsByClassName("mypage-nav-list__item");
|
|
|
|
for(let i=0; i<navbar_list.length; i++)
|
|
|
|
navbar_list[i].classList.remove('nav-active');
|
|
|
|
document.getElementsByClassName("-meeting")[0].classList.add('nav-active');
|
|
|
|
},[]);
|
|
|
|
|
2021-10-05 00:35:47 +09:00
|
|
|
|
2022-01-14 16:33:26 +09:00
|
|
|
const handleAcceptDelete = () => {
|
2021-11-16 14:36:47 +09:00
|
|
|
setSubmitDelete(true);
|
2022-01-14 16:33:26 +09:00
|
|
|
axios.delete(`/api/fathers/meetings/delete/${params?.meeting_id}`)
|
|
|
|
.then(response => {
|
|
|
|
if(isMountedRef.current) return;
|
|
|
|
|
|
|
|
setNotice(response.data.notice);
|
|
|
|
setSubmitDelete(false);
|
|
|
|
setShowDeleteModal(false);
|
|
|
|
switch(response.data.status_code){
|
|
|
|
case 200: {
|
|
|
|
navigator('/p-account/meeting', {state: "ミーティングの削除に成功しました!" });
|
|
|
|
break;
|
2021-11-16 22:19:56 +09:00
|
|
|
}
|
2022-01-14 16:33:26 +09:00
|
|
|
case 400: set400Error('ミーティングの削除に失敗しました。'); break;
|
|
|
|
}
|
|
|
|
});
|
2021-10-05 00:35:47 +09:00
|
|
|
};
|
2022-01-08 12:26:11 +09:00
|
|
|
|
2021-10-10 23:08:06 +09:00
|
|
|
|
2022-01-14 16:33:26 +09:00
|
|
|
function handleFavorite(meetingId, currentFavorite) {
|
2021-10-10 23:08:06 +09:00
|
|
|
const formdata = new FormData();
|
|
|
|
formdata.append('meeting_id', meetingId);
|
|
|
|
formdata.append('is_favorite', currentFavorite == 1 ? 0 : 1);
|
2022-01-07 10:25:18 +09:00
|
|
|
axios.post('/api/fathers/meetings/registerFavorite', formdata)
|
|
|
|
|
2021-11-18 20:09:44 +09:00
|
|
|
const updatedItem = {
|
|
|
|
...meeting,
|
|
|
|
is_favorite: currentFavorite == 1 ? 0 : 1,
|
|
|
|
};
|
|
|
|
setMeeting(updatedItem);
|
2021-10-10 23:08:06 +09:00
|
|
|
};
|
|
|
|
|
2022-01-14 16:33:26 +09:00
|
|
|
const handleNotifyAllChild = () => {
|
2021-11-16 14:36:47 +09:00
|
|
|
setSubmitNotify(true);
|
2022-01-14 16:33:26 +09:00
|
|
|
axios.get('/api/fathers/meeting/approvals/listChildrenOfUnapprovel', {params:{meeting_id: params?.meeting_id}})
|
2021-12-30 13:57:05 +09:00
|
|
|
.then(response => {
|
2022-01-14 16:33:26 +09:00
|
|
|
if(isMountedRef.current) return;
|
|
|
|
|
2021-12-30 13:57:05 +09:00
|
|
|
setNotice(response.data.notice);
|
|
|
|
if(response.data.status_code == 200){
|
|
|
|
var list = response.data.params;
|
|
|
|
const email_list = [];
|
|
|
|
for(var i in list){
|
|
|
|
email_list.push(list[i].child.email);
|
2021-11-17 20:34:29 +09:00
|
|
|
}
|
2021-12-30 13:57:05 +09:00
|
|
|
const formdata = new FormData();
|
|
|
|
formdata.append('email', JSON.stringify(email_list));
|
2022-01-05 02:47:36 +09:00
|
|
|
formdata.append('meeting_id', params?.meeting_id);
|
2021-12-30 13:57:05 +09:00
|
|
|
axios.post('/api/fathers/meetingEditNotification', formdata)
|
|
|
|
.then(response=>{
|
2022-01-14 16:33:26 +09:00
|
|
|
if(isMountedRef.current) return;
|
|
|
|
|
2021-12-30 13:57:05 +09:00
|
|
|
setSubmitNotify(false);
|
|
|
|
setShowNotifySelectModal(false);
|
|
|
|
switch(response.data.status_code){
|
|
|
|
case 200: setSuccess('通知に成功しました!'); break;
|
|
|
|
case 400: set400Error('通知に失敗しました。'); break;
|
|
|
|
}
|
|
|
|
})
|
|
|
|
}
|
|
|
|
});
|
2021-11-16 14:36:47 +09:00
|
|
|
}
|
|
|
|
|
2022-01-08 12:26:11 +09:00
|
|
|
|
2022-01-14 16:33:26 +09:00
|
|
|
const handleUpdateMemo = (modal_memo) => {
|
2021-12-16 04:58:59 +09:00
|
|
|
let _tmp = meeting;
|
|
|
|
_tmp.memo = modal_memo;
|
|
|
|
setMeeting(_tmp);
|
|
|
|
const post = {
|
|
|
|
meeting_id: meeting.id,
|
|
|
|
memo: modal_memo
|
|
|
|
}
|
2022-01-14 16:33:26 +09:00
|
|
|
axios.put('/api/fathers/meetings/updateMemo', post)
|
2021-12-15 17:59:00 +09:00
|
|
|
}
|
|
|
|
|
2021-11-17 08:13:17 +09:00
|
|
|
|
2021-12-19 12:44:53 +09:00
|
|
|
const handlePDFOpen = (pdf) => {
|
|
|
|
var pieces = pdf.split('/');
|
|
|
|
var file_name = pieces[pieces.length-1];
|
|
|
|
window.open(`/pdf/${file_name}`, '_blank');
|
|
|
|
}
|
|
|
|
|
2022-01-05 19:38:20 +09:00
|
|
|
const handleLoadedChildren = (flag) => {
|
|
|
|
setLoadedChildren(flag);
|
|
|
|
}
|
|
|
|
|
2022-01-06 14:01:49 +09:00
|
|
|
const saveStorage = () => {
|
2022-01-14 11:22:46 +09:00
|
|
|
let txt = `${meeting.father.company}さんより\n業務連絡のお知らせ\n新規業務連絡のご確認はこちら\n\nhttps://kikikan.xyz/c-account/meeting/detail/${params?.meeting_id}`;
|
2022-01-15 16:22:33 +09:00
|
|
|
if(copy(txt)){
|
|
|
|
setSuccess('コピーしました。')
|
|
|
|
} else {
|
|
|
|
set400Error('コピー失敗しました。')
|
|
|
|
}
|
2022-01-14 08:20:10 +09:00
|
|
|
}
|
|
|
|
|
|
|
|
const cloneMeeting = (meeting) => {
|
|
|
|
localStorage.setItem('cloneMeeting', JSON.stringify(meeting));
|
|
|
|
navigator('/p-account/meeting/new');
|
|
|
|
}
|
2022-01-06 14:01:49 +09:00
|
|
|
|
2021-12-19 12:44:53 +09:00
|
|
|
|
2021-11-16 10:29:32 +09:00
|
|
|
return (
|
2021-10-01 17:45:39 +09:00
|
|
|
<div className="l-content">
|
|
|
|
<div className="l-content-w560">
|
|
|
|
<div className="l-content__ttl">
|
|
|
|
<div className="l-content__ttl__left">
|
|
|
|
<h2>ミーティング詳細</h2>
|
|
|
|
</div>
|
2021-11-15 15:35:26 +09:00
|
|
|
<Notification notice={notice}/>
|
2021-10-01 17:45:39 +09:00
|
|
|
</div>
|
2021-11-13 20:17:15 +09:00
|
|
|
{
|
2022-01-05 19:38:20 +09:00
|
|
|
!(loaded && loaded_children) && <PageLoader />
|
2021-11-13 20:17:15 +09:00
|
|
|
}
|
|
|
|
{
|
2022-01-05 19:38:20 +09:00
|
|
|
(loaded && loaded_children) && meeting &&
|
2021-11-13 20:17:15 +09:00
|
|
|
<div className="l-content-wrap">
|
|
|
|
<div className="p-article">
|
|
|
|
<div className="p-article-wrap">
|
|
|
|
<article className="p-article__body">
|
2022-01-08 12:26:11 +09:00
|
|
|
<div className="p-article__content">
|
2021-11-13 20:17:15 +09:00
|
|
|
<div className="meeting-member">
|
|
|
|
<div className="meeting-member-wrap">
|
2021-12-01 13:57:57 +09:00
|
|
|
<div className="meeting-member-link" onClick={()=>setShowNotifyAllModal(true)} >
|
2021-11-13 20:17:15 +09:00
|
|
|
<ul className="meeting-member-count">
|
2021-11-15 15:35:26 +09:00
|
|
|
<li className="numerator">{meeting?.numerator}</li>
|
|
|
|
<li className="denominator">{meeting?.denominator}</li>
|
2021-11-13 20:17:15 +09:00
|
|
|
</ul>
|
2022-01-08 12:26:11 +09:00
|
|
|
|
2021-12-01 13:57:57 +09:00
|
|
|
<ul className="meeting-member-list" role="list">
|
2022-01-08 12:26:11 +09:00
|
|
|
{
|
2021-11-16 22:35:08 +09:00
|
|
|
meeting.approval?.map((v, inx) =>
|
2021-12-01 13:57:57 +09:00
|
|
|
{
|
|
|
|
if(v.approval_at)
|
|
|
|
return(
|
2021-11-15 15:35:26 +09:00
|
|
|
<li className="meeting-member__item" role="listitem" key={inx}>
|
2021-11-13 20:17:15 +09:00
|
|
|
<div className="avatar">
|
|
|
|
<img alt="name" className="avatar-img" src={v?.child.image} />
|
|
|
|
</div>
|
2021-12-01 13:57:57 +09:00
|
|
|
</li>)
|
2022-01-08 12:26:11 +09:00
|
|
|
})
|
2021-11-15 15:35:26 +09:00
|
|
|
}
|
2021-11-13 20:17:15 +09:00
|
|
|
</ul>
|
2021-10-01 17:45:39 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-16 10:29:32 +09:00
|
|
|
<h3 className="meeting-ttl">{ meeting?.title }</h3>
|
2021-11-13 20:17:15 +09:00
|
|
|
<time dateTime="2021-07-30" className="meeting-time">
|
2021-11-16 10:29:32 +09:00
|
|
|
<span className="meeting-date">{ moment(meeting?.updated_at).format('YYYY/MM/DD') }</span>
|
2021-11-13 20:17:15 +09:00
|
|
|
</time>
|
2022-01-06 14:01:49 +09:00
|
|
|
<div className="clip-copy" onClick={saveStorage}>
|
2022-01-06 13:27:13 +09:00
|
|
|
<a>この案件のURLをコピーする</a>
|
2022-01-17 19:12:50 +09:00
|
|
|
<img src="/assets/img/icon/icon-copy.svg" alt="kiki"/>
|
2022-01-06 13:27:13 +09:00
|
|
|
</div>
|
2021-11-13 20:17:15 +09:00
|
|
|
<ul className="p-article-btn-list">
|
|
|
|
<li className="p-article-btn__item">
|
2022-01-05 02:47:36 +09:00
|
|
|
<Link to={`/p-account/meeting/edit/${params?.meeting_id}`}
|
2021-11-15 15:35:26 +09:00
|
|
|
className="btn-default btn-yellow btn-pdf btn-r8 btn-h48">編集</Link>
|
2021-11-13 20:17:15 +09:00
|
|
|
</li>
|
|
|
|
<li className="p-article-btn__item">
|
2022-01-08 12:26:11 +09:00
|
|
|
<a onClick={()=>setShowDeleteModal(true)}
|
2022-01-04 17:44:38 +09:00
|
|
|
className="btn-default btn-yellow btn-pdf btn-r8 btn-h48">削除</a>
|
2021-11-13 20:17:15 +09:00
|
|
|
</li>
|
|
|
|
<li className="p-article-btn__item">
|
2022-01-14 08:20:10 +09:00
|
|
|
<a onClick={()=>cloneMeeting(meeting)}
|
2022-01-05 04:27:02 +09:00
|
|
|
className="btn-default btn-yellow btn-pdf btn-r8 btn-h48">複製</a>
|
2021-11-13 20:17:15 +09:00
|
|
|
</li>
|
|
|
|
<li className="p-article-btn__item">
|
2022-01-08 12:26:11 +09:00
|
|
|
<a onClick={()=>setShowNotifySelectModal(true)}
|
2022-01-04 17:44:38 +09:00
|
|
|
className="btn-default btn-yellow btn-pdf btn-r8 btn-h48">再通知</a>
|
2021-11-13 20:17:15 +09:00
|
|
|
</li>
|
|
|
|
</ul>
|
2022-01-08 12:26:11 +09:00
|
|
|
|
2021-11-13 20:17:15 +09:00
|
|
|
<div className="p-article__context">
|
2022-01-08 12:26:11 +09:00
|
|
|
|
2021-11-13 20:17:15 +09:00
|
|
|
<div className="p-file-list">
|
2021-12-19 08:26:49 +09:00
|
|
|
<Thumbnail image={thumbnail}/>
|
2021-11-13 20:17:15 +09:00
|
|
|
<div className="p-file-nav">
|
2022-01-08 12:26:11 +09:00
|
|
|
{
|
|
|
|
meeting.meeting_image.map((v, inx) =>
|
2021-11-23 15:37:07 +09:00
|
|
|
<figure onClick={() => setThumbnail(v.image)} key={inx}>
|
|
|
|
<img src={v.image} alt="" />
|
2022-01-08 12:26:11 +09:00
|
|
|
</figure>
|
|
|
|
)
|
2021-11-23 15:37:07 +09:00
|
|
|
}
|
2021-11-13 20:17:15 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div className="p-article__pdf">
|
|
|
|
<div className="p-article__pdf__btn">
|
2021-11-30 11:59:49 +09:00
|
|
|
{
|
|
|
|
meeting.pdf ?
|
2022-01-08 12:26:11 +09:00
|
|
|
<a data-v-ade1d018="" className="btn-default btn-yellow btn-pdf btn-r8 btn-h52"
|
2022-01-01 06:48:33 +09:00
|
|
|
href={meeting.pdf}
|
2022-01-01 06:51:14 +09:00
|
|
|
target='_blank'
|
2022-01-01 06:48:33 +09:00
|
|
|
// onClick={()=>handlePDFOpen(meeting.pdf)}
|
|
|
|
>
|
2021-11-13 20:17:15 +09:00
|
|
|
<span>PDFを確認する</span>
|
|
|
|
</a>
|
2021-11-30 11:59:49 +09:00
|
|
|
:
|
|
|
|
<a data-v-ade1d018="" className="btn-default btn-yellow btn-pdf btn-r8 btn-h52 btn-disabled">
|
|
|
|
<span>PDFを確認する</span>
|
|
|
|
</a>
|
|
|
|
}
|
2021-11-13 20:17:15 +09:00
|
|
|
</div>
|
2022-01-08 12:26:11 +09:00
|
|
|
<button type="button"
|
|
|
|
aria-label="お気に入り" data-tooltip="お気に入り"
|
|
|
|
aria-pressed="false"
|
2021-11-30 11:59:49 +09:00
|
|
|
className="icon a-icon like-icon icon-textFill icon-textFill-wrap a-icon-size_medium"
|
|
|
|
onClick = {()=>setShowMemoModal(true)} />
|
2022-01-08 12:26:11 +09:00
|
|
|
<button type="button"
|
|
|
|
onClick={e => handleFavorite(meeting.id, meeting.is_favorite)}
|
2021-11-13 20:17:15 +09:00
|
|
|
aria-label="お気に入り" data-tooltip="お気に入り" aria-pressed="false" className={`icon a-icon like-icon ${meeting.is_favorite == 1 ? "icon-starFill icon-starFill-wrap" : "icon-star icon-star-wrap"} a-icon-size_medium`}></button>
|
2021-10-01 17:45:39 +09:00
|
|
|
</div>
|
2021-11-13 20:17:15 +09:00
|
|
|
<p className="p-article__txt">{ meeting.text }</p>
|
2021-10-01 17:45:39 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-11-13 20:17:15 +09:00
|
|
|
</article>
|
|
|
|
</div>
|
2021-10-01 17:45:39 +09:00
|
|
|
</div>
|
2022-01-08 12:26:11 +09:00
|
|
|
<ModalEditMemo
|
2021-11-30 11:59:49 +09:00
|
|
|
show={show_memo_modal}
|
2021-11-16 10:29:32 +09:00
|
|
|
title={"メモ"}
|
2021-12-15 17:59:00 +09:00
|
|
|
content={meeting.memo}
|
2022-01-08 12:26:11 +09:00
|
|
|
handleClose={()=>setShowMemoModal(false)}
|
2021-12-15 17:59:00 +09:00
|
|
|
handleUpdateMemo = {handleUpdateMemo}
|
2021-11-16 10:29:32 +09:00
|
|
|
/>
|
2022-01-08 12:26:11 +09:00
|
|
|
<ModalConfirm
|
|
|
|
show={show_delete_modal}
|
2021-11-16 10:29:32 +09:00
|
|
|
message={"本当に削除しても\nよろしいでしょうか?"}
|
2022-01-08 12:26:11 +09:00
|
|
|
handleClose={()=>setShowDeleteModal(false)}
|
|
|
|
handleAccept={handleAcceptDelete}
|
2021-11-16 14:36:47 +09:00
|
|
|
loading={submit_delete}
|
2021-11-16 10:29:32 +09:00
|
|
|
/>
|
2022-01-08 12:26:11 +09:00
|
|
|
<ModalConfirm
|
2021-11-30 11:59:49 +09:00
|
|
|
show={show_notify_pickup_modal}
|
2021-11-16 14:36:47 +09:00
|
|
|
message={"未承知の方に再通知しますが\nよろしいでしょうか?"}
|
2022-01-08 12:26:11 +09:00
|
|
|
handleClose={()=>setShowNotifySelectModal(false)}
|
|
|
|
handleAccept={handleNotifyAllChild}
|
2021-11-16 14:36:47 +09:00
|
|
|
loading = {submit_notify}
|
2021-11-16 10:29:32 +09:00
|
|
|
/>
|
2022-01-08 12:26:11 +09:00
|
|
|
<ModalPdf
|
2021-11-30 11:59:49 +09:00
|
|
|
show={show_pdf_modal}
|
2021-11-26 00:27:43 +09:00
|
|
|
pdfPath={meeting.pdf}
|
2022-01-08 12:26:11 +09:00
|
|
|
handleClose={()=>setShowPDFModal(false)}
|
2021-11-16 10:29:32 +09:00
|
|
|
/>
|
2021-10-01 17:45:39 +09:00
|
|
|
</div>
|
2021-11-13 20:17:15 +09:00
|
|
|
}
|
2022-01-05 19:38:20 +09:00
|
|
|
{
|
|
|
|
loaded && meeting &&
|
2022-01-08 12:26:11 +09:00
|
|
|
<ModalSettingNotify
|
2022-01-05 19:38:20 +09:00
|
|
|
show={show_notify_all_modal}
|
|
|
|
meetingId={meeting.id}
|
|
|
|
handleClose={()=>setShowNotifyAllModal(false)}
|
|
|
|
handleLoadedChildren = {handleLoadedChildren}
|
|
|
|
/>
|
|
|
|
}
|
2021-10-01 17:45:39 +09:00
|
|
|
</div>
|
2021-11-16 20:08:46 +09:00
|
|
|
{ _400error && <Alert type="fail" hide={()=>set400Error('')}>{_400error}</Alert> }
|
2021-11-16 22:19:56 +09:00
|
|
|
{ _success && <Alert type="success" hide={()=>setSuccess('')}>{_success}</Alert> }
|
2022-01-08 12:26:11 +09:00
|
|
|
{ _404error &&
|
2021-11-30 18:08:59 +09:00
|
|
|
<Alert type="fail" hide={()=>{
|
|
|
|
set404Error('');
|
2022-01-04 17:44:38 +09:00
|
|
|
navigator('/p-account/meeting', {state: ''});
|
2021-11-30 18:08:59 +09:00
|
|
|
}}>
|
|
|
|
{_404error}
|
|
|
|
</Alert>
|
|
|
|
}
|
2022-01-08 12:26:11 +09:00
|
|
|
</div>
|
2021-10-01 17:45:39 +09:00
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2022-01-08 12:26:11 +09:00
|
|
|
export default ParentMeetingDetail;
|