diff --git a/src/views/modules/base/communityYantai/communityTable.vue b/src/views/modules/base/communityYantai/communityTable.vue
index d8b2d9f65..08f901ba7 100644
--- a/src/views/modules/base/communityYantai/communityTable.vue
+++ b/src/views/modules/base/communityYantai/communityTable.vue
@@ -19,7 +19,8 @@
下载小区模板
-
- 导入小区数据
+ 导入小区数据
下载楼栋模板
-
导入楼栋数据
- 下载房屋模板
+ 下载房屋模板
-
- 导入房屋数据
+ 导入房屋数据
导出
@@ -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,