|
@@ -50,7 +50,7 @@
|
|
<div>
|
|
<div>
|
|
<el-button type="primary" size="mini" @click="getData">重新获取告警列表</el-button>
|
|
<el-button type="primary" size="mini" @click="getData">重新获取告警列表</el-button>
|
|
</div>
|
|
</div>
|
|
- <div>
|
|
|
|
|
|
+ <div style="display:flex;">
|
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
<el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
<el-button v-show="show" @click="show = !show" icon="el-icon-arrow-up" size="mini">
|
|
<el-button v-show="show" @click="show = !show" icon="el-icon-arrow-up" size="mini">
|
|
@@ -60,6 +60,9 @@
|
|
展开
|
|
展开
|
|
</el-button>
|
|
</el-button>
|
|
<right-toolbar style="margin-left: 12px" :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
<right-toolbar style="margin-left: 12px" :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
|
|
+ <div style="margin: 0 12px">
|
|
|
|
+ <el-button icon="el-icon-setting" size="mini" circle @click="colSetting"></el-button>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<el-table v-loading="loading" :data="list" style="width: 100%;">
|
|
<el-table v-loading="loading" :data="list" style="width: 100%;">
|
|
@@ -87,12 +90,14 @@
|
|
</el-table>
|
|
</el-table>
|
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
|
<pagination v-show="total > 0" :total="total" :page.sync="queryParams.pageNum" :limit.sync="queryParams.pageSize"
|
|
@pagination="getList" />
|
|
@pagination="getList" />
|
|
|
|
+ <column-setting ref="columnSetting" @reset="reset" @getRowdata="getRowdata" tableName="监控列表" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { tableOption } from "./js/index";
|
|
import { tableOption } from "./js/index";
|
|
import { list } from "@/api/monitor/alrtmList";
|
|
import { list } from "@/api/monitor/alrtmList";
|
|
|
|
+import columnSetting from "@/components/ColumnSetting/index";
|
|
import Axios from "axios";
|
|
import Axios from "axios";
|
|
|
|
|
|
export default {
|
|
export default {
|
|
@@ -117,6 +122,9 @@ export default {
|
|
deviceOptions: [],
|
|
deviceOptions: [],
|
|
};
|
|
};
|
|
},
|
|
},
|
|
|
|
+ components: {
|
|
|
|
+ columnSetting,
|
|
|
|
+ },
|
|
created() {
|
|
created() {
|
|
this.getDicts("alarm_deal_result").then((response) => {
|
|
this.getDicts("alarm_deal_result").then((response) => {
|
|
this.dealOptions = response.data;
|
|
this.dealOptions = response.data;
|
|
@@ -146,7 +154,19 @@ export default {
|
|
return name;
|
|
return name;
|
|
}
|
|
}
|
|
},
|
|
},
|
|
|
|
+ activated() {
|
|
|
|
+ this.$refs.columnSetting.getRow(this.tableOption);
|
|
|
|
+ },
|
|
methods: {
|
|
methods: {
|
|
|
|
+ colSetting() {
|
|
|
|
+ this.$refs.columnSetting.init(this.tableOption);
|
|
|
|
+ },
|
|
|
|
+ getRowdata(list) {
|
|
|
|
+ this.tableOption = list;
|
|
|
|
+ },
|
|
|
|
+ reset() {
|
|
|
|
+ this.tableOption = this.$options.data().tableOption;
|
|
|
|
+ },
|
|
/** 查询登录日志列表 */
|
|
/** 查询登录日志列表 */
|
|
getList() {
|
|
getList() {
|
|
this.loading = true;
|
|
this.loading = true;
|
|
@@ -163,7 +183,7 @@ export default {
|
|
},
|
|
},
|
|
/** 重置按钮操作 */
|
|
/** 重置按钮操作 */
|
|
resetQuery() {
|
|
resetQuery() {
|
|
- this.queryForm = this.$options.data().queryForm
|
|
|
|
|
|
+ this.queryParams = this.$options.data().queryParams
|
|
this.handleQuery();
|
|
this.handleQuery();
|
|
},
|
|
},
|
|
getData() {
|
|
getData() {
|