This commit is contained in:
lijing
2026-08-20 22:06:47 +08:00
parent 8f46d0731d
commit 41c7c73c73
4 changed files with 13 additions and 17 deletions
+10 -14
View File
@@ -12,14 +12,8 @@
<Col span="20" class="right-select-wrap" :style="'height:'+(useTableHeight({ isSearch: true, isOperat: true })+160)+'px'">
<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>
<TreeSelect
v-model="addForm.systemlist"
:data="schsystemtree"
multiple
transfer
/>
<!-- 幼儿园分组 -->
<div class="group-wrap" v-for="(itt,index) in schsystemlist" :key="index">
<div class="group-label">{{ itt.academicStageName }}</div>
@@ -38,7 +32,7 @@
</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>
</div>
</Col>
@@ -88,7 +82,8 @@ export default {
treeData: [],
schsystemlist:[],
schsystemtree:[],
selectnodeid:0,
selecttype:0,
selectnodeid:1,
addModalVisible:false,
addForm: {
schname:'',
@@ -126,11 +121,11 @@ export default {
},
//节点点击事件
treeLink(treeNode){
this.selecttype=treeNode.type;
this.selectnodeid=treeNode.id;
if(treeNode.type==2){
this.selectnodeid=treeNode.id;
this.getschsystemlist();
}else{
this.selectnodeid=0;
this.getschsystemlist();
this.$Message.warning("请先选择学校!");
return;
@@ -182,10 +177,11 @@ export default {
if (!valid) return;
const form = this.addForm;
const submitData = {
schname: form.schname,
systemlist: form.systemlist
name: form.schname,
groupId:this.selectnodeid,
schsystemIds: form.systemlist
};
// const url = APIConfig.BschClassSystem.yeartermadd;
const url = APIConfig.BschClassSystem.addSchool;
this.$api.post(url, JSON.stringify(submitData), resp => {
if (resp.code == 0) {
this.$Message.success("添加成功!");
+1 -1
View File
@@ -1,7 +1,7 @@
<template>
<div style="height:100%;">
<Christianity v-if="type==1"></Christianity>
<HigherEducation v-if="type==2"></HigherEducation>
<Christianity v-if="type==2"></Christianity>
</div>
</template>