Browse Source

Merge remote-tracking branch 'origin/master'

zhanglei
dimengzhe 2 years ago
parent
commit
41ffb1aaaf
  1. 15
      anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingguanlianchangyong.vue

15
anrui-scm/anrui-scm-ui/src/views/cheliang/chexing/relation/chexingguanlianchangyong.vue

@ -172,7 +172,7 @@ import ButtonBar from '@/components/ButtonBar'
import chexingpeizhijiageweihu from './chexingpeizhijiageweihuAdd'
import changyongpeizhi from './changyongpeizhi'
import chexingpeizhibiaoqian from './chexingpeizhibiaoqian'
import { getOrgSidByPath, typeValues } from '@/api/cheliang/dictcommons'
import { getOrgSidByPath, typeValues, getButtonPermissions } from '@/api/cheliang/dictcommons'
export default {
name: 'chexingpeizhi',
@ -292,7 +292,18 @@ export default {
created() {
},
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