From acfec75a182df61d183a1c3d982b83e2c5c18dde Mon Sep 17 00:00:00 2001 From: jl-zhoujl2 Date: Fri, 30 Dec 2022 19:05:36 +0800 Subject: [PATCH] =?UTF-8?q?12.30=20=E7=AC=AC=E4=B8=83=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Monitor/Exception/index.tsx | 30 +++--- .../ElecEvaluation/Monitor/Home/index.tsx | 102 +++++++++++++++--- .../ElecEvaluation/Monitor/Supplier/index.tsx | 1 - .../Monitor/TenderAgent/index.tsx | 37 ++++--- src/pages/ElecEvaluation/Monitor/style.less | 16 +-- .../MonitorScreen/Home/style.less | 2 +- .../MonitorScreen/MonitorRoom/style.less | 4 +- 7 files changed, 139 insertions(+), 53 deletions(-) diff --git a/src/pages/ElecEvaluation/Monitor/Exception/index.tsx b/src/pages/ElecEvaluation/Monitor/Exception/index.tsx index 1422af5..aa114c4 100644 --- a/src/pages/ElecEvaluation/Monitor/Exception/index.tsx +++ b/src/pages/ElecEvaluation/Monitor/Exception/index.tsx @@ -137,16 +137,16 @@ const MonitorException: React.FC<{}> = () => { key: 'projectName', align: 'center', ellipsis: true, - width: '30%', + width: '25%', onCell, onHeaderCell, }, { - title: '预算金额', + title: '预算金额(元)', dataIndex: 'budgetAmount', key: 'budgetAmount', align: 'center', - width: '20%', + width: '25%', onCell, onHeaderCell, render: (_: any, record: any) => isNotEmpty(record.budgetAmount) ? Number(record.budgetAmount).toFixed(2) : 0, @@ -200,16 +200,16 @@ const MonitorException: React.FC<{}> = () => { key: 'projectName', align: 'center', ellipsis: true, - width: '30%', + width: '25%', onCell, onHeaderCell, }, { - title: '预算金额', + title: '预算金额(元)', dataIndex: 'budgetAmount', key: 'budgetAmount', align: 'center', - width: '20%', + width: '25%', onCell, onHeaderCell, // render: (_: any, record: any) => isNotEmpty(record.budgetAmount) ? record.budgetAmount.toFixed(2) : 0, @@ -263,16 +263,16 @@ const MonitorException: React.FC<{}> = () => { key: 'projectName', align: 'center', ellipsis: true, - width: '30%', + width: '25%', onCell, onHeaderCell, }, { - title: '预算金额', + title: '预算金额(元)', dataIndex: 'bidSectContractPrice', key: 'bidSectContractPrice', align: 'center', - width: '20%', + width: '25%', onCell, onHeaderCell, // render: (_: any, record: any) => isNotEmpty(record.bidSectContractPrice) ? record.bidSectContractPrice.toFixed(2) : 0, @@ -326,16 +326,16 @@ const MonitorException: React.FC<{}> = () => { key: 'projectName', align: 'center', ellipsis: true, - width: '30%', + width: '25%', onCell, onHeaderCell, }, { - title: '预算金额', + title: '预算金额(元)', dataIndex: 'budgetAmount', key: 'budgetAmount', align: 'center', - width: '20%', + width: '25%', onCell, onHeaderCell, render: (_: any, record: any) => isNotEmpty(record.budgetAmount) ? Number(record.budgetAmount).toFixed(2) : 0, @@ -389,16 +389,16 @@ const MonitorException: React.FC<{}> = () => { key: 'projectName', align: 'center', ellipsis: true, - width: '30%', + width: '25%', onCell, onHeaderCell, }, { - title: '预算金额', + title: '预算金额(元)', dataIndex: 'budgetAmount', key: 'budgetAmount', align: 'center', - width: '20%', + width: '25%', onCell, onHeaderCell, // render: (_: any, record: any) => isNotEmpty(record.budgetAmount) ? record.budgetAmount.toFixed(2) : 0, diff --git a/src/pages/ElecEvaluation/Monitor/Home/index.tsx b/src/pages/ElecEvaluation/Monitor/Home/index.tsx index ad8c74e..ab51564 100644 --- a/src/pages/ElecEvaluation/Monitor/Home/index.tsx +++ b/src/pages/ElecEvaluation/Monitor/Home/index.tsx @@ -228,7 +228,7 @@ const tjColumns: any[] = [ dataIndex: 'tender_agency_name', key: 'tender_agency_name', align: "center", - width: '25%', + width: '23%', ellipsis: true, onCell, onHeaderCell, @@ -245,18 +245,18 @@ const tjColumns: any[] = [ }, { dataIndex: 'progress', - width: '25%', + width: '23%', align: "center", onCell, onHeaderCell, render: (_: any, record: any, index: any) => }, { - title: '采购预算', + title: '采购预算(亿元)', dataIndex: 'ys', key: 'ys', align: "center", - width: '20%', + width: '24%', onCell, onHeaderCell, render: (_: any, record: any, index: any) => isNotEmpty(record.ys) ? record.ys.toFixed(2) : 0 @@ -309,8 +309,8 @@ export const ProgressItem = (props: { title: string, progress: number, leftTitle ) } //下拉框封装 -export const SelectItem = (props: { onSelectChange: (value: string | number) => void, options: ({ label: string, value: string | number })[], defaultText?: string }) => { - const { onSelectChange, options, defaultText = "全部" } = props; +export const SelectItem = (props: { onSelectChange: (value: string) => void, options: ({ label: string, value: string })[], defaultText?: string, hidden?: boolean }) => { + const { onSelectChange, options, defaultText = "全部", hidden = false } = props; const [selectedItem, setSelectItem] = useState(defaultText); const menu = ( @@ -321,7 +321,7 @@ export const SelectItem = (props: { onSelectChange: (value: string | number) => ); return ( -
+
- {mapChart} + {btnSelect == "0" ? agencyMapChart : mapChart}
diff --git a/src/pages/ElecEvaluation/Monitor/style.less b/src/pages/ElecEvaluation/Monitor/style.less index a6288dc..678f877 100644 --- a/src/pages/ElecEvaluation/Monitor/style.less +++ b/src/pages/ElecEvaluation/Monitor/style.less @@ -9,7 +9,7 @@ .screen-global { width: 100%; height: 100%; - background: url("~@/assets/monitor/background-3.gif") left top no-repeat; + background: url("~@/assets/monitor/background-3.jpg") left top no-repeat; background-size: cover; // background-color: #0a0c11; @@ -50,7 +50,7 @@ .monitor-main { height: 100%; // background-color: #0a0c11; - background: url("~@/assets/monitor/background-3.gif") left top no-repeat; + background: url("~@/assets/monitor/background-3.jpg") left top no-repeat; background-size: cover; .monitor-title { @@ -1058,7 +1058,7 @@ .monitor-modal-list { .ant-modal-body { - background: #12304ecc; + background: #0A1A34cc; &::-webkit-scrollbar { display: none; @@ -1066,7 +1066,7 @@ } .ant-modal-content { - background: #12304ecc; + background: #0A1A34cc; } .ant-modal-close-x { @@ -1081,14 +1081,18 @@ .modal-list-btn { padding: 4px 15px; - background-color: #12304e; + background-color: #0A1A34; border-radius: 20px; cursor: pointer; border: 1px solid #1b7ef2; width: 64px; &:hover { - background-color: #ffffffcc; + background-color: #1b7ef2; + + &>span { + color: #fff; + } } &>span { diff --git a/src/pages/ElecEvaluation/MonitorScreen/Home/style.less b/src/pages/ElecEvaluation/MonitorScreen/Home/style.less index 01e6f69..f9ddcef 100644 --- a/src/pages/ElecEvaluation/MonitorScreen/Home/style.less +++ b/src/pages/ElecEvaluation/MonitorScreen/Home/style.less @@ -5,7 +5,7 @@ .screen-bg { // background: @screen-color; - background: url("~@/assets/monitor/background-2.jpg") left top no-repeat; + background: url("~@/assets/monitor/background-3.jpg") left top no-repeat; background-size: cover; width: 100%; height: 100%; diff --git a/src/pages/ElecEvaluation/MonitorScreen/MonitorRoom/style.less b/src/pages/ElecEvaluation/MonitorScreen/MonitorRoom/style.less index 30961fc..f2474dc 100644 --- a/src/pages/ElecEvaluation/MonitorScreen/MonitorRoom/style.less +++ b/src/pages/ElecEvaluation/MonitorScreen/MonitorRoom/style.less @@ -189,14 +189,14 @@ } .list-card { - background: #041766; + background: #1b7ef224; border-radius: 4px; border: 1px solid #5c69a1; cursor: pointer; padding: 0 0.5rem; &:hover { - border-color: #fff; + border-color: #1b7ef2; } .list-card-title {