2020-03-20 21:05:31 +08:00
|
|
|
|
<template>
|
2020-07-24 19:22:52 +08:00
|
|
|
|
<span>
|
2020-03-28 20:44:29 +08:00
|
|
|
|
<div class="sub-top-tools">
|
|
|
|
|
|
<div class="sub-list-tabs">
|
|
|
|
|
|
<div class="sub-list-tab-title">
|
2020-05-20 19:30:22 +08:00
|
|
|
|
<template v-if="from == 'asset'">{{obj.host}}</template>
|
|
|
|
|
|
<template v-if="from == 'alertRule'">{{obj.alertName}}</template>
|
2020-09-25 15:33:02 +08:00
|
|
|
|
<template v-if="from == 'endpoint'"><div class="sub-list-tab-title">{{$t("project.endpoint.endpointId")}}: {{obj ? obj.id : ''}}</div></template>
|
2020-03-28 20:44:29 +08:00
|
|
|
|
</div><div
|
2020-09-25 15:33:02 +08:00
|
|
|
|
class="sub-list-tab" @click="changeTab(from == 'asset' || from == 'alertRule' || from == 'endpoint'? 'panel' : 'detail')">{{$t("overall.detail")}}</div><div
|
2020-03-30 19:46:03 +08:00
|
|
|
|
class="sub-list-tab sub-list-tab-active">{{$t("asset.tableTitle.alerts")}}</div><div v-if="from == 'asset'"
|
|
|
|
|
|
class="sub-list-tab" @click="changeTab('endpoint')">{{$t("asset.tableTitle.modules")}}</div>
|
2020-09-25 15:33:02 +08:00
|
|
|
|
<div v-if="from == 'endpoint'" class="sub-list-tab" @click="changeTab('endpointQuery')">{{$t("overall.query")}}</div>
|
2020-03-28 20:44:29 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
<div class="top-tool-right">
|
2020-10-12 18:15:24 +08:00
|
|
|
|
<pick-time :refresh-data-func="getAlertList" v-model="searchTime" :use-chart-unit="false" :use-refresh="false" :default-pick="defaultPick" :show-empty="true"></pick-time>
|
2020-03-28 20:44:29 +08:00
|
|
|
|
<div class="top-tool-search">
|
2020-10-14 10:25:56 +08:00
|
|
|
|
<search-input :default-item="'alertMessageState'" :default-value="defaultSearchValue" :searchMsg="searchMsg" @search="search" position="alert-bottom"></search-input>
|
2020-03-20 21:05:31 +08:00
|
|
|
|
</div>
|
2020-04-09 12:19:21 +08:00
|
|
|
|
<button type="button" @click="importBox.show = true" :title="$t('overall.exportExcelLower')"
|
|
|
|
|
|
class="nz-btn nz-btn-size-normal nz-btn-style-light margin-l-20" id="alert-list-export">
|
2020-09-11 16:34:28 +08:00
|
|
|
|
<i class="nz-icon nz-icon-download1"></i>
|
2020-04-09 12:19:21 +08:00
|
|
|
|
</button>
|
2020-10-29 19:11:46 +08:00
|
|
|
|
<delete-button :delete-objs="batchDeleteObjs" api="alert/message" @after="getAlertList" :clickFunction="openDelMessageBox"></delete-button>
|
2020-03-20 21:05:31 +08:00
|
|
|
|
</div>
|
2020-03-28 20:44:29 +08:00
|
|
|
|
</div>
|
2020-07-29 14:46:35 +08:00
|
|
|
|
<alertMessageTable
|
2020-10-29 19:11:46 +08:00
|
|
|
|
ref="alertMessageTable"
|
2020-07-29 14:46:35 +08:00
|
|
|
|
:tableData="tableData"
|
|
|
|
|
|
:loading="loading"
|
|
|
|
|
|
:tableHeight="$tableHeight.openSubList.subList"
|
|
|
|
|
|
:tableId="tableId"
|
|
|
|
|
|
@tableDataSort="tableDataSort"
|
|
|
|
|
|
@deleteMessage="deleteMessage"
|
2020-10-29 19:11:46 +08:00
|
|
|
|
@select-change="(selection)=>{this.batchDeleteObjs=selection}"
|
2020-07-29 14:46:35 +08:00
|
|
|
|
></alertMessageTable>
|
2020-03-28 20:44:29 +08:00
|
|
|
|
<Pagination :tableId="tableId" :pageObj="pageObj" @pageNo='pageNo' @pageSize='pageSize' ref="Pagination"></Pagination>
|
2020-04-09 12:19:21 +08:00
|
|
|
|
<!--导出-->
|
|
|
|
|
|
<div class="export-xlsx">
|
|
|
|
|
|
<el-dialog :visible.sync="importBox.show" :title="importBox.title" :modal-append-to-body='false' :show-close="true" width="300px" @close="importBox.show = false" class="nz-dialog">
|
|
|
|
|
|
<div class="upload-body">
|
|
|
|
|
|
<button @click="exportCur" class="el-button el-button--default el-button--small">
|
|
|
|
|
|
<span>{{$t('overall.exportCur')}}</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<button @click="exportAll" class="el-button el-button--default el-button--small">
|
|
|
|
|
|
<span>{{$t('overall.exportAll')}}</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
</div>
|
2020-05-13 18:23:10 +08:00
|
|
|
|
<!--export-->
|
2020-04-09 12:19:21 +08:00
|
|
|
|
<div class="export-xlsx">
|
|
|
|
|
|
<el-dialog :visible.sync="deleteBox.show" :title="$t('overall.delete')" :modal-append-to-body='false' :show-close="true" width="300px" @close="deleteBox.show = false" class="nz-message">
|
|
|
|
|
|
<div class="upload-body">
|
|
|
|
|
|
<el-input type="textarea" :placeholder="$t('alert.description')" v-model="deleteBox.remark"></el-input>
|
|
|
|
|
|
<div style="text-align: right; margin-top: 10px;">
|
|
|
|
|
|
<button @click="deleteBox.show = false" class="el-button el-button--default el-button--small">
|
|
|
|
|
|
<span>{{$t('tip.no')}}</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
<button @click="deleteMessage" class="el-button el-button--default el-button--small el-button--primary">
|
|
|
|
|
|
<span>{{$t('tip.yes')}}</span>
|
|
|
|
|
|
</button>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
</div>
|
2020-05-13 18:23:10 +08:00
|
|
|
|
|
2020-08-06 10:10:49 +08:00
|
|
|
|
<!--<el-dialog class="line-chart-block-modal nz-dialog endpoint-dialog"-->
|
|
|
|
|
|
<!--:title="$t('overall.detail')"-->
|
|
|
|
|
|
<!--:visible.sync="graphShow"-->
|
|
|
|
|
|
<!--width="90%"-->
|
|
|
|
|
|
<!--id="viewGraphDialog"-->
|
|
|
|
|
|
<!--@close="dialogClose">-->
|
|
|
|
|
|
<!--<div slot="title">-->
|
|
|
|
|
|
<!--{{$t("project.endpoint.dialogTitle")}}-->
|
|
|
|
|
|
<!--<div class="float-right panel-calendar dialog-tool" style="display: flex">-->
|
|
|
|
|
|
<!--<pick-time :refresh-data-func="queryChartDate" :use-refresh="false" v-model="searchTime" style="height: 28px;" @unitChange="chartUnitChange"></pick-time>-->
|
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
|
<!--<chart ref="messageChart" :unit="chartUnit"></chart>-->
|
|
|
|
|
|
<!--</el-dialog>-->
|
2020-03-20 21:05:31 +08:00
|
|
|
|
</span>
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
|
|
<script>
|
2020-05-11 16:11:06 +08:00
|
|
|
|
import axios from 'axios';
|
|
|
|
|
|
import nzAlertTag from '../../../page/alert/nzAlertTag';
|
2020-05-15 15:48:28 +08:00
|
|
|
|
import chart from '../../../page/dashboard/overview/chart'
|
2020-05-15 17:15:13 +08:00
|
|
|
|
import bus from '../../../../libs/bus'
|
2020-07-29 14:46:35 +08:00
|
|
|
|
import alertMessageTable from '@/components/common/alert/alertMessageTable.vue'
|
2020-10-29 19:11:46 +08:00
|
|
|
|
import deleteButton from "../../deleteButton";
|
2020-03-20 21:05:31 +08:00
|
|
|
|
export default {
|
2020-03-28 20:44:29 +08:00
|
|
|
|
name: "alertMessageTab",
|
|
|
|
|
|
components: {
|
2020-05-15 15:48:28 +08:00
|
|
|
|
'nz-alert-tag': nzAlertTag,
|
2020-07-29 14:46:35 +08:00
|
|
|
|
'chart': chart,
|
|
|
|
|
|
'alertMessageTable':alertMessageTable,
|
2020-10-29 19:11:46 +08:00
|
|
|
|
'delete-button':deleteButton,
|
2020-03-28 20:44:29 +08:00
|
|
|
|
},
|
2020-03-20 21:05:31 +08:00
|
|
|
|
props: {
|
|
|
|
|
|
from: String, //来自哪个主页面,有:"asset"、"alertRule"
|
2020-03-28 20:44:29 +08:00
|
|
|
|
obj: Object, //关联的实体对象
|
2020-03-20 21:05:31 +08:00
|
|
|
|
},
|
|
|
|
|
|
data() {
|
|
|
|
|
|
return {
|
2020-05-13 18:23:10 +08:00
|
|
|
|
//详情相关
|
|
|
|
|
|
graphShow: false,
|
|
|
|
|
|
chartDatas: [],
|
|
|
|
|
|
legend: [],
|
2020-05-15 15:48:28 +08:00
|
|
|
|
sameLabels: ['instance','module','project','asset','endpoint','datacenter'],
|
2020-10-12 18:15:24 +08:00
|
|
|
|
searchTime:[],
|
2020-05-15 17:24:32 +08:00
|
|
|
|
currentMsg: {},
|
2020-05-15 18:07:20 +08:00
|
|
|
|
chartUnit: 5,
|
2020-08-03 10:47:04 +08:00
|
|
|
|
requestIndex:0,
|
2020-03-31 17:22:15 +08:00
|
|
|
|
defaultSearchValue: this.obj.alertNum ? 1 : 0,
|
2020-03-24 19:22:24 +08:00
|
|
|
|
showElementSet: false,
|
2020-10-29 19:11:46 +08:00
|
|
|
|
batchDeleteObjs:[],
|
2020-03-20 21:05:31 +08:00
|
|
|
|
tableId: 'alertListTable', //需要分页的table的id,用于记录每页数量
|
|
|
|
|
|
showTopBtn: false, //top按钮是否显示
|
|
|
|
|
|
loading: false,
|
|
|
|
|
|
pageObj: {
|
|
|
|
|
|
pageNo: 1,
|
2020-07-13 17:26:06 +08:00
|
|
|
|
pageSize: 50,
|
2020-03-20 21:05:31 +08:00
|
|
|
|
total: 0
|
|
|
|
|
|
},
|
2020-04-09 12:19:21 +08:00
|
|
|
|
|
2020-04-21 18:00:21 +08:00
|
|
|
|
tableHover: false, //控制滚动条和top按钮同时出现
|
|
|
|
|
|
|
2020-04-09 12:19:21 +08:00
|
|
|
|
importBox: {show: false, title:this.$t('overall.exportExcel')},
|
2020-04-09 16:48:23 +08:00
|
|
|
|
deleteBox: {show: false, ids: "", remark: '', state: 2},
|
2020-04-09 12:19:21 +08:00
|
|
|
|
|
2020-03-20 21:05:31 +08:00
|
|
|
|
tableTitle: [
|
|
|
|
|
|
{
|
2020-04-24 11:38:57 +08:00
|
|
|
|
label: 'ID',
|
|
|
|
|
|
prop: 'id',
|
|
|
|
|
|
show: true,
|
|
|
|
|
|
width: 80
|
|
|
|
|
|
}, {
|
2020-03-20 21:05:31 +08:00
|
|
|
|
label: this.$t("alert.alertName"),
|
|
|
|
|
|
prop: 'alertRule',
|
|
|
|
|
|
show: true,
|
|
|
|
|
|
width: 180
|
|
|
|
|
|
}, {
|
2020-04-08 21:23:17 +08:00
|
|
|
|
label: this.$t("alert.list.labels"),
|
|
|
|
|
|
prop: 'labels',
|
2020-03-20 21:05:31 +08:00
|
|
|
|
show: true,
|
|
|
|
|
|
}, {
|
|
|
|
|
|
label: this.$t("alert.severity"),
|
|
|
|
|
|
prop: 'severity',
|
|
|
|
|
|
show: true,
|
|
|
|
|
|
width: 100
|
|
|
|
|
|
}, {
|
|
|
|
|
|
label: this.$t('alert.summary'),
|
|
|
|
|
|
prop: 'summary',
|
|
|
|
|
|
show: true
|
|
|
|
|
|
}, {
|
|
|
|
|
|
label: this.$t('alert.description'),
|
|
|
|
|
|
prop: 'description',
|
|
|
|
|
|
show: true
|
|
|
|
|
|
}, {
|
|
|
|
|
|
label: this.$t('alert.list.state'),
|
|
|
|
|
|
prop: 'state',
|
|
|
|
|
|
show: true,
|
|
|
|
|
|
width: 100
|
|
|
|
|
|
}, {
|
|
|
|
|
|
label: this.$t("alert.startAt"),
|
|
|
|
|
|
prop: 'startAt',
|
|
|
|
|
|
show: true,
|
|
|
|
|
|
}, {
|
|
|
|
|
|
label: this.$t('alert.endAt'),
|
|
|
|
|
|
prop: 'endAt',
|
|
|
|
|
|
show: true,
|
2020-05-13 18:23:10 +08:00
|
|
|
|
}, {
|
2020-07-07 20:45:13 +08:00
|
|
|
|
label: this.$t('overall.value'),
|
2020-05-13 18:23:10 +08:00
|
|
|
|
prop: 'current',
|
|
|
|
|
|
show: true
|
|
|
|
|
|
}, {
|
|
|
|
|
|
label: this.$t('overall.option'),
|
|
|
|
|
|
prop: 'option',
|
|
|
|
|
|
show: true,
|
|
|
|
|
|
width: 90
|
2020-03-20 21:05:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
],
|
|
|
|
|
|
searchMsg: { //给搜索框子组件传递的信息
|
|
|
|
|
|
zheze_none: true,
|
|
|
|
|
|
searchLabelList: [{
|
|
|
|
|
|
id: 2,
|
|
|
|
|
|
name: this.$t('alert.alertName'),
|
|
|
|
|
|
type: 'input',
|
|
|
|
|
|
label: 'alertName',
|
|
|
|
|
|
disabled: false
|
|
|
|
|
|
}, {
|
2020-05-19 18:22:22 +08:00
|
|
|
|
id:20,
|
2020-04-21 22:39:07 +08:00
|
|
|
|
name: this.$t('project.project.project'),
|
|
|
|
|
|
type: 'project',
|
|
|
|
|
|
label: 'project',
|
|
|
|
|
|
disabled: false
|
|
|
|
|
|
}, {
|
2020-05-19 18:22:22 +08:00
|
|
|
|
id:21,
|
2020-04-21 22:39:07 +08:00
|
|
|
|
name: this.$t('project.module.module'),
|
|
|
|
|
|
type: 'module',
|
|
|
|
|
|
label: 'module',
|
|
|
|
|
|
disabled: false
|
|
|
|
|
|
}, {
|
2020-05-19 18:22:22 +08:00
|
|
|
|
id:22,
|
2020-04-21 22:39:07 +08:00
|
|
|
|
name: this.$t('project.endpoint.endpoint'),
|
|
|
|
|
|
type: 'input',
|
|
|
|
|
|
label: 'endpointId',
|
2020-03-20 21:05:31 +08:00
|
|
|
|
disabled: false
|
|
|
|
|
|
}, {
|
|
|
|
|
|
id: 4,
|
|
|
|
|
|
name: this.$t('alert.severity'),
|
|
|
|
|
|
type: 'selectString',
|
|
|
|
|
|
label: 'severity',
|
|
|
|
|
|
disabled: false
|
|
|
|
|
|
}, {
|
|
|
|
|
|
id: 11,
|
|
|
|
|
|
name: this.$t('asset.asset'),
|
|
|
|
|
|
type: 'asset',
|
|
|
|
|
|
label: 'asset',
|
2020-04-21 22:39:07 +08:00
|
|
|
|
disabled: false
|
2020-03-31 17:22:15 +08:00
|
|
|
|
}, {
|
|
|
|
|
|
id: 12,
|
|
|
|
|
|
name: this.$t('alert.list.state'),
|
|
|
|
|
|
type: 'select',
|
|
|
|
|
|
label: 'alertMessageState',
|
|
|
|
|
|
disabled: false
|
2020-10-30 14:09:11 +08:00
|
|
|
|
},
|
|
|
|
|
|
{
|
|
|
|
|
|
id:26,
|
|
|
|
|
|
name: this.$t('alert.list.id'),
|
|
|
|
|
|
type: 'id',
|
|
|
|
|
|
label: 'id',
|
|
|
|
|
|
disabled: false
|
|
|
|
|
|
}],
|
2020-03-20 21:05:31 +08:00
|
|
|
|
},
|
|
|
|
|
|
searchLabel: { //搜索参数
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
tablelable: [],
|
|
|
|
|
|
dropCol: [],
|
|
|
|
|
|
tableData: [],
|
2020-10-12 18:15:24 +08:00
|
|
|
|
defaultPick:12,
|
2020-03-20 21:05:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
},
|
2020-04-09 17:00:32 +08:00
|
|
|
|
computed: {
|
2020-07-22 19:04:30 +08:00
|
|
|
|
tagType() {
|
|
|
|
|
|
return (key) => {
|
|
|
|
|
|
if (key == 'asset' || key == 'module' || key == 'project' || key == 'datacenter' || key == 'endpoint') {
|
|
|
|
|
|
return "normal";
|
|
|
|
|
|
} else {
|
|
|
|
|
|
return "info";
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2020-04-09 17:00:32 +08:00
|
|
|
|
tagValue() {
|
|
|
|
|
|
return (key, value) => {
|
|
|
|
|
|
if (key == 'type') {
|
|
|
|
|
|
if (value == 1) {
|
|
|
|
|
|
value = this.$t("project.project.project");
|
|
|
|
|
|
} else if (value == 2) {
|
|
|
|
|
|
value = this.$t("module.module.module");
|
|
|
|
|
|
} else if (value == 3) {
|
|
|
|
|
|
value = this.$t("asset.asset");
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
return key + ":" + value;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2020-03-20 21:05:31 +08:00
|
|
|
|
methods: {
|
2020-03-24 19:22:24 +08:00
|
|
|
|
elementsetShow(s, e) {
|
|
|
|
|
|
this.showElementSet = true;
|
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
var eventfixed = {
|
|
|
|
|
|
shezhi: 0,
|
|
|
|
|
|
screen: 0
|
|
|
|
|
|
};
|
|
|
|
|
|
eventfixed[s] = 1;
|
|
|
|
|
|
e.preventDefault();
|
|
|
|
|
|
this.$store.commit('setHeaderTable', this.tablelable);
|
|
|
|
|
|
this.$store.commit('setEventfixed', eventfixed);
|
|
|
|
|
|
const h = document.documentElement.clientHeight;
|
|
|
|
|
|
const w = document.documentElement.clientWidth;
|
|
|
|
|
|
const dw = this.$refs.elementset.$el.offsetWidth;
|
|
|
|
|
|
const dh = this.$refs.elementset.$el.offsetHeight;
|
|
|
|
|
|
let positionx =
|
|
|
|
|
|
e.clientX + dw <= w - 10 ? e.clientX + 14 : e.clientX + 14 - dw;
|
|
|
|
|
|
let positiony =
|
|
|
|
|
|
e.clientY + dh <= h - 10
|
|
|
|
|
|
? e.clientY
|
|
|
|
|
|
: e.clientY - (e.clientY + dh - h);
|
|
|
|
|
|
this.$store.commit('setPosition', {positionx, positiony});
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
|
|
|
|
|
elementsetHide() {
|
|
|
|
|
|
//悬浮点击空白隐藏
|
|
|
|
|
|
//this.$refs.elementset.elementsetHide();
|
|
|
|
|
|
this.showElementSet = false;
|
|
|
|
|
|
},
|
|
|
|
|
|
tablelabelEmit(data) {
|
|
|
|
|
|
//获取子组件传过来的参数
|
|
|
|
|
|
this.$store.commit('setHeaderTable', data);
|
|
|
|
|
|
this.tablelable = data;
|
|
|
|
|
|
this.dropCol = data;
|
|
|
|
|
|
},
|
2020-03-28 20:44:29 +08:00
|
|
|
|
// 切换tab
|
|
|
|
|
|
changeTab(tab) {
|
|
|
|
|
|
this.$emit('changeTab', tab);
|
|
|
|
|
|
},
|
2020-08-06 10:10:49 +08:00
|
|
|
|
deleteMessage(deleteBox,cb) {
|
2020-07-29 14:46:35 +08:00
|
|
|
|
this.$put("alert/message", deleteBox).then(res => {
|
2020-04-09 12:19:21 +08:00
|
|
|
|
if (res.code === 200) {
|
|
|
|
|
|
this.$message({duration: 2000, type: 'success', message: this.$t("tip.deleteSuccess")});
|
|
|
|
|
|
this.getAlertList();
|
2020-08-06 10:10:49 +08:00
|
|
|
|
cb();
|
2020-04-09 12:19:21 +08:00
|
|
|
|
} else {
|
|
|
|
|
|
this.$message.error(res.msg);
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
exportCur:function(){
|
2020-10-15 10:03:08 +08:00
|
|
|
|
let searchLabel=Object.assign({},this.searchLabel)
|
|
|
|
|
|
this.$set(searchLabel,'language',localStorage.getItem("nz-language") ? localStorage.getItem("nz-language") : 'en')
|
|
|
|
|
|
this.exportExcel(searchLabel);
|
|
|
|
|
|
this.importBox.show = false;
|
|
|
|
|
|
},
|
|
|
|
|
|
exportAll:function(){
|
|
|
|
|
|
let temp = JSON.parse(JSON.stringify(this.searchLabel));
|
|
|
|
|
|
temp.pageSize = -1;
|
|
|
|
|
|
this.$set(temp,'language',localStorage.getItem("nz-language") ? localStorage.getItem("nz-language") : 'en')
|
|
|
|
|
|
this.exportExcel(temp);
|
2020-04-09 12:19:21 +08:00
|
|
|
|
this.importBox.show = false;
|
|
|
|
|
|
},
|
2020-04-21 22:39:07 +08:00
|
|
|
|
getTimeString:function(){
|
|
|
|
|
|
let split='-';
|
|
|
|
|
|
let date=new Date();
|
|
|
|
|
|
let year=date.getFullYear();
|
|
|
|
|
|
let month=this.formatNum(date.getMonth()+1);
|
|
|
|
|
|
let day=this.formatNum(date.getDate());
|
|
|
|
|
|
let hours=this.formatNum(date.getHours());
|
|
|
|
|
|
let minutes=this.formatNum(date.getMinutes());
|
|
|
|
|
|
let seconds=this.formatNum(date.getSeconds());
|
|
|
|
|
|
return year + split + month + split + day + ' ' + hours + split + minutes + split + seconds;
|
|
|
|
|
|
},
|
|
|
|
|
|
formatNum:function(num){
|
|
|
|
|
|
return num>9?num:'0'+num;
|
|
|
|
|
|
},
|
2020-04-09 12:19:21 +08:00
|
|
|
|
exportExcel:function(params){
|
|
|
|
|
|
let temp=this;
|
|
|
|
|
|
if(!params){
|
|
|
|
|
|
params=temp.params;
|
|
|
|
|
|
}
|
|
|
|
|
|
axios.get("alert/message/export", {responseType:'blob', params: params}).then(res=>{
|
|
|
|
|
|
let fileName = 'alert-message-'+temp.getTimeString()+'.xlsx';
|
|
|
|
|
|
if(window.navigator.msSaveOrOpenBlob){
|
|
|
|
|
|
// 兼容ie11
|
|
|
|
|
|
let blobObject = new Blob([res.data]);
|
|
|
|
|
|
window.navigator.msSaveOrOpenBlob(blobObject, fileName);
|
|
|
|
|
|
}else{
|
|
|
|
|
|
let url = URL.createObjectURL(new Blob([res.data]));
|
|
|
|
|
|
let a = document.createElement('a');
|
|
|
|
|
|
document.body.appendChild(a); //此处增加了将创建的添加到body当中
|
|
|
|
|
|
a.href = url;
|
|
|
|
|
|
a.download = fileName;
|
|
|
|
|
|
a.target = '_blank';
|
|
|
|
|
|
a.click();
|
|
|
|
|
|
a.remove(); //将a标签移除
|
|
|
|
|
|
}
|
2020-11-20 21:11:42 +08:00
|
|
|
|
},error=>{
|
|
|
|
|
|
let $self=this;
|
|
|
|
|
|
let reader = new FileReader();
|
|
|
|
|
|
reader.onload = function(event){
|
|
|
|
|
|
let responseText = reader.result;
|
|
|
|
|
|
let exception = JSON.parse(responseText);
|
|
|
|
|
|
if(exception.message){
|
|
|
|
|
|
$self.$message.error(exception.message)
|
|
|
|
|
|
}else{
|
|
|
|
|
|
console.error(error)
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
reader.readAsText(error.response.data);
|
2020-04-09 12:19:21 +08:00
|
|
|
|
})
|
|
|
|
|
|
},
|
2020-05-15 17:24:32 +08:00
|
|
|
|
queryChartDate() {
|
2020-05-13 18:23:10 +08:00
|
|
|
|
let start = this.searchTime[0]?this.searchTime[0]:this.getTime(-1, 'h');
|
|
|
|
|
|
let end = this.searchTime[1]?this.searchTime[1]:this.getTime(0, 'h')
|
|
|
|
|
|
this.searchTime = [start, end];
|
|
|
|
|
|
let timeDiff = (new Date(end).getTime()-new Date(start).getTime())/1000/(24*60*60);
|
|
|
|
|
|
let step = '15s';
|
|
|
|
|
|
if(timeDiff< 1){
|
|
|
|
|
|
step='15s';
|
|
|
|
|
|
}else if(timeDiff < 7){
|
|
|
|
|
|
step='5m';
|
|
|
|
|
|
}else if(timeDiff<30){
|
|
|
|
|
|
step='10m';
|
|
|
|
|
|
}else{
|
|
|
|
|
|
step='30m';
|
|
|
|
|
|
}
|
|
|
|
|
|
let axiosArr=[];
|
2020-05-15 17:24:32 +08:00
|
|
|
|
let paramStr = JSON.stringify(this.promQueryParamConvert(this.currentMsg));
|
2020-05-15 15:48:28 +08:00
|
|
|
|
axiosArr.push(axios.get("/prom/api/v1/query_range?query="+paramStr.substring(1, paramStr.length-1).replace(/\+/g, "%2B").replace(/ /g, "%20").replace(/\\/g, "")+"&start="+this.$stringTimeParseToUnix(start)+"&end="+this.$stringTimeParseToUnix(end)+"&step="+step));
|
2020-05-13 18:23:10 +08:00
|
|
|
|
this.legend = [];
|
|
|
|
|
|
this.chartDatas = [];
|
|
|
|
|
|
axios.all(axiosArr).then(res =>{
|
2020-05-15 15:48:28 +08:00
|
|
|
|
try {
|
|
|
|
|
|
res.forEach((response, promIndex) => {
|
|
|
|
|
|
if (response.status == 200) {
|
|
|
|
|
|
if (response.data.status == 'success') {
|
|
|
|
|
|
let queryData = response.data.data.result[0];
|
|
|
|
|
|
if (queryData) {
|
|
|
|
|
|
let chartData = {
|
|
|
|
|
|
type: "line",
|
|
|
|
|
|
symbol: 'none', //去掉点
|
2020-05-25 16:01:20 +08:00
|
|
|
|
smooth: 0.2, //曲线变平滑
|
2020-06-04 16:42:27 +08:00
|
|
|
|
name: '',
|
|
|
|
|
|
lineStyle: {
|
|
|
|
|
|
width: 1,
|
|
|
|
|
|
opacity: 0.9
|
|
|
|
|
|
},
|
2020-05-15 15:48:28 +08:00
|
|
|
|
};
|
|
|
|
|
|
chartData.name += "{";
|
|
|
|
|
|
alias += "{";
|
|
|
|
|
|
Object.keys(queryData.metric).forEach((item, index) => {
|
|
|
|
|
|
let label = item;
|
|
|
|
|
|
let value = queryData.metric[label];
|
|
|
|
|
|
chartData.name += label + "='" + value + "',";
|
|
|
|
|
|
});
|
|
|
|
|
|
chartData.name = chartData.name.charAt(chartData.name.length - 1) == "," ? chartData.name.substr(0, chartData.name.length - 1) : chartData.name;
|
|
|
|
|
|
chartData.name += "}";
|
|
|
|
|
|
let alias = chartData.name;
|
|
|
|
|
|
let legend = {
|
|
|
|
|
|
name: chartData.name,
|
|
|
|
|
|
alias: alias,
|
|
|
|
|
|
isGray: false
|
2020-05-13 18:23:10 +08:00
|
|
|
|
}
|
2020-05-15 15:48:28 +08:00
|
|
|
|
this.legend.push(legend);
|
|
|
|
|
|
chartData.data = queryData.values.map((dpsItem, dpsIndex) => {
|
2020-05-15 17:15:13 +08:00
|
|
|
|
return [bus.computeTimezone(dpsItem[0]) * 1000, parseFloat(dpsItem[1]).toFixed(2)];
|
2020-05-15 15:48:28 +08:00
|
|
|
|
});
|
|
|
|
|
|
this.chartDatas.push(chartData);
|
2020-05-15 17:15:13 +08:00
|
|
|
|
|
2020-05-13 18:23:10 +08:00
|
|
|
|
}
|
2020-05-15 15:48:28 +08:00
|
|
|
|
} else {
|
|
|
|
|
|
this.$message.error(response.data.error)
|
|
|
|
|
|
}
|
2020-05-13 18:23:10 +08:00
|
|
|
|
}
|
2020-05-15 15:48:28 +08:00
|
|
|
|
});
|
|
|
|
|
|
this.$nextTick(() => {
|
2020-05-15 17:15:13 +08:00
|
|
|
|
this.$refs.messageChart.setRandomColors(this.chartDatas.length);
|
|
|
|
|
|
this.$refs.messageChart.setLegend(this.legend);
|
|
|
|
|
|
this.$refs.messageChart.setSeries(this.chartDatas);
|
2020-05-15 15:48:28 +08:00
|
|
|
|
this.$refs.messageChart.endLoading();
|
|
|
|
|
|
});
|
|
|
|
|
|
} catch(err) {
|
|
|
|
|
|
this.$message.error(err);
|
2020-05-13 18:23:10 +08:00
|
|
|
|
this.$refs.messageChart.endLoading();
|
2020-05-15 15:48:28 +08:00
|
|
|
|
}
|
2020-05-13 18:23:10 +08:00
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
detail(obj) {
|
|
|
|
|
|
this.chartDatas = [];
|
|
|
|
|
|
this.legend = [];
|
|
|
|
|
|
this.graphShow = true;
|
2020-05-15 17:24:32 +08:00
|
|
|
|
this.currentMsg = obj;
|
2020-05-13 18:23:10 +08:00
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
|
this.$refs.messageChart.startLoading();
|
2020-05-15 17:24:32 +08:00
|
|
|
|
this.queryChartDate();
|
2020-05-13 18:23:10 +08:00
|
|
|
|
});
|
|
|
|
|
|
},
|
2020-05-15 18:07:20 +08:00
|
|
|
|
chartUnitChange:function(unit){
|
|
|
|
|
|
this.chartUnit=unit;
|
|
|
|
|
|
this.$nextTick(()=>{
|
|
|
|
|
|
this.queryChartDate()
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
|
|
|
|
|
|
2020-05-13 18:23:10 +08:00
|
|
|
|
dialogClose() {
|
|
|
|
|
|
this.graphShow = false;
|
|
|
|
|
|
},
|
2020-10-29 19:11:46 +08:00
|
|
|
|
openDelMessageBox:function(){
|
|
|
|
|
|
if(this.batchDeleteObjs.length<1) return;
|
|
|
|
|
|
if(this.$refs.alertMessageTable){
|
|
|
|
|
|
this.$refs.alertMessageTable.toDeleteMessage(false);
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2020-05-13 18:23:10 +08:00
|
|
|
|
del(u) {
|
|
|
|
|
|
this.$confirm(this.$t("tip.confirmDelete"), {
|
|
|
|
|
|
confirmButtonText: this.$t("tip.yes"),
|
|
|
|
|
|
cancelButtonText: this.$t("tip.no"),
|
|
|
|
|
|
type: 'warning'
|
|
|
|
|
|
}).then(() => {
|
|
|
|
|
|
this.$delete("alert/message?ids=" + u.id).then(response => {
|
|
|
|
|
|
if (response.code === 200) {
|
|
|
|
|
|
this.$message({type: 'success', message: this.$t("tip.deleteSuccess")});
|
|
|
|
|
|
this.getAlertList();
|
|
|
|
|
|
} else {
|
|
|
|
|
|
this.$message.error(response.msg);
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
});
|
|
|
|
|
|
},
|
2020-03-23 21:46:19 +08:00
|
|
|
|
getAlertList() {
|
|
|
|
|
|
this.tableData = [];
|
|
|
|
|
|
this.loading = true;
|
2020-03-20 21:05:31 +08:00
|
|
|
|
this.$set(this.searchLabel, "pageNo", this.pageObj.pageNo);
|
|
|
|
|
|
this.$set(this.searchLabel, "pageSize", this.pageObj.pageSize);
|
2020-10-12 18:15:24 +08:00
|
|
|
|
|
|
|
|
|
|
if(this.searchTime&& this.searchTime.length>1){
|
2020-10-16 19:26:50 +08:00
|
|
|
|
this.$set(this.searchLabel, "startAt", this.timezoneToUtcTimeStr(this.searchTime[0]));
|
|
|
|
|
|
this.$set(this.searchLabel, "endAt", this.timezoneToUtcTimeStr(this.searchTime[1]));
|
2020-10-12 18:15:24 +08:00
|
|
|
|
}else{
|
|
|
|
|
|
delete this.searchLabel.startAt
|
|
|
|
|
|
delete this.searchLabel.endAt
|
|
|
|
|
|
}
|
2020-04-21 22:39:07 +08:00
|
|
|
|
setTimeout(() => {
|
|
|
|
|
|
this.$get('alert/message', this.searchLabel).then(response => {
|
|
|
|
|
|
if (response.code == 200) {
|
|
|
|
|
|
this.tableData = response.data.list;
|
|
|
|
|
|
this.tableData.forEach((item) => {
|
|
|
|
|
|
item.labels = JSON.parse(item.labels);
|
2020-10-15 10:03:08 +08:00
|
|
|
|
if(item.alertRule.buildIn != 1) {
|
|
|
|
|
|
let paramStr = JSON.stringify(this.promQueryParamConvert(item));
|
|
|
|
|
|
this.$get('/prom/api/v1/query?query=' + paramStr.substring(1, paramStr.length - 1).replace(/\+/g, "%2B").replace(/ /g, "%20").replace(/\\/g, "")).then(response2 => {
|
|
|
|
|
|
let current = [];
|
|
|
|
|
|
if (response2.data && response2.data.result && response2.data.result.length > 0) {
|
|
|
|
|
|
current = response2.data.result[0].value.map((item, i) => {
|
|
|
|
|
|
if (i == 0) {
|
|
|
|
|
|
return bus.computeTimezone(item);
|
|
|
|
|
|
} else {
|
|
|
|
|
|
return parseFloat(item).toFixed(2);
|
|
|
|
|
|
}
|
|
|
|
|
|
});
|
2020-11-16 15:16:39 +08:00
|
|
|
|
}else{
|
|
|
|
|
|
current=[null,null];
|
2020-10-15 10:03:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
this.requestIndex += 1;
|
|
|
|
|
|
item.current = current;
|
|
|
|
|
|
if (this.requestIndex === this.tableData.length) {
|
2020-11-16 15:16:39 +08:00
|
|
|
|
this.$set(item, "current", current);
|
|
|
|
|
|
this.requestIndex = 0;
|
2020-10-15 10:03:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
}
|
2020-04-21 22:39:07 +08:00
|
|
|
|
});
|
|
|
|
|
|
this.pageObj.total = response.data.total;
|
2020-08-05 09:54:58 +08:00
|
|
|
|
this.loading = false;
|
2020-04-21 22:39:07 +08:00
|
|
|
|
}
|
|
|
|
|
|
});
|
|
|
|
|
|
}, 1000);
|
2020-03-20 21:05:31 +08:00
|
|
|
|
},
|
2020-05-13 18:23:10 +08:00
|
|
|
|
promQueryParamConvert(obj) {
|
2020-11-16 17:57:48 +08:00
|
|
|
|
let r = "(" + obj.alertRule.expr + ")";
|
|
|
|
|
|
if (Object.keys(obj.labels).length > 2) {
|
|
|
|
|
|
r += " and " + function(){
|
|
|
|
|
|
let group = "(group({";
|
|
|
|
|
|
let by = " by (";
|
|
|
|
|
|
|
|
|
|
|
|
for (let k in obj.labels) {
|
|
|
|
|
|
if (k != 'alertname' && k != 'severity') {
|
|
|
|
|
|
group += k;
|
|
|
|
|
|
group += "=";
|
|
|
|
|
|
group += ("'" + obj.labels[k] + "',");
|
|
|
|
|
|
by += k;
|
|
|
|
|
|
by += ","
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
group = group.substring(0, group.length-1);
|
|
|
|
|
|
group += "})";
|
|
|
|
|
|
by = by.substring(0, by.length-1);
|
|
|
|
|
|
by += ")";
|
|
|
|
|
|
|
|
|
|
|
|
return group + by + ")";
|
|
|
|
|
|
}();
|
|
|
|
|
|
}
|
|
|
|
|
|
return r;
|
|
|
|
|
|
/*return "(" + obj.alertRule.expr + ") and (" + function(){
|
2020-05-13 18:23:10 +08:00
|
|
|
|
let q = "{";
|
|
|
|
|
|
for (let k in obj.labels) {
|
|
|
|
|
|
if (k != 'alertname' && k != 'severity') {
|
|
|
|
|
|
q += k;
|
|
|
|
|
|
q += "=";
|
|
|
|
|
|
q += ("'" + obj.labels[k] + "',");
|
|
|
|
|
|
}
|
|
|
|
|
|
};
|
|
|
|
|
|
if (q.length > 1) {
|
|
|
|
|
|
q = q.substring(0, q.length-1);
|
|
|
|
|
|
}
|
|
|
|
|
|
q += "}";
|
|
|
|
|
|
return q;
|
2020-11-16 17:57:48 +08:00
|
|
|
|
}() + ")";*/
|
2020-05-13 18:23:10 +08:00
|
|
|
|
},
|
2020-03-20 21:05:31 +08:00
|
|
|
|
pageNo(val) {
|
|
|
|
|
|
this.pageObj.pageNo = val;
|
|
|
|
|
|
this.getAlertList();
|
|
|
|
|
|
},
|
|
|
|
|
|
pageSize(val) {
|
|
|
|
|
|
this.pageObj.pageSize = val;
|
|
|
|
|
|
localStorage.setItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId, val);
|
|
|
|
|
|
this.getAlertList();
|
|
|
|
|
|
},
|
2020-04-08 21:23:17 +08:00
|
|
|
|
labelsClassName(row) {
|
2020-05-11 16:11:06 +08:00
|
|
|
|
if (row.column.label == this.$t("alert.list.labels")) {
|
2020-04-08 21:23:17 +08:00
|
|
|
|
return "alert-message-list-labels";
|
|
|
|
|
|
} else {
|
|
|
|
|
|
return "";
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
2020-03-20 21:05:31 +08:00
|
|
|
|
fillProject: function (module) {
|
|
|
|
|
|
this.$get('project', {"id": module.projectId}).then(response => {
|
|
|
|
|
|
if (response.code == 200) {
|
|
|
|
|
|
module.project = response.data.list[0];
|
|
|
|
|
|
}
|
|
|
|
|
|
})
|
|
|
|
|
|
},
|
2020-07-30 18:37:04 +08:00
|
|
|
|
search(searchObj) {
|
2020-03-28 20:44:29 +08:00
|
|
|
|
this.searchLabel = {};
|
2020-07-21 10:03:31 +08:00
|
|
|
|
let orderBy='';
|
|
|
|
|
|
if(this.searchLabel.orderBy){
|
|
|
|
|
|
orderBy=this.searchLabel.orderBy
|
|
|
|
|
|
}
|
2020-03-28 20:44:29 +08:00
|
|
|
|
if (this.from == "alertRule") {
|
|
|
|
|
|
this.searchLabel.ruleId = this.obj.id;
|
|
|
|
|
|
} else if (this.from == "asset") {
|
2020-04-21 22:39:07 +08:00
|
|
|
|
this.searchLabel.assetId = this.obj.id;
|
2020-09-25 15:33:02 +08:00
|
|
|
|
}else if(this.from == 'endpoint'){
|
|
|
|
|
|
this.searchLabel.endpointId=this.obj.id;
|
2020-03-28 20:44:29 +08:00
|
|
|
|
}
|
|
|
|
|
|
this.pageObj.pageNo = 1;
|
|
|
|
|
|
for (let item in searchObj) {
|
|
|
|
|
|
if (searchObj[item]) {
|
|
|
|
|
|
this.$set(this.searchLabel, item, searchObj[item]);
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2020-07-21 10:03:31 +08:00
|
|
|
|
if(orderBy){
|
|
|
|
|
|
this.$set(this.searchLabel, 'orderBy', orderBy);
|
|
|
|
|
|
}
|
2020-11-17 09:05:43 +08:00
|
|
|
|
if(this.$refs.alertMessageTable.$refs.alertListTable && this.$refs.alertMessageTable.$refs.alertListTable.bodyWrapper){
|
|
|
|
|
|
this.$refs.alertMessageTable.$refs.alertListTable.bodyWrapper.scrollTop = 0;
|
|
|
|
|
|
}
|
2020-03-28 20:44:29 +08:00
|
|
|
|
this.getAlertList();
|
2020-03-20 21:05:31 +08:00
|
|
|
|
},
|
2020-07-21 10:03:31 +08:00
|
|
|
|
// 数据排序
|
|
|
|
|
|
tableDataSort(item){
|
|
|
|
|
|
let orderBy='';
|
|
|
|
|
|
if(item.order==='ascending'){
|
|
|
|
|
|
orderBy=item.prop;
|
|
|
|
|
|
}
|
|
|
|
|
|
if(item.order==='descending'){
|
|
|
|
|
|
orderBy='-'+item.prop;
|
|
|
|
|
|
}
|
|
|
|
|
|
this.$set(this.searchLabel, "orderBy", orderBy);
|
|
|
|
|
|
this.getAlertList();
|
|
|
|
|
|
},
|
2020-03-20 21:05:31 +08:00
|
|
|
|
},
|
|
|
|
|
|
watch: {
|
|
|
|
|
|
obj: {
|
|
|
|
|
|
immediate: true,
|
|
|
|
|
|
deep: true,
|
|
|
|
|
|
handler(n) {
|
2020-10-12 18:15:24 +08:00
|
|
|
|
if(n.alertNum==0){
|
|
|
|
|
|
this.defaultPick=8
|
|
|
|
|
|
}else{
|
|
|
|
|
|
this.defaultPick=12;
|
|
|
|
|
|
}
|
2020-03-20 21:05:31 +08:00
|
|
|
|
if (this.from == "alertRule") {
|
2020-03-24 19:22:24 +08:00
|
|
|
|
this.searchMsg.searchLabelList = this.searchMsg.searchLabelList.filter((item, index) => {
|
|
|
|
|
|
return item.label != "alertName" && item.label != "severity"
|
|
|
|
|
|
});
|
2020-03-25 18:43:33 +08:00
|
|
|
|
this.searchLabel.ruleId = n.id;
|
2020-03-20 21:05:31 +08:00
|
|
|
|
} else if (this.from == "asset") {
|
2020-03-24 19:22:24 +08:00
|
|
|
|
this.searchMsg.searchLabelList = this.searchMsg.searchLabelList.filter((item, index) => {
|
|
|
|
|
|
return item.label != "alertType" && item.label != "asset"
|
|
|
|
|
|
});
|
2020-04-28 16:10:59 +08:00
|
|
|
|
this.searchLabel.assetId = n.id;
|
2020-09-25 15:33:02 +08:00
|
|
|
|
} else if(this.from == 'endpoint'){
|
|
|
|
|
|
this.searchMsg.searchLabelList = this.searchMsg.searchLabelList.filter((item, index) => {
|
|
|
|
|
|
return item.label != "alertType" && item.label != "endpoint"
|
|
|
|
|
|
});
|
|
|
|
|
|
this.searchLabel.endpointId = n.id;
|
2020-03-20 21:05:31 +08:00
|
|
|
|
}
|
2020-03-31 17:22:15 +08:00
|
|
|
|
if (n.alertNum) {
|
|
|
|
|
|
this.defaultSearchValue = 1;
|
|
|
|
|
|
}
|
2020-03-20 21:05:31 +08:00
|
|
|
|
this.getAlertList();
|
|
|
|
|
|
}
|
2020-11-16 15:16:39 +08:00
|
|
|
|
},
|
2020-03-20 21:05:31 +08:00
|
|
|
|
},
|
2020-11-21 12:21:27 +08:00
|
|
|
|
created(){
|
2020-03-20 21:05:31 +08:00
|
|
|
|
//是否存在分页缓存
|
|
|
|
|
|
let pageSize = localStorage.getItem('nz-pageSize-' + localStorage.getItem('nz-username') + '-' + this.tableId);
|
|
|
|
|
|
if (pageSize) {
|
|
|
|
|
|
this.pageObj.pageSize = pageSize
|
|
|
|
|
|
}
|
2020-11-21 12:21:27 +08:00
|
|
|
|
},
|
|
|
|
|
|
mounted() {
|
2020-03-24 19:22:24 +08:00
|
|
|
|
this.tablelable = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-/alertList")
|
|
|
|
|
|
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-/alertList"))
|
2020-03-20 21:05:31 +08:00
|
|
|
|
: this.tableTitle;
|
2020-03-24 19:22:24 +08:00
|
|
|
|
this.dropCol = localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-/alertList")
|
|
|
|
|
|
? JSON.parse(localStorage.getItem("nz-tableTitle-" + localStorage.getItem("nz-username") + "-/alertList"))
|
2020-03-20 21:05:31 +08:00
|
|
|
|
: this.tableTitle;
|
2020-11-20 18:03:57 +08:00
|
|
|
|
// this.$refs['alertMessageTable'].bottomBox.mainResizeShow=false;
|
2020-11-20 11:19:25 +08:00
|
|
|
|
},
|
|
|
|
|
|
beforeDestroy(){
|
|
|
|
|
|
|
2020-03-20 21:05:31 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
</script>
|
|
|
|
|
|
|
2020-03-28 20:44:29 +08:00
|
|
|
|
<style scoped>
|
|
|
|
|
|
|
2020-03-20 21:05:31 +08:00
|
|
|
|
</style>
|