diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/controller/PersonalAbilityEvaluationController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/controller/PersonalAbilityEvaluationController.java new file mode 100644 index 000000000..5b718d29d --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/controller/PersonalAbilityEvaluationController.java @@ -0,0 +1,150 @@ +package org.jeecg.modules.demo.abilityEvaluation.controller; + +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; +import com.baomidou.mybatisplus.core.metadata.IPage; +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.jeecg.common.api.vo.Result; +import org.jeecg.common.system.base.controller.JeecgController; +import org.jeecg.common.system.query.QueryGenerator; +import org.jeecg.modules.demo.abilityEvaluation.entity.PersonalAbilityEvaluation; +import org.jeecg.modules.demo.abilityEvaluation.service.IPersonalAbilityEvaluationService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.servlet.ModelAndView; + +import javax.servlet.http.HttpServletRequest; +import javax.servlet.http.HttpServletResponse; +import java.util.Arrays; + +/** + * @Description: 个人能力评价 + * @Author: jeecg-boot + * @Date: 2023-11-07 + * @Version: V1.0 + */ +@Api(tags = "个人能力评价") +@RestController +@RequestMapping("/abilityEvaluation/personalAbilityEvaluation") +@Slf4j +public class PersonalAbilityEvaluationController extends JeecgController { + @Autowired + private IPersonalAbilityEvaluationService personalAbilityEvaluationService; + + /** + * 分页列表查询 + * + * @param personalAbilityEvaluation + * @param pageNo + * @param pageSize + * @param req + * @return + */ + //@AutoLog(value = "个人能力评价-分页列表查询") + @ApiOperation(value = "个人能力评价-分页列表查询", notes = "个人能力评价-分页列表查询") + @GetMapping(value = "/list") + public Result> queryPageList(PersonalAbilityEvaluation personalAbilityEvaluation, + @RequestParam(name = "pageNo", defaultValue = "1") Integer pageNo, + @RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize, + HttpServletRequest req) { + QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(personalAbilityEvaluation, req.getParameterMap()); + Page page = new Page(pageNo, pageSize); + IPage pageList = personalAbilityEvaluationService.page(page, queryWrapper); + return Result.OK(pageList); + } + + /** + * 添加 + * + * @param personalAbilityEvaluation + * @return + */ + @ApiOperation(value = "个人能力评价-添加", notes = "个人能力评价-添加") + @PostMapping(value = "/add") + public Result add(@RequestBody PersonalAbilityEvaluation personalAbilityEvaluation) { + personalAbilityEvaluationService.save(personalAbilityEvaluation); + return Result.OK("添加成功!"); + } + + /** + * 编辑 + * + * @param personalAbilityEvaluation + * @return + */ + @ApiOperation(value = "个人能力评价-编辑", notes = "个人能力评价-编辑") + @RequestMapping(value = "/edit", method = {RequestMethod.PUT, RequestMethod.POST}) + public Result edit(@RequestBody PersonalAbilityEvaluation personalAbilityEvaluation) { + personalAbilityEvaluationService.updateById(personalAbilityEvaluation); + return Result.OK("编辑成功!"); + } + + /** + * 通过id删除 + * + * @param id + * @return + */ + @ApiOperation(value = "个人能力评价-通过id删除", notes = "个人能力评价-通过id删除") + @DeleteMapping(value = "/delete") + public Result delete(@RequestParam(name = "id", required = true) String id) { + personalAbilityEvaluationService.removeById(id); + return Result.OK("删除成功!"); + } + + /** + * 批量删除 + * + * @param ids + * @return + */ + @ApiOperation(value = "个人能力评价-批量删除", notes = "个人能力评价-批量删除") + @DeleteMapping(value = "/deleteBatch") + public Result deleteBatch(@RequestParam(name = "ids", required = true) String ids) { + this.personalAbilityEvaluationService.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 queryById(@RequestParam(name = "id", required = true) String id) { + PersonalAbilityEvaluation personalAbilityEvaluation = personalAbilityEvaluationService.getById(id); + if (personalAbilityEvaluation == null) { + return Result.error("未找到对应数据"); + } + return Result.OK(personalAbilityEvaluation); + } + + /** + * 导出excel + * + * @param request + * @param personalAbilityEvaluation + */ + @RequestMapping(value = "/exportXls") + public ModelAndView exportXls(HttpServletRequest request, PersonalAbilityEvaluation personalAbilityEvaluation) { + return super.exportXls(request, personalAbilityEvaluation, PersonalAbilityEvaluation.class, "个人能力评价"); + } + + /** + * 通过excel导入数据 + * + * @param request + * @param response + * @return + */ + @RequestMapping(value = "/importExcel", method = RequestMethod.POST) + public Result importExcel(HttpServletRequest request, HttpServletResponse response) { + return super.importExcel(request, response, PersonalAbilityEvaluation.class); + } + +} diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/entity/PersonalAbilityEvaluation.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/entity/PersonalAbilityEvaluation.java new file mode 100644 index 000000000..72d3fdbdd --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/entity/PersonalAbilityEvaluation.java @@ -0,0 +1,175 @@ +package org.jeecg.modules.demo.abilityEvaluation.entity; + +import com.baomidou.mybatisplus.annotation.IdType; +import com.baomidou.mybatisplus.annotation.TableId; +import com.baomidou.mybatisplus.annotation.TableName; +import com.fasterxml.jackson.annotation.JsonFormat; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import lombok.Data; +import lombok.EqualsAndHashCode; +import lombok.experimental.Accessors; +import org.jeecg.common.aspect.annotation.Dict; +import org.jeecgframework.poi.excel.annotation.Excel; +import org.springframework.format.annotation.DateTimeFormat; + +import java.io.Serializable; +import java.util.Date; + +/** + * @Description: 个人能力评价 + * @Author: jeecg-boot + * @Date: 2023-11-07 + * @Version: V1.0 + */ +@Data +@TableName("personal_ability_evaluation") +@Accessors(chain = true) +@EqualsAndHashCode(callSuper = false) +@ApiModel(value = "personal_ability_evaluation对象", description = "个人能力评价") +public class PersonalAbilityEvaluation implements Serializable { + private static final long serialVersionUID = 1L; + + /** + * 主键 + */ + @TableId(type = IdType.ASSIGN_ID) + @ApiModelProperty(value = "主键") + private String id; + /** + * 创建人 + */ + @ApiModelProperty(value = "创建人") + private String createBy; + /** + * 创建日期 + */ + @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "创建日期") + private Date createTime; + /** + * 更新人 + */ + @ApiModelProperty(value = "更新人") + private String updateBy; + /** + * 更新日期 + */ + @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss") + @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") + @ApiModelProperty(value = "更新日期") + private Date updateTime; + /** + * 所属部门 + */ + @Excel(name = "所属部门", width = 15, dictTable = "sys_depart", dicText = "depart_name", dicCode = "id") + @Dict(dictTable = "sys_depart", dicText = "depart_name", dicCode = "id") + @ApiModelProperty(value = "所属部门") + private String depetId; + /** + * 年度 + */ + @Excel(name = "年度", width = 15, dictTable = "annual", dicText = "annual_name", dicCode = "id") + @Dict(dictTable = "annual", dicText = "annual_name", dicCode = "id") + @ApiModelProperty(value = "年度") + private String annualId; + /** + * 年度比赛 + */ + @Excel(name = "年度比赛", width = 15) + @ApiModelProperty(value = "年度比赛") + @Dict(dictTable = "annual_comp",dicCode = "id",dicText = "name") + private String annualCompId; + /** + * 年度比赛项目 + */ + @Excel(name = "年度比赛项目", width = 15, dictTable = "annual_comp_point", dicText = "obj_name", dicCode = "id") + @Dict(dictTable = "annual_comp_point", dicText = "obj_name", dicCode = "id") + @ApiModelProperty(value = "年度比赛项目") + private String annualCompP; + /** + * 学号 + */ + @Excel(name = "学号", width = 15) + @ApiModelProperty(value = "学号") + private String workOn; + /** + * 姓名 + */ + @Excel(name = "姓名", width = 15) + @ApiModelProperty(value = "姓名") + private String name; + /** + * 能力1 + */ + @Excel(name = "能力1", width = 15) + @ApiModelProperty(value = "能力1") + private Double soc1; + /** + * 能力2 + */ + @Excel(name = "能力2", width = 15) + @ApiModelProperty(value = "能力2") + private Double soc2; + /** + * 能力3 + */ + @Excel(name = "能力3", width = 15) + @ApiModelProperty(value = "能力3") + private Double soc3; + /** + * 能力4 + */ + @Excel(name = "能力4", width = 15) + @ApiModelProperty(value = "能力4") + private Double soc4; + /** + * 能力5 + */ + @Excel(name = "能力5", width = 15) + @ApiModelProperty(value = "能力5") + private Double soc5; + /** + * 能力6 + */ + @Excel(name = "能力6", width = 15) + @ApiModelProperty(value = "能力6") + private Double soc6; + /** + * 能力7 + */ + @Excel(name = "能力7", width = 15) + @ApiModelProperty(value = "能力7") + private Double soc7; + /** + * 能力8 + */ + @Excel(name = "能力8", width = 15) + @ApiModelProperty(value = "能力8") + private Double soc8; + /** + * 能力9 + */ + @Excel(name = "能力9", width = 15) + @ApiModelProperty(value = "能力9") + private Double soc9; + /** + * 能力10 + */ + @Excel(name = "能力10", width = 15) + @ApiModelProperty(value = "能力10") + private Double soc10; + /** + * 能力11 + */ + @Excel(name = "能力11", width = 15) + @ApiModelProperty(value = "能力11") + private Double soc11; + /** + * 能力12 + */ + @Excel(name = "能力12", width = 15) + @ApiModelProperty(value = "能力12") + private Double soc12; +} diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/mapper/PersonalAbilityEvaluationMapper.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/mapper/PersonalAbilityEvaluationMapper.java new file mode 100644 index 000000000..5b3c99a6d --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/mapper/PersonalAbilityEvaluationMapper.java @@ -0,0 +1,17 @@ +package org.jeecg.modules.demo.abilityEvaluation.mapper; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.jeecg.modules.demo.abilityEvaluation.entity.PersonalAbilityEvaluation; +import com.baomidou.mybatisplus.core.mapper.BaseMapper; + +/** + * @Description: 个人能力评价 + * @Author: jeecg-boot + * @Date: 2023-11-07 + * @Version: V1.0 + */ +public interface PersonalAbilityEvaluationMapper extends BaseMapper { + +} diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/mapper/xml/PersonalAbilityEvaluationMapper.xml b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/mapper/xml/PersonalAbilityEvaluationMapper.xml new file mode 100644 index 000000000..3e7eb3c95 --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/mapper/xml/PersonalAbilityEvaluationMapper.xml @@ -0,0 +1,5 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/service/IPersonalAbilityEvaluationService.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/service/IPersonalAbilityEvaluationService.java new file mode 100644 index 000000000..e934a7851 --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/service/IPersonalAbilityEvaluationService.java @@ -0,0 +1,14 @@ +package org.jeecg.modules.demo.abilityEvaluation.service; + +import org.jeecg.modules.demo.abilityEvaluation.entity.PersonalAbilityEvaluation; +import com.baomidou.mybatisplus.extension.service.IService; + +/** + * @Description: 个人能力评价 + * @Author: jeecg-boot + * @Date: 2023-11-07 + * @Version: V1.0 + */ +public interface IPersonalAbilityEvaluationService extends IService { + +} diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/service/impl/PersonalAbilityEvaluationServiceImpl.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/service/impl/PersonalAbilityEvaluationServiceImpl.java new file mode 100644 index 000000000..0d09f182e --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/service/impl/PersonalAbilityEvaluationServiceImpl.java @@ -0,0 +1,19 @@ +package org.jeecg.modules.demo.abilityEvaluation.service.impl; + +import org.jeecg.modules.demo.abilityEvaluation.entity.PersonalAbilityEvaluation; +import org.jeecg.modules.demo.abilityEvaluation.mapper.PersonalAbilityEvaluationMapper; +import org.jeecg.modules.demo.abilityEvaluation.service.IPersonalAbilityEvaluationService; +import org.springframework.stereotype.Service; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; + +/** + * @Description: 个人能力评价 + * @Author: jeecg-boot + * @Date: 2023-11-07 + * @Version: V1.0 + */ +@Service +public class PersonalAbilityEvaluationServiceImpl extends ServiceImpl implements IPersonalAbilityEvaluationService { + +} diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/PersonalAbilityEvaluation.api.ts b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/PersonalAbilityEvaluation.api.ts new file mode 100644 index 000000000..04b796e33 --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/PersonalAbilityEvaluation.api.ts @@ -0,0 +1,64 @@ +import {defHttp} from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/abilityEvaluation/personalAbilityEvaluation/list', + save='/abilityEvaluation/personalAbilityEvaluation/add', + edit='/abilityEvaluation/personalAbilityEvaluation/edit', + deleteOne = '/abilityEvaluation/personalAbilityEvaluation/delete', + deleteBatch = '/abilityEvaluation/personalAbilityEvaluation/deleteBatch', + importExcel = '/abilityEvaluation/personalAbilityEvaluation/importExcel', + exportXls = '/abilityEvaluation/personalAbilityEvaluation/exportXls', +} +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; +/** + * 列表接口 + * @param params + */ +export const list = (params) => + defHttp.get({url: Api.list, params}); + +/** + * 删除单个 + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} +/** + * 批量删除 + * @param params + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} +/** + * 保存或者更新 + * @param params + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({url: url, params}); +} diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/PersonalAbilityEvaluation.data.ts b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/PersonalAbilityEvaluation.data.ts new file mode 100644 index 000000000..0ae55b002 --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/PersonalAbilityEvaluation.data.ts @@ -0,0 +1,189 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '年度', + align:"center", + dataIndex: 'annualId_dictText' + }, + { + title: '年度比赛', + align:"center", + dataIndex: 'annualCompId_dictText' + }, + { + title: '年度比赛项目', + align:"center", + dataIndex: 'annualCompP_dictText' + }, + { + title: '学号', + align:"center", + dataIndex: 'workOn' + }, + { + title: '姓名', + align:"center", + dataIndex: 'name' + }, + { + title: '能力1', + align:"center", + dataIndex: 'soc1' + }, + { + title: '能力2', + align:"center", + dataIndex: 'soc2' + }, + { + title: '能力3', + align:"center", + dataIndex: 'soc3' + }, + { + title: '能力4', + align:"center", + dataIndex: 'soc4' + }, + { + title: '能力5', + align:"center", + dataIndex: 'soc5' + }, + { + title: '能力6', + align:"center", + dataIndex: 'soc6' + }, + { + title: '能力7', + align:"center", + dataIndex: 'soc7' + }, + { + title: '能力8', + align:"center", + dataIndex: 'soc8' + }, + { + title: '能力9', + align:"center", + dataIndex: 'soc9' + }, + { + title: '能力10', + align:"center", + dataIndex: 'soc10' + }, + { + title: '能力11', + align:"center", + dataIndex: 'soc11' + }, + { + title: '能力12', + align:"center", + dataIndex: 'soc12' + }, +]; +//查询数据 +export const searchFormSchema: FormSchema[] = [ + { + label: "所属部门", + field: 'depetId', + component: 'JDictSelectTag', + componentProps:{ + dictCode:"sys_depart,depart_name,id" + }, + colProps: {span: 6}, + }, + { + label: "年度", + field: 'annualId', + component: 'JDictSelectTag', + componentProps:{ + dictCode:"annual,annual_name,id" + }, + colProps: {span: 6}, + }, + { + label: "年度比赛项目", + field: 'annualCompP', + component: 'JDictSelectTag', + componentProps:{ + dictCode:"annual_comp_point,obj_name,id" + }, + colProps: {span: 6}, + }, + { + label: "学号", + field: 'workOn', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "姓名", + field: 'name', + component: 'Input', + colProps: {span: 6}, + }, +]; +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '年度', + field: 'annualId', + component: 'JDictSelectTag', + componentProps:{ + dictCode:"annual,annual_name,id" + }, + }, + { + label: '年度比赛', + field: 'annualCompId', + component: 'JDictSelectTag', + componentProps:{ + dictCode:"" + }, + }, + { + label: '年度比赛项目', + field: 'annualCompP', + component: 'JDictSelectTag', + componentProps:{ + dictCode:"annual_comp_point,obj_name,id" + }, + }, + { + label: '学号', + field: 'workOn', + component: 'Input', + }, + { + label: '姓名', + field: 'name', + component: 'Input', + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false + }, +]; + + + +/** +* 流程表单调用这个方法获取formSchema +* @param param +*/ +export function getBpmFormSchema(_formData): FormSchema[]{ + // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema + return formSchema; +} \ No newline at end of file diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/PersonalAbilityEvaluationList.vue b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/PersonalAbilityEvaluationList.vue new file mode 100644 index 000000000..59a18e4a4 --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/PersonalAbilityEvaluationList.vue @@ -0,0 +1,173 @@ + + + + + \ No newline at end of file diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/PersonalAbilityEvaluation_menu_insert.sql b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/PersonalAbilityEvaluation_menu_insert.sql new file mode 100644 index 000000000..a0264633c --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/PersonalAbilityEvaluation_menu_insert.sql @@ -0,0 +1,26 @@ +-- 注意:该页面对应的前台目录为views/abilityEvaluation文件夹下 +-- 如果你想更改到其他目录,请修改sql中component字段对应的值 + + +INSERT INTO sys_permission(id, parent_id, name, url, component, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_route, is_leaf, keep_alive, hidden, hide_tab, description, status, del_flag, rule_flag, create_by, create_time, update_by, update_time, internal_or_external) +VALUES ('2023110705066770200', NULL, '个人能力评价', '/abilityEvaluation/personalAbilityEvaluationList', 'abilityEvaluation/PersonalAbilityEvaluationList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-11-07 17:06:20', NULL, NULL, 0); + +-- 权限控制sql +-- 新增 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023110705066770201', '2023110705066770200', '添加个人能力评价', NULL, NULL, 0, NULL, NULL, 2, 'abilityEvaluation:personal_ability_evaluation:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-11-07 17:06:20', NULL, NULL, 0, 0, '1', 0); +-- 编辑 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023110705066770202', '2023110705066770200', '编辑个人能力评价', NULL, NULL, 0, NULL, NULL, 2, 'abilityEvaluation:personal_ability_evaluation:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-11-07 17:06:20', NULL, NULL, 0, 0, '1', 0); +-- 删除 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023110705066770203', '2023110705066770200', '删除个人能力评价', NULL, NULL, 0, NULL, NULL, 2, 'abilityEvaluation:personal_ability_evaluation:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-11-07 17:06:20', NULL, NULL, 0, 0, '1', 0); +-- 批量删除 +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023110705066770204', '2023110705066770200', '批量删除个人能力评价', NULL, NULL, 0, NULL, NULL, 2, 'abilityEvaluation:personal_ability_evaluation:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-11-07 17:06:20', NULL, NULL, 0, 0, '1', 0); +-- 导出excel +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023110705066770205', '2023110705066770200', '导出excel_个人能力评价', NULL, NULL, 0, NULL, NULL, 2, 'abilityEvaluation:personal_ability_evaluation:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-11-07 17:06:20', NULL, NULL, 0, 0, '1', 0); +-- 导入excel +INSERT INTO sys_permission(id, parent_id, name, url, component, is_route, component_name, redirect, menu_type, perms, perms_type, sort_no, always_show, icon, is_leaf, keep_alive, hidden, hide_tab, description, create_by, create_time, update_by, update_time, del_flag, rule_flag, status, internal_or_external) +VALUES ('2023110705066770206', '2023110705066770200', '导入excel_个人能力评价', NULL, NULL, 0, NULL, NULL, 2, 'abilityEvaluation:personal_ability_evaluation:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-11-07 17:06:20', NULL, NULL, 0, 0, '1', 0); \ No newline at end of file diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/components/PersonalAbilityEvaluationForm.vue b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/components/PersonalAbilityEvaluationForm.vue new file mode 100644 index 000000000..fd577f137 --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/components/PersonalAbilityEvaluationForm.vue @@ -0,0 +1,70 @@ + + + \ No newline at end of file diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/components/PersonalAbilityEvaluationModal.vue b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/components/PersonalAbilityEvaluationModal.vue new file mode 100644 index 000000000..c94da9aaf --- /dev/null +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/abilityEvaluation/vue3/components/PersonalAbilityEvaluationModal.vue @@ -0,0 +1,66 @@ + + + + + \ No newline at end of file diff --git a/jeecgboot-vue3-master/src/views/abilityEvaluation/persoanl/PersonalAbilityEvaluation.api.ts b/jeecgboot-vue3-master/src/views/abilityEvaluation/persoanl/PersonalAbilityEvaluation.api.ts new file mode 100644 index 000000000..04b796e33 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/abilityEvaluation/persoanl/PersonalAbilityEvaluation.api.ts @@ -0,0 +1,64 @@ +import {defHttp} from '/@/utils/http/axios'; +import { useMessage } from "/@/hooks/web/useMessage"; + +const { createConfirm } = useMessage(); + +enum Api { + list = '/abilityEvaluation/personalAbilityEvaluation/list', + save='/abilityEvaluation/personalAbilityEvaluation/add', + edit='/abilityEvaluation/personalAbilityEvaluation/edit', + deleteOne = '/abilityEvaluation/personalAbilityEvaluation/delete', + deleteBatch = '/abilityEvaluation/personalAbilityEvaluation/deleteBatch', + importExcel = '/abilityEvaluation/personalAbilityEvaluation/importExcel', + exportXls = '/abilityEvaluation/personalAbilityEvaluation/exportXls', +} +/** + * 导出api + * @param params + */ +export const getExportUrl = Api.exportXls; +/** + * 导入api + */ +export const getImportUrl = Api.importExcel; +/** + * 列表接口 + * @param params + */ +export const list = (params) => + defHttp.get({url: Api.list, params}); + +/** + * 删除单个 + */ +export const deleteOne = (params,handleSuccess) => { + return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); +} +/** + * 批量删除 + * @param params + */ +export const batchDelete = (params, handleSuccess) => { + createConfirm({ + iconType: 'warning', + title: '确认删除', + content: '是否删除选中数据', + okText: '确认', + cancelText: '取消', + onOk: () => { + return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => { + handleSuccess(); + }); + } + }); +} +/** + * 保存或者更新 + * @param params + */ +export const saveOrUpdate = (params, isUpdate) => { + let url = isUpdate ? Api.edit : Api.save; + return defHttp.post({url: url, params}); +} diff --git a/jeecgboot-vue3-master/src/views/abilityEvaluation/persoanl/PersonalAbilityEvaluation.data.ts b/jeecgboot-vue3-master/src/views/abilityEvaluation/persoanl/PersonalAbilityEvaluation.data.ts new file mode 100644 index 000000000..943045d04 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/abilityEvaluation/persoanl/PersonalAbilityEvaluation.data.ts @@ -0,0 +1,262 @@ +import {BasicColumn} from '/@/components/Table'; +import {FormSchema} from '/@/components/Table'; +import { rules} from '/@/utils/helper/validator'; +import { render } from '/@/utils/common/renderUtils'; +//列表数据 +export const columns: BasicColumn[] = [ + { + title: '所属部门', + align:"center", + dataIndex: 'depetId_dictText' + }, + { + title: '年度', + align:"center", + dataIndex: 'annualId_dictText' + }, + { + title: '年度比赛', + align:"center", + dataIndex: 'annualCompId_dictText' + }, + { + title: '年度比赛项目', + align:"center", + dataIndex: 'annualCompP_dictText' + }, + { + title: '学号', + align:"center", + dataIndex: 'workOn' + }, + { + title: '姓名', + align:"center", + dataIndex: 'name' + }, + { + title: '能力1', + align:"center", + dataIndex: 'soc1' + }, + { + title: '能力2', + align:"center", + dataIndex: 'soc2' + }, + { + title: '能力3', + align:"center", + dataIndex: 'soc3' + }, + { + title: '能力4', + align:"center", + dataIndex: 'soc4' + }, + { + title: '能力5', + align:"center", + dataIndex: 'soc5' + }, + { + title: '能力6', + align:"center", + dataIndex: 'soc6' + }, + { + title: '能力7', + align:"center", + dataIndex: 'soc7' + }, + { + title: '能力8', + align:"center", + dataIndex: 'soc8' + }, + { + title: '能力9', + align:"center", + dataIndex: 'soc9' + }, + { + title: '能力10', + align:"center", + dataIndex: 'soc10' + }, + { + title: '能力11', + align:"center", + dataIndex: 'soc11' + }, + { + title: '能力12', + align:"center", + dataIndex: 'soc12' + }, +]; +//查询数据 +export const searchFormSchema: FormSchema[] = [ + { + label: "所属部门", + field: 'depetId', + component: 'JDictSelectTag', + componentProps:{ + dictCode:"sys_depart,depart_name,id" + }, + colProps: {span: 6}, + }, + { + label: "年度", + field: 'annualId', + component: 'JDictSelectTag', + componentProps:{ + dictCode:"annual,annual_name,id" + }, + colProps: {span: 6}, + }, + { + label: "年度比赛项目", + field: 'annualCompP', + component: 'JDictSelectTag', + componentProps:{ + dictCode:"annual_comp_point,obj_name,id" + }, + colProps: {span: 6}, + }, + { + label: "学号", + field: 'workOn', + component: 'Input', + colProps: {span: 6}, + }, + { + label: "姓名", + field: 'name', + component: 'Input', + colProps: {span: 6}, + }, +]; +//表单数据 +export const formSchema: FormSchema[] = [ + { + label: '所属部门', + field: 'depetId', + component: 'JDictSelectTag', + componentProps:{ + dictCode:"sys_depart,depart_name,id" + }, + }, + { + label: '年度', + field: 'annualId', + component: 'JDictSelectTag', + componentProps:{ + dictCode:"annual,annual_name,id" + }, + }, + { + label: '年度比赛', + field: 'annualCompId', + component: 'JDictSelectTag', + componentProps:{ + dictCode:"" + }, + }, + { + label: '年度比赛项目', + field: 'annualCompP', + component: 'JDictSelectTag', + componentProps:{ + dictCode:"annual_comp_point,obj_name,id" + }, + }, + { + label: '学号', + field: 'workOn', + component: 'Input', + }, + { + label: '姓名', + field: 'name', + component: 'Input', + }, + { + label: '能力1', + field: 'soc1', + component: 'InputNumber', + }, + { + label: '能力2', + field: 'soc2', + component: 'InputNumber', + }, + { + label: '能力3', + field: 'soc3', + component: 'InputNumber', + }, + { + label: '能力4', + field: 'soc4', + component: 'InputNumber', + }, + { + label: '能力5', + field: 'soc5', + component: 'InputNumber', + }, + { + label: '能力6', + field: 'soc6', + component: 'InputNumber', + }, + { + label: '能力7', + field: 'soc7', + component: 'InputNumber', + }, + { + label: '能力8', + field: 'soc8', + component: 'InputNumber', + }, + { + label: '能力9', + field: 'soc9', + component: 'InputNumber', + }, + { + label: '能力10', + field: 'soc10', + component: 'InputNumber', + }, + { + label: '能力11', + field: 'soc11', + component: 'InputNumber', + }, + { + label: '能力12', + field: 'soc12', + component: 'InputNumber', + }, + // TODO 主键隐藏字段,目前写死为ID + { + label: '', + field: 'id', + component: 'Input', + show: false + }, +]; + + + +/** + * 流程表单调用这个方法获取formSchema + * @param param + */ +export function getBpmFormSchema(_formData): FormSchema[]{ + // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema + return formSchema; +} diff --git a/jeecgboot-vue3-master/src/views/abilityEvaluation/persoanl/PersonalAbilityEvaluationList.vue b/jeecgboot-vue3-master/src/views/abilityEvaluation/persoanl/PersonalAbilityEvaluationList.vue new file mode 100644 index 000000000..fcbcf86e9 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/abilityEvaluation/persoanl/PersonalAbilityEvaluationList.vue @@ -0,0 +1,177 @@ + + + + + diff --git a/jeecgboot-vue3-master/src/views/abilityEvaluation/persoanl/components/PersonalAbilityEvaluationForm.vue b/jeecgboot-vue3-master/src/views/abilityEvaluation/persoanl/components/PersonalAbilityEvaluationForm.vue new file mode 100644 index 000000000..fd577f137 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/abilityEvaluation/persoanl/components/PersonalAbilityEvaluationForm.vue @@ -0,0 +1,70 @@ + + + \ No newline at end of file diff --git a/jeecgboot-vue3-master/src/views/abilityEvaluation/persoanl/components/PersonalAbilityEvaluationModal.vue b/jeecgboot-vue3-master/src/views/abilityEvaluation/persoanl/components/PersonalAbilityEvaluationModal.vue new file mode 100644 index 000000000..c94da9aaf --- /dev/null +++ b/jeecgboot-vue3-master/src/views/abilityEvaluation/persoanl/components/PersonalAbilityEvaluationModal.vue @@ -0,0 +1,66 @@ + + + + + \ No newline at end of file