refactor: 优化仪表板下架逻辑,下架禁止查看

This commit is contained in:
wangjiahao 2022-05-19 18:16:33 +08:00
parent f0b9d02603
commit 9ae6b82113
2 changed files with 4 additions and 2 deletions

View File

@ -12,7 +12,8 @@ export function proxyInitPanelData(panelId, proxy, callback) {
id: response.data.id, id: response.data.id,
name: response.data.name, name: response.data.name,
privileges: response.data.privileges, privileges: response.data.privileges,
proxy: proxy.userId proxy: proxy.userId,
status: response.data
}) })
// 刷新联动信息 // 刷新联动信息
getPanelAllLinkageInfo(panelId, proxy).then(rsp => { getPanelAllLinkageInfo(panelId, proxy).then(rsp => {

View File

@ -43,7 +43,8 @@ export default {
this.$store.dispatch('panel/setPanelInfo', { this.$store.dispatch('panel/setPanelInfo', {
id: res.data.id, id: res.data.id,
name: res.data.name, name: res.data.name,
privileges: res.data.privileges privileges: res.data.privileges,
status: res.data.status
}) })
panelInit(JSON.parse(res.data.panelData), JSON.parse(res.data.panelStyle)) panelInit(JSON.parse(res.data.panelData), JSON.parse(res.data.panelStyle))