添加实习实践对接功能
This commit is contained in:
parent
32bfcc1dd6
commit
8ce971a6fb
|
@ -0,0 +1,178 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePalnTimeTask;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.service.IShangbaoPracticePalnTimeTaskService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划子分类及上传数要求
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="实践计划子分类及上传数要求")
|
||||
@RestController
|
||||
@RequestMapping("/shangbaoPracticePaln/shangbaoPracticePalnTimeTask")
|
||||
@Slf4j
|
||||
public class ShangbaoPracticePalnTimeTaskController extends JeecgController<ShangbaoPracticePalnTimeTask, IShangbaoPracticePalnTimeTaskService> {
|
||||
@Autowired
|
||||
private IShangbaoPracticePalnTimeTaskService shangbaoPracticePalnTimeTaskService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param shangbaoPracticePalnTimeTask
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "实践计划子分类及上传数要求-分页列表查询")
|
||||
@ApiOperation(value="实践计划子分类及上传数要求-分页列表查询", notes="实践计划子分类及上传数要求-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<ShangbaoPracticePalnTimeTask>> queryPageList(ShangbaoPracticePalnTimeTask shangbaoPracticePalnTimeTask,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<ShangbaoPracticePalnTimeTask> queryWrapper = QueryGenerator.initQueryWrapper(shangbaoPracticePalnTimeTask, req.getParameterMap());
|
||||
Page<ShangbaoPracticePalnTimeTask> page = new Page<ShangbaoPracticePalnTimeTask>(pageNo, pageSize);
|
||||
IPage<ShangbaoPracticePalnTimeTask> pageList = shangbaoPracticePalnTimeTaskService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param shangbaoPracticePalnTimeTask
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划子分类及上传数要求-添加")
|
||||
@ApiOperation(value="实践计划子分类及上传数要求-添加", notes="实践计划子分类及上传数要求-添加")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_time_task:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody ShangbaoPracticePalnTimeTask shangbaoPracticePalnTimeTask) {
|
||||
shangbaoPracticePalnTimeTaskService.save(shangbaoPracticePalnTimeTask);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param shangbaoPracticePalnTimeTask
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划子分类及上传数要求-编辑")
|
||||
@ApiOperation(value="实践计划子分类及上传数要求-编辑", notes="实践计划子分类及上传数要求-编辑")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_time_task:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody ShangbaoPracticePalnTimeTask shangbaoPracticePalnTimeTask) {
|
||||
shangbaoPracticePalnTimeTaskService.updateById(shangbaoPracticePalnTimeTask);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划子分类及上传数要求-通过id删除")
|
||||
@ApiOperation(value="实践计划子分类及上传数要求-通过id删除", notes="实践计划子分类及上传数要求-通过id删除")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_time_task:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
shangbaoPracticePalnTimeTaskService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划子分类及上传数要求-批量删除")
|
||||
@ApiOperation(value="实践计划子分类及上传数要求-批量删除", notes="实践计划子分类及上传数要求-批量删除")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_time_task:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.shangbaoPracticePalnTimeTaskService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "实践计划子分类及上传数要求-通过id查询")
|
||||
@ApiOperation(value="实践计划子分类及上传数要求-通过id查询", notes="实践计划子分类及上传数要求-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<ShangbaoPracticePalnTimeTask> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
ShangbaoPracticePalnTimeTask shangbaoPracticePalnTimeTask = shangbaoPracticePalnTimeTaskService.getById(id);
|
||||
if(shangbaoPracticePalnTimeTask==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(shangbaoPracticePalnTimeTask);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param shangbaoPracticePalnTimeTask
|
||||
*/
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_time_task:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ShangbaoPracticePalnTimeTask shangbaoPracticePalnTimeTask) {
|
||||
return super.exportXls(request, shangbaoPracticePalnTimeTask, ShangbaoPracticePalnTimeTask.class, "实践计划子分类及上传数要求");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_time_task:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, ShangbaoPracticePalnTimeTask.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,178 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePalnUser;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.service.IShangbaoPracticePalnUserService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划学生表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="实践计划学生表")
|
||||
@RestController
|
||||
@RequestMapping("/shangbaoPracticePaln/shangbaoPracticePalnUser")
|
||||
@Slf4j
|
||||
public class ShangbaoPracticePalnUserController extends JeecgController<ShangbaoPracticePalnUser, IShangbaoPracticePalnUserService> {
|
||||
@Autowired
|
||||
private IShangbaoPracticePalnUserService shangbaoPracticePalnUserService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param shangbaoPracticePalnUser
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "实践计划学生表-分页列表查询")
|
||||
@ApiOperation(value="实践计划学生表-分页列表查询", notes="实践计划学生表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<ShangbaoPracticePalnUser>> queryPageList(ShangbaoPracticePalnUser shangbaoPracticePalnUser,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<ShangbaoPracticePalnUser> queryWrapper = QueryGenerator.initQueryWrapper(shangbaoPracticePalnUser, req.getParameterMap());
|
||||
Page<ShangbaoPracticePalnUser> page = new Page<ShangbaoPracticePalnUser>(pageNo, pageSize);
|
||||
IPage<ShangbaoPracticePalnUser> pageList = shangbaoPracticePalnUserService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param shangbaoPracticePalnUser
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划学生表-添加")
|
||||
@ApiOperation(value="实践计划学生表-添加", notes="实践计划学生表-添加")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody ShangbaoPracticePalnUser shangbaoPracticePalnUser) {
|
||||
shangbaoPracticePalnUserService.save(shangbaoPracticePalnUser);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param shangbaoPracticePalnUser
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划学生表-编辑")
|
||||
@ApiOperation(value="实践计划学生表-编辑", notes="实践计划学生表-编辑")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody ShangbaoPracticePalnUser shangbaoPracticePalnUser) {
|
||||
shangbaoPracticePalnUserService.updateById(shangbaoPracticePalnUser);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划学生表-通过id删除")
|
||||
@ApiOperation(value="实践计划学生表-通过id删除", notes="实践计划学生表-通过id删除")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
shangbaoPracticePalnUserService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划学生表-批量删除")
|
||||
@ApiOperation(value="实践计划学生表-批量删除", notes="实践计划学生表-批量删除")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.shangbaoPracticePalnUserService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "实践计划学生表-通过id查询")
|
||||
@ApiOperation(value="实践计划学生表-通过id查询", notes="实践计划学生表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<ShangbaoPracticePalnUser> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
ShangbaoPracticePalnUser shangbaoPracticePalnUser = shangbaoPracticePalnUserService.getById(id);
|
||||
if(shangbaoPracticePalnUser==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(shangbaoPracticePalnUser);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param shangbaoPracticePalnUser
|
||||
*/
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ShangbaoPracticePalnUser shangbaoPracticePalnUser) {
|
||||
return super.exportXls(request, shangbaoPracticePalnUser, ShangbaoPracticePalnUser.class, "实践计划学生表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, ShangbaoPracticePalnUser.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,178 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePalnUserResCount;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.service.IShangbaoPracticePalnUserResCountService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划学生上传数表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="实践计划学生上传数表")
|
||||
@RestController
|
||||
@RequestMapping("/shangbaoPracticePaln/shangbaoPracticePalnUserResCount")
|
||||
@Slf4j
|
||||
public class ShangbaoPracticePalnUserResCountController extends JeecgController<ShangbaoPracticePalnUserResCount, IShangbaoPracticePalnUserResCountService> {
|
||||
@Autowired
|
||||
private IShangbaoPracticePalnUserResCountService shangbaoPracticePalnUserResCountService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param shangbaoPracticePalnUserResCount
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "实践计划学生上传数表-分页列表查询")
|
||||
@ApiOperation(value="实践计划学生上传数表-分页列表查询", notes="实践计划学生上传数表-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<ShangbaoPracticePalnUserResCount>> queryPageList(ShangbaoPracticePalnUserResCount shangbaoPracticePalnUserResCount,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<ShangbaoPracticePalnUserResCount> queryWrapper = QueryGenerator.initQueryWrapper(shangbaoPracticePalnUserResCount, req.getParameterMap());
|
||||
Page<ShangbaoPracticePalnUserResCount> page = new Page<ShangbaoPracticePalnUserResCount>(pageNo, pageSize);
|
||||
IPage<ShangbaoPracticePalnUserResCount> pageList = shangbaoPracticePalnUserResCountService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param shangbaoPracticePalnUserResCount
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划学生上传数表-添加")
|
||||
@ApiOperation(value="实践计划学生上传数表-添加", notes="实践计划学生上传数表-添加")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user_res_count:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody ShangbaoPracticePalnUserResCount shangbaoPracticePalnUserResCount) {
|
||||
shangbaoPracticePalnUserResCountService.save(shangbaoPracticePalnUserResCount);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param shangbaoPracticePalnUserResCount
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划学生上传数表-编辑")
|
||||
@ApiOperation(value="实践计划学生上传数表-编辑", notes="实践计划学生上传数表-编辑")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user_res_count:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody ShangbaoPracticePalnUserResCount shangbaoPracticePalnUserResCount) {
|
||||
shangbaoPracticePalnUserResCountService.updateById(shangbaoPracticePalnUserResCount);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划学生上传数表-通过id删除")
|
||||
@ApiOperation(value="实践计划学生上传数表-通过id删除", notes="实践计划学生上传数表-通过id删除")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user_res_count:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
shangbaoPracticePalnUserResCountService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划学生上传数表-批量删除")
|
||||
@ApiOperation(value="实践计划学生上传数表-批量删除", notes="实践计划学生上传数表-批量删除")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user_res_count:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.shangbaoPracticePalnUserResCountService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "实践计划学生上传数表-通过id查询")
|
||||
@ApiOperation(value="实践计划学生上传数表-通过id查询", notes="实践计划学生上传数表-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<ShangbaoPracticePalnUserResCount> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
ShangbaoPracticePalnUserResCount shangbaoPracticePalnUserResCount = shangbaoPracticePalnUserResCountService.getById(id);
|
||||
if(shangbaoPracticePalnUserResCount==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(shangbaoPracticePalnUserResCount);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param shangbaoPracticePalnUserResCount
|
||||
*/
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user_res_count:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ShangbaoPracticePalnUserResCount shangbaoPracticePalnUserResCount) {
|
||||
return super.exportXls(request, shangbaoPracticePalnUserResCount, ShangbaoPracticePalnUserResCount.class, "实践计划学生上传数表");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user_res_count:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, ShangbaoPracticePalnUserResCount.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,178 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePalnUserResDetail;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.service.IShangbaoPracticePalnUserResDetailService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 学生上传资源明细
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="学生上传资源明细")
|
||||
@RestController
|
||||
@RequestMapping("/shangbaoPracticePaln/shangbaoPracticePalnUserResDetail")
|
||||
@Slf4j
|
||||
public class ShangbaoPracticePalnUserResDetailController extends JeecgController<ShangbaoPracticePalnUserResDetail, IShangbaoPracticePalnUserResDetailService> {
|
||||
@Autowired
|
||||
private IShangbaoPracticePalnUserResDetailService shangbaoPracticePalnUserResDetailService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param shangbaoPracticePalnUserResDetail
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "学生上传资源明细-分页列表查询")
|
||||
@ApiOperation(value="学生上传资源明细-分页列表查询", notes="学生上传资源明细-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<ShangbaoPracticePalnUserResDetail>> queryPageList(ShangbaoPracticePalnUserResDetail shangbaoPracticePalnUserResDetail,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<ShangbaoPracticePalnUserResDetail> queryWrapper = QueryGenerator.initQueryWrapper(shangbaoPracticePalnUserResDetail, req.getParameterMap());
|
||||
Page<ShangbaoPracticePalnUserResDetail> page = new Page<ShangbaoPracticePalnUserResDetail>(pageNo, pageSize);
|
||||
IPage<ShangbaoPracticePalnUserResDetail> pageList = shangbaoPracticePalnUserResDetailService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param shangbaoPracticePalnUserResDetail
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "学生上传资源明细-添加")
|
||||
@ApiOperation(value="学生上传资源明细-添加", notes="学生上传资源明细-添加")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user_res_detail:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody ShangbaoPracticePalnUserResDetail shangbaoPracticePalnUserResDetail) {
|
||||
shangbaoPracticePalnUserResDetailService.save(shangbaoPracticePalnUserResDetail);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param shangbaoPracticePalnUserResDetail
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "学生上传资源明细-编辑")
|
||||
@ApiOperation(value="学生上传资源明细-编辑", notes="学生上传资源明细-编辑")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user_res_detail:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody ShangbaoPracticePalnUserResDetail shangbaoPracticePalnUserResDetail) {
|
||||
shangbaoPracticePalnUserResDetailService.updateById(shangbaoPracticePalnUserResDetail);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "学生上传资源明细-通过id删除")
|
||||
@ApiOperation(value="学生上传资源明细-通过id删除", notes="学生上传资源明细-通过id删除")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user_res_detail:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
shangbaoPracticePalnUserResDetailService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "学生上传资源明细-批量删除")
|
||||
@ApiOperation(value="学生上传资源明细-批量删除", notes="学生上传资源明细-批量删除")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user_res_detail:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.shangbaoPracticePalnUserResDetailService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "学生上传资源明细-通过id查询")
|
||||
@ApiOperation(value="学生上传资源明细-通过id查询", notes="学生上传资源明细-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<ShangbaoPracticePalnUserResDetail> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
ShangbaoPracticePalnUserResDetail shangbaoPracticePalnUserResDetail = shangbaoPracticePalnUserResDetailService.getById(id);
|
||||
if(shangbaoPracticePalnUserResDetail==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(shangbaoPracticePalnUserResDetail);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param shangbaoPracticePalnUserResDetail
|
||||
*/
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user_res_detail:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ShangbaoPracticePalnUserResDetail shangbaoPracticePalnUserResDetail) {
|
||||
return super.exportXls(request, shangbaoPracticePalnUserResDetail, ShangbaoPracticePalnUserResDetail.class, "学生上传资源明细");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_paln_user_res_detail:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, ShangbaoPracticePalnUserResDetail.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,178 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePlanInfo;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.service.IShangbaoPracticePlanInfoService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划清单
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="实践计划清单")
|
||||
@RestController
|
||||
@RequestMapping("/shangbaoPracticePaln/shangbaoPracticePlanInfo")
|
||||
@Slf4j
|
||||
public class ShangbaoPracticePlanInfoController extends JeecgController<ShangbaoPracticePlanInfo, IShangbaoPracticePlanInfoService> {
|
||||
@Autowired
|
||||
private IShangbaoPracticePlanInfoService shangbaoPracticePlanInfoService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param shangbaoPracticePlanInfo
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "实践计划清单-分页列表查询")
|
||||
@ApiOperation(value="实践计划清单-分页列表查询", notes="实践计划清单-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<ShangbaoPracticePlanInfo>> queryPageList(ShangbaoPracticePlanInfo shangbaoPracticePlanInfo,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<ShangbaoPracticePlanInfo> queryWrapper = QueryGenerator.initQueryWrapper(shangbaoPracticePlanInfo, req.getParameterMap());
|
||||
Page<ShangbaoPracticePlanInfo> page = new Page<ShangbaoPracticePlanInfo>(pageNo, pageSize);
|
||||
IPage<ShangbaoPracticePlanInfo> pageList = shangbaoPracticePlanInfoService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param shangbaoPracticePlanInfo
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划清单-添加")
|
||||
@ApiOperation(value="实践计划清单-添加", notes="实践计划清单-添加")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_plan_info:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody ShangbaoPracticePlanInfo shangbaoPracticePlanInfo) {
|
||||
shangbaoPracticePlanInfoService.save(shangbaoPracticePlanInfo);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param shangbaoPracticePlanInfo
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划清单-编辑")
|
||||
@ApiOperation(value="实践计划清单-编辑", notes="实践计划清单-编辑")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_plan_info:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody ShangbaoPracticePlanInfo shangbaoPracticePlanInfo) {
|
||||
shangbaoPracticePlanInfoService.updateById(shangbaoPracticePlanInfo);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划清单-通过id删除")
|
||||
@ApiOperation(value="实践计划清单-通过id删除", notes="实践计划清单-通过id删除")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_plan_info:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
shangbaoPracticePlanInfoService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划清单-批量删除")
|
||||
@ApiOperation(value="实践计划清单-批量删除", notes="实践计划清单-批量删除")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_plan_info:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.shangbaoPracticePlanInfoService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "实践计划清单-通过id查询")
|
||||
@ApiOperation(value="实践计划清单-通过id查询", notes="实践计划清单-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<ShangbaoPracticePlanInfo> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
ShangbaoPracticePlanInfo shangbaoPracticePlanInfo = shangbaoPracticePlanInfoService.getById(id);
|
||||
if(shangbaoPracticePlanInfo==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(shangbaoPracticePlanInfo);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param shangbaoPracticePlanInfo
|
||||
*/
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_plan_info:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ShangbaoPracticePlanInfo shangbaoPracticePlanInfo) {
|
||||
return super.exportXls(request, shangbaoPracticePlanInfo, ShangbaoPracticePlanInfo.class, "实践计划清单");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_plan_info:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, ShangbaoPracticePlanInfo.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,239 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.system.vo.LoginUser;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePlanInfoXz;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.service.IShangbaoPracticePlanInfoXzService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecg.modules.demo.zjSqxx.entity.ZjSqxx;
|
||||
import org.jeecg.modules.demo.zjSqxx.service.IZjSqxxService;
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 专家选择的实习实践考核材料
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="专家选择的实习实践考核材料")
|
||||
@RestController
|
||||
@RequestMapping("/shangbaoPracticePaln/shangbaoPracticePlanInfoXz")
|
||||
@Slf4j
|
||||
public class ShangbaoPracticePlanInfoXzController extends JeecgController<ShangbaoPracticePlanInfoXz, IShangbaoPracticePlanInfoXzService> {
|
||||
@Autowired
|
||||
private IShangbaoPracticePlanInfoXzService shangbaoPracticePlanInfoXzService;
|
||||
|
||||
@Autowired
|
||||
private IZjSqxxService zjSqxxService;
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param shangbaoPracticePlanInfoXz
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "专家选择的实习实践考核材料-分页列表查询")
|
||||
@ApiOperation(value="专家选择的实习实践考核材料-分页列表查询", notes="专家选择的实习实践考核材料-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<ShangbaoPracticePlanInfoXz>> queryPageList(ShangbaoPracticePlanInfoXz shangbaoPracticePlanInfoXz,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<ShangbaoPracticePlanInfoXz> queryWrapper = QueryGenerator.initQueryWrapper(shangbaoPracticePlanInfoXz, req.getParameterMap());
|
||||
Page<ShangbaoPracticePlanInfoXz> page = new Page<ShangbaoPracticePlanInfoXz>(pageNo, pageSize);
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
queryWrapper.eq("create_by",sysUser.getUsername());
|
||||
IPage<ShangbaoPracticePlanInfoXz> pageList = shangbaoPracticePlanInfoXzService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param shangbaoPracticePlanInfoXz
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "专家选择的实习实践考核材料-添加")
|
||||
@ApiOperation(value="专家选择的实习实践考核材料-添加", notes="专家选择的实习实践考核材料-添加")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody ShangbaoPracticePlanInfoXz shangbaoPracticePlanInfoXz) {
|
||||
shangbaoPracticePlanInfoXzService.save(shangbaoPracticePlanInfoXz);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param shangbaoPracticePlanInfoXz
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "专家选择的实习实践考核材料-编辑")
|
||||
@ApiOperation(value="专家选择的实习实践考核材料-编辑", notes="专家选择的实习实践考核材料-编辑")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_plan_info_xz:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody ShangbaoPracticePlanInfoXz shangbaoPracticePlanInfoXz) {
|
||||
shangbaoPracticePlanInfoXzService.updateById(shangbaoPracticePlanInfoXz);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "专家选择的实习实践考核材料-通过id删除")
|
||||
@ApiOperation(value="专家选择的实习实践考核材料-通过id删除", notes="专家选择的实习实践考核材料-通过id删除")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
shangbaoPracticePlanInfoXzService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "专家选择的实习实践考核材料-批量删除")
|
||||
@ApiOperation(value="专家选择的实习实践考核材料-批量删除", notes="专家选择的实习实践考核材料-批量删除")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.shangbaoPracticePlanInfoXzService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "专家选择的实习实践考核材料-通过id查询")
|
||||
@ApiOperation(value="专家选择的实习实践考核材料-通过id查询", notes="专家选择的实习实践考核材料-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<ShangbaoPracticePlanInfoXz> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
ShangbaoPracticePlanInfoXz shangbaoPracticePlanInfoXz = shangbaoPracticePlanInfoXzService.getById(id);
|
||||
if(shangbaoPracticePlanInfoXz==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(shangbaoPracticePlanInfoXz);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param shangbaoPracticePlanInfoXz
|
||||
*/
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_plan_info_xz:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ShangbaoPracticePlanInfoXz shangbaoPracticePlanInfoXz) {
|
||||
return super.exportXls(request, shangbaoPracticePlanInfoXz, ShangbaoPracticePlanInfoXz.class, "专家选择的实习实践考核材料");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_plan_info_xz:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, ShangbaoPracticePlanInfoXz.class);
|
||||
}
|
||||
|
||||
|
||||
@ApiOperation(value="专家可以选择的实习实践考核材料-分页列表查询", notes="专家选择的实习实践考核材料-分页列表查询")
|
||||
@GetMapping(value = "/getZjList")
|
||||
public Result<IPage<ShangbaoPracticePlanInfoXz>> getZjList(ShangbaoPracticePlanInfoXz shangbaoPracticePlanInfoXz,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
Page<ShangbaoPracticePlanInfoXz> page = new Page<ShangbaoPracticePlanInfoXz>(pageNo, pageSize);
|
||||
shangbaoPracticePlanInfoXz.setCreateBy(sysUser.getUsername());
|
||||
QueryWrapper<ZjSqxx> zjSqxxQueryWrapper = new QueryWrapper<>();
|
||||
zjSqxxQueryWrapper.eq("user_id",sysUser.getId());
|
||||
zjSqxxQueryWrapper.eq("sqfw","3");
|
||||
zjSqxxQueryWrapper.eq("sqzt","0");
|
||||
ZjSqxx zjSqxx = zjSqxxService.getOne(zjSqxxQueryWrapper);
|
||||
String sfjx = "0";
|
||||
String xnxq = "0";
|
||||
if(zjSqxx!=null){
|
||||
Date date = new Date();
|
||||
if(zjSqxx.getSqStartTime()!=null&&zjSqxx.getSqStartTime().getTime()>=date.getTime()){
|
||||
sfjx = "1";
|
||||
}
|
||||
if(zjSqxx.getSqEndTime()!=null&&zjSqxx.getSqEndTime().getTime()<=date.getTime()){
|
||||
sfjx = "1";
|
||||
}
|
||||
if(StringUtils.isNotBlank(zjSqxx.getXnxq())){
|
||||
shangbaoPracticePlanInfoXz.setPlanYear(zjSqxx.getXnxq());
|
||||
// queryWrapper.in("concat(xn,xqmc)",zjSqxx.getXnxq().split(","));
|
||||
}
|
||||
if(StringUtils.isNotBlank(zjSqxx.getKkdw())){
|
||||
String sqlParams = "(";
|
||||
int i=0;
|
||||
for(String ta : zjSqxx.getKkdw().split(",")){
|
||||
if(i==0){
|
||||
sqlParams = sqlParams + " FIND_IN_SET('"+ta+"',c.org_name) ";
|
||||
}else{
|
||||
sqlParams = sqlParams + " or FIND_IN_SET('"+ta+"',c.org_name) ";
|
||||
}
|
||||
i++;
|
||||
}
|
||||
sqlParams = sqlParams + ")";
|
||||
shangbaoPracticePlanInfoXz.setOrgName(sqlParams);
|
||||
}
|
||||
|
||||
}
|
||||
if(StringUtils.equals("1",sfjx)){
|
||||
return Result.error("您未在授权期限内,不能进行查询!");
|
||||
}
|
||||
|
||||
IPage<ShangbaoPracticePlanInfoXz> pageList = shangbaoPracticePlanInfoXzService.getZjList(page, shangbaoPracticePlanInfoXz);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,178 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.controller;
|
||||
|
||||
import java.util.Arrays;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.stream.Collectors;
|
||||
import java.io.IOException;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.net.URLDecoder;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePlanOrg;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.service.IShangbaoPracticePlanOrgService;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
|
||||
import org.jeecgframework.poi.excel.ExcelImportUtil;
|
||||
import org.jeecgframework.poi.excel.def.NormalExcelConstants;
|
||||
import org.jeecgframework.poi.excel.entity.ExportParams;
|
||||
import org.jeecgframework.poi.excel.entity.ImportParams;
|
||||
import org.jeecgframework.poi.excel.view.JeecgEntityExcelView;
|
||||
import org.jeecg.common.system.base.controller.JeecgController;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
import org.springframework.web.multipart.MultipartHttpServletRequest;
|
||||
import org.springframework.web.servlet.ModelAndView;
|
||||
import com.alibaba.fastjson.JSON;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.jeecg.common.aspect.annotation.AutoLog;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划学院关联关系
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-18
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="实践计划学院关联关系")
|
||||
@RestController
|
||||
@RequestMapping("/shangbaoPracticePaln/shangbaoPracticePlanOrg")
|
||||
@Slf4j
|
||||
public class ShangbaoPracticePlanOrgController extends JeecgController<ShangbaoPracticePlanOrg, IShangbaoPracticePlanOrgService> {
|
||||
@Autowired
|
||||
private IShangbaoPracticePlanOrgService shangbaoPracticePlanOrgService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param shangbaoPracticePlanOrg
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "实践计划学院关联关系-分页列表查询")
|
||||
@ApiOperation(value="实践计划学院关联关系-分页列表查询", notes="实践计划学院关联关系-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<ShangbaoPracticePlanOrg>> queryPageList(ShangbaoPracticePlanOrg shangbaoPracticePlanOrg,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<ShangbaoPracticePlanOrg> queryWrapper = QueryGenerator.initQueryWrapper(shangbaoPracticePlanOrg, req.getParameterMap());
|
||||
Page<ShangbaoPracticePlanOrg> page = new Page<ShangbaoPracticePlanOrg>(pageNo, pageSize);
|
||||
IPage<ShangbaoPracticePlanOrg> pageList = shangbaoPracticePlanOrgService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param shangbaoPracticePlanOrg
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划学院关联关系-添加")
|
||||
@ApiOperation(value="实践计划学院关联关系-添加", notes="实践计划学院关联关系-添加")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_plan_org:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody ShangbaoPracticePlanOrg shangbaoPracticePlanOrg) {
|
||||
shangbaoPracticePlanOrgService.save(shangbaoPracticePlanOrg);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param shangbaoPracticePlanOrg
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划学院关联关系-编辑")
|
||||
@ApiOperation(value="实践计划学院关联关系-编辑", notes="实践计划学院关联关系-编辑")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_plan_org:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody ShangbaoPracticePlanOrg shangbaoPracticePlanOrg) {
|
||||
shangbaoPracticePlanOrgService.updateById(shangbaoPracticePlanOrg);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划学院关联关系-通过id删除")
|
||||
@ApiOperation(value="实践计划学院关联关系-通过id删除", notes="实践计划学院关联关系-通过id删除")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_plan_org:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
shangbaoPracticePlanOrgService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "实践计划学院关联关系-批量删除")
|
||||
@ApiOperation(value="实践计划学院关联关系-批量删除", notes="实践计划学院关联关系-批量删除")
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_plan_org:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.shangbaoPracticePlanOrgService.removeByIds(Arrays.asList(ids.split(",")));
|
||||
return Result.OK("批量删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id查询
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "实践计划学院关联关系-通过id查询")
|
||||
@ApiOperation(value="实践计划学院关联关系-通过id查询", notes="实践计划学院关联关系-通过id查询")
|
||||
@GetMapping(value = "/queryById")
|
||||
public Result<ShangbaoPracticePlanOrg> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
ShangbaoPracticePlanOrg shangbaoPracticePlanOrg = shangbaoPracticePlanOrgService.getById(id);
|
||||
if(shangbaoPracticePlanOrg==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(shangbaoPracticePlanOrg);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param shangbaoPracticePlanOrg
|
||||
*/
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_plan_org:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, ShangbaoPracticePlanOrg shangbaoPracticePlanOrg) {
|
||||
return super.exportXls(request, shangbaoPracticePlanOrg, ShangbaoPracticePlanOrg.class, "实践计划学院关联关系");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("shangbaoPracticePaln:shangbao_practice_plan_org:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, ShangbaoPracticePlanOrg.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,87 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划子分类及上传数要求
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("shangbao_practice_paln_time_task")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="shangbao_practice_paln_time_task对象", description="实践计划子分类及上传数要求")
|
||||
public class ShangbaoPracticePalnTimeTask implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private java.lang.Integer id;
|
||||
/**实践计划id*/
|
||||
@Excel(name = "实践计划id", width = 15)
|
||||
@ApiModelProperty(value = "实践计划id")
|
||||
private java.lang.String planId;
|
||||
/**实践计划名称*/
|
||||
@Excel(name = "实践计划名称", width = 15)
|
||||
@ApiModelProperty(value = "实践计划名称")
|
||||
private java.lang.String planName;
|
||||
/**类型*/
|
||||
@Excel(name = "类型", width = 15)
|
||||
@ApiModelProperty(value = "类型")
|
||||
private java.lang.String planTypeName;
|
||||
/**阶段id*/
|
||||
@Excel(name = "阶段id", width = 15)
|
||||
@ApiModelProperty(value = "阶段id")
|
||||
private java.lang.String stepId;
|
||||
/**阶段名称*/
|
||||
@Excel(name = "阶段名称", width = 15)
|
||||
@ApiModelProperty(value = "阶段名称")
|
||||
private java.lang.String stepName;
|
||||
/**阶段开始时间*/
|
||||
@Excel(name = "阶段开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "阶段开始时间")
|
||||
private java.util.Date stepStartTime;
|
||||
/**阶段结束时间*/
|
||||
@Excel(name = "阶段结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "阶段结束时间")
|
||||
private java.util.Date stepEndTime;
|
||||
/**子分类id*/
|
||||
@Excel(name = "子分类id", width = 15)
|
||||
@ApiModelProperty(value = "子分类id")
|
||||
private java.lang.String taskId;
|
||||
/**子分类名称*/
|
||||
@Excel(name = "子分类名称", width = 15)
|
||||
@ApiModelProperty(value = "子分类名称")
|
||||
private java.lang.String taskName;
|
||||
/**分类关联id*/
|
||||
@Excel(name = "分类关联id", width = 15)
|
||||
@ApiModelProperty(value = "分类关联id")
|
||||
private java.lang.String timeTaskId;
|
||||
/**要求上传资源数*/
|
||||
@Excel(name = "要求上传资源数", width = 15)
|
||||
@ApiModelProperty(value = "要求上传资源数")
|
||||
private java.lang.Integer sysResCount;
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划学生表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("shangbao_practice_paln_user")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="shangbao_practice_paln_user对象", description="实践计划学生表")
|
||||
public class ShangbaoPracticePalnUser implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private java.lang.Integer id;
|
||||
/**实践计划id*/
|
||||
@Excel(name = "实践计划id", width = 15)
|
||||
@ApiModelProperty(value = "实践计划id")
|
||||
private java.lang.String planId;
|
||||
/**实践计划名称*/
|
||||
@Excel(name = "实践计划名称", width = 15)
|
||||
@ApiModelProperty(value = "实践计划名称")
|
||||
private java.lang.String planName;
|
||||
/**学院id*/
|
||||
@Excel(name = "学院id", width = 15)
|
||||
@ApiModelProperty(value = "学院id")
|
||||
private java.lang.Integer orgId;
|
||||
/**学院名称*/
|
||||
@Excel(name = "学院名称", width = 15)
|
||||
@ApiModelProperty(value = "学院名称")
|
||||
private java.lang.String orgName;
|
||||
/**学生id*/
|
||||
@Excel(name = "学生id", width = 15)
|
||||
@ApiModelProperty(value = "学生id")
|
||||
private java.lang.Integer studentId;
|
||||
/**学生姓名*/
|
||||
@Excel(name = "学生姓名", width = 15)
|
||||
@ApiModelProperty(value = "学生姓名")
|
||||
private java.lang.String studentName;
|
||||
}
|
|
@ -0,0 +1,103 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划学生上传数表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("shangbao_practice_paln_user_res_count")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="shangbao_practice_paln_user_res_count对象", description="实践计划学生上传数表")
|
||||
public class ShangbaoPracticePalnUserResCount implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private java.lang.Integer id;
|
||||
/**实践计划id*/
|
||||
@Excel(name = "实践计划id", width = 15)
|
||||
@ApiModelProperty(value = "实践计划id")
|
||||
private java.lang.String planId;
|
||||
/**实践计划名称*/
|
||||
@Excel(name = "实践计划名称", width = 15)
|
||||
@ApiModelProperty(value = "实践计划名称")
|
||||
private java.lang.String planName;
|
||||
/**阶段id*/
|
||||
@Excel(name = "阶段id", width = 15)
|
||||
@ApiModelProperty(value = "阶段id")
|
||||
private java.lang.String stepId;
|
||||
/**阶段名称*/
|
||||
@Excel(name = "阶段名称", width = 15)
|
||||
@ApiModelProperty(value = "阶段名称")
|
||||
private java.lang.String stepName;
|
||||
/**阶段开始时间*/
|
||||
@Excel(name = "阶段开始时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "阶段开始时间")
|
||||
private java.util.Date stepStartTime;
|
||||
/**阶段结束时间*/
|
||||
@Excel(name = "阶段结束时间", width = 20, format = "yyyy-MM-dd HH:mm:ss")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "阶段结束时间")
|
||||
private java.util.Date stepEndTime;
|
||||
/**子分类id*/
|
||||
@Excel(name = "子分类id", width = 15)
|
||||
@ApiModelProperty(value = "子分类id")
|
||||
private java.lang.String taskId;
|
||||
/**子分类名称*/
|
||||
@Excel(name = "子分类名称", width = 15)
|
||||
@ApiModelProperty(value = "子分类名称")
|
||||
private java.lang.String taskName;
|
||||
/**学院id*/
|
||||
@Excel(name = "学院id", width = 15)
|
||||
@ApiModelProperty(value = "学院id")
|
||||
private java.lang.Integer orgId;
|
||||
/**学院名称*/
|
||||
@Excel(name = "学院名称", width = 15)
|
||||
@ApiModelProperty(value = "学院名称")
|
||||
private java.lang.String orgName;
|
||||
/**学生id*/
|
||||
@Excel(name = "学生id", width = 15)
|
||||
@ApiModelProperty(value = "学生id")
|
||||
private java.lang.Integer studentId;
|
||||
/**学生姓名*/
|
||||
@Excel(name = "学生姓名", width = 15)
|
||||
@ApiModelProperty(value = "学生姓名")
|
||||
private java.lang.String studentName;
|
||||
/**学号*/
|
||||
@Excel(name = "学号", width = 15)
|
||||
@ApiModelProperty(value = "学号")
|
||||
private java.lang.String personNum;
|
||||
/**系统要求资源数*/
|
||||
@Excel(name = "系统要求资源数", width = 15)
|
||||
@ApiModelProperty(value = "系统要求资源数")
|
||||
private java.lang.Integer sysResCount;
|
||||
/**学生实际上传并审核通过资源数*/
|
||||
@Excel(name = "学生实际上传并审核通过资源数", width = 15)
|
||||
@ApiModelProperty(value = "学生实际上传并审核通过资源数")
|
||||
private java.lang.Integer stuResCount;
|
||||
}
|
|
@ -0,0 +1,87 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 学生上传资源明细
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("shangbao_practice_paln_user_res_detail")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="shangbao_practice_paln_user_res_detail对象", description="学生上传资源明细")
|
||||
public class ShangbaoPracticePalnUserResDetail implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private java.lang.Integer id;
|
||||
/**实践计划id*/
|
||||
@Excel(name = "实践计划id", width = 15)
|
||||
@ApiModelProperty(value = "实践计划id")
|
||||
private java.lang.String planId;
|
||||
/**实践计划名称*/
|
||||
@Excel(name = "实践计划名称", width = 15)
|
||||
@ApiModelProperty(value = "实践计划名称")
|
||||
private java.lang.String planName;
|
||||
/**学生id*/
|
||||
@Excel(name = "学生id", width = 15)
|
||||
@ApiModelProperty(value = "学生id")
|
||||
private java.lang.Integer studentId;
|
||||
/**学生姓名*/
|
||||
@Excel(name = "学生姓名", width = 15)
|
||||
@ApiModelProperty(value = "学生姓名")
|
||||
private java.lang.String studentName;
|
||||
/**阶段id*/
|
||||
@Excel(name = "阶段id", width = 15)
|
||||
@ApiModelProperty(value = "阶段id")
|
||||
private java.lang.String stepId;
|
||||
/**阶段名称*/
|
||||
@Excel(name = "阶段名称", width = 15)
|
||||
@ApiModelProperty(value = "阶段名称")
|
||||
private java.lang.String stepName;
|
||||
/**子分类id*/
|
||||
@Excel(name = "子分类id", width = 15)
|
||||
@ApiModelProperty(value = "子分类id")
|
||||
private java.lang.String taskId;
|
||||
/**子分类名称*/
|
||||
@Excel(name = "子分类名称", width = 15)
|
||||
@ApiModelProperty(value = "子分类名称")
|
||||
private java.lang.String taskName;
|
||||
/**资源INT ID*/
|
||||
@Excel(name = "资源INT ID", width = 15)
|
||||
@ApiModelProperty(value = "资源INT ID")
|
||||
private java.lang.Integer resourceIdInt;
|
||||
/**文件fileid*/
|
||||
@Excel(name = "文件fileid", width = 15)
|
||||
@ApiModelProperty(value = "文件fileid")
|
||||
private java.lang.String fileId;
|
||||
/**资源标题*/
|
||||
@Excel(name = "资源标题", width = 15)
|
||||
@ApiModelProperty(value = "资源标题")
|
||||
private java.lang.String resourceTitle;
|
||||
/**资源路径*/
|
||||
@Excel(name = "资源路径", width = 15)
|
||||
@ApiModelProperty(value = "资源路径")
|
||||
private java.lang.String resourcePath;
|
||||
}
|
|
@ -0,0 +1,54 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划清单
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("shangbao_practice_plan_info")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="shangbao_practice_plan_info对象", description="实践计划清单")
|
||||
public class ShangbaoPracticePlanInfo implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private java.lang.Integer id;
|
||||
/**实践计划id*/
|
||||
@Excel(name = "实践计划id", width = 15)
|
||||
@ApiModelProperty(value = "实践计划id")
|
||||
private java.lang.String planId;
|
||||
/**实践计划名称*/
|
||||
@Excel(name = "实践计划名称", width = 15)
|
||||
@ApiModelProperty(value = "实践计划名称")
|
||||
private java.lang.String planName;
|
||||
/**实践计划类型*/
|
||||
@Excel(name = "实践计划类型", width = 15)
|
||||
@ApiModelProperty(value = "实践计划类型")
|
||||
private java.lang.String planTypeName;
|
||||
/**planYear*/
|
||||
@ApiModelProperty(value = "planYear")
|
||||
private java.lang.String planYear;
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
|
||||
import com.baomidou.mybatisplus.annotation.*;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 专家选择的实习实践考核材料
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("shangbao_practice_plan_info_xz")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="shangbao_practice_plan_info_xz对象", description="专家选择的实习实践考核材料")
|
||||
public class ShangbaoPracticePlanInfoXz implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private java.lang.String id;
|
||||
/**实践计划id*/
|
||||
@Excel(name = "实践计划id", width = 15)
|
||||
@ApiModelProperty(value = "实践计划id")
|
||||
private java.lang.String planId;
|
||||
/**实践计划名称*/
|
||||
@Excel(name = "实践计划名称", width = 15)
|
||||
@ApiModelProperty(value = "实践计划名称")
|
||||
private java.lang.String planName;
|
||||
/**实践计划类型*/
|
||||
@Excel(name = "实践计划类型", width = 15)
|
||||
@ApiModelProperty(value = "实践计划类型")
|
||||
private java.lang.String planTypeName;
|
||||
/**planYear*/
|
||||
@ApiModelProperty(value = "planYear")
|
||||
private java.lang.String planYear;
|
||||
/**createBy*/
|
||||
@ApiModelProperty(value = "createBy")
|
||||
private java.lang.String createBy;
|
||||
/**createTime*/
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
|
||||
@ApiModelProperty(value = "createTime")
|
||||
private java.util.Date createTime;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String orgName;
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.entity;
|
||||
|
||||
import java.io.Serializable;
|
||||
import java.io.UnsupportedEncodingException;
|
||||
import java.util.Date;
|
||||
import java.math.BigDecimal;
|
||||
import com.baomidou.mybatisplus.annotation.IdType;
|
||||
import com.baomidou.mybatisplus.annotation.TableId;
|
||||
import com.baomidou.mybatisplus.annotation.TableName;
|
||||
import com.baomidou.mybatisplus.annotation.TableLogic;
|
||||
import lombok.Data;
|
||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||
import org.springframework.format.annotation.DateTimeFormat;
|
||||
import org.jeecgframework.poi.excel.annotation.Excel;
|
||||
import org.jeecg.common.aspect.annotation.Dict;
|
||||
import io.swagger.annotations.ApiModel;
|
||||
import io.swagger.annotations.ApiModelProperty;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.experimental.Accessors;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划学院关联关系
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-18
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("shangbao_practice_plan_org")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="shangbao_practice_plan_org对象", description="实践计划学院关联关系")
|
||||
public class ShangbaoPracticePlanOrg implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**id*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "id")
|
||||
private java.lang.Integer id;
|
||||
/**实践计划id*/
|
||||
@Excel(name = "实践计划id", width = 15)
|
||||
@ApiModelProperty(value = "实践计划id")
|
||||
private java.lang.String planId;
|
||||
/**实践计划名称*/
|
||||
@Excel(name = "实践计划名称", width = 15)
|
||||
@ApiModelProperty(value = "实践计划名称")
|
||||
private java.lang.String planName;
|
||||
/**学院id*/
|
||||
@Excel(name = "学院id", width = 15)
|
||||
@ApiModelProperty(value = "学院id")
|
||||
private java.lang.Integer orgId;
|
||||
/**学院名称*/
|
||||
@Excel(name = "学院名称", width = 15)
|
||||
@ApiModelProperty(value = "学院名称")
|
||||
private java.lang.String orgName;
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePalnTimeTask;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划子分类及上传数要求
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface ShangbaoPracticePalnTimeTaskMapper extends BaseMapper<ShangbaoPracticePalnTimeTask> {
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePalnUser;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划学生表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface ShangbaoPracticePalnUserMapper extends BaseMapper<ShangbaoPracticePalnUser> {
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePalnUserResCount;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划学生上传数表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface ShangbaoPracticePalnUserResCountMapper extends BaseMapper<ShangbaoPracticePalnUserResCount> {
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePalnUserResDetail;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 学生上传资源明细
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface ShangbaoPracticePalnUserResDetailMapper extends BaseMapper<ShangbaoPracticePalnUserResDetail> {
|
||||
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePlanInfo;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划清单
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface ShangbaoPracticePlanInfoMapper extends BaseMapper<ShangbaoPracticePlanInfo> {
|
||||
|
||||
}
|
|
@ -0,0 +1,22 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePlanInfoXz;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 专家选择的实习实践考核材料
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface ShangbaoPracticePlanInfoXzMapper extends BaseMapper<ShangbaoPracticePlanInfoXz> {
|
||||
|
||||
IPage<ShangbaoPracticePlanInfoXz> getZjList(Page<ShangbaoPracticePlanInfoXz> page, @Param("sxsjkhcl") ShangbaoPracticePlanInfoXz shangbaoPracticePlanInfoXz);
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePlanOrg;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划学院关联关系
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-18
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface ShangbaoPracticePlanOrgMapper extends BaseMapper<ShangbaoPracticePlanOrg> {
|
||||
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.demo.shangbaoPracticePaln.mapper.ShangbaoPracticePalnTimeTaskMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.demo.shangbaoPracticePaln.mapper.ShangbaoPracticePalnUserMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.demo.shangbaoPracticePaln.mapper.ShangbaoPracticePalnUserResCountMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.demo.shangbaoPracticePaln.mapper.ShangbaoPracticePalnUserResDetailMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.demo.shangbaoPracticePaln.mapper.ShangbaoPracticePlanInfoMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,23 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.demo.shangbaoPracticePaln.mapper.ShangbaoPracticePlanInfoXzMapper">
|
||||
|
||||
<select id="getZjList" resultType="org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePlanInfoXz">
|
||||
select a.id,a.plan_id,a.plan_name,a.plan_type_name,b.create_by,c.org_name from shangbao_practice_plan_info a
|
||||
left join shangbao_practice_plan_info_xz b on a.plan_id = b.plan_id and b.create_by = #{sxsjkhcl.createBy}
|
||||
left join (select plan_id,GROUP_CONCAT(org_name) as org_name from shangbao_practice_plan_org GROUP BY plan_id ) c on a.plan_id = c.plan_id
|
||||
where 1=1
|
||||
<if test="sxsjkhcl.planName != null and sxsjkhcl.planName != ''">
|
||||
and a.plan_name like concat('%',#{sxsjkhcl.planName},'%')
|
||||
</if>
|
||||
<if test="sxsjkhcl.planTypeName != null and sxsjkhcl.planTypeName != ''">
|
||||
and a.plan_type_name like concat('%',#{sxsjkhcl.planTypeName},'%')
|
||||
</if>
|
||||
<if test="sxsjkhcl.orgName != null and sxsjkhcl.orgName != ''">
|
||||
and ${sxsjkhcl.orgName}
|
||||
</if>
|
||||
<if test="sxsjkhcl.planYear != null and sxsjkhcl.planYear != ''">
|
||||
and a.plan_year = #{sxsjkhcl.planYear}
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
|
@ -0,0 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="org.jeecg.modules.demo.shangbaoPracticePaln.mapper.ShangbaoPracticePlanOrgMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.service;
|
||||
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePalnTimeTask;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划子分类及上传数要求
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IShangbaoPracticePalnTimeTaskService extends IService<ShangbaoPracticePalnTimeTask> {
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.service;
|
||||
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePalnUserResCount;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划学生上传数表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IShangbaoPracticePalnUserResCountService extends IService<ShangbaoPracticePalnUserResCount> {
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.service;
|
||||
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePalnUserResDetail;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 学生上传资源明细
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IShangbaoPracticePalnUserResDetailService extends IService<ShangbaoPracticePalnUserResDetail> {
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.service;
|
||||
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePalnUser;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划学生表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IShangbaoPracticePalnUserService extends IService<ShangbaoPracticePalnUser> {
|
||||
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.service;
|
||||
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePlanInfo;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划清单
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IShangbaoPracticePlanInfoService extends IService<ShangbaoPracticePlanInfo> {
|
||||
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.service;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePlanInfoXz;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 专家选择的实习实践考核材料
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IShangbaoPracticePlanInfoXzService extends IService<ShangbaoPracticePlanInfoXz> {
|
||||
|
||||
IPage<ShangbaoPracticePlanInfoXz> getZjList(Page<ShangbaoPracticePlanInfoXz> page, ShangbaoPracticePlanInfoXz shangbaoPracticePlanInfoXz);
|
||||
}
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.service;
|
||||
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePlanOrg;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划学院关联关系
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-18
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IShangbaoPracticePlanOrgService extends IService<ShangbaoPracticePlanOrg> {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.service.impl;
|
||||
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePalnTimeTask;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.mapper.ShangbaoPracticePalnTimeTaskMapper;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.service.IShangbaoPracticePalnTimeTaskService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划子分类及上传数要求
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class ShangbaoPracticePalnTimeTaskServiceImpl extends ServiceImpl<ShangbaoPracticePalnTimeTaskMapper, ShangbaoPracticePalnTimeTask> implements IShangbaoPracticePalnTimeTaskService {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.service.impl;
|
||||
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePalnUserResCount;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.mapper.ShangbaoPracticePalnUserResCountMapper;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.service.IShangbaoPracticePalnUserResCountService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划学生上传数表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class ShangbaoPracticePalnUserResCountServiceImpl extends ServiceImpl<ShangbaoPracticePalnUserResCountMapper, ShangbaoPracticePalnUserResCount> implements IShangbaoPracticePalnUserResCountService {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.service.impl;
|
||||
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePalnUserResDetail;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.mapper.ShangbaoPracticePalnUserResDetailMapper;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.service.IShangbaoPracticePalnUserResDetailService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 学生上传资源明细
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class ShangbaoPracticePalnUserResDetailServiceImpl extends ServiceImpl<ShangbaoPracticePalnUserResDetailMapper, ShangbaoPracticePalnUserResDetail> implements IShangbaoPracticePalnUserResDetailService {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.service.impl;
|
||||
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePalnUser;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.mapper.ShangbaoPracticePalnUserMapper;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.service.IShangbaoPracticePalnUserService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划学生表
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class ShangbaoPracticePalnUserServiceImpl extends ServiceImpl<ShangbaoPracticePalnUserMapper, ShangbaoPracticePalnUser> implements IShangbaoPracticePalnUserService {
|
||||
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.service.impl;
|
||||
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePlanInfo;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.mapper.ShangbaoPracticePlanInfoMapper;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.service.IShangbaoPracticePlanInfoService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划清单
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class ShangbaoPracticePlanInfoServiceImpl extends ServiceImpl<ShangbaoPracticePlanInfoMapper, ShangbaoPracticePlanInfo> implements IShangbaoPracticePlanInfoService {
|
||||
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.service.impl;
|
||||
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.shiro.SecurityUtils;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.vo.LoginUser;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePlanInfoXz;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.mapper.ShangbaoPracticePlanInfoXzMapper;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.service.IShangbaoPracticePlanInfoXzService;
|
||||
import org.jeecg.modules.demo.zjSqxx.entity.ZjSqxx;
|
||||
import org.jeecg.modules.demo.zjSqxx.service.IZjSqxxService;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
/**
|
||||
* @Description: 专家选择的实习实践考核材料
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-17
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class ShangbaoPracticePlanInfoXzServiceImpl extends ServiceImpl<ShangbaoPracticePlanInfoXzMapper, ShangbaoPracticePlanInfoXz> implements IShangbaoPracticePlanInfoXzService {
|
||||
|
||||
|
||||
@Override
|
||||
public IPage<ShangbaoPracticePlanInfoXz> getZjList(Page<ShangbaoPracticePlanInfoXz> page, ShangbaoPracticePlanInfoXz shangbaoPracticePlanInfoXz) {
|
||||
|
||||
return baseMapper.getZjList(page,shangbaoPracticePlanInfoXz);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
package org.jeecg.modules.demo.shangbaoPracticePaln.service.impl;
|
||||
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.entity.ShangbaoPracticePlanOrg;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.mapper.ShangbaoPracticePlanOrgMapper;
|
||||
import org.jeecg.modules.demo.shangbaoPracticePaln.service.IShangbaoPracticePlanOrgService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 实践计划学院关联关系
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2025-04-18
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
public class ShangbaoPracticePlanOrgServiceImpl extends ServiceImpl<ShangbaoPracticePlanOrgMapper, ShangbaoPracticePlanOrg> implements IShangbaoPracticePlanOrgService {
|
||||
|
||||
}
|
|
@ -165,18 +165,19 @@ spring:
|
|||
username: root
|
||||
password: abcAbc@123
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
# 多数据源配置
|
||||
# 课程中心数据
|
||||
multi-datasource1:
|
||||
url: jdbc:mysql://210.47.16.197:3306/course_information_center_jeecg_db?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||
url: jdbc:mysql://210.47.29.177:3306/course_information_center_jeecg_db?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: ABCabc@123
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
|
||||
# 毕业论文数据
|
||||
multi-datasource2:
|
||||
url: jdbc:mysql://210.47.16.225:3306/lwxt2022?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: 0!aPN29E=
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
|
||||
#redis 配置
|
||||
redis:
|
||||
database: 0
|
||||
|
|
Binary file not shown.
|
@ -251,19 +251,6 @@
|
|||
</div>
|
||||
<!-- 选课后的列表 -->
|
||||
<div v-if="sfxk == 999">
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form class="query-criteria">
|
||||
<a-button type="primary" preIcon="ant-design:copy-outlined" @click="handleXuanke" style="margin-left: 8px; margin-bottom: 15px">
|
||||
返回选择论文</a-button
|
||||
>
|
||||
<!-- <div style="margin-bottom: 20px">
|
||||
<a-breadcrumb>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleXuanke">论文考核材料</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><span class="mbxtitle">已选论文</span></a-breadcrumb-item>
|
||||
</a-breadcrumb>
|
||||
</div> -->
|
||||
</a-form>
|
||||
</div>
|
||||
|
||||
<!--查询区域-->
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
|
|
|
@ -0,0 +1,571 @@
|
|||
<template>
|
||||
<div class="p-2">
|
||||
<!-- 未选课页面 -->
|
||||
<div v-if="sfxk == 0">
|
||||
<div style="text-align: center">
|
||||
<img src="../../../assets/images/Course-selection.png" style="margin-top: 100px; width: 600px" />
|
||||
<div style="color: #606266; font-weight: 700; font-size: 20px; margin-top: 20px">您还没有实习实践材料,请先选择实习实践材料</div>
|
||||
<a-button type="primary" style="margin-left: 10px; margin-top: 10px" @click="handleXuanke">选实习实践材料</a-button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 选课页面 -->
|
||||
<div v-if="sfxk == 1">
|
||||
<!--引用表格-->
|
||||
<BasicTable @register="registerTable" class="table-style" :rowSelection="rowSelection">
|
||||
<template #tableTitle>
|
||||
<span class="seleciton-line">1</span> <span class="selection-title">已选实习实践</span>
|
||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item key="1" @click="batchHandleDelete">
|
||||
<Icon icon="ant-design:delete-outlined"></Icon>
|
||||
删除
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
<a-button >批量操作
|
||||
<Icon icon="mdi:chevron-down"></Icon>
|
||||
</a-button>
|
||||
</a-dropdown>
|
||||
</template>
|
||||
<!--操作栏-->
|
||||
<template #action="{ record }">
|
||||
<TableAction :actions="getTableAction(record)" />
|
||||
</template>
|
||||
</BasicTable>
|
||||
|
||||
<div class="jeecg-basic-table-form-container" style="margin-top: 10px">
|
||||
<a-form
|
||||
ref="formRef"
|
||||
@keyup.enter.native="searchQuery2"
|
||||
:model="queryParam"
|
||||
:label-col="labelCol"
|
||||
:wrapper-col="wrapperCol"
|
||||
class="query-criteria"
|
||||
>
|
||||
<a-row :gutter="24">
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="planName">
|
||||
<template #label><span title="实践计划名称">实践计划名称</span></template>
|
||||
<a-input placeholder="请输入实践计划名称" v-model:value="queryParam2.planName" allow-clear></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="planTypeName">
|
||||
<template #label><span title="实践计划类型">实践计划类型</span></template>
|
||||
<a-input placeholder="请输入实践计划类型" v-model:value="queryParam2.planTypeName" allow-clear></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12" style="text-align: right">
|
||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery2">查询</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
<a-table
|
||||
:columns="columns2"
|
||||
:data-source="dataList"
|
||||
v-model:current="paginationProp.current"
|
||||
:total="paginationProp.total"
|
||||
:pagination="paginationProp"
|
||||
@change="onPageChange"
|
||||
>
|
||||
<template #title><span class="seleciton-line">1</span> <span class="selection-title">可选实习实践</span></template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.dataIndex === 'action'">
|
||||
<a @click="handleXUanze(record)" v-if="!record.createBy">选择</a>
|
||||
<a disabled v-if="record.createBy">已选择</a>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
<!-- 查看实习实践材料 -->
|
||||
<div v-if="sfxk == 2">
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form class="query-criteria">
|
||||
<a-button type="primary" style="margin-left: 10px; margin-bottom: 15px" @click="handleFanhui">返回</a-button>
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<span class="seleciton-line">1</span> <span class="selection-title">基础信息</span>
|
||||
<a-row>
|
||||
<a-col :span="12">
|
||||
<a-form-item label="实践计划名称">
|
||||
{{ sxsjInfo.value.planName }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item label="实践计划类型">
|
||||
{{ sxsjInfo.value.planTypeName }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<!-- <div style="width: 100; text-align: right"><a-button type="primary" @click="batchHandleDown(sxsjInfo)">下载全部材料</a-button></div> -->
|
||||
<!-- 数量及要求 -->
|
||||
|
||||
<a-tabs v-model:activeKey="activeKey" type="card" >
|
||||
<a-tab-pane key="1" tab="数量及要求">
|
||||
<a-table
|
||||
:columns="columns4"
|
||||
:data-source="dataList2"
|
||||
:pagination="false"
|
||||
>
|
||||
</a-table>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="2" tab="学生名单">
|
||||
<a-table
|
||||
:columns="columns5"
|
||||
:data-source="dataList3"
|
||||
:pagination="false"
|
||||
>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.dataIndex === 'action'">
|
||||
<a @click="handleXsmd(record)">查看材料</a>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="3" tab="学生资源汇总">
|
||||
<div v-show="dataList4.length == 0" style="text-align: center;line-height: 200px;">
|
||||
<span style="margin-top:30px;font-size:20px;color:red;">您未选择学生或者此学生没有数据,请到学生名单中切换到其他学生进行查询!</span>
|
||||
</div>
|
||||
<div v-show="dataList4.length > 0">
|
||||
<a-table
|
||||
:columns="columns6"
|
||||
:data-source="dataList4"
|
||||
:pagination="false"
|
||||
>
|
||||
</a-table>
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="4" tab="学生资源清单">
|
||||
<div v-show="dataList5.length == 0" style="text-align: center;line-height: 200px;">
|
||||
<span style="margin-top:30px;font-size:20px;color:red;">您未选择学生或者此学生没有数据,请到学生名单中切换到其他学生进行查询!</span>
|
||||
</div>
|
||||
<div v-show="dataList5.length > 0">
|
||||
<a-table
|
||||
:columns="columns7"
|
||||
:data-source="dataList5"
|
||||
:pagination="false"
|
||||
>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.dataIndex === 'action'">
|
||||
<a @click="handleDownload(record)">下载</a>
|
||||
<a-divider type="vertical" style="height: 30px;" />
|
||||
<a @click="handleYulan(record)">预览</a>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
</a-form>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 选课后的列表 -->
|
||||
<div v-if="sfxk == 999">
|
||||
|
||||
<!--查询区域-->
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form
|
||||
ref="formRef3"
|
||||
@keyup.enter.native="searchQuery"
|
||||
:model="queryParam"
|
||||
:label-col="labelCol"
|
||||
:wrapper-col="wrapperCol"
|
||||
class="query-criteria"
|
||||
>
|
||||
<a-row :gutter="24">
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="planName">
|
||||
<template #label><span title="实践计划名称">实践计划名称</span></template>
|
||||
<j-input placeholder="请输入实践计划名称" v-model:value="queryParam.planName" allow-clear></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="planTypeName">
|
||||
<template #label><span title="实践计划类型">实践计划类型</span></template>
|
||||
<j-input placeholder="请输入实践计划类型" v-model:value="queryParam.planTypeName" allow-clear></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12" style="text-align: right">
|
||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
<!--引用表格-->
|
||||
<BasicTable @register="registerTable" class="table-style">
|
||||
<template #tableTitle> <span class="seleciton-line">1</span> <span class="selection-title">已选实习实践</span> </template>
|
||||
<!--操作栏-->
|
||||
<template #action="{ record }">
|
||||
<TableAction :actions="getTableAction(record)" />
|
||||
</template>
|
||||
</BasicTable>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="lwKhclXz-lwKhclXz" setup>
|
||||
import { ref, reactive, onMounted } from 'vue';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { deleteXkxxOne } from '/@/views/bl/lwKhclXz/LwKhclXz.api';
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||
import { downloadFile, downloadFileLoacl } from '/@/utils/common/renderUtils';
|
||||
import { getFileAccessHttpUrl } from '@/utils/common/compUtils';
|
||||
import { encryptByBase64 } from '@/utils/cipher';
|
||||
import JInput from '/@/components/Form/src/jeecg/components/JInput.vue';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useGlobSetting } from '/@/hooks/setting';
|
||||
|
||||
|
||||
import { columns,columns2 ,columns3,columns4,columns5,columns6,columns7} from './ShangbaoPracticePlanInfo.data';
|
||||
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './ShangbaoPracticePlanInfo.api';
|
||||
|
||||
|
||||
const globSetting = useGlobSetting();
|
||||
const baseApiUrl = globSetting.domainUrl;
|
||||
const formRef = ref();
|
||||
const queryParam = reactive<any>({});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
const userStore = useUserStore();
|
||||
const queryParam2 = ref<any>({});
|
||||
const sfsjType = ref<any>({});
|
||||
const emit = defineEmits(['callback']);
|
||||
const checkData = ref<any>([]);
|
||||
const dataList = ref<any>([]);
|
||||
const dataList2 = ref<any>([]);
|
||||
const dataList3 = ref<any>([]);
|
||||
const dataList4 = ref<any>([]);
|
||||
const dataList5 = ref<any>([]);
|
||||
const sfxk = ref<number>(0);
|
||||
const sxsjInfo = reactive<any>({});
|
||||
const docUrl = ref<string>('');
|
||||
const activeKey = ref('1');
|
||||
const ktbgUrl = ref<string>('');
|
||||
const ktbgshyjUrl = ref<string>('');
|
||||
const zqjcUrl = ref<string>('');
|
||||
const lwzgUrl = ref<string>('');
|
||||
const zdjldUrl = ref<string>('');
|
||||
const jcbgUrl = ref<string>('');
|
||||
|
||||
let onlinePreviewDomain = '';
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
tableProps: {
|
||||
api: list,
|
||||
columns: columns3,
|
||||
canResize: false,
|
||||
useSearchForm: false,
|
||||
actionColumn: {
|
||||
width: 120,
|
||||
fixed: 'right',
|
||||
},
|
||||
beforeFetch: async (params) => {
|
||||
return Object.assign(params, queryParam);
|
||||
},
|
||||
},
|
||||
exportConfig: {
|
||||
name: '教务系统教学任务',
|
||||
url: getExportUrl,
|
||||
params: queryParam,
|
||||
},
|
||||
});
|
||||
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] =tableContext;
|
||||
//批量下载
|
||||
async function batchHandleDown(record) {
|
||||
console.log('🙍♂️', record);
|
||||
// 毕业实习实践-学院-专业-学生姓名-学号
|
||||
var downName =
|
||||
'毕业实习实践-' +
|
||||
record.value.ssyxmc +
|
||||
'-' +
|
||||
(record.value.ssxnzymc ? record.value.ssxnzymc : '') +
|
||||
'-' +
|
||||
record.value.xsxm +
|
||||
'-' +
|
||||
record.value.xsxh +
|
||||
'';
|
||||
var params = { id: record.value.id, downName };
|
||||
console.log('🕵', params);
|
||||
defHttp.post({ url: '/lwKhclXz/lwKhclXz/getLwBatchDown', params: { id: record.value.id, downName } }).then((res) => {
|
||||
console.log('---------', res);
|
||||
downloadFileLoacl(res.downLoadPath);
|
||||
});
|
||||
}
|
||||
//下载
|
||||
function handleDownload(record) {
|
||||
console.log("🚀 ~ handleDownload ~ record:", record)
|
||||
downloadFile(record.resourcePath);
|
||||
}
|
||||
//查看学生名单
|
||||
function handleXsmd(record) {
|
||||
// let toDom: any = document?.querySelector('#section1');
|
||||
// let topNum = toDom?.offsetTop??20;
|
||||
// document.body.scrollTop = topNum;
|
||||
// sfsjType.value = "2";
|
||||
activeKey.value = '3';
|
||||
|
||||
//学生资源汇总
|
||||
defHttp.get({ url: '/shangbaoPracticePaln/shangbaoPracticePalnUserResCount/list',params:{planId:record.planId,pageSize:-1,studentId:record.studentId} }).then((res) => {
|
||||
dataList4.value = res.records;
|
||||
});
|
||||
//学生资源清单
|
||||
defHttp.get({ url: '/shangbaoPracticePaln/shangbaoPracticePalnUserResDetail/list',params:{planId:record.planId,pageSize:-1,studentId:record.studentId} }).then((res) => {
|
||||
dataList5.value = res.records;
|
||||
});
|
||||
|
||||
}
|
||||
//预览
|
||||
function handleYulan(record) {
|
||||
console.log('😶', record);
|
||||
var file = getFileAccessHttpUrl(record.resourcePath);
|
||||
window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||
}
|
||||
//查看实习实践材料
|
||||
async function handleChakan(record) {
|
||||
sxsjInfo.value = record;
|
||||
sfxk.value = 2;
|
||||
sfsjType.value = "1";
|
||||
dataList4.value = [];
|
||||
dataList5.value = [];
|
||||
//查询数量及要求
|
||||
defHttp.get({ url: '/shangbaoPracticePaln/shangbaoPracticePalnTimeTask/list',params:{planId:record.planId,pageSize:-1} }).then((res) => {
|
||||
dataList2.value = res.records;
|
||||
});
|
||||
//查询学生名单
|
||||
defHttp.get({ url: '/shangbaoPracticePaln/shangbaoPracticePalnUser/list',params:{planId:record.planId,pageSize:-1} }).then((res) => {
|
||||
dataList3.value = res.records;
|
||||
});
|
||||
}
|
||||
|
||||
const getViewFileDomain = () => defHttp.get({ url: '/sys/comment/getFileViewDomain' });
|
||||
/**
|
||||
* 初始化domain
|
||||
*/
|
||||
async function initViewDomain() {
|
||||
if (!onlinePreviewDomain) {
|
||||
onlinePreviewDomain = await getViewFileDomain();
|
||||
}
|
||||
if (!onlinePreviewDomain.startsWith('http')) {
|
||||
onlinePreviewDomain = 'http://' + onlinePreviewDomain;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 操作栏
|
||||
*/
|
||||
function getTableAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '查看材料',
|
||||
onClick: handleChakan.bind(null, record),
|
||||
},
|
||||
];
|
||||
}
|
||||
//注册table数据
|
||||
const labelCol = reactive({
|
||||
xs: 24,
|
||||
sm: 8,
|
||||
xl: 8,
|
||||
xxl: 8,
|
||||
});
|
||||
const wrapperCol = reactive({
|
||||
xs: 24,
|
||||
sm: 14,
|
||||
});
|
||||
|
||||
const paginationProp = ref<any>({
|
||||
total: 1,
|
||||
current: 1,
|
||||
pageSize: 10,
|
||||
pageNo: 1,
|
||||
});
|
||||
const paginationYxkcProp = ref<any>({
|
||||
total: 1,
|
||||
current: 1,
|
||||
pageSize: 10,
|
||||
pageNo: 1,
|
||||
});
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery() {
|
||||
reload();
|
||||
}
|
||||
//选课
|
||||
function handleXuanke() {
|
||||
sfxk.value = 1;
|
||||
searchQuery2();
|
||||
}
|
||||
|
||||
//选课提交
|
||||
function handleXUanze(record) {
|
||||
record.mainId = record.id;
|
||||
record.id = null;
|
||||
console.log('😰record----------', record);
|
||||
defHttp.post({
|
||||
url: '/shangbaoPracticePaln/shangbaoPracticePlanInfoXz/add',
|
||||
params: record,
|
||||
})
|
||||
.then((res) => {
|
||||
console.log('🤛', res);
|
||||
});
|
||||
xtsuccess();
|
||||
}
|
||||
//选课删除
|
||||
async function handleDel(record) {
|
||||
await deleteXkxxOne({ id: record.id }, xtsuccess);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 批量删除事件
|
||||
*/
|
||||
async function batchHandleDelete() {
|
||||
await batchDelete({ ids: selectedRowKeys.value }, xtsuccess);
|
||||
}
|
||||
|
||||
function xtsuccess() {
|
||||
|
||||
selectedRowKeys.value=[]
|
||||
reload();
|
||||
searchQuery2();
|
||||
}
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery2() {
|
||||
queryParam2.value.pageNo = paginationProp.value.current;
|
||||
defHttp.get({ url: '/shangbaoPracticePaln/shangbaoPracticePlanInfoXz/getZjList', params: { pageNo: paginationProp.value.current,pageSize:paginationProp.value.pageSize, ...queryParam2.value } }).then((res) => {
|
||||
dataList.value = res.records;
|
||||
paginationProp.value.total = res.total;
|
||||
// paginationProp.value.current = res.pageNo;
|
||||
});
|
||||
}
|
||||
|
||||
//翻页方法
|
||||
async function onPageChange(record) {
|
||||
console.log('👬', record);
|
||||
paginationProp.value.current = record.current;
|
||||
paginationProp.value.pageSize = record.pageSize;
|
||||
await searchQuery2();
|
||||
}
|
||||
//翻页方法
|
||||
async function onPageYxkcChange(record) {
|
||||
paginationYxkcProp.value.current = record.current;
|
||||
paginationYxkcProp.value.pageSize = record.pageSize;
|
||||
console.log("🚀 ~ onPageYxkcChange ~ paginationYxkcProp.value:", paginationYxkcProp.value)
|
||||
await init();
|
||||
}
|
||||
|
||||
//返回首页
|
||||
function handleFanhui() {
|
||||
sfxk.value = 999;
|
||||
reload();
|
||||
}
|
||||
|
||||
function init() {
|
||||
//获取是否有选课信息
|
||||
defHttp.get({ url: '/lwKhclXz/lwKhclXz/list', params: { pageNo: paginationYxkcProp.value.current,pageSize:paginationYxkcProp.value.pageSize } }).then((res) => {
|
||||
console.log('🧛', res);
|
||||
checkData.value = res.records;
|
||||
paginationYxkcProp.value.total = res.total;
|
||||
paginationYxkcProp.value.current = res.current;
|
||||
});
|
||||
}
|
||||
|
||||
function init2() {
|
||||
//获取是否有选课信息
|
||||
defHttp.get({ url: '/shangbaoPracticePaln/shangbaoPracticePlanInfoXz/list', params: { pageNo: paginationYxkcProp.value.current,pageSize:paginationYxkcProp.value.pageSize } }).then((res) => {
|
||||
console.log('🧛', res);
|
||||
if (res.records.length == 0) {
|
||||
sfxk.value = 0;
|
||||
checkData.value = [];
|
||||
} else {
|
||||
sfxk.value = 999;
|
||||
checkData.value = res.records;
|
||||
paginationYxkcProp.value.total = res.total;
|
||||
paginationYxkcProp.value.current = res.current;
|
||||
searchQuery2();
|
||||
}
|
||||
});
|
||||
}
|
||||
// 自动请求并暴露内部方法
|
||||
onMounted(() => {
|
||||
init2();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.jeecg-basic-table-form-container {
|
||||
padding: 0;
|
||||
.table-page-search-submitButtons {
|
||||
display: block;
|
||||
margin-bottom: 24px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.query-group-cust {
|
||||
min-width: 100px !important;
|
||||
}
|
||||
.query-group-split-cust {
|
||||
width: 30px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
}
|
||||
.ant-form-item:not(.ant-form-item-with-help) {
|
||||
margin-bottom: 16px;
|
||||
height: 32px;
|
||||
}
|
||||
:deep(.ant-picker),
|
||||
:deep(.ant-input-number) {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.query-criteria {
|
||||
padding-top: 22px;
|
||||
border: 1px solid #eaeef6;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.query-criteria:hover {
|
||||
border: 1px solid #c5d8ff;
|
||||
box-shadow: 2px 2px 10px 2px #e8ecf4;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.table-style {
|
||||
padding: 10px;
|
||||
background: #fff;
|
||||
border: 1px solid #eaeef6;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.table-style:hover {
|
||||
border: 1px solid #e8ecf4;
|
||||
box-shadow: 2px 2px 10px 2px #e8ecf4;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.xn-title {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.selection-title {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.seleciton-line {
|
||||
background: #1890ff;
|
||||
border-radius: 10px;
|
||||
color: #1890ff;
|
||||
}
|
||||
.mbxtitle {
|
||||
font-size: 22px;
|
||||
line-height: 22px;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,530 @@
|
|||
<template>
|
||||
<div class="p-2">
|
||||
<!-- 未选课页面 -->
|
||||
<div v-if="sfxk == 0">
|
||||
<div style="text-align: center">
|
||||
<img src="../../../assets/images/Course-selection.png" style="margin-top: 100px; width: 600px" />
|
||||
<div style="color: #606266; font-weight: 700; font-size: 20px; margin-top: 20px">您还没有实习实践材料,请先选择实习实践材料</div>
|
||||
<a-button type="primary" style="margin-left: 10px; margin-top: 10px" @click="handleXuanke">选实习实践材料</a-button>
|
||||
</div>
|
||||
</div>
|
||||
<!-- 选课页面 -->
|
||||
<div v-if="sfxk == 1">
|
||||
<!--引用表格-->
|
||||
<BasicTable @register="registerTable" class="table-style" :rowSelection="rowSelection">
|
||||
<template #tableTitle>
|
||||
<span class="seleciton-line">1</span> <span class="selection-title">已选实习实践</span>
|
||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item key="1" @click="batchHandleDelete">
|
||||
<Icon icon="ant-design:delete-outlined"></Icon>
|
||||
删除
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
<a-button >批量操作
|
||||
<Icon icon="mdi:chevron-down"></Icon>
|
||||
</a-button>
|
||||
</a-dropdown>
|
||||
</template>
|
||||
<!--操作栏-->
|
||||
<template #action="{ record }">
|
||||
<TableAction :actions="getTableAction(record)" />
|
||||
</template>
|
||||
</BasicTable>
|
||||
|
||||
<div class="jeecg-basic-table-form-container" style="margin-top: 10px">
|
||||
<a-form
|
||||
ref="formRef"
|
||||
@keyup.enter.native="searchQuery2"
|
||||
:model="queryParam"
|
||||
:label-col="labelCol"
|
||||
:wrapper-col="wrapperCol"
|
||||
class="query-criteria"
|
||||
>
|
||||
<a-row :gutter="24">
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="planName">
|
||||
<template #label><span title="实践计划名称">实践计划名称</span></template>
|
||||
<a-input placeholder="请输入实践计划名称" v-model:value="queryParam2.planName" allow-clear></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="planTypeName">
|
||||
<template #label><span title="实践计划类型">实践计划类型</span></template>
|
||||
<a-input placeholder="请输入实践计划类型" v-model:value="queryParam2.planTypeName" allow-clear></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12" style="text-align: right">
|
||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery2">查询</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
<a-table
|
||||
:columns="columns2"
|
||||
:data-source="dataList"
|
||||
v-model:current="paginationProp.current"
|
||||
:total="paginationProp.total"
|
||||
:pagination="paginationProp"
|
||||
@change="onPageChange"
|
||||
>
|
||||
<template #title><span class="seleciton-line">1</span> <span class="selection-title">可选实习实践</span></template>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.dataIndex === 'action'">
|
||||
<a @click="handleXUanze(record)" v-if="!record.createBy">选择</a>
|
||||
<a disabled v-if="record.createBy">已选择</a>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
<!-- 查看实习实践材料 -->
|
||||
<div v-if="sfxk == 2">
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form class="query-criteria">
|
||||
<a-button type="primary" style="margin-left: 10px; margin-bottom: 15px" @click="handleFanhui">返回</a-button>
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol">
|
||||
<span class="seleciton-line">1</span> <span class="selection-title">基础信息</span>
|
||||
<a-row>
|
||||
<a-col :span="12">
|
||||
<a-form-item label="实践计划名称">
|
||||
{{ sxsjInfo.value.planName }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="12">
|
||||
<a-form-item label="实践计划类型">
|
||||
{{ sxsjInfo.value.planTypeName }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<!-- <div style="width: 100; text-align: right"><a-button type="primary" @click="batchHandleDown(sxsjInfo)">下载全部材料</a-button></div> -->
|
||||
<!-- 数量及要求 -->
|
||||
|
||||
<a-tabs v-model:activeKey="activeKey" type="card" >
|
||||
<a-tab-pane key="1" tab="数量及要求">
|
||||
<a-table
|
||||
:columns="columns4"
|
||||
:data-source="dataList2"
|
||||
:pagination="false"
|
||||
>
|
||||
</a-table>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="2" tab="学生名单">
|
||||
<a-table
|
||||
:columns="columns5"
|
||||
:data-source="dataList3"
|
||||
:pagination="false"
|
||||
>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.dataIndex === 'action'">
|
||||
<a @click="handleXsmd(record)">查看材料</a>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="3" tab="学生资源汇总">
|
||||
<div v-show="dataList4.length == 0" style="text-align: center;line-height: 200px;">
|
||||
<span style="margin-top:30px;font-size:20px;color:red;">您未选择学生或者此学生没有数据,请到学生名单中切换到其他学生进行查询!</span>
|
||||
</div>
|
||||
<div v-show="dataList4.length > 0">
|
||||
<a-table
|
||||
:columns="columns6"
|
||||
:data-source="dataList4"
|
||||
:pagination="false"
|
||||
>
|
||||
</a-table>
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="4" tab="学生资源清单">
|
||||
<div v-show="dataList5.length == 0" style="text-align: center;line-height: 200px;">
|
||||
<span style="margin-top:30px;font-size:20px;color:red;">您未选择学生或者此学生没有数据,请到学生名单中切换到其他学生进行查询!</span>
|
||||
</div>
|
||||
<div v-show="dataList5.length > 0">
|
||||
<a-table
|
||||
:columns="columns7"
|
||||
:data-source="dataList5"
|
||||
:pagination="false"
|
||||
>
|
||||
<template #bodyCell="{ column, record }">
|
||||
<template v-if="column.dataIndex === 'action'">
|
||||
<a @click="handleDownload(record)">下载</a>
|
||||
<a-divider type="vertical" style="height: 30px;" />
|
||||
<a @click="handleYulan(record)">预览</a>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
</a-form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="lwKhclXz-lwKhclXz" setup>
|
||||
import { ref, reactive, onMounted } from 'vue';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { deleteXkxxOne } from '/@/views/bl/lwKhclXz/LwKhclXz.api';
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||
import { downloadFile, downloadFileLoacl } from '/@/utils/common/renderUtils';
|
||||
import { getFileAccessHttpUrl } from '@/utils/common/compUtils';
|
||||
import { encryptByBase64 } from '@/utils/cipher';
|
||||
import JInput from '/@/components/Form/src/jeecg/components/JInput.vue';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useGlobSetting } from '/@/hooks/setting';
|
||||
|
||||
|
||||
import { columns,columns2 ,columns3,columns4,columns5,columns6,columns7} from './ShangbaoPracticePlanInfo.data';
|
||||
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './ShangbaoPracticePlanInfo.api';
|
||||
|
||||
|
||||
const globSetting = useGlobSetting();
|
||||
const baseApiUrl = globSetting.domainUrl;
|
||||
const formRef = ref();
|
||||
const queryParam = reactive<any>({});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
const userStore = useUserStore();
|
||||
const queryParam2 = ref<any>({});
|
||||
const sfsjType = ref<any>({});
|
||||
const emit = defineEmits(['callback']);
|
||||
const checkData = ref<any>([]);
|
||||
const dataList = ref<any>([]);
|
||||
const dataList2 = ref<any>([]);
|
||||
const dataList3 = ref<any>([]);
|
||||
const dataList4 = ref<any>([]);
|
||||
const dataList5 = ref<any>([]);
|
||||
const sfxk = ref<number>(0);
|
||||
const sxsjInfo = reactive<any>({});
|
||||
const docUrl = ref<string>('');
|
||||
const activeKey = ref('1');
|
||||
const ktbgUrl = ref<string>('');
|
||||
const ktbgshyjUrl = ref<string>('');
|
||||
const zqjcUrl = ref<string>('');
|
||||
const lwzgUrl = ref<string>('');
|
||||
const zdjldUrl = ref<string>('');
|
||||
const jcbgUrl = ref<string>('');
|
||||
|
||||
let onlinePreviewDomain = '';
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
tableProps: {
|
||||
api: list,
|
||||
columns: columns3,
|
||||
canResize: false,
|
||||
useSearchForm: false,
|
||||
actionColumn: {
|
||||
width: 120,
|
||||
fixed: 'right',
|
||||
},
|
||||
beforeFetch: async (params) => {
|
||||
return Object.assign(params, queryParam);
|
||||
},
|
||||
},
|
||||
exportConfig: {
|
||||
name: '教务系统教学任务',
|
||||
url: getExportUrl,
|
||||
params: queryParam,
|
||||
},
|
||||
});
|
||||
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] =tableContext;
|
||||
//批量下载
|
||||
async function batchHandleDown(record) {
|
||||
console.log('🙍♂️', record);
|
||||
// 毕业实习实践-学院-专业-学生姓名-学号
|
||||
var downName =
|
||||
'毕业实习实践-' +
|
||||
record.value.ssyxmc +
|
||||
'-' +
|
||||
(record.value.ssxnzymc ? record.value.ssxnzymc : '') +
|
||||
'-' +
|
||||
record.value.xsxm +
|
||||
'-' +
|
||||
record.value.xsxh +
|
||||
'';
|
||||
var params = { id: record.value.id, downName };
|
||||
console.log('🕵', params);
|
||||
defHttp.post({ url: '/lwKhclXz/lwKhclXz/getLwBatchDown', params: { id: record.value.id, downName } }).then((res) => {
|
||||
console.log('---------', res);
|
||||
downloadFileLoacl(res.downLoadPath);
|
||||
});
|
||||
}
|
||||
//下载
|
||||
function handleDownload(record) {
|
||||
console.log("🚀 ~ handleDownload ~ record:", record)
|
||||
downloadFile(record.resourcePath);
|
||||
}
|
||||
//查看学生名单
|
||||
function handleXsmd(record) {
|
||||
// let toDom: any = document?.querySelector('#section1');
|
||||
// let topNum = toDom?.offsetTop??20;
|
||||
// document.body.scrollTop = topNum;
|
||||
// sfsjType.value = "2";
|
||||
activeKey.value = '3';
|
||||
|
||||
//学生资源汇总
|
||||
defHttp.get({ url: '/shangbaoPracticePaln/shangbaoPracticePalnUserResCount/list',params:{planId:record.planId,pageSize:-1,studentId:record.studentId} }).then((res) => {
|
||||
dataList4.value = res.records;
|
||||
});
|
||||
//学生资源清单
|
||||
defHttp.get({ url: '/shangbaoPracticePaln/shangbaoPracticePalnUserResDetail/list',params:{planId:record.planId,pageSize:-1,studentId:record.studentId} }).then((res) => {
|
||||
dataList5.value = res.records;
|
||||
});
|
||||
|
||||
}
|
||||
//预览
|
||||
function handleYulan(record) {
|
||||
console.log('😶', record);
|
||||
var file = getFileAccessHttpUrl(record.resourcePath);
|
||||
window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||
}
|
||||
//查看实习实践材料
|
||||
async function handleChakan(record) {
|
||||
sxsjInfo.value = record;
|
||||
sfxk.value = 2;
|
||||
sfsjType.value = "1";
|
||||
dataList4.value = [];
|
||||
dataList5.value = [];
|
||||
//查询数量及要求
|
||||
defHttp.get({ url: '/shangbaoPracticePaln/shangbaoPracticePalnTimeTask/list',params:{planId:record.planId,pageSize:-1} }).then((res) => {
|
||||
dataList2.value = res.records;
|
||||
});
|
||||
//查询学生名单
|
||||
defHttp.get({ url: '/shangbaoPracticePaln/shangbaoPracticePalnUser/list',params:{planId:record.planId,pageSize:-1} }).then((res) => {
|
||||
dataList3.value = res.records;
|
||||
});
|
||||
}
|
||||
|
||||
const getViewFileDomain = () => defHttp.get({ url: '/sys/comment/getFileViewDomain' });
|
||||
/**
|
||||
* 初始化domain
|
||||
*/
|
||||
async function initViewDomain() {
|
||||
if (!onlinePreviewDomain) {
|
||||
onlinePreviewDomain = await getViewFileDomain();
|
||||
}
|
||||
if (!onlinePreviewDomain.startsWith('http')) {
|
||||
onlinePreviewDomain = 'http://' + onlinePreviewDomain;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 操作栏
|
||||
*/
|
||||
function getTableAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '查看材料',
|
||||
onClick: handleChakan.bind(null, record),
|
||||
},
|
||||
];
|
||||
}
|
||||
//注册table数据
|
||||
const labelCol = reactive({
|
||||
xs: 24,
|
||||
sm: 8,
|
||||
xl: 8,
|
||||
xxl: 8,
|
||||
});
|
||||
const wrapperCol = reactive({
|
||||
xs: 24,
|
||||
sm: 14,
|
||||
});
|
||||
|
||||
const paginationProp = ref<any>({
|
||||
total: 1,
|
||||
current: 1,
|
||||
pageSize: 10,
|
||||
pageNo: 1,
|
||||
});
|
||||
const paginationYxkcProp = ref<any>({
|
||||
total: 1,
|
||||
current: 1,
|
||||
pageSize: 10,
|
||||
pageNo: 1,
|
||||
});
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery() {
|
||||
reload();
|
||||
}
|
||||
//选课
|
||||
function handleXuanke() {
|
||||
sfxk.value = 1;
|
||||
searchQuery2();
|
||||
}
|
||||
|
||||
//选课提交
|
||||
function handleXUanze(record) {
|
||||
record.mainId = record.id;
|
||||
record.id = null;
|
||||
console.log('😰record----------', record);
|
||||
defHttp.post({
|
||||
url: '/shangbaoPracticePaln/shangbaoPracticePlanInfoXz/add',
|
||||
params: record,
|
||||
})
|
||||
.then((res) => {
|
||||
console.log('🤛', res);
|
||||
});
|
||||
xtsuccess();
|
||||
}
|
||||
//选课删除
|
||||
async function handleDel(record) {
|
||||
await deleteXkxxOne({ id: record.id }, xtsuccess);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 批量删除事件
|
||||
*/
|
||||
async function batchHandleDelete() {
|
||||
await batchDelete({ ids: selectedRowKeys.value }, xtsuccess);
|
||||
}
|
||||
|
||||
function xtsuccess() {
|
||||
|
||||
selectedRowKeys.value=[]
|
||||
reload();
|
||||
searchQuery2();
|
||||
}
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery2() {
|
||||
queryParam2.value.pageNo = paginationProp.value.current;
|
||||
defHttp.get({ url: '/shangbaoPracticePaln/shangbaoPracticePlanInfoXz/getZjList', params: { pageNo: paginationProp.value.current,pageSize:paginationProp.value.pageSize, ...queryParam2.value } }).then((res) => {
|
||||
dataList.value = res.records;
|
||||
paginationProp.value.total = res.total;
|
||||
// paginationProp.value.current = res.pageNo;
|
||||
});
|
||||
}
|
||||
|
||||
//翻页方法
|
||||
async function onPageChange(record) {
|
||||
console.log('👬', record);
|
||||
paginationProp.value.current = record.current;
|
||||
paginationProp.value.pageSize = record.pageSize;
|
||||
await searchQuery2();
|
||||
}
|
||||
//翻页方法
|
||||
async function onPageYxkcChange(record) {
|
||||
paginationYxkcProp.value.current = record.current;
|
||||
paginationYxkcProp.value.pageSize = record.pageSize;
|
||||
console.log("🚀 ~ onPageYxkcChange ~ paginationYxkcProp.value:", paginationYxkcProp.value)
|
||||
await init();
|
||||
}
|
||||
|
||||
//返回首页
|
||||
function handleFanhui() {
|
||||
sfxk.value = 1;
|
||||
reload();
|
||||
}
|
||||
|
||||
function init() {
|
||||
//获取是否有选课信息
|
||||
defHttp.get({ url: '/lwKhclXz/lwKhclXz/list', params: { pageNo: paginationYxkcProp.value.current,pageSize:paginationYxkcProp.value.pageSize } }).then((res) => {
|
||||
console.log('🧛', res);
|
||||
checkData.value = res.records;
|
||||
paginationYxkcProp.value.total = res.total;
|
||||
paginationYxkcProp.value.current = res.current;
|
||||
});
|
||||
}
|
||||
|
||||
function init2() {
|
||||
//获取是否有选课信息
|
||||
defHttp.get({ url: '/shangbaoPracticePaln/shangbaoPracticePlanInfoXz/list', params: { pageNo: paginationYxkcProp.value.current,pageSize:paginationYxkcProp.value.pageSize } }).then((res) => {
|
||||
console.log('🧛', res);
|
||||
if (res.records.length == 0) {
|
||||
sfxk.value = 0;
|
||||
checkData.value = [];
|
||||
} else {
|
||||
sfxk.value = 1;
|
||||
checkData.value = res.records;
|
||||
paginationYxkcProp.value.total = res.total;
|
||||
paginationYxkcProp.value.current = res.current;
|
||||
searchQuery2();
|
||||
}
|
||||
});
|
||||
}
|
||||
// 自动请求并暴露内部方法
|
||||
onMounted(() => {
|
||||
init2();
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.jeecg-basic-table-form-container {
|
||||
padding: 0;
|
||||
.table-page-search-submitButtons {
|
||||
display: block;
|
||||
margin-bottom: 24px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.query-group-cust {
|
||||
min-width: 100px !important;
|
||||
}
|
||||
.query-group-split-cust {
|
||||
width: 30px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
}
|
||||
.ant-form-item:not(.ant-form-item-with-help) {
|
||||
margin-bottom: 16px;
|
||||
height: 32px;
|
||||
}
|
||||
:deep(.ant-picker),
|
||||
:deep(.ant-input-number) {
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
.query-criteria {
|
||||
padding-top: 22px;
|
||||
border: 1px solid #eaeef6;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.query-criteria:hover {
|
||||
border: 1px solid #c5d8ff;
|
||||
box-shadow: 2px 2px 10px 2px #e8ecf4;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.table-style {
|
||||
padding: 10px;
|
||||
background: #fff;
|
||||
border: 1px solid #eaeef6;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.table-style:hover {
|
||||
border: 1px solid #e8ecf4;
|
||||
box-shadow: 2px 2px 10px 2px #e8ecf4;
|
||||
border-radius: 4px;
|
||||
}
|
||||
.xn-title {
|
||||
font-size: 16px;
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.selection-title {
|
||||
font-size: 18px;
|
||||
font-weight: 700;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.seleciton-line {
|
||||
background: #1890ff;
|
||||
border-radius: 10px;
|
||||
color: #1890ff;
|
||||
}
|
||||
.mbxtitle {
|
||||
font-size: 22px;
|
||||
line-height: 22px;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,72 @@
|
|||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from "/@/hooks/web/useMessage";
|
||||
|
||||
const { createConfirm } = useMessage();
|
||||
|
||||
enum Api {
|
||||
list = '/shangbaoPracticePaln/shangbaoPracticePalnTimeTask/list',
|
||||
save='/shangbaoPracticePaln/shangbaoPracticePalnTimeTask/add',
|
||||
edit='/shangbaoPracticePaln/shangbaoPracticePalnTimeTask/edit',
|
||||
deleteOne = '/shangbaoPracticePaln/shangbaoPracticePalnTimeTask/delete',
|
||||
deleteBatch = '/shangbaoPracticePaln/shangbaoPracticePalnTimeTask/deleteBatch',
|
||||
importExcel = '/shangbaoPracticePaln/shangbaoPracticePalnTimeTask/importExcel',
|
||||
exportXls = '/shangbaoPracticePaln/shangbaoPracticePalnTimeTask/exportXls',
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出api
|
||||
* @param params
|
||||
*/
|
||||
export const getExportUrl = Api.exportXls;
|
||||
|
||||
/**
|
||||
* 导入api
|
||||
*/
|
||||
export const getImportUrl = Api.importExcel;
|
||||
|
||||
/**
|
||||
* 列表接口
|
||||
* @param params
|
||||
*/
|
||||
export const list = (params) => defHttp.get({ url: Api.list, params });
|
||||
|
||||
/**
|
||||
* 删除单个
|
||||
* @param params
|
||||
* @param handleSuccess
|
||||
*/
|
||||
export const deleteOne = (params,handleSuccess) => {
|
||||
return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
|
||||
handleSuccess();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
* @param params
|
||||
* @param handleSuccess
|
||||
*/
|
||||
export const batchDelete = (params, handleSuccess) => {
|
||||
createConfirm({
|
||||
iconType: 'warning',
|
||||
title: '确认删除',
|
||||
content: '是否删除选中数据',
|
||||
okText: '确认',
|
||||
cancelText: '取消',
|
||||
onOk: () => {
|
||||
return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => {
|
||||
handleSuccess();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存或者更新
|
||||
* @param params
|
||||
* @param isUpdate
|
||||
*/
|
||||
export const saveOrUpdate = (params, isUpdate) => {
|
||||
let url = isUpdate ? Api.edit : Api.save;
|
||||
return defHttp.post({ url: url, params }, { isTransformResponse: false });
|
||||
}
|
|
@ -0,0 +1,78 @@
|
|||
import {BasicColumn} from '/@/components/Table';
|
||||
import {FormSchema} from '/@/components/Table';
|
||||
import { rules} from '/@/utils/helper/validator';
|
||||
import { render } from '/@/utils/common/renderUtils';
|
||||
import { getWeekMonthQuarterYear } from '/@/utils';
|
||||
//列表数据
|
||||
export const columns: BasicColumn[] = [
|
||||
{
|
||||
title: '实践计划id',
|
||||
align: "center",
|
||||
dataIndex: 'planId'
|
||||
},
|
||||
{
|
||||
title: '实践计划名称',
|
||||
align: "center",
|
||||
dataIndex: 'planName'
|
||||
},
|
||||
{
|
||||
title: '类型',
|
||||
align: "center",
|
||||
dataIndex: 'planTypeName'
|
||||
},
|
||||
{
|
||||
title: '阶段id',
|
||||
align: "center",
|
||||
dataIndex: 'stepId'
|
||||
},
|
||||
{
|
||||
title: '阶段名称',
|
||||
align: "center",
|
||||
dataIndex: 'stepName'
|
||||
},
|
||||
{
|
||||
title: '阶段开始时间',
|
||||
align: "center",
|
||||
dataIndex: 'stepStartTime'
|
||||
},
|
||||
{
|
||||
title: '阶段结束时间',
|
||||
align: "center",
|
||||
dataIndex: 'stepEndTime'
|
||||
},
|
||||
{
|
||||
title: '子分类id',
|
||||
align: "center",
|
||||
dataIndex: 'taskId'
|
||||
},
|
||||
{
|
||||
title: '子分类名称',
|
||||
align: "center",
|
||||
dataIndex: 'taskName'
|
||||
},
|
||||
{
|
||||
title: '分类关联id',
|
||||
align: "center",
|
||||
dataIndex: 'timeTaskId'
|
||||
},
|
||||
{
|
||||
title: '要求上传资源数',
|
||||
align: "center",
|
||||
dataIndex: 'sysResCount'
|
||||
},
|
||||
];
|
||||
|
||||
// 高级查询数据
|
||||
export const superQuerySchema = {
|
||||
planId: {title: '实践计划id',order: 0,view: 'text', type: 'string',},
|
||||
planName: {title: '实践计划名称',order: 1,view: 'text', type: 'string',},
|
||||
planTypeName: {title: '类型',order: 2,view: 'text', type: 'string',},
|
||||
stepId: {title: '阶段id',order: 3,view: 'text', type: 'string',},
|
||||
stepName: {title: '阶段名称',order: 4,view: 'text', type: 'string',},
|
||||
stepStartTime: {title: '阶段开始时间',order: 5,view: 'datetime', type: 'string',},
|
||||
stepEndTime: {title: '阶段结束时间',order: 6,view: 'datetime', type: 'string',},
|
||||
taskId: {title: '子分类id',order: 7,view: 'text', type: 'string',},
|
||||
taskName: {title: '子分类名称',order: 8,view: 'text', type: 'string',},
|
||||
timeTaskId: {title: '分类关联id',order: 9,view: 'text', type: 'string',},
|
||||
sysResCount: {title: '要求上传资源数',order: 10,view: 'number', type: 'number',},
|
||||
};
|
|
@ -0,0 +1,235 @@
|
|||
<template>
|
||||
<div class="p-2">
|
||||
<!--查询区域-->
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||
<a-row :gutter="24">
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
<!--引用表格-->
|
||||
<BasicTable @register="registerTable" :rowSelection="rowSelection">
|
||||
<!--插槽:table标题-->
|
||||
<template #tableTitle>
|
||||
<a-button type="primary" v-auth="'shangbaoPracticePaln:shangbao_practice_paln_time_task:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
|
||||
<a-button type="primary" v-auth="'shangbaoPracticePaln:shangbao_practice_paln_time_task:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
|
||||
<j-upload-button type="primary" v-auth="'shangbaoPracticePaln:shangbao_practice_paln_time_task:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
|
||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item key="1" @click="batchHandleDelete">
|
||||
<Icon icon="ant-design:delete-outlined"></Icon>
|
||||
删除
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
<a-button v-auth="'shangbaoPracticePaln:shangbao_practice_paln_time_task:deleteBatch'">批量操作
|
||||
<Icon icon="mdi:chevron-down"></Icon>
|
||||
</a-button>
|
||||
</a-dropdown>
|
||||
<!-- 高级查询 -->
|
||||
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
|
||||
</template>
|
||||
<!--操作栏-->
|
||||
<template #action="{ record }">
|
||||
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)"/>
|
||||
</template>
|
||||
<template v-slot:bodyCell="{ column, record, index, text }">
|
||||
</template>
|
||||
</BasicTable>
|
||||
<!-- 表单区域 -->
|
||||
<ShangbaoPracticePalnTimeTaskModal ref="registerModal" @success="handleSuccess"></ShangbaoPracticePalnTimeTaskModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="shangbaoPracticePaln-shangbaoPracticePalnTimeTask" setup>
|
||||
import { ref, reactive } from 'vue';
|
||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { columns, superQuerySchema } from './ShangbaoPracticePalnTimeTask.data';
|
||||
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './ShangbaoPracticePalnTimeTask.api';
|
||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
import ShangbaoPracticePalnTimeTaskModal from './components/ShangbaoPracticePalnTimeTaskModal.vue'
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
|
||||
const formRef = ref();
|
||||
const queryParam = reactive<any>({});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
const userStore = useUserStore();
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
tableProps: {
|
||||
title: '实践计划子分类及上传数要求',
|
||||
api: list,
|
||||
columns,
|
||||
canResize:false,
|
||||
useSearchForm: false,
|
||||
actionColumn: {
|
||||
width: 120,
|
||||
fixed: 'right',
|
||||
},
|
||||
beforeFetch: async (params) => {
|
||||
return Object.assign(params, queryParam);
|
||||
},
|
||||
},
|
||||
exportConfig: {
|
||||
name: "实践计划子分类及上传数要求",
|
||||
url: getExportUrl,
|
||||
params: queryParam,
|
||||
},
|
||||
importConfig: {
|
||||
url: getImportUrl,
|
||||
success: handleSuccess
|
||||
},
|
||||
});
|
||||
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] = tableContext;
|
||||
const labelCol = reactive({
|
||||
xs:24,
|
||||
sm:4,
|
||||
xl:6,
|
||||
xxl:4
|
||||
});
|
||||
const wrapperCol = reactive({
|
||||
xs: 24,
|
||||
sm: 20,
|
||||
});
|
||||
|
||||
// 高级查询配置
|
||||
const superQueryConfig = reactive(superQuerySchema);
|
||||
|
||||
/**
|
||||
* 高级查询事件
|
||||
*/
|
||||
function handleSuperQuery(params) {
|
||||
Object.keys(params).map((k) => {
|
||||
queryParam[k] = params[k];
|
||||
});
|
||||
searchQuery();
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增事件
|
||||
*/
|
||||
function handleAdd() {
|
||||
registerModal.value.disableSubmit = false;
|
||||
registerModal.value.add();
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑事件
|
||||
*/
|
||||
function handleEdit(record: Recordable) {
|
||||
registerModal.value.disableSubmit = false;
|
||||
registerModal.value.edit(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*/
|
||||
function handleDetail(record: Recordable) {
|
||||
registerModal.value.disableSubmit = true;
|
||||
registerModal.value.edit(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除事件
|
||||
*/
|
||||
async function handleDelete(record) {
|
||||
await deleteOne({ id: record.id }, handleSuccess);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除事件
|
||||
*/
|
||||
async function batchHandleDelete() {
|
||||
await batchDelete({ ids: selectedRowKeys.value }, handleSuccess);
|
||||
}
|
||||
|
||||
/**
|
||||
* 成功回调
|
||||
*/
|
||||
function handleSuccess() {
|
||||
(selectedRowKeys.value = []) && reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 操作栏
|
||||
*/
|
||||
function getTableAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '编辑',
|
||||
onClick: handleEdit.bind(null, record),
|
||||
auth: 'shangbaoPracticePaln:shangbao_practice_paln_time_task:edit'
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* 下拉操作栏
|
||||
*/
|
||||
function getDropDownAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '详情',
|
||||
onClick: handleDetail.bind(null, record),
|
||||
}, {
|
||||
label: '删除',
|
||||
popConfirm: {
|
||||
title: '是否确认删除',
|
||||
confirm: handleDelete.bind(null, record),
|
||||
placement: 'topLeft',
|
||||
},
|
||||
auth: 'shangbaoPracticePaln:shangbao_practice_paln_time_task:delete'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery() {
|
||||
reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置
|
||||
*/
|
||||
function searchReset() {
|
||||
formRef.value.resetFields();
|
||||
selectedRowKeys.value = [];
|
||||
//刷新数据
|
||||
reload();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.jeecg-basic-table-form-container {
|
||||
padding: 0;
|
||||
.table-page-search-submitButtons {
|
||||
display: block;
|
||||
margin-bottom: 24px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.query-group-cust{
|
||||
min-width: 100px !important;
|
||||
}
|
||||
.query-group-split-cust{
|
||||
width: 30px;
|
||||
display: inline-block;
|
||||
text-align: center
|
||||
}
|
||||
.ant-form-item:not(.ant-form-item-with-help){
|
||||
margin-bottom: 16px;
|
||||
height: 32px;
|
||||
}
|
||||
:deep(.ant-picker),:deep(.ant-input-number){
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,72 @@
|
|||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from "/@/hooks/web/useMessage";
|
||||
|
||||
const { createConfirm } = useMessage();
|
||||
|
||||
enum Api {
|
||||
list = '/shangbaoPracticePaln/shangbaoPracticePalnUser/list',
|
||||
save='/shangbaoPracticePaln/shangbaoPracticePalnUser/add',
|
||||
edit='/shangbaoPracticePaln/shangbaoPracticePalnUser/edit',
|
||||
deleteOne = '/shangbaoPracticePaln/shangbaoPracticePalnUser/delete',
|
||||
deleteBatch = '/shangbaoPracticePaln/shangbaoPracticePalnUser/deleteBatch',
|
||||
importExcel = '/shangbaoPracticePaln/shangbaoPracticePalnUser/importExcel',
|
||||
exportXls = '/shangbaoPracticePaln/shangbaoPracticePalnUser/exportXls',
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出api
|
||||
* @param params
|
||||
*/
|
||||
export const getExportUrl = Api.exportXls;
|
||||
|
||||
/**
|
||||
* 导入api
|
||||
*/
|
||||
export const getImportUrl = Api.importExcel;
|
||||
|
||||
/**
|
||||
* 列表接口
|
||||
* @param params
|
||||
*/
|
||||
export const list = (params) => defHttp.get({ url: Api.list, params });
|
||||
|
||||
/**
|
||||
* 删除单个
|
||||
* @param params
|
||||
* @param handleSuccess
|
||||
*/
|
||||
export const deleteOne = (params,handleSuccess) => {
|
||||
return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
|
||||
handleSuccess();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
* @param params
|
||||
* @param handleSuccess
|
||||
*/
|
||||
export const batchDelete = (params, handleSuccess) => {
|
||||
createConfirm({
|
||||
iconType: 'warning',
|
||||
title: '确认删除',
|
||||
content: '是否删除选中数据',
|
||||
okText: '确认',
|
||||
cancelText: '取消',
|
||||
onOk: () => {
|
||||
return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => {
|
||||
handleSuccess();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存或者更新
|
||||
* @param params
|
||||
* @param isUpdate
|
||||
*/
|
||||
export const saveOrUpdate = (params, isUpdate) => {
|
||||
let url = isUpdate ? Api.edit : Api.save;
|
||||
return defHttp.post({ url: url, params }, { isTransformResponse: false });
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
import {BasicColumn} from '/@/components/Table';
|
||||
import {FormSchema} from '/@/components/Table';
|
||||
import { rules} from '/@/utils/helper/validator';
|
||||
import { render } from '/@/utils/common/renderUtils';
|
||||
import { getWeekMonthQuarterYear } from '/@/utils';
|
||||
//列表数据
|
||||
export const columns: BasicColumn[] = [
|
||||
{
|
||||
title: '实践计划id',
|
||||
align: "center",
|
||||
dataIndex: 'planId'
|
||||
},
|
||||
{
|
||||
title: '实践计划名称',
|
||||
align: "center",
|
||||
dataIndex: 'planName'
|
||||
},
|
||||
{
|
||||
title: '学院id',
|
||||
align: "center",
|
||||
dataIndex: 'orgId'
|
||||
},
|
||||
{
|
||||
title: '学院名称',
|
||||
align: "center",
|
||||
dataIndex: 'orgName'
|
||||
},
|
||||
{
|
||||
title: '学生id',
|
||||
align: "center",
|
||||
dataIndex: 'studentId'
|
||||
},
|
||||
{
|
||||
title: '学生姓名',
|
||||
align: "center",
|
||||
dataIndex: 'studentName'
|
||||
},
|
||||
];
|
||||
|
||||
// 高级查询数据
|
||||
export const superQuerySchema = {
|
||||
planId: {title: '实践计划id',order: 0,view: 'text', type: 'string',},
|
||||
planName: {title: '实践计划名称',order: 1,view: 'text', type: 'string',},
|
||||
orgId: {title: '学院id',order: 2,view: 'number', type: 'number',},
|
||||
orgName: {title: '学院名称',order: 3,view: 'text', type: 'string',},
|
||||
studentId: {title: '学生id',order: 4,view: 'number', type: 'number',},
|
||||
studentName: {title: '学生姓名',order: 5,view: 'text', type: 'string',},
|
||||
};
|
|
@ -0,0 +1,235 @@
|
|||
<template>
|
||||
<div class="p-2">
|
||||
<!--查询区域-->
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||
<a-row :gutter="24">
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
<!--引用表格-->
|
||||
<BasicTable @register="registerTable" :rowSelection="rowSelection">
|
||||
<!--插槽:table标题-->
|
||||
<template #tableTitle>
|
||||
<a-button type="primary" v-auth="'shangbaoPracticePaln:shangbao_practice_paln_user:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
|
||||
<a-button type="primary" v-auth="'shangbaoPracticePaln:shangbao_practice_paln_user:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
|
||||
<j-upload-button type="primary" v-auth="'shangbaoPracticePaln:shangbao_practice_paln_user:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
|
||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item key="1" @click="batchHandleDelete">
|
||||
<Icon icon="ant-design:delete-outlined"></Icon>
|
||||
删除
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
<a-button v-auth="'shangbaoPracticePaln:shangbao_practice_paln_user:deleteBatch'">批量操作
|
||||
<Icon icon="mdi:chevron-down"></Icon>
|
||||
</a-button>
|
||||
</a-dropdown>
|
||||
<!-- 高级查询 -->
|
||||
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
|
||||
</template>
|
||||
<!--操作栏-->
|
||||
<template #action="{ record }">
|
||||
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)"/>
|
||||
</template>
|
||||
<template v-slot:bodyCell="{ column, record, index, text }">
|
||||
</template>
|
||||
</BasicTable>
|
||||
<!-- 表单区域 -->
|
||||
<ShangbaoPracticePalnUserModal ref="registerModal" @success="handleSuccess"></ShangbaoPracticePalnUserModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="shangbaoPracticePaln-shangbaoPracticePalnUser" setup>
|
||||
import { ref, reactive } from 'vue';
|
||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { columns, superQuerySchema } from './ShangbaoPracticePalnUser.data';
|
||||
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './ShangbaoPracticePalnUser.api';
|
||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
import ShangbaoPracticePalnUserModal from './components/ShangbaoPracticePalnUserModal.vue'
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
|
||||
const formRef = ref();
|
||||
const queryParam = reactive<any>({});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
const userStore = useUserStore();
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
tableProps: {
|
||||
title: '实践计划学生表',
|
||||
api: list,
|
||||
columns,
|
||||
canResize:false,
|
||||
useSearchForm: false,
|
||||
actionColumn: {
|
||||
width: 120,
|
||||
fixed: 'right',
|
||||
},
|
||||
beforeFetch: async (params) => {
|
||||
return Object.assign(params, queryParam);
|
||||
},
|
||||
},
|
||||
exportConfig: {
|
||||
name: "实践计划学生表",
|
||||
url: getExportUrl,
|
||||
params: queryParam,
|
||||
},
|
||||
importConfig: {
|
||||
url: getImportUrl,
|
||||
success: handleSuccess
|
||||
},
|
||||
});
|
||||
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] = tableContext;
|
||||
const labelCol = reactive({
|
||||
xs:24,
|
||||
sm:4,
|
||||
xl:6,
|
||||
xxl:4
|
||||
});
|
||||
const wrapperCol = reactive({
|
||||
xs: 24,
|
||||
sm: 20,
|
||||
});
|
||||
|
||||
// 高级查询配置
|
||||
const superQueryConfig = reactive(superQuerySchema);
|
||||
|
||||
/**
|
||||
* 高级查询事件
|
||||
*/
|
||||
function handleSuperQuery(params) {
|
||||
Object.keys(params).map((k) => {
|
||||
queryParam[k] = params[k];
|
||||
});
|
||||
searchQuery();
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增事件
|
||||
*/
|
||||
function handleAdd() {
|
||||
registerModal.value.disableSubmit = false;
|
||||
registerModal.value.add();
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑事件
|
||||
*/
|
||||
function handleEdit(record: Recordable) {
|
||||
registerModal.value.disableSubmit = false;
|
||||
registerModal.value.edit(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*/
|
||||
function handleDetail(record: Recordable) {
|
||||
registerModal.value.disableSubmit = true;
|
||||
registerModal.value.edit(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除事件
|
||||
*/
|
||||
async function handleDelete(record) {
|
||||
await deleteOne({ id: record.id }, handleSuccess);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除事件
|
||||
*/
|
||||
async function batchHandleDelete() {
|
||||
await batchDelete({ ids: selectedRowKeys.value }, handleSuccess);
|
||||
}
|
||||
|
||||
/**
|
||||
* 成功回调
|
||||
*/
|
||||
function handleSuccess() {
|
||||
(selectedRowKeys.value = []) && reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 操作栏
|
||||
*/
|
||||
function getTableAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '编辑',
|
||||
onClick: handleEdit.bind(null, record),
|
||||
auth: 'shangbaoPracticePaln:shangbao_practice_paln_user:edit'
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* 下拉操作栏
|
||||
*/
|
||||
function getDropDownAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '详情',
|
||||
onClick: handleDetail.bind(null, record),
|
||||
}, {
|
||||
label: '删除',
|
||||
popConfirm: {
|
||||
title: '是否确认删除',
|
||||
confirm: handleDelete.bind(null, record),
|
||||
placement: 'topLeft',
|
||||
},
|
||||
auth: 'shangbaoPracticePaln:shangbao_practice_paln_user:delete'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery() {
|
||||
reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置
|
||||
*/
|
||||
function searchReset() {
|
||||
formRef.value.resetFields();
|
||||
selectedRowKeys.value = [];
|
||||
//刷新数据
|
||||
reload();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.jeecg-basic-table-form-container {
|
||||
padding: 0;
|
||||
.table-page-search-submitButtons {
|
||||
display: block;
|
||||
margin-bottom: 24px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.query-group-cust{
|
||||
min-width: 100px !important;
|
||||
}
|
||||
.query-group-split-cust{
|
||||
width: 30px;
|
||||
display: inline-block;
|
||||
text-align: center
|
||||
}
|
||||
.ant-form-item:not(.ant-form-item-with-help){
|
||||
margin-bottom: 16px;
|
||||
height: 32px;
|
||||
}
|
||||
:deep(.ant-picker),:deep(.ant-input-number){
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,72 @@
|
|||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from "/@/hooks/web/useMessage";
|
||||
|
||||
const { createConfirm } = useMessage();
|
||||
|
||||
enum Api {
|
||||
list = '/shangbaoPracticePaln/shangbaoPracticePalnUserResCount/list',
|
||||
save='/shangbaoPracticePaln/shangbaoPracticePalnUserResCount/add',
|
||||
edit='/shangbaoPracticePaln/shangbaoPracticePalnUserResCount/edit',
|
||||
deleteOne = '/shangbaoPracticePaln/shangbaoPracticePalnUserResCount/delete',
|
||||
deleteBatch = '/shangbaoPracticePaln/shangbaoPracticePalnUserResCount/deleteBatch',
|
||||
importExcel = '/shangbaoPracticePaln/shangbaoPracticePalnUserResCount/importExcel',
|
||||
exportXls = '/shangbaoPracticePaln/shangbaoPracticePalnUserResCount/exportXls',
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出api
|
||||
* @param params
|
||||
*/
|
||||
export const getExportUrl = Api.exportXls;
|
||||
|
||||
/**
|
||||
* 导入api
|
||||
*/
|
||||
export const getImportUrl = Api.importExcel;
|
||||
|
||||
/**
|
||||
* 列表接口
|
||||
* @param params
|
||||
*/
|
||||
export const list = (params) => defHttp.get({ url: Api.list, params });
|
||||
|
||||
/**
|
||||
* 删除单个
|
||||
* @param params
|
||||
* @param handleSuccess
|
||||
*/
|
||||
export const deleteOne = (params,handleSuccess) => {
|
||||
return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
|
||||
handleSuccess();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
* @param params
|
||||
* @param handleSuccess
|
||||
*/
|
||||
export const batchDelete = (params, handleSuccess) => {
|
||||
createConfirm({
|
||||
iconType: 'warning',
|
||||
title: '确认删除',
|
||||
content: '是否删除选中数据',
|
||||
okText: '确认',
|
||||
cancelText: '取消',
|
||||
onOk: () => {
|
||||
return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => {
|
||||
handleSuccess();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存或者更新
|
||||
* @param params
|
||||
* @param isUpdate
|
||||
*/
|
||||
export const saveOrUpdate = (params, isUpdate) => {
|
||||
let url = isUpdate ? Api.edit : Api.save;
|
||||
return defHttp.post({ url: url, params }, { isTransformResponse: false });
|
||||
}
|
|
@ -0,0 +1,102 @@
|
|||
import {BasicColumn} from '/@/components/Table';
|
||||
import {FormSchema} from '/@/components/Table';
|
||||
import { rules} from '/@/utils/helper/validator';
|
||||
import { render } from '/@/utils/common/renderUtils';
|
||||
import { getWeekMonthQuarterYear } from '/@/utils';
|
||||
//列表数据
|
||||
export const columns: BasicColumn[] = [
|
||||
{
|
||||
title: '实践计划id',
|
||||
align: "center",
|
||||
dataIndex: 'planId'
|
||||
},
|
||||
{
|
||||
title: '实践计划名称',
|
||||
align: "center",
|
||||
dataIndex: 'planName'
|
||||
},
|
||||
{
|
||||
title: '阶段id',
|
||||
align: "center",
|
||||
dataIndex: 'stepId'
|
||||
},
|
||||
{
|
||||
title: '阶段名称',
|
||||
align: "center",
|
||||
dataIndex: 'stepName'
|
||||
},
|
||||
{
|
||||
title: '阶段开始时间',
|
||||
align: "center",
|
||||
dataIndex: 'stepStartTime'
|
||||
},
|
||||
{
|
||||
title: '阶段结束时间',
|
||||
align: "center",
|
||||
dataIndex: 'stepEndTime'
|
||||
},
|
||||
{
|
||||
title: '子分类id',
|
||||
align: "center",
|
||||
dataIndex: 'taskId'
|
||||
},
|
||||
{
|
||||
title: '子分类名称',
|
||||
align: "center",
|
||||
dataIndex: 'taskName'
|
||||
},
|
||||
{
|
||||
title: '学院id',
|
||||
align: "center",
|
||||
dataIndex: 'orgId'
|
||||
},
|
||||
{
|
||||
title: '学院名称',
|
||||
align: "center",
|
||||
dataIndex: 'orgName'
|
||||
},
|
||||
{
|
||||
title: '学生id',
|
||||
align: "center",
|
||||
dataIndex: 'studentId'
|
||||
},
|
||||
{
|
||||
title: '学生姓名',
|
||||
align: "center",
|
||||
dataIndex: 'studentName'
|
||||
},
|
||||
{
|
||||
title: '学号',
|
||||
align: "center",
|
||||
dataIndex: 'personNum'
|
||||
},
|
||||
{
|
||||
title: '系统要求资源数',
|
||||
align: "center",
|
||||
dataIndex: 'sysResCount'
|
||||
},
|
||||
{
|
||||
title: '学生实际上传并审核通过资源数',
|
||||
align: "center",
|
||||
dataIndex: 'stuResCount'
|
||||
},
|
||||
];
|
||||
|
||||
// 高级查询数据
|
||||
export const superQuerySchema = {
|
||||
planId: {title: '实践计划id',order: 0,view: 'text', type: 'string',},
|
||||
planName: {title: '实践计划名称',order: 1,view: 'text', type: 'string',},
|
||||
stepId: {title: '阶段id',order: 2,view: 'text', type: 'string',},
|
||||
stepName: {title: '阶段名称',order: 3,view: 'text', type: 'string',},
|
||||
stepStartTime: {title: '阶段开始时间',order: 4,view: 'datetime', type: 'string',},
|
||||
stepEndTime: {title: '阶段结束时间',order: 5,view: 'datetime', type: 'string',},
|
||||
taskId: {title: '子分类id',order: 6,view: 'text', type: 'string',},
|
||||
taskName: {title: '子分类名称',order: 7,view: 'text', type: 'string',},
|
||||
orgId: {title: '学院id',order: 8,view: 'number', type: 'number',},
|
||||
orgName: {title: '学院名称',order: 9,view: 'text', type: 'string',},
|
||||
studentId: {title: '学生id',order: 10,view: 'number', type: 'number',},
|
||||
studentName: {title: '学生姓名',order: 11,view: 'text', type: 'string',},
|
||||
personNum: {title: '学号',order: 12,view: 'text', type: 'string',},
|
||||
sysResCount: {title: '系统要求资源数',order: 13,view: 'number', type: 'number',},
|
||||
stuResCount: {title: '学生实际上传并审核通过资源数',order: 14,view: 'number', type: 'number',},
|
||||
};
|
|
@ -0,0 +1,235 @@
|
|||
<template>
|
||||
<div class="p-2">
|
||||
<!--查询区域-->
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||
<a-row :gutter="24">
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
<!--引用表格-->
|
||||
<BasicTable @register="registerTable" :rowSelection="rowSelection">
|
||||
<!--插槽:table标题-->
|
||||
<template #tableTitle>
|
||||
<a-button type="primary" v-auth="'shangbaoPracticePaln:shangbao_practice_paln_user_res_count:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
|
||||
<a-button type="primary" v-auth="'shangbaoPracticePaln:shangbao_practice_paln_user_res_count:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
|
||||
<j-upload-button type="primary" v-auth="'shangbaoPracticePaln:shangbao_practice_paln_user_res_count:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
|
||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item key="1" @click="batchHandleDelete">
|
||||
<Icon icon="ant-design:delete-outlined"></Icon>
|
||||
删除
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
<a-button v-auth="'shangbaoPracticePaln:shangbao_practice_paln_user_res_count:deleteBatch'">批量操作
|
||||
<Icon icon="mdi:chevron-down"></Icon>
|
||||
</a-button>
|
||||
</a-dropdown>
|
||||
<!-- 高级查询 -->
|
||||
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
|
||||
</template>
|
||||
<!--操作栏-->
|
||||
<template #action="{ record }">
|
||||
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)"/>
|
||||
</template>
|
||||
<template v-slot:bodyCell="{ column, record, index, text }">
|
||||
</template>
|
||||
</BasicTable>
|
||||
<!-- 表单区域 -->
|
||||
<ShangbaoPracticePalnUserResCountModal ref="registerModal" @success="handleSuccess"></ShangbaoPracticePalnUserResCountModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="shangbaoPracticePaln-shangbaoPracticePalnUserResCount" setup>
|
||||
import { ref, reactive } from 'vue';
|
||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { columns, superQuerySchema } from './ShangbaoPracticePalnUserResCount.data';
|
||||
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './ShangbaoPracticePalnUserResCount.api';
|
||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
import ShangbaoPracticePalnUserResCountModal from './components/ShangbaoPracticePalnUserResCountModal.vue'
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
|
||||
const formRef = ref();
|
||||
const queryParam = reactive<any>({});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
const userStore = useUserStore();
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
tableProps: {
|
||||
title: '实践计划学生上传数表',
|
||||
api: list,
|
||||
columns,
|
||||
canResize:false,
|
||||
useSearchForm: false,
|
||||
actionColumn: {
|
||||
width: 120,
|
||||
fixed: 'right',
|
||||
},
|
||||
beforeFetch: async (params) => {
|
||||
return Object.assign(params, queryParam);
|
||||
},
|
||||
},
|
||||
exportConfig: {
|
||||
name: "实践计划学生上传数表",
|
||||
url: getExportUrl,
|
||||
params: queryParam,
|
||||
},
|
||||
importConfig: {
|
||||
url: getImportUrl,
|
||||
success: handleSuccess
|
||||
},
|
||||
});
|
||||
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] = tableContext;
|
||||
const labelCol = reactive({
|
||||
xs:24,
|
||||
sm:4,
|
||||
xl:6,
|
||||
xxl:4
|
||||
});
|
||||
const wrapperCol = reactive({
|
||||
xs: 24,
|
||||
sm: 20,
|
||||
});
|
||||
|
||||
// 高级查询配置
|
||||
const superQueryConfig = reactive(superQuerySchema);
|
||||
|
||||
/**
|
||||
* 高级查询事件
|
||||
*/
|
||||
function handleSuperQuery(params) {
|
||||
Object.keys(params).map((k) => {
|
||||
queryParam[k] = params[k];
|
||||
});
|
||||
searchQuery();
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增事件
|
||||
*/
|
||||
function handleAdd() {
|
||||
registerModal.value.disableSubmit = false;
|
||||
registerModal.value.add();
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑事件
|
||||
*/
|
||||
function handleEdit(record: Recordable) {
|
||||
registerModal.value.disableSubmit = false;
|
||||
registerModal.value.edit(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*/
|
||||
function handleDetail(record: Recordable) {
|
||||
registerModal.value.disableSubmit = true;
|
||||
registerModal.value.edit(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除事件
|
||||
*/
|
||||
async function handleDelete(record) {
|
||||
await deleteOne({ id: record.id }, handleSuccess);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除事件
|
||||
*/
|
||||
async function batchHandleDelete() {
|
||||
await batchDelete({ ids: selectedRowKeys.value }, handleSuccess);
|
||||
}
|
||||
|
||||
/**
|
||||
* 成功回调
|
||||
*/
|
||||
function handleSuccess() {
|
||||
(selectedRowKeys.value = []) && reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 操作栏
|
||||
*/
|
||||
function getTableAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '编辑',
|
||||
onClick: handleEdit.bind(null, record),
|
||||
auth: 'shangbaoPracticePaln:shangbao_practice_paln_user_res_count:edit'
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* 下拉操作栏
|
||||
*/
|
||||
function getDropDownAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '详情',
|
||||
onClick: handleDetail.bind(null, record),
|
||||
}, {
|
||||
label: '删除',
|
||||
popConfirm: {
|
||||
title: '是否确认删除',
|
||||
confirm: handleDelete.bind(null, record),
|
||||
placement: 'topLeft',
|
||||
},
|
||||
auth: 'shangbaoPracticePaln:shangbao_practice_paln_user_res_count:delete'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery() {
|
||||
reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置
|
||||
*/
|
||||
function searchReset() {
|
||||
formRef.value.resetFields();
|
||||
selectedRowKeys.value = [];
|
||||
//刷新数据
|
||||
reload();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.jeecg-basic-table-form-container {
|
||||
padding: 0;
|
||||
.table-page-search-submitButtons {
|
||||
display: block;
|
||||
margin-bottom: 24px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.query-group-cust{
|
||||
min-width: 100px !important;
|
||||
}
|
||||
.query-group-split-cust{
|
||||
width: 30px;
|
||||
display: inline-block;
|
||||
text-align: center
|
||||
}
|
||||
.ant-form-item:not(.ant-form-item-with-help){
|
||||
margin-bottom: 16px;
|
||||
height: 32px;
|
||||
}
|
||||
:deep(.ant-picker),:deep(.ant-input-number){
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,72 @@
|
|||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from "/@/hooks/web/useMessage";
|
||||
|
||||
const { createConfirm } = useMessage();
|
||||
|
||||
enum Api {
|
||||
list = '/shangbaoPracticePaln/shangbaoPracticePalnUserResDetail/list',
|
||||
save='/shangbaoPracticePaln/shangbaoPracticePalnUserResDetail/add',
|
||||
edit='/shangbaoPracticePaln/shangbaoPracticePalnUserResDetail/edit',
|
||||
deleteOne = '/shangbaoPracticePaln/shangbaoPracticePalnUserResDetail/delete',
|
||||
deleteBatch = '/shangbaoPracticePaln/shangbaoPracticePalnUserResDetail/deleteBatch',
|
||||
importExcel = '/shangbaoPracticePaln/shangbaoPracticePalnUserResDetail/importExcel',
|
||||
exportXls = '/shangbaoPracticePaln/shangbaoPracticePalnUserResDetail/exportXls',
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出api
|
||||
* @param params
|
||||
*/
|
||||
export const getExportUrl = Api.exportXls;
|
||||
|
||||
/**
|
||||
* 导入api
|
||||
*/
|
||||
export const getImportUrl = Api.importExcel;
|
||||
|
||||
/**
|
||||
* 列表接口
|
||||
* @param params
|
||||
*/
|
||||
export const list = (params) => defHttp.get({ url: Api.list, params });
|
||||
|
||||
/**
|
||||
* 删除单个
|
||||
* @param params
|
||||
* @param handleSuccess
|
||||
*/
|
||||
export const deleteOne = (params,handleSuccess) => {
|
||||
return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
|
||||
handleSuccess();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
* @param params
|
||||
* @param handleSuccess
|
||||
*/
|
||||
export const batchDelete = (params, handleSuccess) => {
|
||||
createConfirm({
|
||||
iconType: 'warning',
|
||||
title: '确认删除',
|
||||
content: '是否删除选中数据',
|
||||
okText: '确认',
|
||||
cancelText: '取消',
|
||||
onOk: () => {
|
||||
return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => {
|
||||
handleSuccess();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存或者更新
|
||||
* @param params
|
||||
* @param isUpdate
|
||||
*/
|
||||
export const saveOrUpdate = (params, isUpdate) => {
|
||||
let url = isUpdate ? Api.edit : Api.save;
|
||||
return defHttp.post({ url: url, params }, { isTransformResponse: false });
|
||||
}
|
|
@ -0,0 +1,84 @@
|
|||
import {BasicColumn} from '/@/components/Table';
|
||||
import {FormSchema} from '/@/components/Table';
|
||||
import { rules} from '/@/utils/helper/validator';
|
||||
import { render } from '/@/utils/common/renderUtils';
|
||||
import { getWeekMonthQuarterYear } from '/@/utils';
|
||||
//列表数据
|
||||
export const columns: BasicColumn[] = [
|
||||
{
|
||||
title: '实践计划id',
|
||||
align: "center",
|
||||
dataIndex: 'planId'
|
||||
},
|
||||
{
|
||||
title: '实践计划名称',
|
||||
align: "center",
|
||||
dataIndex: 'planName'
|
||||
},
|
||||
{
|
||||
title: '学生id',
|
||||
align: "center",
|
||||
dataIndex: 'studentId'
|
||||
},
|
||||
{
|
||||
title: '学生姓名',
|
||||
align: "center",
|
||||
dataIndex: 'studentName'
|
||||
},
|
||||
{
|
||||
title: '阶段id',
|
||||
align: "center",
|
||||
dataIndex: 'stepId'
|
||||
},
|
||||
{
|
||||
title: '阶段名称',
|
||||
align: "center",
|
||||
dataIndex: 'stepName'
|
||||
},
|
||||
{
|
||||
title: '子分类id',
|
||||
align: "center",
|
||||
dataIndex: 'taskId'
|
||||
},
|
||||
{
|
||||
title: '子分类名称',
|
||||
align: "center",
|
||||
dataIndex: 'taskName'
|
||||
},
|
||||
{
|
||||
title: '资源INT ID',
|
||||
align: "center",
|
||||
dataIndex: 'resourceIdInt'
|
||||
},
|
||||
{
|
||||
title: '文件fileid',
|
||||
align: "center",
|
||||
dataIndex: 'fileId'
|
||||
},
|
||||
{
|
||||
title: '资源标题',
|
||||
align: "center",
|
||||
dataIndex: 'resourceTitle'
|
||||
},
|
||||
{
|
||||
title: '资源路径',
|
||||
align: "center",
|
||||
dataIndex: 'resourcePath'
|
||||
},
|
||||
];
|
||||
|
||||
// 高级查询数据
|
||||
export const superQuerySchema = {
|
||||
planId: {title: '实践计划id',order: 0,view: 'text', type: 'string',},
|
||||
planName: {title: '实践计划名称',order: 1,view: 'text', type: 'string',},
|
||||
studentId: {title: '学生id',order: 2,view: 'number', type: 'number',},
|
||||
studentName: {title: '学生姓名',order: 3,view: 'text', type: 'string',},
|
||||
stepId: {title: '阶段id',order: 4,view: 'text', type: 'string',},
|
||||
stepName: {title: '阶段名称',order: 5,view: 'text', type: 'string',},
|
||||
taskId: {title: '子分类id',order: 6,view: 'text', type: 'string',},
|
||||
taskName: {title: '子分类名称',order: 7,view: 'text', type: 'string',},
|
||||
resourceIdInt: {title: '资源INT ID',order: 8,view: 'number', type: 'number',},
|
||||
fileId: {title: '文件fileid',order: 9,view: 'text', type: 'string',},
|
||||
resourceTitle: {title: '资源标题',order: 10,view: 'text', type: 'string',},
|
||||
resourcePath: {title: '资源路径',order: 11,view: 'text', type: 'string',},
|
||||
};
|
|
@ -0,0 +1,235 @@
|
|||
<template>
|
||||
<div class="p-2">
|
||||
<!--查询区域-->
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||
<a-row :gutter="24">
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
<!--引用表格-->
|
||||
<BasicTable @register="registerTable" :rowSelection="rowSelection">
|
||||
<!--插槽:table标题-->
|
||||
<template #tableTitle>
|
||||
<a-button type="primary" v-auth="'shangbaoPracticePaln:shangbao_practice_paln_user_res_detail:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
|
||||
<a-button type="primary" v-auth="'shangbaoPracticePaln:shangbao_practice_paln_user_res_detail:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
|
||||
<j-upload-button type="primary" v-auth="'shangbaoPracticePaln:shangbao_practice_paln_user_res_detail:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
|
||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item key="1" @click="batchHandleDelete">
|
||||
<Icon icon="ant-design:delete-outlined"></Icon>
|
||||
删除
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
<a-button v-auth="'shangbaoPracticePaln:shangbao_practice_paln_user_res_detail:deleteBatch'">批量操作
|
||||
<Icon icon="mdi:chevron-down"></Icon>
|
||||
</a-button>
|
||||
</a-dropdown>
|
||||
<!-- 高级查询 -->
|
||||
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
|
||||
</template>
|
||||
<!--操作栏-->
|
||||
<template #action="{ record }">
|
||||
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)"/>
|
||||
</template>
|
||||
<template v-slot:bodyCell="{ column, record, index, text }">
|
||||
</template>
|
||||
</BasicTable>
|
||||
<!-- 表单区域 -->
|
||||
<ShangbaoPracticePalnUserResDetailModal ref="registerModal" @success="handleSuccess"></ShangbaoPracticePalnUserResDetailModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="shangbaoPracticePaln-shangbaoPracticePalnUserResDetail" setup>
|
||||
import { ref, reactive } from 'vue';
|
||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { columns, superQuerySchema } from './ShangbaoPracticePalnUserResDetail.data';
|
||||
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './ShangbaoPracticePalnUserResDetail.api';
|
||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
import ShangbaoPracticePalnUserResDetailModal from './components/ShangbaoPracticePalnUserResDetailModal.vue'
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
|
||||
const formRef = ref();
|
||||
const queryParam = reactive<any>({});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
const userStore = useUserStore();
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
tableProps: {
|
||||
title: '学生上传资源明细',
|
||||
api: list,
|
||||
columns,
|
||||
canResize:false,
|
||||
useSearchForm: false,
|
||||
actionColumn: {
|
||||
width: 120,
|
||||
fixed: 'right',
|
||||
},
|
||||
beforeFetch: async (params) => {
|
||||
return Object.assign(params, queryParam);
|
||||
},
|
||||
},
|
||||
exportConfig: {
|
||||
name: "学生上传资源明细",
|
||||
url: getExportUrl,
|
||||
params: queryParam,
|
||||
},
|
||||
importConfig: {
|
||||
url: getImportUrl,
|
||||
success: handleSuccess
|
||||
},
|
||||
});
|
||||
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] = tableContext;
|
||||
const labelCol = reactive({
|
||||
xs:24,
|
||||
sm:4,
|
||||
xl:6,
|
||||
xxl:4
|
||||
});
|
||||
const wrapperCol = reactive({
|
||||
xs: 24,
|
||||
sm: 20,
|
||||
});
|
||||
|
||||
// 高级查询配置
|
||||
const superQueryConfig = reactive(superQuerySchema);
|
||||
|
||||
/**
|
||||
* 高级查询事件
|
||||
*/
|
||||
function handleSuperQuery(params) {
|
||||
Object.keys(params).map((k) => {
|
||||
queryParam[k] = params[k];
|
||||
});
|
||||
searchQuery();
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增事件
|
||||
*/
|
||||
function handleAdd() {
|
||||
registerModal.value.disableSubmit = false;
|
||||
registerModal.value.add();
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑事件
|
||||
*/
|
||||
function handleEdit(record: Recordable) {
|
||||
registerModal.value.disableSubmit = false;
|
||||
registerModal.value.edit(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*/
|
||||
function handleDetail(record: Recordable) {
|
||||
registerModal.value.disableSubmit = true;
|
||||
registerModal.value.edit(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除事件
|
||||
*/
|
||||
async function handleDelete(record) {
|
||||
await deleteOne({ id: record.id }, handleSuccess);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除事件
|
||||
*/
|
||||
async function batchHandleDelete() {
|
||||
await batchDelete({ ids: selectedRowKeys.value }, handleSuccess);
|
||||
}
|
||||
|
||||
/**
|
||||
* 成功回调
|
||||
*/
|
||||
function handleSuccess() {
|
||||
(selectedRowKeys.value = []) && reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 操作栏
|
||||
*/
|
||||
function getTableAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '编辑',
|
||||
onClick: handleEdit.bind(null, record),
|
||||
auth: 'shangbaoPracticePaln:shangbao_practice_paln_user_res_detail:edit'
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* 下拉操作栏
|
||||
*/
|
||||
function getDropDownAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '详情',
|
||||
onClick: handleDetail.bind(null, record),
|
||||
}, {
|
||||
label: '删除',
|
||||
popConfirm: {
|
||||
title: '是否确认删除',
|
||||
confirm: handleDelete.bind(null, record),
|
||||
placement: 'topLeft',
|
||||
},
|
||||
auth: 'shangbaoPracticePaln:shangbao_practice_paln_user_res_detail:delete'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery() {
|
||||
reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置
|
||||
*/
|
||||
function searchReset() {
|
||||
formRef.value.resetFields();
|
||||
selectedRowKeys.value = [];
|
||||
//刷新数据
|
||||
reload();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.jeecg-basic-table-form-container {
|
||||
padding: 0;
|
||||
.table-page-search-submitButtons {
|
||||
display: block;
|
||||
margin-bottom: 24px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.query-group-cust{
|
||||
min-width: 100px !important;
|
||||
}
|
||||
.query-group-split-cust{
|
||||
width: 30px;
|
||||
display: inline-block;
|
||||
text-align: center
|
||||
}
|
||||
.ant-form-item:not(.ant-form-item-with-help){
|
||||
margin-bottom: 16px;
|
||||
height: 32px;
|
||||
}
|
||||
:deep(.ant-picker),:deep(.ant-input-number){
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,74 @@
|
|||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from "/@/hooks/web/useMessage";
|
||||
|
||||
const { createConfirm } = useMessage();
|
||||
|
||||
enum Api {
|
||||
list = '/shangbaoPracticePaln/shangbaoPracticePlanInfoXz/list',
|
||||
zjList = '/shangbaoPracticePaln/shangbaoPracticePlanInfoXz/list',
|
||||
save='/shangbaoPracticePaln/shangbaoPracticePlanInfoXz/add',
|
||||
edit='/shangbaoPracticePaln/shangbaoPracticePlanInfoXz/edit',
|
||||
deleteOne = '/shangbaoPracticePaln/shangbaoPracticePlanInfoXz/delete',
|
||||
deleteBatch = '/shangbaoPracticePaln/shangbaoPracticePlanInfoXz/deleteBatch',
|
||||
importExcel = '/shangbaoPracticePaln/shangbaoPracticePlanInfoXz/importExcel',
|
||||
exportXls = '/shangbaoPracticePaln/shangbaoPracticePlanInfoXz/exportXls',
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出api
|
||||
* @param params
|
||||
*/
|
||||
export const getExportUrl = Api.exportXls;
|
||||
|
||||
/**
|
||||
* 导入api
|
||||
*/
|
||||
export const getImportUrl = Api.importExcel;
|
||||
|
||||
/**
|
||||
* 列表接口
|
||||
* @param params
|
||||
*/
|
||||
export const list = (params) => defHttp.get({ url: Api.list, params });
|
||||
export const zjList = (params) => defHttp.get({ url: Api.zjList, params });
|
||||
|
||||
/**
|
||||
* 删除单个
|
||||
* @param params
|
||||
* @param handleSuccess
|
||||
*/
|
||||
export const deleteOne = (params,handleSuccess) => {
|
||||
return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
|
||||
handleSuccess();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
* @param params
|
||||
* @param handleSuccess
|
||||
*/
|
||||
export const batchDelete = (params, handleSuccess) => {
|
||||
createConfirm({
|
||||
iconType: 'warning',
|
||||
title: '确认删除',
|
||||
content: '是否删除选中数据',
|
||||
okText: '确认',
|
||||
cancelText: '取消',
|
||||
onOk: () => {
|
||||
return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => {
|
||||
handleSuccess();
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 保存或者更新
|
||||
* @param params
|
||||
* @param isUpdate
|
||||
*/
|
||||
export const saveOrUpdate = (params, isUpdate) => {
|
||||
let url = isUpdate ? Api.edit : Api.save;
|
||||
return defHttp.post({ url: url, params }, { isTransformResponse: false });
|
||||
}
|
|
@ -0,0 +1,259 @@
|
|||
import {BasicColumn} from '/@/components/Table';
|
||||
import {FormSchema} from '/@/components/Table';
|
||||
import { rules} from '/@/utils/helper/validator';
|
||||
import { render } from '/@/utils/common/renderUtils';
|
||||
import { getWeekMonthQuarterYear } from '/@/utils';
|
||||
//列表数据
|
||||
export const columns: BasicColumn[] = [
|
||||
{
|
||||
title: '实践计划名称',
|
||||
align: "center",
|
||||
dataIndex: 'planName'
|
||||
},
|
||||
{
|
||||
title: '实践计划类型',
|
||||
align: "center",
|
||||
dataIndex: 'planTypeName'
|
||||
},
|
||||
];
|
||||
|
||||
export const columns2: BasicColumn[] = [
|
||||
{
|
||||
title: '序号',
|
||||
dataIndex: 'rowIndex',
|
||||
key: 'rowIndex',
|
||||
width: 60,
|
||||
align: 'center',
|
||||
customRender: function ({ index }) {
|
||||
return parseInt(index) + 1;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '实践计划名称',
|
||||
align: "center",
|
||||
dataIndex: 'planName'
|
||||
},
|
||||
{
|
||||
title: '实践计划类型',
|
||||
align: "center",
|
||||
dataIndex: 'planTypeName'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
dataIndex: 'action',
|
||||
align: 'center',
|
||||
width:100
|
||||
},
|
||||
];
|
||||
|
||||
export const columns3: BasicColumn[] = [
|
||||
{
|
||||
title: '实践计划名称',
|
||||
align: "center",
|
||||
dataIndex: 'planName'
|
||||
},
|
||||
{
|
||||
title: '实践计划类型',
|
||||
align: "center",
|
||||
dataIndex: 'planTypeName'
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
export const columns4: BasicColumn[] = [
|
||||
{
|
||||
title: '序号',
|
||||
dataIndex: 'rowIndex',
|
||||
key: 'rowIndex',
|
||||
width: 60,
|
||||
align: 'center',
|
||||
customRender: function ({ index }) {
|
||||
return parseInt(index) + 1;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '实践计划名称',
|
||||
align: "center",
|
||||
dataIndex: 'planName'
|
||||
},
|
||||
{
|
||||
title: '类型',
|
||||
align: "center",
|
||||
dataIndex: 'planTypeName'
|
||||
},
|
||||
{
|
||||
title: '阶段名称',
|
||||
align: "center",
|
||||
dataIndex: 'stepName'
|
||||
},
|
||||
{
|
||||
title: '阶段开始时间',
|
||||
align: "center",
|
||||
dataIndex: 'stepStartTime'
|
||||
},
|
||||
{
|
||||
title: '阶段结束时间',
|
||||
align: "center",
|
||||
dataIndex: 'stepEndTime'
|
||||
},
|
||||
{
|
||||
title: '子分类名称',
|
||||
align: "center",
|
||||
dataIndex: 'taskName'
|
||||
},
|
||||
{
|
||||
title: '要求上传资源数',
|
||||
align: "center",
|
||||
dataIndex: 'sysResCount'
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
export const columns5: BasicColumn[] = [
|
||||
{
|
||||
title: '序号',
|
||||
dataIndex: 'rowIndex',
|
||||
key: 'rowIndex',
|
||||
width: 60,
|
||||
align: 'center',
|
||||
customRender: function ({ index }) {
|
||||
return parseInt(index) + 1;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '实践名称',
|
||||
align: "center",
|
||||
dataIndex: 'planName'
|
||||
},
|
||||
{
|
||||
title: '学院名称',
|
||||
align: "center",
|
||||
dataIndex: 'orgName'
|
||||
},
|
||||
{
|
||||
title: '学生姓名',
|
||||
align: "center",
|
||||
dataIndex: 'studentName'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
dataIndex: 'action',
|
||||
align: 'center',
|
||||
width:100
|
||||
},
|
||||
];
|
||||
|
||||
export const columns6: BasicColumn[] = [
|
||||
{
|
||||
title: '序号',
|
||||
dataIndex: 'rowIndex',
|
||||
key: 'rowIndex',
|
||||
width: 60,
|
||||
align: 'center',
|
||||
customRender: function ({ index }) {
|
||||
return parseInt(index) + 1;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '实践计划名称',
|
||||
align: "center",
|
||||
dataIndex: 'planName'
|
||||
},
|
||||
{
|
||||
title: '阶段名称',
|
||||
align: "center",
|
||||
dataIndex: 'stepName'
|
||||
},
|
||||
{
|
||||
title: '阶段开始时间',
|
||||
align: "center",
|
||||
dataIndex: 'stepStartTime'
|
||||
},
|
||||
{
|
||||
title: '阶段结束时间',
|
||||
align: "center",
|
||||
dataIndex: 'stepEndTime'
|
||||
},
|
||||
{
|
||||
title: '子分类名称',
|
||||
align: "center",
|
||||
dataIndex: 'taskName'
|
||||
},
|
||||
{
|
||||
title: '学院名称',
|
||||
align: "center",
|
||||
dataIndex: 'orgName'
|
||||
},
|
||||
{
|
||||
title: '学生姓名',
|
||||
align: "center",
|
||||
dataIndex: 'studentName'
|
||||
},
|
||||
{
|
||||
title: '系统要求资源数',
|
||||
align: "center",
|
||||
dataIndex: 'sysResCount'
|
||||
},
|
||||
{
|
||||
title: '实际上传数',
|
||||
align: "center",
|
||||
dataIndex: 'stuResCount'
|
||||
},
|
||||
// {
|
||||
// title: '操作',
|
||||
// dataIndex: 'action',
|
||||
// align: 'center',
|
||||
// width:100
|
||||
// },
|
||||
];
|
||||
|
||||
export const columns7: BasicColumn[] = [
|
||||
{
|
||||
title: '序号',
|
||||
dataIndex: 'rowIndex',
|
||||
key: 'rowIndex',
|
||||
width: 60,
|
||||
align: 'center',
|
||||
customRender: function ({ index }) {
|
||||
return parseInt(index) + 1;
|
||||
},
|
||||
},
|
||||
{
|
||||
title: '实践计划名称',
|
||||
align: "center",
|
||||
dataIndex: 'planName'
|
||||
},
|
||||
{
|
||||
title: '阶段名称',
|
||||
align: "center",
|
||||
dataIndex: 'stepName'
|
||||
},
|
||||
{
|
||||
title: '子分类名称',
|
||||
align: "center",
|
||||
dataIndex: 'taskName'
|
||||
},
|
||||
{
|
||||
title: '学生姓名',
|
||||
align: "center",
|
||||
dataIndex: 'studentName'
|
||||
},
|
||||
{
|
||||
title: '资源标题',
|
||||
align: "center",
|
||||
dataIndex: 'resourceTitle'
|
||||
},
|
||||
{
|
||||
title: '操作',
|
||||
dataIndex: 'action',
|
||||
align: 'center',
|
||||
width:140
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
// 高级查询数据
|
||||
export const superQuerySchema = {
|
||||
planName: {title: '实践计划名称',order: 0,view: 'text', type: 'string',},
|
||||
planTypeName: {title: '实践计划类型',order: 1,view: 'text', type: 'string',},
|
||||
};
|
|
@ -0,0 +1,259 @@
|
|||
<template>
|
||||
<div class="p-2">
|
||||
<!--查询区域-->
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol">
|
||||
<a-row :gutter="24">
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="planName">
|
||||
<template #label><span title="实践计划名称">实践计划</span></template>
|
||||
<a-input placeholder="请输入实践计划名称" v-model:value="queryParam.planName" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="planTypeName">
|
||||
<template #label><span title="实践计划类型">实践计划</span></template>
|
||||
<a-input placeholder="请输入实践计划类型" v-model:value="queryParam.planTypeName" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :xl="6" :lg="7" :md="8" :sm="24">
|
||||
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
|
||||
<a-col :lg="6">
|
||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
||||
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
|
||||
<a @click="toggleSearchStatus = !toggleSearchStatus" style="margin-left: 8px">
|
||||
{{ toggleSearchStatus ? '收起' : '展开' }}
|
||||
<Icon :icon="toggleSearchStatus ? 'ant-design:up-outlined' : 'ant-design:down-outlined'" />
|
||||
</a>
|
||||
</a-col>
|
||||
</span>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
<!--引用表格-->
|
||||
<BasicTable @register="registerTable" :rowSelection="rowSelection">
|
||||
<!--插槽:table标题-->
|
||||
<template #tableTitle>
|
||||
<a-button type="primary" v-auth="'shangbaoPracticePaln:shangbao_practice_plan_info:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
|
||||
<a-button type="primary" v-auth="'shangbaoPracticePaln:shangbao_practice_plan_info:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
|
||||
<j-upload-button type="primary" v-auth="'shangbaoPracticePaln:shangbao_practice_plan_info:importExcel'" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
|
||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
<a-menu-item key="1" @click="batchHandleDelete">
|
||||
<Icon icon="ant-design:delete-outlined"></Icon>
|
||||
删除
|
||||
</a-menu-item>
|
||||
</a-menu>
|
||||
</template>
|
||||
<a-button v-auth="'shangbaoPracticePaln:shangbao_practice_plan_info:deleteBatch'">批量操作
|
||||
<Icon icon="mdi:chevron-down"></Icon>
|
||||
</a-button>
|
||||
</a-dropdown>
|
||||
<!-- 高级查询 -->
|
||||
<super-query :config="superQueryConfig" @search="handleSuperQuery" />
|
||||
</template>
|
||||
<!--操作栏-->
|
||||
<template #action="{ record }">
|
||||
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)"/>
|
||||
</template>
|
||||
<template v-slot:bodyCell="{ column, record, index, text }">
|
||||
</template>
|
||||
</BasicTable>
|
||||
<!-- 表单区域 -->
|
||||
<ShangbaoPracticePlanInfoModal ref="registerModal" @success="handleSuccess"></ShangbaoPracticePlanInfoModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="shangbaoPracticePaln-shangbaoPracticePlanInfo" setup>
|
||||
import { ref, reactive } from 'vue';
|
||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { columns, superQuerySchema } from './ShangbaoPracticePlanInfo.data';
|
||||
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './ShangbaoPracticePlanInfo.api';
|
||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
import ShangbaoPracticePlanInfoModal from './components/ShangbaoPracticePlanInfoModal.vue'
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
|
||||
const formRef = ref();
|
||||
const queryParam = reactive<any>({});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
const userStore = useUserStore();
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
tableProps: {
|
||||
title: '实践计划清单',
|
||||
api: list,
|
||||
columns,
|
||||
canResize:false,
|
||||
useSearchForm: false,
|
||||
actionColumn: {
|
||||
width: 120,
|
||||
fixed: 'right',
|
||||
},
|
||||
beforeFetch: async (params) => {
|
||||
return Object.assign(params, queryParam);
|
||||
},
|
||||
},
|
||||
exportConfig: {
|
||||
name: "实践计划清单",
|
||||
url: getExportUrl,
|
||||
params: queryParam,
|
||||
},
|
||||
importConfig: {
|
||||
url: getImportUrl,
|
||||
success: handleSuccess
|
||||
},
|
||||
});
|
||||
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] = tableContext;
|
||||
const labelCol = reactive({
|
||||
xs:24,
|
||||
sm:4,
|
||||
xl:6,
|
||||
xxl:4
|
||||
});
|
||||
const wrapperCol = reactive({
|
||||
xs: 24,
|
||||
sm: 20,
|
||||
});
|
||||
|
||||
// 高级查询配置
|
||||
const superQueryConfig = reactive(superQuerySchema);
|
||||
|
||||
/**
|
||||
* 高级查询事件
|
||||
*/
|
||||
function handleSuperQuery(params) {
|
||||
Object.keys(params).map((k) => {
|
||||
queryParam[k] = params[k];
|
||||
});
|
||||
searchQuery();
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增事件
|
||||
*/
|
||||
function handleAdd() {
|
||||
registerModal.value.disableSubmit = false;
|
||||
registerModal.value.add();
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑事件
|
||||
*/
|
||||
function handleEdit(record: Recordable) {
|
||||
registerModal.value.disableSubmit = false;
|
||||
registerModal.value.edit(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*/
|
||||
function handleDetail(record: Recordable) {
|
||||
registerModal.value.disableSubmit = true;
|
||||
registerModal.value.edit(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除事件
|
||||
*/
|
||||
async function handleDelete(record) {
|
||||
await deleteOne({ id: record.id }, handleSuccess);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除事件
|
||||
*/
|
||||
async function batchHandleDelete() {
|
||||
await batchDelete({ ids: selectedRowKeys.value }, handleSuccess);
|
||||
}
|
||||
|
||||
/**
|
||||
* 成功回调
|
||||
*/
|
||||
function handleSuccess() {
|
||||
(selectedRowKeys.value = []) && reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 操作栏
|
||||
*/
|
||||
function getTableAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '编辑',
|
||||
onClick: handleEdit.bind(null, record),
|
||||
auth: 'shangbaoPracticePaln:shangbao_practice_plan_info:edit'
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* 下拉操作栏
|
||||
*/
|
||||
function getDropDownAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '详情',
|
||||
onClick: handleDetail.bind(null, record),
|
||||
}, {
|
||||
label: '删除',
|
||||
popConfirm: {
|
||||
title: '是否确认删除',
|
||||
confirm: handleDelete.bind(null, record),
|
||||
placement: 'topLeft',
|
||||
},
|
||||
auth: 'shangbaoPracticePaln:shangbao_practice_plan_info:delete'
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery() {
|
||||
reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置
|
||||
*/
|
||||
function searchReset() {
|
||||
formRef.value.resetFields();
|
||||
selectedRowKeys.value = [];
|
||||
//刷新数据
|
||||
reload();
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.jeecg-basic-table-form-container {
|
||||
padding: 0;
|
||||
.table-page-search-submitButtons {
|
||||
display: block;
|
||||
margin-bottom: 24px;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.query-group-cust{
|
||||
min-width: 100px !important;
|
||||
}
|
||||
.query-group-split-cust{
|
||||
width: 30px;
|
||||
display: inline-block;
|
||||
text-align: center
|
||||
}
|
||||
.ant-form-item:not(.ant-form-item-with-help){
|
||||
margin-bottom: 16px;
|
||||
height: 32px;
|
||||
}
|
||||
:deep(.ant-picker),:deep(.ant-input-number){
|
||||
width: 100%;
|
||||
}
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,207 @@
|
|||
<template>
|
||||
<a-spin :spinning="confirmLoading">
|
||||
<JFormContainer :disabled="disabled">
|
||||
<template #detail>
|
||||
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" name="ShangbaoPracticePalnTimeTaskForm">
|
||||
<a-row>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="实践计划id" v-bind="validateInfos.planId" id="ShangbaoPracticePalnTimeTaskForm-planId" name="planId">
|
||||
<a-input v-model:value="formData.planId" placeholder="请输入实践计划id" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="实践计划名称" v-bind="validateInfos.planName" id="ShangbaoPracticePalnTimeTaskForm-planName" name="planName">
|
||||
<a-input v-model:value="formData.planName" placeholder="请输入实践计划名称" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="类型" v-bind="validateInfos.planTypeName" id="ShangbaoPracticePalnTimeTaskForm-planTypeName" name="planTypeName">
|
||||
<a-input v-model:value="formData.planTypeName" placeholder="请输入类型" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="阶段id" v-bind="validateInfos.stepId" id="ShangbaoPracticePalnTimeTaskForm-stepId" name="stepId">
|
||||
<a-input v-model:value="formData.stepId" placeholder="请输入阶段id" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="阶段名称" v-bind="validateInfos.stepName" id="ShangbaoPracticePalnTimeTaskForm-stepName" name="stepName">
|
||||
<a-input v-model:value="formData.stepName" placeholder="请输入阶段名称" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="阶段开始时间" v-bind="validateInfos.stepStartTime" id="ShangbaoPracticePalnTimeTaskForm-stepStartTime" name="stepStartTime">
|
||||
<a-date-picker placeholder="请选择阶段开始时间" v-model:value="formData.stepStartTime" showTime value-format="YYYY-MM-DD HH:mm:ss" style="width: 100%" allow-clear />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="阶段结束时间" v-bind="validateInfos.stepEndTime" id="ShangbaoPracticePalnTimeTaskForm-stepEndTime" name="stepEndTime">
|
||||
<a-date-picker placeholder="请选择阶段结束时间" v-model:value="formData.stepEndTime" showTime value-format="YYYY-MM-DD HH:mm:ss" style="width: 100%" allow-clear />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="子分类id" v-bind="validateInfos.taskId" id="ShangbaoPracticePalnTimeTaskForm-taskId" name="taskId">
|
||||
<a-input v-model:value="formData.taskId" placeholder="请输入子分类id" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="子分类名称" v-bind="validateInfos.taskName" id="ShangbaoPracticePalnTimeTaskForm-taskName" name="taskName">
|
||||
<a-input v-model:value="formData.taskName" placeholder="请输入子分类名称" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="分类关联id" v-bind="validateInfos.timeTaskId" id="ShangbaoPracticePalnTimeTaskForm-timeTaskId" name="timeTaskId">
|
||||
<a-input v-model:value="formData.timeTaskId" placeholder="请输入分类关联id" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="要求上传资源数" v-bind="validateInfos.sysResCount" id="ShangbaoPracticePalnTimeTaskForm-sysResCount" name="sysResCount">
|
||||
<a-input-number v-model:value="formData.sysResCount" placeholder="请输入要求上传资源数" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</template>
|
||||
</JFormContainer>
|
||||
</a-spin>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted } from 'vue';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
import { getValueType } from '/@/utils';
|
||||
import { saveOrUpdate } from '../ShangbaoPracticePalnTimeTask.api';
|
||||
import { Form } from 'ant-design-vue';
|
||||
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
|
||||
const props = defineProps({
|
||||
formDisabled: { type: Boolean, default: false },
|
||||
formData: { type: Object, default: () => ({})},
|
||||
formBpm: { type: Boolean, default: true }
|
||||
});
|
||||
const formRef = ref();
|
||||
const useForm = Form.useForm;
|
||||
const emit = defineEmits(['register', 'ok']);
|
||||
const formData = reactive<Record<string, any>>({
|
||||
id: '',
|
||||
planId: '',
|
||||
planName: '',
|
||||
planTypeName: '',
|
||||
stepId: '',
|
||||
stepName: '',
|
||||
stepStartTime: '',
|
||||
stepEndTime: '',
|
||||
taskId: '',
|
||||
taskName: '',
|
||||
timeTaskId: '',
|
||||
sysResCount: undefined,
|
||||
});
|
||||
const { createMessage } = useMessage();
|
||||
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
|
||||
const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 16 } });
|
||||
const confirmLoading = ref<boolean>(false);
|
||||
//表单验证
|
||||
const validatorRules = reactive({
|
||||
planId: [{ required: true, message: '请输入实践计划id!'},],
|
||||
planName: [{ required: true, message: '请输入实践计划名称!'},],
|
||||
});
|
||||
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
|
||||
|
||||
// 表单禁用
|
||||
const disabled = computed(()=>{
|
||||
if(props.formBpm === true){
|
||||
if(props.formData.disabled === false){
|
||||
return false;
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return props.formDisabled;
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
function add() {
|
||||
edit({});
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*/
|
||||
function edit(record) {
|
||||
nextTick(() => {
|
||||
resetFields();
|
||||
const tmpData = {};
|
||||
Object.keys(formData).forEach((key) => {
|
||||
if(record.hasOwnProperty(key)){
|
||||
tmpData[key] = record[key]
|
||||
}
|
||||
})
|
||||
//赋值
|
||||
Object.assign(formData, tmpData);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 提交数据
|
||||
*/
|
||||
async function submitForm() {
|
||||
try {
|
||||
// 触发表单验证
|
||||
await validate();
|
||||
} catch ({ errorFields }) {
|
||||
if (errorFields) {
|
||||
const firstField = errorFields[0];
|
||||
if (firstField) {
|
||||
formRef.value.scrollToField(firstField.name, { behavior: 'smooth', block: 'center' });
|
||||
}
|
||||
}
|
||||
return Promise.reject(errorFields);
|
||||
}
|
||||
confirmLoading.value = true;
|
||||
const isUpdate = ref<boolean>(false);
|
||||
//时间格式化
|
||||
let model = formData;
|
||||
if (model.id) {
|
||||
isUpdate.value = true;
|
||||
}
|
||||
//循环数据
|
||||
for (let data in model) {
|
||||
//如果该数据是数组并且是字符串类型
|
||||
if (model[data] instanceof Array) {
|
||||
let valueType = getValueType(formRef.value.getProps, data);
|
||||
//如果是字符串类型的需要变成以逗号分割的字符串
|
||||
if (valueType === 'string') {
|
||||
model[data] = model[data].join(',');
|
||||
}
|
||||
}
|
||||
}
|
||||
await saveOrUpdate(model, isUpdate.value)
|
||||
.then((res) => {
|
||||
if (res.success) {
|
||||
createMessage.success(res.message);
|
||||
emit('ok');
|
||||
} else {
|
||||
createMessage.warning(res.message);
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
confirmLoading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
add,
|
||||
edit,
|
||||
submitForm,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.antd-modal-form {
|
||||
padding: 14px;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,77 @@
|
|||
<template>
|
||||
<j-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
|
||||
<ShangbaoPracticePalnTimeTaskForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></ShangbaoPracticePalnTimeTaskForm>
|
||||
</j-modal>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, nextTick, defineExpose } from 'vue';
|
||||
import ShangbaoPracticePalnTimeTaskForm from './ShangbaoPracticePalnTimeTaskForm.vue'
|
||||
import JModal from '/@/components/Modal/src/JModal/JModal.vue';
|
||||
|
||||
const title = ref<string>('');
|
||||
const width = ref<number>(800);
|
||||
const visible = ref<boolean>(false);
|
||||
const disableSubmit = ref<boolean>(false);
|
||||
const registerForm = ref();
|
||||
const emit = defineEmits(['register', 'success']);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
function add() {
|
||||
title.value = '新增';
|
||||
visible.value = true;
|
||||
nextTick(() => {
|
||||
registerForm.value.add();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
* @param record
|
||||
*/
|
||||
function edit(record) {
|
||||
title.value = disableSubmit.value ? '详情' : '编辑';
|
||||
visible.value = true;
|
||||
nextTick(() => {
|
||||
registerForm.value.edit(record);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 确定按钮点击事件
|
||||
*/
|
||||
function handleOk() {
|
||||
registerForm.value.submitForm();
|
||||
}
|
||||
|
||||
/**
|
||||
* form保存回调事件
|
||||
*/
|
||||
function submitCallback() {
|
||||
handleCancel();
|
||||
emit('success');
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消按钮回调事件
|
||||
*/
|
||||
function handleCancel() {
|
||||
visible.value = false;
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
add,
|
||||
edit,
|
||||
disableSubmit,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
/**隐藏样式-modal确定按钮 */
|
||||
.jee-hidden {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
<style lang="less" scoped></style>
|
|
@ -0,0 +1,175 @@
|
|||
<template>
|
||||
<a-spin :spinning="confirmLoading">
|
||||
<JFormContainer :disabled="disabled">
|
||||
<template #detail>
|
||||
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" name="ShangbaoPracticePalnUserForm">
|
||||
<a-row>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="实践计划id" v-bind="validateInfos.planId" id="ShangbaoPracticePalnUserForm-planId" name="planId">
|
||||
<a-input v-model:value="formData.planId" placeholder="请输入实践计划id" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="实践计划名称" v-bind="validateInfos.planName" id="ShangbaoPracticePalnUserForm-planName" name="planName">
|
||||
<a-input v-model:value="formData.planName" placeholder="请输入实践计划名称" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="学院id" v-bind="validateInfos.orgId" id="ShangbaoPracticePalnUserForm-orgId" name="orgId">
|
||||
<a-input-number v-model:value="formData.orgId" placeholder="请输入学院id" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="学院名称" v-bind="validateInfos.orgName" id="ShangbaoPracticePalnUserForm-orgName" name="orgName">
|
||||
<a-input v-model:value="formData.orgName" placeholder="请输入学院名称" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="学生id" v-bind="validateInfos.studentId" id="ShangbaoPracticePalnUserForm-studentId" name="studentId">
|
||||
<a-input-number v-model:value="formData.studentId" placeholder="请输入学生id" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="学生姓名" v-bind="validateInfos.studentName" id="ShangbaoPracticePalnUserForm-studentName" name="studentName">
|
||||
<a-input v-model:value="formData.studentName" placeholder="请输入学生姓名" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</template>
|
||||
</JFormContainer>
|
||||
</a-spin>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted } from 'vue';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
import { getValueType } from '/@/utils';
|
||||
import { saveOrUpdate } from '../ShangbaoPracticePalnUser.api';
|
||||
import { Form } from 'ant-design-vue';
|
||||
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
|
||||
const props = defineProps({
|
||||
formDisabled: { type: Boolean, default: false },
|
||||
formData: { type: Object, default: () => ({})},
|
||||
formBpm: { type: Boolean, default: true }
|
||||
});
|
||||
const formRef = ref();
|
||||
const useForm = Form.useForm;
|
||||
const emit = defineEmits(['register', 'ok']);
|
||||
const formData = reactive<Record<string, any>>({
|
||||
id: '',
|
||||
planId: '',
|
||||
planName: '',
|
||||
orgId: undefined,
|
||||
orgName: '',
|
||||
studentId: undefined,
|
||||
studentName: '',
|
||||
});
|
||||
const { createMessage } = useMessage();
|
||||
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
|
||||
const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 16 } });
|
||||
const confirmLoading = ref<boolean>(false);
|
||||
//表单验证
|
||||
const validatorRules = reactive({
|
||||
});
|
||||
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
|
||||
|
||||
// 表单禁用
|
||||
const disabled = computed(()=>{
|
||||
if(props.formBpm === true){
|
||||
if(props.formData.disabled === false){
|
||||
return false;
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return props.formDisabled;
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
function add() {
|
||||
edit({});
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*/
|
||||
function edit(record) {
|
||||
nextTick(() => {
|
||||
resetFields();
|
||||
const tmpData = {};
|
||||
Object.keys(formData).forEach((key) => {
|
||||
if(record.hasOwnProperty(key)){
|
||||
tmpData[key] = record[key]
|
||||
}
|
||||
})
|
||||
//赋值
|
||||
Object.assign(formData, tmpData);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 提交数据
|
||||
*/
|
||||
async function submitForm() {
|
||||
try {
|
||||
// 触发表单验证
|
||||
await validate();
|
||||
} catch ({ errorFields }) {
|
||||
if (errorFields) {
|
||||
const firstField = errorFields[0];
|
||||
if (firstField) {
|
||||
formRef.value.scrollToField(firstField.name, { behavior: 'smooth', block: 'center' });
|
||||
}
|
||||
}
|
||||
return Promise.reject(errorFields);
|
||||
}
|
||||
confirmLoading.value = true;
|
||||
const isUpdate = ref<boolean>(false);
|
||||
//时间格式化
|
||||
let model = formData;
|
||||
if (model.id) {
|
||||
isUpdate.value = true;
|
||||
}
|
||||
//循环数据
|
||||
for (let data in model) {
|
||||
//如果该数据是数组并且是字符串类型
|
||||
if (model[data] instanceof Array) {
|
||||
let valueType = getValueType(formRef.value.getProps, data);
|
||||
//如果是字符串类型的需要变成以逗号分割的字符串
|
||||
if (valueType === 'string') {
|
||||
model[data] = model[data].join(',');
|
||||
}
|
||||
}
|
||||
}
|
||||
await saveOrUpdate(model, isUpdate.value)
|
||||
.then((res) => {
|
||||
if (res.success) {
|
||||
createMessage.success(res.message);
|
||||
emit('ok');
|
||||
} else {
|
||||
createMessage.warning(res.message);
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
confirmLoading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
add,
|
||||
edit,
|
||||
submitForm,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.antd-modal-form {
|
||||
padding: 14px;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,77 @@
|
|||
<template>
|
||||
<j-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
|
||||
<ShangbaoPracticePalnUserForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></ShangbaoPracticePalnUserForm>
|
||||
</j-modal>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, nextTick, defineExpose } from 'vue';
|
||||
import ShangbaoPracticePalnUserForm from './ShangbaoPracticePalnUserForm.vue'
|
||||
import JModal from '/@/components/Modal/src/JModal/JModal.vue';
|
||||
|
||||
const title = ref<string>('');
|
||||
const width = ref<number>(800);
|
||||
const visible = ref<boolean>(false);
|
||||
const disableSubmit = ref<boolean>(false);
|
||||
const registerForm = ref();
|
||||
const emit = defineEmits(['register', 'success']);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
function add() {
|
||||
title.value = '新增';
|
||||
visible.value = true;
|
||||
nextTick(() => {
|
||||
registerForm.value.add();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
* @param record
|
||||
*/
|
||||
function edit(record) {
|
||||
title.value = disableSubmit.value ? '详情' : '编辑';
|
||||
visible.value = true;
|
||||
nextTick(() => {
|
||||
registerForm.value.edit(record);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 确定按钮点击事件
|
||||
*/
|
||||
function handleOk() {
|
||||
registerForm.value.submitForm();
|
||||
}
|
||||
|
||||
/**
|
||||
* form保存回调事件
|
||||
*/
|
||||
function submitCallback() {
|
||||
handleCancel();
|
||||
emit('success');
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消按钮回调事件
|
||||
*/
|
||||
function handleCancel() {
|
||||
visible.value = false;
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
add,
|
||||
edit,
|
||||
disableSubmit,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
/**隐藏样式-modal确定按钮 */
|
||||
.jee-hidden {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
<style lang="less" scoped></style>
|
|
@ -0,0 +1,231 @@
|
|||
<template>
|
||||
<a-spin :spinning="confirmLoading">
|
||||
<JFormContainer :disabled="disabled">
|
||||
<template #detail>
|
||||
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" name="ShangbaoPracticePalnUserResCountForm">
|
||||
<a-row>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="实践计划id" v-bind="validateInfos.planId" id="ShangbaoPracticePalnUserResCountForm-planId" name="planId">
|
||||
<a-input v-model:value="formData.planId" placeholder="请输入实践计划id" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="实践计划名称" v-bind="validateInfos.planName" id="ShangbaoPracticePalnUserResCountForm-planName" name="planName">
|
||||
<a-input v-model:value="formData.planName" placeholder="请输入实践计划名称" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="阶段id" v-bind="validateInfos.stepId" id="ShangbaoPracticePalnUserResCountForm-stepId" name="stepId">
|
||||
<a-input v-model:value="formData.stepId" placeholder="请输入阶段id" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="阶段名称" v-bind="validateInfos.stepName" id="ShangbaoPracticePalnUserResCountForm-stepName" name="stepName">
|
||||
<a-input v-model:value="formData.stepName" placeholder="请输入阶段名称" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="阶段开始时间" v-bind="validateInfos.stepStartTime" id="ShangbaoPracticePalnUserResCountForm-stepStartTime" name="stepStartTime">
|
||||
<a-date-picker placeholder="请选择阶段开始时间" v-model:value="formData.stepStartTime" showTime value-format="YYYY-MM-DD HH:mm:ss" style="width: 100%" allow-clear />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="阶段结束时间" v-bind="validateInfos.stepEndTime" id="ShangbaoPracticePalnUserResCountForm-stepEndTime" name="stepEndTime">
|
||||
<a-date-picker placeholder="请选择阶段结束时间" v-model:value="formData.stepEndTime" showTime value-format="YYYY-MM-DD HH:mm:ss" style="width: 100%" allow-clear />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="子分类id" v-bind="validateInfos.taskId" id="ShangbaoPracticePalnUserResCountForm-taskId" name="taskId">
|
||||
<a-input v-model:value="formData.taskId" placeholder="请输入子分类id" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="子分类名称" v-bind="validateInfos.taskName" id="ShangbaoPracticePalnUserResCountForm-taskName" name="taskName">
|
||||
<a-input v-model:value="formData.taskName" placeholder="请输入子分类名称" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="学院id" v-bind="validateInfos.orgId" id="ShangbaoPracticePalnUserResCountForm-orgId" name="orgId">
|
||||
<a-input-number v-model:value="formData.orgId" placeholder="请输入学院id" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="学院名称" v-bind="validateInfos.orgName" id="ShangbaoPracticePalnUserResCountForm-orgName" name="orgName">
|
||||
<a-input v-model:value="formData.orgName" placeholder="请输入学院名称" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="学生id" v-bind="validateInfos.studentId" id="ShangbaoPracticePalnUserResCountForm-studentId" name="studentId">
|
||||
<a-input-number v-model:value="formData.studentId" placeholder="请输入学生id" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="学生姓名" v-bind="validateInfos.studentName" id="ShangbaoPracticePalnUserResCountForm-studentName" name="studentName">
|
||||
<a-input v-model:value="formData.studentName" placeholder="请输入学生姓名" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="学号" v-bind="validateInfos.personNum" id="ShangbaoPracticePalnUserResCountForm-personNum" name="personNum">
|
||||
<a-input v-model:value="formData.personNum" placeholder="请输入学号" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="系统要求资源数" v-bind="validateInfos.sysResCount" id="ShangbaoPracticePalnUserResCountForm-sysResCount" name="sysResCount">
|
||||
<a-input-number v-model:value="formData.sysResCount" placeholder="请输入系统要求资源数" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="学生实际上传并审核通过资源数" v-bind="validateInfos.stuResCount" id="ShangbaoPracticePalnUserResCountForm-stuResCount" name="stuResCount">
|
||||
<a-input-number v-model:value="formData.stuResCount" placeholder="请输入学生实际上传并审核通过资源数" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</template>
|
||||
</JFormContainer>
|
||||
</a-spin>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted } from 'vue';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
import { getValueType } from '/@/utils';
|
||||
import { saveOrUpdate } from '../ShangbaoPracticePalnUserResCount.api';
|
||||
import { Form } from 'ant-design-vue';
|
||||
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
|
||||
const props = defineProps({
|
||||
formDisabled: { type: Boolean, default: false },
|
||||
formData: { type: Object, default: () => ({})},
|
||||
formBpm: { type: Boolean, default: true }
|
||||
});
|
||||
const formRef = ref();
|
||||
const useForm = Form.useForm;
|
||||
const emit = defineEmits(['register', 'ok']);
|
||||
const formData = reactive<Record<string, any>>({
|
||||
id: '',
|
||||
planId: '',
|
||||
planName: '',
|
||||
stepId: '',
|
||||
stepName: '',
|
||||
stepStartTime: '',
|
||||
stepEndTime: '',
|
||||
taskId: '',
|
||||
taskName: '',
|
||||
orgId: undefined,
|
||||
orgName: '',
|
||||
studentId: undefined,
|
||||
studentName: '',
|
||||
personNum: '',
|
||||
sysResCount: undefined,
|
||||
stuResCount: undefined,
|
||||
});
|
||||
const { createMessage } = useMessage();
|
||||
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
|
||||
const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 16 } });
|
||||
const confirmLoading = ref<boolean>(false);
|
||||
//表单验证
|
||||
const validatorRules = reactive({
|
||||
sysResCount: [{ required: true, message: '请输入系统要求资源数!'},],
|
||||
stuResCount: [{ required: true, message: '请输入学生实际上传并审核通过资源数!'},],
|
||||
});
|
||||
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
|
||||
|
||||
// 表单禁用
|
||||
const disabled = computed(()=>{
|
||||
if(props.formBpm === true){
|
||||
if(props.formData.disabled === false){
|
||||
return false;
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return props.formDisabled;
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
function add() {
|
||||
edit({});
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*/
|
||||
function edit(record) {
|
||||
nextTick(() => {
|
||||
resetFields();
|
||||
const tmpData = {};
|
||||
Object.keys(formData).forEach((key) => {
|
||||
if(record.hasOwnProperty(key)){
|
||||
tmpData[key] = record[key]
|
||||
}
|
||||
})
|
||||
//赋值
|
||||
Object.assign(formData, tmpData);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 提交数据
|
||||
*/
|
||||
async function submitForm() {
|
||||
try {
|
||||
// 触发表单验证
|
||||
await validate();
|
||||
} catch ({ errorFields }) {
|
||||
if (errorFields) {
|
||||
const firstField = errorFields[0];
|
||||
if (firstField) {
|
||||
formRef.value.scrollToField(firstField.name, { behavior: 'smooth', block: 'center' });
|
||||
}
|
||||
}
|
||||
return Promise.reject(errorFields);
|
||||
}
|
||||
confirmLoading.value = true;
|
||||
const isUpdate = ref<boolean>(false);
|
||||
//时间格式化
|
||||
let model = formData;
|
||||
if (model.id) {
|
||||
isUpdate.value = true;
|
||||
}
|
||||
//循环数据
|
||||
for (let data in model) {
|
||||
//如果该数据是数组并且是字符串类型
|
||||
if (model[data] instanceof Array) {
|
||||
let valueType = getValueType(formRef.value.getProps, data);
|
||||
//如果是字符串类型的需要变成以逗号分割的字符串
|
||||
if (valueType === 'string') {
|
||||
model[data] = model[data].join(',');
|
||||
}
|
||||
}
|
||||
}
|
||||
await saveOrUpdate(model, isUpdate.value)
|
||||
.then((res) => {
|
||||
if (res.success) {
|
||||
createMessage.success(res.message);
|
||||
emit('ok');
|
||||
} else {
|
||||
createMessage.warning(res.message);
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
confirmLoading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
add,
|
||||
edit,
|
||||
submitForm,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.antd-modal-form {
|
||||
padding: 14px;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,77 @@
|
|||
<template>
|
||||
<j-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
|
||||
<ShangbaoPracticePalnUserResCountForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></ShangbaoPracticePalnUserResCountForm>
|
||||
</j-modal>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, nextTick, defineExpose } from 'vue';
|
||||
import ShangbaoPracticePalnUserResCountForm from './ShangbaoPracticePalnUserResCountForm.vue'
|
||||
import JModal from '/@/components/Modal/src/JModal/JModal.vue';
|
||||
|
||||
const title = ref<string>('');
|
||||
const width = ref<number>(800);
|
||||
const visible = ref<boolean>(false);
|
||||
const disableSubmit = ref<boolean>(false);
|
||||
const registerForm = ref();
|
||||
const emit = defineEmits(['register', 'success']);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
function add() {
|
||||
title.value = '新增';
|
||||
visible.value = true;
|
||||
nextTick(() => {
|
||||
registerForm.value.add();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
* @param record
|
||||
*/
|
||||
function edit(record) {
|
||||
title.value = disableSubmit.value ? '详情' : '编辑';
|
||||
visible.value = true;
|
||||
nextTick(() => {
|
||||
registerForm.value.edit(record);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 确定按钮点击事件
|
||||
*/
|
||||
function handleOk() {
|
||||
registerForm.value.submitForm();
|
||||
}
|
||||
|
||||
/**
|
||||
* form保存回调事件
|
||||
*/
|
||||
function submitCallback() {
|
||||
handleCancel();
|
||||
emit('success');
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消按钮回调事件
|
||||
*/
|
||||
function handleCancel() {
|
||||
visible.value = false;
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
add,
|
||||
edit,
|
||||
disableSubmit,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
/**隐藏样式-modal确定按钮 */
|
||||
.jee-hidden {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
<style lang="less" scoped></style>
|
|
@ -0,0 +1,211 @@
|
|||
<template>
|
||||
<a-spin :spinning="confirmLoading">
|
||||
<JFormContainer :disabled="disabled">
|
||||
<template #detail>
|
||||
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" name="ShangbaoPracticePalnUserResDetailForm">
|
||||
<a-row>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="实践计划id" v-bind="validateInfos.planId" id="ShangbaoPracticePalnUserResDetailForm-planId" name="planId">
|
||||
<a-input v-model:value="formData.planId" placeholder="请输入实践计划id" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="实践计划名称" v-bind="validateInfos.planName" id="ShangbaoPracticePalnUserResDetailForm-planName" name="planName">
|
||||
<a-input v-model:value="formData.planName" placeholder="请输入实践计划名称" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="学生id" v-bind="validateInfos.studentId" id="ShangbaoPracticePalnUserResDetailForm-studentId" name="studentId">
|
||||
<a-input-number v-model:value="formData.studentId" placeholder="请输入学生id" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="学生姓名" v-bind="validateInfos.studentName" id="ShangbaoPracticePalnUserResDetailForm-studentName" name="studentName">
|
||||
<a-input v-model:value="formData.studentName" placeholder="请输入学生姓名" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="阶段id" v-bind="validateInfos.stepId" id="ShangbaoPracticePalnUserResDetailForm-stepId" name="stepId">
|
||||
<a-input v-model:value="formData.stepId" placeholder="请输入阶段id" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="阶段名称" v-bind="validateInfos.stepName" id="ShangbaoPracticePalnUserResDetailForm-stepName" name="stepName">
|
||||
<a-input v-model:value="formData.stepName" placeholder="请输入阶段名称" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="子分类id" v-bind="validateInfos.taskId" id="ShangbaoPracticePalnUserResDetailForm-taskId" name="taskId">
|
||||
<a-input v-model:value="formData.taskId" placeholder="请输入子分类id" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="子分类名称" v-bind="validateInfos.taskName" id="ShangbaoPracticePalnUserResDetailForm-taskName" name="taskName">
|
||||
<a-input v-model:value="formData.taskName" placeholder="请输入子分类名称" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="资源INT ID" v-bind="validateInfos.resourceIdInt" id="ShangbaoPracticePalnUserResDetailForm-resourceIdInt" name="resourceIdInt">
|
||||
<a-input-number v-model:value="formData.resourceIdInt" placeholder="请输入资源INT ID" style="width: 100%" />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="文件fileid" v-bind="validateInfos.fileId" id="ShangbaoPracticePalnUserResDetailForm-fileId" name="fileId">
|
||||
<a-input v-model:value="formData.fileId" placeholder="请输入文件fileid" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="资源标题" v-bind="validateInfos.resourceTitle" id="ShangbaoPracticePalnUserResDetailForm-resourceTitle" name="resourceTitle">
|
||||
<a-input v-model:value="formData.resourceTitle" placeholder="请输入资源标题" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="资源路径" v-bind="validateInfos.resourcePath" id="ShangbaoPracticePalnUserResDetailForm-resourcePath" name="resourcePath">
|
||||
<a-input v-model:value="formData.resourcePath" placeholder="请输入资源路径" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</template>
|
||||
</JFormContainer>
|
||||
</a-spin>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted } from 'vue';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
import { getValueType } from '/@/utils';
|
||||
import { saveOrUpdate } from '../ShangbaoPracticePalnUserResDetail.api';
|
||||
import { Form } from 'ant-design-vue';
|
||||
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
|
||||
const props = defineProps({
|
||||
formDisabled: { type: Boolean, default: false },
|
||||
formData: { type: Object, default: () => ({})},
|
||||
formBpm: { type: Boolean, default: true }
|
||||
});
|
||||
const formRef = ref();
|
||||
const useForm = Form.useForm;
|
||||
const emit = defineEmits(['register', 'ok']);
|
||||
const formData = reactive<Record<string, any>>({
|
||||
id: '',
|
||||
planId: '',
|
||||
planName: '',
|
||||
studentId: undefined,
|
||||
studentName: '',
|
||||
stepId: '',
|
||||
stepName: '',
|
||||
taskId: '',
|
||||
taskName: '',
|
||||
resourceIdInt: undefined,
|
||||
fileId: '',
|
||||
resourceTitle: '',
|
||||
resourcePath: '',
|
||||
});
|
||||
const { createMessage } = useMessage();
|
||||
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
|
||||
const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 16 } });
|
||||
const confirmLoading = ref<boolean>(false);
|
||||
//表单验证
|
||||
const validatorRules = reactive({
|
||||
});
|
||||
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
|
||||
|
||||
// 表单禁用
|
||||
const disabled = computed(()=>{
|
||||
if(props.formBpm === true){
|
||||
if(props.formData.disabled === false){
|
||||
return false;
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return props.formDisabled;
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
function add() {
|
||||
edit({});
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*/
|
||||
function edit(record) {
|
||||
nextTick(() => {
|
||||
resetFields();
|
||||
const tmpData = {};
|
||||
Object.keys(formData).forEach((key) => {
|
||||
if(record.hasOwnProperty(key)){
|
||||
tmpData[key] = record[key]
|
||||
}
|
||||
})
|
||||
//赋值
|
||||
Object.assign(formData, tmpData);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 提交数据
|
||||
*/
|
||||
async function submitForm() {
|
||||
try {
|
||||
// 触发表单验证
|
||||
await validate();
|
||||
} catch ({ errorFields }) {
|
||||
if (errorFields) {
|
||||
const firstField = errorFields[0];
|
||||
if (firstField) {
|
||||
formRef.value.scrollToField(firstField.name, { behavior: 'smooth', block: 'center' });
|
||||
}
|
||||
}
|
||||
return Promise.reject(errorFields);
|
||||
}
|
||||
confirmLoading.value = true;
|
||||
const isUpdate = ref<boolean>(false);
|
||||
//时间格式化
|
||||
let model = formData;
|
||||
if (model.id) {
|
||||
isUpdate.value = true;
|
||||
}
|
||||
//循环数据
|
||||
for (let data in model) {
|
||||
//如果该数据是数组并且是字符串类型
|
||||
if (model[data] instanceof Array) {
|
||||
let valueType = getValueType(formRef.value.getProps, data);
|
||||
//如果是字符串类型的需要变成以逗号分割的字符串
|
||||
if (valueType === 'string') {
|
||||
model[data] = model[data].join(',');
|
||||
}
|
||||
}
|
||||
}
|
||||
await saveOrUpdate(model, isUpdate.value)
|
||||
.then((res) => {
|
||||
if (res.success) {
|
||||
createMessage.success(res.message);
|
||||
emit('ok');
|
||||
} else {
|
||||
createMessage.warning(res.message);
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
confirmLoading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
add,
|
||||
edit,
|
||||
submitForm,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.antd-modal-form {
|
||||
padding: 14px;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,77 @@
|
|||
<template>
|
||||
<j-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
|
||||
<ShangbaoPracticePalnUserResDetailForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></ShangbaoPracticePalnUserResDetailForm>
|
||||
</j-modal>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, nextTick, defineExpose } from 'vue';
|
||||
import ShangbaoPracticePalnUserResDetailForm from './ShangbaoPracticePalnUserResDetailForm.vue'
|
||||
import JModal from '/@/components/Modal/src/JModal/JModal.vue';
|
||||
|
||||
const title = ref<string>('');
|
||||
const width = ref<number>(800);
|
||||
const visible = ref<boolean>(false);
|
||||
const disableSubmit = ref<boolean>(false);
|
||||
const registerForm = ref();
|
||||
const emit = defineEmits(['register', 'success']);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
function add() {
|
||||
title.value = '新增';
|
||||
visible.value = true;
|
||||
nextTick(() => {
|
||||
registerForm.value.add();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
* @param record
|
||||
*/
|
||||
function edit(record) {
|
||||
title.value = disableSubmit.value ? '详情' : '编辑';
|
||||
visible.value = true;
|
||||
nextTick(() => {
|
||||
registerForm.value.edit(record);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 确定按钮点击事件
|
||||
*/
|
||||
function handleOk() {
|
||||
registerForm.value.submitForm();
|
||||
}
|
||||
|
||||
/**
|
||||
* form保存回调事件
|
||||
*/
|
||||
function submitCallback() {
|
||||
handleCancel();
|
||||
emit('success');
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消按钮回调事件
|
||||
*/
|
||||
function handleCancel() {
|
||||
visible.value = false;
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
add,
|
||||
edit,
|
||||
disableSubmit,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
/**隐藏样式-modal确定按钮 */
|
||||
.jee-hidden {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
<style lang="less" scoped></style>
|
|
@ -0,0 +1,151 @@
|
|||
<template>
|
||||
<a-spin :spinning="confirmLoading">
|
||||
<JFormContainer :disabled="disabled">
|
||||
<template #detail>
|
||||
<a-form ref="formRef" class="antd-modal-form" :labelCol="labelCol" :wrapperCol="wrapperCol" name="ShangbaoPracticePlanInfoForm">
|
||||
<a-row>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="实践计划名称" v-bind="validateInfos.planName" id="ShangbaoPracticePlanInfoForm-planName" name="planName">
|
||||
<a-input v-model:value="formData.planName" placeholder="请输入实践计划名称" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="实践计划类型" v-bind="validateInfos.planTypeName" id="ShangbaoPracticePlanInfoForm-planTypeName" name="planTypeName">
|
||||
<a-input v-model:value="formData.planTypeName" placeholder="请输入实践计划类型" allow-clear ></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</template>
|
||||
</JFormContainer>
|
||||
</a-spin>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, reactive, defineExpose, nextTick, defineProps, computed, onMounted } from 'vue';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
import { getValueType } from '/@/utils';
|
||||
import { saveOrUpdate } from '../ShangbaoPracticePlanInfo.api';
|
||||
import { Form } from 'ant-design-vue';
|
||||
import JFormContainer from '/@/components/Form/src/container/JFormContainer.vue';
|
||||
const props = defineProps({
|
||||
formDisabled: { type: Boolean, default: false },
|
||||
formData: { type: Object, default: () => ({})},
|
||||
formBpm: { type: Boolean, default: true }
|
||||
});
|
||||
const formRef = ref();
|
||||
const useForm = Form.useForm;
|
||||
const emit = defineEmits(['register', 'ok']);
|
||||
const formData = reactive<Record<string, any>>({
|
||||
id: '',
|
||||
planName: '',
|
||||
planTypeName: '',
|
||||
});
|
||||
const { createMessage } = useMessage();
|
||||
const labelCol = ref<any>({ xs: { span: 24 }, sm: { span: 5 } });
|
||||
const wrapperCol = ref<any>({ xs: { span: 24 }, sm: { span: 16 } });
|
||||
const confirmLoading = ref<boolean>(false);
|
||||
//表单验证
|
||||
const validatorRules = reactive({
|
||||
});
|
||||
const { resetFields, validate, validateInfos } = useForm(formData, validatorRules, { immediate: false });
|
||||
|
||||
// 表单禁用
|
||||
const disabled = computed(()=>{
|
||||
if(props.formBpm === true){
|
||||
if(props.formData.disabled === false){
|
||||
return false;
|
||||
}else{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return props.formDisabled;
|
||||
});
|
||||
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
function add() {
|
||||
edit({});
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*/
|
||||
function edit(record) {
|
||||
nextTick(() => {
|
||||
resetFields();
|
||||
const tmpData = {};
|
||||
Object.keys(formData).forEach((key) => {
|
||||
if(record.hasOwnProperty(key)){
|
||||
tmpData[key] = record[key]
|
||||
}
|
||||
})
|
||||
//赋值
|
||||
Object.assign(formData, tmpData);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 提交数据
|
||||
*/
|
||||
async function submitForm() {
|
||||
try {
|
||||
// 触发表单验证
|
||||
await validate();
|
||||
} catch ({ errorFields }) {
|
||||
if (errorFields) {
|
||||
const firstField = errorFields[0];
|
||||
if (firstField) {
|
||||
formRef.value.scrollToField(firstField.name, { behavior: 'smooth', block: 'center' });
|
||||
}
|
||||
}
|
||||
return Promise.reject(errorFields);
|
||||
}
|
||||
confirmLoading.value = true;
|
||||
const isUpdate = ref<boolean>(false);
|
||||
//时间格式化
|
||||
let model = formData;
|
||||
if (model.id) {
|
||||
isUpdate.value = true;
|
||||
}
|
||||
//循环数据
|
||||
for (let data in model) {
|
||||
//如果该数据是数组并且是字符串类型
|
||||
if (model[data] instanceof Array) {
|
||||
let valueType = getValueType(formRef.value.getProps, data);
|
||||
//如果是字符串类型的需要变成以逗号分割的字符串
|
||||
if (valueType === 'string') {
|
||||
model[data] = model[data].join(',');
|
||||
}
|
||||
}
|
||||
}
|
||||
await saveOrUpdate(model, isUpdate.value)
|
||||
.then((res) => {
|
||||
if (res.success) {
|
||||
createMessage.success(res.message);
|
||||
emit('ok');
|
||||
} else {
|
||||
createMessage.warning(res.message);
|
||||
}
|
||||
})
|
||||
.finally(() => {
|
||||
confirmLoading.value = false;
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
defineExpose({
|
||||
add,
|
||||
edit,
|
||||
submitForm,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
.antd-modal-form {
|
||||
padding: 14px;
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,77 @@
|
|||
<template>
|
||||
<j-modal :title="title" :width="width" :visible="visible" @ok="handleOk" :okButtonProps="{ class: { 'jee-hidden': disableSubmit } }" @cancel="handleCancel" cancelText="关闭">
|
||||
<ShangbaoPracticePlanInfoForm ref="registerForm" @ok="submitCallback" :formDisabled="disableSubmit" :formBpm="false"></ShangbaoPracticePlanInfoForm>
|
||||
</j-modal>
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref, nextTick, defineExpose } from 'vue';
|
||||
import ShangbaoPracticePlanInfoForm from './ShangbaoPracticePlanInfoForm.vue'
|
||||
import JModal from '/@/components/Modal/src/JModal/JModal.vue';
|
||||
|
||||
const title = ref<string>('');
|
||||
const width = ref<number>(800);
|
||||
const visible = ref<boolean>(false);
|
||||
const disableSubmit = ref<boolean>(false);
|
||||
const registerForm = ref();
|
||||
const emit = defineEmits(['register', 'success']);
|
||||
|
||||
/**
|
||||
* 新增
|
||||
*/
|
||||
function add() {
|
||||
title.value = '新增';
|
||||
visible.value = true;
|
||||
nextTick(() => {
|
||||
registerForm.value.add();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
* @param record
|
||||
*/
|
||||
function edit(record) {
|
||||
title.value = disableSubmit.value ? '详情' : '编辑';
|
||||
visible.value = true;
|
||||
nextTick(() => {
|
||||
registerForm.value.edit(record);
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 确定按钮点击事件
|
||||
*/
|
||||
function handleOk() {
|
||||
registerForm.value.submitForm();
|
||||
}
|
||||
|
||||
/**
|
||||
* form保存回调事件
|
||||
*/
|
||||
function submitCallback() {
|
||||
handleCancel();
|
||||
emit('success');
|
||||
}
|
||||
|
||||
/**
|
||||
* 取消按钮回调事件
|
||||
*/
|
||||
function handleCancel() {
|
||||
visible.value = false;
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
add,
|
||||
edit,
|
||||
disableSubmit,
|
||||
});
|
||||
</script>
|
||||
|
||||
<style lang="less">
|
||||
/**隐藏样式-modal确定按钮 */
|
||||
.jee-hidden {
|
||||
display: none !important;
|
||||
}
|
||||
</style>
|
||||
<style lang="less" scoped></style>
|
|
@ -210,18 +210,11 @@
|
|||
<!-- 选课后的列表 -->
|
||||
<div v-if="sfxk == 999">
|
||||
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<!-- <div class="jeecg-basic-table-form-container">
|
||||
<a-form class="query-criteria">
|
||||
<!-- <div style="margin-bottom: 20px;">
|
||||
<a-breadcrumb>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleXuanke">课程考核材料</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><span class="mbxtitle">已选课程</span></a-breadcrumb-item>
|
||||
</a-breadcrumb>
|
||||
</div> -->
|
||||
<a-button type="primary" preIcon="ant-design:copy-outlined" @click="handleXuanke" style="margin-left: 8px;margin-bottom: 15px;"> 返回选课</a-button>
|
||||
|
||||
</a-form>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<!--查询区域-->
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
|
|
|
@ -173,7 +173,7 @@
|
|||
<a-row>
|
||||
<a-col :span="24">
|
||||
<a-form-item label="学年学期" id="ZjSqxxForm-xnxq" name="xnxq">
|
||||
<j-dict-select-tag v-model:value="formData.xnxq" dictCode="xqxn" placeholder="请选择学年学期,如果不选,默认全部" allow-clear />
|
||||
<j-dict-select-tag v-model:value="formData.xnxq" dictCode="xnxq" placeholder="请选择学年学期,如果不选,默认全部" allow-clear />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="24">
|
||||
|
@ -208,7 +208,7 @@
|
|||
<a-input v-model:value="formData.zydl" placeholder="请输入校内专业(大类)" allow-clear></a-input>
|
||||
</a-form-item>
|
||||
</a-col> -->
|
||||
<a-col :span="24">
|
||||
<!-- <a-col :span="24">
|
||||
<a-form-item label="课程类别" id="ZjSqxxForm-kclb" name="kclb">
|
||||
<JSelectMultiple v-model:value="formData.kclb" placeholder="请选择开课单位,如果不选,默认全部" dictCode="kcxz"></JSelectMultiple>
|
||||
</a-form-item>
|
||||
|
@ -220,7 +220,7 @@
|
|||
<a-button type="primary" @click="handleKecheng">选择</a-button>
|
||||
</a-input-group>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-col> -->
|
||||
</a-row>
|
||||
</a-col>
|
||||
<!-- 基本建设制度 -->
|
||||
|
|
|
@ -208,7 +208,7 @@
|
|||
<a-input v-model:value="item.zydl" placeholder="请输入校内专业(大类)" allow-clear></a-input>
|
||||
</a-form-item>
|
||||
</a-col> -->
|
||||
<a-col :span="24">
|
||||
<!-- <a-col :span="24">
|
||||
<a-form-item label="课程类别" id="ZjSqxxForm-kclb" name="kclb">
|
||||
<JSelectMultiple v-model:value="item.kclb" placeholder="请选择课程类别,如果不选,默认全部" dictCode="kcxz"></JSelectMultiple>
|
||||
</a-form-item>
|
||||
|
@ -220,7 +220,7 @@
|
|||
<a-button type="primary" @click="handleKecheng(index)">选择</a-button>
|
||||
</a-input-group>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-col> -->
|
||||
</a-row>
|
||||
</a-col>
|
||||
<!-- 基本制度建设 -->
|
||||
|
|
Loading…
Reference in New Issue