|
@@ -10,7 +10,7 @@
|
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
<el-tabs v-model="activeName" @tab-click="handleClick">
|
|
|
<el-tab-pane v-for="item, index in appList" :label="item.name" :name="item.name" :key="index">
|
|
<el-tab-pane v-for="item, index in appList" :label="item.name" :name="item.name" :key="index">
|
|
|
<div class="app-item" v-for="(childItem, index) in item.children" :key="index" @click="handleSelect(childItem)"
|
|
<div class="app-item" v-for="(childItem, index) in item.children" :key="index" @click="handleSelect(childItem)"
|
|
|
- @mouseover="showContent = index" @mouseleave="showContent = null">
|
|
|
|
|
|
|
+ @mouseover="showContent = index" @mouseleave="showContent = null" v-loading.fullscreen.lock="fullscreenLoading">
|
|
|
<svg-icon :icon-class="childItem.icon" style="width: 40px;height: 40px" />
|
|
<svg-icon :icon-class="childItem.icon" style="width: 40px;height: 40px" />
|
|
|
{{ childItem.name }}
|
|
{{ childItem.name }}
|
|
|
<div v-if="showContent == index" class="app-item-tools">
|
|
<div v-if="showContent == index" class="app-item-tools">
|
|
@@ -31,6 +31,7 @@ import store from '@/store'
|
|
|
export default {
|
|
export default {
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
+ fullscreenLoading:false,
|
|
|
activeName: 'OA',
|
|
activeName: 'OA',
|
|
|
showContent: null,
|
|
showContent: null,
|
|
|
appList: [
|
|
appList: [
|
|
@@ -132,6 +133,7 @@ export default {
|
|
|
}else if(item.path.indexOf('oa') > -1){
|
|
}else if(item.path.indexOf('oa') > -1){
|
|
|
this.$router.push({ path: key });
|
|
this.$router.push({ path: key });
|
|
|
}else{
|
|
}else{
|
|
|
|
|
+ this.fullscreenLoading = true;
|
|
|
getListByMenuId(item.id).then(response => {
|
|
getListByMenuId(item.id).then(response => {
|
|
|
let menuList =response.data;
|
|
let menuList =response.data;
|
|
|
localStorage.setItem("parentId", item.parentId)
|
|
localStorage.setItem("parentId", item.parentId)
|
|
@@ -142,6 +144,7 @@ export default {
|
|
|
router.addRoutes(accessRoutes) // 动态添加可访问路由表
|
|
router.addRoutes(accessRoutes) // 动态添加可访问路由表
|
|
|
})
|
|
})
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
|
|
+ this.fullscreenLoading = false;
|
|
|
this.$router.push({ path: item.component });
|
|
this.$router.push({ path: item.component });
|
|
|
}, 200);
|
|
}, 200);
|
|
|
});
|
|
});
|