update 混入修改
This commit is contained in:
@@ -5,6 +5,7 @@ import { downFile, downloadFile, postAction } from '@api/manage'
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
import { ACCESS_TOKEN } from '@/store/mutation-types'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
|
import { isHasPermission } from '../utils/hasPermission.js'
|
||||||
|
|
||||||
let importModalLoading
|
let importModalLoading
|
||||||
|
|
||||||
@@ -54,11 +55,11 @@ export const ConfigurableTableMixin = {
|
|||||||
},
|
},
|
||||||
mounted () {
|
mounted () {
|
||||||
this.getTableHeader()
|
this.getTableHeader()
|
||||||
// this.loadData()
|
this.loadData()
|
||||||
// 过滤没有权限的按钮
|
// 过滤没有权限的按钮
|
||||||
// if (this.needFilterTableBtn) {
|
if (this.needFilterTableBtn) {
|
||||||
// this.operationList = this.operationList.filter(item => isHasPermission(item.has))
|
this.operationList = this.operationList.filter(item => !item.has || isHasPermission(item.has))
|
||||||
// }
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user