见习之星考核方案优化
This commit is contained in:
@ -32,6 +32,7 @@ public class TsbzJxzxStatisticsController extends BaseController {
|
||||
public TableDataInfo list(TsbzJxzxmd tsbzJxzxmd) {
|
||||
System.out.println("nf:" + tsbzJxzxmd.getNf());
|
||||
System.out.println("faid:" + tsbzJxzxmd.getFaid());
|
||||
System.out.println("name:" + tsbzJxzxmd.getName());
|
||||
startPage();
|
||||
List<TsbzJxzxmd> list = tsbzJxzxmdService.selectTsbzJxzxmdKhjdList(tsbzJxzxmd);
|
||||
return getDataTable(list);
|
||||
|
@ -3,6 +3,8 @@ package com.ruoyi.web.controller.jxzxkhgl;
|
||||
import java.util.List;
|
||||
|
||||
import com.ruoyi.common.utils.SecurityUtils;
|
||||
import com.ruoyi.jxzxkhgl.domain.TsbzJxzxkhzbx;
|
||||
import com.ruoyi.jxzxkhgl.service.ITsbzJxzxkhzbxService;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
@ -30,18 +32,18 @@ import com.ruoyi.common.core.page.TableDataInfo;
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("/jxzxkhgl/jxzxkhfa")
|
||||
public class TsbzJxzxkhfaController extends BaseController
|
||||
{
|
||||
public class TsbzJxzxkhfaController extends BaseController {
|
||||
@Autowired
|
||||
private ITsbzJxzxkhfaService tsbzJxzxkhfaService;
|
||||
@Autowired
|
||||
private ITsbzJxzxkhzbxService tsbzJxzxkhzbxService;
|
||||
|
||||
/**
|
||||
* 查询见习之星考核方案列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhfa:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(TsbzJxzxkhfa tsbzJxzxkhfa)
|
||||
{
|
||||
public TableDataInfo list(TsbzJxzxkhfa tsbzJxzxkhfa) {
|
||||
startPage();
|
||||
List<TsbzJxzxkhfa> list = tsbzJxzxkhfaService.selectTsbzJxzxkhfaList(tsbzJxzxkhfa);
|
||||
return getDataTable(list);
|
||||
@ -53,8 +55,7 @@ public class TsbzJxzxkhfaController extends BaseController
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhfa:export')")
|
||||
@Log(title = "见习之星考核方案", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(TsbzJxzxkhfa tsbzJxzxkhfa)
|
||||
{
|
||||
public AjaxResult export(TsbzJxzxkhfa tsbzJxzxkhfa) {
|
||||
List<TsbzJxzxkhfa> list = tsbzJxzxkhfaService.selectTsbzJxzxkhfaList(tsbzJxzxkhfa);
|
||||
ExcelUtil<TsbzJxzxkhfa> util = new ExcelUtil<TsbzJxzxkhfa>(TsbzJxzxkhfa.class);
|
||||
return util.exportExcel(list, "jxzxkhfa");
|
||||
@ -65,8 +66,7 @@ public class TsbzJxzxkhfaController extends BaseController
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhfa:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id) {
|
||||
return AjaxResult.success(tsbzJxzxkhfaService.selectTsbzJxzxkhfaById(id));
|
||||
}
|
||||
|
||||
@ -76,8 +76,15 @@ public class TsbzJxzxkhfaController extends BaseController
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhfa:add')")
|
||||
@Log(title = "见习之星考核方案", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody TsbzJxzxkhfa tsbzJxzxkhfa)
|
||||
{
|
||||
public AjaxResult add(@RequestBody TsbzJxzxkhfa tsbzJxzxkhfa) {
|
||||
//新增的时候 判断是否创建了当前年份方案
|
||||
TsbzJxzxkhfa tsbzJxzxkhfaNew = new TsbzJxzxkhfa();
|
||||
tsbzJxzxkhfaNew.setKhnf(tsbzJxzxkhfa.getKhnf());
|
||||
List<TsbzJxzxkhfa> list = tsbzJxzxkhfaService.selectTsbzJxzxkhfaList(tsbzJxzxkhfaNew);
|
||||
if (list != null && list.size() > 0) {
|
||||
return AjaxResult.error("当前年份的考核方案已创建,不可重复创建");
|
||||
}
|
||||
|
||||
tsbzJxzxkhfa.setCreateuserid(SecurityUtils.getLoginUser().getUser().getUserId());
|
||||
return toAjax(tsbzJxzxkhfaService.insertTsbzJxzxkhfa(tsbzJxzxkhfa));
|
||||
}
|
||||
@ -88,8 +95,7 @@ public class TsbzJxzxkhfaController extends BaseController
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhfa:edit')")
|
||||
@Log(title = "见习之星考核方案", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody TsbzJxzxkhfa tsbzJxzxkhfa)
|
||||
{
|
||||
public AjaxResult edit(@RequestBody TsbzJxzxkhfa tsbzJxzxkhfa) {
|
||||
return toAjax(tsbzJxzxkhfaService.updateTsbzJxzxkhfa(tsbzJxzxkhfa));
|
||||
}
|
||||
|
||||
@ -99,8 +105,18 @@ public class TsbzJxzxkhfaController extends BaseController
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhfa:remove')")
|
||||
@Log(title = "见习之星考核方案", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
{
|
||||
public AjaxResult remove(@PathVariable Long[] ids) {
|
||||
//判断方案下是否存在指标项
|
||||
TsbzJxzxkhzbx tsbzJxzxkhzbx = null;
|
||||
for (int i = 0; i < ids.length; i++) {
|
||||
tsbzJxzxkhzbx = new TsbzJxzxkhzbx();
|
||||
tsbzJxzxkhzbx.setFaid(ids[i]);
|
||||
|
||||
List<TsbzJxzxkhzbx> list = tsbzJxzxkhzbxService.selectTsbzJxzxkhzbxList(tsbzJxzxkhzbx);
|
||||
if (list != null && list.size() > 0) {
|
||||
return AjaxResult.error("当前见习之星考核方案下存在指标项,不可删除");
|
||||
}
|
||||
}
|
||||
return toAjax(tsbzJxzxkhfaService.deleteTsbzJxzxkhfaByIds(ids));
|
||||
}
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ public class TsbzJxzxkhzbxController extends BaseController
|
||||
/**
|
||||
* 查询考核指标项列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhzbx:list')")
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhfa:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(TsbzJxzxkhzbx tsbzJxzxkhzbx)
|
||||
{
|
||||
@ -50,7 +50,7 @@ public class TsbzJxzxkhzbxController extends BaseController
|
||||
/**
|
||||
* 导出考核指标项列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhzbx:export')")
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhfa:export')")
|
||||
@Log(title = "考核指标项", businessType = BusinessType.EXPORT)
|
||||
@GetMapping("/export")
|
||||
public AjaxResult export(TsbzJxzxkhzbx tsbzJxzxkhzbx)
|
||||
@ -63,7 +63,7 @@ public class TsbzJxzxkhzbxController extends BaseController
|
||||
/**
|
||||
* 获取考核指标项详细信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhzbx:query')")
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhfa:query')")
|
||||
@GetMapping(value = "/{id}")
|
||||
public AjaxResult getInfo(@PathVariable("id") Long id)
|
||||
{
|
||||
@ -73,7 +73,7 @@ public class TsbzJxzxkhzbxController extends BaseController
|
||||
/**
|
||||
* 新增考核指标项
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhzbx:add')")
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhfa:add')")
|
||||
@Log(title = "考核指标项", businessType = BusinessType.INSERT)
|
||||
@PostMapping
|
||||
public AjaxResult add(@RequestBody TsbzJxzxkhzbx tsbzJxzxkhzbx)
|
||||
@ -85,7 +85,7 @@ public class TsbzJxzxkhzbxController extends BaseController
|
||||
/**
|
||||
* 修改考核指标项
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhzbx:edit')")
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhfa:edit')")
|
||||
@Log(title = "考核指标项", businessType = BusinessType.UPDATE)
|
||||
@PutMapping
|
||||
public AjaxResult edit(@RequestBody TsbzJxzxkhzbx tsbzJxzxkhzbx)
|
||||
@ -96,7 +96,7 @@ public class TsbzJxzxkhzbxController extends BaseController
|
||||
/**
|
||||
* 删除考核指标项
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhzbx:remove')")
|
||||
@PreAuthorize("@ss.hasPermi('jxzxkhgl:jxzxkhfa:remove')")
|
||||
@Log(title = "考核指标项", businessType = BusinessType.DELETE)
|
||||
@DeleteMapping("/{ids}")
|
||||
public AjaxResult remove(@PathVariable Long[] ids)
|
||||
|
@ -44,6 +44,43 @@ public class TsbzJxzxmd extends BaseEntity {
|
||||
private String faid;
|
||||
private TsbzJxjsjbxx tsbzJxjsjbxx;
|
||||
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getPrdwid() {
|
||||
return prdwid;
|
||||
}
|
||||
|
||||
public void setPrdwid(String prdwid) {
|
||||
this.prdwid = prdwid;
|
||||
}
|
||||
|
||||
public String getPrdwmc() {
|
||||
return prdwmc;
|
||||
}
|
||||
|
||||
public void setPrdwmc(String prdwmc) {
|
||||
this.prdwmc = prdwmc;
|
||||
}
|
||||
|
||||
public String getJdxid() {
|
||||
return jdxid;
|
||||
}
|
||||
|
||||
public void setJdxid(String jdxid) {
|
||||
this.jdxid = jdxid;
|
||||
}
|
||||
|
||||
private String name;
|
||||
private String prdwid;
|
||||
private String prdwmc;
|
||||
private String jdxid;
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
@ -111,6 +148,10 @@ public class TsbzJxzxmd extends BaseEntity {
|
||||
.append("bfb", getBfb())
|
||||
.append("faid", getFaid())
|
||||
.append("tsbzJxjsjbxx", getTsbzJxjsjbxx())
|
||||
.append("name", getName())
|
||||
.append("prdwid", getPrdwid())
|
||||
.append("prdwmc", getPrdwmc())
|
||||
.append("jdxid", getJdxid())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
@ -1,6 +1,7 @@
|
||||
package com.ruoyi.jxzxkhgl.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;
|
||||
@ -13,130 +14,137 @@ import com.ruoyi.common.core.domain.BaseEntity;
|
||||
* @author ruoyi
|
||||
* @date 2020-08-29
|
||||
*/
|
||||
public class TsbzJxzxkhfa extends BaseEntity
|
||||
{
|
||||
public class TsbzJxzxkhfa extends BaseEntity {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 编号 */
|
||||
/**
|
||||
* 编号
|
||||
*/
|
||||
private Long id;
|
||||
|
||||
/** 考核方案名称 */
|
||||
/**
|
||||
* 考核方案名称
|
||||
*/
|
||||
@Excel(name = "考核方案名称")
|
||||
private String name;
|
||||
|
||||
/** 考核方案状态
|
||||
0:未启动
|
||||
1:启动
|
||||
9:已结束 */
|
||||
/**
|
||||
* 考核方案状态
|
||||
* 0:未启动
|
||||
* 1:启动
|
||||
* 9:已结束
|
||||
*/
|
||||
@Excel(name = "考核方案状态")
|
||||
private String status;
|
||||
|
||||
/** 考核开始时间 */
|
||||
/**
|
||||
* 考核开始时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "考核开始时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date starttime;
|
||||
|
||||
/** 考核结束时间 */
|
||||
/**
|
||||
* 考核结束时间
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy-MM-dd")
|
||||
@Excel(name = "考核结束时间", width = 30, dateFormat = "yyyy-MM-dd")
|
||||
private Date endtime;
|
||||
|
||||
/** 考核文件名称 */
|
||||
/**
|
||||
* 考核文件名称
|
||||
*/
|
||||
@Excel(name = "考核文件名称")
|
||||
private String filename;
|
||||
|
||||
/** 文件路径 */
|
||||
/**
|
||||
* 文件路径
|
||||
*/
|
||||
@Excel(name = "文件路径")
|
||||
private String filepath;
|
||||
|
||||
/** 考核年份 */
|
||||
/**
|
||||
* 考核年份
|
||||
*/
|
||||
@JsonFormat(pattern = "yyyy")
|
||||
@Excel(name = "考核年份", width = 30, dateFormat = "yyyy")
|
||||
private Date khnf;
|
||||
|
||||
/** 创建人 */
|
||||
/**
|
||||
* 创建人
|
||||
*/
|
||||
@Excel(name = "创建人")
|
||||
private Long createuserid;
|
||||
|
||||
public void setId(Long id)
|
||||
{
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
public Long getId()
|
||||
{
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
public void setName(String name)
|
||||
{
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public String getName()
|
||||
{
|
||||
public String getName() {
|
||||
return name;
|
||||
}
|
||||
public void setStatus(String status)
|
||||
{
|
||||
|
||||
public void setStatus(String status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
public String getStatus()
|
||||
{
|
||||
public String getStatus() {
|
||||
return status;
|
||||
}
|
||||
public void setStarttime(Date starttime)
|
||||
{
|
||||
|
||||
public void setStarttime(Date starttime) {
|
||||
this.starttime = starttime;
|
||||
}
|
||||
|
||||
public Date getStarttime()
|
||||
{
|
||||
public Date getStarttime() {
|
||||
return starttime;
|
||||
}
|
||||
public void setEndtime(Date endtime)
|
||||
{
|
||||
|
||||
public void setEndtime(Date endtime) {
|
||||
this.endtime = endtime;
|
||||
}
|
||||
|
||||
public Date getEndtime()
|
||||
{
|
||||
public Date getEndtime() {
|
||||
return endtime;
|
||||
}
|
||||
public void setFilename(String filename)
|
||||
{
|
||||
|
||||
public void setFilename(String filename) {
|
||||
this.filename = filename;
|
||||
}
|
||||
|
||||
public String getFilename()
|
||||
{
|
||||
public String getFilename() {
|
||||
return filename;
|
||||
}
|
||||
public void setFilepath(String filepath)
|
||||
{
|
||||
|
||||
public void setFilepath(String filepath) {
|
||||
this.filepath = filepath;
|
||||
}
|
||||
|
||||
public String getFilepath()
|
||||
{
|
||||
public String getFilepath() {
|
||||
return filepath;
|
||||
}
|
||||
public void setKhnf(Date khnf)
|
||||
{
|
||||
|
||||
public void setKhnf(Date khnf) {
|
||||
this.khnf = khnf;
|
||||
}
|
||||
|
||||
public Date getKhnf()
|
||||
{
|
||||
public Date getKhnf() {
|
||||
return khnf;
|
||||
}
|
||||
public void setCreateuserid(Long createuserid)
|
||||
{
|
||||
|
||||
public void setCreateuserid(Long createuserid) {
|
||||
this.createuserid = createuserid;
|
||||
}
|
||||
|
||||
public Long getCreateuserid()
|
||||
{
|
||||
public Long getCreateuserid() {
|
||||
return createuserid;
|
||||
}
|
||||
|
||||
@ -153,6 +161,7 @@ public class TsbzJxzxkhfa extends BaseEntity
|
||||
.append("khnf", getKhnf())
|
||||
.append("createuserid", getCreateuserid())
|
||||
.append("createTime", getCreateTime())
|
||||
.append("remark", getRemark())
|
||||
.toString();
|
||||
}
|
||||
}
|
||||
|
@ -102,6 +102,10 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
(select count(*)from tsbz_jxzxkhgcsj where faid=#{faid} and createuserid=a.jsid)/(select count(*) from tsbz_jxzxkhzbx where faid=#{faid}) bfb from tsbz_jxzxmd a
|
||||
left join tsbz_jxjsjbxx b on a.jsid=b.id
|
||||
where a.nf=#{nf}
|
||||
<if test="name != null and name != ''">and b.name like concat('%', #{name}, '%')</if>
|
||||
<if test="prdwid != null and prdwid != ''">and b.prdwid = #{prdwid}</if>
|
||||
<if test="prdwmc != null and prdwmc != ''">and b.prdwmc = #{prdwmc}</if>
|
||||
<if test="jdxid != null and jdxid != ''">and b.jdxid = #{jdxid}</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
@ -15,10 +15,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<result property="khnf" column="khnf"/>
|
||||
<result property="createuserid" column="createuserid"/>
|
||||
<result property="createTime" column="create_time"/>
|
||||
<result property="remark" column="remark"/>
|
||||
</resultMap>
|
||||
|
||||
<sql id="selectTsbzJxzxkhfaVo">
|
||||
select id, name, status, starttime, endtime, filename, filepath, khnf, createuserid, create_time from tsbz_jxzxkhfa
|
||||
select id, name, status, starttime, endtime, filename, filepath, khnf, createuserid, create_time, remark from tsbz_jxzxkhfa
|
||||
</sql>
|
||||
|
||||
<select id="selectTsbzJxzxkhfaList" parameterType="TsbzJxzxkhfa" resultMap="TsbzJxzxkhfaResult">
|
||||
@ -33,6 +34,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="khnf != null ">and khnf = #{khnf}</if>
|
||||
<if test="createuserid != null ">and createuserid = #{createuserid}</if>
|
||||
</where>
|
||||
order by khnf desc
|
||||
</select>
|
||||
|
||||
<select id="selectTsbzJxzxkhfaById" parameterType="Long" resultMap="TsbzJxzxkhfaResult">
|
||||
@ -52,6 +54,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="khnf != null">khnf,</if>
|
||||
<if test="createuserid != null">createuserid,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="remark != null">remark,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="name != null">#{name},</if>
|
||||
@ -63,6 +66,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="khnf != null">#{khnf},</if>
|
||||
<if test="createuserid != null">#{createuserid},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="remark != null">#{remark},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
@ -78,6 +82,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="khnf != null">khnf = #{khnf},</if>
|
||||
<if test="createuserid != null">createuserid = #{createuserid},</if>
|
||||
<if test="createTime != null">create_time = #{createTime},</if>
|
||||
<if test="remark != null">remark = #{remark},</if>
|
||||
</trim>
|
||||
where id = #{id}
|
||||
</update>
|
||||
|
@ -31,7 +31,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<where>
|
||||
<if test="faid != null ">and faid = #{faid}</if>
|
||||
<if test="khmk != null and khmk != ''">and khmk = #{khmk}</if>
|
||||
<if test="khnr != null and khnr != ''"> and khnr = #{khnr}</if>
|
||||
<if test="khnr != null and khnr != ''">and khnr like concat('%', #{khnr}, '%')</if>
|
||||
<if test="tjsl != null ">and tjsl = #{tjsl}</if>
|
||||
<if test="gjzd != null and gjzd != ''">and gjzd = #{gjzd}</if>
|
||||
<if test="tbly != null and tbly != ''">and tbly = #{tbly}</if>
|
||||
@ -43,6 +43,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
<if test="yly != null and yly != ''">and yly = #{yly}</if>
|
||||
<if test="yle != null and yle != ''">and yle = #{yle}</if>
|
||||
</where>
|
||||
order by id
|
||||
</select>
|
||||
|
||||
<select id="selectTsbzJxzxkhzbxById" parameterType="Long" resultMap="TsbzJxzxkhzbxResult">
|
||||
|
@ -1,6 +1,12 @@
|
||||
<template>
|
||||
<div class="app-container">
|
||||
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="102px">
|
||||
<el-form
|
||||
:model="queryParams"
|
||||
ref="queryForm"
|
||||
:inline="true"
|
||||
v-show="showSearch"
|
||||
label-width="102px"
|
||||
>
|
||||
<el-form-item label="所属考核方案" prop="faid">
|
||||
<el-select v-model="queryParams.faid" placeholder="请选择考核模块" clearable size="small">
|
||||
<el-option
|
||||
@ -21,7 +27,25 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="同步来源" prop="tbly">
|
||||
<el-form-item label="考核内容" prop="khnr">
|
||||
<el-input
|
||||
v-model="queryParams.khnr"
|
||||
placeholder="请输入考核内容"
|
||||
clearable
|
||||
size="small"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="提交数量" prop="tjsl">
|
||||
<el-input-number
|
||||
v-model="queryParams.tjsl"
|
||||
placeholder="数量"
|
||||
clearable
|
||||
size="small"
|
||||
@keyup.enter.native="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="同步来源" prop="tbly">
|
||||
<el-select v-model="queryParams.tbly" placeholder="请选择同步来源" clearable size="small">
|
||||
<el-option
|
||||
v-for="dict in tblyOptions"
|
||||
@ -32,21 +56,27 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="执行开始时间" prop="starttime">
|
||||
<el-date-picker clearable size="small" style="width: 200px"
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="queryParams.starttime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择执行开始时间">
|
||||
</el-date-picker>
|
||||
placeholder="选择执行开始时间"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="执行截止时间" prop="endtime">
|
||||
<el-date-picker clearable size="small" style="width: 200px"
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="queryParams.endtime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择执行截止时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
placeholder="选择执行截止时间"
|
||||
></el-date-picker>
|
||||
</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>
|
||||
@ -60,7 +90,7 @@
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
@click="handleAdd"
|
||||
v-hasPermi="['jxzxkhgl:jxzxkhzbx:add']"
|
||||
v-hasPermi="['jxzxkhgl:jxzxkhfa:add']"
|
||||
>新增</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
@ -70,7 +100,7 @@
|
||||
size="mini"
|
||||
:disabled="single"
|
||||
@click="handleUpdate"
|
||||
v-hasPermi="['jxzxkhgl:jxzxkhzbx:edit']"
|
||||
v-hasPermi="['jxzxkhgl:jxzxkhfa:edit']"
|
||||
>修改</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
@ -80,27 +110,21 @@
|
||||
size="mini"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['jxzxkhgl:jxzxkhzbx:remove']"
|
||||
v-hasPermi="['jxzxkhgl:jxzxkhfa:remove']"
|
||||
>删除</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="warning"
|
||||
icon="el-icon-download"
|
||||
size="mini"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['jxzxkhgl:jxzxkhzbx:export']"
|
||||
>导出</el-button>
|
||||
</el-col>
|
||||
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
||||
</el-row>
|
||||
|
||||
<el-table v-loading="loading" :data="jxzxkhzbxList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="编号" align="center" prop="id" />
|
||||
<!-- <el-table-column label="编号" align="center" prop="id" /> -->
|
||||
<el-table-column label="所属考核方案" align="center" prop="faid" :formatter="khfaFormat" />
|
||||
<el-table-column label="考核模块" align="center" prop="khmk" :formatter="khmkFormat" />
|
||||
<el-table-column label="同步来源" align="center" prop="tbly" :formatter="tblyFormat" />
|
||||
<el-table-column label="考核内容" align="center" prop="khnr" />
|
||||
<el-table-column label="关键字段" align="center" prop="gjzd" :show-overflow-tooltip="true" />
|
||||
<el-table-column label="提交文件数量" align="center" prop="tjsl" />
|
||||
<!-- <el-table-column label="同步来源" align="center" prop="tbly" :formatter="tblyFormat" />
|
||||
<el-table-column label="执行开始时间" align="center" prop="starttime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.starttime, '{y}-{m}-{d}') }}</span>
|
||||
@ -110,7 +134,7 @@
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.endtime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table-column> -->
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
<template slot-scope="scope">
|
||||
<el-button
|
||||
@ -118,14 +142,14 @@
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['jxzxkhgl:jxzxkhzbx:edit']"
|
||||
v-hasPermi="['jxzxkhgl:jxzxkhfa:edit']"
|
||||
>修改</el-button>
|
||||
<el-button
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleDelete(scope.row)"
|
||||
v-hasPermi="['jxzxkhgl:jxzxkhzbx:remove']"
|
||||
v-hasPermi="['jxzxkhgl:jxzxkhfa:remove']"
|
||||
>删除</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -142,8 +166,14 @@
|
||||
<!-- 添加或修改考核指标项对话框 -->
|
||||
<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="所属考核方案" prop="faid" >
|
||||
<el-select v-model="queryParams.faid" placeholder="请选择考核模块" clearable size="small" :disabled="true">
|
||||
<el-form-item label="考核方案" prop="faid">
|
||||
<el-select
|
||||
v-model="queryParams.faid"
|
||||
placeholder="请选择考核模块"
|
||||
clearable
|
||||
size="small"
|
||||
:disabled="true"
|
||||
>
|
||||
<el-option
|
||||
v-for="dict in khfaOptions"
|
||||
:key="dict.id"
|
||||
@ -166,12 +196,12 @@
|
||||
<el-input v-model="form.khnr" placeholder="请输入考核内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="提交数量" prop="tjsl">
|
||||
<el-input v-model="form.tjsl" placeholder="请输入提交数量" />
|
||||
<el-input-number v-model="form.tjsl" placeholder="请输入提交数量" />
|
||||
</el-form-item>
|
||||
<el-form-item label="关键字段" prop="gjzd">
|
||||
<el-input v-model="form.gjzd" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>
|
||||
<el-form-item label="同步来源" prop="tbly">
|
||||
<!-- <el-form-item label="同步来源" prop="tbly">
|
||||
<el-select v-model="form.tbly" placeholder="请选择同步来源">
|
||||
<el-option
|
||||
v-for="dict in tblyOptions"
|
||||
@ -180,26 +210,32 @@
|
||||
:value="dict.dictValue"
|
||||
></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form-item>-->
|
||||
<!-- <el-form-item label="接口标记预留" prop="jkbj">
|
||||
<el-input v-model="form.jkbj" type="textarea" placeholder="请输入内容" />
|
||||
</el-form-item>-->
|
||||
<el-form-item label="执行开始时间" prop="starttime">
|
||||
<el-date-picker clearable size="small" style="width: 200px"
|
||||
<!-- <el-form-item label="执行开始时间" prop="starttime">
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="form.starttime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择执行开始时间">
|
||||
</el-date-picker>
|
||||
placeholder="选择执行开始时间"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="执行截止时间" prop="endtime">
|
||||
<el-date-picker clearable size="small" style="width: 200px"
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="form.endtime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择执行截止时间">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
placeholder="选择执行截止时间"
|
||||
></el-date-picker>
|
||||
</el-form-item>-->
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
@ -210,7 +246,13 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { listJxzxkhzbx, getJxzxkhzbx, delJxzxkhzbx, addJxzxkhzbx, updateJxzxkhzbx, exportJxzxkhzbx } from "@/api/jxzxkhgl/jxzxkhzbx";
|
||||
import {
|
||||
listJxzxkhzbx,
|
||||
getJxzxkhzbx,
|
||||
delJxzxkhzbx,
|
||||
addJxzxkhzbx,
|
||||
updateJxzxkhzbx,
|
||||
} from "@/api/jxzxkhgl/jxzxkhzbx";
|
||||
import { listJxzxkhfa, getJxzxkhfa } from "@/api/jxzxkhgl/jxzxkhfa";
|
||||
|
||||
export default {
|
||||
@ -250,7 +292,7 @@ export default {
|
||||
faid: null,
|
||||
khmk: null,
|
||||
khnr: null,
|
||||
tjsl: null,
|
||||
tjsl: undefined,
|
||||
gjzd: null,
|
||||
tbly: null,
|
||||
jkbj: null,
|
||||
@ -259,7 +301,7 @@ export default {
|
||||
zxrw: null,
|
||||
createuserid: null,
|
||||
yly: null,
|
||||
yle: null
|
||||
yle: null,
|
||||
},
|
||||
// 表单参数
|
||||
form: {},
|
||||
@ -272,24 +314,24 @@ export default {
|
||||
tbly: [{ required: true, message: "不能为空", trigger: "blur" }],
|
||||
starttime: [{ required: true, message: "不能为空", trigger: "blur" }],
|
||||
endtime: [{ required: true, message: "不能为空", trigger: "blur" }],
|
||||
}
|
||||
},
|
||||
};
|
||||
},
|
||||
created() {
|
||||
const khfaid = this.$route.params && this.$route.params.id;
|
||||
this.getkhfa2(khfaid);
|
||||
this.getJxzxkhfaList();
|
||||
this.getDicts("sys_dm_khmk").then(response => {
|
||||
this.getDicts("sys_dm_khmk").then((response) => {
|
||||
this.khmkOptions = response.data;
|
||||
});
|
||||
this.getDicts("sys_dm_tbly").then(response => {
|
||||
this.getDicts("sys_dm_tbly").then((response) => {
|
||||
this.tblyOptions = response.data;
|
||||
});
|
||||
},
|
||||
methods: {
|
||||
// 考核方案列表
|
||||
getkhfa2(khfaid) {
|
||||
getJxzxkhfa(khfaid).then(response => {
|
||||
getJxzxkhfa(khfaid).then((response) => {
|
||||
this.queryParams.faid = response.data.id;
|
||||
this.defaultFa = response.data.id;
|
||||
this.getList();
|
||||
@ -298,7 +340,7 @@ export default {
|
||||
/** 查询考核指标项列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
listJxzxkhzbx(this.queryParams).then(response => {
|
||||
listJxzxkhzbx(this.queryParams).then((response) => {
|
||||
this.jxzxkhzbxList = response.rows;
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
@ -306,7 +348,7 @@ export default {
|
||||
},
|
||||
// 查询考核方案选项
|
||||
getJxzxkhfaList() {
|
||||
listJxzxkhfa().then(response => {
|
||||
listJxzxkhfa().then((response) => {
|
||||
this.khfaOptions = response.rows;
|
||||
});
|
||||
},
|
||||
@ -314,7 +356,7 @@ export default {
|
||||
khfaFormat(row, column) {
|
||||
var actions = [];
|
||||
var datas = this.khfaOptions;
|
||||
Object.keys(datas).map(key => {
|
||||
Object.keys(datas).map((key) => {
|
||||
if (datas[key].id == "" + row.faid) {
|
||||
actions.push(datas[key].name);
|
||||
return false;
|
||||
@ -342,7 +384,7 @@ export default {
|
||||
faid: null,
|
||||
khmk: null,
|
||||
khnr: null,
|
||||
tjsl: null,
|
||||
tjsl: 0,
|
||||
gjzd: null,
|
||||
tbly: null,
|
||||
jkbj: null,
|
||||
@ -352,7 +394,7 @@ export default {
|
||||
createuserid: null,
|
||||
createTime: null,
|
||||
yly: null,
|
||||
yle: null
|
||||
yle: null,
|
||||
};
|
||||
this.resetForm("form");
|
||||
},
|
||||
@ -369,9 +411,9 @@ export default {
|
||||
},
|
||||
// 多选框选中数据
|
||||
handleSelectionChange(selection) {
|
||||
this.ids = selection.map(item => item.id)
|
||||
this.single = selection.length!==1
|
||||
this.multiple = !selection.length
|
||||
this.ids = selection.map((item) => item.id);
|
||||
this.single = selection.length !== 1;
|
||||
this.multiple = !selection.length;
|
||||
},
|
||||
/** 新增按钮操作 */
|
||||
handleAdd() {
|
||||
@ -383,8 +425,8 @@ export default {
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids
|
||||
getJxzxkhzbx(id).then(response => {
|
||||
const id = row.id || this.ids;
|
||||
getJxzxkhzbx(id).then((response) => {
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改考核指标项";
|
||||
@ -392,10 +434,10 @@ export default {
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
this.$refs["form"].validate((valid) => {
|
||||
if (valid) {
|
||||
if (this.form.id != null) {
|
||||
updateJxzxkhzbx(this.form).then(response => {
|
||||
updateJxzxkhzbx(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
@ -403,7 +445,7 @@ export default {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
addJxzxkhzbx(this.form).then(response => {
|
||||
addJxzxkhzbx(this.form).then((response) => {
|
||||
if (response.code === 200) {
|
||||
this.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
@ -417,30 +459,24 @@ export default {
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$confirm('是否确认删除考核指标项编号为"' + ids + '"的数据项?', "警告", {
|
||||
this.$confirm(
|
||||
'是否确认删除考核指标项数据项?',
|
||||
"警告",
|
||||
{
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
}).then(function() {
|
||||
type: "warning",
|
||||
}
|
||||
)
|
||||
.then(function () {
|
||||
return delJxzxkhzbx(ids);
|
||||
}).then(() => {
|
||||
})
|
||||
.then(() => {
|
||||
this.getList();
|
||||
this.msgSuccess("删除成功");
|
||||
}).catch(function() {});
|
||||
})
|
||||
.catch(function () {});
|
||||
},
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
const queryParams = this.queryParams;
|
||||
this.$confirm('是否确认导出所有考核指标项数据项?', "警告", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
}).then(function() {
|
||||
return exportJxzxkhzbx(queryParams);
|
||||
}).then(response => {
|
||||
this.download(response.msg);
|
||||
}).catch(function() {});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
@ -26,26 +26,15 @@
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="考核开始时间" prop="starttime">
|
||||
<el-form-item label="考核方案年份" prop="khnf">
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="queryParams.starttime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择考核开始时间"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="考核结束时间" prop="endtime">
|
||||
<el-date-picker
|
||||
clearable
|
||||
size="small"
|
||||
style="width: 200px"
|
||||
v-model="queryParams.endtime"
|
||||
type="date"
|
||||
value-format="yyyy-MM-dd"
|
||||
placeholder="选择考核结束时间"
|
||||
v-model="queryParams.khnf"
|
||||
type="year"
|
||||
value-format="yyyy"
|
||||
placeholder="选择考核方案年份"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<!-- <el-form-item label="考核年份" prop="khnf">
|
||||
@ -97,7 +86,7 @@
|
||||
|
||||
<el-table v-loading="loading" :data="jxzxkhfaList" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<el-table-column label="编号" align="center" prop="id" />
|
||||
<!-- <el-table-column label="编号" align="center" prop="id" /> -->
|
||||
<el-table-column label="考核方案名称" align="center" prop="name" :show-overflow-tooltip="true">
|
||||
<template slot-scope="scope">
|
||||
<router-link :to="'/jxzxkhgl/jxzxkhfa/data/' + scope.row.id" class="link-type">
|
||||
@ -106,6 +95,7 @@
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="考核方案状态" align="center" prop="status" :formatter="statusFormat" />
|
||||
<el-table-column label="考核方案年份" align="center" prop="khnf" />
|
||||
<el-table-column label="考核开始时间" align="center" prop="starttime" width="180">
|
||||
<template slot-scope="scope">
|
||||
<span>{{ parseTime(scope.row.starttime, '{y}-{m}-{d}') }}</span>
|
||||
@ -116,6 +106,7 @@
|
||||
<span>{{ parseTime(scope.row.endtime, '{y}-{m}-{d}') }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="考核文件" align="center" prop="filename" />
|
||||
<!-- <el-table-column label="考核文件名称" align="center" prop="filename" />
|
||||
<el-table-column label="文件路径" align="center" prop="filepath" />
|
||||
<el-table-column label="考核年份" align="center" prop="khnf" width="180">
|
||||
@ -177,6 +168,7 @@
|
||||
type="year"
|
||||
value-format="yyyy"
|
||||
placeholder="选择考核年份"
|
||||
:disabled="isEdit"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="考核开始时间" prop="starttime">
|
||||
@ -201,10 +193,11 @@
|
||||
placeholder="选择考核结束时间"
|
||||
></el-date-picker>
|
||||
</el-form-item>
|
||||
<el-form-item label="考核文件名称" prop="filename">
|
||||
<!-- <el-form-item label="考核文件名称" prop="filename">
|
||||
<el-input v-model="form.filename" placeholder="请输入考核文件名称" />
|
||||
</el-form-item>
|
||||
</el-form-item>-->
|
||||
<el-form-item label="考核文件" prop="filepath">
|
||||
<el-input v-model="form.filename" v-if="false" />
|
||||
<el-input v-model="form.filepath" v-if="false" />
|
||||
<el-upload
|
||||
class="upload-demo"
|
||||
@ -221,6 +214,9 @@
|
||||
<el-button size="small" type="primary">选择文件</el-button>
|
||||
</el-upload>
|
||||
</el-form-item>
|
||||
<el-form-item label="备注" prop="remark">
|
||||
<el-input v-model="form.remark" type="textarea" placeholder="请输入备注" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
<div slot="footer" class="dialog-footer">
|
||||
<el-button type="primary" @click="submitForm">确 定</el-button>
|
||||
@ -244,6 +240,8 @@ export default {
|
||||
name: "Jxzxkhfa",
|
||||
data() {
|
||||
return {
|
||||
//是否可以修改
|
||||
isEdit: false,
|
||||
// 遮罩层
|
||||
loading: true,
|
||||
// 选中数组
|
||||
@ -383,6 +381,7 @@ export default {
|
||||
khnf: null,
|
||||
createuserid: null,
|
||||
createTime: null,
|
||||
remark: null,
|
||||
};
|
||||
this.resetForm("form");
|
||||
this.fileList = [];
|
||||
@ -408,12 +407,14 @@ export default {
|
||||
this.reset();
|
||||
this.open = true;
|
||||
this.title = "添加见习之星考核方案";
|
||||
this.isEdit = false;
|
||||
},
|
||||
/** 修改按钮操作 */
|
||||
handleUpdate(row) {
|
||||
this.reset();
|
||||
const id = row.id || this.ids;
|
||||
getJxzxkhfa(id).then((response) => {
|
||||
this.isEdit = true;
|
||||
this.form = response.data;
|
||||
this.open = true;
|
||||
this.title = "修改见习之星考核方案";
|
||||
@ -450,15 +451,11 @@ export default {
|
||||
/** 删除按钮操作 */
|
||||
handleDelete(row) {
|
||||
const ids = row.id || this.ids;
|
||||
this.$confirm(
|
||||
'是否确认删除见习之星考核方案编号为"' + ids + '"的数据项?',
|
||||
"警告",
|
||||
{
|
||||
this.$confirm("是否确认删除见习之星考核方案数据项?", "警告", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning",
|
||||
}
|
||||
)
|
||||
})
|
||||
.then(function () {
|
||||
return delJxzxkhfa(ids);
|
||||
})
|
||||
|
@ -17,18 +17,19 @@
|
||||
/>
|
||||
</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 label="基地学校" prop="jdxid">
|
||||
<el-select v-model="queryParams.jdxid" size="small">
|
||||
<el-option
|
||||
v-for="item in jdxOptions"
|
||||
:key="item.id"
|
||||
:label="item.jdxmc"
|
||||
:value="item.id"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item label="选择教师" prop="jsid">
|
||||
<el-form-item label="见习教师" prop="name">
|
||||
<el-input
|
||||
v-model="queryParams.jsid"
|
||||
v-model="queryParams.name"
|
||||
placeholder="请输入教师"
|
||||
clearable
|
||||
size="small"
|
||||
@ -44,10 +45,19 @@
|
||||
<el-table v-loading="loading" :data="jzxzkhjdList">
|
||||
<el-table-column type="selection" width="55" align="center" />
|
||||
<!-- <el-table-column label="编号" align="center" prop="id" /> -->
|
||||
<el-table-column label="基地校" align="center" prop="tsbzJxjsjbxx.jdxid" :formatter="jdxFormat"/>
|
||||
<el-table-column label="聘任校" align="center" prop="tsbzJxjsjbxx.prdwmc" />
|
||||
<el-table-column label="姓名" align="center" prop="tsbzJxjsjbxx.name" />
|
||||
<el-table-column label="任教学科" align="center" prop="tsbzJxjsjbxx.rjxk" />
|
||||
<el-table-column label="任教学段" align="center" prop="tsbzJxjsjbxx.rjxd" />
|
||||
<el-table-column prop="bfb" label="完成进度">
|
||||
<template slot-scope="scope">
|
||||
<el-progress :text-inside="true" :stroke-width="24" :percentage="scope.row.bfb*100" status="success"></el-progress>
|
||||
<el-progress
|
||||
:text-inside="true"
|
||||
:stroke-width="24"
|
||||
:percentage="scope.row.bfb*100"
|
||||
status="success"
|
||||
></el-progress>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
||||
@ -56,8 +66,8 @@
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-view"
|
||||
@click="handleUpdate(scope.row)"
|
||||
v-hasPermi="['jxzxkhgl:statistics:edit']"
|
||||
@click="handleView(scope.row)"
|
||||
v-hasPermi="['jxzxkhgl:statistics:query']"
|
||||
>详情</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -83,6 +93,7 @@
|
||||
<script>
|
||||
import { listJxzxKhjd, getJxzxKhjd } from "@/api/jxzxkhgl/statistics";
|
||||
import { listJxzxkhfa, getJxzxkhfa } from "@/api/jxzxkhgl/jxzxkhfa";
|
||||
import { listJdx } from "@/api/jxjs/jdx";
|
||||
|
||||
export default {
|
||||
name: "Jzxzkhjd",
|
||||
@ -108,6 +119,8 @@ export default {
|
||||
jzxzkhjdList: [],
|
||||
//考核方案
|
||||
jxzxkhfaOptions: [],
|
||||
//基地校列表
|
||||
jdxOptions: [],
|
||||
// 弹出层标题
|
||||
title: "",
|
||||
// 是否显示弹出层
|
||||
@ -116,8 +129,10 @@ export default {
|
||||
queryParams: {
|
||||
pageNum: 1,
|
||||
pageSize: 10,
|
||||
jdxid: null,
|
||||
faid: null,
|
||||
nf: null,
|
||||
name: null,
|
||||
},
|
||||
// 查询参数
|
||||
queryParams_fa: {
|
||||
@ -130,9 +145,29 @@ export default {
|
||||
};
|
||||
},
|
||||
created() {
|
||||
this.getJdxList();
|
||||
this.getKhfa();
|
||||
},
|
||||
methods: {
|
||||
//翻译基地校
|
||||
jdxFormat(row, column) {
|
||||
// return this.selectDictLabel(this.classOptions, row.classid);
|
||||
var actions = [];
|
||||
var datas = this.jdxOptions;
|
||||
Object.keys(datas).map((key) => {
|
||||
if (datas[key].id == "" + row.tsbzJxjsjbxx.jdxid) {
|
||||
actions.push(datas[key].jdxmc);
|
||||
return false;
|
||||
}
|
||||
});
|
||||
return actions.join("");
|
||||
},
|
||||
//获取基地校列表
|
||||
getJdxList() {
|
||||
listJdx(null).then((response) => {
|
||||
this.jdxOptions = response.rows;
|
||||
});
|
||||
},
|
||||
/** 查询考核审核过程列表 */
|
||||
getList() {
|
||||
this.loading = true;
|
||||
|
Reference in New Issue
Block a user