From 4aac1609c95a097de0e8da843a9ed2f211303d4e Mon Sep 17 00:00:00 2001 From: Surpriseplus <845948745@qq.com> Date: 星期四, 27 十月 2022 14:21:37 +0800 Subject: [PATCH] 黑白名单,系统配置,综合展示权限管理添加 --- src/views/maintenance/logLog.vue | 62 ++++++++++++++---------------- 1 files changed, 29 insertions(+), 33 deletions(-) diff --git a/src/views/maintenance/logLog.vue b/src/views/maintenance/logLog.vue index f19fe1d..ce2b45a 100644 --- a/src/views/maintenance/logLog.vue +++ b/src/views/maintenance/logLog.vue @@ -9,7 +9,7 @@ <el-divider /> <div class="inquire"> <div class="herder_box"> - {{ $t("operatManage.operationLogObj.queryRegion") }} + {{ $t('operatManage.operationLogObj.queryRegion') }} </div> <el-form ref="formData1" :model="form" :inline="true"> <el-form-item @@ -31,19 +31,9 @@ v-model="form.type" :placeholder="$t('operatManage.operationLogObj.pleaseSelect')" > - <el-option - :label="$t('loglog.login')" - value="1" - /> - <el-option - :label="$t('loglog.checkout')" - value="2" - /> - <el-option - :label="$t('loglog.logout')" - value="3" - /> - + <el-option :label="$t('loglog.login')" value="1" /> + <el-option :label="$t('loglog.checkout')" value="2" /> + <el-option :label="$t('loglog.logout')" value="3" /> </el-select> </el-form-item> <el-form-item @@ -76,10 +66,10 @@ </el-form-item> <el-form-item> <el-button @click="onSubmit" icon="el-icon-search">{{ - $t("operatManage.operationLogObj.inquire") + $t('operatManage.operationLogObj.inquire') }}</el-button> <el-button @click="onEmpty('formData1')" icon="el-icon-delete">{{ - $t("operatManage.operationLogObj.empty") + $t('operatManage.operationLogObj.empty') }}</el-button> </el-form-item> </el-form> @@ -134,8 +124,8 @@ </template> <script> -import MyBread from "../../components/MyBread.vue"; -import { loginSelectByPageAndCount } from "../../api/api"; +import MyBread from '../../components/MyBread.vue'; +import { loginSelectByPageAndCount } from '../../api/api'; export default { //import寮曞叆鐨勭粍浠堕渶瑕佹敞鍏ュ埌瀵硅薄涓墠鑳戒娇鐢� components: { @@ -145,9 +135,7 @@ data() { return { currentPage4: 1, - form: { - - }, + form: {}, tableData: [], listData: { pageIndex: 1, @@ -162,13 +150,13 @@ let data; switch (row[column.property]) { case 1: - data = "鐧诲綍"; + data = '鐧诲綍'; break; case 2: - data = "鏍¢獙"; + data = '鏍¢獙'; break; case 3: - data = "鐧诲嚭"; + data = '鐧诲嚭'; break; } return data; @@ -177,10 +165,10 @@ let data; switch (row[column.property]) { case 1: - data = "鎴愬姛"; + data = '鎴愬姛'; break; case 0: - data = "澶辫触"; + data = '澶辫触'; break; } return data; @@ -189,17 +177,17 @@ let data; switch (row[column.property]) { case 1: - data = "绠¢亾鍩虹澶ф暟鎹钩鍙�"; + data = '绠¢亾鍩虹澶ф暟鎹钩鍙�'; break; case 2: - data = "澶栭儴绯荤粺闆嗘垚"; + data = '澶栭儴绯荤粺闆嗘垚'; break; } return data; }, //鏍煎紡鍖栨椂闂� add0(m) { - return m < 10 ? "0" + m : m; + return m < 10 ? '0' + m : m; }, //鏍煎紡鍖栨椂闂� format(shijianchuo) { @@ -212,7 +200,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) + // ":" + @@ -245,20 +233,28 @@ onEmpty(formData1) { this.$refs[formData1].resetFields(); //閲嶇疆琛ㄥ崟鏁版嵁 // this.form = {}; - this.form.start =null - this.form.end =null + this.form.start = null; + this.form.end = null; }, async getList() { const data = await loginSelectByPageAndCount(this.listData); if (data.code != 200) { - return this.$message.error("鍒楄〃璋冪敤澶辫触"); + return this.$message.error('鍒楄〃璋冪敤澶辫触'); } this.tableData = data.result; this.count = data.count; }, }, created() { + var val = this.$store.state.currentPerms; + var permsEntity = this.$store.state.permsEntity; + for (var i = 0; i < permsEntity.length; i++) { + if (permsEntity[i].perms == val) { + // this.showPermsMenu(permsEntity[i]); + console.log(permsEntity[i].tag); + } + } this.getList(); }, }; -- Gitblit v1.9.3