forked from github/dataease
refactor(应用): 删除应用日志勾选删除相关资源时,清理掉浏览器相关资源的缓存
This commit is contained in:
parent
1d08506f0c
commit
822de40487
@ -314,7 +314,9 @@ public class PanelGroupService {
|
|||||||
panelGroup.setPanelStyle(sourcePanel.getPanelStyle());
|
panelGroup.setPanelStyle(sourcePanel.getPanelStyle());
|
||||||
panelGroup.setSourcePanelName(sourcePanel.getName());
|
panelGroup.setSourcePanelName(sourcePanel.getName());
|
||||||
}
|
}
|
||||||
panelGroup.setWatermarkInfo(panelWatermarkMapper.selectByPrimaryKey("system_default"));
|
if (panelGroup != null) {
|
||||||
|
panelGroup.setWatermarkInfo(panelWatermarkMapper.selectByPrimaryKey("system_default"));
|
||||||
|
}
|
||||||
return panelGroup;
|
return panelGroup;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
<el-row
|
<el-row
|
||||||
style="text-align: left"
|
style="text-align: left"
|
||||||
class="de-search-table"
|
class="de-search-table"
|
||||||
|
v-loading="$store.getters.loadingMap[$store.getters.currentPath]"
|
||||||
>
|
>
|
||||||
<el-row class="top-operate">
|
<el-row class="top-operate">
|
||||||
<el-col :span="12">
|
<el-col :span="12">
|
||||||
@ -35,8 +36,8 @@
|
|||||||
icon="iconfont icon-icon-filter"
|
icon="iconfont icon-icon-filter"
|
||||||
@click="filterShow"
|
@click="filterShow"
|
||||||
>{{
|
>{{
|
||||||
$t('user.filter')
|
$t('user.filter')
|
||||||
}}
|
}}
|
||||||
<template v-if="filterTexts.length">
|
<template v-if="filterTexts.length">
|
||||||
({{ cacheCondition.length }})
|
({{ cacheCondition.length }})
|
||||||
</template>
|
</template>
|
||||||
@ -49,7 +50,7 @@
|
|||||||
>
|
>
|
||||||
<span class="sum">{{ paginationConfig.total }}</span>
|
<span class="sum">{{ paginationConfig.total }}</span>
|
||||||
<span class="title">{{ $t('user.result_one') }}</span>
|
<span class="title">{{ $t('user.result_one') }}</span>
|
||||||
<el-divider direction="vertical" />
|
<el-divider direction="vertical"/>
|
||||||
<i
|
<i
|
||||||
v-if="showScroll"
|
v-if="showScroll"
|
||||||
class="el-icon-arrow-left arrow-filter"
|
class="el-icon-arrow-left arrow-filter"
|
||||||
@ -62,9 +63,9 @@
|
|||||||
class="text"
|
class="text"
|
||||||
>
|
>
|
||||||
{{ ele }} <i
|
{{ ele }} <i
|
||||||
class="el-icon-close"
|
class="el-icon-close"
|
||||||
@click="clearOneFilter(index)"
|
@click="clearOneFilter(index)"
|
||||||
/>
|
/>
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<i
|
<i
|
||||||
@ -87,7 +88,6 @@
|
|||||||
>
|
>
|
||||||
<grid-table
|
<grid-table
|
||||||
:ref="'grid-table'"
|
:ref="'grid-table'"
|
||||||
v-loading="$store.getters.loadingMap[$store.getters.currentPath]"
|
|
||||||
:table-data="data"
|
:table-data="data"
|
||||||
:columns="[]"
|
:columns="[]"
|
||||||
:pagination="paginationConfig"
|
:pagination="paginationConfig"
|
||||||
@ -101,12 +101,7 @@
|
|||||||
:label="$t('app_template.datasource')"
|
:label="$t('app_template.datasource')"
|
||||||
>
|
>
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<span
|
<span>{{ row.datasourceName }}</span>
|
||||||
v-if="row.datasourceId && hasDataPermission('use',row.datasourcePrivileges)"
|
|
||||||
class="link-span"
|
|
||||||
@click="goToDatasource(row)"
|
|
||||||
>{{ row.datasourceName }}</span>
|
|
||||||
<span v-else>{{ row.datasourceName }}</span>
|
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column
|
||||||
@ -189,6 +184,7 @@
|
|||||||
:visible.sync="deleteConfirmDialog"
|
:visible.sync="deleteConfirmDialog"
|
||||||
:show-close="true"
|
:show-close="true"
|
||||||
width="420px"
|
width="420px"
|
||||||
|
v-loading="$store.getters.loadingMap[$store.getters.currentPath]"
|
||||||
>
|
>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-checkbox
|
<el-checkbox
|
||||||
@ -217,10 +213,7 @@ import GridTable from '@/components/gridTable/index.vue'
|
|||||||
import filterUser from './FilterUser'
|
import filterUser from './FilterUser'
|
||||||
import _ from 'lodash'
|
import _ from 'lodash'
|
||||||
import keyEnter from '@/components/msgCfm/keyEnter.js'
|
import keyEnter from '@/components/msgCfm/keyEnter.js'
|
||||||
import {
|
import { addOrder, formatOrders } from '@/utils/index'
|
||||||
addOrder,
|
|
||||||
formatOrders
|
|
||||||
} from '@/utils/index'
|
|
||||||
import { deleteLogAndResource, logGrid } from '@/api/appTemplateMarket/log'
|
import { deleteLogAndResource, logGrid } from '@/api/appTemplateMarket/log'
|
||||||
import { findOneWithParent } from '@/api/panel/panel'
|
import { findOneWithParent } from '@/api/panel/panel'
|
||||||
import AppTemplateApply from '@/views/panel/appTemplate/component/AppTemplateApply'
|
import AppTemplateApply from '@/views/panel/appTemplate/component/AppTemplateApply'
|
||||||
@ -288,9 +281,24 @@ export default {
|
|||||||
this.deleteConfirmDialog = false
|
this.deleteConfirmDialog = false
|
||||||
},
|
},
|
||||||
confirmDel() {
|
confirmDel() {
|
||||||
deleteLogAndResource(this.deleteItemInfo).then(() => {
|
const _this = this
|
||||||
this.closeDel()
|
deleteLogAndResource(_this.deleteItemInfo).then(() => {
|
||||||
this.search()
|
if (_this.deleteItemInfo.deleteResource) {
|
||||||
|
_this.clearLocalStorage()
|
||||||
|
}
|
||||||
|
_this.closeDel()
|
||||||
|
_this.search()
|
||||||
|
})
|
||||||
|
},
|
||||||
|
clearLocalStorage() {
|
||||||
|
const clearParams = [
|
||||||
|
'panel-main-tree',
|
||||||
|
'panel-default-tree',
|
||||||
|
'chart-tree',
|
||||||
|
'dataset-tree'
|
||||||
|
]
|
||||||
|
clearParams.forEach(item => {
|
||||||
|
localStorage.removeItem(item)
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
closeDraw() {
|
closeDraw() {
|
||||||
|
Loading…
Reference in New Issue
Block a user