|
@@ -48,6 +48,8 @@
|
|
|
</el-form>
|
|
|
<div style="display:flex;justify-content: space-between;">
|
|
|
<div>
|
|
|
+ <el-button type="primary" size="mini" @click="getData">重新获取告警列表</el-button>
|
|
|
+ </el-button>
|
|
|
</div>
|
|
|
<div>
|
|
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
@@ -157,6 +159,23 @@ export default {
|
|
|
resetQuery() {
|
|
|
this.queryForm = this.$options.data().queryForm
|
|
|
this.handleQuery();
|
|
|
+ },
|
|
|
+ getData() {
|
|
|
+ Axios.post("/prod-api/api/getAccessToken").then(res => {
|
|
|
+ console.log(res)
|
|
|
+ Axios({
|
|
|
+ method: 'POST',
|
|
|
+ url: '/prod-api/api/queryAlarmList',
|
|
|
+ params: {
|
|
|
+ pageNum: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ token: res.data.data.data.access_token,
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .then(response => {
|
|
|
+ this.handleQuery()
|
|
|
+ });
|
|
|
+ })
|
|
|
}
|
|
|
}
|
|
|
};
|