From 15d8cc4c6f9f371caa8556dd032cc8ef953ba336 Mon Sep 17 00:00:00 2001 From: significative <163999932+significative@users.noreply.github.com> Date: Sat, 14 Sep 2024 15:50:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E6=B6=88=E6=8F=90=E4=BA=A4jeecg-boot-?= =?UTF-8?q?master/**/target?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 24 + .../teamseq/controller/TeamSeqController.java | 16 +- .../service/impl/TeamSeqServiceImpl.java | 2 +- jeecgboot-vue3-master/index.html | 2 +- jeecgboot-vue3-master/pnpm-lock.yaml | 14446 ++++++++++++++++ .../public/resource/img/comp/jingsaibjc.png | Bin 0 -> 496056 bytes jeecgboot-vue3-master/src/App.vue | 10 + .../src/assets/icons/gengduo.svg | 1 + .../src/assets/icons/status0.svg | 1 + .../src/assets/icons/status1.svg | 1 + .../src/assets/icons/status2.svg | 1 + .../src/assets/icons/status3.svg | 1 + .../components/Application/src/AppLogo.vue | 4 +- .../src/hooks/setting/index.ts | 9 +- .../src/store/modules/useSettingStore.ts | 35 + .../committee/AnnualCompPointList.vue | 766 +- .../committee/AnnualCompPointList1.vue | 528 + .../committee/components/cardItem.vue | 250 + .../annualcomp/uncommitted/AnnualCompList.vue | 111 +- ...nnualCompList1.vue => AnnualCompList2.vue} | 0 .../uncommitted/components/cardItem.vue | 243 +- jeecgboot-vue3-master/vite.config.ts | 161 +- 22 files changed, 15951 insertions(+), 661 deletions(-) create mode 100644 .gitignore create mode 100644 jeecgboot-vue3-master/pnpm-lock.yaml create mode 100644 jeecgboot-vue3-master/public/resource/img/comp/jingsaibjc.png create mode 100644 jeecgboot-vue3-master/src/assets/icons/gengduo.svg create mode 100644 jeecgboot-vue3-master/src/assets/icons/status0.svg create mode 100644 jeecgboot-vue3-master/src/assets/icons/status1.svg create mode 100644 jeecgboot-vue3-master/src/assets/icons/status2.svg create mode 100644 jeecgboot-vue3-master/src/assets/icons/status3.svg create mode 100644 jeecgboot-vue3-master/src/store/modules/useSettingStore.ts create mode 100644 jeecgboot-vue3-master/src/views/annualCompPoint/committee/AnnualCompPointList1.vue create mode 100644 jeecgboot-vue3-master/src/views/annualCompPoint/committee/components/cardItem.vue rename jeecgboot-vue3-master/src/views/annualcomp/uncommitted/{AnnualCompList1.vue => AnnualCompList2.vue} (100%) diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..a547bf36 --- /dev/null +++ b/.gitignore @@ -0,0 +1,24 @@ +# Logs +logs +*.log +npm-debug.log* +yarn-debug.log* +yarn-error.log* +pnpm-debug.log* +lerna-debug.log* + +node_modules +dist +dist-ssr +*.local + +# Editor directories and files +.vscode/* +!.vscode/extensions.json +.idea +.DS_Store +*.suo +*.ntvs* +*.njsproj +*.sln +*.sw? diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/controller/TeamSeqController.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/controller/TeamSeqController.java index 5fea5817..be3f920e 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/controller/TeamSeqController.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/controller/TeamSeqController.java @@ -77,14 +77,14 @@ public class TeamSeqController extends JeecgController * @param teamSeq * @return */ - @AutoLog(value = "团队赛队员积分计算配置-添加") - @ApiOperation(value = "团队赛队员积分计算配置-添加", notes = "团队赛队员积分计算配置-添加") -// @RequiresPermissions("teamseq:team_seq:add") - @PostMapping(value = "/add") - public Result add(@RequestBody TeamSeq teamSeq) { - teamSeqService.save(teamSeq); - return Result.OK("添加成功!"); - } +// @AutoLog(value = "团队赛队员积分计算配置-添加") +// @ApiOperation(value = "团队赛队员积分计算配置-添加", notes = "团队赛队员积分计算配置-添加") +//// @RequiresPermissions("teamseq:team_seq:add") +// @PostMapping(value = "/add") +// public Result add(@RequestBody TeamSeq teamSeq) { +// teamSeqService.save(teamSeq); +// return Result.OK("添加成功!"); +// } @AutoLog(value = "团队赛队员积分计算配置-添加") @ApiOperation(value = "团队赛队员积分计算配置-添加", notes = "团队赛队员积分计算配置-添加") diff --git a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/service/impl/TeamSeqServiceImpl.java b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/service/impl/TeamSeqServiceImpl.java index 7a5c6575..db3de9bb 100644 --- a/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/service/impl/TeamSeqServiceImpl.java +++ b/jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/teamseq/service/impl/TeamSeqServiceImpl.java @@ -28,7 +28,7 @@ public class TeamSeqServiceImpl extends ServiceImpl impl } String pointId = list.get(0).getPointId(); if (StrUtil.isEmpty(pointId)) { - throw new JeecgBootException("比赛项目不能为空!"); + throw new JeecgBootException("比赛项目未创建完成,请在编辑操作中配置!"); } this.remove(new LambdaQueryWrapper().eq(TeamSeq::getPointId, pointId)); diff --git a/jeecgboot-vue3-master/index.html b/jeecgboot-vue3-master/index.html index 79df3dd2..ee7e9e31 100644 --- a/jeecgboot-vue3-master/index.html +++ b/jeecgboot-vue3-master/index.html @@ -10,7 +10,7 @@ /> <%= title %> - + - /** - * 成绩汇总事件 - */ - async function cjhzgl(record) { - await cjhz({id: record.id}, handleSuccess); + diff --git a/jeecgboot-vue3-master/src/views/annualCompPoint/committee/AnnualCompPointList1.vue b/jeecgboot-vue3-master/src/views/annualCompPoint/committee/AnnualCompPointList1.vue new file mode 100644 index 00000000..f940e452 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/annualCompPoint/committee/AnnualCompPointList1.vue @@ -0,0 +1,528 @@ + + + + + diff --git a/jeecgboot-vue3-master/src/views/annualCompPoint/committee/components/cardItem.vue b/jeecgboot-vue3-master/src/views/annualCompPoint/committee/components/cardItem.vue new file mode 100644 index 00000000..3b223e82 --- /dev/null +++ b/jeecgboot-vue3-master/src/views/annualCompPoint/committee/components/cardItem.vue @@ -0,0 +1,250 @@ + + + + + diff --git a/jeecgboot-vue3-master/src/views/annualcomp/uncommitted/AnnualCompList.vue b/jeecgboot-vue3-master/src/views/annualcomp/uncommitted/AnnualCompList.vue index 3c1df9e7..714de756 100644 --- a/jeecgboot-vue3-master/src/views/annualcomp/uncommitted/AnnualCompList.vue +++ b/jeecgboot-vue3-master/src/views/annualcomp/uncommitted/AnnualCompList.vue @@ -4,24 +4,28 @@
@@ -29,10 +33,20 @@
点击添加比赛
- + @@ -44,19 +58,29 @@ import { Pagination } from 'ant-design-vue'; import { ref } from 'vue'; import cardItem from './components/cardItem.vue'; - import { list,deleteOne } from './AnnualComp.api'; + import { list, deleteOne, submit, enable, deactivate } from './AnnualComp.api'; import { useModal } from '/@/components/Modal'; + import { useMessage } from '/@/hooks/web/useMessage'; - const [registerModal, { openModal }] = useModal(); import AnnualCompModal from './components/AnnualCompModal.vue'; + import { getDictItems } from '/@/api/common/api'; + const [registerModal, { openModal }] = useModal(); + const { createMessage } = useMessage(); - const filterYearList = ref(['全部比赛', '2024年', '2023年', '其他年份']); const activeIndex = ref(0); - const current = ref(2); + const current = ref(1); // 搜索 const searchValue = ref(''); const onSearch = () => { console.log(searchValue.value); + const value = yearList.value.find((item) => item.title === searchValue.value); + console.log(value); + if (value) { + page.annualid = value.values; + getList(); + }else{ + createMessage.warn(`没有查询到${searchValue.value}年的信息`) + } }; // 单选 @@ -65,8 +89,18 @@ // 获取比赛列表 const raceList = ref([]); const total = ref(0); + const page = { + pageSize: 7, + pageNo: 1, + annualid: '', + }; const getList = async () => { - const res = await list({ pageSize: 7 }); + for (const key in page) { + if (!page[key]) { + delete page[key]; + } + } + const res = await list(page); console.log(res); raceList.value = res.records; total.value = res.total; @@ -100,18 +134,61 @@ isUpdate: true, showFooter: false, }); - } - /** + }; + /** * 删除事件 */ async function handleDelete(record) { - console.log(record,'record'); - + console.log(record, 'record'); + await deleteOne({ id: record.value.id }, handleSuccess); } + + // 提交事件 + const handleSubmit = async (record) => { + await submit({ id: record.value.id }, handleSuccess); + }; + // 启用事件 + const handleEnable = async (record) => { + await enable({ id: record.value.id }, handleSuccess); + }; + // 停用事件 + const handleDeactivate = async (record) => { + await deactivate({ id: record.value.id }, handleSuccess); + }; + // 分页 + const pageChange = (pageNo) => { + console.log(pageNo); + page.pageNo = pageNo; + getList(); + }; + + // 获取年度 + const yearList = ref([{ title: '全部比赛', value: '' }]); + const getDictItemsEvent = async () => { + const date = new Date().getTime(); + const res = await getDictItems('annual,annual_name,id?_t=' + date); + yearList.value = res.reverse(); + yearList.value.unshift({ title: '全部比赛', value: '' }); + }; + getDictItemsEvent(); + + // 年度筛选事件 + const filteryear = (id: any, index: number) => { + activeIndex.value = index; + page.annualid = id; + getList(); + };