fei.wang
2025-03-17 afedb522ac910d1e5265ad93b9bacb1da41cfefb
src/views/retransmission/index.vue
@@ -1,5 +1,8 @@
<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">
@@ -108,6 +111,7 @@
  },
  data() {
    return {
      role:localStorage.getItem('role'),
      uadd:'',
      udelete:'',
      uupdate:'',
@@ -153,8 +157,16 @@
    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
      })
    },