init
This commit is contained in:
+1
-2
@@ -65,7 +65,6 @@ export default {
|
|||||||
mod=mod.filter(a=>a.customId<4)
|
mod=mod.filter(a=>a.customId<4)
|
||||||
}
|
}
|
||||||
this.layoutInit(info, mod, [], baseHost, ssoHost);
|
this.layoutInit(info, mod, [], baseHost, ssoHost);
|
||||||
|
|
||||||
this.isLogin = true;
|
this.isLogin = true;
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
@@ -153,7 +152,7 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
layoutInit(info, mod, appList, baseHost, ssoHost) {
|
layoutInit(info, mod, appList, baseHost, ssoHost) {
|
||||||
this.layoutData.appName = "班级管理";
|
this.layoutData.appName = "学校管理";
|
||||||
this.layoutData.baseHost = baseHost;
|
this.layoutData.baseHost = baseHost;
|
||||||
this.layoutData.ssoHost = ssoHost;
|
this.layoutData.ssoHost = ssoHost;
|
||||||
const routes = this.$router.options.routes;
|
const routes = this.$router.options.routes;
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ export default {
|
|||||||
getschsystemselect: BaseUrl + "/api/schsystem/select",//获取选择的学制
|
getschsystemselect: BaseUrl + "/api/schsystem/select",//获取选择的学制
|
||||||
getType: BaseUrl + "/api/schsystem/getType",//获取学制类型
|
getType: BaseUrl + "/api/schsystem/getType",//获取学制类型
|
||||||
selectTree: BaseUrl + "/api/schsystem/selectTree",//获取学制树
|
selectTree: BaseUrl + "/api/schsystem/selectTree",//获取学制树
|
||||||
|
addSchool: BaseUrl + "/api/school/addSchool",//添加学校学制
|
||||||
|
|
||||||
//时段设置
|
//时段设置
|
||||||
getyeartermlist: BaseUrl + "/api/yearterm/list",//获取学年学期
|
getyeartermlist: BaseUrl + "/api/yearterm/list",//获取学年学期
|
||||||
|
|||||||
@@ -12,14 +12,8 @@
|
|||||||
<Col span="20" class="right-select-wrap" :style="'height:'+(useTableHeight({ isSearch: true, isOperat: true })+160)+'px'">
|
<Col span="20" class="right-select-wrap" :style="'height:'+(useTableHeight({ isSearch: true, isOperat: true })+160)+'px'">
|
||||||
<div class="select-title">
|
<div class="select-title">
|
||||||
学制选择
|
学制选择
|
||||||
<Button v-if="selectnodeid==0" class="fr" style="margin-right:10px;" type="primary" @click="openAddModal">添加学校</Button>
|
<Button v-if="selecttype!=2" class="fr" style="margin-right:10px;" type="primary" @click="openAddModal">添加学校</Button>
|
||||||
</div>
|
</div>
|
||||||
<TreeSelect
|
|
||||||
v-model="addForm.systemlist"
|
|
||||||
:data="schsystemtree"
|
|
||||||
multiple
|
|
||||||
transfer
|
|
||||||
/>
|
|
||||||
<!-- 幼儿园分组 -->
|
<!-- 幼儿园分组 -->
|
||||||
<div class="group-wrap" v-for="(itt,index) in schsystemlist" :key="index">
|
<div class="group-wrap" v-for="(itt,index) in schsystemlist" :key="index">
|
||||||
<div class="group-label">{{ itt.academicStageName }}</div>
|
<div class="group-label">{{ itt.academicStageName }}</div>
|
||||||
@@ -38,7 +32,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div style="margin-bottom:20px;"></div>
|
<div style="margin-bottom:20px;"></div>
|
||||||
<!-- 底部确定按钮 -->
|
<!-- 底部确定按钮 -->
|
||||||
<div v-if="selectnodeid>0" class="confirm-btn-wrap" style="position: fixed;bottom: 0;text-align: center;left: 0;right: 0;background: #fff;padding: 10px;border-top: 1px solid #eee;">
|
<div v-if="selecttype==2" class="confirm-btn-wrap" style="position: fixed;bottom: 0;text-align: center;left: 0;right: 0;background: #fff;padding: 10px;border-top: 1px solid #eee;">
|
||||||
<Button type="primary" style="padding:0px 40px;" @click="handleConfirm">确定</Button>
|
<Button type="primary" style="padding:0px 40px;" @click="handleConfirm">确定</Button>
|
||||||
</div>
|
</div>
|
||||||
</Col>
|
</Col>
|
||||||
@@ -88,7 +82,8 @@ export default {
|
|||||||
treeData: [],
|
treeData: [],
|
||||||
schsystemlist:[],
|
schsystemlist:[],
|
||||||
schsystemtree:[],
|
schsystemtree:[],
|
||||||
selectnodeid:0,
|
selecttype:0,
|
||||||
|
selectnodeid:1,
|
||||||
addModalVisible:false,
|
addModalVisible:false,
|
||||||
addForm: {
|
addForm: {
|
||||||
schname:'',
|
schname:'',
|
||||||
@@ -126,11 +121,11 @@ export default {
|
|||||||
},
|
},
|
||||||
//节点点击事件
|
//节点点击事件
|
||||||
treeLink(treeNode){
|
treeLink(treeNode){
|
||||||
if(treeNode.type==2){
|
this.selecttype=treeNode.type;
|
||||||
this.selectnodeid=treeNode.id;
|
this.selectnodeid=treeNode.id;
|
||||||
|
if(treeNode.type==2){
|
||||||
this.getschsystemlist();
|
this.getschsystemlist();
|
||||||
}else{
|
}else{
|
||||||
this.selectnodeid=0;
|
|
||||||
this.getschsystemlist();
|
this.getschsystemlist();
|
||||||
this.$Message.warning("请先选择学校!");
|
this.$Message.warning("请先选择学校!");
|
||||||
return;
|
return;
|
||||||
@@ -182,10 +177,11 @@ export default {
|
|||||||
if (!valid) return;
|
if (!valid) return;
|
||||||
const form = this.addForm;
|
const form = this.addForm;
|
||||||
const submitData = {
|
const submitData = {
|
||||||
schname: form.schname,
|
name: form.schname,
|
||||||
systemlist: form.systemlist
|
groupId:this.selectnodeid,
|
||||||
|
schsystemIds: form.systemlist
|
||||||
};
|
};
|
||||||
// const url = APIConfig.BschClassSystem.yeartermadd;
|
const url = APIConfig.BschClassSystem.addSchool;
|
||||||
this.$api.post(url, JSON.stringify(submitData), resp => {
|
this.$api.post(url, JSON.stringify(submitData), resp => {
|
||||||
if (resp.code == 0) {
|
if (resp.code == 0) {
|
||||||
this.$Message.success("添加成功!");
|
this.$Message.success("添加成功!");
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div style="height:100%;">
|
<div style="height:100%;">
|
||||||
<Christianity v-if="type==1"></Christianity>
|
<Christianity v-if="type==1"></Christianity>
|
||||||
<HigherEducation v-if="type==2"></HigherEducation>
|
<Christianity v-if="type==2"></Christianity>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user