diff --git a/src/main.js b/src/main.js index 73bd7c1..de4f796 100644 --- a/src/main.js +++ b/src/main.js @@ -15,7 +15,7 @@ import router from './router' import directive from './directive' // directive import plugins from './plugins' // plugins import { download } from '@/utils/request' -import debounce from './directives/debounce'; + import './assets/icons' // icon @@ -45,8 +45,10 @@ import DictData from '@/components/DictData' import LargeScreen from '@/components/LargeScreen' //大屏头部 +import debounce from './directives/debounce'; // 全局方法挂载 Vue.directive('debounce', debounce); + Vue.prototype.getDicts = getDicts Vue.prototype.getConfigKey = getConfigKey Vue.prototype.parseTime = parseTime diff --git a/src/views/dataSet/dataSetCategory/index.vue b/src/views/dataSet/dataSetCategory/index.vue index d0a5e6d..a4d9dd7 100644 --- a/src/views/dataSet/dataSetCategory/index.vue +++ b/src/views/dataSet/dataSetCategory/index.vue @@ -57,10 +57,18 @@ :data="menuList" row-key="categoryId" :default-expand-all="isExpandAll" + :row-class-name="tableRowClassName" :tree-props="{children: 'children', hasChildren: 'hasChildren'}" > - + + +