mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 07:16:46 +08:00
讲师管理bug
This commit is contained in:
@@ -415,7 +415,7 @@
|
||||
<router-link to="/teacheropinion">意见</router-link>
|
||||
</a-menu-item>
|
||||
</a-sub-menu>
|
||||
<a-sub-menu key="sub24" @titleClick="titleClick" v-if="checkMenu('lecturer')">
|
||||
<a-sub-menu key="sub24" @titleClick="titleClick" v-if="checkMenu('lecturer,lecturerRecords,lecturerExpense,lecturerSummary,lecturerTrainOrg,')">
|
||||
<template #icon>
|
||||
<div class="imgBox">
|
||||
<img style="width: 15px; height: 15px" src="../assets/images/navleft/project.png" />
|
||||
@@ -431,7 +431,7 @@
|
||||
></span>
|
||||
<router-link to="/lecturerlist">讲师列表</router-link>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub24-2">
|
||||
<a-menu-item key="sub24-2" v-if="checkMenu('lecturerRecords')">
|
||||
<span
|
||||
:class="{
|
||||
circleActive : selectedKeys[0] === 'sub24-2' ? true : false,
|
||||
@@ -440,7 +440,7 @@
|
||||
></span>
|
||||
<router-link to="/teachingrecord">授课记录</router-link>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub24-3">
|
||||
<a-menu-item key="sub24-3" v-if="checkMenu('lecturerExpense')">
|
||||
<span
|
||||
:class="{
|
||||
circleActive: selectedKeys[0] === 'sub24-3' ? true : false,
|
||||
@@ -449,7 +449,7 @@
|
||||
></span>
|
||||
<router-link to="/lecturerfeemanagement">讲师费管理</router-link>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub24-4">
|
||||
<a-menu-item key="sub24-4" v-if="checkMenu('lecturerSummary')">
|
||||
<span
|
||||
:class="{
|
||||
circleActive: selectedKeys[0] === 'sub24-4' ? true : false,
|
||||
@@ -458,7 +458,7 @@
|
||||
></span>
|
||||
<router-link to="/lecturerfeestatistics">讲师费统计</router-link>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub24-5">
|
||||
<a-menu-item key="sub24-5" v-if="checkMenu('lecturerTrainOrg')">
|
||||
<span
|
||||
:class="{
|
||||
circleActive: selectedKeys[0] === 'sub24-5' ? true : false,
|
||||
@@ -738,8 +738,8 @@
|
||||
<a-menu-item key="sub22" @titleClick="titleClick">
|
||||
<router-link to="/tooldown">教师专区</router-link>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub24" @titleClick="titleClick">
|
||||
<router-link to="/lecturerlist">讲师管理</router-link>
|
||||
<a-menu-item key="sub24" v-if="lecturerPath()" @titleClick="titleClick">
|
||||
<router-link :to="'/'+lecturerPath()">讲师管理</router-link>
|
||||
</a-menu-item>
|
||||
<a-menu-item key="sub13" @titleClick="titleClick">
|
||||
<router-link to="/articlemanage">文章</router-link>
|
||||
@@ -773,13 +773,15 @@
|
||||
import {reactive, toRefs, onMounted, onUnmounted, watch } from "vue";
|
||||
import {useRoute} from "vue-router";
|
||||
import {useStore} from "vuex";
|
||||
import {checkMenu,checkOrgs} from "@/utils/utils";
|
||||
import {checkMenu,checkOrgs,lecturerRoute} from "@/utils/utils";
|
||||
import { reportOrgs } from "@/api/indexProject";
|
||||
export default {
|
||||
name: "NavLeft",
|
||||
setup() {
|
||||
const store = useStore();
|
||||
const state = reactive({
|
||||
lecturerRoute:['lecturerlist','teachingrecord','lecturerfeemanagement','lecturerfeestatistics','organization'],
|
||||
lecturerAdmin:'lecturer,lecturerRecords,lecturerExpense,lecturerSummary,lecturerTrainOrg',
|
||||
packup: false,
|
||||
screenHeight: document.body.clientHeight, // 屏幕 高度
|
||||
rootSubmenuKeys: [
|
||||
@@ -1284,6 +1286,9 @@ export default {
|
||||
const packUp = () => {
|
||||
state.packup = !state.packup;
|
||||
};
|
||||
const lecturerPath = () => {
|
||||
return state.lecturerRoute[lecturerRoute(state.lecturerAdmin)]
|
||||
}
|
||||
const getClientHeight = () => {
|
||||
state.screenHeight = document.body.clientHeight;
|
||||
};
|
||||
@@ -1298,6 +1303,8 @@ export default {
|
||||
return {
|
||||
...toRefs(state),
|
||||
checkMenu,
|
||||
lecturerPath,
|
||||
lecturerRoute,
|
||||
checkOrgs,
|
||||
onOpenChange,
|
||||
selectItem,
|
||||
|
||||
@@ -306,6 +306,7 @@ watch(visible, (val)=>{
|
||||
})
|
||||
const getTwoData = () => {
|
||||
formData.value.loadingTwo = true
|
||||
params.businessId = props.id
|
||||
api.getByBusinessIdList(params).then(res=>{
|
||||
if(res.data.code == 200){
|
||||
formData.value.tableDataTwo = res.data.data.records
|
||||
|
||||
Reference in New Issue
Block a user