From 91049bfd147ab0af4a81da8ba6cc90dbfc04fc52 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Thu, 31 Oct 2024 15:48:28 +0800
Subject: [PATCH] 首页优化
---
src/views/survey/components/box/dataContent.vue | 10 ++++++----
1 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/src/views/survey/components/box/dataContent.vue b/src/views/survey/components/box/dataContent.vue
index 7e5cfcc..bed1169 100644
--- a/src/views/survey/components/box/dataContent.vue
+++ b/src/views/survey/components/box/dataContent.vue
@@ -11,7 +11,7 @@
<script setup>
import publicContent from './publicContent.vue'
-// import { ref, reactive } from 'vue'
+import { ref, reactive } from 'vue'
import { getPage } from '../../../../api/indParkInfo'
@@ -26,8 +26,8 @@
function getPages() {
getPage().then(res => {
- parkQy = res.data.data.records
- console.log(res)
+ parkQy.value = res.data.data.records
+ // console.log(res)
}).catch(err => {
console.log(err)
})
@@ -58,11 +58,13 @@
.data-content-item {
display: flex;
- margin: 2px 2px;
+ margin: 2px 10px;
padding: 5px 0;
+ text-indent: 1em;
background-color: #747bff;
justify-content: space-between;
// 超过高度自动显示滚动条
overflow-y: auto;
+ border-radius: 5px;
}
</style>
\ No newline at end of file
--
Gitblit v1.9.3