|
|
@ -3,135 +3,75 @@ |
|
|
|
|
|
|
|
<div class="u-table-btn2"> |
|
|
|
<div class="u-table-btn2-left"> |
|
|
|
<el-button style="" |
|
|
|
class="diy-button--blue" |
|
|
|
icon="el-icon-plus" |
|
|
|
size="small" |
|
|
|
:disabled="addDisabled" |
|
|
|
@click="handleAdd">新增楼栋</el-button> |
|
|
|
<el-button style="" class="diy-button--blue" icon="el-icon-plus" size="small" :disabled="addDisabled" |
|
|
|
@click="handleAdd">新增楼栋</el-button> |
|
|
|
|
|
|
|
<div class="u-btn-upload" |
|
|
|
v-if="showImportBtn"> |
|
|
|
<div class="u-btn-upload" v-if="showImportBtn"> |
|
|
|
|
|
|
|
<el-popover popper-class="btn-popper" |
|
|
|
placement="bottom" |
|
|
|
width="20" |
|
|
|
trigger="hover"> |
|
|
|
<el-popover popper-class="btn-popper" placement="bottom" width="20" trigger="hover"> |
|
|
|
|
|
|
|
<div class="table-more-btn"> |
|
|
|
|
|
|
|
<el-upload :headers="$getElUploadHeaders()" |
|
|
|
style="text-align: center" |
|
|
|
ref="upload_building" |
|
|
|
:multiple='false' |
|
|
|
:show-file-list='false' |
|
|
|
:before-upload="((file)=>{beforeUpload(file, 'building')})" |
|
|
|
action="" |
|
|
|
accept=".xls,.xlsx" |
|
|
|
:http-request="(()=>{uploadFile( 'building')})"> |
|
|
|
<el-button style="" |
|
|
|
size="small" |
|
|
|
type="text" |
|
|
|
class="diy-button--other">导入楼栋数据</el-button> |
|
|
|
<el-upload :headers="$getElUploadHeaders()" style="text-align: center" ref="upload_building" |
|
|
|
:multiple='false' :show-file-list='false' :before-upload="((file) => { beforeUpload(file, 'building') })" |
|
|
|
action="" accept=".xls,.xlsx" :http-request="(() => { uploadFile('building') })"> |
|
|
|
<el-button style="" size="small" type="text" class="diy-button--other">导入楼栋数据</el-button> |
|
|
|
</el-upload> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="table-more-btn"> |
|
|
|
<el-upload :headers="$getElUploadHeaders()" |
|
|
|
style="text-align: center" |
|
|
|
ref="upload_room" |
|
|
|
:multiple='false' |
|
|
|
:show-file-list='false' |
|
|
|
:before-upload="((file)=>{beforeUpload(file, 'room')})" |
|
|
|
action="" |
|
|
|
accept=".xls,.xlsx" |
|
|
|
:http-request="(()=>{uploadFile( 'room')})"> |
|
|
|
<el-button size="small" |
|
|
|
type="text" |
|
|
|
class="diy-button--other">导入房屋数据</el-button> |
|
|
|
<el-upload :headers="$getElUploadHeaders()" style="text-align: center" ref="upload_room" :multiple='false' |
|
|
|
:show-file-list='false' :before-upload="((file) => { beforeUpload(file, 'room') })" action="" |
|
|
|
accept=".xls,.xlsx" :http-request="(() => { uploadFile('room') })"> |
|
|
|
<el-button size="small" type="text" class="diy-button--other">导入房屋数据</el-button> |
|
|
|
</el-upload> |
|
|
|
|
|
|
|
</div> |
|
|
|
<el-button size="small" |
|
|
|
style="float:right" |
|
|
|
class="diy-button--white" |
|
|
|
slot="reference">导入<i class="el-icon-arrow-down el-icon--right"></i></el-button> |
|
|
|
<el-button size="small" style="float:right" class="diy-button--white" slot="reference">导入<i |
|
|
|
class="el-icon-arrow-down el-icon--right"></i></el-button> |
|
|
|
</el-popover> |
|
|
|
|
|
|
|
</div> |
|
|
|
<el-button style="margin-left:10px" |
|
|
|
class="diy-button--white" |
|
|
|
size="small" |
|
|
|
@click="handleExport">导出</el-button> |
|
|
|
<el-button style="margin-left:10px" |
|
|
|
class="diy-button--white" |
|
|
|
size="small" |
|
|
|
@click="deleteBatch">批量删除</el-button> |
|
|
|
<el-button style="margin-left:10px" class="diy-button--white" size="small" @click="handleExport">导出</el-button> |
|
|
|
<el-button style="margin-left:10px" class="diy-button--white" size="small" @click="deleteBatch">批量删除</el-button> |
|
|
|
</div> |
|
|
|
|
|
|
|
<div> |
|
|
|
<el-popover popper-class="btn-popper" |
|
|
|
placement="bottom" |
|
|
|
style="margin-left: 10px" |
|
|
|
width="20" |
|
|
|
trigger="hover"> |
|
|
|
|
|
|
|
<div v-if="showImportBtn" |
|
|
|
class="table-more-btn"> |
|
|
|
<el-button :headers="$getElUploadHeaders()" |
|
|
|
style="" |
|
|
|
class="diy-button--other" |
|
|
|
size="small" |
|
|
|
type="text" |
|
|
|
@click="handleExportModule('building')">下载楼栋模板</el-button> |
|
|
|
<el-popover popper-class="btn-popper" placement="bottom" style="margin-left: 10px" width="20" trigger="hover"> |
|
|
|
|
|
|
|
<div class="table-more-btn"> |
|
|
|
<el-button :headers="$getElUploadHeaders()" style="" class="diy-button--other" size="small" type="text" |
|
|
|
@click="handleExportModule('community')">下载小区模板</el-button> |
|
|
|
</div> |
|
|
|
<!-- v-if="showImportBtn" --> |
|
|
|
<div class="table-more-btn"> |
|
|
|
<el-button :headers="$getElUploadHeaders()" style="" class="diy-button--other" size="small" type="text" |
|
|
|
@click="handleExportModule('building')">下载楼栋模板</el-button> |
|
|
|
</div> |
|
|
|
<div v-if="showImportBtn" |
|
|
|
class="table-more-btn"> |
|
|
|
<el-button :headers="$getElUploadHeaders()" |
|
|
|
style="" |
|
|
|
class="diy-button--other" |
|
|
|
size="small" |
|
|
|
type="text" |
|
|
|
@click="handleExportModule('room')">下载房屋模板</el-button> |
|
|
|
<!-- v-if="showImportBtn" --> |
|
|
|
<div class="table-more-btn"> |
|
|
|
<el-button :headers="$getElUploadHeaders()" style="" class="diy-button--other" size="small" type="text" |
|
|
|
@click="handleExportModule('room')">下载房屋模板</el-button> |
|
|
|
</div> |
|
|
|
<div class="table-more-btn"> |
|
|
|
<el-button style="" |
|
|
|
class="diy-button--other" |
|
|
|
size="small" |
|
|
|
type="text" |
|
|
|
:disabled="yihuyidangDisabled" |
|
|
|
@click="handleExportYihuyidang()">导出一户一档</el-button> |
|
|
|
<el-button style="" class="diy-button--other" size="small" type="text" :disabled="yihuyidangDisabled" |
|
|
|
@click="handleExportYihuyidang()">导出一户一档</el-button> |
|
|
|
</div> |
|
|
|
<div v-if="displayedBaobiaoBtn" |
|
|
|
class="table-more-btn"> |
|
|
|
<el-button size="small" |
|
|
|
type="text" |
|
|
|
class="diy-button--other" |
|
|
|
@click="reportForm">智能填报</el-button> |
|
|
|
<div v-if="displayedBaobiaoBtn" class="table-more-btn"> |
|
|
|
<el-button size="small" type="text" class="diy-button--other" @click="reportForm">智能填报</el-button> |
|
|
|
</div> |
|
|
|
<el-button size="small" |
|
|
|
style="float:right" |
|
|
|
class="diy-button--white" |
|
|
|
slot="reference">更多<i class="el-icon-arrow-down el-icon--right"></i></el-button> |
|
|
|
<el-button size="small" style="float:right" class="diy-button--white" slot="reference">更多<i |
|
|
|
class="el-icon-arrow-down el-icon--right"></i></el-button> |
|
|
|
</el-popover> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<div class="m-table-item"> |
|
|
|
<el-table ref="ref_table" |
|
|
|
:data="tableData" |
|
|
|
border |
|
|
|
@sort-change="handleSortOrderChange" |
|
|
|
:show-overflow-tooltip="true" |
|
|
|
:height="tableHeight" |
|
|
|
v-loading="tableLoading" |
|
|
|
style="width: 100%" |
|
|
|
@select-all="selectAll" |
|
|
|
@selection-change="selectionChange"> |
|
|
|
<el-table-column type="selection" |
|
|
|
:selectable="checkSelect" |
|
|
|
width="55"> |
|
|
|
<el-table ref="ref_table" :data="tableData" border @sort-change="handleSortOrderChange" |
|
|
|
:show-overflow-tooltip="true" :height="tableHeight" v-loading="tableLoading" style="width: 100%" |
|
|
|
@select-all="selectAll" @selection-change="selectionChange"> |
|
|
|
<el-table-column type="selection" :selectable="checkSelect" width="55"> |
|
|
|
</el-table-column> |
|
|
|
<!-- <el-table-column fixed="left" |
|
|
|
width="70" |
|
|
@ -142,150 +82,70 @@ |
|
|
|
:index="indexMethod"> |
|
|
|
</el-table-column> --> |
|
|
|
|
|
|
|
<el-table-column prop="buildingName" |
|
|
|
fixed="left" |
|
|
|
label="楼栋名称" |
|
|
|
header-align="left" |
|
|
|
align="left" |
|
|
|
min-width="180"> |
|
|
|
<el-table-column prop="buildingName" fixed="left" label="楼栋名称" header-align="left" align="left" min-width="180"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<a class="name-a" |
|
|
|
@click="handleToNextLevel(scope.row)"> |
|
|
|
<a class="name-a" @click="handleToNextLevel(scope.row)"> |
|
|
|
{{ scope.row.buildingName }} |
|
|
|
</a> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="neighborHoodName" |
|
|
|
label="所属小区" |
|
|
|
header-align="left" |
|
|
|
align="left" |
|
|
|
min-width="160"> |
|
|
|
<el-table-column prop="neighborHoodName" label="所属小区" header-align="left" align="left" min-width="160"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="buildingType" |
|
|
|
label="楼栋类型" |
|
|
|
header-align="left" |
|
|
|
align="left" |
|
|
|
width="90"> |
|
|
|
<el-table-column prop="buildingType" label="楼栋类型" header-align="left" align="left" width="90"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="buildingLeaderName" |
|
|
|
label="楼长姓名" |
|
|
|
header-align="left" |
|
|
|
align="left" |
|
|
|
min-width="90"> |
|
|
|
<el-table-column prop="buildingLeaderName" label="楼长姓名" header-align="left" align="left" min-width="90"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="buildingLeaderMobile" |
|
|
|
label="楼长电话" |
|
|
|
header-align="left" |
|
|
|
align="left" |
|
|
|
min-width="110"> |
|
|
|
<el-table-column prop="buildingLeaderMobile" label="楼长电话" header-align="left" align="left" min-width="110"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="totalUnitNum" |
|
|
|
header-align="left" |
|
|
|
align="left" |
|
|
|
label="单元数"> |
|
|
|
<el-table-column prop="totalUnitNum" header-align="left" align="left" label="单元数"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="totalFloorNum" |
|
|
|
header-align="left" |
|
|
|
align="left" |
|
|
|
label="层数"> |
|
|
|
<el-table-column prop="totalFloorNum" header-align="left" align="left" label="层数"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="realTotalHouseNum" |
|
|
|
header-align="left" |
|
|
|
align="left" |
|
|
|
width="90" |
|
|
|
label="实际录入"> |
|
|
|
<el-table-column prop="realTotalHouseNum" header-align="left" align="left" width="90" label="实际录入"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="totalHouseNum" |
|
|
|
header-align="left" |
|
|
|
align="left" |
|
|
|
label="总户数"> |
|
|
|
<el-table-column prop="totalHouseNum" header-align="left" align="left" label="总户数"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="sort" |
|
|
|
sortable="custom" |
|
|
|
header-align="left" |
|
|
|
align="left" |
|
|
|
min-width="100" |
|
|
|
label="排序"> |
|
|
|
<el-table-column prop="sort" sortable="custom" header-align="left" align="left" min-width="100" label="排序"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<div @click="handleEditSort(scope.row)"> |
|
|
|
<span v-if="!scope.row.isChange">{{scope.row.sort}}</span> |
|
|
|
<el-input-number v-else |
|
|
|
@change="handleChangeSort(scope.row)" |
|
|
|
v-model="scope.row.sort" |
|
|
|
class="item_width_4" |
|
|
|
size="small" |
|
|
|
:min="0" |
|
|
|
:max="9999" |
|
|
|
label="描述文字"></el-input-number> |
|
|
|
<span v-if="!scope.row.isChange">{{ scope.row.sort }}</span> |
|
|
|
<el-input-number v-else @change="handleChangeSort(scope.row)" v-model="scope.row.sort" class="item_width_4" |
|
|
|
size="small" :min="0" :max="9999" label="描述文字"></el-input-number> |
|
|
|
</div> |
|
|
|
|
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="操作" |
|
|
|
fixed="right" |
|
|
|
width="220" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
class="operate"> |
|
|
|
<el-table-column label="操作" fixed="right" width="220" header-align="center" align="center" class="operate"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
|
|
|
|
<el-button type="text" |
|
|
|
class="div-table-button--blue" |
|
|
|
size="small" |
|
|
|
@click="handleDetail(scope.row)">查看</el-button> |
|
|
|
<el-button v-if="scope.row.showBtn" |
|
|
|
type="text" |
|
|
|
class="div-table-button--blue" |
|
|
|
size="small" |
|
|
|
@click="handleEdit(scope.row)">编辑</el-button> |
|
|
|
|
|
|
|
<el-button v-if="scope.row.showBtn" |
|
|
|
type="text" |
|
|
|
class="div-table-button--blue" |
|
|
|
size="small" |
|
|
|
@click="handleDelete(scope.row)">删除</el-button> |
|
|
|
<el-button type="text" class="div-table-button--blue" size="small" |
|
|
|
@click="handleDetail(scope.row)">查看</el-button> |
|
|
|
<el-button v-if="scope.row.showBtn" type="text" class="div-table-button--blue" size="small" |
|
|
|
@click="handleEdit(scope.row)">编辑</el-button> |
|
|
|
|
|
|
|
<el-button v-if="scope.row.showBtn" type="text" class="div-table-button--blue" size="small" |
|
|
|
@click="handleDelete(scope.row)">删除</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
<div> |
|
|
|
<el-pagination @size-change="handleSizeChange" |
|
|
|
@current-change="handleCurrentChange" |
|
|
|
:current-page.sync="pageNo" |
|
|
|
:page-sizes="[20, 50, 100, 200]" |
|
|
|
:page-size="pageSize" |
|
|
|
layout="sizes, prev, pager, next, total" |
|
|
|
:total="total"> |
|
|
|
<el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page.sync="pageNo" |
|
|
|
:page-sizes="[20, 50, 100, 200]" :page-size="pageSize" layout="sizes, prev, pager, next, total" :total="total"> |
|
|
|
</el-pagination> |
|
|
|
</div> |
|
|
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
<!-- 修改弹出框 --> |
|
|
|
<el-dialog :visible.sync="formShow" |
|
|
|
v-if="formShow" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:close-on-press-escape="false" |
|
|
|
:title="formTitle" |
|
|
|
top="5vh" |
|
|
|
width="670px" |
|
|
|
class="dialog-h" |
|
|
|
@closed="diaClose"> |
|
|
|
<build-form ref="ref_form" |
|
|
|
@dialogCancle="addFormCancle" |
|
|
|
@dialogOk="addFormOk"></build-form> |
|
|
|
<el-dialog :visible.sync="formShow" v-if="formShow" :close-on-click-modal="false" :close-on-press-escape="false" |
|
|
|
:title="formTitle" top="5vh" width="670px" class="dialog-h" @closed="diaClose"> |
|
|
|
<build-form ref="ref_form" @dialogCancle="addFormCancle" @dialogOk="addFormOk"></build-form> |
|
|
|
</el-dialog> |
|
|
|
<!-- 详情弹出框 --> |
|
|
|
<el-dialog :visible.sync="detailShow" |
|
|
|
:close-on-click-modal="false" |
|
|
|
:close-on-press-escape="false" |
|
|
|
:title="'楼栋详情'" |
|
|
|
top="5vh" |
|
|
|
width="670px" |
|
|
|
class="dialog-h" |
|
|
|
@closed="detailFormCancle"> |
|
|
|
<build-detail ref="ref_form_detail" |
|
|
|
@diaDetailClose="detailFormCancle"></build-detail> |
|
|
|
<el-dialog :visible.sync="detailShow" :close-on-click-modal="false" :close-on-press-escape="false" :title="'楼栋详情'" |
|
|
|
top="5vh" width="670px" class="dialog-h" @closed="detailFormCancle"> |
|
|
|
<build-detail ref="ref_form_detail" @diaDetailClose="detailFormCancle"></build-detail> |
|
|
|
</el-dialog> |
|
|
|
|
|
|
|
<baobiao ref="baobiao" /> |
|
|
@ -304,7 +164,7 @@ import baobiao from "@/views/modules/cpts/baobiao"; |
|
|
|
|
|
|
|
let loading // 加载动画 |
|
|
|
export default { |
|
|
|
data () { |
|
|
|
data() { |
|
|
|
return { |
|
|
|
searchHeight: 190,//搜索栏高度 |
|
|
|
importBuildingLoading: false, |
|
|
@ -338,7 +198,7 @@ export default { |
|
|
|
BuildForm, |
|
|
|
BuildDetail |
|
|
|
}, |
|
|
|
async mounted () { |
|
|
|
async mounted() { |
|
|
|
// this.displayedBaobiaoBtn = await this.$refs.baobiao.existsTemplate({ |
|
|
|
// elseParams: { |
|
|
|
// categoryKeys: ['house_info'], categoryKey: 'house_info', |
|
|
@ -346,7 +206,7 @@ export default { |
|
|
|
// }); |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
tableHeight () { |
|
|
|
tableHeight() { |
|
|
|
|
|
|
|
let height = this.searchHeight + 270 |
|
|
|
return this.$store.state.inIframe ? this.clientHeight - height + this.iframeHeight : this.clientHeight - height |
|
|
@ -356,7 +216,7 @@ export default { |
|
|
|
...mapGetters(['clientHeight', 'iframeHeight']) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
reportForm () { |
|
|
|
reportForm() { |
|
|
|
let paramMap = { |
|
|
|
pageSize: this.pageSize, |
|
|
|
pageNo: this.pageNo, |
|
|
@ -378,10 +238,10 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
indexMethod (index) { |
|
|
|
indexMethod(index) { |
|
|
|
return index + 1; |
|
|
|
}, |
|
|
|
handleSortOrderChange (value) { |
|
|
|
handleSortOrderChange(value) { |
|
|
|
|
|
|
|
this.sortType = value.order === 'ascending' ? 'asc' : 'desc' |
|
|
|
this.loadTable() |
|
|
@ -391,7 +251,7 @@ export default { |
|
|
|
|
|
|
|
// }, |
|
|
|
|
|
|
|
handleEditSort (row) { |
|
|
|
handleEditSort(row) { |
|
|
|
if (!row.isChange) { |
|
|
|
row.isChange = true |
|
|
|
} |
|
|
@ -399,7 +259,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
async handleChangeSort (row, index) { |
|
|
|
async handleChangeSort(row, index) { |
|
|
|
// row.isChange = false |
|
|
|
|
|
|
|
let params = { |
|
|
@ -427,7 +287,7 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
checkSelect (row, index) { |
|
|
|
checkSelect(row, index) { |
|
|
|
let isChecked = false; |
|
|
|
if (row.showBtn) { // 判断里面是否存在某个参数 |
|
|
|
isChecked = true |
|
|
@ -437,7 +297,7 @@ export default { |
|
|
|
return isChecked |
|
|
|
}, |
|
|
|
|
|
|
|
async loadTable (fromTree, treeObj) { |
|
|
|
async loadTable(fromTree, treeObj) { |
|
|
|
this.addDisabled = true |
|
|
|
this.tableLoading = true |
|
|
|
if (fromTree) { |
|
|
@ -485,12 +345,12 @@ export default { |
|
|
|
this.tableLoading = false |
|
|
|
}, |
|
|
|
|
|
|
|
diaClose () { |
|
|
|
diaClose() { |
|
|
|
this.$refs.ref_form.resetData() |
|
|
|
this.formShow = false |
|
|
|
}, |
|
|
|
|
|
|
|
async handleDetail (row) { |
|
|
|
async handleDetail(row) { |
|
|
|
// this.formTitle = '楼栋详情' |
|
|
|
// this.formShow = true |
|
|
|
// const _data = await this.detail(row) |
|
|
@ -506,12 +366,12 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
detailFormCancle () { |
|
|
|
detailFormCancle() { |
|
|
|
this.$refs.ref_form_detail.diaDestroy() |
|
|
|
this.detailShow = false |
|
|
|
}, |
|
|
|
|
|
|
|
handleAdd () { |
|
|
|
handleAdd() { |
|
|
|
this.formTitle = '新增楼栋' |
|
|
|
this.formShow = true |
|
|
|
this.$nextTick(() => { |
|
|
@ -520,7 +380,7 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
async handleEdit (row) { |
|
|
|
async handleEdit(row) { |
|
|
|
this.formTitle = '修改楼栋' |
|
|
|
this.formShow = true |
|
|
|
const _data = await this.detail(row) |
|
|
@ -529,21 +389,21 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
handleToNextLevel (row) { |
|
|
|
handleToNextLevel(row) { |
|
|
|
this.$emit('toNextLevel', row, 'building') |
|
|
|
}, |
|
|
|
|
|
|
|
addFormCancle () { |
|
|
|
addFormCancle() { |
|
|
|
this.formShow = false |
|
|
|
}, |
|
|
|
addFormOk () { |
|
|
|
addFormOk() { |
|
|
|
this.formShow = false |
|
|
|
this.loadTable() |
|
|
|
this.$emit('refreshTree') |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
deleteBatch () { |
|
|
|
deleteBatch() { |
|
|
|
if (this.selection.length > 0) { |
|
|
|
this.$confirm("确认删除选择的楼栋?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
@ -566,15 +426,15 @@ export default { |
|
|
|
this.$message.warning('请先选择要删除的楼栋') |
|
|
|
} |
|
|
|
}, |
|
|
|
selectAll (selection) { |
|
|
|
selectAll(selection) { |
|
|
|
this.selection = selection |
|
|
|
|
|
|
|
}, |
|
|
|
selectionChange (selection) { |
|
|
|
selectionChange(selection) { |
|
|
|
this.selection = selection |
|
|
|
|
|
|
|
}, |
|
|
|
async handleDelete (row) { |
|
|
|
async handleDelete(row) { |
|
|
|
|
|
|
|
this.$confirm("确认删除?", "提示", { |
|
|
|
confirmButtonText: "确定", |
|
|
@ -597,7 +457,7 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
async deleteCommunityBatch () { |
|
|
|
async deleteCommunityBatch() { |
|
|
|
let ids = [] |
|
|
|
this.selection.forEach(element => { |
|
|
|
|
|
|
@ -633,7 +493,7 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
async deleteBuild (row) { |
|
|
|
async deleteBuild(row) { |
|
|
|
const url = "/actual/base/communityBuilding/deleteBuilding" |
|
|
|
|
|
|
|
let params = { |
|
|
@ -653,7 +513,7 @@ export default { |
|
|
|
// this.$message.error(msg) |
|
|
|
} |
|
|
|
}, |
|
|
|
async detail (row) { |
|
|
|
async detail(row) { |
|
|
|
const url = "/actual/base/communityBuilding/getBuildingDetail/" + row.buildingId |
|
|
|
|
|
|
|
|
|
|
@ -667,7 +527,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//导出表格 |
|
|
|
async handleExport () { |
|
|
|
async handleExport() { |
|
|
|
let title = this.agencyObj.label |
|
|
|
title = title + '—楼栋列表' |
|
|
|
|
|
|
@ -692,7 +552,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
// 下载文件 |
|
|
|
download (data, fileName) { |
|
|
|
download(data, fileName) { |
|
|
|
if (!data) { |
|
|
|
return |
|
|
|
} |
|
|
@ -717,11 +577,14 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
handleExportModule (type) { |
|
|
|
handleExportModule(type) { |
|
|
|
|
|
|
|
let title = '' |
|
|
|
let url = "" |
|
|
|
if (type === 'building') { |
|
|
|
if (type === "community") { |
|
|
|
title = "小区导入模板"; |
|
|
|
url = "/gov/org/neighborhood/exporttemplate"; |
|
|
|
} else if (type === 'building') { |
|
|
|
title = '楼栋导入模板' |
|
|
|
url = '/gov/org/building/exporttemplate' |
|
|
|
|
|
|
@ -747,7 +610,7 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//导出一户一档 |
|
|
|
handleExportYihuyidang () { |
|
|
|
handleExportYihuyidang() { |
|
|
|
this.yihuyidangDisabled = true |
|
|
|
let title = this.agencyObj.label |
|
|
|
title = title + '-一户一档' |
|
|
@ -786,7 +649,7 @@ export default { |
|
|
|
|
|
|
|
|
|
|
|
// 上传文件之前的钩子 |
|
|
|
beforeUpload (file, type) { |
|
|
|
beforeUpload(file, type) { |
|
|
|
this.files = file; |
|
|
|
|
|
|
|
const isText = file.type === 'application/vnd.ms-excel' |
|
|
@ -804,11 +667,11 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
// 上传文件个数超过定义的数量 |
|
|
|
handleExceed (files, fileList) { |
|
|
|
handleExceed(files, fileList) { |
|
|
|
this.$message.warning(`当前限制选择 1 个文件,请删除后继续上传`) |
|
|
|
}, |
|
|
|
|
|
|
|
async uploadFile (type) { |
|
|
|
async uploadFile(type) { |
|
|
|
if (this.fileName == "") { |
|
|
|
this.$message.warning('请选择要上传的文件!') |
|
|
|
return false |
|
|
@ -884,7 +747,7 @@ export default { |
|
|
|
|
|
|
|
}, |
|
|
|
|
|
|
|
showMessage (msg) { |
|
|
|
showMessage(msg) { |
|
|
|
this.$alert(msg, '操作结果', { |
|
|
|
confirmButtonText: '关闭', |
|
|
|
callback: action => { |
|
|
@ -894,18 +757,18 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
handleSizeChange (val) { |
|
|
|
handleSizeChange(val) { |
|
|
|
this.pageSize = val |
|
|
|
this.pageNo = 1 |
|
|
|
this.loadTable() |
|
|
|
}, |
|
|
|
handleCurrentChange (val) { |
|
|
|
handleCurrentChange(val) { |
|
|
|
this.pageNo = val |
|
|
|
this.loadTable() |
|
|
|
}, |
|
|
|
|
|
|
|
// 开启加载动画 |
|
|
|
startLoading () { |
|
|
|
startLoading() { |
|
|
|
loading = Loading.service({ |
|
|
|
lock: true, // 是否锁定 |
|
|
|
text: '正在加载……', // 加载中需要显示的文字 |
|
|
@ -913,7 +776,7 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
// 结束加载动画 |
|
|
|
endLoading () { |
|
|
|
endLoading() { |
|
|
|
// clearTimeout(timer); |
|
|
|
if (loading) { |
|
|
|
loading.close() |
|
|
@ -923,7 +786,7 @@ export default { |
|
|
|
watch: { |
|
|
|
|
|
|
|
'$store.state.sidebarFold': { |
|
|
|
handler (newVal, oldVal) { |
|
|
|
handler(newVal, oldVal) { |
|
|
|
if (newVal) {//收起 |
|
|
|
this.searchHeight = 155 |
|
|
|
|
|
|
@ -989,10 +852,12 @@ export default { |
|
|
|
/deep/.el-input-number--medium .el-input-number__increase { |
|
|
|
width: 26px; |
|
|
|
} |
|
|
|
|
|
|
|
/deep/.el-input-number--medium .el-input__inner { |
|
|
|
padding-left: 0px; |
|
|
|
padding-right: 0px; |
|
|
|
} |
|
|
|
|
|
|
|
::v-deep .el-dialog__body { |
|
|
|
padding: 0; |
|
|
|
} |
|
|
|