|
|
@ -19,7 +19,8 @@ |
|
|
|
<div class="btn_upload" v-if="showImportBtn"> |
|
|
|
<el-button style="" class="diy-button--export" size="small" @click="handleExportModule('community')">下载小区模板</el-button> |
|
|
|
|
|
|
|
<el-upload v-if="daoru" |
|
|
|
<el-upload |
|
|
|
v-if="daoru" |
|
|
|
:headers="$getElUploadHeaders()" |
|
|
|
ref="upload_community" |
|
|
|
style="" |
|
|
@ -43,7 +44,8 @@ |
|
|
|
|
|
|
|
<el-button style=";margin-left:10px" class="diy-button--export" size="small" @click="handleExportModule('building')">下载楼栋模板</el-button> |
|
|
|
|
|
|
|
<el-upload v-if="daoru" |
|
|
|
<el-upload |
|
|
|
v-if="daoru" |
|
|
|
:headers="$getElUploadHeaders()" |
|
|
|
style="" |
|
|
|
ref="upload_building" |
|
|
@ -64,9 +66,10 @@ |
|
|
|
> |
|
|
|
<el-button style="margin-left:10px" size="small" class="diy-button--delete">导入楼栋数据</el-button> |
|
|
|
</el-upload> |
|
|
|
<el-button style=";margin-left:10px" class="diy-button--export" size="small" @click="handleExportModule('room')">下载房屋模板</el-button> |
|
|
|
<el-button v-if="btnAuths.ic_house_import" style=";margin-left:10px" class="diy-button--export" size="small" @click="handleExportModule('room')">下载房屋模板</el-button> |
|
|
|
|
|
|
|
<el-upload v-if="btnAuths.ic_house_import" |
|
|
|
|
|
|
|
<el-upload v-if="daoru" |
|
|
|
:headers="$getElUploadHeaders()" |
|
|
|
style="" |
|
|
|
ref="upload_room" |
|
|
@ -85,7 +88,7 @@ |
|
|
|
} |
|
|
|
" |
|
|
|
> |
|
|
|
<el-button style="margin-left:10px" size="small" class="diy-button--delete">导入房屋数据</el-button> |
|
|
|
<el-button v-if="daoru" style="margin-left:10px" size="small" class="diy-button--delete">导入房屋数据</el-button> |
|
|
|
</el-upload> |
|
|
|
</div> |
|
|
|
<el-button style="margin-left:10px" class="diy-button--reset" size="small" @click="handleExportOpen">导出</el-button> |
|
|
@ -256,8 +259,20 @@ export default { |
|
|
|
dialogVisible: false, // 导出 |
|
|
|
|
|
|
|
displayedBaobiaoBtn: false, |
|
|
|
customerId: '' ,//烟台的客户id : 1535072605621841922 |
|
|
|
daoru:false, |
|
|
|
customerId: '', //烟台的客户id : 1535072605621841922 |
|
|
|
btnAuths: { |
|
|
|
ic_house_add: false, //新增 |
|
|
|
ic_house_import: false, //导入 |
|
|
|
ic_house_export: false, //导出 |
|
|
|
ic_house_batch_del: false, //批量删除 |
|
|
|
ic_house_export_yhyd: false, //导出一户一档 |
|
|
|
ic_house_smart_import: false, //智能填表 |
|
|
|
ic_house_del: false, //删除 |
|
|
|
ic_house_view: false, //查看 |
|
|
|
ic_house_update: false, //修改 |
|
|
|
ic_house_view_real_data: false //显示脱敏信息 |
|
|
|
}, |
|
|
|
daoru: false |
|
|
|
}; |
|
|
|
}, |
|
|
|
components: { |
|
|
@ -266,6 +281,8 @@ export default { |
|
|
|
CommunityDetail |
|
|
|
}, |
|
|
|
async mounted() { |
|
|
|
this.updateBtnAuths(); |
|
|
|
this.staffbasicinfo(); |
|
|
|
this.customerId = localStorage.getItem('customerId'); |
|
|
|
this.displayedBaobiaoBtn = await this.$refs.baobiao.existsTemplate({ |
|
|
|
elseParams: { |
|
|
@ -273,7 +290,6 @@ export default { |
|
|
|
categoryKey: 'house_info' |
|
|
|
} |
|
|
|
}); |
|
|
|
this.staffbasicinfo(); |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
tableHeight() { |
|
|
@ -293,6 +309,17 @@ export default { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
// 更新按钮权限 |
|
|
|
updateBtnAuths() { |
|
|
|
let rot = this.$route; |
|
|
|
console.log("rot",rot) |
|
|
|
if (Array.isArray(rot.meta.btns)) { |
|
|
|
rot.meta.btns.forEach(item => { |
|
|
|
this.btnAuths[item.permissions] = true; |
|
|
|
}); |
|
|
|
} |
|
|
|
console.log("this.btnAuths",this.btnAuths) |
|
|
|
}, |
|
|
|
reportForm() { |
|
|
|
let paramMap = { |
|
|
|
pageSize: this.pageSize, |
|
|
|