feat:替换panel接口 添加group(50%)

This commit is contained in:
zhangyu
2021-04-07 11:21:12 +08:00
parent 2b61063b44
commit d7a7f31c1c
14 changed files with 2168 additions and 42 deletions

View File

@@ -238,7 +238,7 @@ export default {
cancelButtonText: this.$t('tip.no'),
type: 'warning'
}).then(() => {
this.$delete('panel?ids=' + u.id).then(response => {
this.$delete('visual/panel?ids=' + u.id).then(response => {
if (response.code === 200) {
this.$message({
duration: 1000,
@@ -317,7 +317,7 @@ export default {
cancelButtonText: this.$t('tip.no'),
type: 'warning'
}).then(() => {
this.$delete('panel/' + data.panelId + '/charts?ids=' + data.id).then(response => {
this.$delete('visual/panel/chart?ids=' + data.id).then(response => {
if (response.code === 200) {
this.$message({
duration: 2000,
@@ -434,7 +434,7 @@ export default {
if (!this.hasButton('panel_view')) {
return
}
this.$get('panel').then(response => {
this.$get('visual/panel?pageSize=-1').then(response => {
if (response.code === 200) {
this.panelData = response.data.list
for (let i = 0; i < this.panelData.length; i++) {
@@ -450,7 +450,7 @@ export default {
getTableData (clearShowPanel) {
const vm = this
this.$get('panel?type=dashboard').then(response => {
this.$get('visual/panel?type=dashboard&pageSize=-1').then(response => {
if (response.code === 200) {
this.panelData = response.data.list
let isInitData = false