|
|
@ -1,7 +1,7 @@ |
|
|
|
<template> |
|
|
|
<div v-if="pageLoading" class="resi-container"> |
|
|
|
<el-card class="resi-card-table"> |
|
|
|
<div class="resi-row-btn"> |
|
|
|
<el-card ref="searchCard" class="search-card"> |
|
|
|
<div > |
|
|
|
<el-form :inline="true" :model="form" class="demo-form-inline"> |
|
|
|
<el-form-item label="是否预警"> |
|
|
|
<el-select |
|
|
@ -40,11 +40,15 @@ |
|
|
|
</el-form-item> |
|
|
|
</el-form> |
|
|
|
</div> |
|
|
|
</el-card> |
|
|
|
<el-card class="resi-card-table"> |
|
|
|
|
|
|
|
<el-table |
|
|
|
:data="tableData" |
|
|
|
row-key="id" |
|
|
|
v-loading="tableLoading" |
|
|
|
border |
|
|
|
:height="tableHeight" |
|
|
|
style="width: 100%" |
|
|
|
class="resi-table" |
|
|
|
> |
|
|
@ -93,7 +97,7 @@ |
|
|
|
:current-page.sync="currentPage" |
|
|
|
:page-sizes="[20, 50, 100, 200]" |
|
|
|
:page-size="pageSize" |
|
|
|
layout="sizes, prev, pager, next" |
|
|
|
layout="sizes, prev, pager, next, total" |
|
|
|
:total="total" |
|
|
|
> |
|
|
|
</el-pagination> |
|
|
@ -103,12 +107,13 @@ |
|
|
|
<el-dialog |
|
|
|
title="居民类别配置" |
|
|
|
:visible.sync="dialogVisible" |
|
|
|
width="40%" |
|
|
|
width="50%" |
|
|
|
append-to-body |
|
|
|
class="dialog-h" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:before-close="handlerCancle" |
|
|
|
> |
|
|
|
<el-form label-width="100px" :model="form" :rules="rules" ref="ruleForm"> |
|
|
|
<el-form label-width="150px" :model="form" :rules="rules" ref="ruleForm" class="dialog-h-content scroll-h"> |
|
|
|
<el-form-item label="类别名称"> |
|
|
|
<el-input v-model="form.label" size="small" style="width: 180px;" disabled></el-input> |
|
|
|
</el-form-item> |
|
|
@ -196,6 +201,7 @@ export default { |
|
|
|
total: null, |
|
|
|
conditions: [], |
|
|
|
tableData: [], |
|
|
|
tableHeight: 500, |
|
|
|
isWarn: null, |
|
|
|
level: null, |
|
|
|
options: [ |
|
|
@ -282,6 +288,10 @@ export default { |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
this.rowDrop() |
|
|
|
this.$nextTick(() => { |
|
|
|
this.tableHeight = document.documentElement.clientHeight - this.$refs.searchCard.$el.offsetHeight - 230 + 'px' |
|
|
|
console.log('tableHeight', this.tableHeight) |
|
|
|
}) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
rowDrop() { |
|
|
@ -501,7 +511,7 @@ export default { |
|
|
|
return this.$message.error(res.msg) |
|
|
|
} else { |
|
|
|
this.tableData = res.data |
|
|
|
this.total = res.data.total |
|
|
|
this.total = res.data.length |
|
|
|
} |
|
|
|
}) |
|
|
|
.catch(() => { |
|
|
|