From f61a16911b38dc08fa716ad748560ba09438afaa Mon Sep 17 00:00:00 2001 From: yunkexin <760754045@qq.com> Date: Fri, 26 Apr 2024 17:05:04 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E8=87=AA=E9=80=82=E5=BA=94?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layout/main.less | 2 + src/routes/Home.js | 120 +++++++++++++++++++++------------------ src/routes/dashboard.css | 18 ++++-- 3 files changed, 80 insertions(+), 60 deletions(-) diff --git a/src/layout/main.less b/src/layout/main.less index 131c010..0af93c5 100644 --- a/src/layout/main.less +++ b/src/layout/main.less @@ -29,6 +29,8 @@ flex-direction: column; flex: 1; width: calc(100% - 100px); + // overflow-x: hidden; + overflow: auto; } &-sider { diff --git a/src/routes/Home.js b/src/routes/Home.js index 043c39f..716bca1 100644 --- a/src/routes/Home.js +++ b/src/routes/Home.js @@ -108,22 +108,19 @@ const WorkBench = (props) => { style={{ marginLeft: "20px", marginRight: "20px", + whiteSpace: "nowrap", }} > {type} -
- {item.NOTICE_TITLE} -
+
{item.NOTICE_TITLE}
开始时间:{item.TASK_STARTDT} @@ -131,8 +128,9 @@ const WorkBench = (props) => {
结束时间:{item.TASK_ENDDT} @@ -1575,10 +1573,10 @@ class Home extends React.Component { width: "100%", height: "25%", display: "flex", - padding: "0px 20px", + // padding: "0px 20px", margin: "0px", minHeight: "242px", - minWidth: "1704px", + minWidth: "1136px", // justifyContent: "space-between", // backgroundColor: "#fff", }} @@ -1592,7 +1590,7 @@ class Home extends React.Component { flexDirection: "column", padding: "0px 20px", borderRadius: "5px 0px 0px 5px", - minWidth: "578px", + minWidth: "453px", }} >
-
工号:{this.state.userInfo.CODE} -
+
*/}
- { - this.showAll("1"); - }} - /> - { - this.showAll("4"); - }} - /> - { - this.showAll("2"); - }} - /> - { - this.showAll("3"); - }} - /> + + { + this.showAll("1"); + }} + /> + + + { + this.showAll("4"); + }} + /> + + + { + this.showAll("2"); + }} + /> + + + { + this.showAll("3"); + }} + /> +
{/*
*/} @@ -1874,7 +1880,7 @@ class Home extends React.Component { borderRadius: "5px", display: "flex", flexDirection: "column", - minWidth: "466px", + minWidth: "344px", }} >
@@ -1955,12 +1961,14 @@ class Home extends React.Component { width: "100%", height: "40%", display: "flex", - padding: "0px 20px", + // padding: "0px 20px", margin: "30px 0px", - justifyContent: "space-between", + // justifyContent: "space-between", alignItems: "center", minHeight: "388px", - minWidth: "1704px", + overflow:'hidden', + // minWidth: "1204px", + minWidth: "1136px", // backgroundColor: "#fff", }} > @@ -1973,8 +1981,9 @@ class Home extends React.Component { flexDirection: "column", padding: "0px", borderRadius: "5px", + overflow:'hidden', flex: 1, - minWidth: "1168px", + // minWidth: "768px", }} >
@@ -2125,7 +2134,7 @@ class Home extends React.Component { borderRadius: "5px", display: "flex", flexDirection: "column", - minWidth: "466px", + minWidth: "344px", }} >
@@ -2200,7 +2209,8 @@ class Home extends React.Component { style={{ margin: "0px 0px 10px 0px", minHeight: "275px", - minWidth: "1704px", + // minWidth: "1204px", + minWidth: "1136px", }} >
diff --git a/src/routes/dashboard.css b/src/routes/dashboard.css index 202f069..dff70f9 100644 --- a/src/routes/dashboard.css +++ b/src/routes/dashboard.css @@ -34,6 +34,7 @@ padding: 3px 10px; border-radius: 15px; border: 1px solid #55c596; + white-space: nowrap; } :global(.home-userInfo-card) { height: 50%; @@ -52,7 +53,8 @@ height: 100%; justify-content: space-between; border-radius: 10px; - width: calc(25% - 10px); + min-width: 100px; + /* width: calc(25% - 10px); */ } :global(.home-userInfo-pad) { display: flex; @@ -69,6 +71,7 @@ color: #303133; font-weight: bold; white-space: nowrap; + margin-right: 5px; } :global(.home-userInfo-content) { font-size: 24px; @@ -143,7 +146,7 @@ width: 100%; height: calc(35% - 70px); display: flex; - padding: 0px 20px; + /* padding: 0px 20px; */ justify-content: space-between; align-items: center; } @@ -173,8 +176,11 @@ :global(.home-rank-name) { color: #303133; font-size: 13px; - margin-right: 40px; + margin-right: 20px; + width: 90px; white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; } :global(.home-img) { object-fit: contain; @@ -328,10 +334,12 @@ font-size: 15px; color: #303133; padding: 5px 0px; - font-weight: bold; + /* font-weight: bold; */ white-space: nowrap; + /* width: 250px; */ overflow: hidden; text-overflow: ellipsis; + flex: 1; } :global(.home-work-date) { color: #909399; @@ -349,7 +357,7 @@ flex-direction: column; background-color: #fff; border-radius: 5px; - min-width: 574px; + /* min-width: 374px; */ } :global(.home-setting) { display: flex;