fix:alertMessage 页面初始状态修改
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
>
|
||||
<template v-slot:title><span :title="obj.name">{{obj.name}}</span></template>
|
||||
<template v-slot:top-tool-right>
|
||||
<el-select v-model="state" class="margin-r-10" size="small" value-key="value" @change="getTableData" popper-class="right-box-select-top right-public-box-dropdown-top" style="width: 100px">
|
||||
<el-select v-model="state" class="margin-r-10" size="small" value-key="value" @change="getTableData" popper-class="right-box-select-top right-public-box-dropdown-top" style="width: 110px">
|
||||
<el-option v-for="item in stateOptions" :key="item.value" :label="$t(item.label)" :value="item.value"></el-option>
|
||||
</el-select>
|
||||
<pick-time v-model="searchTimeHeader" :default-pick="8" :refresh-data-func="getTableData" :show-empty="true" :use-chart-unit="false" :use-refresh="false"></pick-time>
|
||||
@@ -162,7 +162,7 @@ export default {
|
||||
stateOptions: alertMessageConstant.states,
|
||||
url: 'alert/message',
|
||||
tableId: 'alertMessageModule', // 需要分页的table的id,用于记录每页数量
|
||||
state: '',
|
||||
state: '1',
|
||||
blankSilenceObject: {
|
||||
id: '',
|
||||
startAt: '',
|
||||
|
||||
@@ -234,7 +234,7 @@ export default {
|
||||
prop: 'lastAt',
|
||||
show: true,
|
||||
width: 150,
|
||||
// sortable: 'custom'
|
||||
sortable: 'custom'
|
||||
}, {
|
||||
label: this.$t('config.terminallog.duration'),
|
||||
prop: 'duration',
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
v-loading="tools.loading"
|
||||
>
|
||||
<template v-slot:top-tool-right>
|
||||
<el-select v-model="state" class="margin-r-10" size="small" value-key="value" @change="getTableData" popper-class="right-box-select-top right-public-box-dropdown-top">
|
||||
<el-select v-model="state" class="margin-r-10" size="small" value-key="value" @change="getTableData" popper-class="right-box-select-top right-public-box-dropdown-top" style="width: 100px">
|
||||
<el-option v-for="item in stateOptions" :key="item.value" :label="$t(item.label)" :value="item.value"></el-option>
|
||||
</el-select>
|
||||
<button id="asset-filter" :class="[dataListLayout.indexOf('clickSearch') > -1?'is-focus':'' ]" class="top-tool-btn margin-r-10" @click.stop="showClickSearch">
|
||||
@@ -180,7 +180,7 @@ export default {
|
||||
alertMessageNzTableHeightOffset: 242,
|
||||
stateOptions: alertMessageConstant.states,
|
||||
dataListLayout: localStorage.getItem('dataList-layout' + 'alertMessageTable') ? JSON.parse(localStorage.getItem('dataList-layout' + 'alertMessageTable')) : ['searchInput', 'elementSet', 'clickSearch', 'pagination'],
|
||||
state: '',
|
||||
state: '1',
|
||||
dialogShowText: false,
|
||||
dialogText: '',
|
||||
url: 'alert/message',
|
||||
|
||||
Reference in New Issue
Block a user