修改bug
This commit is contained in:
parent
951d8d318d
commit
6a9e11a9f7
|
@ -102,7 +102,7 @@ public class CommonUtils {
|
|||
}
|
||||
//替换上传文件名字的特殊字符
|
||||
fileName = fileName.replace("=","").replace(",","").replace("&","")
|
||||
.replace("#", "").replace("“", "").replace("”", "");
|
||||
.replace("#", "").replace("“", "").replace("”", "").replace("(", "(").replace(")", ")");
|
||||
//替换上传文件名字中的空格
|
||||
fileName=fileName.replaceAll("\\s","");
|
||||
//update-beign-author:taoyan date:20220302 for: /issues/3381 online 在线表单 使用文件组件时,上传文件名中含%,下载异常
|
||||
|
|
|
@ -285,4 +285,13 @@ public class KcKetangbiaoController extends JeecgController<KcKetangbiao, IKcKet
|
|||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ApiOperation(value="获取教师职称", notes="获取教师职称")
|
||||
@GetMapping(value = "/getTeacherZhicheng")
|
||||
public Result<KcKetangbiao> getTeacherZhicheng(KcKetangbiao kcKetangbiao) {
|
||||
KcKetangbiao pageList = kcKetangbiaoService.getTeacherZhicheng(kcKetangbiao);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -23,4 +23,6 @@ public interface KcKetangbiaoMapper extends BaseMapper<KcKetangbiao> {
|
|||
IPage<KcKetangbiao> checklist(Page<KcKetangbiao> page, KcKetangbiao kcKetangbiao);
|
||||
|
||||
IPage<KcKetangbiao> getYylist(Page<KcKetangbiao> page, KcKetangbiao kcKetangbiao);
|
||||
|
||||
KcKetangbiao getTeacherZhicheng(KcKetangbiao kcKetangbiao);
|
||||
}
|
||||
|
|
|
@ -186,4 +186,12 @@
|
|||
GROUP BY kcmc
|
||||
order by kcmc asc
|
||||
</select>
|
||||
|
||||
|
||||
<select id="getTeacherZhicheng" parameterType="org.jeecg.modules.demo.kcKetangbiao.entity.KcKetangbiao" resultType="org.jeecg.modules.demo.kcKetangbiao.entity.KcKetangbiao">
|
||||
select * from kc_ketangbiao a ,kc_sys_config b
|
||||
where a.xnxq = b.flag1
|
||||
and a.jgh = #{jgh}
|
||||
limit 1
|
||||
</select>
|
||||
</mapper>
|
|
@ -21,4 +21,6 @@ public interface IKcKetangbiaoService extends IService<KcKetangbiao> {
|
|||
IPage<KcKetangbiao> checklist(Page<KcKetangbiao> page, KcKetangbiao kcKetangbiao);
|
||||
|
||||
IPage<KcKetangbiao> getYylist(Page<KcKetangbiao> page, KcKetangbiao kcKetangbiao);
|
||||
|
||||
KcKetangbiao getTeacherZhicheng(KcKetangbiao kcKetangbiao);
|
||||
}
|
||||
|
|
|
@ -111,4 +111,9 @@ public class KcKetangbiaoServiceImpl extends ServiceImpl<KcKetangbiaoMapper, KcK
|
|||
public IPage<KcKetangbiao> getYylist(Page<KcKetangbiao> page, KcKetangbiao kcKetangbiao) {
|
||||
return baseMapper.getYylist(page,kcKetangbiao);
|
||||
}
|
||||
|
||||
@Override
|
||||
public KcKetangbiao getTeacherZhicheng(KcKetangbiao kcKetangbiao) {
|
||||
return baseMapper.getTeacherZhicheng(kcKetangbiao);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -403,6 +403,36 @@ public class LwKhclController extends JeecgController<LwKhcl, ILwKhclService> {
|
|||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
||||
|
||||
QueryWrapper<ZjSqxx> zjSqxxQueryWrapper = new QueryWrapper<>();
|
||||
zjSqxxQueryWrapper.eq("user_id",sysUser.getId());
|
||||
zjSqxxQueryWrapper.eq("sqfw","2");
|
||||
ZjSqxx zjSqxx = zjSqxxService.getOne(zjSqxxQueryWrapper);
|
||||
String sfjx = "0";
|
||||
String inBynf = "";
|
||||
String inSsyxmc = "";
|
||||
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())){
|
||||
inBynf = zjSqxx.getXnxq();
|
||||
lwKhcl.setInBynf(inBynf);
|
||||
}
|
||||
if(StringUtils.isNotBlank(zjSqxx.getKkdw())){
|
||||
inSsyxmc = zjSqxx.getKkdw();
|
||||
lwKhcl.setInSsyxmc(inSsyxmc);
|
||||
}
|
||||
}
|
||||
if(StringUtils.equals("1",sfjx)){
|
||||
return Result.error("您未在授权期限内,不能进行查询!");
|
||||
}
|
||||
|
||||
|
||||
lwKhcl.setCreateBy(sysUser.getUsername());
|
||||
Page<LwKhcl> page = new Page<LwKhcl>(pageNo, pageSize);
|
||||
IPage<LwKhcl> pageList = lwKhclService.getXkList(page, lwKhcl);
|
||||
|
|
|
@ -104,11 +104,16 @@ public class LwKhcl implements Serializable {
|
|||
private String ccjgdown;
|
||||
@ApiModelProperty(value = "知道记录单")
|
||||
private String zdjld;
|
||||
private String zfx;
|
||||
|
||||
|
||||
@TableField(exist = false)
|
||||
private String sfxk;
|
||||
@TableField(exist = false)
|
||||
private String createBy;
|
||||
@TableField(exist = false)
|
||||
private String inBynf;
|
||||
@TableField(exist = false)
|
||||
private String inSsyxmc;
|
||||
|
||||
}
|
||||
|
|
|
@ -133,6 +133,41 @@
|
|||
select a.*,if(b.id is not null ,1,0) as sfxk from lw_khcl a
|
||||
LEFT JOIN lw_khcl_xz b on a.id = b.main_id and b.create_by = #{lwKhcl.createBy}
|
||||
<where>
|
||||
|
||||
|
||||
<if test="lwKhcl.ssyxmc != null and lwKhcl.ssyxmc != ''">
|
||||
and a.ssyxmc like concat('%',#{lwKhcl.ssyxmc},'%')
|
||||
</if>
|
||||
<if test="lwKhcl.ssxnzymc != null and lwKhcl.ssxnzymc != ''">
|
||||
and a.ssxnzymc like concat('%',#{lwKhcl.ssxnzymc},'%')
|
||||
</if>
|
||||
|
||||
<if test="lwKhcl.xsxh != null and lwKhcl.xsxh != ''">
|
||||
and a.xsxh like concat('%',#{lwKhcl.xsxh},'%')
|
||||
</if>
|
||||
<if test="lwKhcl.xsxm != null and lwKhcl.xsxm != ''">
|
||||
and a.xsxm like concat('%',#{lwKhcl.xsxm},'%')
|
||||
</if>
|
||||
<if test="lwKhcl.bylwTm != null and lwKhcl.bylwTm != ''">
|
||||
and a.bylw_tm like concat('%',#{lwKhcl.bylwTm},'%')
|
||||
</if>
|
||||
<if test="lwKhcl.bylwCj != null and lwKhcl.bylwCj != ''">
|
||||
and a.bylw_cj = #{lwKhcl.bylwCj}
|
||||
</if>
|
||||
|
||||
<if test="lwKhcl.inSsyxmc != null and lwKhcl.inSsyxmc != ''">
|
||||
and a.ssyxmc in
|
||||
<foreach item="item" index="index" collection="lwKhcl.inSsyxmc.split(',')" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
<if test="lwKhcl.inBynf != null and lwKhcl.inBynf != ''">
|
||||
and a.bynf in
|
||||
<foreach item="item" index="index" collection="lwKhcl.inBynf.split(',')" open="(" separator="," close=")">
|
||||
#{item}
|
||||
</foreach>
|
||||
</if>
|
||||
|
||||
<if test='lwKhcl.lwzg != null and lwKhcl.lwzg == 1'>
|
||||
and a.lwzg is not null
|
||||
</if>
|
||||
|
@ -151,12 +186,6 @@
|
|||
<if test='lwKhcl.ktbg != null and lwKhcl.ktbg == 0'>
|
||||
and a.ktbg is null
|
||||
</if>
|
||||
<if test="lwKhcl.ssxnzymc != null and lwKhcl.ssxnzymc != ''">
|
||||
and a.ssxnzymc like concat('%',#{lwKhcl.ssxnzymc},'%')
|
||||
</if>
|
||||
<if test="lwKhcl.xsxm != null and lwKhcl.xsxm != ''">
|
||||
and a.xsxm like concat('%',#{lwKhcl.xsxm},'%')
|
||||
</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
|
|
@ -28,4 +28,6 @@ public interface ILwKhclService extends IService<LwKhcl> {
|
|||
List<LwKhclXq> getXqList(String xsxh, String xsxm, String ssxnzymc, String ktbg, String zqjc, String lwzg, String inBynf, String inSsyxmc, String inBylwLb);
|
||||
|
||||
IPage<LwKhcl> getXkList(Page<LwKhcl> page, LwKhcl lwKhcl);
|
||||
|
||||
void syncList(List<LwKhcl> impList);
|
||||
}
|
||||
|
|
|
@ -8,10 +8,13 @@ import org.jeecg.modules.demo.lwKhcl.entity.LwKhclCj;
|
|||
import org.jeecg.modules.demo.lwKhcl.entity.LwKhclXq;
|
||||
import org.jeecg.modules.demo.lwKhcl.mapper.LwKhclMapper;
|
||||
import org.jeecg.modules.demo.lwKhcl.service.ILwKhclService;
|
||||
import org.jeecg.modules.demo.zyHuizong.entity.ZyHuizong;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
@ -59,4 +62,14 @@ public class LwKhclServiceImpl extends ServiceImpl<LwKhclMapper, LwKhcl> impleme
|
|||
return baseMapper.getXkList(page,lwKhcl);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void syncList(List<LwKhcl> impList) {
|
||||
syncList(impList, true);
|
||||
}
|
||||
|
||||
@Transactional(rollbackFor = {Exception.class})
|
||||
public boolean syncList(Collection<LwKhcl> entityList, boolean isDelete) {
|
||||
return this.saveBatch(entityList, 1000);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -132,6 +132,7 @@ public class LwKhclXz implements Serializable {
|
|||
private String createBy;
|
||||
private String updateBy;
|
||||
private Date updateTime;
|
||||
private String zfx;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String downLoadPath;
|
||||
|
|
|
@ -49,7 +49,7 @@ public class LwKhclXzServiceImpl extends ServiceImpl<LwKhclXzMapper, LwKhclXz> i
|
|||
@Override
|
||||
public LwKhclXz getLwBatchDown(LwKhclXz lwKhclXz, HttpServletResponse response) {
|
||||
|
||||
String downPath[] = new String[6];
|
||||
String downPath[] = new String[5];
|
||||
LwKhclXz lwKhclXzInfo = baseMapper.selectById(lwKhclXz.getId());
|
||||
// 其余处理略
|
||||
InputStream inputStream = null;
|
||||
|
@ -59,7 +59,7 @@ public class LwKhclXzServiceImpl extends ServiceImpl<LwKhclXzMapper, LwKhclXz> i
|
|||
|
||||
String ktbg = lwKhclXzInfo.getKtbg();
|
||||
String ktbgshyj = lwKhclXzInfo.getKtbgshyj();
|
||||
String zqjc = lwKhclXzInfo.getZqjc();
|
||||
// String zqjc = lwKhclXzInfo.getZqjc();
|
||||
String lwzg = lwKhclXzInfo.getLwzg();
|
||||
String zdjld = lwKhclXzInfo.getZdjld();
|
||||
String ccjgdown = lwKhclXzInfo.getCcjgdown();
|
||||
|
@ -81,7 +81,7 @@ public class LwKhclXzServiceImpl extends ServiceImpl<LwKhclXzMapper, LwKhclXz> i
|
|||
Map<String,String> map = SFTPUtil.download(sftpConfig,imgPath,getDownloadPath(path));
|
||||
String localFilePath = map.get("fileName");
|
||||
System.out.println(localFilePath);
|
||||
downPath[0] =localFilePath.replace("/opt/webapp/","");
|
||||
downPath[0] =localFilePath.replace(downloadpath,"");
|
||||
}
|
||||
if(StringUtils.isNotBlank(ktbgshyj)){
|
||||
String imgPath = ktbgshyj;
|
||||
|
@ -92,19 +92,19 @@ public class LwKhclXzServiceImpl extends ServiceImpl<LwKhclXzMapper, LwKhclXz> i
|
|||
}
|
||||
Map<String,String> map = SFTPUtil.download(sftpConfig,imgPath,getDownloadPath(path));
|
||||
String localFilePath = map.get("fileName");
|
||||
downPath[1] =localFilePath.replace("/opt/webapp/","");
|
||||
}
|
||||
if(StringUtils.isNotBlank(zqjc)){
|
||||
String imgPath = zqjc;
|
||||
int index = imgPath.lastIndexOf("/");
|
||||
String path = "temp";
|
||||
if(index != -1){
|
||||
path = imgPath.substring(0,index);
|
||||
}
|
||||
Map<String,String> map = SFTPUtil.download(sftpConfig,imgPath,getDownloadPath(path));
|
||||
String localFilePath = map.get("fileName");
|
||||
downPath[2] =localFilePath.replace("/opt/webapp/","");
|
||||
downPath[1] =localFilePath.replace(downloadpath,"");
|
||||
}
|
||||
// if(StringUtils.isNotBlank(zqjc)){
|
||||
// String imgPath = zqjc;
|
||||
// int index = imgPath.lastIndexOf("/");
|
||||
// String path = "temp";
|
||||
// if(index != -1){
|
||||
// path = imgPath.substring(0,index);
|
||||
// }
|
||||
// Map<String,String> map = SFTPUtil.download(sftpConfig,imgPath,getDownloadPath(path));
|
||||
// String localFilePath = map.get("fileName");
|
||||
// downPath[2] =localFilePath.replace(downloadpath,"");
|
||||
// }
|
||||
if(StringUtils.isNotBlank(lwzg)){
|
||||
String imgPath = lwzg;
|
||||
int index = imgPath.lastIndexOf("/");
|
||||
|
@ -114,7 +114,7 @@ public class LwKhclXzServiceImpl extends ServiceImpl<LwKhclXzMapper, LwKhclXz> i
|
|||
}
|
||||
Map<String,String> map = SFTPUtil.download(sftpConfig,imgPath,getDownloadPath(path));
|
||||
String localFilePath = map.get("fileName");
|
||||
downPath[3] =localFilePath.replace("/opt/webapp/","");
|
||||
downPath[2] =localFilePath.replace(downloadpath,"");
|
||||
}
|
||||
if(StringUtils.isNotBlank(zdjld)){
|
||||
String imgPath = zdjld;
|
||||
|
@ -125,12 +125,12 @@ public class LwKhclXzServiceImpl extends ServiceImpl<LwKhclXzMapper, LwKhclXz> i
|
|||
}
|
||||
Map<String,String> map = SFTPUtil.download(sftpConfig,imgPath,getDownloadPath(path));
|
||||
String localFilePath = map.get("fileName");
|
||||
downPath[4] =localFilePath.replace("/opt/webapp/","");
|
||||
downPath[3] =localFilePath.replace(downloadpath,"");
|
||||
}
|
||||
if(StringUtils.isNotBlank(ccjgdown)){
|
||||
String savePath = downloadpath+"/bylw/"+lwKhclXzInfo.getXsxm()+ DateUtils.getCurrentTimestamp()+ "论文材料.zip";
|
||||
downloadWangluoFile(ccjgdown,savePath);
|
||||
downPath[5] =savePath.replace("/opt/webapp/","");
|
||||
downPath[4] =savePath.replace(downloadpath,"/");
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -0,0 +1,81 @@
|
|||
package org.jeecg.modules.demo.sync;
|
||||
|
||||
import cn.hutool.core.bean.BeanUtil;
|
||||
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.compress.utils.Lists;
|
||||
import org.jeecg.modules.demo.lwKhcl.entity.LwKhcl;
|
||||
import org.jeecg.modules.demo.lwKhcl.service.ILwKhclService;
|
||||
import org.jeecg.modules.demo.vLwKhcl.entity.VLwKhcl;
|
||||
import org.jeecg.modules.demo.vLwKhcl.service.IVLwKhclService;
|
||||
import org.jeecg.modules.demo.zyHuizong.entity.Vkczxzy0001;
|
||||
import org.jeecg.modules.demo.zyHuizong.entity.ZyHuizong;
|
||||
import org.jeecg.modules.demo.zyHuizong.service.IZyHuizongService;
|
||||
import org.jeecg.modules.demo.zyHuizong.service.Vkczxzy0001Service;
|
||||
import org.jeecg.modules.demo.zyHuizongXiangxi.entity.Vkczxzy0002;
|
||||
import org.jeecg.modules.demo.zyHuizongXiangxi.entity.ZyHuizongXiangxi;
|
||||
import org.jeecg.modules.demo.zyHuizongXiangxi.service.IZyHuizongXiangxiService;
|
||||
import org.jeecg.modules.demo.zyHuizongXiangxi.service.Vkczxzy0002Service;
|
||||
import org.jeecg.modules.demo.zyInfoScjl.entity.ZyInfoScjl;
|
||||
import org.jeecg.modules.demo.zyInfoScjl.entity.ZyInfoScjlOld;
|
||||
import org.jeecg.modules.demo.zyInfoScjl.service.IZyInfoScjlOldService;
|
||||
import org.jeecg.modules.demo.zyInfoScjl.service.IZyInfoScjlService;
|
||||
import org.quartz.JobExecutionContext;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
||||
import java.time.LocalDate;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 同步作业信息
|
||||
*/
|
||||
@Slf4j
|
||||
public class SyncVlwkhcl extends BaseSync {
|
||||
|
||||
@Autowired
|
||||
private IVLwKhclService vLwKhclService;
|
||||
@Autowired
|
||||
private ILwKhclService lwKhclService;
|
||||
/**
|
||||
* 若参数变量名修改 QuartzJobController中也需对应修改
|
||||
*/
|
||||
|
||||
@Override
|
||||
public void execute(JobExecutionContext jobExecutionContext) {
|
||||
start();
|
||||
run(getParamMap());
|
||||
end();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 有参定时任务实现
|
||||
* @param param
|
||||
*/
|
||||
public void run(Map<String, Object> param){
|
||||
List<VLwKhcl> explist = vLwKhclService.list();
|
||||
List<LwKhcl> impList = Lists.newArrayList();
|
||||
explist.forEach(x -> impList.add(BeanUtil.toBean(x, LwKhcl.class)));
|
||||
|
||||
lwKhclService.remove(new QueryWrapper<>());
|
||||
|
||||
lwKhclService.syncList(impList);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* 无参定时任务实现
|
||||
*/
|
||||
public void run(){
|
||||
run(null);
|
||||
}
|
||||
|
||||
|
||||
public static void main(String[] args) {
|
||||
|
||||
LocalDate today = LocalDate.now(); // 获取今天的日期
|
||||
LocalDate yesterday = today.minusDays(1); // 减去一天,得到昨天的日期
|
||||
System.out.println("昨天的日期是: " + yesterday);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,178 @@
|
|||
package org.jeecg.modules.demo.vLwKhcl.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.vLwKhcl.entity.VLwKhcl;
|
||||
import org.jeecg.modules.demo.vLwKhcl.service.IVLwKhclService;
|
||||
|
||||
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: 2024-10-11
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Api(tags="论文材料视图")
|
||||
@RestController
|
||||
@RequestMapping("/vLwKhcl/vLwKhcl")
|
||||
@Slf4j
|
||||
public class VLwKhclController extends JeecgController<VLwKhcl, IVLwKhclService> {
|
||||
@Autowired
|
||||
private IVLwKhclService vLwKhclService;
|
||||
|
||||
/**
|
||||
* 分页列表查询
|
||||
*
|
||||
* @param vLwKhcl
|
||||
* @param pageNo
|
||||
* @param pageSize
|
||||
* @param req
|
||||
* @return
|
||||
*/
|
||||
//@AutoLog(value = "论文材料视图-分页列表查询")
|
||||
@ApiOperation(value="论文材料视图-分页列表查询", notes="论文材料视图-分页列表查询")
|
||||
@GetMapping(value = "/list")
|
||||
public Result<IPage<VLwKhcl>> queryPageList(VLwKhcl vLwKhcl,
|
||||
@RequestParam(name="pageNo", defaultValue="1") Integer pageNo,
|
||||
@RequestParam(name="pageSize", defaultValue="10") Integer pageSize,
|
||||
HttpServletRequest req) {
|
||||
QueryWrapper<VLwKhcl> queryWrapper = QueryGenerator.initQueryWrapper(vLwKhcl, req.getParameterMap());
|
||||
Page<VLwKhcl> page = new Page<VLwKhcl>(pageNo, pageSize);
|
||||
IPage<VLwKhcl> pageList = vLwKhclService.page(page, queryWrapper);
|
||||
return Result.OK(pageList);
|
||||
}
|
||||
|
||||
/**
|
||||
* 添加
|
||||
*
|
||||
* @param vLwKhcl
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "论文材料视图-添加")
|
||||
@ApiOperation(value="论文材料视图-添加", notes="论文材料视图-添加")
|
||||
@RequiresPermissions("vLwKhcl:v_lw_khcl:add")
|
||||
@PostMapping(value = "/add")
|
||||
public Result<String> add(@RequestBody VLwKhcl vLwKhcl) {
|
||||
vLwKhclService.save(vLwKhcl);
|
||||
return Result.OK("添加成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑
|
||||
*
|
||||
* @param vLwKhcl
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "论文材料视图-编辑")
|
||||
@ApiOperation(value="论文材料视图-编辑", notes="论文材料视图-编辑")
|
||||
@RequiresPermissions("vLwKhcl:v_lw_khcl:edit")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody VLwKhcl vLwKhcl) {
|
||||
vLwKhclService.updateById(vLwKhcl);
|
||||
return Result.OK("编辑成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过id删除
|
||||
*
|
||||
* @param id
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "论文材料视图-通过id删除")
|
||||
@ApiOperation(value="论文材料视图-通过id删除", notes="论文材料视图-通过id删除")
|
||||
@RequiresPermissions("vLwKhcl:v_lw_khcl:delete")
|
||||
@DeleteMapping(value = "/delete")
|
||||
public Result<String> delete(@RequestParam(name="id",required=true) String id) {
|
||||
vLwKhclService.removeById(id);
|
||||
return Result.OK("删除成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量删除
|
||||
*
|
||||
* @param ids
|
||||
* @return
|
||||
*/
|
||||
@AutoLog(value = "论文材料视图-批量删除")
|
||||
@ApiOperation(value="论文材料视图-批量删除", notes="论文材料视图-批量删除")
|
||||
@RequiresPermissions("vLwKhcl:v_lw_khcl:deleteBatch")
|
||||
@DeleteMapping(value = "/deleteBatch")
|
||||
public Result<String> deleteBatch(@RequestParam(name="ids",required=true) String ids) {
|
||||
this.vLwKhclService.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<VLwKhcl> queryById(@RequestParam(name="id",required=true) String id) {
|
||||
VLwKhcl vLwKhcl = vLwKhclService.getById(id);
|
||||
if(vLwKhcl==null) {
|
||||
return Result.error("未找到对应数据");
|
||||
}
|
||||
return Result.OK(vLwKhcl);
|
||||
}
|
||||
|
||||
/**
|
||||
* 导出excel
|
||||
*
|
||||
* @param request
|
||||
* @param vLwKhcl
|
||||
*/
|
||||
@RequiresPermissions("vLwKhcl:v_lw_khcl:exportXls")
|
||||
@RequestMapping(value = "/exportXls")
|
||||
public ModelAndView exportXls(HttpServletRequest request, VLwKhcl vLwKhcl) {
|
||||
return super.exportXls(request, vLwKhcl, VLwKhcl.class, "论文材料视图");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过excel导入数据
|
||||
*
|
||||
* @param request
|
||||
* @param response
|
||||
* @return
|
||||
*/
|
||||
@RequiresPermissions("vLwKhcl:v_lw_khcl:importExcel")
|
||||
@RequestMapping(value = "/importExcel", method = RequestMethod.POST)
|
||||
public Result<?> importExcel(HttpServletRequest request, HttpServletResponse response) {
|
||||
return super.importExcel(request, response, VLwKhcl.class);
|
||||
}
|
||||
|
||||
}
|
|
@ -0,0 +1,138 @@
|
|||
package org.jeecg.modules.demo.vLwKhcl.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: 2024-10-11
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Data
|
||||
@TableName("v_lw_khcl")
|
||||
@Accessors(chain = true)
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
@ApiModel(value="v_lw_khcl对象", description="论文材料视图")
|
||||
public class VLwKhcl implements Serializable {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/**主键*/
|
||||
@TableId(type = IdType.ASSIGN_ID)
|
||||
@ApiModelProperty(value = "主键")
|
||||
private java.lang.String id;
|
||||
/**学生学号*/
|
||||
@Excel(name = "学生学号", width = 15)
|
||||
@ApiModelProperty(value = "学生学号")
|
||||
private java.lang.String xsxh;
|
||||
/**学生姓名*/
|
||||
@Excel(name = "学生姓名", width = 15)
|
||||
@ApiModelProperty(value = "学生姓名")
|
||||
private java.lang.String xsxm;
|
||||
/**毕业年份*/
|
||||
@Excel(name = "毕业年份", width = 15)
|
||||
@ApiModelProperty(value = "毕业年份")
|
||||
private java.lang.String bynf;
|
||||
/**班级*/
|
||||
@Excel(name = "班级", width = 15)
|
||||
@ApiModelProperty(value = "班级")
|
||||
private java.lang.String bj;
|
||||
/**毕业论文(设计)题目*/
|
||||
@Excel(name = "毕业论文(设计)题目", width = 15)
|
||||
@ApiModelProperty(value = "毕业论文(设计)题目")
|
||||
private java.lang.String bylwTm;
|
||||
/**毕业论文(设计)类别*/
|
||||
@Excel(name = "毕业论文(设计)类别", width = 15)
|
||||
@ApiModelProperty(value = "毕业论文(设计)类别")
|
||||
private java.lang.String bylwLb;
|
||||
/**毕业论文(设计)成绩*/
|
||||
@Excel(name = "毕业论文(设计)成绩", width = 15)
|
||||
@ApiModelProperty(value = "毕业论文(设计)成绩")
|
||||
private java.lang.String bylwCj;
|
||||
/**指导教师姓名*/
|
||||
@Excel(name = "指导教师姓名", width = 15)
|
||||
@ApiModelProperty(value = "指导教师姓名")
|
||||
private java.lang.String zdjsxm;
|
||||
/**指导教师职称*/
|
||||
@Excel(name = "指导教师职称", width = 15)
|
||||
@ApiModelProperty(value = "指导教师职称")
|
||||
private java.lang.String zdjszc;
|
||||
/**所属院系名称*/
|
||||
@Excel(name = "所属院系名称", width = 15)
|
||||
@ApiModelProperty(value = "所属院系名称")
|
||||
private java.lang.String ssyxmc;
|
||||
/**所属校内专业(大类)名称*/
|
||||
@Excel(name = "所属校内专业(大类)名称", width = 15)
|
||||
@ApiModelProperty(value = "所属校内专业(大类)名称")
|
||||
private java.lang.String ssxnzymc;
|
||||
/**是否实现电子化管理*/
|
||||
@Excel(name = "是否实现电子化管理", width = 15)
|
||||
@ApiModelProperty(value = "是否实现电子化管理")
|
||||
private java.lang.String sfsxdzhgl;
|
||||
/**关键词*/
|
||||
@Excel(name = "关键词", width = 15)
|
||||
@ApiModelProperty(value = "关键词")
|
||||
private java.lang.String gjc;
|
||||
/**查重结果*/
|
||||
@Excel(name = "查重结果", width = 15)
|
||||
@ApiModelProperty(value = "查重结果")
|
||||
private java.lang.String ccjg;
|
||||
/**开题报告*/
|
||||
@Excel(name = "开题报告", width = 15)
|
||||
@ApiModelProperty(value = "开题报告")
|
||||
private java.lang.String ktbg;
|
||||
/**开题报告审核意见*/
|
||||
@Excel(name = "开题报告审核意见", width = 15)
|
||||
@ApiModelProperty(value = "开题报告审核意见")
|
||||
private java.lang.String ktbgshyj;
|
||||
/**中期检查*/
|
||||
@Excel(name = "中期检查", width = 15)
|
||||
@ApiModelProperty(value = "中期检查")
|
||||
private java.lang.String zqjc;
|
||||
/**论文终稿*/
|
||||
@Excel(name = "论文终稿", width = 15)
|
||||
@ApiModelProperty(value = "论文终稿")
|
||||
private java.lang.String lwzg;
|
||||
/**论文终稿PDF*/
|
||||
@Excel(name = "论文终稿PDF", width = 15)
|
||||
@ApiModelProperty(value = "论文终稿PDF")
|
||||
private java.lang.String lwzgPdf;
|
||||
/**指导记录单*/
|
||||
@Excel(name = "指导记录单", width = 15)
|
||||
@ApiModelProperty(value = "指导记录单")
|
||||
private java.lang.String zdjld;
|
||||
/**检测报告等材料*/
|
||||
@Excel(name = "检测报告等材料", width = 15)
|
||||
@ApiModelProperty(value = "检测报告等材料")
|
||||
private java.lang.String jcbgdcl;
|
||||
/**入库日期*/
|
||||
@ApiModelProperty(value = "入库日期")
|
||||
private java.lang.String createTime;
|
||||
/**终稿查重相似率*/
|
||||
@Excel(name = "终稿查重相似率", width = 15)
|
||||
@ApiModelProperty(value = "终稿查重相似率")
|
||||
private java.lang.String ccjgxsl;
|
||||
/**终稿下载路径*/
|
||||
@Excel(name = "终稿下载路径", width = 15)
|
||||
@ApiModelProperty(value = "终稿下载路径")
|
||||
private java.lang.String ccjgdown;
|
||||
/**主辅修*/
|
||||
@Excel(name = "主辅修", width = 15)
|
||||
@ApiModelProperty(value = "主辅修")
|
||||
private String zfx;
|
||||
}
|
|
@ -0,0 +1,17 @@
|
|||
package org.jeecg.modules.demo.vLwKhcl.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
import org.jeecg.modules.demo.vLwKhcl.entity.VLwKhcl;
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||
|
||||
/**
|
||||
* @Description: 论文材料视图
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-11
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface VLwKhclMapper extends BaseMapper<VLwKhcl> {
|
||||
|
||||
}
|
|
@ -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.vLwKhcl.mapper.VLwKhclMapper">
|
||||
|
||||
</mapper>
|
|
@ -0,0 +1,14 @@
|
|||
package org.jeecg.modules.demo.vLwKhcl.service;
|
||||
|
||||
import org.jeecg.modules.demo.vLwKhcl.entity.VLwKhcl;
|
||||
import com.baomidou.mybatisplus.extension.service.IService;
|
||||
|
||||
/**
|
||||
* @Description: 论文材料视图
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-11
|
||||
* @Version: V1.0
|
||||
*/
|
||||
public interface IVLwKhclService extends IService<VLwKhcl> {
|
||||
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
package org.jeecg.modules.demo.vLwKhcl.service.impl;
|
||||
|
||||
import com.baomidou.dynamic.datasource.annotation.DS;
|
||||
import org.jeecg.modules.demo.vLwKhcl.entity.VLwKhcl;
|
||||
import org.jeecg.modules.demo.vLwKhcl.mapper.VLwKhclMapper;
|
||||
import org.jeecg.modules.demo.vLwKhcl.service.IVLwKhclService;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||
|
||||
/**
|
||||
* @Description: 论文材料视图
|
||||
* @Author: jeecg-boot
|
||||
* @Date: 2024-10-11
|
||||
* @Version: V1.0
|
||||
*/
|
||||
@Service
|
||||
@DS("multi-datasource2")
|
||||
public class VLwKhclServiceImpl extends ServiceImpl<VLwKhclMapper, VLwKhcl> implements IVLwKhclService {
|
||||
|
||||
}
|
|
@ -9,6 +9,8 @@ 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.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.system.query.QueryGenerator;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
|
@ -98,6 +100,9 @@ public class ZjSqxxController extends JeecgController<ZjSqxx, IZjSqxxService> {
|
|||
@ApiOperation(value="专家授权信息-编辑", notes="专家授权信息-编辑")
|
||||
@RequestMapping(value = "/edit", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public Result<String> edit(@RequestBody ZjSqxx zjSqxx) {
|
||||
if(StringUtils.isEmpty(zjSqxx.getXnxq())){
|
||||
zjSqxx.setXnxq("");
|
||||
}
|
||||
zjSqxxService.updateById(zjSqxx);
|
||||
return Result.OK("操作成功!");
|
||||
}
|
||||
|
|
|
@ -73,16 +73,19 @@ public class ZjSqxx implements Serializable {
|
|||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "授权开始时间")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private java.util.Date sqStartTime;
|
||||
/**授权结束时间*/
|
||||
@Excel(name = "授权结束时间", width = 15, format = "yyyy-MM-dd")
|
||||
@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
|
||||
@DateTimeFormat(pattern="yyyy-MM-dd")
|
||||
@ApiModelProperty(value = "授权结束时间")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private java.util.Date sqEndTime;
|
||||
/**学年学期/毕业年份*/
|
||||
@Excel(name = "学年学期/毕业年份", width = 15)
|
||||
@ApiModelProperty(value = "学年学期/毕业年份")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private java.lang.String xnxq;
|
||||
/**课程所属专业*/
|
||||
@Excel(name = "课程所属专业", width = 15)
|
||||
|
@ -91,6 +94,7 @@ public class ZjSqxx implements Serializable {
|
|||
/**课程名称*/
|
||||
@Excel(name = "课程名称", width = 15)
|
||||
@ApiModelProperty(value = "课程名称")
|
||||
@TableField(updateStrategy = FieldStrategy.IGNORED)
|
||||
private java.lang.String kcmc;
|
||||
/**开课单位*/
|
||||
@Excel(name = "开课单位", width = 15)
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
package org.jeecg.modules.system.controller;
|
||||
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang.StringUtils;
|
||||
import org.apache.shiro.authz.annotation.RequiresPermissions;
|
||||
import org.jeecg.common.api.vo.Result;
|
||||
import org.jeecg.common.constant.CommonConstant;
|
||||
import org.jeecg.common.constant.SymbolConstant;
|
||||
|
@ -10,6 +12,7 @@ import org.jeecg.common.exception.JeecgBootException;
|
|||
import org.jeecg.common.util.CommonUtils;
|
||||
import org.jeecg.common.util.filter.SsrfFileTypeFilter;
|
||||
import org.jeecg.common.util.oConvertUtils;
|
||||
import org.jeecg.modules.system.entity.SysUser;
|
||||
import org.jeecg.modules.utils.SFTPUtil;
|
||||
import org.jeecg.modules.utils.SftpConfig;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
|
@ -238,7 +241,8 @@ public class CommonController {
|
|||
//update-begin---author:liusq ---date:20230912 for:检查下载文件类型--------------
|
||||
SsrfFileTypeFilter.checkDownloadFileType(imgPath);
|
||||
//update-end---author:liusq ---date:20230912 for:检查下载文件类型--------------
|
||||
if(CommonConstant.UPLOAD_TYPE_SFTP.equals(uploadType)) {
|
||||
// if(CommonConstant.UPLOAD_TYPE_SFTP.equals(uploadType)) {
|
||||
if(1==1) {
|
||||
try{
|
||||
// SFTPUtil.writeFileToRes(sftpConfig,imgPath,response);
|
||||
int index = imgPath.lastIndexOf("/");
|
||||
|
@ -479,4 +483,106 @@ public class CommonController {
|
|||
return new AntPathMatcher().extractPathWithinPattern(bestMatchPattern, path);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@RequestMapping(value = "/ycxz", method = {RequestMethod.PUT,RequestMethod.POST})
|
||||
public void ycxz(@RequestBody JSONObject jsonObject, HttpServletResponse response) {
|
||||
String downpath = jsonObject.getString("filename");
|
||||
for(String imgPath: downpath.split(",")){
|
||||
// 其余处理略
|
||||
InputStream inputStream = null;
|
||||
OutputStream outputStream = null;
|
||||
try {
|
||||
imgPath = imgPath.replace("..", "").replace("../","");
|
||||
if (imgPath.endsWith(SymbolConstant.COMMA)) {
|
||||
imgPath = imgPath.substring(0, imgPath.length() - 1);
|
||||
}
|
||||
//update-begin---author:liusq ---date:20230912 for:检查下载文件类型--------------
|
||||
SsrfFileTypeFilter.checkDownloadFileType(imgPath);
|
||||
//update-end---author:liusq ---date:20230912 for:检查下载文件类型--------------
|
||||
// if(CommonConstant.UPLOAD_TYPE_SFTP.equals(uploadType)) {
|
||||
if(1==1) {
|
||||
try{
|
||||
// SFTPUtil.writeFileToRes(sftpConfig,imgPath,response);
|
||||
int index = imgPath.lastIndexOf("/");
|
||||
String path = "temp";
|
||||
if(index != -1){
|
||||
path = imgPath.substring(0,index);
|
||||
}
|
||||
//TODO 不确定是否有问题,
|
||||
Map<String,String> map = SFTPUtil.download(sftpConfig,imgPath,getDownloadPath(path));
|
||||
if(!map.get("code").equals("0")){
|
||||
response.setStatus(404);
|
||||
throw new RuntimeException(map.get("msg"));
|
||||
}
|
||||
// String localFilePath = map.get("fileName");
|
||||
// File file = new File(localFilePath);
|
||||
// if(!file.exists()){
|
||||
// response.setStatus(404);
|
||||
// throw new RuntimeException("文件["+imgPath+"]不存在..");
|
||||
// }
|
||||
// // 设置强制下载不打开
|
||||
//// response.setContentType("application/force-download");
|
||||
// response.addHeader("Content-Disposition", "attachment;fileName=" + new String(file.getName().getBytes("UTF-8"),"iso-8859-1"));
|
||||
// inputStream = new BufferedInputStream(new FileInputStream(localFilePath));
|
||||
// outputStream = response.getOutputStream();
|
||||
// byte[] buf = new byte[1024];
|
||||
// int len;
|
||||
// while ((len = inputStream.read(buf)) > 0) {
|
||||
// outputStream.write(buf, 0, len);
|
||||
// }
|
||||
// response.flushBuffer();
|
||||
}catch (Exception e){
|
||||
// e.printStackTrace();
|
||||
}finally {
|
||||
SFTPUtil.disChannel();
|
||||
SFTPUtil.disSession();
|
||||
}
|
||||
}else {
|
||||
|
||||
}
|
||||
// String filePath = uploadpath + File.separator + imgPath;
|
||||
// filePath.replaceAll(" ","");
|
||||
// File file = new File(filePath);
|
||||
// if(!file.exists()){
|
||||
// response.setStatus(404);
|
||||
// log.error("文件["+imgPath+"]不存在..");
|
||||
// //throw new RuntimeException();
|
||||
// }
|
||||
// // 设置强制下载不打开
|
||||
// response.setContentType("application/force-download");
|
||||
// response.addHeader("Content-Disposition", "attachment;fileName=" + new String(file.getName().getBytes("UTF-8"),"iso-8859-1"));
|
||||
// inputStream = new BufferedInputStream(new FileInputStream(filePath));
|
||||
// outputStream = response.getOutputStream();
|
||||
// byte[] buf = new byte[1024];
|
||||
// int len;
|
||||
// while ((len = inputStream.read(buf)) > 0) {
|
||||
// outputStream.write(buf, 0, len);
|
||||
// }
|
||||
// response.flushBuffer();
|
||||
} catch (IOException e) {
|
||||
log.error("预览文件失败" + e.getMessage());
|
||||
response.setStatus(404);
|
||||
e.printStackTrace();
|
||||
} finally {
|
||||
if (inputStream != null) {
|
||||
try {
|
||||
inputStream.close();
|
||||
} catch (IOException e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
if (outputStream != null) {
|
||||
try {
|
||||
outputStream.close();
|
||||
} catch (IOException e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -370,6 +370,17 @@ public class SysUserController {
|
|||
return sysUserService.changePassword(sysUser);
|
||||
}
|
||||
|
||||
@RequiresPermissions("system:user:changepwd")
|
||||
@RequestMapping(value = "/chongzhiPassword", method = RequestMethod.PUT)
|
||||
public Result<?> chongzhiPassword() {
|
||||
List<SysUser> list = sysUserService.list();
|
||||
for(SysUser sysUser : list){
|
||||
sysUser.setPassword("Zjpt123456");
|
||||
sysUserService.changePassword(sysUser);
|
||||
}
|
||||
return Result.ok("密码重置成功!");
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询指定用户和部门关联的数据
|
||||
*
|
||||
|
|
|
@ -171,6 +171,12 @@ spring:
|
|||
username: root
|
||||
password: root
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
|
||||
multi-datasource2:
|
||||
url: jdbc:mysql://localhost:3306/course_information_center_jeecg_db?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&transformedBitIsBoolean=true&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||
username: root
|
||||
password: root
|
||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||
#redis 配置
|
||||
redis:
|
||||
database: 0
|
||||
|
@ -232,7 +238,7 @@ jeecg:
|
|||
cluster-nodes: 127.0.0.1:9200
|
||||
check-enabled: false
|
||||
# 在线预览文件服务器地址配置
|
||||
file-view-domain: http://fileview.jeecg.com
|
||||
file-view-domain: https://fileview.jeecg.com
|
||||
# minio文件上传
|
||||
minio:
|
||||
minio_url: http://minio.jeecg.com
|
||||
|
|
|
@ -171,6 +171,12 @@ spring:
|
|||
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
|
||||
|
@ -233,7 +239,7 @@ jeecg:
|
|||
cluster-nodes: 127.0.0.1:9200
|
||||
check-enabled: false
|
||||
# 在线预览文件服务器地址配置
|
||||
file-view-domain: http://fileview.jeecg.com
|
||||
file-view-domain: https://fileview.jeecg.com
|
||||
# minio文件上传
|
||||
minio:
|
||||
minio_url: http://minio.jeecg.com
|
||||
|
|
|
@ -16,7 +16,7 @@ VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
|
|||
VITE_GLOB_API_URL=/jeecg-boot
|
||||
|
||||
#后台接口全路径地址(必填)
|
||||
VITE_GLOB_DOMAIN_URL=http://jxdd.nenu.edu.cn/jeecg-boot
|
||||
VITE_GLOB_DOMAIN_URL=https://jxdd.nenu.edu.cn/jeecg-boot
|
||||
|
||||
# 接口父路径前缀
|
||||
VITE_GLOB_API_URL_PREFIX=
|
||||
|
|
|
@ -51,20 +51,20 @@ const vs = {
|
|||
|
||||
/** 初始化 WebSocket */
|
||||
initialWebSocket() {
|
||||
if (this.ws === null) {
|
||||
const userId = useUserStore().getUserInfo?.id;
|
||||
const domainURL = useGlobSetting().uploadUrl!;
|
||||
const domain = domainURL.replace('https://', 'wss://').replace('http://', 'ws://');
|
||||
const url = `${domain}/vxeSocket/${userId}/${this.pageId}`;
|
||||
//update-begin-author:taoyan date:2022-4-24 for: v2.4.6 的 websocket 服务端,存在性能和安全问题。 #3278
|
||||
let token = (getToken() || '') as string;
|
||||
this.ws = new WebSocket(url, [token]);
|
||||
//update-end-author:taoyan date:2022-4-24 for: v2.4.6 的 websocket 服务端,存在性能和安全问题。 #3278
|
||||
this.ws.onopen = this.on.open.bind(this);
|
||||
this.ws.onerror = this.on.error.bind(this);
|
||||
this.ws.onmessage = this.on.message.bind(this);
|
||||
this.ws.onclose = this.on.close.bind(this);
|
||||
}
|
||||
// if (this.ws === null) {
|
||||
// const userId = useUserStore().getUserInfo?.id;
|
||||
// const domainURL = useGlobSetting().uploadUrl!;
|
||||
// const domain = domainURL.replace('https://', 'wss://').replace('http://', 'ws://');
|
||||
// const url = `${domain}/vxeSocket/${userId}/${this.pageId}`;
|
||||
// //update-begin-author:taoyan date:2022-4-24 for: v2.4.6 的 websocket 服务端,存在性能和安全问题。 #3278
|
||||
// let token = (getToken() || '') as string;
|
||||
// this.ws = new WebSocket(url, [token]);
|
||||
// //update-end-author:taoyan date:2022-4-24 for: v2.4.6 的 websocket 服务端,存在性能和安全问题。 #3278
|
||||
// this.ws.onopen = this.on.open.bind(this);
|
||||
// this.ws.onerror = this.on.error.bind(this);
|
||||
// this.ws.onmessage = this.on.message.bind(this);
|
||||
// this.ws.onclose = this.on.close.bind(this);
|
||||
// }
|
||||
},
|
||||
|
||||
// 发送消息
|
||||
|
|
|
@ -120,14 +120,14 @@
|
|||
|
||||
// 初始化 WebSocket
|
||||
function initWebSocket() {
|
||||
let token = getToken();
|
||||
//将登录token生成一个短的标识
|
||||
let wsClientId = md5(token);
|
||||
let userId = unref(userStore.getUserInfo).id + "_" + wsClientId;
|
||||
// WebSocket与普通的请求所用协议有所不同,ws等同于http,wss等同于https
|
||||
let url = glob.domainUrl?.replace('https://', 'wss://').replace('http://', 'ws://') + '/websocket/' + userId;
|
||||
connectWebSocket(url);
|
||||
onWebSocket(onWebSocketMessage);
|
||||
// let token = getToken();
|
||||
// //将登录token生成一个短的标识
|
||||
// let wsClientId = md5(token);
|
||||
// let userId = unref(userStore.getUserInfo).id + "_" + wsClientId;
|
||||
// // WebSocket与普通的请求所用协议有所不同,ws等同于http,wss等同于https
|
||||
// let url = glob.domainUrl?.replace('https://', 'wss://').replace('http://', 'ws://') + '/websocket/' + userId;
|
||||
// connectWebSocket(url);
|
||||
// onWebSocket(onWebSocketMessage);
|
||||
}
|
||||
|
||||
function onWebSocketMessage(data) {
|
||||
|
|
|
@ -43,6 +43,10 @@
|
|||
required: true,
|
||||
message: t('layout.changePassword.pleaseEnterNewPassword'),
|
||||
},
|
||||
{
|
||||
pattern: /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,}$/,
|
||||
message: '密码由8位数字、大小写字母和特殊符号组成!',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
|
@ -125,12 +125,6 @@ export const columns2: BasicColumn[] = [
|
|||
dataIndex: 'ssxnzymc',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '指导教师姓名',
|
||||
align: "center",
|
||||
dataIndex: 'zdjsxm',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '学生学号',
|
||||
align: "center",
|
||||
|
@ -149,6 +143,12 @@ export const columns2: BasicColumn[] = [
|
|||
dataIndex: 'bylwTm',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '指导教师姓名',
|
||||
align: "center",
|
||||
dataIndex: 'zdjsxm',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '毕业年份',
|
||||
align: "center",
|
||||
|
@ -161,12 +161,12 @@ export const columns2: BasicColumn[] = [
|
|||
// dataIndex: 'bj',
|
||||
// ellipsis: true,
|
||||
// },
|
||||
{
|
||||
title: '论文类别',
|
||||
align: "center",
|
||||
dataIndex: 'bylwLb',
|
||||
ellipsis: true,
|
||||
},
|
||||
// {
|
||||
// title: '论文类别',
|
||||
// align: "center",
|
||||
// dataIndex: 'bylwLb',
|
||||
// ellipsis: true,
|
||||
// },
|
||||
{
|
||||
title: '论文成绩',
|
||||
align: "center",
|
||||
|
@ -194,12 +194,6 @@ export const columns3: BasicColumn[] = [
|
|||
dataIndex: 'ssxnzymc',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '指导教师姓名',
|
||||
align: "center",
|
||||
dataIndex: 'zdjsxm',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '学生学号',
|
||||
align: "center",
|
||||
|
@ -218,6 +212,12 @@ export const columns3: BasicColumn[] = [
|
|||
dataIndex: 'bylwTm',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '指导教师姓名',
|
||||
align: "center",
|
||||
dataIndex: 'zdjsxm',
|
||||
ellipsis: true,
|
||||
},
|
||||
{
|
||||
title: '毕业年份',
|
||||
align: "center",
|
||||
|
@ -230,12 +230,12 @@ export const columns3: BasicColumn[] = [
|
|||
// dataIndex: 'bj',
|
||||
// ellipsis: true,
|
||||
// },
|
||||
{
|
||||
title: '论文类别',
|
||||
align: "center",
|
||||
dataIndex: 'bylwLb',
|
||||
ellipsis: true,
|
||||
},
|
||||
// {
|
||||
// title: '论文类别',
|
||||
// align: "center",
|
||||
// dataIndex: 'bylwLb',
|
||||
// ellipsis: true,
|
||||
// },
|
||||
{
|
||||
title: '论文成绩',
|
||||
align: "center",
|
||||
|
|
|
@ -1,235 +0,0 @@
|
|||
<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="'lwKhclXz:lw_khcl_xz:add'" @click="handleAdd" preIcon="ant-design:plus-outlined"> 新增</a-button>
|
||||
<a-button type="primary" v-auth="'lwKhclXz:lw_khcl_xz:exportXls'" preIcon="ant-design:export-outlined" @click="onExportXls"> 导出</a-button>
|
||||
<j-upload-button type="primary" v-auth="'lwKhclXz:lw_khcl_xz: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="'lwKhclXz:lw_khcl_xz: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>
|
||||
<!-- 表单区域 -->
|
||||
<LwKhclXzModal ref="registerModal" @success="handleSuccess"></LwKhclXzModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="lwKhclXz-lwKhclXz" setup>
|
||||
import { ref, reactive } from 'vue';
|
||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { columns, superQuerySchema } from './LwKhclXz.data';
|
||||
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from './LwKhclXz.api';
|
||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
import LwKhclXzModal from './components/LwKhclXzModal.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: 'lw_khcl_xz',
|
||||
api: list,
|
||||
columns,
|
||||
canResize:false,
|
||||
useSearchForm: false,
|
||||
actionColumn: {
|
||||
width: 120,
|
||||
fixed: 'right',
|
||||
},
|
||||
beforeFetch: async (params) => {
|
||||
return Object.assign(params, queryParam);
|
||||
},
|
||||
},
|
||||
exportConfig: {
|
||||
name: "lw_khcl_xz",
|
||||
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: 'lwKhclXz:lw_khcl_xz:edit'
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* 下拉操作栏
|
||||
*/
|
||||
function getDropDownAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '详情',
|
||||
onClick: handleDetail.bind(null, record),
|
||||
}, {
|
||||
label: '删除',
|
||||
popConfirm: {
|
||||
title: '是否确认删除',
|
||||
confirm: handleDelete.bind(null, record),
|
||||
placement: 'topLeft',
|
||||
},
|
||||
auth: 'lwKhclXz:lw_khcl_xz: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>
|
|
@ -12,6 +12,12 @@
|
|||
<div v-if="sfxk == 1">
|
||||
<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="handleFanhui">论文考核材料</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><span class="mbxtitle">选择论文</span></a-breadcrumb-item>
|
||||
</a-breadcrumb>
|
||||
</div> -->
|
||||
<a-button type="primary" style="margin-left: 10px; margin-bottom: 15px" @click="handleFanhui">查看材料</a-button>
|
||||
</a-form>
|
||||
</div>
|
||||
|
@ -34,10 +40,22 @@
|
|||
class="query-criteria"
|
||||
>
|
||||
<a-row :gutter="24">
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="ssyxmc">
|
||||
<template #label><span title="院系名称">院系名称</span></template>
|
||||
<a-input placeholder="请输入院系名称" v-model:value="queryParam2.ssyxmc" allow-clear></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="ssxnzymc">
|
||||
<template #label><span title="专业">专业</span></template>
|
||||
<a-input placeholder="请输入专业" v-model:value="queryParam2.ssxnzymc" allow-clear></a-input>
|
||||
<template #label><span title="校内专业">校内专业</span></template>
|
||||
<a-input placeholder="请输入校内专业" v-model:value="queryParam2.ssxnzymc" allow-clear></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="xsxh">
|
||||
<template #label><span title="学生学号">学生学号</span></template>
|
||||
<a-input placeholder="请输入学生学号" v-model:value="queryParam2.xsxh" allow-clear></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
|
@ -47,36 +65,24 @@
|
|||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="ktbg">
|
||||
<template #label><span title="开题报告">开题报告</span></template>
|
||||
<a-select placeholder="请选择开题报告" v-model:value="queryParam2.ktbg">
|
||||
<a-select-option value="">全部</a-select-option>
|
||||
<a-select-option :value="1">有</a-select-option>
|
||||
<a-select-option :value="0">无</a-select-option>
|
||||
</a-select>
|
||||
<a-form-item name="bylwTm">
|
||||
<template #label><span title="论文题目">论文题目</span></template>
|
||||
<a-input placeholder="请输入学生姓名" v-model:value="queryParam2.bylwTm" allow-clear></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="zqjc">
|
||||
<template #label><span title="中期检查">中期检查</span></template>
|
||||
<a-select placeholder="请选择中期检查" v-model:value="queryParam2.zqjc">
|
||||
<a-form-item name="bylwCj">
|
||||
<template #label><span title="论文成绩">论文成绩</span></template>
|
||||
<a-select placeholder="请选择论文成绩" v-model:value="queryParam2.bylwCj">
|
||||
<a-select-option value="">全部</a-select-option>
|
||||
<a-select-option :value="1">有</a-select-option>
|
||||
<a-select-option :value="0">无</a-select-option>
|
||||
<a-select-option value="优">优</a-select-option>
|
||||
<a-select-option value="良">良</a-select-option>
|
||||
<a-select-option value="中">中</a-select-option>
|
||||
<a-select-option value="差">差</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="lwzg">
|
||||
<template #label><span title="论文终稿">论文终稿</span></template>
|
||||
<a-select placeholder="请选择论文终稿" v-model:value="queryParam2.lwzg">
|
||||
<a-select-option value="">全部</a-select-option>
|
||||
<a-select-option :value="1">有</a-select-option>
|
||||
<a-select-option :value="0">无</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="18" style="text-align: right">
|
||||
<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>
|
||||
|
@ -103,6 +109,12 @@
|
|||
<div v-if="sfxk == 2">
|
||||
<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="handleFanhui">论文考核材料</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><span class="mbxtitle">查看论文材料</span></a-breadcrumb-item>
|
||||
</a-breadcrumb>
|
||||
</div> -->
|
||||
<a-button type="primary" style="margin-left: 10px; margin-bottom: 15px" @click="handleFanhui">查看材料</a-button>
|
||||
</a-form>
|
||||
</div>
|
||||
|
@ -125,6 +137,11 @@
|
|||
{{ lwinfo.value.zdjsxm }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="指导教师职称">
|
||||
{{ lwinfo.value.zdjszc }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
<a-col :span="8">
|
||||
<a-form-item label="学生学号">
|
||||
|
@ -136,6 +153,11 @@
|
|||
{{ lwinfo.value.xsxm }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="主辅修">
|
||||
{{ lwinfo.value.zfx }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="论文题目">
|
||||
{{ lwinfo.value.bylwTm }}
|
||||
|
@ -166,16 +188,16 @@
|
|||
<span class="seleciton-line">1</span> <span class="selection-title">材料信息</span>
|
||||
<div style="width: 100; text-align: right"><a-button type="primary" @click="batchHandleDown(lwinfo)">下载全部材料</a-button></div>
|
||||
<a-tabs v-model:activeKey="activeKey" type="card">
|
||||
<a-tab-pane key="1" tab="开题报告">
|
||||
<a-tab-pane key="1" tab="开题报告" force-render>
|
||||
<div v-if="lwinfo.value.ktbg">
|
||||
<div style="width: 100; text-align: right"
|
||||
<div style="width: 100; text-align: right; padding: 10px"
|
||||
><a-button type="primary" @click="handleDownload(lwinfo.value.ktbg)">下载开题报告</a-button></div
|
||||
>
|
||||
<iframe :src="ktbgUrl" width="100%" height="600px"></iframe>
|
||||
</div>
|
||||
<div v-else style="height: 300px; line-height: 300px; text-align: center">暂无文件</div>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="2" tab="开题报告审核意见">
|
||||
<a-tab-pane key="2" tab="开题报告审核意见" force-render>
|
||||
<div v-if="lwinfo.value.ktbgshyj">
|
||||
<div style="width: 100; text-align: right; padding: 10px"
|
||||
><a-button type="primary" @click="handleDownload(lwinfo.value.ktbgshyj)">下载开题报告审核意见</a-button></div
|
||||
|
@ -184,7 +206,7 @@
|
|||
</div>
|
||||
<div v-else style="height: 300px; line-height: 300px; text-align: center">暂无文件</div>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="3" tab="中期检查">
|
||||
<!-- <a-tab-pane key="3" tab="中期检查">
|
||||
<div v-if="lwinfo.value.zqjc">
|
||||
<div style="width: 100; text-align: right; padding: 10px"
|
||||
><a-button type="primary" @click="handleDownload(lwinfo.value.zqjc)">下载中期检查</a-button></div
|
||||
|
@ -192,8 +214,8 @@
|
|||
<iframe :src="zqjcUrl" width="100%" height="600px"></iframe>
|
||||
</div>
|
||||
<div v-else style="height: 300px; line-height: 300px; text-align: center">暂无文件</div>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="4" tab="论文终稿">
|
||||
</a-tab-pane> -->
|
||||
<a-tab-pane key="4" tab="论文终稿" force-render>
|
||||
<div v-if="lwinfo.value.lwzg">
|
||||
<div style="width: 100; text-align: right; padding: 10px"
|
||||
><a-button type="primary" @click="handleDownload(lwinfo.value.lwzg)">下载论文终稿</a-button></div
|
||||
|
@ -202,7 +224,7 @@
|
|||
</div>
|
||||
<div v-else style="height: 300px; line-height: 300px; text-align: center">暂无文件</div>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="5" tab="指导记录单">
|
||||
<a-tab-pane key="5" tab="指导记录单" force-render>
|
||||
<div v-if="lwinfo.value.zdjld">
|
||||
<div style="width: 100; text-align: right; padding: 10px"
|
||||
><a-button type="primary" @click="handleDownload(lwinfo.value.zdjld)">下载指导记录单</a-button></div
|
||||
|
@ -211,7 +233,7 @@
|
|||
</div>
|
||||
<div v-else style="height: 300px; line-height: 300px; text-align: center">暂无文件</div>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="6" tab="检测报告等材料">
|
||||
<a-tab-pane key="6" tab="检测报告等材料" force-render>
|
||||
<div v-if="lwinfo.value.jcbgdcl">
|
||||
<!-- <div><a @click="handleDownload(lwinfo.value.jcbgdcl)">下载</a></div> -->
|
||||
<iframe :src="jcbgUrl" width="100%" height="600px"></iframe>
|
||||
|
@ -229,6 +251,12 @@
|
|||
<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>
|
||||
|
||||
|
@ -243,10 +271,22 @@
|
|||
class="query-criteria"
|
||||
>
|
||||
<a-row :gutter="24">
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="ssyxmc">
|
||||
<template #label><span title="院系名称">院系名称</span></template>
|
||||
<j-input placeholder="请输入院系名称" v-model:value="queryParam.ssyxmc" allow-clear></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="ssxnzymc">
|
||||
<template #label><span title="专业">专业</span></template>
|
||||
<j-input placeholder="请输入专业" v-model:value="queryParam.ssxnzymc" allow-clear></j-input>
|
||||
<template #label><span title="校内专业">校内专业</span></template>
|
||||
<j-input placeholder="请输入校内专业" v-model:value="queryParam.ssxnzymc" allow-clear></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="xsxh">
|
||||
<template #label><span title="学生学号">学生学号</span></template>
|
||||
<j-input placeholder="请输入学生学号" v-model:value="queryParam.xsxh" allow-clear></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
|
@ -256,38 +296,25 @@
|
|||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="ktbg">
|
||||
<template #label><span title="开题报告">开题报告</span></template>
|
||||
<a-select placeholder="请选择开题报告" v-model:value="queryParam.ktbg">
|
||||
<a-select-option value="">全部</a-select-option>
|
||||
<a-select-option :value="1">有</a-select-option>
|
||||
<a-select-option :value="0">无</a-select-option>
|
||||
</a-select>
|
||||
<a-form-item name="bylwTm">
|
||||
<template #label><span title="论文题目">论文题目</span></template>
|
||||
<j-input placeholder="请输入学生姓名" v-model:value="queryParam.bylwTm" allow-clear></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="zqjc">
|
||||
<template #label><span title="中期检查">中期检查</span></template>
|
||||
<a-select placeholder="请选择中期检查" v-model:value="queryParam.zqjc">
|
||||
<a-form-item name="bylwCj">
|
||||
<template #label><span title="论文成绩">论文成绩</span></template>
|
||||
<a-select placeholder="请选择论文成绩" v-model:value="queryParam.bylwCj">
|
||||
<a-select-option value="">全部</a-select-option>
|
||||
<a-select-option :value="1">有</a-select-option>
|
||||
<a-select-option :value="0">无</a-select-option>
|
||||
<a-select-option value="优">优</a-select-option>
|
||||
<a-select-option value="良">良</a-select-option>
|
||||
<a-select-option value="中">中</a-select-option>
|
||||
<a-select-option value="差">差</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="lwzg">
|
||||
<template #label><span title="论文终稿">论文终稿</span></template>
|
||||
<a-select placeholder="请选择论文终稿" v-model:value="queryParam.lwzg">
|
||||
<a-select-option value="">全部</a-select-option>
|
||||
<a-select-option :value="1">有</a-select-option>
|
||||
<a-select-option :value="0">无</a-select-option>
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="18" style="text-align: right">
|
||||
<a-col :span="12" style="text-align: right">
|
||||
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
|
||||
<!-- <a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls" style="margin-left: 8px"> 导出</a-button> -->
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
|
@ -364,69 +391,106 @@ const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDat
|
|||
//批量下载
|
||||
async function batchHandleDown(record) {
|
||||
console.log('🙍♂️', record);
|
||||
var downName = '学生论文材料' + dayjs().format('YYYYMMDDHHmmss') + '';
|
||||
// 毕业论文-学院-专业-学生姓名-学号
|
||||
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);
|
||||
console.log('---------', res);
|
||||
downloadFileLoacl(res.downLoadPath);
|
||||
});
|
||||
}
|
||||
//下载
|
||||
function handleDownload(record) {
|
||||
record = record.replaceAll(" ","").replaceAll("(","(").replaceAll(")",")");
|
||||
downloadFile(record);
|
||||
}
|
||||
//预览
|
||||
function handleYulan(record) {
|
||||
console.log('😶', record);
|
||||
var file = getFileAccessHttpUrl(record);
|
||||
window.open('https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||
window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||
}
|
||||
//查看论文材料
|
||||
function handleChakan(record) {
|
||||
async function handleChakan(record) {
|
||||
console.log("record--->",record)
|
||||
lwinfo.value = record;
|
||||
console.log("lwinfo--->",lwinfo)
|
||||
sfxk.value = 2;
|
||||
|
||||
if (lwinfo.value.ktbg) {
|
||||
var file1 = getFileAccessHttpUrl(record.ktbg);
|
||||
ktbgUrl.value = 'https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file1));
|
||||
var filename = "";
|
||||
|
||||
if (record.ktbg) {
|
||||
filename = filename+record.ktbg+",";
|
||||
}
|
||||
if (record.ktbgshyj) {
|
||||
filename = filename+record.ktbgshyj+",";
|
||||
}
|
||||
if (record.lwzg) {
|
||||
filename = filename+record.lwzg+",";
|
||||
}
|
||||
if (record.zdjld) {
|
||||
filename = filename+record.zdjld+",";
|
||||
}
|
||||
|
||||
if(filename){
|
||||
console.log("filename--->",filename)
|
||||
defHttp.post({ url: '/sys/common/ycxz',params:{filename} }).then((res) => {});
|
||||
}
|
||||
|
||||
if (record.ktbg) {
|
||||
var file1 = getFileAccessHttpUrl(record.ktbg.replaceAll(" ","").replaceAll("(","(").replaceAll(")",")"));
|
||||
console.log("file1---->",file1);
|
||||
console.log("file11111---->",encodeURIComponent(encryptByBase64(file1)));
|
||||
ktbgUrl.value = 'https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file1));
|
||||
} else {
|
||||
ktbgUrl.value = '';
|
||||
}
|
||||
|
||||
if (lwinfo.value.ktbgshyj) {
|
||||
var file1 = getFileAccessHttpUrl(record.ktbgshyj);
|
||||
ktbgshyjUrl.value = 'https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file1));
|
||||
if (record.ktbgshyj) {
|
||||
var file1 = getFileAccessHttpUrl(record.ktbgshyj.replaceAll(" ","").replaceAll("(","(").replaceAll(")",")"));
|
||||
ktbgshyjUrl.value = 'https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file1));
|
||||
} else {
|
||||
ktbgshyjUrl.value = '';
|
||||
}
|
||||
|
||||
if (lwinfo.value.zqjc) {
|
||||
var file1 = getFileAccessHttpUrl(record.zqjc);
|
||||
zqjcUrl.value = 'https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file1));
|
||||
} else {
|
||||
zqjcUrl.value = '';
|
||||
}
|
||||
// if (lwinfo.value.zqjc) {
|
||||
// var file1 = getFileAccessHttpUrl(record.zqjc.replace(" ",""));
|
||||
// zqjcUrl.value = 'https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file1));
|
||||
// } else {
|
||||
// zqjcUrl.value = '';
|
||||
// }
|
||||
|
||||
if (lwinfo.value.lwzg) {
|
||||
var file1 = getFileAccessHttpUrl(record.lwzg);
|
||||
lwzgUrl.value = 'https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file1));
|
||||
if (record.lwzg) {
|
||||
var file1 = getFileAccessHttpUrl(record.lwzg.replaceAll(" ","").replaceAll("(","(").replaceAll(")",")"));
|
||||
lwzgUrl.value = 'https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file1));
|
||||
} else {
|
||||
lwzgUrl.value = '';
|
||||
}
|
||||
|
||||
if (lwinfo.value.zdjld) {
|
||||
var file1 = getFileAccessHttpUrl(record.zdjld);
|
||||
zdjldUrl.value = 'https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file1));
|
||||
if (record.zdjld) {
|
||||
var file1 = getFileAccessHttpUrl(record.zdjld.replaceAll(" ","").replaceAll("(","(").replaceAll(")",")"));
|
||||
zdjldUrl.value = 'https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file1));
|
||||
} else {
|
||||
zdjldUrl.value = '';
|
||||
}
|
||||
|
||||
if (lwinfo.value.ccjg) {
|
||||
if (record.ccjg) {
|
||||
jcbgUrl.value = record.ccjg;
|
||||
} else {
|
||||
jcbgUrl.value = '';
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
/**
|
||||
* 操作栏
|
||||
|
@ -489,8 +553,9 @@ function handleXUanze(record) {
|
|||
})
|
||||
.then((res) => {
|
||||
console.log('🤛', res);
|
||||
xtsuccess();
|
||||
});
|
||||
xtsuccess();
|
||||
|
||||
}
|
||||
//选课删除
|
||||
async function handleDel(record) {
|
||||
|
@ -612,4 +677,8 @@ onMounted(() => {
|
|||
border-radius: 10px;
|
||||
color: #1890ff;
|
||||
}
|
||||
.mbxtitle {
|
||||
font-size: 22px;
|
||||
line-height: 22px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -0,0 +1,686 @@
|
|||
<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">
|
||||
<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="handleFanhui">论文考核材料</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><span class="mbxtitle">选择论文</span></a-breadcrumb-item>
|
||||
</a-breadcrumb>
|
||||
</div> -->
|
||||
<a-button type="primary" style="margin-left: 10px; margin-bottom: 15px" @click="handleFanhui">查看材料</a-button>
|
||||
</a-form>
|
||||
</div>
|
||||
<a-table :columns="columns2" :data-source="checkData" :pagination="false">
|
||||
<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="handleDel(record)">移除</a>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
|
||||
<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="ssyxmc">
|
||||
<template #label><span title="院系名称">院系名称</span></template>
|
||||
<a-input placeholder="请输入院系名称" v-model:value="queryParam2.ssyxmc" allow-clear></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="ssxnzymc">
|
||||
<template #label><span title="校内专业">校内专业</span></template>
|
||||
<a-input placeholder="请输入校内专业" v-model:value="queryParam2.ssxnzymc" allow-clear></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="xsxh">
|
||||
<template #label><span title="学生学号">学生学号</span></template>
|
||||
<a-input placeholder="请输入学生学号" v-model:value="queryParam2.xsxh" allow-clear></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="xsxm">
|
||||
<template #label><span title="学生姓名">学生姓名</span></template>
|
||||
<a-input placeholder="请输入学生姓名" v-model:value="queryParam2.xsxm" allow-clear></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="bylwTm">
|
||||
<template #label><span title="论文题目">论文题目</span></template>
|
||||
<a-input placeholder="请输入学生姓名" v-model:value="queryParam2.bylwTm" allow-clear></a-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="bylwCj">
|
||||
<template #label><span title="论文成绩">论文成绩</span></template>
|
||||
<a-select placeholder="请选择论文成绩" v-model:value="queryParam2.bylwCj">
|
||||
<a-select-option value="">全部</a-select-option>
|
||||
<a-select-option value="优">优</a-select-option>
|
||||
<a-select-option value="良">良</a-select-option>
|
||||
<a-select-option value="中">中</a-select-option>
|
||||
<a-select-option value="差">差</a-select-option>
|
||||
</a-select>
|
||||
</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.sfxk == '0'">选择</a>
|
||||
<a disabled v-if="record.sfxk == '1'">已选择</a>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
</div>
|
||||
<!-- 查看论文材料 -->
|
||||
<div v-if="sfxk == 2">
|
||||
<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="handleFanhui">论文考核材料</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><span class="mbxtitle">查看论文材料</span></a-breadcrumb-item>
|
||||
</a-breadcrumb>
|
||||
</div> -->
|
||||
<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="8">
|
||||
<a-form-item label="院系名称">
|
||||
{{ lwinfo.value.ssyxmc }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="校内专业">
|
||||
{{ lwinfo.value.ssxnzymc }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="指导教师姓名">
|
||||
{{ lwinfo.value.zdjsxm }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
<a-col :span="8">
|
||||
<a-form-item label="学生学号">
|
||||
{{ lwinfo.value.xsxh }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="学生姓名">
|
||||
{{ lwinfo.value.xsxm }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="主辅修">
|
||||
{{ lwinfo.value.zfx }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="论文题目">
|
||||
{{ lwinfo.value.bylwTm }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
|
||||
<a-col :span="8">
|
||||
<a-form-item label="毕业年份">
|
||||
{{ lwinfo.value.bynf }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="论文类别">
|
||||
{{ lwinfo.value.bylwLb }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="论文成绩">
|
||||
{{ lwinfo.value.bylwCj }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="8">
|
||||
<a-form-item label="终稿查重相似率">
|
||||
{{ lwinfo.value.ccjgxsl }}
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<span class="seleciton-line">1</span> <span class="selection-title">材料信息</span>
|
||||
<div style="width: 100; text-align: right"><a-button type="primary" @click="batchHandleDown(lwinfo)">下载全部材料</a-button></div>
|
||||
<a-tabs v-model:activeKey="activeKey" type="card">
|
||||
<a-tab-pane key="1" tab="开题报告">
|
||||
<div v-if="lwinfo.value.ktbg">
|
||||
<div style="width: 100; text-align: right; padding: 10px"
|
||||
><a-button type="primary" @click="handleDownload(lwinfo.value.ktbg)">下载开题报告</a-button></div
|
||||
>
|
||||
<iframe :src="ktbgUrl" width="100%" height="600px"></iframe>
|
||||
</div>
|
||||
<div v-else style="height: 300px; line-height: 300px; text-align: center">暂无文件</div>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="2" tab="开题报告审核意见">
|
||||
<div v-if="lwinfo.value.ktbgshyj">
|
||||
<div style="width: 100; text-align: right; padding: 10px"
|
||||
><a-button type="primary" @click="handleDownload(lwinfo.value.ktbgshyj)">下载开题报告审核意见</a-button></div
|
||||
>
|
||||
<iframe :src="ktbgshyjUrl" width="100%" height="600px"></iframe>
|
||||
</div>
|
||||
<div v-else style="height: 300px; line-height: 300px; text-align: center">暂无文件</div>
|
||||
</a-tab-pane>
|
||||
<!-- <a-tab-pane key="3" tab="中期检查">
|
||||
<div v-if="lwinfo.value.zqjc">
|
||||
<div style="width: 100; text-align: right; padding: 10px"
|
||||
><a-button type="primary" @click="handleDownload(lwinfo.value.zqjc)">下载中期检查</a-button></div
|
||||
>
|
||||
<iframe :src="zqjcUrl" width="100%" height="600px"></iframe>
|
||||
</div>
|
||||
<div v-else style="height: 300px; line-height: 300px; text-align: center">暂无文件</div>
|
||||
</a-tab-pane> -->
|
||||
<a-tab-pane key="4" tab="论文终稿">
|
||||
<div v-if="lwinfo.value.lwzg">
|
||||
<div style="width: 100; text-align: right; padding: 10px"
|
||||
><a-button type="primary" @click="handleDownload(lwinfo.value.lwzg)">下载论文终稿</a-button></div
|
||||
>
|
||||
<iframe :src="lwzgUrl" width="100%" height="600px"></iframe>
|
||||
</div>
|
||||
<div v-else style="height: 300px; line-height: 300px; text-align: center">暂无文件</div>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="5" tab="指导记录单">
|
||||
<div v-if="lwinfo.value.zdjld">
|
||||
<div style="width: 100; text-align: right; padding: 10px"
|
||||
><a-button type="primary" @click="handleDownload(lwinfo.value.zdjld)">下载指导记录单</a-button></div
|
||||
>
|
||||
<iframe :src="zdjldUrl" width="100%" height="600px"></iframe>
|
||||
</div>
|
||||
<div v-else style="height: 300px; line-height: 300px; text-align: center">暂无文件</div>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="6" tab="检测报告等材料">
|
||||
<div v-if="lwinfo.value.jcbgdcl">
|
||||
<!-- <div><a @click="handleDownload(lwinfo.value.jcbgdcl)">下载</a></div> -->
|
||||
<iframe :src="jcbgUrl" width="100%" height="600px"></iframe>
|
||||
</div>
|
||||
<div v-else style="height: 300px; line-height: 300px; text-align: center">暂无文件</div>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
</a-form>
|
||||
</div>
|
||||
</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">
|
||||
<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="ssyxmc">
|
||||
<template #label><span title="院系名称">院系名称</span></template>
|
||||
<j-input placeholder="请输入院系名称" v-model:value="queryParam.ssyxmc" allow-clear></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="ssxnzymc">
|
||||
<template #label><span title="校内专业">校内专业</span></template>
|
||||
<j-input placeholder="请输入校内专业" v-model:value="queryParam.ssxnzymc" allow-clear></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="xsxh">
|
||||
<template #label><span title="学生学号">学生学号</span></template>
|
||||
<j-input placeholder="请输入学生学号" v-model:value="queryParam.xsxh" allow-clear></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="xsxm">
|
||||
<template #label><span title="学生姓名">学生姓名</span></template>
|
||||
<j-input placeholder="请输入学生姓名" v-model:value="queryParam.xsxm" allow-clear></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="bylwTm">
|
||||
<template #label><span title="论文题目">论文题目</span></template>
|
||||
<j-input placeholder="请输入学生姓名" v-model:value="queryParam.bylwTm" allow-clear></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="bylwCj">
|
||||
<template #label><span title="论文成绩">论文成绩</span></template>
|
||||
<a-select placeholder="请选择论文成绩" v-model:value="queryParam.bylwCj">
|
||||
<a-select-option value="">全部</a-select-option>
|
||||
<a-select-option value="优">优</a-select-option>
|
||||
<a-select-option value="良">良</a-select-option>
|
||||
<a-select-option value="中">中</a-select-option>
|
||||
<a-select-option value="差">差</a-select-option>
|
||||
</a-select>
|
||||
</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 { columns, columns2, columns3, superQuerySchema } from './LwKhclXz.data';
|
||||
import { list, deleteOne, deleteXkxxOne, batchDelete, getImportUrl, getExportUrl } from './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';
|
||||
|
||||
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 emit = defineEmits(['callback']);
|
||||
const checkData = ref<any>([]);
|
||||
const dataList = ref<any>([]);
|
||||
const sfxk = ref<number>(0);
|
||||
const lwinfo = 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 }] = 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) {
|
||||
downloadFile(record);
|
||||
}
|
||||
//预览
|
||||
function handleYulan(record) {
|
||||
console.log('😶', record);
|
||||
var file = getFileAccessHttpUrl(record);
|
||||
window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||
}
|
||||
//查看论文材料
|
||||
async function handleChakan(record) {
|
||||
lwinfo.value = record;
|
||||
sfxk.value = 2;
|
||||
|
||||
if (lwinfo.value.ktbg) {
|
||||
var file1 = getFileAccessHttpUrl(record.ktbg);
|
||||
ktbgUrl.value = 'https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file1));
|
||||
} else {
|
||||
ktbgUrl.value = '';
|
||||
}
|
||||
|
||||
if (lwinfo.value.ktbgshyj) {
|
||||
var file1 = getFileAccessHttpUrl(record.ktbgshyj);
|
||||
ktbgshyjUrl.value = 'https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file1));
|
||||
} else {
|
||||
ktbgshyjUrl.value = '';
|
||||
}
|
||||
|
||||
if (lwinfo.value.zqjc) {
|
||||
var file1 = getFileAccessHttpUrl(record.zqjc);
|
||||
zqjcUrl.value = 'https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file1));
|
||||
} else {
|
||||
zqjcUrl.value = '';
|
||||
}
|
||||
|
||||
if (lwinfo.value.lwzg) {
|
||||
var file1 = getFileAccessHttpUrl(record.lwzg);
|
||||
lwzgUrl.value = 'https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file1));
|
||||
} else {
|
||||
lwzgUrl.value = '';
|
||||
}
|
||||
|
||||
if (lwinfo.value.zdjld) {
|
||||
var file1 = getFileAccessHttpUrl(record.zdjld);
|
||||
zdjldUrl.value = 'https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file1));
|
||||
} else {
|
||||
zdjldUrl.value = '';
|
||||
}
|
||||
|
||||
if (lwinfo.value.ccjg) {
|
||||
jcbgUrl.value = record.ccjg;
|
||||
} else {
|
||||
jcbgUrl.value = '';
|
||||
}
|
||||
}
|
||||
|
||||
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),
|
||||
},
|
||||
// {
|
||||
// label: '考核评价材料',
|
||||
// onClick: handleKhpjcl.bind(null, record),
|
||||
// },
|
||||
// {
|
||||
// label: '学生原始材料',
|
||||
// onClick: handleXsyscl.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,
|
||||
});
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
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: '/lwKhclXz/lwKhclXz/add',
|
||||
params: record,
|
||||
})
|
||||
.then((res) => {
|
||||
console.log('🤛', res);
|
||||
});
|
||||
xtsuccess();
|
||||
}
|
||||
//选课删除
|
||||
async function handleDel(record) {
|
||||
await deleteXkxxOne({ id: record.id }, xtsuccess);
|
||||
}
|
||||
|
||||
function xtsuccess() {
|
||||
//获取是否有选课信息
|
||||
defHttp.get({ url: '/lwKhclXz/lwKhclXz/list', params: { pageSize: -1 } }).then((res) => {
|
||||
console.log('🧛', res);
|
||||
checkData.value = res.records;
|
||||
});
|
||||
searchQuery2();
|
||||
}
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery2() {
|
||||
queryParam2.value.pageNo = paginationProp.value.current;
|
||||
defHttp.get({ url: '/lwKhcl/lwKhcl/getXkList', params: { pageNo: paginationProp.value.current, ...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;
|
||||
await searchQuery2();
|
||||
}
|
||||
|
||||
//返回首页
|
||||
function handleFanhui() {
|
||||
init();
|
||||
}
|
||||
|
||||
function init() {
|
||||
//获取是否有选课信息
|
||||
defHttp.get({ url: '/lwKhclXz/lwKhclXz/list', params: { pageSize: -1 } }).then((res) => {
|
||||
console.log('🧛', res);
|
||||
if (res.records.length == 0) {
|
||||
sfxk.value = 0;
|
||||
checkData.value = [];
|
||||
} else {
|
||||
sfxk.value = 999;
|
||||
checkData.value = res.records;
|
||||
paginationProp.value.total = res.records.total;
|
||||
paginationProp.value.current = res.records.pages;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function init2() {
|
||||
//获取是否有选课信息
|
||||
defHttp.get({ url: '/lwKhclXz/lwKhclXz/list', params: { pageSize: -1 } }).then((res) => {
|
||||
console.log('🧛', res);
|
||||
if (res.records.length == 0) {
|
||||
sfxk.value = 0;
|
||||
checkData.value = [];
|
||||
} else {
|
||||
sfxk.value = 1;
|
||||
checkData.value = res.records;
|
||||
paginationProp.value.total = res.records.total;
|
||||
paginationProp.value.current = res.records.pages;
|
||||
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>
|
|
@ -219,7 +219,7 @@ import {encryptByBase64} from "@/utils/cipher";
|
|||
function handleYulan(record){
|
||||
var file = getFileAccessHttpUrl(record.fwqPath) ;
|
||||
console.log('🤬', file);
|
||||
window.open('https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||
window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -12,6 +12,14 @@
|
|||
|
||||
<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="handleFanhui">课程考核材料</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><span class="mbxtitle">选择课程</span></a-breadcrumb-item>
|
||||
</a-breadcrumb>
|
||||
</div> -->
|
||||
|
||||
<a-button type="primary" style="margin-left: 10px;margin-bottom: 15px; " @click="handleFanhui">查看材料</a-button>
|
||||
</a-form>
|
||||
</div>
|
||||
|
@ -104,27 +112,104 @@
|
|||
</div> -->
|
||||
</div>
|
||||
<!-- 成绩单 -->
|
||||
<div v-show="sfxk == 2">
|
||||
<!-- <div v-show="sfxk == 2">
|
||||
<CjdForm ref="cjdFormModal" @callback="init"></CjdForm>
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- 考核评价材料 -->
|
||||
<div v-show="sfxk == 3">
|
||||
<!-- <div v-show="sfxk == 3">
|
||||
<XxhbjwxtscwjxxList ref="khpjclFormModal" @callback="init"></XxhbjwxtscwjxxList>
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- 学生原始材料 -->
|
||||
<div v-show="sfxk == 4">
|
||||
<!-- <div v-show="sfxk == 4">
|
||||
<XxhbjwxtxsmdList3 ref="xsysclFormModal" @callback="init" @handleXq="handleXsysclxq"></XxhbjwxtxsmdList3>
|
||||
</div>
|
||||
</div> -->
|
||||
<!-- 学生原始材料-详情 -->
|
||||
<div v-show="sfxk == 5">
|
||||
<!-- <div v-show="sfxk == 5">
|
||||
<XxhbjwxtxsmdList4 ref="xsysclXqFormModal" @callback="handleXsyscl"></XxhbjwxtxsmdList4>
|
||||
</div> -->
|
||||
<!-- 学生列表查看 -->
|
||||
<div v-show="sfxk == 6">
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form ref="formRef" class="query-criteria">
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="24" style="margin-bottom: 10px;">
|
||||
<!-- <div >
|
||||
<a-breadcrumb>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui">课程考核材料</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui">已选课程</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui" v-if="jxrwInfo.value">{{jxrwInfo?.value?.kcmc}}</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui">学生原始材料</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><span class="mbxtitle">详情</span></a-breadcrumb-item>
|
||||
</a-breadcrumb>
|
||||
</div> -->
|
||||
<a-button type="primary" @click="handleFanhui">返回</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol" class="query-criteria">
|
||||
<a-row :gutter="24" v-if="jxrwInfo?.value">
|
||||
<a-col :span="12"><span class="seleciton-line">1</span> <span class="selection-title">课程考核材料详情 </span> </a-col>
|
||||
<a-col :gutter="24">
|
||||
<div style="text-align: center; font-size:24px; font-weight: 700; line-height: 50px" v-if="jxrwInfo?.value">
|
||||
{{ jxrwInfo?.value.xn }}{{ jxrwInfo?.value.xqmc }}学期《{{ jxrwInfo?.value.kcmc }}》
|
||||
</div>
|
||||
<div v-if="jxrwInfo.value">
|
||||
<div style="padding-left:16px;font-size:16px; font-weight: 700">概要信息</div>
|
||||
<a-row style="line-height: 30px">
|
||||
<a-col :xl="8" :sm="12" :md="8">
|
||||
<span class="header-title" style="margin-left: 15px">开课单位</span> :<span class="header-title">{{ jxrwInfo?.value.kkyxmc }}</span>
|
||||
</a-col>
|
||||
<a-col :xl="8" :sm="12" :md="8">
|
||||
<span class="header-title" style="margin-left: 15px">课程类别</span> :<span class="header-title">{{ jxrwInfo?.value.kclb }}</span>
|
||||
</a-col>
|
||||
<a-col :xl="8" :sm="12" :md="8">
|
||||
<span class="header-title" style="margin-left: 15px">课程名称</span> :<span class="header-title">{{ jxrwInfo?.value.kcmc }}</span>
|
||||
</a-col>
|
||||
<a-col :xl="8" :sm="12" :md="8">
|
||||
<span class="header-title" style="margin-left: 15px">课程负责人</span> :<span class="header-title">{{ jxrwInfo?.value.teaxm }}</span>
|
||||
</a-col>
|
||||
<a-col :xl="8" :sm="12" :md="8">
|
||||
<span class="header-title" style="margin-left: 15px">选课人数</span> :<span class="header-title">{{ jxrwInfo?.value.jxbrs }}</span>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
<a-tabs v-model:activeKey="activeKey" type="card" @change="onChangeTab" style="background-color: white;">
|
||||
<a-tab-pane key="1" tab="学生成绩">
|
||||
<XscjList ref="cjdFormModal" @callback="init"></XscjList>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="2" tab="考核评价材料" :forceRender="true">
|
||||
<KhpjclList ref="khpjclFormModal" @callback="init"></KhpjclList>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="3" tab="学生原始材料" :forceRender="true">
|
||||
<div v-show="sfxk2 != 5">
|
||||
<XsysclList ref="xsysclFormModal" @callback="init" @handleXq="handleXsysclxq"></XsysclList>
|
||||
</div>
|
||||
<div v-show="sfxk2 == 5">
|
||||
<XsysclxqList ref="xsysclXqFormModal" @callback="handleXsyscl2"></XsysclxqList>
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
|
||||
</div>
|
||||
<!-- 选课后的列表 -->
|
||||
<div v-if="sfxk == 999">
|
||||
|
||||
<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>
|
||||
|
||||
|
@ -235,6 +320,11 @@ import XxhbjwxtscwjxxList from '/@/views/bl/xxhbjwxtscwjxx/XxhbjwxtscwjxxList.vu
|
|||
import XxhbjwxtxsmdList3 from '/@/views/bl/xxhbjwxtxsmd/XxhbjwxtxsmdList3.vue';
|
||||
import XxhbjwxtxsmdList4 from '/@/views/bl/xxhbjwxtxsmd/XxhbjwxtxsmdList4.vue';
|
||||
|
||||
import XscjList from './components/XscjList.vue';
|
||||
import KhpjclList from '/@/views/bl/xxhbjwxtscwjxx/KhpjclList.vue';
|
||||
import XsysclList from '/@/views/bl/xxhbjwxtxsmd/XsysclList.vue';
|
||||
import XsysclxqList from '/@/views/bl/xxhbjwxtxsmd/XsysclxqList.vue';
|
||||
|
||||
const formRef = ref();
|
||||
const formRef3 = ref();
|
||||
const cjdFormModal = ref();
|
||||
|
@ -248,11 +338,14 @@ const registerModal = ref();
|
|||
const userStore = useUserStore();
|
||||
const emit = defineEmits(['callback']);
|
||||
const sfxk = ref<number>(0);
|
||||
const sfxk2 = ref<number>(0);
|
||||
const checkData = ref<any>([]);
|
||||
const dataList = ref<any>([]);
|
||||
import { Pagination } from 'ant-design-vue';
|
||||
const jxrwInfo = reactive<any>({});
|
||||
const APagination = Pagination;
|
||||
const { createMessage } = useMessage();
|
||||
const activeKey = ref('1');
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
tableProps: {
|
||||
|
@ -260,10 +353,10 @@ const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
|||
columns: columns3,
|
||||
canResize: false,
|
||||
useSearchForm: false,
|
||||
actionColumn: {
|
||||
width: 320,
|
||||
fixed: 'right',
|
||||
},
|
||||
// actionColumn: {
|
||||
// width: 320,
|
||||
// fixed: 'right',
|
||||
// },
|
||||
beforeFetch: async (params) => {
|
||||
return Object.assign(params, queryParam);
|
||||
},
|
||||
|
@ -311,6 +404,10 @@ function handleXsyscl(record) {
|
|||
sfxk.value = 4;
|
||||
xsysclFormModal.value.init(record);
|
||||
}
|
||||
//学生原始材料
|
||||
function handleXsyscl2(record) {
|
||||
sfxk2.value = 0;
|
||||
}
|
||||
//选课
|
||||
function handleXuanke() {
|
||||
sfxk.value = 1;
|
||||
|
@ -318,7 +415,7 @@ function handleXuanke() {
|
|||
}
|
||||
function handleXsysclxq(record) {
|
||||
console.log('👨⚕️handleXsysclxq', record);
|
||||
sfxk.value = 5;
|
||||
sfxk2.value = 5;
|
||||
xsysclXqFormModal.value.init(record);
|
||||
}
|
||||
//返回首页
|
||||
|
@ -339,11 +436,11 @@ function handleQueren(record) {
|
|||
checkData.value.push(record);
|
||||
}
|
||||
//选课删除
|
||||
async function handleDel(record) {
|
||||
async function handleDel(record) {
|
||||
await deleteXkxxOne({ id: record.id }, xtsuccess);
|
||||
}
|
||||
|
||||
function xtsuccess(){
|
||||
function xtsuccess() {
|
||||
//获取是否有选课信息
|
||||
defHttp.get({ url: '/zjXkxx/zjXkxx/list', params: { pageSize: -1 } }).then((res) => {
|
||||
console.log('🧛', res);
|
||||
|
@ -384,7 +481,7 @@ function handleXUanze(record) {
|
|||
.then((res) => {
|
||||
console.log('🤛', res);
|
||||
});
|
||||
xtsuccess();
|
||||
xtsuccess();
|
||||
}
|
||||
|
||||
//选课提交
|
||||
|
@ -417,24 +514,48 @@ function handleDetail(record: Recordable) {
|
|||
function handleSuccess() {
|
||||
(selectedRowKeys.value = []) && reload();
|
||||
}
|
||||
/**
|
||||
* 查看
|
||||
*/
|
||||
function handleView(record) {
|
||||
jxrwInfo.value = record;
|
||||
cjdFormModal.value.init(jxrwInfo.value); //成绩单
|
||||
// khpjclFormModal.value.init(record); //考核评价材料
|
||||
// xsysclFormModal.value.init(record); //学生原始材料
|
||||
sfxk.value = 6;
|
||||
sfxk2.value = 0;
|
||||
activeKey.value = '1';
|
||||
}
|
||||
|
||||
function onChangeTab(tab) {
|
||||
console.log('🎒', tab);
|
||||
if(tab==2){
|
||||
khpjclFormModal.value.init(jxrwInfo.value); //考核评价材料
|
||||
}else if(tab==3){
|
||||
xsysclFormModal.value.init(jxrwInfo.value); //学生原始材料
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 操作栏
|
||||
*/
|
||||
function getTableAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '学生成绩',
|
||||
onClick: handleCjd.bind(null, record),
|
||||
},
|
||||
{
|
||||
label: '考核评价材料',
|
||||
onClick: handleKhpjcl.bind(null, record),
|
||||
},
|
||||
{
|
||||
label: '学生原始材料',
|
||||
onClick: handleXsyscl.bind(null, record),
|
||||
label: '查看',
|
||||
onClick: handleView.bind(null, record),
|
||||
},
|
||||
// {
|
||||
// label: '学生成绩',
|
||||
// onClick: handleCjd.bind(null, record),
|
||||
// },
|
||||
// {
|
||||
// label: '考核评价材料',
|
||||
// onClick: handleKhpjcl.bind(null, record),
|
||||
// },
|
||||
// {
|
||||
// label: '学生原始材料',
|
||||
// onClick: handleXsyscl.bind(null, record),
|
||||
// },
|
||||
];
|
||||
}
|
||||
|
||||
|
@ -549,4 +670,8 @@ onMounted(() => {
|
|||
border-radius: 10px;
|
||||
color: #1890ff;
|
||||
}
|
||||
.mbxtitle {
|
||||
font-size: 22px;
|
||||
line-height: 22px;
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -0,0 +1,692 @@
|
|||
<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:130px; 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">
|
||||
|
||||
<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="handleFanhui">课程考核材料</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><span class="mbxtitle">选择课程</span></a-breadcrumb-item>
|
||||
</a-breadcrumb>
|
||||
</div> -->
|
||||
|
||||
<a-button type="primary" style="margin-left: 10px;margin-bottom: 15px; " @click="handleFanhui">查看材料</a-button>
|
||||
</a-form>
|
||||
</div>
|
||||
|
||||
|
||||
<a-table :columns="columns2" :data-source="checkData" :pagination="false">
|
||||
<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="handleDel(record)">移除</a>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
|
||||
<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="zjxnxq">
|
||||
<template #label><span title="学年学期" class="xn-title">学年学期</span></template>
|
||||
<j-dict-select-tag placeholder="请选择学年学期" v-model:value="queryParam2.zjxnxq" :dictCode="`v_xqxn,xqxn,xqxn`" allow-clear />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="kkyxmc">
|
||||
<template #label><span title="开课单位名称" class="xn-title">开课单位名称</span></template>
|
||||
<j-dict-select-tag
|
||||
placeholder="请选择开课单位名称"
|
||||
v-model:value="queryParam2.kkyxmc"
|
||||
:dictCode="`v_kkdw,kkyxmc,kkyxmc`"
|
||||
allow-clear
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="zhunaye">
|
||||
<template #label><span title="所属专业" class="xn-title">所属专业</span></template>
|
||||
<j-dict-select-tag
|
||||
placeholder="请选择所属专业"
|
||||
v-model:value="queryParam2.zhuanye"
|
||||
:dictCode="`v_zhuanye,dept_name,dept_name`"
|
||||
allow-clear
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="kcmc">
|
||||
<template #label><span title="任课教师" class="xn-title">任课教师</span></template>
|
||||
<j-input placeholder="请输入任课教师" v-model:value="queryParam2.teaxm" allow-clear></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="zhicheng">
|
||||
<template #label><span title="职称" class="xn-title">职称</span></template>
|
||||
<j-dict-select-tag
|
||||
placeholder="请选择职称"
|
||||
v-model:value="queryParam2.zhicheng"
|
||||
:dictCode="`v_zhicheng,zhicheng,zhicheng`"
|
||||
allow-clear
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :span="18" 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.sfxk == '0'">选择</a>
|
||||
<a disabled v-if="record.sfxk == '1'">已选择</a>
|
||||
</template>
|
||||
</template>
|
||||
</a-table>
|
||||
|
||||
|
||||
<!-- <div style="text-align: right">
|
||||
<a-button type="primary" style="margin-left: 10px; margin-top: 10px" @click="handleSubmit">确认</a-button>
|
||||
<a-button type="primary" style="margin-left: 10px; margin-top: 10px" @click="handleFanhui">返回</a-button>
|
||||
</div> -->
|
||||
</div>
|
||||
<!-- 成绩单 -->
|
||||
<!-- <div v-show="sfxk == 2">
|
||||
<CjdForm ref="cjdFormModal" @callback="init"></CjdForm>
|
||||
</div> -->
|
||||
<!-- 考核评价材料 -->
|
||||
<!-- <div v-show="sfxk == 3">
|
||||
<XxhbjwxtscwjxxList ref="khpjclFormModal" @callback="init"></XxhbjwxtscwjxxList>
|
||||
</div> -->
|
||||
<!-- 学生原始材料 -->
|
||||
<!-- <div v-show="sfxk == 4">
|
||||
<XxhbjwxtxsmdList3 ref="xsysclFormModal" @callback="init" @handleXq="handleXsysclxq"></XxhbjwxtxsmdList3>
|
||||
</div> -->
|
||||
<!-- 学生原始材料-详情 -->
|
||||
<!-- <div v-show="sfxk == 5">
|
||||
<XxhbjwxtxsmdList4 ref="xsysclXqFormModal" @callback="handleXsyscl"></XxhbjwxtxsmdList4>
|
||||
</div> -->
|
||||
<!-- 学生列表查看 -->
|
||||
<div v-show="sfxk == 6">
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form ref="formRef" class="query-criteria">
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="24" style="margin-bottom: 10px;">
|
||||
<!-- <div >
|
||||
<a-breadcrumb>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui">课程考核材料</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui">已选课程</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui" v-if="jxrwInfo.value">{{jxrwInfo?.value?.kcmc}}</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui">学生原始材料</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><span class="mbxtitle">详情</span></a-breadcrumb-item>
|
||||
</a-breadcrumb>
|
||||
</div> -->
|
||||
<a-button type="primary" @click="handleFanhui">返回</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form ref="formRef" @keyup.enter.native="searchQuery" :model="queryParam" :label-col="labelCol" :wrapper-col="wrapperCol" class="query-criteria">
|
||||
<a-row :gutter="24" v-if="jxrwInfo?.value">
|
||||
<a-col :span="12"><span class="seleciton-line">1</span> <span class="selection-title">课程考核材料详情 </span> </a-col>
|
||||
<a-col :gutter="24">
|
||||
<div style="text-align: center; font-size:24px; font-weight: 700; line-height: 50px" v-if="jxrwInfo?.value">
|
||||
{{ jxrwInfo?.value.xn }}{{ jxrwInfo?.value.xqmc }}学期《{{ jxrwInfo?.value.kcmc }}》
|
||||
</div>
|
||||
<div v-if="jxrwInfo.value">
|
||||
<div style="padding-left:16px;font-size:16px; font-weight: 700">概要信息</div>
|
||||
<a-row style="line-height: 30px">
|
||||
<a-col :xl="8" :sm="12" :md="8">
|
||||
<span class="header-title" style="margin-left: 15px">开课单位</span> :<span class="header-title">{{ jxrwInfo?.value.kkyxmc }}</span>
|
||||
</a-col>
|
||||
<a-col :xl="8" :sm="12" :md="8">
|
||||
<span class="header-title" style="margin-left: 15px">课程类别</span> :<span class="header-title">{{ jxrwInfo?.value.kclb }}</span>
|
||||
</a-col>
|
||||
<a-col :xl="8" :sm="12" :md="8">
|
||||
<span class="header-title" style="margin-left: 15px">课程名称</span> :<span class="header-title">{{ jxrwInfo?.value.kcmc }}</span>
|
||||
</a-col>
|
||||
<a-col :xl="8" :sm="12" :md="8">
|
||||
<span class="header-title" style="margin-left: 15px">课程负责人</span> :<span class="header-title">{{ jxrwInfo?.value.teaxm }}</span>
|
||||
</a-col>
|
||||
<a-col :xl="8" :sm="12" :md="8">
|
||||
<span class="header-title" style="margin-left: 15px">选课人数</span> :<span class="header-title">{{ jxrwInfo?.value.jxbrs }}</span>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</div>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
</div>
|
||||
<a-tabs v-model:activeKey="activeKey" type="card" @change="onChangeTab" style="background-color: white;">
|
||||
<a-tab-pane key="1" tab="学生成绩">
|
||||
<XscjList ref="cjdFormModal" @callback="init"></XscjList>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="2" tab="考核评价材料" :forceRender="true">
|
||||
<KhpjclList ref="khpjclFormModal" @callback="init"></KhpjclList>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="3" tab="学生原始材料" :forceRender="true">
|
||||
<div v-show="sfxk2 != 5">
|
||||
<XsysclList ref="xsysclFormModal" @callback="init" @handleXq="handleXsysclxq"></XsysclList>
|
||||
</div>
|
||||
<div v-show="sfxk2 == 5">
|
||||
<XsysclxqList ref="xsysclXqFormModal" @callback="handleXsyscl2"></XsysclxqList>
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
</a-tabs>
|
||||
|
||||
</div>
|
||||
<!-- 选课后的列表 -->
|
||||
<div v-if="sfxk == 999">
|
||||
|
||||
<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 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="zjxnxq">
|
||||
<template #label><span title="学年学期" class="xn-title">学年学期</span></template>
|
||||
<j-dict-select-tag placeholder="请选择学年学期" v-model:value="queryParam.zjxnxq" :dictCode="`v_xqxn,xqxn,xqxn`" allow-clear />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="kkyxmc">
|
||||
<template #label><span title="开课单位名称" class="xn-title">开课单位名称</span></template>
|
||||
<j-dict-select-tag
|
||||
placeholder="请选择开课单位名称"
|
||||
v-model:value="queryParam.kkyxmc"
|
||||
:dictCode="`v_kkdw,kkyxmc,kkyxmc`"
|
||||
allow-clear
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="zhunaye">
|
||||
<template #label><span title="所属专业" class="xn-title">所属专业</span></template>
|
||||
<j-dict-select-tag
|
||||
placeholder="请选择所属专业"
|
||||
v-model:value="queryParam.zhuanye"
|
||||
:dictCode="`v_zhuanye,dept_name,dept_name`"
|
||||
allow-clear
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="kcmc">
|
||||
<template #label><span title="任课教师" class="xn-title">任课教师</span></template>
|
||||
<j-input placeholder="请输入任课教师" v-model:value="queryParam.teaxm" allow-clear></j-input>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6">
|
||||
<a-form-item name="zhicheng">
|
||||
<template #label><span title="职称" class="xn-title">职称</span></template>
|
||||
<j-dict-select-tag
|
||||
placeholder="请选择职称"
|
||||
v-model:value="queryParam.zhicheng"
|
||||
:dictCode="`v_zhicheng,zhicheng,zhicheng`"
|
||||
allow-clear
|
||||
/>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<!-- <a-col :lg="6">
|
||||
<a-form-item name="kcmc">
|
||||
<template #label><span title="课程名称">课程名称</span></template>
|
||||
<j-input placeholder="请输入课程名称" v-model:value="queryParam.kcmc" allow-clear ></j-input>
|
||||
</a-form-item>
|
||||
</a-col> -->
|
||||
<a-col :span="18" style="text-align: right">
|
||||
<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-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls" style="margin-left: 8px"> 导出</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>
|
||||
<template #cjd="{ record }">
|
||||
<a @click="handleCjd(record)">查看</a>
|
||||
</template>
|
||||
<template #khpjcl="{ record }">
|
||||
<a>查看</a>
|
||||
</template>
|
||||
<template #xsyscl="{ record }">
|
||||
<a>查看</a>
|
||||
</template>
|
||||
</BasicTable>
|
||||
</div>
|
||||
|
||||
<!-- 表单区域 -->
|
||||
<XxhbjwxtjxrwModal ref="registerModal" @success="handleSuccess"></XxhbjwxtjxrwModal class="table-style">
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="xxhbjwxtjxrw-xxhbjwxtjxrw" setup>
|
||||
import { ref, reactive, onMounted, computed } from 'vue';
|
||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { columns, columns2, columns3, superQuerySchema } from './Xxhbjwxtjxrw.data';
|
||||
import { zjList, list, deleteXkxxOne, batchDelete, getImportUrl, getExportUrl } from './Xxhbjwxtjxrw.api';
|
||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
import XxhbjwxtjxrwModal from './components/XxhbjwxtjxrwModal.vue';
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
|
||||
import JInput from '/@/components/Form/src/jeecg/components/JInput.vue';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import { useMessage } from '/@/hooks/web/useMessage';
|
||||
import CjdForm from './components/CjdForm.vue';
|
||||
import XxhbjwxtscwjxxList from '/@/views/bl/xxhbjwxtscwjxx/XxhbjwxtscwjxxList.vue';
|
||||
import XxhbjwxtxsmdList3 from '/@/views/bl/xxhbjwxtxsmd/XxhbjwxtxsmdList3.vue';
|
||||
import XxhbjwxtxsmdList4 from '/@/views/bl/xxhbjwxtxsmd/XxhbjwxtxsmdList4.vue';
|
||||
|
||||
import XscjList from './components/XscjList.vue';
|
||||
import KhpjclList from '/@/views/bl/xxhbjwxtscwjxx/KhpjclList.vue';
|
||||
import XsysclList from '/@/views/bl/xxhbjwxtxsmd/XsysclList.vue';
|
||||
import XsysclxqList from '/@/views/bl/xxhbjwxtxsmd/XsysclxqList.vue';
|
||||
|
||||
const formRef = ref();
|
||||
const formRef3 = ref();
|
||||
const cjdFormModal = ref();
|
||||
const khpjclFormModal = ref();
|
||||
const xsysclFormModal = ref();
|
||||
const xsysclXqFormModal = ref();
|
||||
const queryParam = reactive<any>({});
|
||||
const queryParam2 = ref<any>({});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
const userStore = useUserStore();
|
||||
const emit = defineEmits(['callback']);
|
||||
const sfxk = ref<number>(0);
|
||||
const sfxk2 = ref<number>(0);
|
||||
const checkData = ref<any>([]);
|
||||
const dataList = ref<any>([]);
|
||||
import { Pagination } from 'ant-design-vue';
|
||||
const jxrwInfo = reactive<any>({});
|
||||
const APagination = Pagination;
|
||||
const { createMessage } = useMessage();
|
||||
const activeKey = ref('1');
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
tableProps: {
|
||||
api: zjList,
|
||||
columns: columns3,
|
||||
canResize: false,
|
||||
useSearchForm: false,
|
||||
// actionColumn: {
|
||||
// width: 320,
|
||||
// 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: 8,
|
||||
xl: 8,
|
||||
xxl: 8,
|
||||
});
|
||||
const wrapperCol = reactive({
|
||||
xs: 24,
|
||||
sm: 16,
|
||||
});
|
||||
const paginationProp = ref<any>({
|
||||
total: 1,
|
||||
current: 1,
|
||||
pageSize: 10,
|
||||
pageNo: 1,
|
||||
});
|
||||
//成绩单
|
||||
function handleCjd(record) {
|
||||
sfxk.value = 2;
|
||||
cjdFormModal.value.init(record);
|
||||
}
|
||||
//考核评价材料
|
||||
function handleKhpjcl(record) {
|
||||
sfxk.value = 3;
|
||||
khpjclFormModal.value.init(record);
|
||||
}
|
||||
//学生原始材料
|
||||
function handleXsyscl(record) {
|
||||
sfxk.value = 4;
|
||||
xsysclFormModal.value.init(record);
|
||||
}
|
||||
//学生原始材料
|
||||
function handleXsyscl2(record) {
|
||||
sfxk2.value = 0;
|
||||
}
|
||||
//选课
|
||||
function handleXuanke() {
|
||||
sfxk.value = 1;
|
||||
searchQuery2();
|
||||
}
|
||||
function handleXsysclxq(record) {
|
||||
console.log('👨⚕️handleXsysclxq', record);
|
||||
sfxk2.value = 5;
|
||||
xsysclXqFormModal.value.init(record);
|
||||
}
|
||||
//返回首页
|
||||
function handleFanhui() {
|
||||
init();
|
||||
}
|
||||
|
||||
//选课确认
|
||||
function handleQueren(record) {
|
||||
console.log('😺', record);
|
||||
var aaa = checkData.value.includes(record);
|
||||
if (aaa) {
|
||||
createMessage.warn('不能重复选择数据!');
|
||||
return;
|
||||
}
|
||||
console.log('😇aaaa', aaa);
|
||||
checkData.value.push(record);
|
||||
}
|
||||
//选课删除
|
||||
async function handleDel(record) {
|
||||
await deleteXkxxOne({ id: record.id }, xtsuccess);
|
||||
}
|
||||
|
||||
function xtsuccess() {
|
||||
//获取是否有选课信息
|
||||
defHttp.get({ url: '/zjXkxx/zjXkxx/list', params: { pageSize: -1 } }).then((res) => {
|
||||
console.log('🧛', res);
|
||||
checkData.value = res.records;
|
||||
});
|
||||
searchQuery2();
|
||||
}
|
||||
//翻页方法
|
||||
async function onPageChange(record) {
|
||||
console.log('👬', record);
|
||||
paginationProp.value.current = record.current;
|
||||
await searchQuery2();
|
||||
}
|
||||
//下载本地文件
|
||||
function textDown(type, downame) {
|
||||
var a = document.createElement('a'); //创建一个<a></a>标签
|
||||
a.href = '/download/' + type + '.docx';
|
||||
//给a标签的href属性值加上地址,注意,这里是绝对路径,不用加 点.
|
||||
a.download = downame + '.docx';
|
||||
//设置下载文件文件名,这里加上.xlsx指定文件类型,pdf文件就指定.fpd即可
|
||||
a.style.display = 'none'; // 障眼法藏起来a标签
|
||||
document.body.appendChild(a);
|
||||
// 将a标签追加到文档对象中
|
||||
a.click(); //模拟点击了a标签,会触发a标签的href的读取,浏览器就会自动下载了
|
||||
a.remove();
|
||||
// 一次性的,用完就删除a标签
|
||||
}
|
||||
|
||||
//选课提交
|
||||
function handleXUanze(record) {
|
||||
record.id = null;
|
||||
console.log('😰record----------', record);
|
||||
defHttp
|
||||
.post({
|
||||
url: '/zjXkxx/zjXkxx/add',
|
||||
params: record,
|
||||
})
|
||||
.then((res) => {
|
||||
console.log('🤛', res);
|
||||
});
|
||||
xtsuccess();
|
||||
}
|
||||
|
||||
//选课提交
|
||||
function handleSubmit() {
|
||||
var list = checkData.value;
|
||||
if (list.length == 0) {
|
||||
createMessage.warn('请选择数据!');
|
||||
}
|
||||
defHttp
|
||||
.post({
|
||||
url: '/zjXkxx/zjXkxx/addBatch',
|
||||
data: list,
|
||||
})
|
||||
.then((res) => {
|
||||
console.log('🤛', res);
|
||||
init();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 详情
|
||||
*/
|
||||
function handleDetail(record: Recordable) {
|
||||
emit('callback', record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 成功回调
|
||||
*/
|
||||
function handleSuccess() {
|
||||
(selectedRowKeys.value = []) && reload();
|
||||
}
|
||||
/**
|
||||
* 查看
|
||||
*/
|
||||
function handleView(record) {
|
||||
jxrwInfo.value = record;
|
||||
cjdFormModal.value.init(jxrwInfo.value); //成绩单
|
||||
// khpjclFormModal.value.init(record); //考核评价材料
|
||||
// xsysclFormModal.value.init(record); //学生原始材料
|
||||
sfxk.value = 6;
|
||||
sfxk2.value = 0;
|
||||
activeKey.value = '1';
|
||||
}
|
||||
|
||||
function onChangeTab(tab) {
|
||||
console.log('🎒', tab);
|
||||
if(tab==2){
|
||||
khpjclFormModal.value.init(jxrwInfo.value); //考核评价材料
|
||||
}else if(tab==3){
|
||||
xsysclFormModal.value.init(jxrwInfo.value); //学生原始材料
|
||||
}
|
||||
}
|
||||
/**
|
||||
* 操作栏
|
||||
*/
|
||||
function getTableAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '查看',
|
||||
onClick: handleView.bind(null, record),
|
||||
},
|
||||
// {
|
||||
// label: '学生成绩',
|
||||
// onClick: handleCjd.bind(null, record),
|
||||
// },
|
||||
// {
|
||||
// label: '考核评价材料',
|
||||
// onClick: handleKhpjcl.bind(null, record),
|
||||
// },
|
||||
// {
|
||||
// label: '学生原始材料',
|
||||
// onClick: handleXsyscl.bind(null, record),
|
||||
// },
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery() {
|
||||
reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery2() {
|
||||
queryParam2.value.pageNo = paginationProp.value.current;
|
||||
defHttp.get({ url: '/xxhbjwxtjxrw/xxhbjwxtjxrw/list', params: { pageNo: paginationProp.value.current, ...queryParam2.value } }).then((res) => {
|
||||
dataList.value = res.records;
|
||||
paginationProp.value.total = res.total;
|
||||
paginationProp.value.current = res.pageNo;
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置
|
||||
*/
|
||||
function searchReset() {
|
||||
formRef3.value.resetFields();
|
||||
selectedRowKeys.value = [];
|
||||
//刷新数据
|
||||
reload();
|
||||
}
|
||||
|
||||
function init() {
|
||||
//获取是否有选课信息
|
||||
defHttp.get({ url: '/zjXkxx/zjXkxx/list', params: { pageSize: -1 } }).then((res) => {
|
||||
console.log('🧛', res);
|
||||
if (res.records.length == 0) {
|
||||
sfxk.value = 0;
|
||||
checkData.value = [];
|
||||
} else {
|
||||
sfxk.value = 999;
|
||||
checkData.value = res.records;
|
||||
paginationProp.value.total = res.records.total;
|
||||
paginationProp.value.current = res.records.pages;
|
||||
}
|
||||
});
|
||||
}
|
||||
function init2() {
|
||||
//获取是否有选课信息
|
||||
defHttp.get({ url: '/zjXkxx/zjXkxx/list', params: { pageSize: -1 } }).then((res) => {
|
||||
console.log('🧛', res);
|
||||
if (res.records.length == 0) {
|
||||
sfxk.value = 0;
|
||||
checkData.value = [];
|
||||
} else {
|
||||
sfxk.value = 1;
|
||||
checkData.value = res.records;
|
||||
paginationProp.value.total = res.records.total;
|
||||
paginationProp.value.current = res.records.pages;
|
||||
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>
|
|
@ -4,6 +4,15 @@
|
|||
<a-form ref="formRef2" class="query-criteria">
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="24">
|
||||
<!-- <div >
|
||||
<a-breadcrumb>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui">课程考核材料</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui">已选课程</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui" v-if="jxrwInfo.value">{{jxrwInfo?.value.kcmc}}</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><span class="mbxtitle">学生成绩</span></a-breadcrumb-item>
|
||||
</a-breadcrumb>
|
||||
</div> -->
|
||||
|
||||
<a-button type="primary" @click="handleFanhui" style="margin-top: 7px;">返回</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
@ -267,4 +276,7 @@ border:1px solid #e4e9f2;
|
|||
box-shadow: 2px 2px 10px 2px #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.mbxtitle{
|
||||
font-size: 22px;line-height: 22px
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -0,0 +1,225 @@
|
|||
<template>
|
||||
<div class="p-2">
|
||||
<!--引用表格-->
|
||||
<BasicTable @register="registerTable" class="table-style">
|
||||
<!--操作栏-->
|
||||
<template #action="{ record }">
|
||||
<TableAction :actions="getTableAction(record)" />
|
||||
</template>
|
||||
</BasicTable>
|
||||
<!-- 表单区域 -->
|
||||
<!-- <XxhbjwxtxsmdModal ref="registerModal" @success="handleSuccess"></XxhbjwxtxsmdModal> -->
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="xxhbjwxtxsmd-xxhbjwxtxsmd" setup>
|
||||
import { ref, reactive, defineExpose } from 'vue';
|
||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { columns3, superQuerySchema } from '/@/views/bl/xxhbjwxtxsmd/Xxhbjwxtxsmd.data';
|
||||
import { list, deleteOne, batchDelete, getImportUrl, getExportUrl } from '/@/views/bl/xxhbjwxtxsmd/Xxhbjwxtxsmd.api';
|
||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
// import XxhbjwxtxsmdModal from './components/XxhbjwxtxsmdModal.vue'
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
import { downloadFile as ajaxDownloadFileFn } from '/@/api/common/api';
|
||||
|
||||
const formRef = ref();
|
||||
const queryParam = reactive<any>({});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
const userStore = useUserStore();
|
||||
const spinning = ref<boolean>(false);
|
||||
const emit = defineEmits(['callback']);
|
||||
|
||||
const jxrwInfo = reactive<any>({});
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
tableProps: {
|
||||
title: '详细信息',
|
||||
api: list,
|
||||
columns: columns3,
|
||||
canResize: false,
|
||||
useSearchForm: false,
|
||||
showActionColumn: 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,
|
||||
});
|
||||
|
||||
function textDown() {
|
||||
var a = document.createElement('a'); //创建一个<a></a>标签
|
||||
a.href = '/download/a.docx';
|
||||
//给a标签的href属性值加上地址,注意,这里是绝对路径,不用加 点.
|
||||
a.download = 'a.docx';
|
||||
//设置下载文件文件名,这里加上.xlsx指定文件类型,pdf文件就指定.fpd即可
|
||||
a.style.display = 'none'; // 障眼法藏起来a标签
|
||||
document.body.appendChild(a);
|
||||
// 将a标签追加到文档对象中
|
||||
a.click(); //模拟点击了a标签,会触发a标签的href的读取,浏览器就会自动下载了
|
||||
a.remove();
|
||||
// 一次性的,用完就删除a标签
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑事件
|
||||
*/
|
||||
function handleEdit(record: Recordable) {
|
||||
registerModal.value.disableSubmit = false;
|
||||
registerModal.value.edit(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 成功回调
|
||||
*/
|
||||
function handleSuccess() {
|
||||
(selectedRowKeys.value = []) && reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 操作栏
|
||||
*/
|
||||
function getTableAction(record) {
|
||||
if (record.studentPath) {
|
||||
return [
|
||||
{
|
||||
label: '预览',
|
||||
onClick: handleEdit.bind(null, record),
|
||||
},
|
||||
{
|
||||
label: '下载',
|
||||
onClick: handleEdit.bind(null, record),
|
||||
},
|
||||
];
|
||||
} else {
|
||||
return [
|
||||
{
|
||||
label: '暂无文件',
|
||||
disabled: true,
|
||||
},
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery() {
|
||||
reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置
|
||||
*/
|
||||
function searchReset() {
|
||||
formRef.value.resetFields();
|
||||
selectedRowKeys.value = [];
|
||||
//刷新数据
|
||||
reload();
|
||||
}
|
||||
|
||||
function handleFanhui() {
|
||||
emit('callback');
|
||||
}
|
||||
|
||||
function init(record) {
|
||||
console.log('🧞', record);
|
||||
queryParam.kcrwdm = record.kcrwdm;
|
||||
jxrwInfo.value = record;
|
||||
reload();
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
init,
|
||||
});
|
||||
</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%;
|
||||
}
|
||||
}
|
||||
.selection-title{
|
||||
font-size:18px;
|
||||
font-weight: 700;
|
||||
padding-left: 10px;
|
||||
}
|
||||
.seleciton-line{
|
||||
background: #1890ff;
|
||||
border-radius:10px ;
|
||||
color: #1890ff;
|
||||
}
|
||||
.header-title{
|
||||
font-size:16px;
|
||||
color: #666;
|
||||
}
|
||||
.query-criteria{
|
||||
padding:10px 10px 15px 10px;
|
||||
border:1px solid #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.query-criteria:hover{
|
||||
border:1px solid #e4e9f2;
|
||||
box-shadow: 2px 2px 10px 2px #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.table-style{
|
||||
padding: 10px;
|
||||
background: #fff;
|
||||
border:1px solid #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.table-style:hover{
|
||||
border:1px solid #e4e9f2;
|
||||
box-shadow: 2px 2px 10px 2px #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.mbxtitle{
|
||||
font-size: 22px;line-height: 22px
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,310 @@
|
|||
<template>
|
||||
<div class="p-2">
|
||||
<!--引用表格-->
|
||||
<BasicTable @register="registerTable" :rowSelection="rowSelection" class="table-style">
|
||||
<template #tableTitle>
|
||||
<a-button type="primary" v-if="selectedRowKeys.length > 0" @click="batchHandleDown"> 批量下载 </a-button>
|
||||
</template>
|
||||
<!--操作栏-->
|
||||
<template #action="{ record }">
|
||||
<TableAction :actions="getTableAction(record)" />
|
||||
</template>
|
||||
</BasicTable>
|
||||
<!-- 表单区域 -->
|
||||
<XxhbjwxtscwjxxModal ref="registerModal" @success="handleSuccess"></XxhbjwxtscwjxxModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="xxhbjwxtscwjxx-xxhbjwxtscwjxx" setup>
|
||||
import { ref, reactive } from 'vue';
|
||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { columns, superQuerySchema } from './Xxhbjwxtscwjxx.data';
|
||||
import { khcllist, deleteOne, batchDelete, getImportUrl, getExportUrl } from './Xxhbjwxtscwjxx.api';
|
||||
import { downloadFile,downloadFileLoacl } from '/@/utils/common/renderUtils';
|
||||
import XxhbjwxtscwjxxModal from './components/XxhbjwxtscwjxxModal.vue';
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
import JInput from '/@/components/Form/src/jeecg/components/JInput.vue';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
const formRef = ref();
|
||||
const queryParam = reactive<any>({});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
const userStore = useUserStore();
|
||||
const jxrwInfo = reactive<any>({kcmc:''});
|
||||
import { getFileAccessHttpUrl } from '@/utils/common/compUtils';
|
||||
import { encryptByBase64 } from '@/utils/cipher';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
|
||||
const emit = defineEmits(['callback']);
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
tableProps: {
|
||||
api: khcllist,
|
||||
columns,
|
||||
canResize: false,
|
||||
useSearchForm: false,
|
||||
// showActionColumn: false,
|
||||
actionColumn: {
|
||||
width: 320,
|
||||
// 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 handleFanhui() {
|
||||
emit('callback');
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增事件
|
||||
*/
|
||||
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);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量下载事件
|
||||
*/
|
||||
async function batchHandleDown() {
|
||||
var downName = '《'+jxrwInfo?.value.kcmc+'》考核评价材料'+dayjs().format('YYYYMMDDHHmmss')+"";
|
||||
defHttp.post({ url: "/xxhbjwxtscwjxx/xxhbjwxtscwjxx/getBatchDown", params: { downPath: selectedRowKeys.value,downName } }).then((res) => {
|
||||
console.log(res);
|
||||
downloadFileLoacl(res.path);
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 成功回调
|
||||
*/
|
||||
function handleSuccess() {
|
||||
(selectedRowKeys.value = []) && reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 预览
|
||||
*/
|
||||
function handleYulan(record) {
|
||||
var file1 = getFileAccessHttpUrl(record.path.replaceAll(" ","").replaceAll("(","(").replaceAll(")",")"));
|
||||
|
||||
if(file1){
|
||||
console.log("filename--->",file1)
|
||||
defHttp.post({ url: '/sys/common/ycxz',params:{fileName:file1+","} }).then((res) => {});
|
||||
}
|
||||
|
||||
console.log("ktbgUrl1--->",file1)
|
||||
window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file1)),"_blank");
|
||||
}
|
||||
/**
|
||||
* 下载
|
||||
*/
|
||||
function handleDown(record) {
|
||||
downloadFile(record.path.replaceAll(" ","").replaceAll("(","(").replaceAll(")",")"));
|
||||
}
|
||||
/**
|
||||
* 操作栏
|
||||
*/
|
||||
function getTableAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '查看',
|
||||
onClick: handleYulan.bind(null, record),
|
||||
},
|
||||
{
|
||||
label: '下载',
|
||||
onClick: handleDown.bind(null, record),
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* 下拉操作栏
|
||||
*/
|
||||
function getDropDownAction(record) {
|
||||
return [
|
||||
{
|
||||
label: '详情',
|
||||
onClick: handleDetail.bind(null, record),
|
||||
},
|
||||
{
|
||||
label: '删除',
|
||||
popConfirm: {
|
||||
title: '是否确认删除',
|
||||
confirm: handleDelete.bind(null, record),
|
||||
placement: 'topLeft',
|
||||
},
|
||||
auth: 'xxhbjwxtscwjxx:xxhbjwxtscwjxx:delete',
|
||||
},
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery() {
|
||||
reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置
|
||||
*/
|
||||
function searchReset() {
|
||||
formRef.value.resetFields();
|
||||
selectedRowKeys.value = [];
|
||||
//刷新数据
|
||||
reload();
|
||||
}
|
||||
|
||||
function init(record) {
|
||||
queryParam.kcrwdm = record.kcrwdm;
|
||||
// queryParam.fjtype = '课程考核合理性审核记录单,课程目标达成情况评价报告,课程考核质量评价单,期未考试-试题(或内容及要求),期末考试-评分标准,历次过程性考核-内容及要求(或试题),历次过程性考核-评分标准';
|
||||
queryParam.fjtype = '历次过程性考核-评分标准,历次过程性考核-内容及要求(或试题),课程考核合理性审核记录单,期末考试-评分标准,期未考试-试题(或内容及要求),课程考核质量评价单,课程目标达成情况评价报告';
|
||||
// 平时成绩
|
||||
// 期末成绩
|
||||
// 期中成绩
|
||||
// 实践成绩
|
||||
jxrwInfo.value = record;
|
||||
|
||||
reload();
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
init,
|
||||
});
|
||||
</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%;
|
||||
}
|
||||
}
|
||||
.selection-title{
|
||||
font-size:18px;
|
||||
font-weight: 700;
|
||||
padding-left:10px;
|
||||
}
|
||||
.seleciton-line{
|
||||
background: #1890ff;
|
||||
border-radius:10px ;
|
||||
color: #1890ff;
|
||||
}
|
||||
.header-title{
|
||||
font-size: 16px;
|
||||
color: #666;
|
||||
}
|
||||
.query-criteria{
|
||||
padding:10px 10px 15px 10px;
|
||||
border:1px solid #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.query-criteria:hover{
|
||||
border:1px solid #e4e9f2;
|
||||
box-shadow: 2px 2px 10px 2px #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.table-style{
|
||||
padding: 10px;
|
||||
background: #fff;
|
||||
border:1px solid #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.table-style:hover{
|
||||
border:1px solid #e4e9f2;
|
||||
box-shadow: 2px 2px 10px 2px #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.ant-table-wrapper .ant-table.ant-table-middle{
|
||||
font-size: 18px;
|
||||
}
|
||||
.mbxtitle{
|
||||
font-size: 22px;line-height: 22px
|
||||
}
|
||||
</style>
|
|
@ -4,7 +4,16 @@
|
|||
<a-form ref="formRef" class="query-criteria">
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="24">
|
||||
<a-button type="primary" style="margin-left: 8px;margin-top: 10px;" @click="handleFanhui">返回</a-button>
|
||||
<!-- <div >
|
||||
<a-breadcrumb>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui">课程考核材料</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui">已选课程</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui" v-if="jxrwInfo.value">{{jxrwInfo?.value.kcmc}}</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><span class="mbxtitle">考核评价材料</span></a-breadcrumb-item>
|
||||
</a-breadcrumb>
|
||||
</div> -->
|
||||
|
||||
<a-button type="primary" @click="handleFanhui" style="margin-top: 7px;">返回</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-form>
|
||||
|
@ -74,7 +83,7 @@ const queryParam = reactive<any>({});
|
|||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
const userStore = useUserStore();
|
||||
const jxrwInfo = reactive<any>({});
|
||||
const jxrwInfo = reactive<any>({kcmc:''});
|
||||
import { getFileAccessHttpUrl } from '@/utils/common/compUtils';
|
||||
import { encryptByBase64 } from '@/utils/cipher';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
|
@ -198,7 +207,7 @@ function handleYulan(record) {
|
|||
var file = getFileAccessHttpUrl(record.path);
|
||||
console.log('🤬', file);
|
||||
// window.open('https://view.xdocin.com/view?src=' + encodeURIComponent(encryptByBase64(file)));
|
||||
// window.open('https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||
// window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||
window.open(file, '_blank');
|
||||
}
|
||||
/**
|
||||
|
@ -342,4 +351,7 @@ border-radius:4px;
|
|||
.ant-table-wrapper .ant-table.ant-table-middle{
|
||||
font-size: 18px;
|
||||
}
|
||||
.mbxtitle{
|
||||
font-size: 22px;line-height: 22px
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -0,0 +1,211 @@
|
|||
<template>
|
||||
<div class="p-2">
|
||||
<!--引用表格-->
|
||||
<BasicTable @register="registerTable" class="table-style">
|
||||
<template #headerCell="{ column }">
|
||||
<template v-if="column.key === 'cdlx'">
|
||||
<a-popover placement="topRight" class="">
|
||||
<template #content>
|
||||
<p >全量指对班级所有学生的原始材料全部存档;<br />抽样指按学生成绩的优秀、良好、一般各抽取至少2份原始材料存档。</p
|
||||
>
|
||||
</template>
|
||||
<template #title>
|
||||
<span>存档类型 </span>
|
||||
</template>
|
||||
<span>存档类型</span><icon icon="ant-design:question-circle-outlined" style="margin-left: 5px; font-size: 16px" />
|
||||
</a-popover>
|
||||
</template>
|
||||
<template v-if="column.key != 'cdlx'">
|
||||
{{ column.customTitle ? column.customTitle : column.title }}
|
||||
</template>
|
||||
<!-- <template v-if="column.key === 'zb'">
|
||||
占比
|
||||
</template> -->
|
||||
</template>
|
||||
<!--操作栏-->
|
||||
<template #xqaction="{ record }">
|
||||
<a @click="handleDetail(record)">查看</a>
|
||||
</template>
|
||||
</BasicTable>
|
||||
<!-- 表单区域 -->
|
||||
<XxhbjwxtxsmdModal ref="registerModal" @success="handleSuccess"></XxhbjwxtxsmdModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="xxhbjwxtxsmd-xxhbjwxtxsmd" setup>
|
||||
import { ref, reactive, defineExpose } from 'vue';
|
||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { columns4, superQuerySchema } from './Xxhbjwxtxsmd.data';
|
||||
import { list2, deleteOne, batchDelete, getImportUrl, getExportUrl } from './Xxhbjwxtxsmd.api';
|
||||
import { downloadFile } from '/@/utils/common/renderUtils';
|
||||
import XxhbjwxtxsmdModal from './components/XxhbjwxtxsmdModal.vue';
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
import { downloadFile as ajaxDownloadFileFn } from '/@/api/common/api';
|
||||
|
||||
const formRef = ref();
|
||||
const queryParam = reactive<any>({});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
const userStore = useUserStore();
|
||||
const spinning = ref<boolean>(false);
|
||||
const emit = defineEmits(['callback', 'handleXq']);
|
||||
|
||||
const jxrwInfo = reactive<any>({});
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
tableProps: {
|
||||
title: '详细信息',
|
||||
api: list2,
|
||||
columns: columns4,
|
||||
canResize: false,
|
||||
useSearchForm: false,
|
||||
showActionColumn: 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,
|
||||
});
|
||||
|
||||
function textDown() {
|
||||
var a = document.createElement('a'); //创建一个<a></a>标签
|
||||
a.href = '/download/a.docx';
|
||||
//给a标签的href属性值加上地址,注意,这里是绝对路径,不用加 点.
|
||||
a.download = 'a.docx';
|
||||
//设置下载文件文件名,这里加上.xlsx指定文件类型,pdf文件就指定.fpd即可
|
||||
a.style.display = 'none'; // 障眼法藏起来a标签
|
||||
document.body.appendChild(a);
|
||||
// 将a标签追加到文档对象中
|
||||
a.click(); //模拟点击了a标签,会触发a标签的href的读取,浏览器就会自动下载了
|
||||
a.remove();
|
||||
// 一次性的,用完就删除a标签
|
||||
}
|
||||
|
||||
/**
|
||||
* 成功回调
|
||||
*/
|
||||
function handleSuccess() {
|
||||
(selectedRowKeys.value = []) && reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery() {
|
||||
reload();
|
||||
}
|
||||
|
||||
function handleFanhui() {
|
||||
emit('callback');
|
||||
}
|
||||
|
||||
function handleDetail(record) {
|
||||
console.log('😢handleDetail--------', record);
|
||||
jxrwInfo.value.khfs = record.khfs;
|
||||
jxrwInfo.value.zb = record.zb;
|
||||
jxrwInfo.value.sort = record.sort;
|
||||
console.log('🖕222222222222', jxrwInfo.value);
|
||||
emit('handleXq', jxrwInfo.value);
|
||||
}
|
||||
function init(record) {
|
||||
console.log('🧞', record);
|
||||
queryParam.kcrwdm = record.kcrwdm;
|
||||
jxrwInfo.value = record;
|
||||
reload();
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
init,
|
||||
});
|
||||
</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%;
|
||||
}
|
||||
}
|
||||
.selection-title{
|
||||
font-size:18px;
|
||||
font-weight: 700;
|
||||
padding-left:10px;
|
||||
line-height: 30px;
|
||||
}
|
||||
.seleciton-line{
|
||||
background: #1890ff;
|
||||
border-radius:10px ;
|
||||
color: #1890ff;
|
||||
}
|
||||
.header-title{
|
||||
font-size:16px;
|
||||
color: #666;
|
||||
}
|
||||
.query-criteria{
|
||||
padding:10px 10px 15px 10px;
|
||||
border:1px solid #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.query-criteria:hover{
|
||||
border:1px solid #e4e9f2;
|
||||
box-shadow: 2px 2px 10px 2px #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.table-style{
|
||||
padding: 10px;
|
||||
background: #fff;
|
||||
border:1px solid #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.table-style:hover{
|
||||
border:1px solid #e4e9f2;
|
||||
box-shadow: 2px 2px 10px 2px #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.mbxtitle{
|
||||
font-size: 22px;line-height: 22px
|
||||
}
|
||||
</style>
|
|
@ -0,0 +1,261 @@
|
|||
<template>
|
||||
<div class="p-2">
|
||||
<!--引用表格-->
|
||||
<BasicTable @register="registerTable" :rowSelection="rowSelection" class="table-style">
|
||||
<template #tableTitle>
|
||||
<a-button type="primary" @click="handleFanhui">返回学生原始材料</a-button>
|
||||
<a-button type="primary" v-if="selectedRowKeys.length > 0" @click="batchHandleDown"> 批量下载 </a-button>
|
||||
</template>
|
||||
<!--操作栏-->
|
||||
<template #action="{ record }">
|
||||
<TableAction :actions="getTableAction(record)" />
|
||||
</template>
|
||||
</BasicTable>
|
||||
<!-- 表单区域 -->
|
||||
<XxhbjwxtxsmdModal ref="registerModal" @success="handleSuccess"></XxhbjwxtxsmdModal>
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script lang="ts" name="xxhbjwxtxsmd-xxhbjwxtxsmd" setup>
|
||||
import { ref, reactive, defineExpose } from 'vue';
|
||||
import { BasicTable, useTable, TableAction } from '/@/components/Table';
|
||||
import { useListPage } from '/@/hooks/system/useListPage';
|
||||
import { columns5, superQuerySchema } from './Xxhbjwxtxsmd.data';
|
||||
import { list3, deleteOne, batchDelete, getImportUrl, getExportUrl } from './Xxhbjwxtxsmd.api';
|
||||
import { downloadFile, downloadFileLoacl } from '/@/utils/common/renderUtils';
|
||||
import XxhbjwxtxsmdModal from './components/XxhbjwxtxsmdModal.vue';
|
||||
import { useUserStore } from '/@/store/modules/user';
|
||||
import { getFileAccessHttpUrl } from '@/utils/common/compUtils';
|
||||
import { encryptByBase64 } from '@/utils/cipher';
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
import dayjs from 'dayjs';
|
||||
|
||||
const formRef = ref();
|
||||
const queryParam = reactive<any>({});
|
||||
const toggleSearchStatus = ref<boolean>(false);
|
||||
const registerModal = ref();
|
||||
const userStore = useUserStore();
|
||||
const spinning = ref<boolean>(false);
|
||||
const emit = defineEmits(['callback']);
|
||||
|
||||
const jxrwInfo = reactive<any>({});
|
||||
//注册table数据
|
||||
const { prefixCls, tableContext, onExportXls, onImportXls } = useListPage({
|
||||
tableProps: {
|
||||
title: '详细信息',
|
||||
api: list3,
|
||||
columns: columns5,
|
||||
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,
|
||||
});
|
||||
|
||||
function textDown() {
|
||||
var a = document.createElement('a'); //创建一个<a></a>标签
|
||||
a.href = '/download/a.docx';
|
||||
//给a标签的href属性值加上地址,注意,这里是绝对路径,不用加 点.
|
||||
a.download = 'a.docx';
|
||||
//设置下载文件文件名,这里加上.xlsx指定文件类型,pdf文件就指定.fpd即可
|
||||
a.style.display = 'none'; // 障眼法藏起来a标签
|
||||
document.body.appendChild(a);
|
||||
// 将a标签追加到文档对象中
|
||||
a.click(); //模拟点击了a标签,会触发a标签的href的读取,浏览器就会自动下载了
|
||||
a.remove();
|
||||
// 一次性的,用完就删除a标签
|
||||
}
|
||||
|
||||
/**
|
||||
* 编辑事件
|
||||
*/
|
||||
function handleEdit(record: Recordable) {
|
||||
registerModal.value.disableSubmit = false;
|
||||
registerModal.value.edit(record);
|
||||
}
|
||||
|
||||
/**
|
||||
* 预览
|
||||
*/
|
||||
function handleYulan(record) {
|
||||
var file = getFileAccessHttpUrl(record.studentPath);
|
||||
console.log('🤬', file);
|
||||
// window.open('https://view.xdocin.com/view?src=' + encodeURIComponent(encryptByBase64(file)));
|
||||
// window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||
window.open(file, '_blank');
|
||||
}
|
||||
/**
|
||||
* 下载
|
||||
*/
|
||||
function handleDown(record) {
|
||||
downloadFile(record.studentPath);
|
||||
}
|
||||
|
||||
/**
|
||||
* 批量下载事件
|
||||
*/
|
||||
async function batchHandleDown() {
|
||||
var downName = '学生原始材料' + dayjs().format('YYYYMMDDHHmmss') + '';
|
||||
console.log('👩🦰', selectedRowKeys.value);
|
||||
defHttp.post({ url: "/xxhbjwxtxsmd/xxhbjwxtxsmd/getBatchDown", params: { studentNo: selectedRowKeys.value,downName,cdlx:jxrwInfo.value.khfs,kcrwdm:jxrwInfo.value.kcrwdm } }).then((res) => {
|
||||
console.log(res);
|
||||
downloadFileLoacl(res.studentPath);
|
||||
});
|
||||
}
|
||||
/**
|
||||
* 成功回调
|
||||
*/
|
||||
function handleSuccess() {
|
||||
(selectedRowKeys.value = []) && reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 操作栏
|
||||
*/
|
||||
function getTableAction(record) {
|
||||
if (record.studentPath) {
|
||||
return [
|
||||
{
|
||||
label: '查看',
|
||||
onClick: handleYulan.bind(null, record),
|
||||
},
|
||||
{
|
||||
label: '下载',
|
||||
onClick: handleDown.bind(null, record),
|
||||
},
|
||||
];
|
||||
} else {
|
||||
return [
|
||||
{
|
||||
label: '暂无文件',
|
||||
disabled: true,
|
||||
},
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询
|
||||
*/
|
||||
function searchQuery() {
|
||||
reload();
|
||||
}
|
||||
|
||||
/**
|
||||
* 重置
|
||||
*/
|
||||
function searchReset() {
|
||||
formRef.value.resetFields();
|
||||
selectedRowKeys.value = [];
|
||||
//刷新数据
|
||||
reload();
|
||||
}
|
||||
|
||||
function handleFanhui() {
|
||||
emit('callback',jxrwInfo.value);
|
||||
}
|
||||
function init(record) {
|
||||
console.log('🧞', record);
|
||||
queryParam.kcrwdm = record.kcrwdm;
|
||||
queryParam.cdlx = record.khfs;
|
||||
queryParam.sort = record.sort;
|
||||
jxrwInfo.value = record;
|
||||
reload();
|
||||
}
|
||||
|
||||
defineExpose({
|
||||
init,
|
||||
});
|
||||
</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%;
|
||||
}
|
||||
}
|
||||
.selection-title{
|
||||
font-size:18px;
|
||||
font-weight: 700;
|
||||
padding-left:10px;
|
||||
line-height: 30px;
|
||||
}
|
||||
.seleciton-line{
|
||||
background: #1890ff;
|
||||
border-radius:10px ;
|
||||
color: #1890ff;
|
||||
}
|
||||
.query-criteria{
|
||||
padding:15px 10px 15px 10px;
|
||||
border:1px solid #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.query-criteria:hover{
|
||||
border:1px solid #e4e9f2;
|
||||
box-shadow: 2px 2px 10px 2px #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.table-style{
|
||||
padding: 10px;
|
||||
background: #fff;
|
||||
border:1px solid #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.table-style:hover{
|
||||
border:1px solid #e4e9f2;
|
||||
box-shadow: 2px 2px 10px 2px #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.header-title{
|
||||
font-size:16px;
|
||||
color: #666;
|
||||
}
|
||||
.mbxtitle{
|
||||
font-size: 22px;line-height: 22px
|
||||
}
|
||||
</style>
|
|
@ -4,6 +4,14 @@
|
|||
<a-form ref="formRef" class="query-criteria">
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12" style="margin-top: 10px;">
|
||||
<!-- <div >
|
||||
<a-breadcrumb>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui">课程考核材料</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui">已选课程</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui" v-if="jxrwInfo.value">{{jxrwInfo?.value.kcmc}}</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><span class="mbxtitle">学生原始材料</span></a-breadcrumb-item>
|
||||
</a-breadcrumb>
|
||||
</div> -->
|
||||
<a-button type="primary" @click="handleFanhui">返回</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
@ -250,4 +258,7 @@ border:1px solid #e4e9f2;
|
|||
box-shadow: 2px 2px 10px 2px #e4e9f2;
|
||||
border-radius:4px;
|
||||
}
|
||||
.mbxtitle{
|
||||
font-size: 22px;line-height: 22px
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -4,7 +4,16 @@
|
|||
<div class="jeecg-basic-table-form-container">
|
||||
<a-form ref="formRef" class="query-criteria">
|
||||
<a-row :gutter="24">
|
||||
<a-col :span="12" style="margin-top: 10px;">
|
||||
<a-col :span="24" style="margin-top: 10px;">
|
||||
<!-- <div >
|
||||
<a-breadcrumb>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui">课程考核材料</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui">已选课程</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui" v-if="jxrwInfo.value">{{jxrwInfo?.value?.kcmc}}</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><a class="mbxtitle" @click="handleFanhui">学生原始材料</a></a-breadcrumb-item>
|
||||
<a-breadcrumb-item><span class="mbxtitle">详情</span></a-breadcrumb-item>
|
||||
</a-breadcrumb>
|
||||
</div> -->
|
||||
<a-button type="primary" @click="handleFanhui">返回</a-button>
|
||||
</a-col>
|
||||
</a-row>
|
||||
|
@ -155,7 +164,7 @@ function handleYulan(record) {
|
|||
var file = getFileAccessHttpUrl(record.studentPath);
|
||||
console.log('🤬', file);
|
||||
// window.open('https://view.xdocin.com/view?src=' + encodeURIComponent(encryptByBase64(file)));
|
||||
// window.open('https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||
// window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||
window.open(file, '_blank');
|
||||
}
|
||||
/**
|
||||
|
@ -303,4 +312,7 @@ border-radius:4px;
|
|||
font-size:16px;
|
||||
color: #666;
|
||||
}
|
||||
.mbxtitle{
|
||||
font-size: 22px;line-height: 22px
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -156,11 +156,11 @@
|
|||
<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-kcmc" name="kcmc">
|
||||
<JSelectMultiple v-model:value="formData.kclb" placeholder="请选择毕业论文(设计)类别" dictCode="kcxz"></JSelectMultiple>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-col> -->
|
||||
</a-row>
|
||||
</a-col>
|
||||
<!-- 实习实践 -->
|
||||
|
|
|
@ -160,11 +160,11 @@
|
|||
<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-kcmc" name="kcmc">
|
||||
<JSelectMultiple v-model:value="item.kclb" placeholder="请选择毕业论文(设计)类别,如果不选,默认全部" dictCode="kcxz"></JSelectMultiple>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-col> -->
|
||||
</a-row>
|
||||
</a-col>
|
||||
<!-- 实习实践 -->
|
||||
|
|
|
@ -163,7 +163,7 @@ function handleSuccess() {
|
|||
function handleYulan(record){
|
||||
var file = getFileAccessHttpUrl(record.fwqPath) ;
|
||||
console.log('🤬', file);
|
||||
window.open('https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||
window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||
}
|
||||
function handleDown(record){
|
||||
downloadFile(record.filePath)
|
||||
|
|
|
@ -148,7 +148,7 @@ function handleSuccess() {
|
|||
function handleYulan(record){
|
||||
var file = getFileAccessHttpUrl(record.fwqPath) ;
|
||||
console.log('🤬', file);
|
||||
window.open('https://fileview.jeecg.com/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||
window.open('https://jxdd.nenu.edu.cn/onlinePreview/onlinePreview?url=' + encodeURIComponent(encryptByBase64(file)));
|
||||
}
|
||||
function handleDown(record){
|
||||
downloadFile(record.filePath)
|
||||
|
|
|
@ -43,6 +43,14 @@
|
|||
fileName: '实例',
|
||||
filePdfPath: '实例',
|
||||
},
|
||||
{
|
||||
id: '2',
|
||||
key: '2',
|
||||
title: '实例22.pdf',
|
||||
fileCode: 'shili',
|
||||
fileName: '实例2',
|
||||
filePdfPath: '实例2',
|
||||
},
|
||||
];
|
||||
|
||||
export default defineComponent({
|
||||
|
|
|
@ -19,6 +19,10 @@ export const formSchema: FormSchema[] = [
|
|||
required: true,
|
||||
message: '请输入新密码',
|
||||
},
|
||||
{
|
||||
pattern: /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,}$/,
|
||||
message: '密码由8位数字、大小写字母和特殊符号组成!',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXls" :disabled="isDisabledAuth('system:user:export')"> 导出</a-button>
|
||||
<j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls">导入</j-upload-button>
|
||||
<a-button type="primary" @click="openModal(true, {})" preIcon="ant-design:hdd-outlined"> 回收站</a-button>
|
||||
<a-button type="primary" @click="handleCshmm" preIcon="ant-design:hdd-outlined" style="display: none;"> 初始化密码</a-button>
|
||||
<a-dropdown v-if="selectedRowKeys.length > 0">
|
||||
<template #overlay>
|
||||
<a-menu>
|
||||
|
@ -69,6 +70,7 @@
|
|||
import { columns, searchFormSchema } from './user.data';
|
||||
import { listNoCareTenant, deleteUser, batchDeleteUser, getImportUrl, getExportUrl, frozenBatch } from './user.api';
|
||||
import {usePermission} from "/@/hooks/web/usePermission";
|
||||
import { defHttp } from '/@/utils/http/axios';
|
||||
|
||||
const { createMessage, createConfirm } = useMessage();
|
||||
const { isDisabledAuth } = usePermission();
|
||||
|
@ -126,6 +128,11 @@
|
|||
tenantSaas: false,
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
function handleCshmm(){
|
||||
defHttp.put({url:"/sys/user/chongzhiPassword"})
|
||||
}
|
||||
/**
|
||||
* 编辑事件
|
||||
*/
|
||||
|
|
|
@ -156,7 +156,7 @@ export const formSchema: FormSchema[] = [
|
|||
message: '请输入登录密码',
|
||||
},
|
||||
{
|
||||
pattern: /^.{8,}$/,
|
||||
pattern: /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,}$/,
|
||||
message: '密码由8位数字、大小写字母和特殊符号组成!',
|
||||
},
|
||||
],
|
||||
|
|
|
@ -154,6 +154,10 @@ export const formPasswordSchema: FormSchema[] = [
|
|||
required: true,
|
||||
message: '请输入新密码',
|
||||
},
|
||||
{
|
||||
pattern: /^(?=.*[a-zA-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,}$/,
|
||||
message: '密码由8位数字、大小写字母和特殊符号组成!',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue