diff --git a/ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java b/ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java index c2af82a61..b2705d87e 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/RuoYiApplication.java @@ -1,21 +1,21 @@ -package com.ruoyi; - -import org.springframework.boot.SpringApplication; -import org.springframework.boot.autoconfigure.SpringBootApplication; -import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; - -/** - * 启动程序 - * - * @author ruoyi - */ -@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }) -public class RuoYiApplication -{ - public static void main(String[] args) - { - // System.setProperty("spring.devtools.restart.enabled", "false"); - SpringApplication.run(RuoYiApplication.class, args); - System.out.println("(♥◠‿◠)ノ゙ 项目启动成功 ლ(´ڡ`ლ)゙ "); - } -} +package com.ruoyi; + +import org.springframework.boot.SpringApplication; +import org.springframework.boot.autoconfigure.SpringBootApplication; +import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration; + +/** + * 启动程序 + * + * @author ruoyi + */ +@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class }) +public class RuoYiApplication +{ + public static void main(String[] args) + { + // System.setProperty("spring.devtools.restart.enabled", "false"); + SpringApplication.run(RuoYiApplication.class, args); + System.out.println("(♥◠‿◠)ノ゙ -----------项目启动成功---------- ლ(´ڡ`ლ)゙ "); + } +} diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/jxjs/TsbzJxjsjbxxController.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/jxjs/TsbzJxjsjbxxController.java new file mode 100644 index 000000000..9d4baf795 --- /dev/null +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/jxjs/TsbzJxjsjbxxController.java @@ -0,0 +1,103 @@ +package com.ruoyi.web.controller.jxjs; + +import java.util.List; +import org.springframework.security.access.prepost.PreAuthorize; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RestController; +import com.ruoyi.common.annotation.Log; +import com.ruoyi.common.core.controller.BaseController; +import com.ruoyi.common.core.domain.AjaxResult; +import com.ruoyi.common.enums.BusinessType; +import com.ruoyi.jxjs.domain.TsbzJxjsjbxx; +import com.ruoyi.jxjs.service.ITsbzJxjsjbxxService; +import com.ruoyi.common.utils.poi.ExcelUtil; +import com.ruoyi.common.core.page.TableDataInfo; + +/** + * 见习教师基本信息Controller + * + * @author ruoyi + * @date 2020-08-20 + */ +@RestController +@RequestMapping("/jxjs/jxjsjbxx") +public class TsbzJxjsjbxxController extends BaseController +{ + @Autowired + private ITsbzJxjsjbxxService tsbzJxjsjbxxService; + + /** + * 查询见习教师基本信息列表 + */ + @PreAuthorize("@ss.hasPermi('jxjs:jxjsjbxx:list')") + @GetMapping("/list") + public TableDataInfo list(TsbzJxjsjbxx tsbzJxjsjbxx) + { + startPage(); + List<TsbzJxjsjbxx> list = tsbzJxjsjbxxService.selectTsbzJxjsjbxxList(tsbzJxjsjbxx); + return getDataTable(list); + } + + /** + * 导出见习教师基本信息列表 + */ + @PreAuthorize("@ss.hasPermi('jxjs:jxjsjbxx:export')") + @Log(title = "见习教师基本信息", businessType = BusinessType.EXPORT) + @GetMapping("/export") + public AjaxResult export(TsbzJxjsjbxx tsbzJxjsjbxx) + { + List<TsbzJxjsjbxx> list = tsbzJxjsjbxxService.selectTsbzJxjsjbxxList(tsbzJxjsjbxx); + ExcelUtil<TsbzJxjsjbxx> util = new ExcelUtil<TsbzJxjsjbxx>(TsbzJxjsjbxx.class); + return util.exportExcel(list, "jxjsjbxx"); + } + + /** + * 获取见习教师基本信息详细信息 + */ + @PreAuthorize("@ss.hasPermi('jxjs:jxjsjbxx:query')") + @GetMapping(value = "/{id}") + public AjaxResult getInfo(@PathVariable("id") Long id) + { + return AjaxResult.success(tsbzJxjsjbxxService.selectTsbzJxjsjbxxById(id)); + } + + /** + * 新增见习教师基本信息 + */ + @PreAuthorize("@ss.hasPermi('jxjs:jxjsjbxx:add')") + @Log(title = "见习教师基本信息", businessType = BusinessType.INSERT) + @PostMapping + public AjaxResult add(@RequestBody TsbzJxjsjbxx tsbzJxjsjbxx) + { + return toAjax(tsbzJxjsjbxxService.insertTsbzJxjsjbxx(tsbzJxjsjbxx)); + } + + /** + * 修改见习教师基本信息 + */ + @PreAuthorize("@ss.hasPermi('jxjs:jxjsjbxx:edit')") + @Log(title = "见习教师基本信息", businessType = BusinessType.UPDATE) + @PutMapping + public AjaxResult edit(@RequestBody TsbzJxjsjbxx tsbzJxjsjbxx) + { + return toAjax(tsbzJxjsjbxxService.updateTsbzJxjsjbxx(tsbzJxjsjbxx)); + } + + /** + * 删除见习教师基本信息 + */ + @PreAuthorize("@ss.hasPermi('jxjs:jxjsjbxx:remove')") + @Log(title = "见习教师基本信息", businessType = BusinessType.DELETE) + @DeleteMapping("/{ids}") + public AjaxResult remove(@PathVariable Long[] ids) + { + return toAjax(tsbzJxjsjbxxService.deleteTsbzJxjsjbxxByIds(ids)); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/jxjs/domain/TsbzJxjsjbxx.java b/ruoyi-system/src/main/java/com/ruoyi/jxjs/domain/TsbzJxjsjbxx.java new file mode 100644 index 000000000..682cead43 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/jxjs/domain/TsbzJxjsjbxx.java @@ -0,0 +1,335 @@ +package com.ruoyi.jxjs.domain; + +import java.util.Date; +import com.fasterxml.jackson.annotation.JsonFormat; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; +import com.ruoyi.common.annotation.Excel; +import com.ruoyi.common.core.domain.BaseEntity; + +/** + * 见习教师基本信息对象 tsbz_jxjsjbxx + * + * @author ruoyi + * @date 2020-08-20 + */ +public class TsbzJxjsjbxx extends BaseEntity +{ + private static final long serialVersionUID = 1L; + + /** 标识 */ + private Long id; + + /** 其他系统id */ + @Excel(name = "其他系统id") + private String otherid; + + /** 姓名 */ + @Excel(name = "姓名") + private String name; + + /** 进修编号 */ + @Excel(name = "进修编号") + private String jxbh; + + /** 性别 */ + @Excel(name = "性别") + private String xb; + + /** 出生日期 */ + @JsonFormat(pattern = "yyyy-MM-dd") + @Excel(name = "出生日期", width = 30, dateFormat = "yyyy-MM-dd") + private Date csrq; + + /** 电子邮件 */ + @Excel(name = "电子邮件") + private String email; + + /** 联系电话 */ + @Excel(name = "联系电话") + private String phone; + + /** 邮编 */ + @Excel(name = "邮编") + private String yzbm; + + /** 政治面貌 */ + @Excel(name = "政治面貌") + private String zzmm; + + /** 民族 */ + @Excel(name = "民族") + private String mz; + + /** 聘任单位 */ + @Excel(name = "聘任单位") + private String prdwid; + + /** 聘任单位名称 */ + @Excel(name = "聘任单位名称") + private String prdwmc; + + /** 基地校 */ + @Excel(name = "基地校") + private String jdxid; + + /** 任教学段 */ + @Excel(name = "任教学段") + private String rjxd; + + /** 任教学科 */ + @Excel(name = "任教学科") + private String rjxk; + + /** 任教年级 */ + @Excel(name = "任教年级") + private String rjnj; + + /** 毕业院校 */ + @Excel(name = "毕业院校") + private String byyx; + + /** 学历 */ + @Excel(name = "学历") + private String xl; + + /** 学位 */ + @Excel(name = "学位") + private String xw; + + /** 是否师范生 */ + @Excel(name = "是否师范生") + private String sfsfs; + + /** 录取年份 */ + @Excel(name = "录取年份") + private String lqnf; + + public void setId(Long id) + { + this.id = id; + } + + public Long getId() + { + return id; + } + public void setOtherid(String otherid) + { + this.otherid = otherid; + } + + public String getOtherid() + { + return otherid; + } + public void setName(String name) + { + this.name = name; + } + + public String getName() + { + return name; + } + public void setJxbh(String jxbh) + { + this.jxbh = jxbh; + } + + public String getJxbh() + { + return jxbh; + } + public void setXb(String xb) + { + this.xb = xb; + } + + public String getXb() + { + return xb; + } + public void setCsrq(Date csrq) + { + this.csrq = csrq; + } + + public Date getCsrq() + { + return csrq; + } + public void setEmail(String email) + { + this.email = email; + } + + public String getEmail() + { + return email; + } + public void setPhone(String phone) + { + this.phone = phone; + } + + public String getPhone() + { + return phone; + } + public void setYzbm(String yzbm) + { + this.yzbm = yzbm; + } + + public String getYzbm() + { + return yzbm; + } + public void setZzmm(String zzmm) + { + this.zzmm = zzmm; + } + + public String getZzmm() + { + return zzmm; + } + public void setMz(String mz) + { + this.mz = mz; + } + + public String getMz() + { + return mz; + } + public void setPrdwid(String prdwid) + { + this.prdwid = prdwid; + } + + public String getPrdwid() + { + return prdwid; + } + public void setPrdwmc(String prdwmc) + { + this.prdwmc = prdwmc; + } + + public String getPrdwmc() + { + return prdwmc; + } + public void setJdxid(String jdxid) + { + this.jdxid = jdxid; + } + + public String getJdxid() + { + return jdxid; + } + public void setRjxd(String rjxd) + { + this.rjxd = rjxd; + } + + public String getRjxd() + { + return rjxd; + } + public void setRjxk(String rjxk) + { + this.rjxk = rjxk; + } + + public String getRjxk() + { + return rjxk; + } + public void setRjnj(String rjnj) + { + this.rjnj = rjnj; + } + + public String getRjnj() + { + return rjnj; + } + public void setByyx(String byyx) + { + this.byyx = byyx; + } + + public String getByyx() + { + return byyx; + } + public void setXl(String xl) + { + this.xl = xl; + } + + public String getXl() + { + return xl; + } + public void setXw(String xw) + { + this.xw = xw; + } + + public String getXw() + { + return xw; + } + public void setSfsfs(String sfsfs) + { + this.sfsfs = sfsfs; + } + + public String getSfsfs() + { + return sfsfs; + } + public void setLqnf(String lqnf) + { + this.lqnf = lqnf; + } + + public String getLqnf() + { + return lqnf; + } + + @Override + public String toString() { + return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE) + .append("id", getId()) + .append("otherid", getOtherid()) + .append("name", getName()) + .append("jxbh", getJxbh()) + .append("xb", getXb()) + .append("csrq", getCsrq()) + .append("email", getEmail()) + .append("phone", getPhone()) + .append("yzbm", getYzbm()) + .append("zzmm", getZzmm()) + .append("mz", getMz()) + .append("prdwid", getPrdwid()) + .append("prdwmc", getPrdwmc()) + .append("jdxid", getJdxid()) + .append("rjxd", getRjxd()) + .append("rjxk", getRjxk()) + .append("rjnj", getRjnj()) + .append("byyx", getByyx()) + .append("xl", getXl()) + .append("xw", getXw()) + .append("sfsfs", getSfsfs()) + .append("lqnf", getLqnf()) + .append("createTime", getCreateTime()) + .toString(); + } +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/jxjs/mapper/TsbzJxjsjbxxMapper.java b/ruoyi-system/src/main/java/com/ruoyi/jxjs/mapper/TsbzJxjsjbxxMapper.java new file mode 100644 index 000000000..27ccfc227 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/jxjs/mapper/TsbzJxjsjbxxMapper.java @@ -0,0 +1,62 @@ +package com.ruoyi.jxjs.mapper; + +import com.ruoyi.jxjs.domain.TsbzJxjsjbxx; + +import java.util.List; + +/** + * 见习教师基本信息Mapper接口 + * + * @author ruoyi + * @date 2020-08-20 + */ +public interface TsbzJxjsjbxxMapper +{ + /** + * 查询见习教师基本信息 + * + * @param id 见习教师基本信息ID + * @return 见习教师基本信息 + */ + public TsbzJxjsjbxx selectTsbzJxjsjbxxById(Long id); + + /** + * 查询见习教师基本信息列表 + * + * @param tsbzJxjsjbxx 见习教师基本信息 + * @return 见习教师基本信息集合 + */ + public List<TsbzJxjsjbxx> selectTsbzJxjsjbxxList(TsbzJxjsjbxx tsbzJxjsjbxx); + + /** + * 新增见习教师基本信息 + * + * @param tsbzJxjsjbxx 见习教师基本信息 + * @return 结果 + */ + public int insertTsbzJxjsjbxx(TsbzJxjsjbxx tsbzJxjsjbxx); + + /** + * 修改见习教师基本信息 + * + * @param tsbzJxjsjbxx 见习教师基本信息 + * @return 结果 + */ + public int updateTsbzJxjsjbxx(TsbzJxjsjbxx tsbzJxjsjbxx); + + /** + * 删除见习教师基本信息 + * + * @param id 见习教师基本信息ID + * @return 结果 + */ + public int deleteTsbzJxjsjbxxById(Long id); + + /** + * 批量删除见习教师基本信息 + * + * @param ids 需要删除的数据ID + * @return 结果 + */ + public int deleteTsbzJxjsjbxxByIds(Long[] ids); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/jxjs/service/ITsbzJxjsjbxxService.java b/ruoyi-system/src/main/java/com/ruoyi/jxjs/service/ITsbzJxjsjbxxService.java new file mode 100644 index 000000000..07ef2ec70 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/jxjs/service/ITsbzJxjsjbxxService.java @@ -0,0 +1,61 @@ +package com.ruoyi.jxjs.service; + +import java.util.List; +import com.ruoyi.jxjs.domain.TsbzJxjsjbxx; + +/** + * 见习教师基本信息Service接口 + * + * @author ruoyi + * @date 2020-08-20 + */ +public interface ITsbzJxjsjbxxService +{ + /** + * 查询见习教师基本信息 + * + * @param id 见习教师基本信息ID + * @return 见习教师基本信息 + */ + public TsbzJxjsjbxx selectTsbzJxjsjbxxById(Long id); + + /** + * 查询见习教师基本信息列表 + * + * @param tsbzJxjsjbxx 见习教师基本信息 + * @return 见习教师基本信息集合 + */ + public List<TsbzJxjsjbxx> selectTsbzJxjsjbxxList(TsbzJxjsjbxx tsbzJxjsjbxx); + + /** + * 新增见习教师基本信息 + * + * @param tsbzJxjsjbxx 见习教师基本信息 + * @return 结果 + */ + public int insertTsbzJxjsjbxx(TsbzJxjsjbxx tsbzJxjsjbxx); + + /** + * 修改见习教师基本信息 + * + * @param tsbzJxjsjbxx 见习教师基本信息 + * @return 结果 + */ + public int updateTsbzJxjsjbxx(TsbzJxjsjbxx tsbzJxjsjbxx); + + /** + * 批量删除见习教师基本信息 + * + * @param ids 需要删除的见习教师基本信息ID + * @return 结果 + */ + public int deleteTsbzJxjsjbxxByIds(Long[] ids); + + /** + * 删除见习教师基本信息信息 + * + * @param id 见习教师基本信息ID + * @return 结果 + */ + public int deleteTsbzJxjsjbxxById(Long id); +} diff --git a/ruoyi-system/src/main/java/com/ruoyi/jxjs/service/impl/TsbzJxjsjbxxServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/jxjs/service/impl/TsbzJxjsjbxxServiceImpl.java new file mode 100644 index 000000000..d6f77fb04 --- /dev/null +++ b/ruoyi-system/src/main/java/com/ruoyi/jxjs/service/impl/TsbzJxjsjbxxServiceImpl.java @@ -0,0 +1,95 @@ +package com.ruoyi.jxjs.service.impl; + +import java.util.List; +import com.ruoyi.common.utils.DateUtils; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; +import com.ruoyi.jxjs.mapper.TsbzJxjsjbxxMapper; +import com.ruoyi.jxjs.domain.TsbzJxjsjbxx; +import com.ruoyi.jxjs.service.ITsbzJxjsjbxxService; + +/** + * 见习教师基本信息Service业务层处理 + * + * @author ruoyi + * @date 2020-08-20 + */ +@Service +public class TsbzJxjsjbxxServiceImpl implements ITsbzJxjsjbxxService +{ + @Autowired + private TsbzJxjsjbxxMapper tsbzJxjsjbxxMapper; + + /** + * 查询见习教师基本信息 + * + * @param id 见习教师基本信息ID + * @return 见习教师基本信息 + */ + @Override + public TsbzJxjsjbxx selectTsbzJxjsjbxxById(Long id) + { + return tsbzJxjsjbxxMapper.selectTsbzJxjsjbxxById(id); + } + + /** + * 查询见习教师基本信息列表 + * + * @param tsbzJxjsjbxx 见习教师基本信息 + * @return 见习教师基本信息 + */ + @Override + public List<TsbzJxjsjbxx> selectTsbzJxjsjbxxList(TsbzJxjsjbxx tsbzJxjsjbxx) + { + return tsbzJxjsjbxxMapper.selectTsbzJxjsjbxxList(tsbzJxjsjbxx); + } + + /** + * 新增见习教师基本信息 + * + * @param tsbzJxjsjbxx 见习教师基本信息 + * @return 结果 + */ + @Override + public int insertTsbzJxjsjbxx(TsbzJxjsjbxx tsbzJxjsjbxx) + { + tsbzJxjsjbxx.setCreateTime(DateUtils.getNowDate()); + return tsbzJxjsjbxxMapper.insertTsbzJxjsjbxx(tsbzJxjsjbxx); + } + + /** + * 修改见习教师基本信息 + * + * @param tsbzJxjsjbxx 见习教师基本信息 + * @return 结果 + */ + @Override + public int updateTsbzJxjsjbxx(TsbzJxjsjbxx tsbzJxjsjbxx) + { + return tsbzJxjsjbxxMapper.updateTsbzJxjsjbxx(tsbzJxjsjbxx); + } + + /** + * 批量删除见习教师基本信息 + * + * @param ids 需要删除的见习教师基本信息ID + * @return 结果 + */ + @Override + public int deleteTsbzJxjsjbxxByIds(Long[] ids) + { + return tsbzJxjsjbxxMapper.deleteTsbzJxjsjbxxByIds(ids); + } + + /** + * 删除见习教师基本信息信息 + * + * @param id 见习教师基本信息ID + * @return 结果 + */ + @Override + public int deleteTsbzJxjsjbxxById(Long id) + { + return tsbzJxjsjbxxMapper.deleteTsbzJxjsjbxxById(id); + } +} diff --git a/ruoyi-system/src/main/resources/mapper/jxjs/TsbzJxjsjbxxMapper.xml b/ruoyi-system/src/main/resources/mapper/jxjs/TsbzJxjsjbxxMapper.xml new file mode 100644 index 000000000..0f0636afa --- /dev/null +++ b/ruoyi-system/src/main/resources/mapper/jxjs/TsbzJxjsjbxxMapper.xml @@ -0,0 +1,163 @@ +<?xml version="1.0" encoding="UTF-8" ?> +<!DOCTYPE mapper +PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" +"http://mybatis.org/dtd/mybatis-3-mapper.dtd"> +<mapper namespace="com.ruoyi.jxjs.mapper.TsbzJxjsjbxxMapper"> + + <resultMap type="TsbzJxjsjbxx" id="TsbzJxjsjbxxResult"> + <result property="id" column="id" /> + <result property="otherid" column="otherid" /> + <result property="name" column="name" /> + <result property="jxbh" column="jxbh" /> + <result property="xb" column="xb" /> + <result property="csrq" column="csrq" /> + <result property="email" column="email" /> + <result property="phone" column="phone" /> + <result property="yzbm" column="yzbm" /> + <result property="zzmm" column="zzmm" /> + <result property="mz" column="mz" /> + <result property="prdwid" column="prdwid" /> + <result property="prdwmc" column="prdwmc" /> + <result property="jdxid" column="jdxid" /> + <result property="rjxd" column="rjxd" /> + <result property="rjxk" column="rjxk" /> + <result property="rjnj" column="rjnj" /> + <result property="byyx" column="byyx" /> + <result property="xl" column="xl" /> + <result property="xw" column="xw" /> + <result property="sfsfs" column="sfsfs" /> + <result property="lqnf" column="lqnf" /> + <result property="createTime" column="create_time" /> + </resultMap> + + <sql id="selectTsbzJxjsjbxxVo"> + select id, otherid, name, jxbh, xb, csrq, email, phone, yzbm, zzmm, mz, prdwid, prdwmc, jdxid, rjxd, rjxk, rjnj, byyx, xl, xw, sfsfs, lqnf, create_time from tsbz_jxjsjbxx + </sql> + + <select id="selectTsbzJxjsjbxxList" parameterType="TsbzJxjsjbxx" resultMap="TsbzJxjsjbxxResult"> + <include refid="selectTsbzJxjsjbxxVo"/> + <where> + <if test="otherid != null and otherid != ''"> and otherid = #{otherid}</if> + <if test="name != null and name != ''"> and name like concat('%', #{name}, '%')</if> + <if test="jxbh != null and jxbh != ''"> and jxbh = #{jxbh}</if> + <if test="xb != null and xb != ''"> and xb = #{xb}</if> + <if test="csrq != null "> and csrq = #{csrq}</if> + <if test="email != null and email != ''"> and email = #{email}</if> + <if test="phone != null and phone != ''"> and phone = #{phone}</if> + <if test="yzbm != null and yzbm != ''"> and yzbm = #{yzbm}</if> + <if test="zzmm != null and zzmm != ''"> and zzmm = #{zzmm}</if> + <if test="mz != null and mz != ''"> and mz = #{mz}</if> + <if test="prdwid != null and prdwid != ''"> and prdwid = #{prdwid}</if> + <if test="prdwmc != null and prdwmc != ''"> and prdwmc = #{prdwmc}</if> + <if test="jdxid != null and jdxid != ''"> and jdxid = #{jdxid}</if> + <if test="rjxd != null and rjxd != ''"> and rjxd = #{rjxd}</if> + <if test="rjxk != null and rjxk != ''"> and rjxk = #{rjxk}</if> + <if test="rjnj != null and rjnj != ''"> and rjnj = #{rjnj}</if> + <if test="byyx != null and byyx != ''"> and byyx = #{byyx}</if> + <if test="xl != null and xl != ''"> and xl = #{xl}</if> + <if test="xw != null and xw != ''"> and xw = #{xw}</if> + <if test="sfsfs != null and sfsfs != ''"> and sfsfs = #{sfsfs}</if> + <if test="lqnf != null and lqnf != ''"> and lqnf = #{lqnf}</if> + </where> + </select> + + <select id="selectTsbzJxjsjbxxById" parameterType="Long" resultMap="TsbzJxjsjbxxResult"> + <include refid="selectTsbzJxjsjbxxVo"/> + where id = #{id} + </select> + + <insert id="insertTsbzJxjsjbxx" parameterType="TsbzJxjsjbxx"> + insert into tsbz_jxjsjbxx + <trim prefix="(" suffix=")" suffixOverrides=","> + <if test="id != null">id,</if> + <if test="otherid != null">otherid,</if> + <if test="name != null">name,</if> + <if test="jxbh != null">jxbh,</if> + <if test="xb != null">xb,</if> + <if test="csrq != null">csrq,</if> + <if test="email != null">email,</if> + <if test="phone != null">phone,</if> + <if test="yzbm != null">yzbm,</if> + <if test="zzmm != null">zzmm,</if> + <if test="mz != null">mz,</if> + <if test="prdwid != null">prdwid,</if> + <if test="prdwmc != null">prdwmc,</if> + <if test="jdxid != null">jdxid,</if> + <if test="rjxd != null">rjxd,</if> + <if test="rjxk != null">rjxk,</if> + <if test="rjnj != null">rjnj,</if> + <if test="byyx != null">byyx,</if> + <if test="xl != null">xl,</if> + <if test="xw != null">xw,</if> + <if test="sfsfs != null">sfsfs,</if> + <if test="lqnf != null">lqnf,</if> + <if test="createTime != null">create_time,</if> + </trim> + <trim prefix="values (" suffix=")" suffixOverrides=","> + <if test="id != null">#{id},</if> + <if test="otherid != null">#{otherid},</if> + <if test="name != null">#{name},</if> + <if test="jxbh != null">#{jxbh},</if> + <if test="xb != null">#{xb},</if> + <if test="csrq != null">#{csrq},</if> + <if test="email != null">#{email},</if> + <if test="phone != null">#{phone},</if> + <if test="yzbm != null">#{yzbm},</if> + <if test="zzmm != null">#{zzmm},</if> + <if test="mz != null">#{mz},</if> + <if test="prdwid != null">#{prdwid},</if> + <if test="prdwmc != null">#{prdwmc},</if> + <if test="jdxid != null">#{jdxid},</if> + <if test="rjxd != null">#{rjxd},</if> + <if test="rjxk != null">#{rjxk},</if> + <if test="rjnj != null">#{rjnj},</if> + <if test="byyx != null">#{byyx},</if> + <if test="xl != null">#{xl},</if> + <if test="xw != null">#{xw},</if> + <if test="sfsfs != null">#{sfsfs},</if> + <if test="lqnf != null">#{lqnf},</if> + <if test="createTime != null">#{createTime},</if> + </trim> + </insert> + + <update id="updateTsbzJxjsjbxx" parameterType="TsbzJxjsjbxx"> + update tsbz_jxjsjbxx + <trim prefix="SET" suffixOverrides=","> + <if test="otherid != null">otherid = #{otherid},</if> + <if test="name != null">name = #{name},</if> + <if test="jxbh != null">jxbh = #{jxbh},</if> + <if test="xb != null">xb = #{xb},</if> + <if test="csrq != null">csrq = #{csrq},</if> + <if test="email != null">email = #{email},</if> + <if test="phone != null">phone = #{phone},</if> + <if test="yzbm != null">yzbm = #{yzbm},</if> + <if test="zzmm != null">zzmm = #{zzmm},</if> + <if test="mz != null">mz = #{mz},</if> + <if test="prdwid != null">prdwid = #{prdwid},</if> + <if test="prdwmc != null">prdwmc = #{prdwmc},</if> + <if test="jdxid != null">jdxid = #{jdxid},</if> + <if test="rjxd != null">rjxd = #{rjxd},</if> + <if test="rjxk != null">rjxk = #{rjxk},</if> + <if test="rjnj != null">rjnj = #{rjnj},</if> + <if test="byyx != null">byyx = #{byyx},</if> + <if test="xl != null">xl = #{xl},</if> + <if test="xw != null">xw = #{xw},</if> + <if test="sfsfs != null">sfsfs = #{sfsfs},</if> + <if test="lqnf != null">lqnf = #{lqnf},</if> + <if test="createTime != null">create_time = #{createTime},</if> + </trim> + where id = #{id} + </update> + + <delete id="deleteTsbzJxjsjbxxById" parameterType="Long"> + delete from tsbz_jxjsjbxx where id = #{id} + </delete> + + <delete id="deleteTsbzJxjsjbxxByIds" parameterType="String"> + delete from tsbz_jxjsjbxx where id in + <foreach item="id" collection="array" open="(" separator="," close=")"> + #{id} + </foreach> + </delete> + +</mapper> \ No newline at end of file diff --git a/ruoyi-ui/src/api/jxjs/jxjsjbxx.js b/ruoyi-ui/src/api/jxjs/jxjsjbxx.js new file mode 100644 index 000000000..fd4f0140e --- /dev/null +++ b/ruoyi-ui/src/api/jxjs/jxjsjbxx.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询见习教师基本信息列表 +export function listJxjsjbxx(query) { + return request({ + url: '/jxjs/jxjsjbxx/list', + method: 'get', + params: query + }) +} + +// 查询见习教师基本信息详细 +export function getJxjsjbxx(id) { + return request({ + url: '/jxjs/jxjsjbxx/' + id, + method: 'get' + }) +} + +// 新增见习教师基本信息 +export function addJxjsjbxx(data) { + return request({ + url: '/jxjs/jxjsjbxx', + method: 'post', + data: data + }) +} + +// 修改见习教师基本信息 +export function updateJxjsjbxx(data) { + return request({ + url: '/jxjs/jxjsjbxx', + method: 'put', + data: data + }) +} + +// 删除见习教师基本信息 +export function delJxjsjbxx(id) { + return request({ + url: '/jxjs/jxjsjbxx/' + id, + method: 'delete' + }) +} + +// 导出见习教师基本信息 +export function exportJxjsjbxx(query) { + return request({ + url: '/jxjs/jxjsjbxx/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/ruoyi-ui/src/views/jxjs/jxjsjbxx/index.vue b/ruoyi-ui/src/views/jxjs/jxjsjbxx/index.vue new file mode 100644 index 000000000..b9fdaa163 --- /dev/null +++ b/ruoyi-ui/src/views/jxjs/jxjsjbxx/index.vue @@ -0,0 +1,727 @@ +<template> + <div class="app-container"> + <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px"> + <el-form-item label="其他系统id" prop="otherid"> + <el-input + v-model="queryParams.otherid" + placeholder="请输入其他系统id" + clearable + size="small" + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="姓名" prop="name"> + <el-input + v-model="queryParams.name" + placeholder="请输入姓名" + clearable + size="small" + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="进修编号" prop="jxbh"> + <el-input + v-model="queryParams.jxbh" + placeholder="请输入进修编号" + clearable + size="small" + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="性别" prop="xb"> + <el-select v-model="queryParams.xb" placeholder="请选择性别" clearable size="small"> + <el-option + v-for="dict in xbOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + /> + </el-select> + </el-form-item> + <el-form-item label="出生日期" prop="csrq"> + <el-date-picker clearable size="small" style="width: 200px" + v-model="queryParams.csrq" + type="date" + value-format="yyyy-MM-dd" + placeholder="选择出生日期"> + </el-date-picker> + </el-form-item> + <el-form-item label="电子邮件" prop="email"> + <el-input + v-model="queryParams.email" + placeholder="请输入电子邮件" + clearable + size="small" + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="联系电话" prop="phone"> + <el-input + v-model="queryParams.phone" + placeholder="请输入联系电话" + clearable + size="small" + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="邮编" prop="yzbm"> + <el-input + v-model="queryParams.yzbm" + placeholder="请输入邮编" + clearable + size="small" + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="政治面貌" prop="zzmm"> + <el-select v-model="queryParams.zzmm" placeholder="请选择政治面貌" clearable size="small"> + <el-option + v-for="dict in zzmmOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + /> + </el-select> + </el-form-item> + <el-form-item label="民族" prop="mz"> + <el-select v-model="queryParams.mz" placeholder="请选择民族" clearable size="small"> + <el-option + v-for="dict in mzOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + /> + </el-select> + </el-form-item> + <el-form-item label="聘任单位" prop="prdwid"> + <el-input + v-model="queryParams.prdwid" + placeholder="请输入聘任单位" + clearable + size="small" + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="基地校" prop="jdxid"> + <el-input + v-model="queryParams.jdxid" + placeholder="请输入基地校" + clearable + size="small" + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="任教学段" prop="rjxd"> + <el-select v-model="queryParams.rjxd" placeholder="请选择任教学段" clearable size="small"> + <el-option + v-for="dict in rjxdOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + /> + </el-select> + </el-form-item> + <el-form-item label="任教学科" prop="rjxk"> + <el-select v-model="queryParams.rjxk" placeholder="请选择任教学科" clearable size="small"> + <el-option + v-for="dict in rjxkOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + /> + </el-select> + </el-form-item> + <el-form-item label="任教年级" prop="rjnj"> + <el-select v-model="queryParams.rjnj" placeholder="请选择任教年级" clearable size="small"> + <el-option + v-for="dict in rjnjOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + /> + </el-select> + </el-form-item> + <el-form-item label="毕业院校" prop="byyx"> + <el-input + v-model="queryParams.byyx" + placeholder="请输入毕业院校" + clearable + size="small" + @keyup.enter.native="handleQuery" + /> + </el-form-item> + <el-form-item label="学历" prop="xl"> + <el-select v-model="queryParams.xl" placeholder="请选择学历" clearable size="small"> + <el-option + v-for="dict in xlOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + /> + </el-select> + </el-form-item> + <el-form-item label="学位" prop="xw"> + <el-select v-model="queryParams.xw" placeholder="请选择学位" clearable size="small"> + <el-option + v-for="dict in xwOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + /> + </el-select> + </el-form-item> + <el-form-item label="是否师范生" prop="sfsfs"> + <el-select v-model="queryParams.sfsfs" placeholder="请选择是否师范生" clearable size="small"> + <el-option + v-for="dict in sfsfsOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + /> + </el-select> + </el-form-item> + <el-form-item label="录取年份" prop="lqnf"> + <el-select v-model="queryParams.lqnf" placeholder="请选择录取年份" clearable size="small"> + <el-option + v-for="dict in lqnfOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + /> + </el-select> + </el-form-item> + <el-form-item> + <el-button type="cyan" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button> + <el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button> + </el-form-item> + </el-form> + + <el-row :gutter="10" class="mb8"> + <el-col :span="1.5"> + <el-button + type="primary" + icon="el-icon-plus" + size="mini" + @click="handleAdd" + v-hasPermi="['jxjs:jxjsjbxx:add']" + >新增</el-button> + </el-col> + <el-col :span="1.5"> + <el-button + type="success" + icon="el-icon-edit" + size="mini" + :disabled="single" + @click="handleUpdate" + v-hasPermi="['jxjs:jxjsjbxx:edit']" + >修改</el-button> + </el-col> + <el-col :span="1.5"> + <el-button + type="danger" + icon="el-icon-delete" + size="mini" + :disabled="multiple" + @click="handleDelete" + v-hasPermi="['jxjs:jxjsjbxx:remove']" + >删除</el-button> + </el-col> + <el-col :span="1.5"> + <el-button + type="warning" + icon="el-icon-download" + size="mini" + @click="handleExport" + v-hasPermi="['jxjs:jxjsjbxx:export']" + >导出</el-button> + </el-col> + <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> + </el-row> + + <el-table v-loading="loading" :data="jxjsjbxxList" @selection-change="handleSelectionChange"> + <el-table-column type="selection" width="55" align="center" /> + <el-table-column label="标识" align="center" prop="id" /> + <el-table-column label="其他系统id" align="center" prop="otherid" /> + <el-table-column label="姓名" align="center" prop="name" /> + <el-table-column label="进修编号" align="center" prop="jxbh" /> + <el-table-column label="性别" align="center" prop="xb" :formatter="xbFormat" /> + <el-table-column label="出生日期" align="center" prop="csrq" width="180"> + <template slot-scope="scope"> + <span>{{ parseTime(scope.row.csrq, '{y}-{m}-{d}') }}</span> + </template> + </el-table-column> + <el-table-column label="电子邮件" align="center" prop="email" /> + <el-table-column label="联系电话" align="center" prop="phone" /> + <el-table-column label="邮编" align="center" prop="yzbm" /> + <el-table-column label="政治面貌" align="center" prop="zzmm" :formatter="zzmmFormat" /> + <el-table-column label="民族" align="center" prop="mz" :formatter="mzFormat" /> + <el-table-column label="聘任单位" align="center" prop="prdwid" /> + <el-table-column label="聘任单位名称" align="center" prop="prdwmc" /> + <el-table-column label="基地校" align="center" prop="jdxid" /> + <el-table-column label="任教学段" align="center" prop="rjxd" :formatter="rjxdFormat" /> + <el-table-column label="任教学科" align="center" prop="rjxk" :formatter="rjxkFormat" /> + <el-table-column label="任教年级" align="center" prop="rjnj" :formatter="rjnjFormat" /> + <el-table-column label="毕业院校" align="center" prop="byyx" /> + <el-table-column label="学历" align="center" prop="xl" :formatter="xlFormat" /> + <el-table-column label="学位" align="center" prop="xw" :formatter="xwFormat" /> + <el-table-column label="是否师范生" align="center" prop="sfsfs" :formatter="sfsfsFormat" /> + <el-table-column label="录取年份" align="center" prop="lqnf" :formatter="lqnfFormat" /> + <el-table-column label="操作" align="center" class-name="small-padding fixed-width"> + <template slot-scope="scope"> + <el-button + size="mini" + type="text" + icon="el-icon-edit" + @click="handleUpdate(scope.row)" + v-hasPermi="['jxjs:jxjsjbxx:edit']" + >修改</el-button> + <el-button + size="mini" + type="text" + icon="el-icon-delete" + @click="handleDelete(scope.row)" + v-hasPermi="['jxjs:jxjsjbxx:remove']" + >删除</el-button> + </template> + </el-table-column> + </el-table> + + <pagination + v-show="total>0" + :total="total" + :page.sync="queryParams.pageNum" + :limit.sync="queryParams.pageSize" + @pagination="getList" + /> + + <!-- 添加或修改见习教师基本信息对话框 --> + <el-dialog :title="title" :visible.sync="open" width="500px" append-to-body> + <el-form ref="form" :model="form" :rules="rules" label-width="80px"> + <el-form-item label="其他系统id" prop="otherid"> + <el-input v-model="form.otherid" placeholder="请输入其他系统id" /> + </el-form-item> + <el-form-item label="姓名" prop="name"> + <el-input v-model="form.name" placeholder="请输入姓名" /> + </el-form-item> + <el-form-item label="进修编号" prop="jxbh"> + <el-input v-model="form.jxbh" placeholder="请输入进修编号" /> + </el-form-item> + <el-form-item label="性别" prop="xb"> + <el-select v-model="form.xb" placeholder="请选择性别"> + <el-option + v-for="dict in xbOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + ></el-option> + </el-select> + </el-form-item> + <el-form-item label="出生日期" prop="csrq"> + <el-date-picker clearable size="small" style="width: 200px" + v-model="form.csrq" + type="date" + value-format="yyyy-MM-dd" + placeholder="选择出生日期"> + </el-date-picker> + </el-form-item> + <el-form-item label="电子邮件" prop="email"> + <el-input v-model="form.email" placeholder="请输入电子邮件" /> + </el-form-item> + <el-form-item label="联系电话" prop="phone"> + <el-input v-model="form.phone" placeholder="请输入联系电话" /> + </el-form-item> + <el-form-item label="邮编" prop="yzbm"> + <el-input v-model="form.yzbm" placeholder="请输入邮编" /> + </el-form-item> + <el-form-item label="政治面貌" prop="zzmm"> + <el-select v-model="form.zzmm" placeholder="请选择政治面貌"> + <el-option + v-for="dict in zzmmOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + ></el-option> + </el-select> + </el-form-item> + <el-form-item label="民族" prop="mz"> + <el-select v-model="form.mz" placeholder="请选择民族"> + <el-option + v-for="dict in mzOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + ></el-option> + </el-select> + </el-form-item> + <el-form-item label="聘任单位" prop="prdwid"> + <el-input v-model="form.prdwid" placeholder="请输入聘任单位" /> + </el-form-item> + <el-form-item label="聘任单位名称" prop="prdwmc"> + <el-input v-model="form.prdwmc" type="textarea" placeholder="请输入内容" /> + </el-form-item> + <el-form-item label="基地校" prop="jdxid"> + <el-input v-model="form.jdxid" placeholder="请输入基地校" /> + </el-form-item> + <el-form-item label="任教学段" prop="rjxd"> + <el-select v-model="form.rjxd" placeholder="请选择任教学段"> + <el-option + v-for="dict in rjxdOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + ></el-option> + </el-select> + </el-form-item> + <el-form-item label="任教学科" prop="rjxk"> + <el-select v-model="form.rjxk" placeholder="请选择任教学科"> + <el-option + v-for="dict in rjxkOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + ></el-option> + </el-select> + </el-form-item> + <el-form-item label="任教年级" prop="rjnj"> + <el-select v-model="form.rjnj" placeholder="请选择任教年级"> + <el-option + v-for="dict in rjnjOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + ></el-option> + </el-select> + </el-form-item> + <el-form-item label="毕业院校" prop="byyx"> + <el-input v-model="form.byyx" placeholder="请输入毕业院校" /> + </el-form-item> + <el-form-item label="学历" prop="xl"> + <el-select v-model="form.xl" placeholder="请选择学历"> + <el-option + v-for="dict in xlOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + ></el-option> + </el-select> + </el-form-item> + <el-form-item label="学位" prop="xw"> + <el-select v-model="form.xw" placeholder="请选择学位"> + <el-option + v-for="dict in xwOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + ></el-option> + </el-select> + </el-form-item> + <el-form-item label="是否师范生" prop="sfsfs"> + <el-select v-model="form.sfsfs" placeholder="请选择是否师范生"> + <el-option + v-for="dict in sfsfsOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + ></el-option> + </el-select> + </el-form-item> + <el-form-item label="录取年份" prop="lqnf"> + <el-select v-model="form.lqnf" placeholder="请选择录取年份"> + <el-option + v-for="dict in lqnfOptions" + :key="dict.dictValue" + :label="dict.dictLabel" + :value="dict.dictValue" + ></el-option> + </el-select> + </el-form-item> + </el-form> + <div slot="footer" class="dialog-footer"> + <el-button type="primary" @click="submitForm">确 定</el-button> + <el-button @click="cancel">取 消</el-button> + </div> + </el-dialog> + </div> +</template> + +<script> +import { listJxjsjbxx, getJxjsjbxx, delJxjsjbxx, addJxjsjbxx, updateJxjsjbxx, exportJxjsjbxx } from "@/api/jxjs/jxjsjbxx"; + +export default { + name: "Jxjsjbxx", + data() { + return { + // 遮罩层 + loading: true, + // 选中数组 + ids: [], + // 非单个禁用 + single: true, + // 非多个禁用 + multiple: true, + // 显示搜索条件 + showSearch: true, + // 总条数 + total: 0, + // 见习教师基本信息表格数据 + jxjsjbxxList: [], + // 弹出层标题 + title: "", + // 是否显示弹出层 + open: false, + // 性别字典 + xbOptions: [], + // 政治面貌字典 + zzmmOptions: [], + // 民族字典 + mzOptions: [], + // 任教学段字典 + rjxdOptions: [], + // 任教学科字典 + rjxkOptions: [], + // 任教年级字典 + rjnjOptions: [], + // 学历字典 + xlOptions: [], + // 学位字典 + xwOptions: [], + // 是否师范生字典 + sfsfsOptions: [], + // 录取年份字典 + lqnfOptions: [], + // 查询参数 + queryParams: { + pageNum: 1, + pageSize: 10, + otherid: null, + name: null, + jxbh: null, + xb: null, + csrq: null, + email: null, + phone: null, + yzbm: null, + zzmm: null, + mz: null, + prdwid: null, + prdwmc: null, + jdxid: null, + rjxd: null, + rjxk: null, + rjnj: null, + byyx: null, + xl: null, + xw: null, + sfsfs: null, + lqnf: null, + }, + // 表单参数 + form: {}, + // 表单校验 + rules: { + } + }; + }, + created() { + this.getList(); + this.getDicts("sys_user_sex").then(response => { + this.xbOptions = response.data; + }); + this.getDicts("sys_dm_zzmm").then(response => { + this.zzmmOptions = response.data; + }); + this.getDicts("sys_dm_mz").then(response => { + this.mzOptions = response.data; + }); + this.getDicts("sys_dm_rjxd").then(response => { + this.rjxdOptions = response.data; + }); + this.getDicts("sys_dm_rjxk").then(response => { + this.rjxkOptions = response.data; + }); + this.getDicts("sys_dm_rjnj").then(response => { + this.rjnjOptions = response.data; + }); + this.getDicts("sys_dm_xl").then(response => { + this.xlOptions = response.data; + }); + this.getDicts("sys_dm_xw").then(response => { + this.xwOptions = response.data; + }); + this.getDicts("sys_dm_sfsfs").then(response => { + this.sfsfsOptions = response.data; + }); + this.getDicts("sys_dm_rxnf").then(response => { + this.lqnfOptions = response.data; + }); + }, + methods: { + /** 查询见习教师基本信息列表 */ + getList() { + this.loading = true; + listJxjsjbxx(this.queryParams).then(response => { + this.jxjsjbxxList = response.rows; + this.total = response.total; + this.loading = false; + }); + }, + // 性别字典翻译 + xbFormat(row, column) { + return this.selectDictLabel(this.xbOptions, row.xb); + }, + // 政治面貌字典翻译 + zzmmFormat(row, column) { + return this.selectDictLabel(this.zzmmOptions, row.zzmm); + }, + // 民族字典翻译 + mzFormat(row, column) { + return this.selectDictLabel(this.mzOptions, row.mz); + }, + // 任教学段字典翻译 + rjxdFormat(row, column) { + return this.selectDictLabel(this.rjxdOptions, row.rjxd); + }, + // 任教学科字典翻译 + rjxkFormat(row, column) { + return this.selectDictLabel(this.rjxkOptions, row.rjxk); + }, + // 任教年级字典翻译 + rjnjFormat(row, column) { + return this.selectDictLabel(this.rjnjOptions, row.rjnj); + }, + // 学历字典翻译 + xlFormat(row, column) { + return this.selectDictLabel(this.xlOptions, row.xl); + }, + // 学位字典翻译 + xwFormat(row, column) { + return this.selectDictLabel(this.xwOptions, row.xw); + }, + // 是否师范生字典翻译 + sfsfsFormat(row, column) { + return this.selectDictLabel(this.sfsfsOptions, row.sfsfs); + }, + // 录取年份字典翻译 + lqnfFormat(row, column) { + return this.selectDictLabel(this.lqnfOptions, row.lqnf); + }, + // 取消按钮 + cancel() { + this.open = false; + this.reset(); + }, + // 表单重置 + reset() { + this.form = { + id: null, + otherid: null, + name: null, + jxbh: null, + xb: null, + csrq: null, + email: null, + phone: null, + yzbm: null, + zzmm: null, + mz: null, + prdwid: null, + prdwmc: null, + jdxid: null, + rjxd: null, + rjxk: null, + rjnj: null, + byyx: null, + xl: null, + xw: null, + sfsfs: null, + lqnf: null, + createTime: null + }; + this.resetForm("form"); + }, + /** 搜索按钮操作 */ + handleQuery() { + this.queryParams.pageNum = 1; + this.getList(); + }, + /** 重置按钮操作 */ + resetQuery() { + this.resetForm("queryForm"); + this.handleQuery(); + }, + // 多选框选中数据 + handleSelectionChange(selection) { + this.ids = selection.map(item => item.id) + this.single = selection.length!==1 + this.multiple = !selection.length + }, + /** 新增按钮操作 */ + handleAdd() { + this.reset(); + this.open = true; + this.title = "添加见习教师基本信息"; + }, + /** 修改按钮操作 */ + handleUpdate(row) { + this.reset(); + const id = row.id || this.ids + getJxjsjbxx(id).then(response => { + this.form = response.data; + this.open = true; + this.title = "修改见习教师基本信息"; + }); + }, + /** 提交按钮 */ + submitForm() { + this.$refs["form"].validate(valid => { + if (valid) { + if (this.form.id != null) { + updateJxjsjbxx(this.form).then(response => { + if (response.code === 200) { + this.msgSuccess("修改成功"); + this.open = false; + this.getList(); + } + }); + } else { + addJxjsjbxx(this.form).then(response => { + if (response.code === 200) { + this.msgSuccess("新增成功"); + this.open = false; + this.getList(); + } + }); + } + } + }); + }, + /** 删除按钮操作 */ + handleDelete(row) { + const ids = row.id || this.ids; + this.$confirm('是否确认删除见习教师基本信息编号为"' + ids + '"的数据项?', "警告", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning" + }).then(function() { + return delJxjsjbxx(ids); + }).then(() => { + this.getList(); + this.msgSuccess("删除成功"); + }).catch(function() {}); + }, + /** 导出按钮操作 */ + handleExport() { + const queryParams = this.queryParams; + this.$confirm('是否确认导出所有见习教师基本信息数据项?', "警告", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning" + }).then(function() { + return exportJxjsjbxx(queryParams); + }).then(response => { + this.download(response.msg); + }).catch(function() {}); + } + } +}; +</script>