|
|
@ -6,18 +6,22 @@ |
|
|
<div class="div_btn_left"> |
|
|
<div class="div_btn_left"> |
|
|
<el-button style="" |
|
|
<el-button style="" |
|
|
size="small" |
|
|
size="small" |
|
|
class="diy-button--purple" |
|
|
class="diy-button--blue" |
|
|
|
|
|
icon="el-icon-plus" |
|
|
@click="handleAdd">新增小区</el-button> |
|
|
@click="handleAdd">新增小区</el-button> |
|
|
<el-button style="margin-left:10px" |
|
|
|
|
|
class="diy-button--green" |
|
|
|
|
|
size="small" |
|
|
|
|
|
@click="handleExportOpen">导出</el-button> |
|
|
|
|
|
<div class="btn_upload" |
|
|
|
|
|
v-if="showImportBtn"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div class="btn_upload"> |
|
|
|
|
|
|
|
|
|
|
|
<el-popover v-if="showImportBtn" |
|
|
|
|
|
popper-class="btn-popper" |
|
|
|
|
|
placement="bottom" |
|
|
|
|
|
width="20" |
|
|
|
|
|
trigger="click"> |
|
|
|
|
|
|
|
|
|
|
|
<div class="table-more-btn"> |
|
|
<el-upload :headers="$getElUploadHeaders()" |
|
|
<el-upload :headers="$getElUploadHeaders()" |
|
|
ref="upload_community" |
|
|
ref="upload_community" |
|
|
style="" |
|
|
style="text-align: center" |
|
|
:multiple='false' |
|
|
:multiple='false' |
|
|
:show-file-list='false' |
|
|
:show-file-list='false' |
|
|
:before-upload="((file)=>{beforeUpload(file, 'community')})" |
|
|
:before-upload="((file)=>{beforeUpload(file, 'community')})" |
|
|
@ -25,11 +29,15 @@ |
|
|
accept=".xls,.xlsx" |
|
|
accept=".xls,.xlsx" |
|
|
:http-request="(()=>{uploadFile( 'community')})"> |
|
|
:http-request="(()=>{uploadFile( 'community')})"> |
|
|
<el-button size="small" |
|
|
<el-button size="small" |
|
|
class="diy-button--blue">导入小区数据</el-button> |
|
|
type="text" |
|
|
|
|
|
class="diy-button--other">导入小区数据</el-button> |
|
|
</el-upload> |
|
|
</el-upload> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="table-more-btn"> |
|
|
|
|
|
|
|
|
<el-upload :headers="$getElUploadHeaders()" |
|
|
<el-upload :headers="$getElUploadHeaders()" |
|
|
style="" |
|
|
style="text-align: center" |
|
|
ref="upload_building" |
|
|
ref="upload_building" |
|
|
:multiple='false' |
|
|
:multiple='false' |
|
|
:show-file-list='false' |
|
|
:show-file-list='false' |
|
|
@ -37,13 +45,15 @@ |
|
|
action="" |
|
|
action="" |
|
|
accept=".xls,.xlsx" |
|
|
accept=".xls,.xlsx" |
|
|
:http-request="(()=>{uploadFile( 'building')})"> |
|
|
:http-request="(()=>{uploadFile( 'building')})"> |
|
|
<el-button style="margin-left:10px" |
|
|
<el-button size="small" |
|
|
size="small" |
|
|
type="text" |
|
|
class="diy-button--yellow">导入楼栋数据</el-button> |
|
|
class="diy-button--other">导入楼栋数据</el-button> |
|
|
</el-upload> |
|
|
</el-upload> |
|
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
|
|
<div class="table-more-btn"> |
|
|
<el-upload :headers="$getElUploadHeaders()" |
|
|
<el-upload :headers="$getElUploadHeaders()" |
|
|
style="" |
|
|
style="text-align: center" |
|
|
ref="upload_room" |
|
|
ref="upload_room" |
|
|
:multiple='false' |
|
|
:multiple='false' |
|
|
:show-file-list='false' |
|
|
:show-file-list='false' |
|
|
@ -51,15 +61,25 @@ |
|
|
action="" |
|
|
action="" |
|
|
accept=".xls,.xlsx" |
|
|
accept=".xls,.xlsx" |
|
|
:http-request="(()=>{uploadFile( 'room')})"> |
|
|
:http-request="(()=>{uploadFile( 'room')})"> |
|
|
<el-button style="margin-left:10px" |
|
|
<el-button size="small" |
|
|
size="small" |
|
|
type="text" |
|
|
class="diy-button--orange">导入房屋数据</el-button> |
|
|
class="diy-button--other">导入房屋数据</el-button> |
|
|
</el-upload> |
|
|
</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-popover> |
|
|
|
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
<el-button style="margin-left:10px" |
|
|
|
|
|
class="diy-button--white" |
|
|
|
|
|
size="small" |
|
|
|
|
|
@click="handleExportOpen">导出</el-button> |
|
|
|
|
|
|
|
|
<el-button style="margin-left:10px" |
|
|
<el-button style="margin-left:10px" |
|
|
class="diy-button--red" |
|
|
class="diy-button--white" |
|
|
size="small" |
|
|
size="small" |
|
|
@click="deleteBatch">批量删除</el-button> |
|
|
@click="deleteBatch">批量删除</el-button> |
|
|
|
|
|
|
|
|
@ -74,7 +94,7 @@ |
|
|
placement="bottom" |
|
|
placement="bottom" |
|
|
style="margin-left: 10px" |
|
|
style="margin-left: 10px" |
|
|
width="20" |
|
|
width="20" |
|
|
trigger="hover"> |
|
|
trigger="click"> |
|
|
<div v-if="showImportBtn" |
|
|
<div v-if="showImportBtn" |
|
|
class="table-more-btn"> |
|
|
class="table-more-btn"> |
|
|
<el-button class="diy-button--other" |
|
|
<el-button class="diy-button--other" |
|
|
@ -134,7 +154,7 @@ |
|
|
<el-button size="small" |
|
|
<el-button size="small" |
|
|
style="float:right" |
|
|
style="float:right" |
|
|
class="diy-button--white" |
|
|
class="diy-button--white" |
|
|
slot="reference">更多操作<i class="el-icon-caret-bottom"></i></el-button> |
|
|
slot="reference">更多<i class="el-icon-arrow-down el-icon--right"></i></el-button> |
|
|
</el-popover> |
|
|
</el-popover> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
</div> |
|
|
@ -145,7 +165,6 @@ |
|
|
border |
|
|
border |
|
|
:height="tableHeight" |
|
|
:height="tableHeight" |
|
|
v-loading="tableLoading" |
|
|
v-loading="tableLoading" |
|
|
:header-cell-style="tableHeaderStyle" |
|
|
|
|
|
style="width: 100%" |
|
|
style="width: 100%" |
|
|
:show-overflow-tooltip="true" |
|
|
:show-overflow-tooltip="true" |
|
|
@select-all="selectAll" |
|
|
@select-all="selectAll" |
|
|
@ -309,7 +328,6 @@ export default { |
|
|
pageSize: 20, |
|
|
pageSize: 20, |
|
|
pageNo: 0, |
|
|
pageNo: 0, |
|
|
tableLoading: true, |
|
|
tableLoading: true, |
|
|
// tableHeaderStyle: { background: 'linear-gradient(0deg, #005EB3 0%, #0083F0 100%)', color: '#FFFFFF', padding: '6px' }, |
|
|
|
|
|
|
|
|
|
|
|
showImportBtn: false,//是否显示操作按钮,根据登录人所属组织判断 |
|
|
showImportBtn: false,//是否显示操作按钮,根据登录人所属组织判断 |
|
|
roleList: [],//角色列表 |
|
|
roleList: [],//角色列表 |
|
|
|