26-功能-奖项管理

main
喻忠伟 4 months ago
parent c661796dcb
commit f7b1467d3d
  1. 1
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompaward/controller/AnnualCompAwardController.java
  2. 20
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/compskill/controller/CompskillController.java
  3. 8
      jeecgboot-vue3-master/src/router/routes/index.ts
  4. 6
      jeecgboot-vue3-master/src/views/abilityEvaluation/depart/DepartAbilityEvaluation.data.ts
  5. 2
      jeecgboot-vue3-master/src/views/annualCompPoint/committee/AnnualCompPointList.vue
  6. 26
      jeecgboot-vue3-master/src/views/annualCompPoint/committee/AnnualCompPoint_menu_insert.sql
  7. 2
      jeecgboot-vue3-master/src/views/annualCompPoint/committee/components/AnnualCompPointForm.vue
  8. 26
      jeecgboot-vue3-master/src/views/annualCompPoint/department/AnnualCompPoint_menu_insert.sql
  9. 2
      jeecgboot-vue3-master/src/views/annualcompaward/AnnualCompAwardList.vue
  10. 26
      jeecgboot-vue3-master/src/views/annualcompaward/AnnualCompAward_menu_insert.sql
  11. 18
      jeecgboot-vue3-master/src/views/compskill/Compskill.data.ts
  12. 13
      jeecgboot-vue3-master/src/views/compskill/CompskillList.vue
  13. 26
      jeecgboot-vue3-master/src/views/compskill/Compskill_menu_insert.sql
  14. 7
      jeecgboot-vue3-master/src/views/compskill/components/CompskillModal.vue
  15. 3
      jeecgboot-vue3-master/src/views/system/usercompexpert/UserDrawer.vue
  16. 17
      jeecgboot-vue3-master/src/views/system/usercompexpert/user.data.ts

@ -94,6 +94,7 @@ public class AnnualCompAwardController extends JeecgController<AnnualCompAward,
.anyMatch(efficientRoleMap::containsKey); .anyMatch(efficientRoleMap::containsKey);
LambdaQueryWrapper<AnnualCompAward> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<AnnualCompAward> queryWrapper = new LambdaQueryWrapper<>();
queryWrapper.orderByDesc(AnnualCompAward::getCreateTime);
Page<AnnualCompAward> page = new Page<AnnualCompAward>(pageNo, pageSize); Page<AnnualCompAward> page = new Page<AnnualCompAward>(pageNo, pageSize);
// 查询所属当前登录用户数据 // 查询所属当前登录用户数据
if (containsEfficientRole) if (containsEfficientRole)

