| | |
| | | :data="tableData" |
| | | :header-cell-style="tableHeaderColor" |
| | | :cell-style="rowClass" |
| | | @cell-click="handle" |
| | | > |
| | | <el-table-column |
| | | width="30px" |
| | |
| | | prop="UserName" |
| | | label="企业名称" |
| | | width="120px"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="WasteWaters" |
| | | label="工业外排废水量(m³)" |
| | | width="200px"> |
| | | <template slot-scope="scope"> |
| | | <div v-if="scope.row.UserName==='集团名称'" style="color: #00ffff">{{scope.row.UserName}}</div> |
| | | <div v-else-if="scope.row.UserName==='天津石化'" style="color: #00ffff">{{scope.row.UserName}}</div> |
| | | <div v-else >{{scope.row.UserName}}</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="产生量 (吨)"> |
| | | <el-table-column |
| | |
| | | prop="normal" |
| | | label="正常" |
| | | width="100px"> |
| | | <template slot-scope="{row,$index}"> |
| | | <u v-if="$index!=1" >{{row.normal}}</u> |
| | | <el-popover v-else |
| | | placement="bottom-end" |
| | | width="200" |
| | | trigger="click" |
| | | title="监测点排放明细" |
| | | > |
| | | <ChemicalWastewater></ChemicalWastewater> |
| | | <u slot="reference" style="color: #00ffff">{{row.normal}}</u> |
| | | </el-popover> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="warning" |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import ChemicalWastewater from '@components/table/components/componented/ChemicalWastewater' |
| | | export default { |
| | | name: 'SolidWaste', |
| | | components: { |
| | | ChemicalWastewater |
| | | }, |
| | | data () { |
| | | return { |
| | | tableData: [{ |
| | | UserName: '集团名称', |
| | | WasteWaters: '', |
| | | AddOutPut: '', |
| | | MonthOutPut: '', |
| | | normal: '', |
| | | warning: '' |
| | | AddOutPut: '580', |
| | | MonthOutPut: '250', |
| | | normal: '10', |
| | | warning: '9' |
| | | }, { |
| | | UserName: '天津石化', |
| | | WasteWaters: '116.6', |
| | |
| | | // 表头样式设置 |
| | | rowClass () { |
| | | return 'text-align: center;background-color: rgba(26, 73, 81, 0.901960784313726);color:#fff;width:64px' |
| | | }, |
| | | // 获取点击的表格 |
| | | handle (row, column, event, cell) { |
| | | console.log(row.UserName) |
| | | } |
| | | } |
| | | } |
| | |
| | | :data="tableData" |
| | | :header-cell-style="tableHeaderColor" |
| | | :cell-style="rowClass" |
| | | @cell-click="handle" |
| | | > |
| | | <el-table-column |
| | | width="30px" |
| | |
| | | prop="UserName" |
| | | label="企业名称" |
| | | width="120px"> |
| | | <template slot-scope="scope"> |
| | | <div v-if="scope.row.UserName==='集团名称'" style="color: #00ffff">{{scope.row.UserName}}</div> |
| | | <div v-else-if="scope.row.UserName==='天津石化'" style="color: #00ffff">{{scope.row.UserName}}</div> |
| | | <div v-else >{{scope.row.UserName}}</div> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="WasteWaters" |
| | |
| | | prop="normal" |
| | | label="正常" |
| | | width="60px"> |
| | | <template slot-scope="{row,$index}"> |
| | | <u v-if="$index!=1" >{{row.normal}}</u> |
| | | <el-popover v-else |
| | | placement="bottom-end" |
| | | width="200" |
| | | trigger="click" |
| | | title="监测点排放明细" |
| | | > |
| | | <refinery></refinery> |
| | | <u slot="reference" style="color: #00ffff">{{row.normal}}</u> |
| | | </el-popover> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="overProof" |
| | |
| | | prop="deficiency" |
| | | label="缺失" |
| | | width="60px"> |
| | | <template slot-scope="{row,$index}"> |
| | | <u v-if="$index!=1" >{{row.deficiency}}</u> |
| | | <el-popover v-else |
| | | placement="bottom-end" |
| | | width="200" |
| | | trigger="click" |
| | | title="监测点排放明细" |
| | | > |
| | | <MissingAlarm></MissingAlarm> |
| | | <u slot="reference" style="color: #00ffff">{{row.deficiency}}</u> |
| | | </el-popover> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | |
| | | // import ChemicalWastewater from '@components/table/components/componented/ChemicalWastewater' |
| | | import Refinery from '@components/table/components/componented/refinery' |
| | | import MissingAlarm from '@components/table/components/componented/MissingAlarm' |
| | | export default { |
| | | name: 'WasteGas', |
| | | components: { |
| | | MissingAlarm, |
| | | Refinery |
| | | // ChemicalWastewater |
| | | }, |
| | | data () { |
| | | return { |
| | | tableData: [{ |
| | |
| | | // 表头样式设置 |
| | | rowClass () { |
| | | return 'text-align: center;background-color: rgba(26, 73, 81, 0.901960784313726);color:#fff;width:64px' |
| | | }, |
| | | // 获取点击的表格 |
| | | handle (row, column, event, cell) { |
| | | console.log(row.UserName) |
| | | } |
| | | } |
| | | } |
| | |
| | | <template> |
| | | <div class="waste-water"> |
| | | <!-- <el-row>--> |
| | | <!-- <el-col>--> |
| | | <el-table |
| | | class="tableBox" |
| | | :data="tableData" |
| | | :cell-style="rowClass" |
| | | style="width: 100%" |
| | | :header-cell-style="tableHeaderColor" |
| | | :cell-style="rowClass" |
| | | @cell-click="handle" |
| | | > |
| | | <el-table-column |
| | | width="30px" |
| | | label="" |
| | | > |
| | | <template > |
| | | <el-popover :value= "show" |
| | | <template> |
| | | <el-popover |
| | | placement="bottom" |
| | | width="200" |
| | | trigger="click" |
| | | popper-class="popovers" |
| | | > |
| | | <ChemicalWastewater @isshow= "show=false"></ChemicalWastewater> |
| | | <i class="el-icon-caret-right" slot="reference" v-if="!isShowIcon" ></i> |
| | | <i class="el-icon-caret-bottom" slot="reference" v-else-if="isShowIcon"></i> |
| | | <ChemicalWastewater></ChemicalWastewater> |
| | | <i class="el-icon-caret-right" slot="reference" v-if="!isShowIcon" @click="doIcon"></i> |
| | | <!-- <i class="el-icon-caret-bottom" slot="reference" v-else-if="isShowIcon&&$index===1"></i>--> |
| | | <!-- <i class="el-icon-caret-bottom" v-else-if="isShowIcon&&scope.row.index===1"></i>--> |
| | | <!-- <i v-if="isShowIcon" class="el-icon-caret-bottom" slot="reference" @click="isbtn"></i>--> |
| | | <!-- <i v-else class="el-icon-caret-right" slot="reference" @click="isbtn"></i>--> |
| | |
| | | placement="bottom-end" |
| | | width="200" |
| | | trigger="click" |
| | | popper-class="popovers" |
| | | title="XXX1明细表" |
| | | > |
| | | <ChemicalWastewater></ChemicalWastewater> |
| | | <refinery></refinery> |
| | | <u slot="reference" style="color: #00ffff">{{row.normal}}</u> |
| | | <!-- <i class="el-icon-caret-bottom" v-else-if="isShowIcon&&scope.row.index===1"></i>--> |
| | | <!-- <i v-if="isShowIcon" class="el-icon-caret-bottom" slot="reference" @click="isbtn"></i>--> |
| | |
| | | prop="deficiency" |
| | | label="缺失" |
| | | width="60px"> |
| | | <template slot-scope="{row,$index}"> |
| | | <u v-if="$index!=1" >{{row.deficiency}}</u> |
| | | <el-popover v-else |
| | | placement="bottom-end" |
| | | width="200" |
| | | trigger="click" |
| | | title="天津石化监测点缺失报警明细" |
| | | popper-class="popovers" |
| | | > |
| | | <MissingAlarm></MissingAlarm> |
| | | <u slot="reference" style="color: #00ffff">{{row.deficiency}}</u> |
| | | </el-popover> |
| | | </template> |
| | | </el-table-column> |
| | | </el-table-column> |
| | | </el-table> |
| | |
| | | |
| | | <script> |
| | | import ChemicalWastewater from './componented/ChemicalWastewater' |
| | | import Refinery from '@components/table/components/componented/refinery' |
| | | import MissingAlarm from '@components/table/components/componented/MissingAlarm' |
| | | export default { |
| | | name: 'WasteWater', |
| | | components: { |
| | | MissingAlarm, |
| | | Refinery, |
| | | ChemicalWastewater |
| | | }, |
| | | data () { |
| | |
| | | rowClass () { |
| | | return 'text-align: center;background-color: rgba(26, 73, 81, 0.901960784313726);color:#fff;width:64px' |
| | | }, |
| | | // cellClick (row, column, cell, event) { |
| | | // console.log(row.index) |
| | | // if (row.index === 1) { |
| | | // this.isShowIcon = !this.isShowIcon |
| | | // } |
| | | // // console.log(column) |
| | | // // console.log(cell) |
| | | // // console.log(event) |
| | | // }, |
| | | // isbtn () { |
| | | // this.isShowIcon = !this.isShowIcon |
| | | // // this.isShowIcon = !this.isShowIcon |
| | | // // console.log(1) |
| | | // }, |
| | | tableCellClassName ({ row, column, rowIndex, columnIndex }) { |
| | | row.index = rowIndex |
| | | column.index = columnIndex |
| | | // 获取点击的表格 |
| | | handle (row, column, event, cell) { |
| | | console.log(row.UserName) |
| | | }, |
| | | doIcon () { |
| | | console.log(1) |
| | | this.isShowIcon = !this.isShowIcon |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style > |
| | | <style scoped> |
| | | .popovers{ |
| | | width: auto !important; |
| | | background-color: gray !important; |
| | | } |
| | | .popovers.el-popover{ |
| | | padding:0; |
| | |
| | | <div class="Chemical-Waste-water" id="Chemical-Waste-water"> |
| | | <el-row type="flex" class="head-area" align="middle"> |
| | | <el-col> |
| | | <span>企业指标分类统计</span> |
| | | <span>监测点排放明细</span> |
| | | </el-col> |
| | | <el-col class="head-area-button"> |
| | | <el-button style="float: right; padding: 3px 0" icon="el-icon-close" type="info" @click="closebtns"></el-button> |
| | | </el-col> |
| | | <!-- <el-col class="head-area-button">--> |
| | | <!-- <el-button style="float: right; padding: 3px 0" icon="el-icon-close" type="info" @click="closeBtns"></el-button>--> |
| | | <!-- </el-col>--> |
| | | </el-row> |
| | | <el-table |
| | | class="tableBox" |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | closebtns () { |
| | | // const summary = document.getElementById('Chemical-Waste-water') |
| | | // summary.style.display = 'none' |
| | | // console.log(1) |
| | | this.$emit('isshow') |
| | | } |
| | | // closeBtns () { |
| | | // this.$emit('isShow') |
| | | // } |
| | | } |
| | | } |
| | | </script> |
| | | <style scoped> |
| | | /*.Chemical-Waste-water {*/ |
| | | .Chemical-Waste-water { |
| | | /* position:fixed;*/ |
| | | /* top: 330px;*/ |
| | | /* left: 65px;*/ |
| | |
| | | /* !*height: 265px;*!*/ |
| | | /* border: #90c8e0 1px solid;*/ |
| | | /* z-index:3000;*/ |
| | | /* background-color: rgba(26, 73, 81, 0.901960784313726);*/ |
| | | /* !*color: #fff;*!*/ |
| | | /*}*/ |
| | | text-align: center; |
| | | background-color: rgba(26, 73, 81, 0.901960784313726); |
| | | color: #fff; |
| | | } |
| | | /*.head-area{*/ |
| | | /* color: #fff;*/ |
| | | /* width: 100%;*/ |
New file |
| | |
| | | <template> |
| | | <div class="MissingAlarm"> |
| | | <el-tabs v-model="activeName"> |
| | | <el-tab-pane label="小时数据" name="first"> |
| | | <el-table |
| | | :data="tableData" |
| | | border |
| | | style="width: 100%" |
| | | > |
| | | <el-table-column |
| | | prop="date" |
| | | label="排放点" |
| | | width="150"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="排放类型" |
| | | width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="报警时间" |
| | | width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="恢复时间" |
| | | width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="缺失小时数" |
| | | width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="缺失原因类型" |
| | | width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="原因描述" |
| | | width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="整改措施" |
| | | width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="限定整改结束时间" |
| | | width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="实际整改结束时间" |
| | | width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="联网时间" |
| | | width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="凭证" |
| | | width="120"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | <el-tab-pane label="日数据" name="second"> |
| | | <el-table |
| | | :data="tableData" |
| | | border |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | prop="date" |
| | | label="排放点" |
| | | width="150"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="排放类型" |
| | | width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="检测时间" |
| | | width="120"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="状态" |
| | | width="120"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </el-tab-pane> |
| | | </el-tabs> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'MissingAlarm', |
| | | data () { |
| | | return { |
| | | activeName: 'first', |
| | | tableData: [{ |
| | | date: '2016-05-03', |
| | | name: '王小虎', |
| | | province: '上海', |
| | | city: '普陀区', |
| | | address: '上海市普陀区金沙江路 1518 弄', |
| | | zip: 200333 |
| | | }, { |
| | | date: '2016-05-02', |
| | | name: '王小虎', |
| | | province: '上海', |
| | | city: '普陀区', |
| | | address: '上海市普陀区金沙江路 1518 弄', |
| | | zip: 200333 |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: '王小虎', |
| | | province: '上海', |
| | | city: '普陀区', |
| | | address: '上海市普陀区金沙江路 1518 弄', |
| | | zip: 200333 |
| | | }] |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | .MissingAlarm { |
| | | background-color: #0E3565; |
| | | color: #fff; |
| | | text-align: center; |
| | | } |
| | | </style> |
New file |
| | |
| | | <template> |
| | | <div class="refinery"> |
| | | <el-table |
| | | :data="tableData" |
| | | border |
| | | style="width: 100%"> |
| | | <el-table-column |
| | | label="序号" |
| | | width="45px" |
| | | type="index"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="date" |
| | | label="排放点" |
| | | width="180"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="name" |
| | | label="单位部门" |
| | | width="180"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="废水产生量(m3)"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="COD (t)"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="address" |
| | | label="氨氮(t)"> |
| | | </el-table-column> |
| | | </el-table> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | export default { |
| | | name: 'refinery', |
| | | data () { |
| | | return { |
| | | tableData: [{ |
| | | date: '2016-05-02', |
| | | name: '王小虎', |
| | | address: '上海市普陀区金沙江路 1518 弄' |
| | | }, { |
| | | date: '2016-05-04', |
| | | name: '王小虎', |
| | | address: '上海市普陀区金沙江路 1517 弄' |
| | | }, { |
| | | date: '2016-05-01', |
| | | name: '王小虎', |
| | | address: '上海市普陀区金沙江路 1519 弄' |
| | | }, { |
| | | date: '2016-05-03', |
| | | name: '王小虎', |
| | | address: '上海市普陀区金沙江路 1516 弄' |
| | | }] |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped lang="less"> |
| | | .refinery { |
| | | background-color: #0E3565; |
| | | } |
| | | </style> |