派生自 wuyushui/SewerAndRainNetwork

徐旺旺
2021-04-19 545ba46e971816dc56b4ea80e48ed26a4b152d62
src/components/BaseNav/WasteSolid/WasteSolidIndex.vue
@@ -1,11 +1,10 @@
<template>
  <public-sector>
    <div></div>
    <template v-slot:tabs>
      <public-tabs></public-tabs>
      <public-tabs ref='refsTabsData'></public-tabs>
    </template>
    <template v-slot:table>
      <public-table ref="table"></public-table>
      <public-table ref="refsTableData"></public-table>
    </template>
    <template v-slot:video>
      <public-video></public-video>
@@ -15,7 +14,6 @@
<script>
// import '@/utils/dragBoxes'
import PublicTabs from '@components/BaseNav/WasteSolid/PublicTabs'
import PublicTable from '@components/BaseNav/WasteSolid/PublicTable'
import PublicVideo from '@components/BaseNav/PublicVideo'
@@ -23,39 +21,26 @@
export default {
  name: 'WasteSolidIndex',
  props: ['title'],
  props: ['storagePlaceId'],
  components: {
    // WasteSolid,
    PublicSector,
    PublicTabs,
    PublicTable,
    PublicVideo
  },
  mounted () {
    console.log(this.title)
    this.$nextTick(() => {
      this.refsData()
    })
  },
  data () {
    return {
      displayContentTabs: [{
        StoragePlaceId: 0,
        StoragePlaceName: '取水单元干泥暂存库',
        DesignFloorArea: 0.024,
        StorageQty: 0.016,
        SurplusFloorArea: 0.018,
        StorageDate: '2021-01-17'
      }],
      displayContentTable: '',
      flag: false
    }
    return {}
  },
  methods: {
    // 固废相关信息设置
    setData (title, dataBasic, dataDetailed, value) {
      this.flag = true
      this.value = value
      this.displayContentTitle = title
      this.displayContentTab = dataBasic[0]
      this.displayContentTable = dataDetailed[0]
    refsData () {
      const data = this.storagePlaceId
      this.$refs.refsTabsData.refsDataTabs(data)
      this.$refs.refsTableData.refsDataTable(data)
    }
  }
}
@@ -95,7 +80,7 @@
  }
  .public-bounced-content {
    padding: 0.1rem;
    //padding: 0.1rem;
    display: flex;
    //align-items: center;
    //justify-content: space-around;