@ -90,7 +90,7 @@ public class CompskillController extends JeecgController<Compskill, ICompskillSe
LoginUser loginUser = (LoginUser) subject.getPrincipal(); LoginUser loginUser = (LoginUser) subject.getPrincipal();
List<SysRole> roleList = iSysUserRoleService.getUserRoleByUserId(loginUser.getId()); List<SysRole> roleList = iSysUserRoleService.getUserRoleByUserId(loginUser.getId());
Map<String, String> roleMap = Optional.ofNullable(roleList).orElse(new LinkedList<>()).stream().collect(Collectors.toMap(SysRole::getRoleCode, SysRole::getRoleCode)); Map<String, String> roleMap = Optional.ofNullable(roleList).orElse(new LinkedList<>()).stream().collect(Collectors.toMap(SysRole::getRoleCode, SysRole::getRoleCode));
//角色编码 管理员&组委会&教务处 可以看到所有,其它用户可见到所属自己数据 //角色编码 管理员&组委会&学校管理员 可以看到所有,其它用户可见到所属自己数据
Map<String, String> efficientRoleMap = new LinkedHashMap<>(); Map<String, String> efficientRoleMap = new LinkedHashMap<>();
efficientRoleMap.put("admin", "admin"); efficientRoleMap.put("admin", "admin");
efficientRoleMap.put("committee", "committee"); efficientRoleMap.put("committee", "committee");
@ -98,9 +98,9 @@ public class CompskillController extends JeecgController<Compskill, ICompskillSe
LambdaQueryWrapper<Compskill> queryWrapper = new LambdaQueryWrapper<>(); LambdaQueryWrapper<Compskill> queryWrapper = new LambdaQueryWrapper<>();
// 查询所属当前登录用户数据 // 查询所属当前登录用户数据
if (!efficientRoleMap.containsValue(roleMap.get("admin")) if (efficientRoleMap.containsValue(roleMap.get("admin"))
&& !efficientRoleMap.containsValue(roleMap.get("committee")) || efficientRoleMap.containsValue(roleMap.get("committee"))
&& !efficientRoleMap.containsValue(roleMap.get("superAdmin"))) { || efficientRoleMap.containsValue(roleMap.get("superAdmin"))) {
List<Comp> compList = iCompService.list(new LambdaQueryWrapper<Comp>().eq(Comp::getCompAdmin, loginUser.getUsername())); List<Comp> compList = iCompService.list(new LambdaQueryWrapper<Comp>().eq(Comp::getCompAdmin, loginUser.getUsername()));
if (!ObjectUtils.isEmpty(compList)) { if (!ObjectUtils.isEmpty(compList)) {
Set<String> compIds = compList.stream().map(c -> c.getId()).collect(Collectors.toSet()); Set<String> compIds = compList.stream().map(c -> c.getId()).collect(Collectors.toSet());
@ -133,7 +133,13 @@ public class CompskillController extends JeecgController<Compskill, ICompskillSe
if (annualComp != null) { if (annualComp != null) {
annual = annualService.query().eq("id", annualComp.getAnnualid()).one(); annual = annualService.query().eq("id", annualComp.getAnnualid()).one();
} }
Basicsskill basicsskill = basicsskillService.query().eq("id", compskill1.getCapacityid()).one(); List<Basicsskill> basicsskillList= basicsskillService.query().eq("id", compskill1.getCapacityid()).list();
Basicsskill basicsskill=null;
if(basicsskillList.size()>0)
{
basicsskill=basicsskillList.get(0);
}
if (annualCompPoint != null && basicsskill != null && annualComp != null && annual != null) { if (annualCompPoint != null && basicsskill != null && annualComp != null && annual != null) {
compskill1.setAnnucompid(annualCompPoint.getObjName()); compskill1.setAnnucompid(annualCompPoint.getObjName());
compskill1.setCapacityid(basicsskill.getName()); compskill1.setCapacityid(basicsskill.getName());
@ -157,14 +163,14 @@ public class CompskillController extends JeecgController<Compskill, ICompskillSe
//@RequiresPermissions("compskill:compskill:add") //@RequiresPermissions("compskill:compskill:add")
@PostMapping(value = "/add") @PostMapping(value = "/add")
public Result<String> add(@RequestBody Compskill compskill) { public Result<String> add(@RequestBody Compskill compskill) {
if (compskill != null) { /* if (compskill != null) {
AnnualCompPoint annualCompPoint = annualCompPointService.query().eq("obj_name", compskill.getAnnucompid()).one(); AnnualCompPoint annualCompPoint = annualCompPointService.query().eq("obj_name", compskill.getAnnucompid()).one();
Basicsskill basicsskill = basicsskillService.query().eq("name", compskill.getCapacityid()).one(); Basicsskill basicsskill = basicsskillService.query().eq("name", compskill.getCapacityid()).one();
if (annualCompPoint != null && basicsskill != null) { if (annualCompPoint != null && basicsskill != null) {
compskill.setAnnucompid(annualCompPoint.getId()); compskill.setAnnucompid(annualCompPoint.getId());
compskill.setCapacityid(basicsskill.getId()); compskill.setCapacityid(basicsskill.getId());
} }
} }*/
compskillService.save(compskill); compskillService.save(compskill);
return Result.OK("添加成功!"); return Result.OK("添加成功!");
} }

@ -95,7 +95,7 @@ export const compcom = {
title:'年度比赛项目', title:'年度比赛项目',
}, },
children:[ children:[
{ /* {
path:'annualcompaward', path:'annualcompaward',
name:'annualcompaward', name:'annualcompaward',
component: ()=> import('/@/views/annualcompaward/AnnualCompAwardList.vue'), component: ()=> import('/@/views/annualcompaward/AnnualCompAwardList.vue'),
@ -103,8 +103,8 @@ export const compcom = {
title:'比赛奖项管理' title:'比赛奖项管理'
} }
}, },*/
{ /* {
path:'compskill', path:'compskill',
name:'compskill', name:'compskill',
component: ()=> import('/@/views/compskill/CompskillList.vue'), component: ()=> import('/@/views/compskill/CompskillList.vue'),
@ -112,7 +112,7 @@ export const compcom = {
title:'项目能力管理' title:'项目能力管理'
} }
}, },*/
{ {
path:'topic', path:'topic',
name:'topic', name:'topic',

@ -86,7 +86,8 @@ export const formSchema: FormSchema[] = [
component: 'Input', component: 'Input',
componentProps:{ componentProps:{
disabled: true, disabled: true,
} },
show: false
}, },
{ {
label: '能力值', label: '能力值',
@ -94,7 +95,8 @@ export const formSchema: FormSchema[] = [
component: 'InputNumber', component: 'InputNumber',
componentProps:{ componentProps:{
disabled: true, disabled: true,
} },
show: false
}, },
// TODO 主键隐藏字段,目前写死为ID // TODO 主键隐藏字段,目前写死为ID

@ -19,7 +19,7 @@
<j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls"> <j-upload-button type="primary" preIcon="ant-design:import-outlined" @click="onImportXls">
导入报名 导入报名
</j-upload-button> </j-upload-button>
<a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXlsMb"> 报名的模版 <a-button type="primary" preIcon="ant-design:export-outlined" @click="onExportXlsMb"> 报名的模版
</a-button> </a-button>
<a-dropdown v-if="selectedRowKeys.length > 0"> <a-dropdown v-if="selectedRowKeys.length > 0">
<template #overlay> <template #overlay>

@ -1,26 +0,0 @@
-- 注意:该页面对应的前台目录为views/AnnualCompPoint文件夹下
-- 如果你想更改到其他目录,请修改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 ('2023081806458670000', NULL, '年度比赛项目管理', '/AnnualCompPoint/annualCompPointList', 'AnnualCompPoint/AnnualCompPointList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-08-18 18:45:00', 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 ('2023081806458670001', '2023081806458670000', '添加年度比赛项目管理', NULL, NULL, 0, NULL, NULL, 2, 'AnnualCompPoint:annual_comp_point:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-18 18:45:00', 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 ('2023081806458670002', '2023081806458670000', '编辑年度比赛项目管理', NULL, NULL, 0, NULL, NULL, 2, 'AnnualCompPoint:annual_comp_point:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-18 18:45:00', 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 ('2023081806458670003', '2023081806458670000', '删除年度比赛项目管理', NULL, NULL, 0, NULL, NULL, 2, 'AnnualCompPoint:annual_comp_point:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-18 18:45:00', 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 ('2023081806458670004', '2023081806458670000', '批量删除年度比赛项目管理', NULL, NULL, 0, NULL, NULL, 2, 'AnnualCompPoint:annual_comp_point:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-18 18:45:00', 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 ('2023081806458670005', '2023081806458670000', '导出excel_年度比赛项目管理', NULL, NULL, 0, NULL, NULL, 2, 'AnnualCompPoint:annual_comp_point:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-18 18:45:00', 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 ('2023081806458670006', '2023081806458670000', '导入excel_年度比赛项目管理', NULL, NULL, 0, NULL, NULL, 2, 'AnnualCompPoint:annual_comp_point:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-18 18:45:00', NULL, NULL, 0, 0, '1', 0);

@ -40,7 +40,7 @@
</a-form-item> </a-form-item>
</a-col> </a-col>
<a-col :span="12"> <a-col :span="12">
<a-form-item label="项目层次1" v-bind="validateInfos.objLevel" :labelCol="labelCol" :wrapperCol="wrapperCol7"> <a-form-item label="项目层次" v-bind="validateInfos.objLevel" :labelCol="labelCol" :wrapperCol="wrapperCol7">
<a-radio-group v-model:value="formData.objLevel"> <a-radio-group v-model:value="formData.objLevel">
<a-radio v-for="item in objLevelll" :key="item.id" :value="item.id">{{ item.name }}</a-radio> <a-radio v-for="item in objLevelll" :key="item.id" :value="item.id">{{ item.name }}</a-radio>
</a-radio-group> </a-radio-group>

@ -1,26 +0,0 @@
-- 注意:该页面对应的前台目录为views/AnnualCompPoint文件夹下
-- 如果你想更改到其他目录,请修改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 ('2023081806458670000', NULL, '年度比赛项目管理', '/AnnualCompPoint/annualCompPointList', 'AnnualCompPoint/AnnualCompPointList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-08-18 18:45:00', 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 ('2023081806458670001', '2023081806458670000', '添加年度比赛项目管理', NULL, NULL, 0, NULL, NULL, 2, 'AnnualCompPoint:annual_comp_point:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-18 18:45:00', 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 ('2023081806458670002', '2023081806458670000', '编辑年度比赛项目管理', NULL, NULL, 0, NULL, NULL, 2, 'AnnualCompPoint:annual_comp_point:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-18 18:45:00', 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 ('2023081806458670003', '2023081806458670000', '删除年度比赛项目管理', NULL, NULL, 0, NULL, NULL, 2, 'AnnualCompPoint:annual_comp_point:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-18 18:45:00', 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 ('2023081806458670004', '2023081806458670000', '批量删除年度比赛项目管理', NULL, NULL, 0, NULL, NULL, 2, 'AnnualCompPoint:annual_comp_point:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-18 18:45:00', 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 ('2023081806458670005', '2023081806458670000', '导出excel_年度比赛项目管理', NULL, NULL, 0, NULL, NULL, 2, 'AnnualCompPoint:annual_comp_point:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-18 18:45:00', 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 ('2023081806458670006', '2023081806458670000', '导入excel_年度比赛项目管理', NULL, NULL, 0, NULL, NULL, 2, 'AnnualCompPoint:annual_comp_point:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-18 18:45:00', NULL, NULL, 0, 0, '1', 0);

@ -107,7 +107,7 @@ const route = useRoute()
onMounted(() => { onMounted(() => {
annucompid.value = route.query.acpid annucompid.value = route.query.acpid
console.log(annucompid.value,'annucompid') console.log(annucompid.value,'annucompid')
handleAdd() // handleAdd()
}) })
function handleEdit(record: Recordable) { function handleEdit(record: Recordable) {
openModal(true, { openModal(true, {

@ -1,26 +0,0 @@
-- 注意:该页面对应的前台目录为views/annualcompaward文件夹下
-- 如果你想更改到其他目录,请修改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 ('2023081711299500540', NULL, '年度比赛奖项设置', '/annualcompaward/annualCompAwardList', 'annualcompaward/AnnualCompAwardList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-08-17 23:29:54', 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 ('2023081711299500541', '2023081711299500540', '添加年度比赛奖项设置', NULL, NULL, 0, NULL, NULL, 2, 'annualcompaward:annual_comp_award:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-17 23:29:54', 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 ('2023081711299500542', '2023081711299500540', '编辑年度比赛奖项设置', NULL, NULL, 0, NULL, NULL, 2, 'annualcompaward:annual_comp_award:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-17 23:29:54', 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 ('2023081711299500543', '2023081711299500540', '删除年度比赛奖项设置', NULL, NULL, 0, NULL, NULL, 2, 'annualcompaward:annual_comp_award:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-17 23:29:54', 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 ('2023081711299500544', '2023081711299500540', '批量删除年度比赛奖项设置', NULL, NULL, 0, NULL, NULL, 2, 'annualcompaward:annual_comp_award:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-17 23:29:54', 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 ('2023081711299500545', '2023081711299500540', '导出excel_年度比赛奖项设置', NULL, NULL, 0, NULL, NULL, 2, 'annualcompaward:annual_comp_award:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-17 23:29:54', 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 ('2023081711299500546', '2023081711299500540', '导入excel_年度比赛奖项设置', NULL, NULL, 0, NULL, NULL, 2, 'annualcompaward:annual_comp_award:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-17 23:29:54', NULL, NULL, 0, 0, '1', 0);

@ -34,7 +34,7 @@ export const columns: BasicColumn[] = [
export const searchFormSchema: FormSchema[] = []; export const searchFormSchema: FormSchema[] = [];
//表单数据 //表单数据
export const formSchema: FormSchema[] = [ export const formSchema: FormSchema[] = [
{ /* {
label: '年度比赛项目项目', label: '年度比赛项目项目',
field: 'annucompid', field: 'annucompid',
component: 'JPopup', component: 'JPopup',
@ -51,17 +51,23 @@ export const formSchema: FormSchema[] = [
dynamicRules: ({ model, schema }) => { dynamicRules: ({ model, schema }) => {
return [{ required: true, message: '请输入年度比赛项目id!' }]; return [{ required: true, message: '请输入年度比赛项目id!' }];
}, },
},*/
{
label: '',
field: 'annucompid',
component: 'Input',
show: false,
}, },
{ {
label: '能力名称', label: '能力名称',
field: 'capacityid', field: 'capacityname',
component: 'JPopup', component: 'JPopup',
componentProps: ({ formActionType }) => { componentProps: ({ formActionType }) => {
const { setFieldsValue } = formActionType; const { setFieldsValue } = formActionType;
return { return {
setFieldsValue: setFieldsValue, setFieldsValue: setFieldsValue,
code: 'jcnlmc', code: 'jcnlmc',
fieldConfig: [{ source: 'name', target: 'capacityid' }], fieldConfig: [{ source: 'name', target: 'capacityname' },{ source: 'id', target: 'capacityid' }],
multi: true, multi: true,
}; };
}, },
@ -70,6 +76,12 @@ export const formSchema: FormSchema[] = [
return [{ required: true, message: '请选择能力!' }]; return [{ required: true, message: '请选择能力!' }];
}, },
}, },
{
label: '',
field: 'capacityid',
component: 'Input',
show: false,
},
{ {
label: '权值', label: '权值',
field: 'weight', field: 'weight',

@ -94,16 +94,15 @@ import {useRoute} from "vue-router";
*/ */
const route = useRoute(); const route = useRoute();
const annucompid = ref(('')) const annucompid = ref((''))
onMounted(() => { onMounted(() => {
annucompid.value = route.query.acpid annucompid.value = route.query.id
console.log(annucompid.value,'annucompid') console.log(annucompid.value,'annucompid')
handleAdd() // handleAdd()
}) })
function handleAdd() { function handleAdd() {
openModal(true, { openModal(true, {
record:{annucompid: annucompid.value}, record:{annucompid: annucompid.value},
isUpdate: true, isUpdate: false,
isUpdate: true,
showFooter: true, showFooter: true,
}); });
} }

@ -1,26 +0,0 @@
-- 注意:该页面对应的前台目录为views/compskill文件夹下
-- 如果你想更改到其他目录,请修改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 ('2023081711307080040', NULL, '项目能力设置', '/compskill/compskillList', 'compskill/CompskillList', NULL, NULL, 0, NULL, '1', 0.00, 0, NULL, 1, 0, 0, 0, 0, NULL, '1', 0, 0, 'admin', '2023-08-17 23:30:04', 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 ('2023081711307080041', '2023081711307080040', '添加项目能力设置', NULL, NULL, 0, NULL, NULL, 2, 'compskill:compskill:add', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-17 23:30:04', 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 ('2023081711307080042', '2023081711307080040', '编辑项目能力设置', NULL, NULL, 0, NULL, NULL, 2, 'compskill:compskill:edit', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-17 23:30:04', 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 ('2023081711307080043', '2023081711307080040', '删除项目能力设置', NULL, NULL, 0, NULL, NULL, 2, 'compskill:compskill:delete', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-17 23:30:04', 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 ('2023081711307080044', '2023081711307080040', '批量删除项目能力设置', NULL, NULL, 0, NULL, NULL, 2, 'compskill:compskill:deleteBatch', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-17 23:30:04', 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 ('2023081711307080045', '2023081711307080040', '导出excel_项目能力设置', NULL, NULL, 0, NULL, NULL, 2, 'compskill:compskill:exportXls', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-17 23:30:04', 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 ('2023081711307080046', '2023081711307080040', '导入excel_项目能力设置', NULL, NULL, 0, NULL, NULL, 2, 'compskill:compskill:importExcel', '1', NULL, 0, NULL, 1, 0, 0, 0, NULL, 'admin', '2023-08-17 23:30:04', NULL, NULL, 0, 0, '1', 0);

@ -26,12 +26,13 @@
await resetFields(); await resetFields();
setModalProps({confirmLoading: false,showCancelBtn:!!data?.showFooter,showOkBtn:!!data?.showFooter}); setModalProps({confirmLoading: false,showCancelBtn:!!data?.showFooter,showOkBtn:!!data?.showFooter});
isUpdate.value = !!data?.isUpdate; isUpdate.value = !!data?.isUpdate;
if (unref(isUpdate)) { console.log("data.record=="+data.record.annucompid);
// if (unref(isUpdate)) {
// //
await setFieldsValue({ await setFieldsValue({
...data.record, ...data.record,
}); });
} // }
// //
setProps({ disabled: !data?.showFooter }) setProps({ disabled: !data?.showFooter })
}); });
@ -63,4 +64,4 @@
:deep(.ant-calendar-picker){ :deep(.ant-calendar-picker){
width: 100% width: 100%
} }
</style> </style>

@ -19,8 +19,7 @@
import { saveOrUpdateUser, getUserRoles, getUserDepartList, getAllRolesListNoByExcludeTenant, getAllRolesList } from './user.api'; import { saveOrUpdateUser, getUserRoles, getUserDepartList, getAllRolesListNoByExcludeTenant, getAllRolesList } from './user.api';
import { useDrawerAdaptiveWidth } from '/@/hooks/jeecg/useAdaptiveWidth'; import { useDrawerAdaptiveWidth } from '/@/hooks/jeecg/useAdaptiveWidth';
import { getTenantId } from "/@/utils/auth"; import { getTenantId } from "/@/utils/auth";
import {UpdateUserCompExp} from "/@/views/system/usercompexpert/userZJ.api"; import {queryExpertById,UpdateUserCompExp} from "/@/views/system/usercompexpert/userZJ.api";
import {queryExpertById} from "/@/views/system/usercompexpert/userZJ.api";
// Emits // Emits
const emit = defineEmits(['success', 'register']); const emit = defineEmits(['success', 'register']);

@ -292,13 +292,22 @@ export const formSchema: FormSchema[] = [
}, },
{ {
label: '状态', label: '比赛状态',
field: 'stat', field: 'stat',
component: 'JSwitch', component: 'JSwitch',
dynamicDisabled: ({ values }) => {
return !!values.id;
},
componentProps:{ componentProps:{
//开关大小,可选值:default small
size:'default',
//非选中时的内容
unCheckedChildren:'开启',
//非选中时的值
unCheckedValue:'Y',
//选中时的内容
checkedChildren:'关闭',
//选中时的值
checkedValue:'N',
//是否禁用
disabled: false
}, },
}, },
]; ];

Loading…
Cancel
Save