From cfcd9a35c74ce88da3647a0be3f1459fe5086ed1 Mon Sep 17 00:00:00 2001 From: lxl <lixuliang_hd@126.com> Date: 星期三, 19 十月 2022 14:46:59 +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> {{ - $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> {{ - $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> {{ - $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> {{ - $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