Browse Source

完善客户管理增加按钮功能化

master
yunuo970428 4 months ago
parent
commit
8e717e3e1f
  1. 15
      yxt-as-ui/src/views/client/customermanagement/customermanagement.vue

15
yxt-as-ui/src/views/client/customermanagement/customermanagement.vue

@ -161,7 +161,7 @@ import vehicle from './relation/vehicle'
import vehicleAdd from './relation/vehicleAdd'
import maintenanceEnterpriseAdd from '../filing/maintenanceEnterpriseAdd'
import person from './relation/person'
import { typeValues } from '@/api/Common/dictcommons'
import { getButtonPermissions, typeValues } from '@/api/Common/dictcommons'
export default {
name: 'CustomerManagement',
@ -304,7 +304,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() {

Loading…
Cancel
Save