From 41c7c73c733c4e944b05d8feaf0bf4a2d11c3d44 Mon Sep 17 00:00:00 2001 From: lijing Date: Thu, 20 Aug 2026 22:06:47 +0800 Subject: [PATCH] init --- src/App.vue | 3 +-- src/config/apiConf.js | 1 + src/views/studySystemChoice.vue | 24 ++++++++++-------------- src/views/zhuanruinfostu.vue | 2 +- 4 files changed, 13 insertions(+), 17 deletions(-) diff --git a/src/App.vue b/src/App.vue index bdd3b46..b24a2e2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -65,7 +65,6 @@ export default { mod=mod.filter(a=>a.customId<4) } this.layoutInit(info, mod, [], baseHost, ssoHost); - this.isLogin = true; } catch (error) { console.error(error); @@ -153,7 +152,7 @@ export default { }); }, layoutInit(info, mod, appList, baseHost, ssoHost) { - this.layoutData.appName = "班级管理"; + this.layoutData.appName = "学校管理"; this.layoutData.baseHost = baseHost; this.layoutData.ssoHost = ssoHost; const routes = this.$router.options.routes; diff --git a/src/config/apiConf.js b/src/config/apiConf.js index b1151cf..bce6f39 100644 --- a/src/config/apiConf.js +++ b/src/config/apiConf.js @@ -28,6 +28,7 @@ export default { getschsystemselect: BaseUrl + "/api/schsystem/select",//获取选择的学制 getType: BaseUrl + "/api/schsystem/getType",//获取学制类型 selectTree: BaseUrl + "/api/schsystem/selectTree",//获取学制树 + addSchool: BaseUrl + "/api/school/addSchool",//添加学校学制 //时段设置 getyeartermlist: BaseUrl + "/api/yearterm/list",//获取学年学期 diff --git a/src/views/studySystemChoice.vue b/src/views/studySystemChoice.vue index 5d9952a..666baac 100644 --- a/src/views/studySystemChoice.vue +++ b/src/views/studySystemChoice.vue @@ -12,14 +12,8 @@
学制选择 - +
-
{{ itt.academicStageName }}
@@ -38,7 +32,7 @@
-
+
@@ -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("添加成功!"); diff --git a/src/views/zhuanruinfostu.vue b/src/views/zhuanruinfostu.vue index f01b3c9..41ecdc1 100644 --- a/src/views/zhuanruinfostu.vue +++ b/src/views/zhuanruinfostu.vue @@ -1,7 +1,7 @@