| | |
| | | <template> |
| | | <div class="enterprise-panel"> |
| | | <div class="enterprise-function" @click="showWarnDialog()"> |
| | | <img src="@/assets/images/map-pages/icon/map/warn.png" alt="" width="32px"> |
| | | <div :class='["iconBtn",warnVisible ? "active-button" : ""]'> |
| | | <img src="@/assets/images/map-pages/icon/map/warn.png" alt="" class="icon"> |
| | | <span class="icon-name">预报警</span> |
| | | <!-- <el-tooltip :popper-class="'map-tooltip'" effect="dark" content="预报警" placement="left"> |
| | | <img src="@/assets/images/map-pages/icon/map/warn.png" alt="" width="26px" style="display: block;margin: auto"> |
| | | |
| | | </el-tooltip> --> |
| | | </div> |
| | | </div> |
| | | <div class="enterprise-function" @click="showStatisDialog()"> |
| | | <img src="@/assets/images/map-pages/icon/map/company.png" alt="" width="32px"> |
| | | <div :class='["iconBtn",companyVisible ? "active-button" : ""]'> |
| | | <img src="@/assets/images/map-pages/icon/map/company.png" alt="" class="icon"> |
| | | <span class="icon-name">指标</span> |
| | | </div> |
| | | </div> |
| | | <Dialog ref="warnDialog" title="企业预警报警分类统计"> |
| | | <Dialog ref="warnDialog" title="企业预警报警分类统计" > |
| | | <warn></warn> |
| | | </Dialog> |
| | | <Dialog ref="indexStatisticsDialog" title="企业指标分类统计"> |
| | |
| | | }, |
| | | data () { |
| | | return { |
| | | comp: Warn |
| | | comp: Warn, |
| | | warnVisible: false, |
| | | companyVisible: false |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | }, |
| | | showWarnDialog () { |
| | | this.$refs.warnDialog.show() |
| | | this.warnVisible = true |
| | | }, |
| | | showStatisDialog () { |
| | | this.$refs.indexStatisticsDialog.show() |
| | | this.companyVisible = true |
| | | } |
| | | }, |
| | | mounted () { |
| | | const that = this |
| | | this.$nextTick(() => { |
| | | this.$refs.warnDialog.$on('closeDialog', () => { |
| | | that.warnVisible = false |
| | | }) |
| | | this.$refs.indexStatisticsDialog.$on('closeDialog', () => { |
| | | that.companyVisible = false |
| | | }) |
| | | }) |
| | | } |
| | | } |
| | | </script> |
| | |
| | | <style lang="less" scoped> |
| | | .enterprise-panel{ |
| | | position: absolute; |
| | | right: 5px; |
| | | top:5px; |
| | | right: 0.14583rem; |
| | | top:0.11979rem; |
| | | z-index: 9999; |
| | | |
| | | .enterprise-function{ |
| | | width: 40px; |
| | | float: left; |
| | | cursor: pointer; |
| | | } |
| | | .enterprise-function:not(:first-child){ |
| | | margin-left: 10px; |
| | | } |
| | | } |
| | | </style> |