Browse Source

1

jly/task002
tianq 2 years ago
parent
commit
ca6c3bb7b5
  1. 41
      src/views/modules/base/communityYantai/communityTable.vue

41
src/views/modules/base/communityYantai/communityTable.vue

@ -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>
@ -257,7 +260,19 @@ export default {
displayedBaobiaoBtn: false,
customerId: '', //id : 1535072605621841922
daoru:false,
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,

Loading…
Cancel
Save