From 16fbbddb45ec387f359358da77f81bfbbb3644fc Mon Sep 17 00:00:00 2001
From: Surpriseplus <845948745@qq.com>
Date: 星期一, 17 十月 2022 16:26:37 +0800
Subject: [PATCH] 黑白名单,令牌管理,综合展示修改

---
 src/views/maintenance/blackwhiteList.vue |   44 +++++++++++++++++++++-----------------------
 1 files changed, 21 insertions(+), 23 deletions(-)

diff --git a/src/views/maintenance/blackwhiteList.vue b/src/views/maintenance/blackwhiteList.vue
index 8a7fc7d..5d0c029 100644
--- a/src/views/maintenance/blackwhiteList.vue
+++ b/src/views/maintenance/blackwhiteList.vue
@@ -61,20 +61,20 @@
             </el-form-item>
             <el-form-item>
               <el-button @click="onSubmit">{{
-                $t("operatManage.BWL.change")
+                $t('operatManage.BWL.change')
               }}</el-button>
             </el-form-item>
             <el-form-item>
               <el-button @click="onSubmit"
                 ><i class="el-icon-search"></i> &nbsp;{{
-                  $t("operatManage.BWL.search")
+                  $t('operatManage.BWL.search')
                 }}</el-button
               >
             </el-form-item>
             <el-form-item>
               <el-button @click="onSubmit"
                 ><i class="el-icon-delete"></i> &nbsp;{{
-                  $t("operatManage.BWL.reset")
+                  $t('operatManage.BWL.reset')
                 }}</el-button
               >
             </el-form-item>
@@ -161,14 +161,14 @@
             <el-form-item>
               <el-button @click="onSubmit"
                 ><i class="el-icon-search"></i> &nbsp;{{
-                  $t("operatManage.BWL.search")
+                  $t('operatManage.BWL.search')
                 }}</el-button
               >
             </el-form-item>
             <el-form-item>
               <el-button @click="onSubmit"
                 ><i class="el-icon-delete"></i> &nbsp;{{
-                  $t("operatManage.BWL.reset")
+                  $t('operatManage.BWL.reset')
                 }}</el-button
               >
             </el-form-item>
@@ -229,10 +229,10 @@
     </el-tabs>
   </div>
 </template>
-  
-  <script>
-import MyBread from "../../components/MyBread.vue";
-import { blacklistSelectByPageAndCount } from "../../api/api";
+
+<script>
+import MyBread from '../../components/MyBread.vue';
+import { blacklistSelectByPageAndCount } from '../../api/api';
 export default {
   //import寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢�
   components: {
@@ -241,14 +241,14 @@
 
   data() {
     return {
-      activeName: "first",
+      activeName: 'first',
       currentPage: 1,
       form: {
-        blackListIP: "",
-        IPState: "",
-        interceptionCycle: "",
-        unit: "",
-        interceptionNumber: "",
+        blackListIP: '',
+        IPState: '',
+        interceptionCycle: '',
+        unit: '',
+        interceptionNumber: '',
       },
       BTableData: [],
       WTableData: [],
@@ -269,7 +269,7 @@
   methods: {
     //鏍煎紡鍖栨椂闂�
     add0(m) {
-      return m < 10 ? "0" + m : m;
+      return m < 10 ? '0' + m : m;
     },
     //鏍煎紡鍖栨椂闂�
     format(shijianchuo) {
@@ -282,7 +282,7 @@
       var mm = time.getMinutes();
       var s = time.getSeconds();
       return (
-        y + "-" + this.add0(m) + "-" + this.add0(d)
+        y + '-' + this.add0(m) + '-' + this.add0(d)
         // " " +
         // this.add0(h) +
         // ":" +
@@ -319,7 +319,7 @@
       this.getList();
     },
     onSubmit() {
-      console.log("submit!");
+      console.log('submit!');
     },
     resetForm(formName) {
       this.$refs[formName].resetFields();
@@ -328,16 +328,15 @@
       const data = await blacklistSelectByPageAndCount(this.WListData);
 
       if (data.code != 200) {
-        return this.$message.error("鍒楄〃璋冪敤澶辫触");
+        return this.$message.error('鍒楄〃璋冪敤澶辫触');
       }
       this.WTableData = data.result;
       this.Wcount = data.count;
     },
     async BGetList() {
       const data = await blacklistSelectByPageAndCount(this.BListData);
-      console.log(data);
       if (data.code != 200) {
-        return this.$message.error("鍒楄〃璋冪敤澶辫触");
+        return this.$message.error('鍒楄〃璋冪敤澶辫触');
       }
       this.BTableData = data.result;
       this.Bcount = data.count;
@@ -349,7 +348,7 @@
   },
 };
 </script>
-  <style lang="less" scoped>
+<style lang="less" scoped>
 //@import url(); 寮曞叆鍏叡css绫�
 .logLog_box {
   background: rgb(240, 242, 245);
@@ -384,4 +383,3 @@
   }
 }
 </style>
-  
\ No newline at end of file

--
Gitblit v1.9.3