diff --git a/nezha-fronted/src/components/common/dcConfig.vue b/nezha-fronted/src/components/common/dcConfig.vue index a0b20b171..c4bad16eb 100644 --- a/nezha-fronted/src/components/common/dcConfig.vue +++ b/nezha-fronted/src/components/common/dcConfig.vue @@ -1,6 +1,6 @@ @@ -313,6 +318,7 @@ tabShow: false, tabView: true, tagType: 'add', + module: {}, form: { name: '' }, @@ -384,6 +390,13 @@ }, methods: { + openModuleBox(module) { + this.module = module; + this.$refs.moduleBox.show(true); + }, + getAssetModuleList(id) { + this.$refs['moduleListPop' + id][0].getModuleList(); + }, elementsetShow(s, e) { var eventfixed = { shezhi: 0, @@ -665,11 +678,11 @@ .tab-input-square { border: 1px solid #1166bb; - height: 25px; - width: 65px; + height: 22px; + width: 50px; border-radius: 3px; text-align: center; - line-height: 23px; + line-height: 20px; } .account-list-option { diff --git a/nezha-fronted/src/components/page/asset/moduleListPop.vue b/nezha-fronted/src/components/page/asset/moduleListPop.vue new file mode 100644 index 000000000..ba883ca2a --- /dev/null +++ b/nezha-fronted/src/components/page/asset/moduleListPop.vue @@ -0,0 +1,75 @@ + + + + + diff --git a/nezha-fronted/src/main.js b/nezha-fronted/src/main.js index d3f97b005..083af5676 100644 --- a/nezha-fronted/src/main.js +++ b/nezha-fronted/src/main.js @@ -28,6 +28,7 @@ import assetEditUnit from "./components/page/asset/assetEditUnit"; //资产添 import alertConfigBox from "./components/common/rightBox/alertConfigBox"; //告警规则弹框组件 import dcConfigBox from "./components/common/dcConfig"; //idc配置弹框组件 import panelBox from "./components/common/rightBox/panelBox"; //面板弹框组件 +import moduleListPop from "./components/page/asset/moduleListPop"; //面板弹框组件 Vue.component("Pagination", Pagination); Vue.component("searchInput", searchInput); @@ -41,6 +42,7 @@ Vue.component("assetEditUnit", assetEditUnit); Vue.component("alert-config-box", alertConfigBox); Vue.component("idc-config-box", dcConfigBox); Vue.component("panel-box", panelBox); +Vue.component("module-list-pop", moduleListPop); Vue.prototype.$axios = axios; Vue.prototype.$post = post;