From a3a0083ab18c8b4f0dad49ecbc67275df1896f5d Mon Sep 17 00:00:00 2001
From: yangdelong <828900aaa>
Date: 星期一, 19 四月 2021 12:38:03 +0800
Subject: [PATCH] 修改废气页面的标准值,生成独立组件
---
src/components/BaseNav/WasteSolid/PublicTable.vue | 47 ++++++++++++++++++-----------------------------
1 files changed, 18 insertions(+), 29 deletions(-)
diff --git a/src/components/BaseNav/WasteSolid/PublicTable.vue b/src/components/BaseNav/WasteSolid/PublicTable.vue
index f1c70fb..3bc0315 100644
--- a/src/components/BaseNav/WasteSolid/PublicTable.vue
+++ b/src/components/BaseNav/WasteSolid/PublicTable.vue
@@ -1,12 +1,4 @@
<template>
- <!-- <div class="react">-->
- <!-- <div class="main-table">-->
- <!-- <el-table :data="listData" style="width: 100%" height="255px" :row-class-name="tableRowClassName">-->
- <!-- <el-table-column v-for="(item, index) in listLabel" :key="index" :prop="item.prop"-->
- <!-- :label="item.label" :show-overflow-tooltip="true"></el-table-column>-->
- <!-- </el-table>-->
- <!-- </div>-->
- <!-- </div>-->
<div class="slotChildTable">
<span></span>
<span></span>
@@ -22,6 +14,8 @@
</template>
<script>
+import mapApi from '@/api/mapApi'
+
export default {
name: 'PublicTable',
props: ['displayContentTable'],
@@ -62,10 +56,18 @@
},
mounted () {
this.$nextTick(() => {
- this.listData.push(this.displayContentTable[0], {}, {}, {}, {}, {}, {})
+ this.listData.push({}, {}, {}, {}, {}, {})
})
},
methods: {
+ async refsDataTable (data) {
+ const StoragePlaceId = {
+ StoragePlaceId: data
+ }
+ const result = await mapApi.getSolidWasteDetail(StoragePlaceId)
+ this.listData = result.Result.DataInfo[0]
+ console.log(this.listData)
+ },
// 闅旇棰滆壊璁剧疆
tableRowClassName ({
row,
@@ -83,23 +85,10 @@
</script>
<style lang="less" scoped>
-//.react {
-// position: relative;
-// background: rgba(33, 41, 69, 0.9);
-// background: linear-gradient(to left, #02a6b5, #02a6b5) left top no-repeat,
-// linear-gradient(to bottom, #02a6b5, #02a6b5) left top no-repeat,
-// linear-gradient(to left, #02a6b5, #02a6b5) right top no-repeat,
-// linear-gradient(to bottom, #02a6b5, #02a6b5) right top no-repeat,
-// linear-gradient(to left, #02a6b5, #02a6b5) left bottom no-repeat,
-// linear-gradient(to bottom, #02a6b5, #02a6b5) left bottom no-repeat,
-// linear-gradient(to left, #02a6b5, #02a6b5) right bottom no-repeat,
-// linear-gradient(to left, #02a6b5, #02a6b5) right bottom no-repeat;
-// background-size: 2px 20px, 20px 2px, 2px 20px, 20px 2px;
-//
-// .main-table {
-// //border: 1px red solid;
-// }
-//}
+.main-table {
+ border: 1px #02a6b5 solid;
+}
+
/deep/ .el-table td {
border-bottom: none !important;
}
@@ -133,7 +122,7 @@
border-width: 1px 0 0 1px;
}
-.main span:nth-child(2) {
+.slotChildTable span:nth-child(2) {
position: absolute;
right: -1px;
top: -1px;
@@ -143,7 +132,7 @@
border-width: 1px 1px 0 0;
}
-.main span:nth-child(3) {
+.slotChildTable span:nth-child(3) {
position: absolute;
right: -1px;
bottom: -1px;
@@ -153,7 +142,7 @@
border-width: 0 1px 1px 0;
}
-.main span:nth-child(4) {
+.slotChildTable span:nth-child(4) {
position: absolute;
left: -1px;
bottom: -1px;
--
Gitblit v1.8.0