From 9ab48d256efe6aba446579f8f09f6444abd1f6cc Mon Sep 17 00:00:00 2001 From: "cyril.tsui" Date: Fri, 10 Nov 2023 17:13:12 +0800 Subject: [PATCH] update --- src/pages/Proof/Search_Public/DataGrid.js | 36 +++++++++---------- src/pages/Proof/Search_Public/SearchForm.js | 4 +-- .../Details_Public/ApplicationDetailCard.js | 6 ++-- src/pages/User/SearchPage/UserSearchForm.js | 2 +- .../UserSearchForm_Individual.js | 2 +- 5 files changed, 26 insertions(+), 24 deletions(-) diff --git a/src/pages/Proof/Search_Public/DataGrid.js b/src/pages/Proof/Search_Public/DataGrid.js index 96c2f33..76ffefc 100644 --- a/src/pages/Proof/Search_Public/DataGrid.js +++ b/src/pages/Proof/Search_Public/DataGrid.js @@ -37,7 +37,8 @@ export default function SearchPublicNoticeTable({ recordList }) { navigate('/proof/reply/' + params.row.id); }; - const getGroupTitle = (title) => { + /*eslint no-irregular-whitespace: ["error", { "skipComments": true }]*/ + /*const getGroupTitle = (title) => { switch (title) { case 'Private Bill': return "私人帳單"; @@ -52,9 +53,8 @@ export default function SearchPublicNoticeTable({ recordList }) { default: return title; } - } - - + }*/ + const columns = [ { field: 'actions', @@ -68,17 +68,17 @@ export default function SearchPublicNoticeTable({ recordList }) { { id: 'appId', field: 'appId', - headerName: '申請編號 / 憲報編號 / 憲報期數', + headerName: '申請編號 / 憲報期數', flex: 1, renderCell: (params) => { let appNo = params.row.appNo; - let code = params.row.groupNo; + // let code = params.row.groupNo; let isssue = params.row.issueYear + " Vol. " + FormatUtils.zeroPad(params.row.issueVolume, 3) + ", No. " + FormatUtils.zeroPad(params.row.issueNo, 2) + ", " + DateUtils.dateFormat(params.row.issueDate, "D MMM YYYY (ddd)"); - return
{appNo}
{code}
{isssue}
+ return
{appNo}
{isssue}
}, }, { @@ -110,15 +110,15 @@ export default function SearchPublicNoticeTable({ recordList }) { return params?.value ? DateUtils.datetimeStr(params?.value) : ""; } }, - { - id: 'groupTitle', - field: 'groupTitle', - headerName: '憲報類型', - flex: 1, - valueGetter: (params) => { - return getGroupTitle(params?.value); - } - }, + // { + // id: 'groupTitle', + // field: 'groupTitle', + // headerName: '憲報類型', + // flex: 1, + // valueGetter: (params) => { + // return getGroupTitle(params?.value); + // } + // }, { id: 'fee', field: 'fee', @@ -147,9 +147,9 @@ export default function SearchPublicNoticeTable({ recordList }) { paginationModel: { page: 0, pageSize: 10 }, }, }} - getRowHeight={()=>"auto"} + getRowHeight={() => "auto"} onRowDoubleClick={handleRowDoubleClick} /> ); -} +} \ No newline at end of file diff --git a/src/pages/Proof/Search_Public/SearchForm.js b/src/pages/Proof/Search_Public/SearchForm.js index 422cfca..412f291 100644 --- a/src/pages/Proof/Search_Public/SearchForm.js +++ b/src/pages/Proof/Search_Public/SearchForm.js @@ -154,7 +154,7 @@ const SearchPublicNoticeForm = ({ applySearch, searchCriteria, issueComboData /> - + {/* )} /> - + */} - + - +