From 5bfd5c089950678159760bc4cc1264f1bdcf3e86 Mon Sep 17 00:00:00 2001 From: maochaoying <925670706@qq.com> Date: Sun, 10 Sep 2023 20:14:10 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=90=E8=A1=8C=E6=97=B6=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Setting/components/RunInfectionSetting.vue | 24 ++++++++++++++++++++++ src/components/Setting/components/User.vue | 14 +++++++++++-- 2 files changed, 36 insertions(+), 2 deletions(-) diff --git a/src/components/Setting/components/RunInfectionSetting.vue b/src/components/Setting/components/RunInfectionSetting.vue index 671efe4..00e38bd 100644 --- a/src/components/Setting/components/RunInfectionSetting.vue +++ b/src/components/Setting/components/RunInfectionSetting.vue @@ -296,6 +296,9 @@ const formatter1 = value => { return arr[0].val_lower_limit + '' } } + if (value == '') { + return '0' + } return value.replace(/^0+/gi, '') } @@ -314,6 +317,9 @@ const formatter2 = value => { return arr[0].val_lower_limit + '' } } + if (value == '') { + return '0' + } return value.replace(/^0+/gi, '') } @@ -332,6 +338,9 @@ const formatter3 = value => { return arr[0].val_lower_limit + '' } } + if (value == '') { + return '0' + } return value.replace(/^0+/gi, '') } @@ -350,6 +359,9 @@ const formatter4 = value => { return arr[0].val_lower_limit + '' } } + if (value == '') { + return '0' + } return value.replace(/^0+/gi, '') } @@ -368,6 +380,9 @@ const formatter6 = value => { return arr[0].val_lower_limit + '' } } + if (value == '') { + return '0' + } return value.replace(/^0+/gi, '') } @@ -386,6 +401,9 @@ const formatter7 = value => { return arr[0].val_lower_limit + '' } } + if (value == '') { + return '0' + } return value.replace(/^0+/gi, '') } @@ -404,6 +422,9 @@ const formatter9 = value => { return arr[0].val_lower_limit + '' } } + if (value == '') { + return '0' + } return value.replace(/^0+/gi, '') } @@ -422,6 +443,9 @@ const formatter10 = value => { return arr[0].val_lower_limit + '' } } + if (value == '') { + return '0' + } return value.replace(/^0+/gi, '') } diff --git a/src/components/Setting/components/User.vue b/src/components/Setting/components/User.vue index 2faf157..1799de7 100644 --- a/src/components/Setting/components/User.vue +++ b/src/components/Setting/components/User.vue @@ -92,7 +92,17 @@ v-for="item in userStore.userList" :key="item.uid" > -

{{ item.uid }}

+

+ {{ + `${item.uid}(${ + item.permission_level == 1 + ? '维护员' + : item.permission_level == 2 + ? '管理员' + : '用户' + })` + }} +

{ font-size: 12px; font-weight: 350; letter-spacing: 0.06em; - color: #dfdfdf; + color: #000; } .eye { width: 16px;