diff --git a/anrui-riskcenter-ui/src/views/customerrepayment/customerrepayment.vue b/anrui-riskcenter-ui/src/views/customerrepayment/customerrepayment.vue index f2dfddf37b..950af402d2 100644 --- a/anrui-riskcenter-ui/src/views/customerrepayment/customerrepayment.vue +++ b/anrui-riskcenter-ui/src/views/customerrepayment/customerrepayment.vue @@ -171,6 +171,7 @@ import Pagination from '@/components/pagination' import pageye from '@/components/pagination/pageye' import ButtonBar from '@/components/ButtonBar' import req from '@/api/customerrepayment/customerrepayment' +import { getButtonPermissions } from '@/api/Common/dictcommons' export default { name: 'CustomerRepayment', @@ -307,7 +308,18 @@ export default { this.getList() }, mounted() { - this.$refs['btnbar'].setButtonList(this.btnList) + getButtonPermissions({ userSid: window.sessionStorage.getItem('userSid'), url: this.$route.path, type: 0 }).then((res) => { + if (res.success) { + for (var i = 0; i < res.data.length; i++) { + for (var k = 0; k < this.btnList.length; k++) { + if (res.data[i].buttonId === this.btnList[k].btnKey) { + this.btnList.splice(k, 1) + } + } + } + this.$refs['btnbar'].setButtonList(this.btnList) + } + }) }, methods: { // 搜索条件效果 @@ -421,7 +433,7 @@ export default { this.uploadResultMesssage = '' }, recordImport() { - const tip = '请确认是否生成生成休眠还款记录' + const tip = '请确认是否生成休眠数据还款记录' this.$confirm(tip, '提示', { confirmButtonText: '确定', cancelButtonText: '取消',