洋浦学校八大中心后台管理

init
gongdi 3 years ago
parent b53cfa35f5
commit 4fead524fa

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

@ -33,12 +33,17 @@
import {Tabs, Table, Pagination, Button, Modal, Input, Divider} from 'ant-design-vue';
import InterConfig from '../interConfig';
export default{
props: {
menuId: {
type: String
}
},
data(){
return {
loading: false,
visible: false,
showTips: false,
operateType:1,//1 -1
operateType: 1,//1 -1
modalTitle: "新增分类",
categoryType: 5,//5 6
tabsData: [
@ -82,6 +87,27 @@
}
},
created(){
let menuId = this.$props.menuId;
if (menuId === "honorCategory") {
this.categoryType = 5;
this.tabsData = [
{
key: 5,
tab: "教师荣誉"
}, {
key: 6,
tab: "学生荣誉"
}
]
} else if (menuId === "activityCategory") {
this.categoryType = 7;
this.tabsData = [
{
key: 7,
tab: "科研活动"
}
]
}
this.getCategoryList();
},
methods: {
@ -95,7 +121,7 @@
this.visible = true;
},
handleOk: function () {
if(this.operateType === 1){
if (this.operateType === 1) {
if (this.categoryName.trim() === "") {
this.showTips = true;
return;
@ -125,10 +151,10 @@
this.visible = false;
}
})
}else if(this.operateType === -1){
} else if (this.operateType === -1) {
let param = {
category_ids:this.categoryId,
bureau_id:this.BaseConfig.person_info_my.bureau_id,
category_ids: this.categoryId,
bureau_id: this.BaseConfig.person_info_my.bureau_id,
}
this.InterfaceConfig.callInterface([{
url: InterConfig.deleteCategory.url,

@ -18,8 +18,6 @@
/>
</div>
<span slot="action" slot-scope="text, record">
<a @click="toView(record)"></a>
<a-divider type="vertical"/>
<a @click="toDelete(record)"></a>
</span>
</a-table>
@ -228,9 +226,6 @@
this.honorId = record.honor_id;
this.visible = true;
},
toView: function (record) {
this.honorId = record.honor_id;
},
cancel: function () {
this.pageType = 0;
this.getHonorList();

@ -0,0 +1,16 @@
<template>
<div>
活动分类
</div>
</template>
<script>
export default{
data(){
return {}
}
}
</script>
<style></style>

@ -0,0 +1,17 @@
<template>
<div>
课程安排
</div>
</template>
<script>
export default{
data(){
return {}
}
}
</script>
<style></style>

@ -0,0 +1,17 @@
<template>
<div>
科研活动
</div>
</template>
<script>
export default{
data(){
return {}
}
}
</script>
<style></style>

@ -194,5 +194,35 @@ export const systemCenterConfig = [
]
},
]
},
{
id:"teaching",
title:'教学管理',
menus:[
{
id:"teaching-1",
title:"课程安排",
path:'/workBench/servicePlatform/coursePlan/:id/:name/:menuId',
name:'coursePlan',
component:() => import("./servicePlatform/teachingAdmin/coursePlan.vue"),
props:true,
},
{
id:"teaching-2",
title:"科研活动",
path:'/workBench/servicePlatform/scienceActivity/:id/:name/:menuId',
name:'scienceActivity',
component:() => import("./servicePlatform/teachingAdmin/scienceActivity.vue"),
props:true,
},
{
id:"teaching-3",
title:"活动分类",
path:'/workBench/servicePlatform/activityCategory/:id/:name/:menuId',
name:'activityCategory',
component:() => import("./servicePlatform/honor/honorCategory.vue"),
props:true,
},
]
}
]

Loading…
Cancel
Save