fix:dateChange时更新查看模式

This commit is contained in:
zyh
2022-06-02 10:57:33 +08:00
parent a566919a24
commit 1310ce89b8

View File

@@ -13,12 +13,22 @@
</div> </div>
<template v-else> <template v-else>
<div class="top-tool-left" style="cursor: pointer;"> <div class="top-tool-left" style="cursor: pointer;">
<select-panel ref="selectPanel" @refreshStarred="refreshStarred" :filter-panel="filterPanel" :panel-data="panelData" :panel-lock="panelLock" :placement="'bottom-start'" <select-panel
:show-panel="showPanel" style="display: inline-block;padding: 0" @deletePanel="del" @editPanel="edit" @selectPanel="panelChange"> ref="selectPanel"
@refreshStarred="refreshStarred"
:filter-panel="filterPanel"
:panel-data="panelData"
:panel-lock="panelLock"
:placement="'bottom-start'"
:show-panel="showPanel"
style="display: inline-block;padding: 0"
@deletePanel="del"
@editPanel="edit"
@selectPanel="panelChange">
<template v-slot:header> <template v-slot:header>
<div class="panel-select-header"> <div class="panel-select-header">
<el-input id="panel-list-search" v-model="filterPanel" :placeholder="$t('overall.search')" clearable size="mini" style="width: 286px;"></el-input> <el-input id="panel-list-search" v-model="filterPanel" :placeholder="$t('overall.search')" clearable size="mini" style="width: 286px;"></el-input>
<!-- <span id="panel-list-toadd" v-has="'main_add'" :title='$t("dashboard.panel.createPanelTitleSec")' class="panel-select-add" @click="toAdd"><i class="nz-icon nz-icon-plus"></i></span>--> <!-- <span id="panel-list-toadd" v-has="'main_add'" :title='$t("dashboard.panel.createPanelTitleSec")' class="panel-select-add" @click="toAdd"><i class="nz-icon nz-icon-plus"></i></span> -->
</div> </div>
</template> </template>
<template v-slot:trigger> <template v-slot:trigger>
@@ -346,7 +356,8 @@ export default {
const param = { const param = {
panelId: this.panelId, panelId: this.panelId,
nowTimeType: JSON.stringify(this.nowTimeType), nowTimeType: JSON.stringify(this.nowTimeType),
searchTime: JSON.stringify(this.searchTime) searchTime: JSON.stringify(this.searchTime),
mode: this.mode
} }
// this.getTableData() // this.getTableData()
const path = this.fromRoute.panel const path = this.fromRoute.panel
@@ -606,7 +617,8 @@ export default {
const param = { const param = {
panelId: this.panelId, panelId: this.panelId,
nowTimeType: JSON.stringify(this.nowTimeType), nowTimeType: JSON.stringify(this.nowTimeType),
searchTime: JSON.stringify(this.searchTime) searchTime: JSON.stringify(this.searchTime),
mode: this.mode
} }
const path = this.fromRoute.panel const path = this.fromRoute.panel
this.updatePath(param, path) this.updatePath(param, path)