commit
762285d5f2
@ -159,7 +159,7 @@ public class PanelGroupService {
|
|||||||
panelGroupRequest.setUserId(userId);
|
panelGroupRequest.setUserId(userId);
|
||||||
panelGroupRequest.setIsAdmin(AuthUtils.getUser().getIsAdmin());
|
panelGroupRequest.setIsAdmin(AuthUtils.getUser().getIsAdmin());
|
||||||
List<PanelGroupDTO> panelGroupDTOList = extPanelGroupMapper.panelGroupList(panelGroupRequest);
|
List<PanelGroupDTO> panelGroupDTOList = extPanelGroupMapper.panelGroupList(panelGroupRequest);
|
||||||
return TreeUtils.mergeTree(panelGroupDTOList, "panel_list");
|
return TreeUtils.mergeTree(panelGroupDTOList, "0");
|
||||||
}
|
}
|
||||||
|
|
||||||
public List<PanelGroupDTO> defaultTree(PanelGroupRequest panelGroupRequest) {
|
public List<PanelGroupDTO> defaultTree(PanelGroupRequest panelGroupRequest) {
|
||||||
|
|||||||
@ -62,7 +62,6 @@
|
|||||||
:is-relation="isRelation"
|
:is-relation="isRelation"
|
||||||
:element="element"
|
:element="element"
|
||||||
:in-draw="inDraw"
|
:in-draw="inDraw"
|
||||||
:in-screen="inScreen"
|
|
||||||
@filter-loaded="filterLoaded"
|
@filter-loaded="filterLoaded"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@ -201,7 +201,8 @@
|
|||||||
<span class="header-title">
|
<span class="header-title">
|
||||||
{{ $t('panel.panel_list') }}
|
{{ $t('panel.panel_list') }}
|
||||||
<el-button
|
<el-button
|
||||||
style="float: right; padding-right: 7px; margin-top: -8px"
|
v-if="hasDataPermission('manage', rootAuth)"
|
||||||
|
style="float: right; padding-right: 7px; margin-top: -8px; height: 12px"
|
||||||
icon="el-icon-plus"
|
icon="el-icon-plus"
|
||||||
type="text"
|
type="text"
|
||||||
@click="showEditPanel(newFolder)"
|
@click="showEditPanel(newFolder)"
|
||||||
@ -534,6 +535,7 @@ export default {
|
|||||||
mixins: [msgCfm],
|
mixins: [msgCfm],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
rootAuth: '',
|
||||||
originResourceTree: [],
|
originResourceTree: [],
|
||||||
curSortType: 'time_desc',
|
curSortType: 'time_desc',
|
||||||
localSortParams: null,
|
localSortParams: null,
|
||||||
@ -993,9 +995,11 @@ export default {
|
|||||||
this.sortTypeChange(this.localSortParams)
|
this.sortTypeChange(this.localSortParams)
|
||||||
}
|
}
|
||||||
groupTree(this.groupForm, !userCache).then((res) => {
|
groupTree(this.groupForm, !userCache).then((res) => {
|
||||||
localStorage.setItem('panel-main-tree', JSON.stringify(res.data || []))
|
this.rootAuth = res.data ? res.data[0]?.privileges||'':''
|
||||||
|
const resMainData = res.data ? res.data[0]?.children || [] : []
|
||||||
|
localStorage.setItem('panel-main-tree', JSON.stringify(resMainData))
|
||||||
if (!userCache) {
|
if (!userCache) {
|
||||||
this.originResourceTree = res.data || []
|
this.originResourceTree = resMainData
|
||||||
this.sortTypeChange(this.localSortParams)
|
this.sortTypeChange(this.localSortParams)
|
||||||
}
|
}
|
||||||
if (this.responseSource === 'appApply') {
|
if (this.responseSource === 'appApply') {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user