diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue b/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue index 05ecb8f70..ce7302aaf 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/panelTabNew.vue @@ -155,6 +155,8 @@ + + @@ -175,6 +177,8 @@ import { randomcolor } from '@/components/common/js/radomcolor/randomcolor' import htmlToPdfMixin from '@/components/common/mixin/htmlToPdfMixin' import exportHtmlMixin from '@/components/common/mixin/exportHtml' import panelVariables from '@/components/common/panel/panelVariables' +import snapshotProgress from '@/components/common/snapshotProgress/snapshotProgress.vue' + export default { name: 'panelTabNew', mixins: [subDataListMixin, detailViewRightMixin, htmlToPdfMixin, exportHtmlMixin], @@ -311,7 +315,8 @@ export default { nowTimeType: {}, chartDetailInfo: {}, variables: [], - variablesInit: false + variablesInit: false, + snapshotVisible: false } }, components: { @@ -320,7 +325,8 @@ export default { nzBottomDataList, topToolMoreOptions, chartTempBox, - panelVariables // 处理panel变量的组件 + panelVariables, // 处理panel变量的组件 + snapshotProgress // 快照进度 }, methods: { // 刷新 @@ -844,7 +850,7 @@ export default { if (type === 'PDF') { this.htmlToPdf() } else { - this.exportToHtml(this.obj.name) + this.snapshotVisible = true } }, getPanelData () { diff --git a/nezha-fronted/src/components/common/popBox/topToolMoreOptions.vue b/nezha-fronted/src/components/common/popBox/topToolMoreOptions.vue index 53918b308..133041853 100644 --- a/nezha-fronted/src/components/common/popBox/topToolMoreOptions.vue +++ b/nezha-fronted/src/components/common/popBox/topToolMoreOptions.vue @@ -108,7 +108,7 @@
{{$t('export.records')}} - + {{item.name}} ({{deleteObjs.length}}) @@ -276,7 +276,7 @@ export default { exportBoxShow: { type: Boolean, default: false }, - type:String + type: String }, computed: { language () { return this.$store.getters.getLanguage }, @@ -284,6 +284,10 @@ export default { isDashboard () { return this.importUrl === '/visual/panel/import' }, + // asset,endpoint dashboard导出选项不支持 all data + assetOrEndpoint () { + return this.paramsType === 'asset' || this.paramsType === 'endpoint' + }, // 是否同步更新关联的dashboard showSyncDashboard () { // asset endpoint model @@ -648,7 +652,7 @@ export default { if (this.paramsType) { params.type = this.paramsType } - if (params.from == 'asset') { + if (this.assetOrEndpoint) { delete params.type delete params.from } @@ -702,6 +706,10 @@ export default { showImportBox (type) { this.importBox.show = true this.importBox.type = type + + if (this.assetOrEndpoint) { + this.importBox.record = 'current' + } // isDashboard 只支持JSON if (this.isDashboard) { this.importBox.format = 3 diff --git a/nezha-fronted/src/components/common/rightBox/asset/assetBatchEditBox.vue b/nezha-fronted/src/components/common/rightBox/asset/assetBatchEditBox.vue index 0c055a02c..d50afdbf0 100644 --- a/nezha-fronted/src/components/common/rightBox/asset/assetBatchEditBox.vue +++ b/nezha-fronted/src/components/common/rightBox/asset/assetBatchEditBox.vue @@ -194,17 +194,18 @@
{{$t('overall.select')}}
- +
{{$t('validate.required')}}
@@ -446,6 +447,10 @@ export default { if (this.editData.editType === assetConstants.editTypeData.account) { searchLabel.authProtocol = this.editData.authProtocol } + // type为SNMP时 筛选掉不支持SNMP的资产 + if (this.editData.editType === assetConstants.editTypeData.snmpCredential) { + searchLabel.snmpEnable = 1 + } this.$get(this.url, { ...searchLabel, ...this.transfer.pageObj }).then(response => { this.$refs.transfer.endLoading() if (response.code === 200) { @@ -489,7 +494,7 @@ export default { if (n !== assetConstants.editTypeData.account) { this.editData.authProtocol = 1 } else { - this.getTableData() + // this.getTableData() } } } diff --git a/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue b/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue index 3ed9642d7..894c2ab24 100644 --- a/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue +++ b/nezha-fronted/src/components/common/rightBox/chart/otherChartConfig.vue @@ -18,10 +18,11 @@ class="form-item--half-width" prop="type" > +
-
+
diff --git a/nezha-fronted/src/components/page/integration/integration.vue b/nezha-fronted/src/components/page/integration/integration.vue index efc56aed4..cfaec733a 100644 --- a/nezha-fronted/src/components/page/integration/integration.vue +++ b/nezha-fronted/src/components/page/integration/integration.vue @@ -11,7 +11,7 @@ -

{{$t('integration.availableIntegration')}}

+

{{$t('integration.availableIntegration')}}