mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 13:56:45 +08:00
讲师费用管理,审批增加删除按钮
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -1,26 +1,26 @@
|
||||
<!-- 讲师费管理 -->
|
||||
<template>
|
||||
<div class="LecturerFeeManagement">
|
||||
<div style="margin: 20px;margin-top:0;" >
|
||||
<a-tabs v-model:activeKey="activeKey" >
|
||||
<a-tab-pane key="1" tab="讲师费管理">
|
||||
<LecturerFee />
|
||||
</a-tab-pane>
|
||||
<!-- v-if="lecturerAdmin('lecturer-admin')" -->
|
||||
<a-tab-pane key="2" tab="审批中心">
|
||||
<LecturerApproval/>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
<div style="margin: 20px;margin-top:0;">
|
||||
<a-tabs v-model:activeKey="activeKey">
|
||||
<a-tab-pane key="1" tab="讲师费管理">
|
||||
<LecturerFee />
|
||||
</a-tab-pane>
|
||||
<!-- v-if="lecturerAdmin('lecturer-admin')" -->
|
||||
<a-tab-pane key="2" tab="审批中心">
|
||||
<LecturerApproval />
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<script lang="jsx">
|
||||
import { reactive, toRefs, ref, watch,onMounted,computed } from "vue";
|
||||
import LecturerFee from "../lecturer/LecturerFee.vue"
|
||||
import { reactive, toRefs, ref, watch, onMounted, computed } from "vue";
|
||||
import LecturerFee from "../lecturer/LecturerFee.vue"
|
||||
import LecturerApproval from "../lecturer/LecturerApproval.vue"
|
||||
import { useRoute } from "vue-router";
|
||||
import {useStore} from 'vuex'
|
||||
export default {
|
||||
import { useStore } from 'vuex'
|
||||
export default {
|
||||
name: "LecturerFeeManagement",
|
||||
components: {
|
||||
LecturerFee,
|
||||
@@ -28,25 +28,25 @@ import {useStore} from 'vuex'
|
||||
},
|
||||
setup() {
|
||||
const store = useStore();
|
||||
const userInfo = computed(()=> store.state.userInfo)
|
||||
const userInfo = computed(() => store.state.userInfo)
|
||||
const route = useRoute();
|
||||
const state = reactive({
|
||||
activeKey:'1',
|
||||
activeKey: '1',
|
||||
})
|
||||
const lecturerAdmin = (admin)=>{
|
||||
const roleCode = userInfo.value.roleList.map((item)=>item.roleCode)
|
||||
if (admin){
|
||||
const lecturerAdmin = (admin) => {
|
||||
const roleCode = userInfo.value.roleList.map((item) => item.roleCode)
|
||||
if (admin) {
|
||||
return roleCode.some(t => t == admin)
|
||||
}
|
||||
}
|
||||
watch(
|
||||
)
|
||||
onMounted(() => {
|
||||
if(route.query.activeKey){
|
||||
if (route.query.activeKey) {
|
||||
state.activeKey = '2'
|
||||
}
|
||||
})
|
||||
return {
|
||||
return {
|
||||
...toRefs(state),
|
||||
lecturerAdmin,
|
||||
}
|
||||
@@ -54,10 +54,11 @@ import {useStore} from 'vuex'
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
::v-deep .ant-tabs-tab{
|
||||
::v-deep .ant-tabs-tab {
|
||||
font-weight: 600;
|
||||
}
|
||||
.LecturerFeeManagement {
|
||||
|
||||
.LecturerFeeManagement {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user