Browse Source

完善金融产品政策、其它融产品--增加按钮权限

zhanglei
yunuo970428 2 years ago
parent
commit
5ce8644cd4
  1. 10
      anrui-riskcenter-ui/src/api/Common/dictcommons.js
  2. 15
      anrui-riskcenter-ui/src/views/financialpolicymanagement/financialpolicymanagement.vue
  3. 15
      anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagement.vue
  4. 2
      anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagementInfo.vue

10
anrui-riskcenter-ui/src/api/Common/dictcommons.js

@ -71,6 +71,16 @@ export function selectHaveMessage(data) {
})
}
// 根据当前登录用户的角色获取菜单分页列表页面右上角按钮的隐藏
export function getButtonPermissions(data) {
return request({
url: '/portal/v1/sysfunction/getButtonPermissions',
method: 'post',
data: data,
headers: { 'Content-Type': 'application/json' }
})
}
// 根据分公司sid获取该分公司下的所有供应商
export function getGysByOrgSid(data) {
return request({

15
anrui-riskcenter-ui/src/views/financialpolicymanagement/financialpolicymanagement.vue

@ -139,7 +139,7 @@ import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import req from '@/api/financialpolicymanagement/financialpolicymanagement'
import { typeValues } from '@/api/Common/dictcommons'
import { typeValues, getButtonPermissions } from '@/api/Common/dictcommons'
import financialpolicymanagementAdd from './financialpolicymanagementAdd'
import financialpolicymanagementInfo from './financialpolicymanagementInfo'
import financialpolicyreportingAdd from '../financialpolicyreporting/financialpolicyreportingAdd'
@ -297,7 +297,18 @@ export default {
this.init()
},
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: {
//

15
anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagement.vue

@ -119,7 +119,7 @@ import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
import req from '@/api/otherfinancialpolicymanagement/otherfinancialpolicymanagement'
import { typeValues } from '@/api/Common/dictcommons'
import { typeValues, getButtonPermissions } from '@/api/Common/dictcommons'
import otherfinancialpolicymanagementAdd from './otherfinancialpolicymanagementAdd'
import otherfinancialpolicymanagementInfo from './otherfinancialpolicymanagementInfo'
import otherfinancialproductsreportAdd from '../otherfinancialproductsreport/otherfinancialproductsreportAdd'
@ -276,7 +276,18 @@ export default {
this.init()
},
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: {
//

2
anrui-riskcenter-ui/src/views/otherfinancialpolicymanagement/otherfinancialpolicymanagementInfo.vue

@ -17,7 +17,7 @@
<div class="span-sty">其他融名称</div>
<el-form-item>
<span class="addinputInfo">
{{ formobj.bankShortName }} {{ formobj.productTypeValue }} {{ formobj.period !=='' ? formobj.maxLoanRatio + '期' : '' }} {{ formobj.maxLoanRatio }}
{{ formobj.bankShortName }} {{ formobj.productTypeValue }} {{ formobj.period !=='' ? formobj.period + '期' : '' }} {{ formobj.maxLoanRatio }}
</span>
</el-form-item>
</el-col>

Loading…
Cancel
Save