20200728-入园通知书
This commit is contained in:
parent
73a60f713f
commit
8be1711e9e
@ -66,7 +66,7 @@ router.beforeEach((to, from, next) => {
|
|||||||
} else {
|
} else {
|
||||||
//console.log(whiteList.indexOf(to.path));
|
//console.log(whiteList.indexOf(to.path));
|
||||||
// 没有token
|
// 没有token
|
||||||
if (whiteList.indexOf(to.path) !== -1 ||to.path.indexOf("/experience") != -1) {
|
if (whiteList.indexOf(to.path) !== -1 ||to.path.indexOf("/experience/apply/") != -1||to.path.indexOf("/experience/result/") != -1) {
|
||||||
// 在免登录白名单,直接进入
|
// 在免登录白名单,直接进入
|
||||||
next()
|
next()
|
||||||
} else {
|
} else {
|
||||||
|
@ -364,7 +364,7 @@ export default {
|
|||||||
"入班半日体验申请表 " +
|
"入班半日体验申请表 " +
|
||||||
"http://" +
|
"http://" +
|
||||||
domain +
|
domain +
|
||||||
"/experience/choose/" +
|
"/experience/apply/" +
|
||||||
response.data.dept.deptId;
|
response.data.dept.deptId;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -17,20 +17,13 @@
|
|||||||
<div class="result-info">
|
<div class="result-info">
|
||||||
<h3 class="title">园长答复</h3>
|
<h3 class="title">园长答复</h3>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<el-alert title="通过申请" type="success" description="hfrn" :closable="false" show-icon></el-alert>
|
<el-alert :title="hfrn" type="success" :closable="false" show-icon></el-alert>
|
||||||
<el-alert
|
|
||||||
title="未通过申请"
|
|
||||||
type="error"
|
|
||||||
description="文字说明文字说明文字说明文字说明文字说明文字说明"
|
|
||||||
:closable="false"
|
|
||||||
show-icon
|
|
||||||
></el-alert>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="result-info">
|
<div class="result-info">
|
||||||
<h3 class="title">园长指示</h3>
|
<h3 class="title">园长指示</h3>
|
||||||
<div class="info">
|
<div class="info">
|
||||||
<el-alert title="yzzs" :closable="false" type="info"></el-alert>
|
<el-alert :title="yzzs" :closable="false" type="info"></el-alert>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="result-form">
|
<div class="result-form">
|
||||||
@ -100,10 +93,10 @@ export default {
|
|||||||
name: "result",
|
name: "result",
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
hide: true,
|
hide: false,
|
||||||
ishf: true,
|
ishf: true,
|
||||||
hfrn: "sddfsdfsdffds",
|
hfrn: "",
|
||||||
yzzs: "sfdsfdsfdsf",
|
yzzs: "",
|
||||||
// 查询参数
|
// 查询参数
|
||||||
queryParams: {
|
queryParams: {
|
||||||
yexm: undefined,
|
yexm: undefined,
|
||||||
@ -135,14 +128,12 @@ export default {
|
|||||||
this.hide = true;
|
this.hide = true;
|
||||||
this.form = response.data;
|
this.form = response.data;
|
||||||
if (response.data.sfhf == "Y") {
|
if (response.data.sfhf == "Y") {
|
||||||
this.ishf = true;
|
this.ishf = false;
|
||||||
this.hfrn = response.data.hfrn;
|
this.hfrn = response.data.hfrn;
|
||||||
this.yzzs = response.data.yzzs;
|
this.yzzs = response.data.yzzs;
|
||||||
} else {
|
} else {
|
||||||
this.ishf = false;
|
this.ishf = true;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
this.hide = false;
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@ -75,10 +75,10 @@ public class ByExperienceController extends BaseController {
|
|||||||
*/
|
*/
|
||||||
@GetMapping("/getInfo")
|
@GetMapping("/getInfo")
|
||||||
public AjaxResult getInfo_query(ByExperience byExperience) {
|
public AjaxResult getInfo_query(ByExperience byExperience) {
|
||||||
if(schoolCommon.isStringEmpty(byExperience.getYexm())){
|
if (schoolCommon.isStringEmpty(byExperience.getYexm())) {
|
||||||
return AjaxResult.error("请输入幼儿姓名");
|
return AjaxResult.error("请输入幼儿姓名");
|
||||||
}
|
}
|
||||||
if(schoolCommon.isStringEmpty(byExperience.getLxfs())){
|
if (schoolCommon.isStringEmpty(byExperience.getLxfs())) {
|
||||||
return AjaxResult.error("请输入家长联系方式");
|
return AjaxResult.error("请输入家长联系方式");
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,6 +96,17 @@ public class ByExperienceController extends BaseController {
|
|||||||
@Log(title = "入班体验申请", businessType = BusinessType.INSERT)
|
@Log(title = "入班体验申请", businessType = BusinessType.INSERT)
|
||||||
@PostMapping("/add")
|
@PostMapping("/add")
|
||||||
public AjaxResult add(@RequestBody ByExperience byExperience) {
|
public AjaxResult add(@RequestBody ByExperience byExperience) {
|
||||||
|
//首先判断该幼儿是否已提交申请
|
||||||
|
ByExperience byExperienceNew = new ByExperience();
|
||||||
|
byExperienceNew.setYexm(byExperience.getYexm());
|
||||||
|
byExperienceNew.setLxfs(byExperience.getLxfs());
|
||||||
|
byExperienceNew.setSchoolid(byExperience.getSchoolid());
|
||||||
|
|
||||||
|
List<ByExperience> list = byExperienceService.selectByExperienceList(byExperienceNew);
|
||||||
|
if (list != null && list.size() > 0) {
|
||||||
|
return AjaxResult.error("该幼儿已在当前幼儿园申请,不可重复提交");
|
||||||
|
}
|
||||||
|
|
||||||
return toAjax(byExperienceService.insertByExperience(byExperience));
|
return toAjax(byExperienceService.insertByExperience(byExperience));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user