From a9a2be2c747d4521ff33997b9bbbe0b3ad0eb369 Mon Sep 17 00:00:00 2001 From: dj <1042039504@qq.com> Date: Mon, 7 Apr 2025 21:57:13 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=E9=A6=96=E9=A1=B5?= =?UTF-8?q?=E9=80=9A=E7=9F=A5=E5=85=AC=E5=91=8A=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/home/index.vue | 89 ++++++++++++++++++++++++++-------------- 1 file changed, 58 insertions(+), 31 deletions(-) diff --git a/src/views/home/index.vue b/src/views/home/index.vue index 4c23aaa..da78363 100644 --- a/src/views/home/index.vue +++ b/src/views/home/index.vue @@ -4,7 +4,8 @@
-
{{getTimePeriod()}},提醒您{{ taskTabList[0].num }}个项目待立项
+
{{ getTimePeriod() }},提醒您{{ taskTabList[0].num }}个项目待立项 +
{{ index > 8 ? '' : 0 }}{{ index + 1 }} - {{ item.articleTitle }} - + {{ item.articleTitle }} + {{ item.articleTime }}
@@ -524,7 +525,7 @@ onMounted(async () => { helpDocList.value = await getArticleList(2) problemList.value = await getArticleList(3) }) -const getTimePeriod=()=>{ +const getTimePeriod = () => { // 获取当前日期和时间 const now = new Date(); // 获取当前小时数 @@ -539,11 +540,11 @@ const getTimePeriod=()=>{ return "中午好"; } else if (hour >= 14 && hour < 18) { return "下午好"; - } else if (hour >= 18 && hour <= 22) { + } else if (hour >= 18 && hour <= 22) { return "晚上好"; } else if (hour >= 23 || hour <= 1) { return "午夜好"; - } else if (hour > 1&& hour <= 5) { + } else if (hour > 1 && hour <= 5) { return "夜深了"; } } @@ -552,7 +553,7 @@ const handleTodoList = (type) => { router.push({ path: '/todolist', }) - } else if (type == 2){ + } else if (type == 2) { router.push({ path: '/donelist', }) @@ -566,23 +567,23 @@ const handleGoToArticleDetail = (row) => { } }) } -const goToArticleList = (type,otherHelpType) => { - let queryType='' - if(type){ - queryType=type - }else{ +const goToArticleList = (type, otherHelpType) => { + let queryType = '' + if (type) { + queryType = type + } else { console.info("🚀 ~method:'otherHelpType' -----", otherHelpType) - if(otherHelpType=='first'){ - queryType= '1' - }else if(otherHelpType=='second'){ - queryType= '2' - }else if(otherHelpType=='third'){ - queryType= '3' + if (otherHelpType == 'first') { + queryType = '1' + } else if (otherHelpType == 'second') { + queryType = '2' + } else if (otherHelpType == 'third') { + queryType = '3' } } router.push({ name: 'Manage', - query:{ + query: { type: queryType } }) @@ -787,17 +788,17 @@ const handleView = (row) => { } }) } - // else if (row.targetState == '10' && row.targetId) { - // router.push({ - // name: 'Summary/detail', - // query: { - // projectId: row.targetId, - // state: row.state, - // source: 'home' - // } - // }) + // else if (row.targetState == '10' && row.targetId) { + // router.push({ + // name: 'Summary/detail', + // query: { + // projectId: row.targetId, + // state: row.state, + // source: 'home' + // } + // }) // } - else if (row.targetState == '10'||row.targetState == '20' || row.targetState == '40' || row.targetState == '50') { + else if (row.targetState == '10' || row.targetState == '20' || row.targetState == '40' || row.targetState == '50') { router.push({ name: 'Implementation/detail', query: { @@ -1459,9 +1460,35 @@ const handleView = (row) => { } } } -.notice-box{ -} + .notice-box { + + .notice { + display: flex; + justify-content: space-between; + + > span:first-child { + margin-right: 10px; + margin-left: 10px; + color: #1476E3; + font-weight: bold; + font-size: 16px; + } + + > span:nth-child(2) { + display: block; + width: 65%; + overflow: hidden; + text-overflow: ellipsis; + } + + &:hover { + color: #1476E3; + background: #F6FBFE; + } + } + } + .notice-block { height: 452px; //height: 100%;