diff --git a/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue b/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue index 6195a44213..2248a0a582 100644 --- a/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue +++ b/anrui-riskcenter-ui/src/views/monthlypayment/monthlypayment.vue @@ -57,6 +57,7 @@
+ 需调整 查询 重置
@@ -149,7 +150,7 @@ import Pagination from '@/components/pagination' import pageye from '@/components/pagination/pageye' import ButtonBar from '@/components/ButtonBar' import req from '@/api/monthlypayment/monthlypayment' -import { typeValues } from '@/api/Common/dictcommons' +import { typeValues, getButtonPermissions } from '@/api/Common/dictcommons' import adjust from './adjust' import deductAdd from '../deduct/deductAdd' @@ -271,7 +272,8 @@ export default { borrowerName: '', period: '', returnWayKey: '', - buckleKey: '' + buckleKey: '', + change: '0' } } } @@ -281,7 +283,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: { init() { @@ -357,6 +370,11 @@ export default { } }) }, + handleAdjust() { + this.listQuery.current = 1 + this.listQuery.params.change = '1' + this.getList() + }, // 查询按钮 handleFilter() { this.listQuery.current = 1 @@ -386,7 +404,8 @@ export default { borrowerName: '', period: '', returnWayKey: '', - buckleKey: '' + buckleKey: '', + change: '0' } } this.getList()