src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/BaseNav/PublicBounced/GasComponents/EchartsTab.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/BaseNav/PublicBounced/GasComponents/PublicChart.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/BaseNav/PublicBounced/GasComponents/PublicTable.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/BaseNav/PublicBounced/GasComponents/PublicTabs.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/BaseNav/PublicBounced/PublicBounced.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/LayerController/logic/WasteGas.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
src/components/LayerController/logic/WasteWater.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/components/BaseNav/PublicBounced/GasComponents/ECharts.vue
File was renamed from src/components/BaseNav/PublicBounced/GasComponents/GasECharts.vue @@ -1,10 +1,18 @@ <template> <div id="Tab"> <div class="Infomation"> <el-tag>氮氧化物 : 29.93 标准 : 100</el-tag> <el-tag>二氧化硫 : 17.34 标准 : 50</el-tag> <el-tag>烟尘 : 6.93 标准 : 30</el-tag> <el-tag>废气流量 : 120343.18</el-tag> </div> <div style="width:750px;height:260px;" id="echarts" ref="main"></div> </div> </template> <script> export default { name: 'GasECharts', name: 'ECharts', methods: { drawChart: function () { const myChart = this.$echarts.init(this.$refs.main) @@ -88,7 +96,7 @@ xAxis: { type: 'category', boundaryGap: false, data: ['12:00:01', '12:00:02', '12:00:03', '12:00:04', '12:00:05', '12:00:06', '12:00:07'], data: ['2021.01.01', '2021.01.02', '2021.01.03', '2021.01.04', '2021.01.05', '2021.01.06', '2021.01.07'], axisLabel: { // x轴全部显示 rotate: 20, interval: 0, @@ -174,10 +182,22 @@ </script> <style scoped lang="less"> .Infomation{ margin-left: 10px; } .el-tag{ height: 25px; line-height: 25px; margin-right: 10px; font-size: 10px; background-color: rgba(0, 255, 246, 0.14); color: #00d0f9; border: none; } #echarts{ margin: 0; padding: 0; border: 1px solid #396d83; /*margin: 10px 10px 10px 10px;*/ margin: 10px 10px 10px 10px; } </style> src/components/BaseNav/PublicBounced/GasComponents/EchartsTab.vue
File was deleted src/components/BaseNav/PublicBounced/GasComponents/PublicChart.vue
File was renamed from src/components/BaseNav/PublicBounced/GasComponents/GasTabs.vue @@ -5,30 +5,27 @@ <div class="border_corner border_corner_left_bottom"></div> <div class="border_corner border_corner_right_bottom"></div> <el-tabs type="card" v-model="activeName"> <el-tab-pane label="实试数据" name="first"> <EchartsTab></EchartsTab> <GasECharts></GasECharts> <el-tab-pane label="实试数据" name="first"></el-tab-pane> <el-tab-pane label="日数据" name="second"> <ECharts></ECharts> </el-tab-pane> <el-tab-pane label="日数据" name="second"><EchartsTab></EchartsTab><GasECharts></GasECharts></el-tab-pane> <el-tab-pane label="月数据" name="third"><EchartsTab></EchartsTab><GasECharts></GasECharts></el-tab-pane> <el-tab-pane label="人工数据" name="fourth"><EchartsTab></EchartsTab><GasECharts></GasECharts></el-tab-pane> <el-tab-pane label="月数据" name="third"></el-tab-pane> <el-tab-pane label="人工数据" name="fourth"></el-tab-pane> </el-tabs> </div> </template> <script> import GasECharts from './GasECharts' import EchartsTab from './EchartsTab' import ECharts from './ECharts' export default { name: 'GasTabs', name: 'PublicChart', components: { GasECharts, EchartsTab ECharts }, data () { return { activeName: 'first' activeName: 'second' } }, methods: { src/components/BaseNav/PublicBounced/GasComponents/PublicTable.vue
@@ -60,7 +60,7 @@ .main-video { width: 100%; min-height: 195px; min-height: 164px; video { width: 100%; src/components/BaseNav/PublicBounced/GasComponents/PublicTabs.vue
@@ -8,6 +8,18 @@ <div class="border_corner border_corner_right_bottom"></div> <div class="main"> <div class="main-matter"> <div v-if="value == 'gufei'"> <el-row type="flex" class="row-bg row-item-one" justify="space-around"> <el-col :span="8">监测点名称:{{ displayContentTab2.Name }}</el-col> <el-col :span="8">生产单位:{{ displayContentTab2.porltName }}</el-col> </el-row> <el-row type="flex" class="row-bg" justify="space-around"> <el-col :span="8">排放去向:{{ displayContent.EmissDirecti }}</el-col> <el-col :span="8">控制级别名称:{{ displayContent.ContrLevelShowName }}</el-col> <el-col :span="8">内/外排口:{{ displayContent.OrOutPortName }}</el-col> </el-row> </div> <div v-else-if="value == 'feiqi'"> <el-row type="flex" class="row-bg row-item-one" justify="space-around"> <el-col :span="8">监测点名称:{{ displayContentTab2.StoragePlaceName }}</el-col> <el-col :span="8">生产单位:{{ displayContentTab2.StoragePlaceName }}</el-col> @@ -18,22 +30,19 @@ <el-col :span="8">控制级别名称:{{ displayContentTab2.SurplusFloorArea }}</el-col> <el-col :span="8">内/外排口:{{ displayContentTab2.StorageDate }}</el-col> </el-row> <!-- <el-row type="flex" class="row-bg row-item-one" justify="space-around">--> <!-- <el-col :span="8">监测点名称:{{ displayContent.Name }}</el-col>--> <!-- <el-col :span="8">生产单位:{{ displayContent.porltName }}</el-col>--> <!-- <el-col :span="8">排放类型加载:{{ displayContent.MonTypeName }}</el-col>--> <!-- <!– <el-col :span="8">监测点名称:{{ displayContentTab2.StoragePlaceName }}</el-col>–>--> <!-- <!– <el-col :span="8">生产单位:{{ displayContentTab2.StoragePlaceName }}</el-col>–>--> <!-- <!– <el-col :span="8">排放类型加载:{{ displayContentTab2.DesignFloorArea }}</el-col>–>--> <!-- </el-row>--> <!-- <el-row type="flex" class="row-bg" justify="space-around">--> <!-- <el-col :span="8">排放去向:{{ displayContent.EmissDirecti }}</el-col>--> <!-- <el-col :span="8">控制级别名称:{{ displayContent.ContrLevelShowName }}</el-col>--> <!-- <el-col :span="8">内/外排口:{{ displayContent.OrOutPortName }}</el-col>--> <!-- <!– <el-col :span="8">排放去向:{{ displayContentTab2.StorageQty }}</el-col>–>--> <!-- <!– <el-col :span="8">控制级别名称:{{ displayContentTab2.SurplusFloorArea }}</el-col>–>--> <!-- <!– <el-col :span="8">内/外排口:{{ displayContentTab2.StorageDate }}</el-col>–>--> <!-- </el-row>--> </div> <div else-if="value == 'feishui'"> <el-row type="flex" class="row-bg row-item-one" justify="space-around"> <el-col :span="8">监测点名称:{{ displayContentTab2.StoragePlaceName }}</el-col> <el-col :span="8">生产单位:{{ displayContentTab2.StoragePlaceName }}</el-col> <el-col :span="8">排放类型加载:{{ displayContentTab2.DesignFloorArea }}</el-col> </el-row> <el-row type="flex" class="row-bg" justify="space-around"> <el-col :span="8">排放去向:{{ displayContentTab2.StorageQty }}</el-col> <el-col :span="8">控制级别名称:{{ displayContentTab2.SurplusFloorArea }}</el-col> <el-col :span="8">内/外排口:{{ displayContentTab2.StorageDate }}</el-col> </el-row> </div> </div> </div> </div> @@ -42,7 +51,7 @@ <script> export default { name: 'GasTable', props: ['displayContentTab'], props: ['displayContentTab', 'value'], data () { return { displayContentTab2: [] src/components/BaseNav/PublicBounced/PublicBounced.vue
@@ -6,14 +6,14 @@ </div> <div class="public-bounced-content"> <div class="public-bounced-content-left"> <GasTab :displayContentTab="displayContentTab"></GasTab> <PublicTabs :displayContentTab="displayContentTab" :value="value"></PublicTabs> <div class="public-bounced-content-left-bottom"> <PublicTable v-if="value === 'gufei'" :displayContentTable="displayContentTable"></PublicTable> <GasECharts v-else></GasECharts> <PublicTable v-if="value === 'gufei'"></PublicTable> <PublicChart v-else></PublicChart> </div> </div> <div class="public-bounced-content-right"> <GasVideo></GasVideo> <PublicVideo></PublicVideo> </div> </div> </div> @@ -22,19 +22,18 @@ <script> import '@/components/BaseNav/SolidWaste/directive/dir' import GasTab from '@components/BaseNav/PublicBounced/GasComponents/PublicTabs' import PublicTabs from '@components/BaseNav/PublicBounced/GasComponents/PublicTabs' import PublicTable from '@components/BaseNav/PublicBounced/GasComponents/PublicTable' import GasECharts from '@components/BaseNav/PublicBounced/GasComponents/GasECharts' import GasVideo from '@components/BaseNav/PublicBounced/GasComponents/PublicVideo' // import GasTabs from './GasComponents/GasTabs' import PublicVideo from '@components/BaseNav/PublicBounced/GasComponents/PublicVideo' import PublicChart from './GasComponents/PublicChart' export default { name: 'PublicBounced', components: { GasTab, PublicTabs, PublicTable, GasECharts, GasVideo PublicChart, PublicVideo }, data () { return { @@ -54,6 +53,12 @@ this.flag = true this.value = value }, setGasData (data, value) { this.displayContentTitle = data.Name this.displayContentTab = data this.flag = true this.value = value }, closePopup () { this.flag = false } src/components/LayerController/logic/WasteGas.js
@@ -56,7 +56,7 @@ // const result = await mapApi.getWasteGas(dataValue) const PublicBounced = window.Vue.extend(publicBounced) const instance = new PublicBounced() instance.setData(e.layer.options.test) instance.setGasData(e.layer.options.test, 'feiqi') instance.$mount() document.body.appendChild(instance.$el) } src/components/LayerController/logic/WasteWater.js
@@ -56,9 +56,10 @@ StoragePlaceId: e.layer.options.test.StoragePlaceId } const result = await mapApi.getWasteWater(dataValue) // console.log(result) const PublicBounced = window.Vue.extend(publicBounced) const instance = new PublicBounced() instance.setData(result) instance.setGasData(result, 'feishui') instance.$mount() document.body.appendChild(instance.$el) }