Commit 3a418244 by 张杰

修复bug

1 parent 76ca00fc
......@@ -96,7 +96,7 @@ export default {
},
data() {
return {
searchForm: {},
searchForm: {alarmType:''},
currentPage: 1,
pageSizes: [10, 20, 30, 40],
pageSize: 10,
......@@ -126,7 +126,7 @@ export default {
methods: {
// 重置
rest() {
this.searchForm = {};
this.searchForm = {alarmType:''};
this.currentPage = 1;
this.pageSize = 10;
this.fenceId = "";
......
......@@ -55,7 +55,7 @@
<!-- 列表 开始 -->
<div class="table_box">
<el-table class="el_table" border size="small" :data="tableData">
<el-table class="el_table" border size="small" :data="tableData" v-loading="loading">
<el-table-column label="围栏名称" prop="fenceName" show-overflow-tooltip></el-table-column>
<el-table-column label="监控类型" prop="triggerType" show-overflow-tooltip></el-table-column>
<el-table-column label="监控时间" prop="timeType" show-overflow-tooltip width="160">
......@@ -66,11 +66,11 @@
<el-table-column label="状态" prop="enableStatusDesc" show-overflow-tooltip></el-table-column>
<el-table-column label="报警次数" prop="alarmCnt" show-overflow-tooltip></el-table-column>
<el-table-column label="最新报警时间" prop="lastAlarmDate" show-overflow-tooltip>
<template slot-scope="{row}">{{row.lastAlarmDate||'--'}}</template>
<template slot-scope="{row}">{{row.lastAlarmDate||'--'}}</template>
</el-table-column>
<el-table-column label="创建时间" prop="createdDate" show-overflow-tooltip></el-table-column>
<el-table-column label="创建人" prop="creator" show-overflow-tooltip>
<template slot-scope="{row}">{{row.creator||'--'}}</template>
<template slot-scope="{row}">{{row.creator||'--'}}</template>
</el-table-column>
<el-table-column label="操作" prop="creator" width="200" fixed="right">
<template slot-scope="{row}">
......@@ -108,7 +108,7 @@ import {
DELETE_FENCE_INFO,
GET_FENCE_LIST,
} from "@/services/fence";
import { deepClone, showToast, showModal,downFileByPath } from "@/utils/util";
import { deepClone, showToast, showModal, downFileByPath } from "@/utils/util";
import moment from "moment";
import { FENCE_MONITOR_LIST, FENCE_TYPE_LIST } from "@/common/constants";
export default {
......@@ -117,7 +117,7 @@ export default {
},
data() {
return {
searchForm: { timeType: "1" },
searchForm: { timeType: "1", enableStatus: "", triggerType: "" },
tableData: [],
pageTotal: 0,
pageSize: 10,
......@@ -153,8 +153,8 @@ export default {
oParams.pageSize = this.pageSize;
oParams.pageNumber = current || 1;
this.loading = true;
if(current){
this.pageNumber = current
if (current) {
this.pageNumber = current;
}
GET_FENCE_LIST(oParams)
.then((res) => {
......@@ -189,14 +189,14 @@ export default {
if (res.code != 200) {
return false;
}
downFileByPath(res.data)
downFileByPath(res.data);
//window.open(res.data);
});
},
// 重置
rest() {
this.searchForm = { timeType: "1" };
this.searchForm = { timeType: "1", enableStatus: "", triggerType: "" };
this.pageSize = 10;
this.pageNumber = 1;
this.getList();
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!