From 55dee1e07a1569f57b38655e175dbda49a0699a8 Mon Sep 17 00:00:00 2001
From: xiangpei <xiangpei@timesnew.cn>
Date: 星期一, 12 八月 2024 11:42:12 +0800
Subject: [PATCH] 样式调整
---
src/views/system/data-manage/data-detail/index.vue | 20 ++++++++++++--------
1 files changed, 12 insertions(+), 8 deletions(-)
diff --git a/src/views/system/data-manage/data-detail/index.vue b/src/views/system/data-manage/data-detail/index.vue
index b2d4cc6..a4783ca 100644
--- a/src/views/system/data-manage/data-detail/index.vue
+++ b/src/views/system/data-manage/data-detail/index.vue
@@ -2,14 +2,14 @@
<div class="app-container">
<el-card class="box-card">
<el-row style="display: flex; flex-direction: row; align-items: center" justify="space-between">
- <div v-for="card in cardList" style="display: flex;flex-direction: row; ">
+ <div v-for="card in cardList" style="display: flex;flex-direction: row; margin-right: 50px">
<div>
<div class="icon-container">
<i :class="card.icon"></i>
</div>
</div>
<div v-for="data in card.dataList" class="dashboard-item">
- <div style="color: #5C9BF8">{{ data.value }}</div>
+ <div style="color: #5C9BF8;margin-bottom: 20px;font-size: 20px">{{ data.value }}</div>
<div>{{data.label}}</div>
</div>
</div>
@@ -103,7 +103,7 @@
</template>
<script>
-import { listPlatform, getPlatform, delPlatform, addPlatform, updatePlatform } from "@/api/platform/vehicle-data-monitor";
+import { dataCenter } from "@/api/platform/data-center";
import { videoData, carData, faceData, equipment } from "./list";
import store from '@/store';
@@ -178,14 +178,18 @@
this.tableHead = data.columns;
this.cardList = data.card;
}
- if (this.$route.query.type === '4') this.tableHead = equipment[this.$route.query.index].columns;
- this.getList();
+ if (this.$route.query.type === '4') {
+ let data = equipment.table.filter(item => item.index === this.$route.query.index)[0]
+ this.tableHead = data.columns;
+ this.cardList = data.card;
+ }
+ this.getList(this.$route.query.url);
},
methods: {
/** 鏌ヨ鍗″彛杩囪溅鏁版嵁涓�鑷存�у垪琛� */
- getList() {
+ getList(url) {
this.loading = true;
- listPlatform(this.queryParams).then(response => {
+ dataCenter(url, this.queryParams).then(response => {
this.platformList = response.rows;
this.total = response.total;
this.loading = false;
@@ -316,6 +320,6 @@
flex-direction: column;
justify-content: center;
align-items: center;
- width: 200px;
+ width: 150px;
}
</style>
--
Gitblit v1.8.0