diff --git a/src/components/rightBox/settings/ChartBox.vue b/src/components/rightBox/settings/ChartBox.vue new file mode 100644 index 00000000..044adf1f --- /dev/null +++ b/src/components/rightBox/settings/ChartBox.vue @@ -0,0 +1,382 @@ + + + + {{editObject.id ? $t('config.chart.edit') : $t('config.chart.add')}} + + + + + + + + + + + + + + + + + + { this.$forceUpdate() }"> + + + {{ item.label }}{{ item.remark }} + + + + + + + + + + + + + + + + + + + + { this.$forceUpdate() }"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/table/settings/ChartTable.vue b/src/components/table/settings/ChartTable.vue new file mode 100644 index 00000000..18794378 --- /dev/null +++ b/src/components/table/settings/ChartTable.vue @@ -0,0 +1,177 @@ + + + + + + + {{item.label}} + + + + + + {{$t(scope.row.i18n)}} + + + {{scope.row.name}} + + + - + + + + + {{$t('config.chart.buildIn.yes')}} + + + {{$t('config.chart.buildIn.no')}} + + + {{scope.row[item.prop]}} + + + + + {{$t('trafficSummary.trafficSummary')}} + + + {{$t('networkAppPerformance.networkAppPerformance')}} + + + {{$t('dnsServiceInsights.dnsServiceInsights')}} + + + {{$t('entities.ipEntityDetail')}} + + + {{$t('entities.domainEntityDetail')}} + + + {{$t('entities.appEntityDetail')}} + + + {{scope.row[item.prop]}} + + + {{scope.row[item.prop]}} + + + + + {{$t('overall.option')}} + + + + + + + + + + + {{$t('overall.delete')}} + + + + + + + + + + diff --git a/src/mixins/dataList.js b/src/mixins/dataList.js index ed261072..b9581603 100644 --- a/src/mixins/dataList.js +++ b/src/mixins/dataList.js @@ -69,7 +69,11 @@ export default { this.searchLabel = { ...this.searchLabel, ...this.pageObj } this.tools.loading = true delete this.searchLabel.total - get(this.url, this.searchLabel).then(response => { + let listUrl = this.url + if (this.listUrl) { + listUrl = this.listUrl + } + get(listUrl, this.searchLabel).then(response => { this.tools.loading = false if (response.code === 200) { for (let i = 0; i < response.data.list.length; i++) { diff --git a/src/router/index.js b/src/router/index.js index eb35f671..14ac931d 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -37,6 +37,10 @@ const routes = [ { path: '/galaxyProxy', component: () => import('@/views/settings/GalaxyProxy') + }, + { + path: '/chart', + component: () => import('@/views/settings/Chart') } ] } diff --git a/src/utils/api.js b/src/utils/api.js index 5154d77a..93c07e18 100644 --- a/src/utils/api.js +++ b/src/utils/api.js @@ -16,6 +16,7 @@ export const api = { role: '/sys/role', galaxyProxy: '/galaxy/setting', operationLog: '/sys/log', + chartList: '/visual/chart/list', // 业务 panel: '/visual/panel', chart: '/visual/chart', diff --git a/src/utils/constants.js b/src/utils/constants.js index 3e63a9f4..f365fe8f 100644 --- a/src/utils/constants.js +++ b/src/utils/constants.js @@ -30,7 +30,8 @@ export const fromRoute = { networkAppPerformance: 'networkAppPerformance', dnsServiceInsights: 'dnsServiceInsights', user: 'user', - galaxyProxy: 'galaxyProxy' + galaxyProxy: 'galaxyProxy', + chart: 'chart' } /* panel类别和名称之间的映射 */ diff --git a/src/views/settings/Chart.vue b/src/views/settings/Chart.vue new file mode 100644 index 00000000..72e2edf3 --- /dev/null +++ b/src/views/settings/Chart.vue @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + +