Browse Source

完善还款计划表管理--增加功能化按钮权限

master
yunuo970428 2 years ago
parent
commit
f73fdf926e
  1. 14
      anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue

14
anrui-riskcenter-ui/src/views/repaymentschedule/repaymentschedule.vue

@ -87,6 +87,7 @@ import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import req from '@/api/repaymentschedule/repaymentschedule'
import { getButtonPermissions } from '@/api/Common/dictcommons'
import repaymentscheduleAdd from './repaymentscheduleAdd'
import repaymentscheduleInfo from './repaymentscheduleInfo'
@ -152,7 +153,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: {
//

Loading…
Cancel
Save