| | |
| | | <el-table |
| | | class="tableBox" |
| | | :data="tableData" |
| | | :header-cell-style="tableHeaderColor" |
| | | :cell-style="rowClass" |
| | | :header-cell-style="tableHeaderColor" |
| | | > |
| | | <el-table-column |
| | | width="30px" |
| | | label="" |
| | | > |
| | | <template> |
| | | <i class="el-icon-caret-right"></i> |
| | | <span style="margin-left: 10px"></span> |
| | | <el-popover :value= "show" |
| | | 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> |
| | | <!-- <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>--> |
| | | </el-popover> |
| | | <!-- <i class="el-icon-caret-right" v-if="!isShowIcon"></i>--> |
| | | <!-- <i class="el-icon-caret-bottom" v-else-if="isShowIcon&&scope.row.index===1"></i>--> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | |
| | | prop="UserName" |
| | | label="企业名称" |
| | | width="120px"> |
| | | </el-table-column> |
| | | <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>v- |
| | | <el-table-column |
| | | prop="WasteWaters" |
| | | label="外排废水量(m³)" |
| | |
| | | prop="normal" |
| | | label="正常" |
| | | width="60px"> |
| | | <template slot-scope="{row,$index}"> |
| | | <u v-if="$index!=2" >{{row.normal}}</u> |
| | | <el-popover v-else |
| | | placement="bottom-end" |
| | | width="200" |
| | | trigger="click" |
| | | > |
| | | <ChemicalWastewater></ChemicalWastewater> |
| | | <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>--> |
| | | <!-- <i v-else class="el-icon-caret-right" slot="reference" @click="isbtn"></i>--> |
| | | </el-popover> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="overProof" |
| | |
| | | </el-table-column> |
| | | </el-table-column> |
| | | </el-table> |
| | | <!-- <ChemicalWastewater v-show="isShowIcon"></ChemicalWastewater>--> |
| | | <!-- </el-col>--> |
| | | <!-- </el-row>--> |
| | | </div> |
| | | </template> |
| | | |
| | | <script> |
| | | import ChemicalWastewater from './componented/ChemicalWastewater' |
| | | export default { |
| | | name: 'WasteWater', |
| | | components: { |
| | | ChemicalWastewater |
| | | }, |
| | | data () { |
| | | return { |
| | | show: false, |
| | | isShowIcon: false, |
| | | tableData: [{ |
| | | UserName: '集团名称', |
| | | WasteWaters: '', |
| | |
| | | // 表头样式设置 |
| | | 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 |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | |
| | | <style scoped> |
| | | <style > |
| | | .popovers{ |
| | | width: auto !important; |
| | | } |
| | | .popovers.el-popover{ |
| | | padding:0; |
| | | } |
| | | |
| | | </style> |