forked from github/dataease
feat(系统管理-日志管理): pc查看仪表板记录日志-前端
This commit is contained in:
parent
aae72c991a
commit
94d9c537b7
@ -90,6 +90,15 @@ export function findOne(id) {
|
||||
})
|
||||
}
|
||||
|
||||
export function viewPanelLog(data) {
|
||||
return request({
|
||||
url: 'panel/group/viewLog',
|
||||
method: 'post',
|
||||
loading: true,
|
||||
data
|
||||
})
|
||||
}
|
||||
|
||||
export function getTable(id) {
|
||||
return request({
|
||||
url: '/panel/table/get/' + id,
|
||||
|
@ -71,7 +71,7 @@
|
||||
<script>
|
||||
import { loadTree, loadShareOutTree, removePanelShares } from '@/api/panel/share'
|
||||
import { uuid } from 'vue-uuid'
|
||||
import { initPanelData } from '@/api/panel/panel'
|
||||
import { initPanelData, viewPanelLog } from '@/api/panel/panel'
|
||||
import { proxyInitPanelData } from '@/api/panel/shareProxy'
|
||||
import bus from '@/utils/bus'
|
||||
|
||||
@ -134,14 +134,18 @@ export default {
|
||||
}
|
||||
const param = { userId: data.userId }
|
||||
proxyInitPanelData(data.id, param, function() {
|
||||
bus.$emit('set-panel-show-type', 1)
|
||||
bus.$emit('set-panel-share-user', data.userId)
|
||||
viewPanelLog({ panelId: data.id }).then(res => {
|
||||
bus.$emit('set-panel-show-type', 1)
|
||||
bus.$emit('set-panel-share-user', data.userId)
|
||||
})
|
||||
})
|
||||
this.$refs['botTree'].setCurrentKey(null)
|
||||
},
|
||||
viewMyShare(data) {
|
||||
initPanelData(data.id, false, function() {
|
||||
bus.$emit('set-panel-show-type', 2)
|
||||
viewPanelLog({ panelId: data.id }).then(res => {
|
||||
bus.$emit('set-panel-show-type', 2)
|
||||
})
|
||||
})
|
||||
this.$refs['topTree'].setCurrentKey(null)
|
||||
},
|
||||
|
@ -31,7 +31,7 @@
|
||||
<script>
|
||||
import { deleteEnshrine, enshrineList } from '@/api/panel/enshrine'
|
||||
import { uuid } from 'vue-uuid'
|
||||
import { initPanelData } from '@/api/panel/panel'
|
||||
import { initPanelData, viewPanelLog } from '@/api/panel/panel'
|
||||
import bus from '@/utils/bus'
|
||||
|
||||
export default {
|
||||
@ -56,7 +56,9 @@ export default {
|
||||
methods: {
|
||||
showPanel(row) {
|
||||
initPanelData(row.panelGroupId, false, function() {
|
||||
bus.$emit('set-panel-show-type', 0)
|
||||
viewPanelLog({ panelId: row.panelGroupId }).then(res => {
|
||||
bus.$emit('set-panel-show-type', 0)
|
||||
})
|
||||
})
|
||||
},
|
||||
resetID(data) {
|
||||
|
@ -228,7 +228,7 @@ import LinkGenerate from '@/views/link/generate'
|
||||
import { uuid } from 'vue-uuid'
|
||||
import bus from '@/utils/bus'
|
||||
import EditPanel from './EditPanel'
|
||||
import { addGroup, delGroup, groupTree, defaultTree, initPanelData, panelUpdate } from '@/api/panel/panel'
|
||||
import { addGroup, delGroup, groupTree, defaultTree, initPanelData, panelUpdate, viewPanelLog } from '@/api/panel/panel'
|
||||
import { mapState } from 'vuex'
|
||||
import {
|
||||
DEFAULT_COMMON_CANVAS_STYLE_STRING
|
||||
@ -675,8 +675,10 @@ export default {
|
||||
// 清理pc布局缓存
|
||||
this.$store.commit('setComponentDataCache', null)
|
||||
initPanelData(data.id, false, function(response) {
|
||||
bus.$emit('set-panel-show-type', 0)
|
||||
data.mobileLayout = response.data.mobileLayout
|
||||
viewPanelLog({ panelId: data.id }).then(res => {
|
||||
bus.$emit('set-panel-show-type', 0)
|
||||
data.mobileLayout = response.data.mobileLayout
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user