去掉部门

dev
王家东 1 year ago
parent 3662f38f8a
commit 35cbe7a88d
  1. 27
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/controller/PersonalAbilityEvaluationCollectController.java
  2. 26
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/controller/PersonalAbilityEvaluationController.java
  3. 4
      jeecgboot-vue3-master/src/views/stu/annualScore/persoanlCompScore/PersonalCompScoreList.vue
  4. 4
      jeecgboot-vue3-master/src/views/stu/annualScore/personalCompTotalScore/PersonalCompTotalScoreList.vue

@ -6,9 +6,11 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.SecurityUtils;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.modules.demo.abilityEvaluation.entity.PersonalAbilityEvaluationCollect;
import org.jeecg.modules.demo.abilityEvaluation.service.IPersonalAbilityEvaluationCollectService;
import org.springframework.beans.factory.annotation.Autowired;
@ -55,6 +57,31 @@ public class PersonalAbilityEvaluationCollectController extends JeecgController<
return Result.OK(pageList);
}
/**
* 分页列表查询(学生端)
*
* @param personalAbilityEvaluationCollect
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "个人能力评价 汇总-分页列表查询")
@ApiOperation(value = "个人能力评价 汇总-分页列表查询", notes = "个人能力评价 汇总-分页列表查询")
@GetMapping(value = "/liststu")
public Result<IPage<PersonalAbilityEvaluationCollect>> liststu(PersonalAbilityEvaluationCollect personalAbilityEvaluationCollect,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<PersonalAbilityEvaluationCollect> queryWrapper = QueryGenerator.initQueryWrapper(personalAbilityEvaluationCollect, req.getParameterMap());
LoginUser user= (LoginUser) SecurityUtils.getSubject().getPrincipal();
queryWrapper.eq("work_on",user.getUsername());
Page<PersonalAbilityEvaluationCollect> page = new Page<PersonalAbilityEvaluationCollect>(pageNo, pageSize);
IPage<PersonalAbilityEvaluationCollect> pageList = personalAbilityEvaluationCollectService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*

@ -6,9 +6,11 @@ import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.apache.shiro.SecurityUtils;
import org.jeecg.common.api.vo.Result;
import org.jeecg.common.system.base.controller.JeecgController;
import org.jeecg.common.system.query.QueryGenerator;
import org.jeecg.common.system.vo.LoginUser;
import org.jeecg.modules.demo.abilityEvaluation.entity.PersonalAbilityEvaluation;
import org.jeecg.modules.demo.abilityEvaluation.service.IPersonalAbilityEvaluationService;
import org.springframework.beans.factory.annotation.Autowired;
@ -55,6 +57,30 @@ public class PersonalAbilityEvaluationController extends JeecgController<Persona
return Result.OK(pageList);
}
/**
* 分页列表查询学生端
*
* @param personalAbilityEvaluation
* @param pageNo
* @param pageSize
* @param req
* @return
*/
//@AutoLog(value = "个人能力评价-分页列表查询")
@ApiOperation(value = "个人能力评价-分页列表查询", notes = "个人能力评价-分页列表查询")
@GetMapping(value = "/liststu")
public Result<IPage<PersonalAbilityEvaluation>> liststu(PersonalAbilityEvaluation personalAbilityEvaluation,
@RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
HttpServletRequest req) {
QueryWrapper<PersonalAbilityEvaluation> queryWrapper = QueryGenerator.initQueryWrapper(personalAbilityEvaluation, req.getParameterMap());
LoginUser user= (LoginUser) SecurityUtils.getSubject().getPrincipal();
queryWrapper.eq("work_on",user.getUsername());
Page<PersonalAbilityEvaluation> page = new Page<PersonalAbilityEvaluation>(pageNo, pageSize);
IPage<PersonalAbilityEvaluation> pageList = personalAbilityEvaluationService.page(page, queryWrapper);
return Result.OK(pageList);
}
/**
* 添加
*

@ -159,10 +159,10 @@ import {ref, computed, unref, reactive} from 'vue';
// label: '',
// onClick: handleEdit.bind(null, record),
// },
{
/* {
label: '详情',
onClick: handleDetail.bind(null, record),
}
}*/
]
}
/**

@ -163,10 +163,10 @@ function getTableAction(record) {
// label: '',
// onClick: handleEdit.bind(null, record),
// }
{
/* {
label: '详情',
onClick: handleDetail.bind(null, record),
}
}*/
]
}

Loading…
Cancel
Save