diff --git a/nezha-fronted/src/assets/css/font/iconfont.css b/nezha-fronted/src/assets/css/font/iconfont.css index 6cd64766e..00d107d99 100644 --- a/nezha-fronted/src/assets/css/font/iconfont.css +++ b/nezha-fronted/src/assets/css/font/iconfont.css @@ -1,8 +1,8 @@ @font-face { font-family: "nz-icon"; /* Project id 2030432 */ - src: url('iconfont.woff2?t=1629768382494') format('woff2'), - url('iconfont.woff?t=1629768382494') format('woff'), - url('iconfont.ttf?t=1629768382494') format('truetype'); + src: url('iconfont.woff2?t=1631239483571') format('woff2'), + url('iconfont.woff?t=1631239483571') format('woff'), + url('iconfont.ttf?t=1631239483571') format('truetype'); } .nz-icon { @@ -13,6 +13,18 @@ -moz-osx-font-smoothing: grayscale; } +.nz-icon-dingshishijian:before { + content: "\e73f"; +} + +.nz-icon-a-rilizhou:before { + content: "\e740"; +} + +.nz-icon-guzhangshuju:before { + content: "\e741"; +} + .nz-icon-Metrics:before { content: "\e73d"; } diff --git a/nezha-fronted/src/assets/css/font/iconfont.ttf b/nezha-fronted/src/assets/css/font/iconfont.ttf index 4496d31aa..4e01758f9 100644 Binary files a/nezha-fronted/src/assets/css/font/iconfont.ttf and b/nezha-fronted/src/assets/css/font/iconfont.ttf differ diff --git a/nezha-fronted/src/assets/css/font/iconfont.woff b/nezha-fronted/src/assets/css/font/iconfont.woff index 1d1f10024..87f7024b7 100644 Binary files a/nezha-fronted/src/assets/css/font/iconfont.woff and b/nezha-fronted/src/assets/css/font/iconfont.woff differ diff --git a/nezha-fronted/src/assets/css/font/iconfont.woff2 b/nezha-fronted/src/assets/css/font/iconfont.woff2 index 3448462ca..85302bbe1 100644 Binary files a/nezha-fronted/src/assets/css/font/iconfont.woff2 and b/nezha-fronted/src/assets/css/font/iconfont.woff2 differ diff --git a/nezha-fronted/src/assets/css/nzIcon.css b/nezha-fronted/src/assets/css/nzIcon.css index fe97504e9..f80c173c5 100644 --- a/nezha-fronted/src/assets/css/nzIcon.css +++ b/nezha-fronted/src/assets/css/nzIcon.css @@ -1,8 +1,8 @@ @font-face { font-family: "nz-icon"; /* Project id 2030432 */ - src: url('./font/iconfont.woff2?t=1629768382494') format('woff2'), - url('./font/iconfont.woff?t=1629768382494') format('woff'), - url('./font/iconfont.ttf?t=1629768382494') format('truetype'); + src: url('./font/iconfont.woff2?t=1631239483571') format('woff2'), + url('./font/iconfont.woff?t=1631239483571') format('woff'), + url('./font/iconfont.ttf?t=1631239483571') format('truetype'); } .nz-icon { @@ -13,6 +13,18 @@ -moz-osx-font-smoothing: grayscale; } +.nz-icon-dingshishijian:before { + content: "\e73f"; +} + +.nz-icon-a-rilizhou:before { + content: "\e740"; +} + +.nz-icon-guzhangshuju:before { + content: "\e741"; +} + .nz-icon-Metrics:before { content: "\e73d"; } diff --git a/nezha-fronted/src/components/common/language/cn.js b/nezha-fronted/src/components/common/language/cn.js index c110a1f31..86e350836 100644 --- a/nezha-fronted/src/components/common/language/cn.js +++ b/nezha-fronted/src/components/common/language/cn.js @@ -1806,14 +1806,21 @@ const cn = { source: '来源', twoFactorAuthentication: '双因子认证' }, - week:{ + week: { Mon: '周一', Tue: '周二', Wed: '周三', Thu: '周四', Fri: '周五', Sat: '周六', - Sun: '周日' + Sun: '周日', + MonAbbreviation: '周一', + TueAbbreviation: '周二', + WedAbbreviation: '周三', + ThuAbbreviation: '周四', + FriAbbreviation: '周五', + SatAbbreviation: '周六', + SunAbbreviation: '周日' }, ...zhLocale } diff --git a/nezha-fronted/src/components/common/language/en.js b/nezha-fronted/src/components/common/language/en.js index 2375178ec..992bda6e7 100644 --- a/nezha-fronted/src/components/common/language/en.js +++ b/nezha-fronted/src/components/common/language/en.js @@ -1695,7 +1695,14 @@ const en = { Thu: 'Thursday', Fri: 'Friday', Sat: 'Saturday', - Sun: 'Sunday' + Sun: 'Sunday', + MonAbbreviation: 'Mon', + TueAbbreviation: 'Tue', + WedAbbreviation: 'Wed', + ThuAbbreviation: 'Thu', + FriAbbreviation: 'Fri', + SatAbbreviation: 'Sat', + SunAbbreviation: 'Sun' }, ...enLocale } diff --git a/nezha-fronted/src/components/common/table/alert/alertMessageTable.vue b/nezha-fronted/src/components/common/table/alert/alertMessageTable.vue index 756f1a5ab..9b120cb0a 100644 --- a/nezha-fronted/src/components/common/table/alert/alertMessageTable.vue +++ b/nezha-fronted/src/components/common/table/alert/alertMessageTable.vue @@ -114,8 +114,8 @@ + {{$t('alert.config.trbShot')}} {{$t('overall.delete')}} - {{$t('alert.config.trbShot')}} {{$t('overall.silenceAlert')}} diff --git a/nezha-fronted/src/components/common/table/alert/alertRuleTable.vue b/nezha-fronted/src/components/common/table/alert/alertRuleTable.vue index 684f3bc54..51f6e31ae 100644 --- a/nezha-fronted/src/components/common/table/alert/alertRuleTable.vue +++ b/nezha-fronted/src/components/common/table/alert/alertRuleTable.vue @@ -65,13 +65,29 @@ placement="right" trigger="hover" :open-delay="300" + :width="225" + popper-class="schedEnableTitle" >
-
Schedule : {{scope.row.schedEnable ? $t('dashboard.panel.chartForm.lockList.on') : $t('dashboard.panel.chartForm.lockList.off')}}
+
+ Schedule : + +
-
Effective configuration:
-
{{weekStr(scope.row.schedDays)}}
-
{{scope.row.schedStime+' - '+scope.row.schedEtime}}
+
Effective configuration:
+
+ + +
+
{{scope.row.schedStime+' - '+scope.row.schedEtime}}
{ if (!item) return - if (index === arr.length - 1) { - str += this.weekList[item - 1].label - } else { - str += this.weekList[item - 1].label + ', ' - } + str += `${this.weekList[item - 1].label}` }) return str } @@ -287,4 +299,28 @@ export default { color: #FFFFFF; padding: 2px 6px; } +.schedEnableTitle{ + padding: 15px 20px; +} +.schedEnableTitle .nz-icon-a-rilizhou, .schedEnableTitle .nz-icon-dingshishijian{ + font-size: 14px; + color: #FA901C; + margin-right: 12px; +} +.schedEnableTitle .week-item{ + width: 32px; + height: 22px; + line-height: 22px; + opacity: 0.9; + background: #F7F7FA; + border-radius: 2px; + display: inline-block; + font-size: 12px; + color: #666666; + letter-spacing: 0; + font-weight: 400; + padding-left: 3px; + margin-right: 12px; + margin-bottom: 6px; + }