diff --git a/nezha-fronted/src/assets/css/common/checkbox.scss b/nezha-fronted/src/assets/css/common/checkbox.scss index 7bf2ac711..30f0d6d90 100644 --- a/nezha-fronted/src/assets/css/common/checkbox.scss +++ b/nezha-fronted/src/assets/css/common/checkbox.scss @@ -10,7 +10,7 @@ .el-checkbox__inner { width: 16px !important; height: 16px !important; - background-color: $--checkbox-background-color !important; + // background-color: $--checkbox-background-color !important; } .el-checkbox__inner::after { top: 2px; diff --git a/nezha-fronted/src/assets/css/components/index.scss b/nezha-fronted/src/assets/css/components/index.scss index 58b86386d..802f02b95 100644 --- a/nezha-fronted/src/assets/css/components/index.scss +++ b/nezha-fronted/src/assets/css/components/index.scss @@ -98,6 +98,7 @@ @import './page/dashboard/chartBox.scss'; @import './page/dashboard/panel.scss'; @import './page/monitor/project/project.scss'; +@import './page/tool/ping.scss'; @import './common/v-selectpagenew/selectpage.scss'; @import './common/paramBpx/paramBox.scss'; diff --git a/nezha-fronted/src/assets/css/components/page/tool/ping.scss b/nezha-fronted/src/assets/css/components/page/tool/ping.scss new file mode 100644 index 000000000..592faf907 --- /dev/null +++ b/nezha-fronted/src/assets/css/components/page/tool/ping.scss @@ -0,0 +1,125 @@ +.ping{ + .choose{ + width: 50px !important; + height: 36px !important; + line-height: 36px !important; + padding: 0 !important; + border-radius: 2px 0px 0px 2px !important; + border-right: none !important; + span{ + display: flex; + align-content: center; + justify-content: center; + } + i{ + font-size: 20px !important; + } + } + .btn{ + width: 50px !important; + height: 36px !important; + line-height: 36px !important; + padding: 0 !important; + border-radius: 0px 2px 2px 0px !important; + span{ + display: flex; + align-content: center; + justify-content: center; + } + i{ + font-size: 22px !important; + color: $--color-primary !important; + } + i.quadrate{ + display: inline-block; + width: 12px; + height: 12px; + background: $--color-primary; + } + } + + .nz-table2{ + height: calc(100% - 64px) !important; + .empty{ + width: 100%; + height: 100%; + display: flex; + justify-content: center; + align-items: center; + .el-steps{ + width: 620px; + } + .el-step__icon{ + width: 64px; + height: 64px; + border: 1px solid $--border-color-light; + background-color: $--background-color-empty; + } + .el-step__line{ + top: 32px; + height: 1px; + } + span{ + color: #BEBEBE; + } + .nz-icon-edit{ + font-size: 26px; + } + .el-icon-more{ + font-size: 22px; + } + .msg{ + font-size: 18px; + } + .txt{ + color: $--color-text-regular; + } + } + .data-wrap{ + height: 100%; + .data-top{ + width: 100%; + padding-left: 15px; + box-sizing: border-box; + height: 36px; + line-height: 36px; + border: 1px solid $--border-color-light; + margin-bottom: 14px; + span{ + color: $--color-text-primary; + margin-right: 30px; + font-size: 14px; + font-weight: 500; + font-weight: bold; + } + } + .data-bottom{ + height: calc(100% - 50px) !important; + .details{ + padding: 20px; + } + } + } + } +} + +.wrap{ + .el-input,.el-input__inner{ + height: 100%; + } + .el-input-group__append{ + color: $--color-text-primary; + } +} +.pop-tit{ + font-size: 14px; + color: $--color-text-primary; + line-height: 40px; +} +.pop-list-wrap{ + border: 1px solid $--button-light-border-color !important; +} +.pop-list{ + max-height: 144px; + overflow-y: auto; +} \ No newline at end of file diff --git a/nezha-fronted/src/components/common/js/constants.js b/nezha-fronted/src/components/common/js/constants.js index 12728adf0..9e1212558 100644 --- a/nezha-fronted/src/components/common/js/constants.js +++ b/nezha-fronted/src/components/common/js/constants.js @@ -367,7 +367,8 @@ export const fromRoute = { link: 'link', ipam: 'ipam', apiKey: 'apiKey', - chartTemp: 'chartTemp' + chartTemp: 'chartTemp', + ping: 'ping' } export const chartdatasource = [ diff --git a/nezha-fronted/src/components/common/table/settings/pingTable.vue b/nezha-fronted/src/components/common/table/settings/pingTable.vue new file mode 100644 index 000000000..f0be62ad3 --- /dev/null +++ b/nezha-fronted/src/components/common/table/settings/pingTable.vue @@ -0,0 +1,94 @@ + + + + + + {{row.raw}} + + + + + + {{item.label}} + + + + + + + + {{scope.row[item.prop]}} + - + + + + + + + + No results found + + + + + + + diff --git a/nezha-fronted/src/components/page/tool/ping.vue b/nezha-fronted/src/components/page/tool/ping.vue new file mode 100644 index 000000000..ed9bc0c9d --- /dev/null +++ b/nezha-fronted/src/components/page/tool/ping.vue @@ -0,0 +1,256 @@ + + + + + + + + {{$t('overall.dc')}} + + + {{$t('overall.all')}} + + + + + {{item.name}} + + + + + + + {{$t('ping.timeOut')}} + + + {{$t('config.system.basic.second')}} + + + + + + + + + + + + + + + + + + + + + + + + {{$t('overall.placeHolder')}} IP/Hostname + + + + {{$t('ping.filter')}} + + + Ping + Ping {{$t('config.terminallog.cmd.cmd')}} + + + + + + + IP {{$t('ping.total')}}:{{total}} + {{$t('ping.done')}}:{{tableData.length}} + {{$t('ping.progress')}}:{{parseInt(tableData.length/total*100)}}% + + + + + + + + + + + + + diff --git a/nezha-fronted/src/router/index.js b/nezha-fronted/src/router/index.js index 689e1eb13..778fd1e9a 100644 --- a/nezha-fronted/src/router/index.js +++ b/nezha-fronted/src/router/index.js @@ -193,6 +193,10 @@ export default new Router({ { path: '/chartTemp', component: resolve => require(['../components/page/config/template/chartTemp.vue'], resolve) + }, + { + path: '/ping', + component: resolve => require(['../components/page/tool/ping.vue'], resolve) } ] }
{{row.raw}}
{{$t('overall.dc')}}
{{$t('overall.placeHolder')}} IP/Hostname
{{$t('ping.filter')}}
Ping {{$t('config.terminallog.cmd.cmd')}}