| | |
| | | <template> |
| | | <div class="public-bounced" 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"> |
| | | <!-- <span>内容</span>--> |
| | | <popup-gas></popup-gas> |
| | | <div class="public-bounced-content-left"> |
| | | <PublicTabs :displayContentTab="displayContentTab" :value="value" :setWasteGasdata="setWasteGasdata"></PublicTabs> |
| | | <div class="public-bounced-content-left-bottom"> |
| | | <PublicTable v-if="value === 'gufei'"></PublicTable> |
| | | <PublicChart v-else></PublicChart> |
| | | </div> |
| | | </div> |
| | | <div class="public-bounced-content-right"> |
| | | <PublicVideo></PublicVideo> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import PopupGas from '@components/flueGas/popup-gas' |
| | | |
| | | import '@/components/BaseNav/SolidWaste/directive/dir' |
| | | import PublicTabs from '@components/BaseNav/PublicBounced/GasComponents/PublicTabs' |
| | | import PublicTable from '@components/BaseNav/PublicBounced/GasComponents/PublicTable' |
| | | import PublicVideo from '@components/BaseNav/PublicBounced/GasComponents/PublicVideo' |
| | | import PublicChart from './GasComponents/PublicChart' |
| | | |
| | | export default { |
| | | name: 'PublicBounced', |
| | | components: { |
| | | PublicTabs, |
| | | PublicTable, |
| | | PublicChart, |
| | | PublicVideo |
| | | }, |
| | | data () { |
| | | return { |
| | | displayContent: [], |
| | | flag: false |
| | | setWasteGasdata: '', |
| | | displayContentTitle: '', |
| | | displayContentTab: '', |
| | | displayContentTable: '', |
| | | flag: false, |
| | | value: '' |
| | | } |
| | | }, |
| | | components: { |
| | | PopupGas |
| | | }, |
| | | methods: { |
| | | setData (data) { |
| | | this.displayContent = data |
| | | setData (dataBasic, dataDetailed, value) { |
| | | dataBasic.forEach(item => { |
| | | this.displayContentTitle = item.StoragePlaceName |
| | | }) |
| | | this.displayContentTab = dataBasic |
| | | this.displayContentTable = dataDetailed |
| | | this.flag = true |
| | | this.value = value |
| | | }, |
| | | setGasData (data, value) { |
| | | this.setWasteGasdata = data |
| | | this.displayContentTitle = data.Name |
| | | this.flag = true |
| | | this.value = value |
| | | }, |
| | | closePopup () { |
| | | this.flag = false |
| | |
| | | |
| | | <style lang="less" scoped> |
| | | .public-bounced { |
| | | width: 80%; |
| | | height: 450px; |
| | | width: 75%; |
| | | z-index: 999; |
| | | position: absolute; |
| | | top: 25%; |
| | | left: 10%; |
| | | bottom: 5%; |
| | | left: 15%; |
| | | background-color: #002432; |
| | | margin: 1% auto; |
| | | border: 1px #a5bfd8 solid; |
| | | border: 1px #9fc5c8 solid; |
| | | |
| | | .public-bounced-title { |
| | | width: 100%; |
| | | border: 1px #a4c0d8 solid; |
| | | display: flex; |
| | | align-items: center; |
| | |
| | | } |
| | | } |
| | | |
| | | .public-bounced-content { |
| | | margin: 15px auto; |
| | | display: flex; |
| | | //align-items: center; |
| | | justify-content: space-around; |
| | | padding: 10px; |
| | | |
| | | .public-bounced-content-left { |
| | | flex: 3; |
| | | height: 100%; |
| | | margin-right: 10px; |
| | | } |
| | | |
| | | .public-bounced-content-right { |
| | | flex: 2; |
| | | //width: 48%; |
| | | height: 100%; |
| | | } |
| | | } |
| | | } |
| | | </style> |