NEZ-2681 fix:修改集成页面panel为dashboard
This commit is contained in:
@@ -38,7 +38,8 @@
|
|||||||
}
|
}
|
||||||
.integration-icon{
|
.integration-icon{
|
||||||
margin-top: 30px;
|
margin-top: 30px;
|
||||||
width: 50px;
|
width: auto;
|
||||||
|
max-width: 100%;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
.integration-name{
|
.integration-name{
|
||||||
@@ -119,7 +120,7 @@
|
|||||||
line-height: 0;
|
line-height: 0;
|
||||||
img{
|
img{
|
||||||
width: 72px;
|
width: 72px;
|
||||||
height: 72px;
|
height: auto;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.integration-dialog-introduce{
|
.integration-dialog-introduce{
|
||||||
|
|||||||
@@ -18,8 +18,8 @@
|
|||||||
<chart-list
|
<chart-list
|
||||||
ref="chartList"
|
ref="chartList"
|
||||||
:variablesInit="variablesInit"
|
:variablesInit="variablesInit"
|
||||||
name="panel"
|
name="dashboard"
|
||||||
:panelId="showPanel.id"
|
:dashboardId="showPanel.id"
|
||||||
:data-list="dataList"
|
:data-list="dataList"
|
||||||
:is-export-html="false"
|
:is-export-html="false"
|
||||||
:nowTimeType="nowTimeType"
|
:nowTimeType="nowTimeType"
|
||||||
@@ -77,7 +77,7 @@ export default {
|
|||||||
// ---图表相关参数--start
|
// ---图表相关参数--start
|
||||||
dataList: [], // 数据列表
|
dataList: [], // 数据列表
|
||||||
filter: { // 过滤条件
|
filter: { // 过滤条件
|
||||||
panelId: -1,
|
dashboardId: -1,
|
||||||
start_time: '',
|
start_time: '',
|
||||||
end_time: ''
|
end_time: ''
|
||||||
},
|
},
|
||||||
@@ -131,7 +131,7 @@ export default {
|
|||||||
getData (params) {
|
getData (params) {
|
||||||
this.dataList = []
|
this.dataList = []
|
||||||
this.chartListLoading = true
|
this.chartListLoading = true
|
||||||
this.$get('visual/panel/chart?panelId=' + params.panelId + '&groupId=0' + '&pageSize=-1').then(response => {
|
this.$get('visual/dashboard/chart?dashboardId=' + params.dashboardId + '&groupId=0' + '&pageSize=-1').then(response => {
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.chartListLoading = false
|
this.chartListLoading = false
|
||||||
this.dataList = response.data.list.map(item => {
|
this.dataList = response.data.list.map(item => {
|
||||||
@@ -145,11 +145,11 @@ export default {
|
|||||||
},
|
},
|
||||||
// 公用操作
|
// 公用操作
|
||||||
getTableData () {
|
getTableData () {
|
||||||
this.$get('visual/panel', { type: 'template', ids: this.tempId }).then(response => {
|
this.$get('visual/dashboard', { type: 'template', ids: this.tempId }).then(response => {
|
||||||
if (response.code === 200) {
|
if (response.code === 200) {
|
||||||
this.panelData = response.data.list
|
this.panelData = response.data.list
|
||||||
if (this.panelData.length > 0) {
|
if (this.panelData.length > 0) {
|
||||||
this.filter.panelId = this.panelData[0].id
|
this.filter.dashboardId = this.panelData[0].id
|
||||||
this.showPanel = this.$loadsh.cloneDeep(this.panelData[0])
|
this.showPanel = this.$loadsh.cloneDeep(this.panelData[0])
|
||||||
this.variables = this.$loadsh.get(this.panelData, '[0].param.variables')
|
this.variables = this.$loadsh.get(this.panelData, '[0].param.variables')
|
||||||
this.getData(this.filter)
|
this.getData(this.filter)
|
||||||
@@ -177,7 +177,7 @@ export default {
|
|||||||
this.getTableData()
|
this.getTableData()
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
// 监听图表联动配置panelId
|
// 监听图表联动配置
|
||||||
'showPanel.param.chartShare': {
|
'showPanel.param.chartShare': {
|
||||||
handler (value) {
|
handler (value) {
|
||||||
// 每次切换联动模式 tooltip设置显示
|
// 每次切换联动模式 tooltip设置显示
|
||||||
|
|||||||
Reference in New Issue
Block a user