From 331ac423ceb8df70c6f68f7a0380185cab977fee Mon Sep 17 00:00:00 2001 From: Whiskeyi <825906196@qq.com> Date: Sat, 28 Sep 2024 13:25:34 +0800 Subject: [PATCH] feat: adjust dashboard style --- src/assets/styles/index.scss | 4 + src/views/board/BoardSearchView.vue | 1095 +++++++++-------- src/views/board/BoardView.vue | 127 +- .../components/chartBoard/ChartBoard.vue | 410 +++--- .../components/chatWindow/ChatWindow.vue | 111 +- yarn.lock | 280 ++++- 6 files changed, 1179 insertions(+), 848 deletions(-) diff --git a/src/assets/styles/index.scss b/src/assets/styles/index.scss index 487d89d..27858d3 100644 --- a/src/assets/styles/index.scss +++ b/src/assets/styles/index.scss @@ -41,6 +41,10 @@ html.dark svg { box-sizing: inherit; } +* .chat-message > p { + margin: 0; +} + /* .no-padding { padding: 0px !important; } diff --git a/src/views/board/BoardSearchView.vue b/src/views/board/BoardSearchView.vue index 8c6ab1a..f32efa0 100644 --- a/src/views/board/BoardSearchView.vue +++ b/src/views/board/BoardSearchView.vue @@ -1,175 +1,178 @@ \ No newline at end of file diff --git a/src/views/board/BoardView.vue b/src/views/board/BoardView.vue index 7d650d4..acc1b94 100644 --- a/src/views/board/BoardView.vue +++ b/src/views/board/BoardView.vue @@ -60,7 +60,7 @@ const getChartsAction = () => { //console.log(chartList.value); }); chartLorading.value = false; -} +}; //获取看板列表 const getBoardListRequest = () => { boardList.value = []; @@ -141,7 +141,7 @@ const changeChartList = (index) => { }); }); console.log(chartOnBoardList.value); -} +}; // 打开历史会话窗口 const openHistoryWindow = () => { setTimeout(() => { @@ -158,7 +158,6 @@ const openHistoryWindow = () => { chartBoardRef.value.reInitCharts(); } }, 1); - }; // 打开字段数据 const changeRawDataVisible = () => { @@ -271,7 +270,7 @@ const refreshChartList = () => { if (chartListVisible.value) { chartListRef.value.refreshChartList(); } -} +}; const exportAllCharts = () => { if (chartOnBoardLorading.value) { chartBoardRef.value.exportAllCharts(); @@ -288,17 +287,16 @@ const exportAllCharts = () => {
- - - - -
- {{ name }} +
+ + + + +
+ {{ name }} +
-
- - 保存 - 导出 +
@@ -366,7 +402,6 @@ const exportAllCharts = () => { flex: 20; display: flex; height: 100%; - } .container { @@ -403,22 +438,38 @@ const exportAllCharts = () => { height: 6vh; display: flex; align-items: center; + justify-content: space-between; font-size: 20px; } +.top-left { + display: flex; + align-items: center; +} + +.top-right { + display: flex; + align-items: center; +} + +.icon-link { + display: flex; + align-items: center; +} + .icon-back { margin-left: 10px; margin-right: 10px; - font-size: 15px; + font-size: 14px; } .icon-name { margin-right: 10px; - font-size: 23px; + font-size: 20px; } -.buttom-right { - margin-right: 20px; +.button-right { + margin-right: 12px; } ::v-deep .ant-tabs-nav { @@ -426,7 +477,7 @@ const exportAllCharts = () => { } .board-tab::before { - content: ''; + content: ""; position: absolute; bottom: 0; left: 0; @@ -436,9 +487,12 @@ const exportAllCharts = () => { .board-menu { margin-left: 20px; - margin-right: 20px; + margin-right: 16px; /* 在最后 */ margin-left: auto; + font-size: 20px; + color: #3d3d3d; + opacity: 0.8; } .menu-icon { @@ -455,6 +509,7 @@ const exportAllCharts = () => { /* 文字的样式 */ display: inline-block; font-size: 12px; + color: #3d3d3d; } ::v-deep .ant-tabs .ant-tabs-content { @@ -463,11 +518,13 @@ const exportAllCharts = () => { .right-icon { width: 25px; - font-size: 20px; + margin-right: 16px; display: inline-flex; justify-content: center; align-items: center; - margin-right: 15px; + font-size: 20px; + color: #3d3d3d; + opacity: 0.8; } .raw-data { diff --git a/src/views/board/components/chartBoard/ChartBoard.vue b/src/views/board/components/chartBoard/ChartBoard.vue index 35245dd..d3f1af7 100644 --- a/src/views/board/components/chartBoard/ChartBoard.vue +++ b/src/views/board/components/chartBoard/ChartBoard.vue @@ -1,51 +1,62 @@ \ No newline at end of file diff --git a/src/views/board/components/chatWindow/ChatWindow.vue b/src/views/board/components/chatWindow/ChatWindow.vue index 4c520d7..4e463ca 100644 --- a/src/views/board/components/chatWindow/ChatWindow.vue +++ b/src/views/board/components/chatWindow/ChatWindow.vue @@ -1,7 +1,7 @@