diff --git a/nezha-fronted/src/assets/css/main.css b/nezha-fronted/src/assets/css/main.css index e5ef35ca2..13a101a49 100644 --- a/nezha-fronted/src/assets/css/main.css +++ b/nezha-fronted/src/assets/css/main.css @@ -3,6 +3,10 @@ padding: 0; } +[v-cloak] { + display: none; +} + body { height: 100%; } @@ -42,6 +46,9 @@ html { height: 1px; background: #C0C4CC; } +.right-child-box .line-100 { + background: #DCDFE6; +} /*侧滑文字*/ .el-form-item .el-form-item__label{ font-size: 10px; @@ -213,9 +220,13 @@ html { } /*此处自定义弹框尺寸,不同功能可能需要的尺寸不一样,需自行添加*/ -.right-box-account, .right-box-prom, .right-box-alert-config, .right-box-endpoint { +.right-box-account, .right-box-prom, .right-box-alert-config, .right-box-project, .right-box-module, .right-box-edit-endpoint { width: 520px; height: calc(100% - 100px); +} +.right-box-add-endpoint { + width: 720px; + height: calc(100% - 100px); } /* begin--右侧弹框--顶部按钮*/ .right-box-top-btns { @@ -251,6 +262,7 @@ html { } .right-box-form { margin-top: 30px; + height: 100%; } .right-box-form-row { margin-top: 16px; @@ -343,7 +355,7 @@ html { /* end--右侧弹框--底部按钮*/ /* end--右侧弹框*/ /* begin--endpoint->子弹框asset搜索框前缀和后缀*/ -.right-sub-box .el-input-group__append, .right-sub-box .el-input-group__prepend { +.right-sub-box .el-input-group__append, .right-sub-box .el-input-group__prepend, .assets-box .el-input-group__append, .assets-box .el-input-group__prepend { background-color: #656565; color: white; vertical-align: middle; @@ -353,12 +365,6 @@ html { border: none; font-size: 13px; } -.right-sub-box .el-input-group__prepend { - border-radius: 4px 0 0 4px; -} -.right-sub-box .el-input-group__append { - border-radius: 0 4px 4px 0; -} /* end--endpoint->子弹框asset搜索框前缀和后缀*/ /* begin--自定义可编辑的el-select下拉框样式*/ .config-dropdown { diff --git a/nezha-fronted/src/components/common/header.vue b/nezha-fronted/src/components/common/header.vue index 83b7f74fc..7ff0ead9f 100644 --- a/nezha-fronted/src/components/common/header.vue +++ b/nezha-fronted/src/components/common/header.vue @@ -15,7 +15,7 @@ - + - +
{{$t('alert.alertList')}}
- +
{{$t('alert.alertConfig')}}
@@ -109,7 +109,7 @@ - + @@ -184,7 +184,7 @@ export default { this.$refs.moduleBox.show(true); this.editModule = {id: '', name: '', project: this.$store.state.currentProject, port: '', path: '', param: '', paramObj: []}; } else if (item.type == 3) { - //this.$refs.endpointBox.show(true); + this.$refs.addEndpointBox.show(true); } }, jumpToAsset(data, id) { diff --git a/nezha-fronted/src/components/common/pagination.vue b/nezha-fronted/src/components/common/pagination.vue index bc6052c46..95dbc8e87 100644 --- a/nezha-fronted/src/components/common/pagination.vue +++ b/nezha-fronted/src/components/common/pagination.vue @@ -7,6 +7,7 @@ @prev-click="prev" @next-click="next" @current-change="current" + :current-page="pageObj.pageNo" :page-sizes="[20, 50, 100, 300]" :page-size="20" layout="prev, pager, next, jumper, sizes, total" @@ -48,6 +49,7 @@ export default { this.list = this.$refs.page.$el.children[2].children; for (let i = 0; i < this.list.length; i++) { const element = this.list[i]; + console.info(element) } }, } diff --git a/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue b/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue new file mode 100644 index 000000000..c10d2b3d4 --- /dev/null +++ b/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue @@ -0,0 +1,502 @@ + + + + + diff --git a/nezha-fronted/src/components/common/rightBox/endpointBox.vue b/nezha-fronted/src/components/common/rightBox/editEndpointBox.vue similarity index 92% rename from nezha-fronted/src/components/common/rightBox/endpointBox.vue rename to nezha-fronted/src/components/common/rightBox/editEndpointBox.vue index c1036c561..0a7446b1e 100644 --- a/nezha-fronted/src/components/common/rightBox/endpointBox.vue +++ b/nezha-fronted/src/components/common/rightBox/editEndpointBox.vue @@ -1,6 +1,6 @@