| | |
| | | <template> |
| | | <div class="public-bounced" v-draw v-show="flag"> |
| | | <div class="public-bounced" v-draw v-if="flag"> |
| | | <div class="public-bounced-title"> |
| | | <span>{{ displayContent.Name }}</span> |
| | | <span>{{ displayContentTitle }}</span> |
| | | <i class="el-icon-circle-close" @click="closePopup"></i> |
| | | </div> |
| | | <div class="public-bounced-content"> |
| | | <div class="public-bounced-content-left"> |
| | | <GasTable :displayContent="displayContent"></GasTable> |
| | | <GasECharts></GasECharts> |
| | | <GasTab :displayContentTab="displayContentTab"></GasTab> |
| | | <div class="public-bounced-content-left-bottom"> |
| | | <PublicTable v-if="value === 'gufei'" :displayContentTable="displayContentTable"></PublicTable> |
| | | <GasECharts v-else></GasECharts> |
| | | </div> |
| | | </div> |
| | | <div class="public-bounced-content-right"> |
| | | <GasVideo></GasVideo> |
| | |
| | | |
| | | <script> |
| | | |
| | | import '@/components/BaseNav/SolidWaste/directive' |
| | | import GasTable from '@components/BaseNav/PublicBounced/GasComponents/GasTable' |
| | | import '@/components/BaseNav/SolidWaste/directive/dir' |
| | | import GasTab from '@components/BaseNav/PublicBounced/GasComponents/GasTab' |
| | | import PublicTable from '@components/BaseNav/PublicBounced/GasComponents/PublicTable' |
| | | import GasECharts from '@components/BaseNav/PublicBounced/GasComponents/GasECharts' |
| | | import GasVideo from '@components/BaseNav/PublicBounced/GasComponents/GasVideo' |
| | | // import GasTabs from './GasComponents/GasTabs' |
| | | |
| | | export default { |
| | | name: 'PublicBounced', |
| | | components: { |
| | | GasTable, |
| | | GasTab, |
| | | PublicTable, |
| | | GasECharts, |
| | | GasVideo |
| | | }, |
| | | data () { |
| | | return { |
| | | displayContent: [], |
| | | displayContentTitle: '', |
| | | displayContentTab: '', |
| | | displayContentTable: '', |
| | | flag: false |
| | | } |
| | | }, |
| | | methods: { |
| | | setData (data) { |
| | | this.displayContent = data |
| | | setData (dataBasic, dataDetailed, value) { |
| | | console.log(dataDetailed) |
| | | dataBasic.forEach(item => { |
| | | this.displayContentTitle = item.StoragePlaceName |
| | | }) |
| | | this.displayContentTab = dataBasic |
| | | this.displayContentTable = dataDetailed |
| | | this.flag = true |
| | | this.value = value |
| | | }, |
| | | closePopup () { |
| | | this.flag = false |
| | |
| | | |
| | | <style lang="less" scoped> |
| | | .public-bounced { |
| | | width: 75%; |
| | | z-index: 999; |
| | | position: fixed; |
| | | top: 50%; |
| | | left: 50%; |
| | | //transform: translate(-50%, -50%); |
| | | background-color: #0f1432; |
| | | position: absolute; |
| | | bottom: 5%; |
| | | left: 15%; |
| | | background-color: #002432; |
| | | border: 1px #9fc5c8 solid; |
| | | |
| | | .public-bounced-title { |
| | |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | padding: 5px 0; |
| | | background-color: #002433; |
| | | |
| | | span { |
| | | color: #f4f7ff; |
| | |
| | | } |
| | | |
| | | .public-bounced-content { |
| | | margin: 15px auto; |
| | | display: flex; |
| | | align-items: center; |
| | | //align-items: center; |
| | | justify-content: space-around; |
| | | padding: 12px; |
| | | padding: 10px; |
| | | |
| | | .public-bounced-content-left { |
| | | //flex: 1; |
| | | flex-direction: column; |
| | | margin-right: 13px; |
| | | flex: 3; |
| | | height: 100%; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .public-bounced-content-right { |
| | | //flex: 1; |
| | | flex: 2; |
| | | //width: 48%; |
| | | height: 100%; |
| | | } |
| | | } |
| | | |
| | | } |
| | | </style> |