| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div |
| | | style="display: flex;flex-direction: row;min-width: 158px;max-width: 158px;margin-bottom: 5px;border-radius: 1px; user-select: none" |
| | | > |
| | | <div @click="clickTab(null)" class="tab" |
| | | :class="{tabActive: null == queryParams.provinceTag, tabInactive: null != queryParams.provinceTag}">全部 |
| | | </div> |
| | | <div @click="clickTab(0)" class="tab" |
| | | :class="{tabActive: 0 === queryParams.provinceTag, tabInactive: 0 !== queryParams.provinceTag}">省厅考核 |
| | | </div> |
| | | </div> |
| | | <el-card class="box-card" > |
| | | <el-row type="flex" align="middle" justify="space-between"> |
| | | <el-col :span="4"> |
| | |
| | | <el-button type="primary" icon="el-icon-search" size="small" @click="handleQuery">搜索</el-button> |
| | | <el-button icon="el-icon-refresh" size="small" @click="resetQuery">重置</el-button> |
| | | </el-form-item> |
| | | </el-form> |
| | | |
| | | <el-row :gutter="10" class="mb8"> |
| | | <!-- <el-col :span="1.5"> |
| | | <el-button |
| | | type="warning" |
| | | plain |
| | | icon="el-icon-download" |
| | | size="mini" |
| | | @click="handleExport" |
| | | v-hasPermi="['system:monitor:export']" |
| | | >导出</el-button> |
| | | </el-col> --> |
| | | <right-toolbar :showSearch.sync="showSearch" @queryTable="getList" :columns="columns"></right-toolbar> |
| | | </el-row> |
| | | </el-form> |
| | | |
| | | <el-table v-loading="loading" :data="monitorList" @selection-change="handleSelectionChange"> |
| | | <el-table-column label="设备名称" align="center" prop="name" width="280" fixed show-overflow-tooltip/> |
| | |
| | | }); |
| | | }, |
| | | methods: { |
| | | clickTab(active) { |
| | | this.queryParams.provinceTag = active |
| | | this.getList() |
| | | this.getVideoCount() |
| | | }, |
| | | /** 查询设备资产列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | |
| | | }, |
| | | /** 查询设备资产统计数 */ |
| | | getVideoCount() { |
| | | videoCount('3').then(response => { |
| | | videoCount(this.queryParams).then(response => { |
| | | this.count = response.data; |
| | | }); |
| | | }, |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .tab { |
| | | padding: 5px 15px; |
| | | } |
| | | |
| | | .tab:hover { |
| | | cursor: pointer; |
| | | user-select: none; |
| | | } |
| | | |
| | | .tabActive { |
| | | color: white; |
| | | background-color: #409eff; |
| | | border: none; |
| | | border-radius: 1px; |
| | | } |
| | | |
| | | .tabInactive { |
| | | background-color: #edf2f6; |
| | | color: #409eff; |
| | | } |
| | | |
| | | .tabInactive:hover { |
| | | background-color: #edf2f6; |
| | | } |
| | | .box-card { |
| | | background-color: #ffffff; |
| | | width: 100%; |