|
|
@ -115,7 +115,7 @@ import Pagination from '@/components/pagination' |
|
|
|
import pageye from '@/components/pagination/pageye' |
|
|
|
import shangzhuangtaizhangAdd from './shangzhuangtaizhangAdd' |
|
|
|
import shangzhangtaizhangInfo from './shangzhangtaizhangInfo' |
|
|
|
import { getGysByOrgSid, getOrgSidByPath, typeValues } from '@/api/cheliang/dictcommons' |
|
|
|
import { getButtonPermissions, getGysByOrgSid, getOrgSidByPath, typeValues } from '@/api/cheliang/dictcommons' |
|
|
|
|
|
|
|
export default { |
|
|
|
name: 'shangzhuangtaizhangguanli', |
|
|
@ -189,7 +189,18 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
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) |
|
|
|
} |
|
|
|
}) |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.init() |
|
|
|