| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div v-if="role=='访客'" class="app-container"> |
| | | <el-empty description="暂无权限"></el-empty> |
| | | </div> |
| | | <div v-else class="app-container"> |
| | | <div class="filter-container"> |
| | | <el-input v-model="listQuery.keyword" size="small" placeholder="请输入IP地址" clearable class="filter-item w-200" /> |
| | | <el-button-group class="filter-item"> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | role:localStorage.getItem('role'), |
| | | uadd:'', |
| | | udelete:'', |
| | | uupdate:'', |
| | |
| | | search() { |
| | | this.listLoading = true |
| | | searchForwardData(this.listQuery).then(response => { |
| | | this.list = response.data.records |
| | | this.total = response.data.total |
| | | if (response.data!=null) { |
| | | this.list = response.data.records |
| | | this.total = response.data.total |
| | | }else{ |
| | | this.$message({ |
| | | message: '未搜索到数据', |
| | | type: 'error' |
| | | }) |
| | | } |
| | | |
| | | this.listLoading = false |
| | | }) |
| | | }, |