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