diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/entity/AnnualCompPoint.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/entity/AnnualCompPoint.java index bae959ce..cb59c9bd 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/entity/AnnualCompPoint.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/entity/AnnualCompPoint.java @@ -88,7 +88,7 @@ public class AnnualCompPoint implements Serializable { * 项目层次 */ @Excel(name = "项目层次", width = 15) - @Dict(dictTable = "obj_level", dicCode = "id", dicText = "level_name") + @Dict(dictTable = "projectlevel", dicCode = "id", dicText = "name") @ApiModelProperty(value = "项目层次") private String objLevel; /** diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/service/impl/AnnualCompPointServiceImpl.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/service/impl/AnnualCompPointServiceImpl.java index 89879437..60f02a1c 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/service/impl/AnnualCompPointServiceImpl.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/service/impl/AnnualCompPointServiceImpl.java @@ -13,6 +13,8 @@ import org.jeecg.modules.demo.annualcomp.entity.AnnualComp; import org.jeecg.modules.demo.annualcomp.service.impl.AnnualCompServiceImpl; import org.jeecg.modules.demo.objLevel.entity.ObjLevel; import org.jeecg.modules.demo.objLevel.service.impl.ObjLevelServiceImpl; +import org.jeecg.modules.demo.projectlevel.entity.Projectlevel; +import org.jeecg.modules.demo.projectlevel.service.IProjectlevelService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; @@ -33,6 +35,8 @@ import java.util.stream.Collectors; @Service public class AnnualCompPointServiceImpl extends ServiceImpl implements IAnnualCompPointService { + @Autowired + private IProjectlevelService projectlevelService; @Autowired private ObjLevelServiceImpl objLevelService; @Autowired @@ -83,7 +87,7 @@ public class AnnualCompPointServiceImpl extends ServiceImpl> pageList(AnnualCompPoint annualCompPoint, Integer pageNo, Integer pageSize, HttpServletRequest req) { - List levelList = objLevelService.list(); + List levelList = projectlevelService.list(); QueryWrapper queryWrapper = QueryGenerator.initQueryWrapper(annualCompPoint, req.getParameterMap()); Page page = new Page<>(pageNo, pageSize); IPage pageList = this.page(page, queryWrapper); @@ -250,9 +254,9 @@ public class AnnualCompPointServiceImpl extends ServiceImpl collect = list.stream().map(new Function() { @Override public AnnualCompPoint apply(AnnualCompPoint annualCompPoint) { - for (ObjLevel objLevel : levelList) { - if (annualCompPoint.getObjLevel().equals(objLevel.getId().toString())) { - annualCompPoint.setObjLevel(objLevel.getLevelName()); + for (Projectlevel objLevel : levelList) { + if (annualCompPoint.getObjLevel().equals(objLevel.getId())) { + annualCompPoint.setObjLevel(objLevel.getName()); break; } } diff --git a/jeecgboot-vue3-master/src/components/Form/src/hooks/useForm.ts b/jeecgboot-vue3-master/src/components/Form/src/hooks/useForm.ts index fd5885f3..aad376cc 100644 --- a/jeecgboot-vue3-master/src/components/Form/src/hooks/useForm.ts +++ b/jeecgboot-vue3-master/src/components/Form/src/hooks/useForm.ts @@ -22,7 +22,7 @@ export function useForm(props?: Props): UseFormReturnType { add("OnlineSelectCascade", OnlineSelectCascade) add("LinkTableCard", LinkTableCard) add("LinkTableSelect", LinkTableSelect) - + async function getForm() { const form = unref(formRef); if (!form) { @@ -111,6 +111,7 @@ export function useForm(props?: Props): UseFormReturnType { }, setFieldsValue: async (values: T) => { + console.log(values,'values') const form = await getForm(); form.setFieldsValue(values); }, diff --git a/jeecgboot-vue3-master/src/router/routes/index.ts b/jeecgboot-vue3-master/src/router/routes/index.ts index 816cf402..e73e661d 100644 --- a/jeecgboot-vue3-master/src/router/routes/index.ts +++ b/jeecgboot-vue3-master/src/router/routes/index.ts @@ -85,6 +85,58 @@ export const comprehensiveEvaluation = { }, ] } +/*用于比赛及其比赛项目的基础路由*/ +export const compcom = { + path:'/compp', + name:'Compp', + // redirect:'/compp/compp', + component: () => import('/@/views/annualCompPoint/committee/index.vue'), + meta:{ + title:'年度比赛项目', + }, + children:[ + { + path:'annualcompaward', + name:'annualcompaward', + component: ()=> import('/@/views/annualcompaward/AnnualCompAwardList.vue'), + meta:{ + title:'比赛奖项管理' + } + + }, + { + path:'compskill', + name:'compskill', + component: ()=> import('/@/views/compskill/CompskillList.vue'), + meta:{ + title:'项目能力管理' + } + + }, + { + path:'topic', + name:'topic', + component: ()=> import('/@/views/topic/TopicList.vue'), + meta:{ + title:'项目题目管理' + } + + }, + { + path:'organizingCommittee', + name:'OrganizingCommittee', + component: ()=> import('/@/views/comprehensiveEvaluation/organizingCommittee.vue'), + meta:{ + title:'组委会报告' + } + + }, + ] +} + + + + //update-begin---author:wangshuai ---date:20220629 for:auth2登录页面路由------------ export const Oauth2LoginRoute: AppRouteRecordRaw = { path: '/oauth2-app/login', @@ -112,4 +164,4 @@ export const TokenLoginRoute: AppRouteRecordRaw = { }; // Basic routing without permission -export const basicRoutes = [LoginRoute,comprehensiveEvaluation, RootRoute, ...mainOutRoutes, REDIRECT_ROUTE, PAGE_NOT_FOUND_ROUTE, TokenLoginRoute, Oauth2LoginRoute]; +export const basicRoutes = [LoginRoute,compcom,comprehensiveEvaluation, RootRoute, ...mainOutRoutes, REDIRECT_ROUTE, PAGE_NOT_FOUND_ROUTE, TokenLoginRoute, Oauth2LoginRoute]; diff --git a/jeecgboot-vue3-master/src/views/annualCompPoint/committee/AnnualCompPointList.vue b/jeecgboot-vue3-master/src/views/annualCompPoint/committee/AnnualCompPointList.vue index 83faf7e7..e4a3ec9e 100644 --- a/jeecgboot-vue3-master/src/views/annualCompPoint/committee/AnnualCompPointList.vue +++ b/jeecgboot-vue3-master/src/views/annualCompPoint/committee/AnnualCompPointList.vue @@ -57,6 +57,8 @@ + + @@ -79,8 +81,8 @@ tongfenfuping, } from './AnnualCompPoint.api'; import {downloadFile} from '/@/utils/common/renderUtils'; - import AnnualCompPointModal from './components/AnnualCompPointModal.vue' - import AnnualCompPointModalscgl from './components/AnnualCompPointModalscgl.vue' + import AnnualCompPointModal from './components/AnnualCompPointModal.vue'; + import AnnualCompPointModalscgl from './components/AnnualCompPointModalscgl.vue'; import JSwitch from '/@/components/Form/src/jeecg/components/JSwitch.vue'; import JSelectMultiple from '/@/components/Form/src/jeecg/components/JSelectMultiple.vue'; import JPopup from '/@/components/Form/src/jeecg/components/JPopup.vue'; @@ -95,6 +97,7 @@ const toggleSearchStatus = ref(false); const registerModal = ref(); const registerModalscgl = ref(); + const annualCompAwardModal = ref(); const { createMessage } = useMessage(); //注册table数据 const {prefixCls, tableContext, onExportXls,onExportXlsMb} = useListPage({ @@ -162,6 +165,36 @@ registerModalscgl.value.edit(record); } +/* /!** + * 比赛奖项管理事件 + *!/ + function handleEditbsjx(record: Recordable) { + console.log(annualCompAwardModal.value) + annualCompAwardModal.value.disableSubmit = false; + annualCompAwardModal.value.edit(record); + }*/ + + /** + * 项目能力管理事件 + */ + function handleEditxmnl(record: Recordable) { + router.push({ + path: '/compp/compskill', + query: {id: record.id} + }); + } + + + /** + * 项目题目管理事件 + */ + function handleEdittopic(record: Recordable) { + router.push({ + path: '/compp/topic', + query: {id: record.id} + }); + } + function onImportXls(d) { if(selectedRowKeys.value.length===1){ handleImportXls(d, '/AnnualCompPoint/annualCompPoint/importExcel?ndbsxmid='+selectedRowKeys.value[0],() => { @@ -185,7 +218,7 @@ const router = useRouter() function pingjiang(record: Recordable) { router.push({ - path: '/award/AwardManagementList', + path: '/compp/annualcompaward', query: {id: record.id} }); } @@ -208,6 +241,15 @@ query: {acpid: record.id} }); } + /** + * 比赛奖项管理 + */ + function bsjxgl(record: Recordable) { + router.push({ + path: '/compp/annualcompaward', + query: {acpid: record.id} + }); + } /** * 个人积分汇总 @@ -288,6 +330,23 @@ label: '项目赛程管理', onClick: handleEditscgl.bind(null, record), }, + +/* { + label: '比赛奖项管理', + onClick: handleEditbsjx.bind(null, record), + },*/ + + + { + label: '项目能力管理', + onClick: handleEditxmnl.bind(null, record), + }, + + { + label: '题目管理', + onClick: handleEdittopic.bind(null, record), + }, + { label: '详情', onClick: handleDetail.bind(null, record), @@ -374,10 +433,18 @@ label: '作品管理', onClick: workManage.bind(null, record), }); - actions.unshift({ +/* actions.unshift({ label: '评分标准', onClick: pfbz.bind(null, record), + });*/ + + + actions.unshift({ + label: '比赛奖项管理', + onClick: bsjxgl.bind(null, record), }); + + // if (record.requireUploadWorks === 'Y' && record.annualCompState === "2") { // actions.unshift({ // label: '上传作品', diff --git a/jeecgboot-vue3-master/src/views/annualCompPoint/department/AnnualCompPointList.vue b/jeecgboot-vue3-master/src/views/annualCompPoint/department/AnnualCompPointList.vue index b4eb005f..ff30db0d 100644 --- a/jeecgboot-vue3-master/src/views/annualCompPoint/department/AnnualCompPointList.vue +++ b/jeecgboot-vue3-master/src/views/annualCompPoint/department/AnnualCompPointList.vue @@ -208,7 +208,21 @@ function getTableAction(record) { { label: '详情', onClick: handleDetail.bind(null, record), - } + }, + { + label: '项目能力管理', + onClick: handleEditxmnl.bind(null, record), + }, + + { + label: '题目管理', + onClick: handleEdittopic.bind(null, record), + }, + + { + label: '比赛奖项管理', + onClick: handleEditbsjx.bind(null, record), + }, ]; return actions; } @@ -240,6 +254,38 @@ function setFieldsValue(map) { }); } +/** + * 项目能力管理事件 + */ +function handleEditxmnl(record: Recordable) { + router.push({ + path: '/compp/compskill', + query: {id: record.id} + }); +} + + +/** + * 项目题目管理事件 + */ +function handleEdittopic(record: Recordable) { + router.push({ + path: '/compp/topic', + query: {id: record.id} + }); +} + + +/** + * 比赛奖项管理 + */ +function handleEditbsjx(record: Recordable) { + router.push({ + path: '/compp/annualcompaward', + query: {acpid: record.id} + }); +} + diff --git a/jeecgboot-vue3-master/src/views/annualCompPoint/student/AnnualCompPointList.vue b/jeecgboot-vue3-master/src/views/annualCompPoint/student/AnnualCompPointList.vue index c29f4f8d..38d50570 100644 --- a/jeecgboot-vue3-master/src/views/annualCompPoint/student/AnnualCompPointList.vue +++ b/jeecgboot-vue3-master/src/views/annualCompPoint/student/AnnualCompPointList.vue @@ -221,6 +221,22 @@ label: '详情', onClick: handleDetail.bind(null, record), }, + { + label: '项目能力管理', + onClick: handleEditxmnl.bind(null, record), + }, + + { + label: '题目管理', + onClick: handleEdittopic.bind(null, record), + }, + + { + label: '比赛奖项管理', + onClick: handleEditbsjx.bind(null, record), + }, + + ]; // if (record.annualCompState === '2') { // actions.unshift({ @@ -269,6 +285,39 @@ queryParam[key] = map[key]; }); } + + + /** + * 项目能力管理事件 + */ + function handleEditxmnl(record: Recordable) { + router.push({ + path: '/compp/compskill', + query: {id: record.id} + }); + } + + + /** + * 项目题目管理事件 + */ + function handleEdittopic(record: Recordable) { + router.push({ + path: '/compp/topic', + query: {id: record.id} + }); + } + + + /** + * 比赛奖项管理 + */ + function handleEditbsjx(record: Recordable) { + router.push({ + path: '/compp/annualcompaward', + query: {acpid: record.id} + }); + } \ No newline at end of file + diff --git a/jeecgboot-vue3-master/src/views/compskill/CompskillList.vue b/jeecgboot-vue3-master/src/views/compskill/CompskillList.vue index a8bc9951..2a79a144 100644 --- a/jeecgboot-vue3-master/src/views/compskill/CompskillList.vue +++ b/jeecgboot-vue3-master/src/views/compskill/CompskillList.vue @@ -45,7 +45,7 @@