diff --git a/src/components/charts/chart-options.js b/src/components/charts/chart-options.js index 1e85a4eb..4e36265a 100644 --- a/src/components/charts/chart-options.js +++ b/src/components/charts/chart-options.js @@ -384,6 +384,18 @@ export function isTitle (type) { export function isTabs (type) { return type === 91 } +/* IP实体基本信息 */ +export function isIpBasicInfo (type) { + return type === 4 +} +/* IP实体开放端口 */ +export function isIpOpenPort (type) { + return type === 22 +} +/* IP实体托管域名 */ +export function isIpHostedDomain (type) { + return type === 33 +} export function getOption (type) { const mapping = typeOptionMappings.find(m => m.value === type) return mapping && mapping.option ? _.cloneDeep(mapping.option) : null diff --git a/src/components/charts/panel.scss b/src/components/charts/panel.scss index c338e540..60081c26 100644 --- a/src/components/charts/panel.scss +++ b/src/components/charts/panel.scss @@ -532,7 +532,6 @@ align-items: center; padding-left: 20px; font-size: 20px; - font-weight: bold; .title__icon-circle { display: flex; @@ -544,18 +543,24 @@ background-color: #B8C1D1; i { - background-color: white; - font-size: 17px; + color: white; + font-size: 20px; } } .title__name { padding-left: 10px; + color: #333; } } .detail-header__operation { display: flex; align-items: end; + .panel__time { + display: flex; + padding: 0 30px 10px 0; + } + & > .el-tabs > .el-tabs__header { // header背景色 margin: 0 0 -1px 0; @@ -617,9 +622,6 @@ .el-dialog__body { height: 100%; padding: 0; - .panel__time { - display: none; - } } } .option-popper { diff --git a/src/views/charts/Panel.vue b/src/views/charts/Panel.vue index 386c3a81..77058d8e 100644 --- a/src/views/charts/Panel.vue +++ b/src/views/charts/Panel.vue @@ -38,14 +38,16 @@ - + @@ -91,7 +93,7 @@ export default { }, async mounted () { await this.init() - this.currentTab = this.detailTabs[0].id + this.currentTab = this.detailTabs[0].id + '' }, setup (props, ctx) { // data @@ -134,10 +136,9 @@ export default { } } }, - changeTab (i) { - this.currentTab = this.detailTabs[i].id - this.detailChartList = this.detailTabs[i].children - this.init() + changeTab ({ index }) { + this.currentTab = this.detailTabs[index].id + '' + this.detailChartList = this.detailTabs[index].children }, recursionParamsConvert (chart) { chart.params = chart.params ? JSON.parse(chart.params) : null