组委会首页

dev
王家东 9 months ago
parent 6ea51e3567
commit 13abc40be4
  1. 1
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annual/service/impl/AnnualServiceImpl.java
  2. 31
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompIntface/controller/AnnconalCompZWHController.java
  3. 7
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompIntface/service/AnnconalCompZWHService.java
  4. 164
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompIntface/service/AnnconalCompZWHServiceImpl.java
  5. 4
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/mapper/AnnualCompPointMapper.java
  6. 2
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/service/IAnnualCompPointService.java
  7. 9
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualCompPoint/service/impl/AnnualCompPointServiceImpl.java
  8. 8
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/mapper/AnnualCompMapper.java
  9. 5
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/service/IAnnualCompService.java
  10. 16
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcomp/service/impl/AnnualCompServiceImpl.java
  11. 4
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/mapper/AnnualCompetitionProjectRegistrationMapper.java
  12. 2
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/service/IAnnualCompetitionProjectRegistrationService.java
  13. 5
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/annualcompetitionprojectregistration/service/impl/AnnualCompetitionProjectRegistrationServiceImpl.java
  14. 8
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/bigScreen/controller/CompSystemBigScreenController.java
  15. 4
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/comp/mapper/CompMapper.java
  16. 2
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/comp/service/ICompService.java
  17. 5
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/comp/service/impl/CompServiceImpl.java
  18. 4
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/compexp/mapper/CompExpMapper.java
  19. 3
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/compexp/service/ICompExpService.java
  20. 10
      jeecg-boot-master/jeecg-module-demo/src/main/java/org/jeecg/modules/demo/compexp/service/impl/CompExpServiceImpl.java
  21. 5
      jeecgboot-vue3-master/src/views/dashboard/Analysis/api.ts
  22. 396
      jeecgboot-vue3-master/src/views/dashboard/Analysis/indexZWH.vue

@ -23,4 +23,5 @@ public class AnnualServiceImpl extends ServiceImpl<AnnualMapper, Annual> impleme
public String getannualthisid(String thisyear) {
return annualMapper.getannualthisid(thisyear);
}
}

@ -0,0 +1,31 @@
package org.jeecg.modules.demo.annualCompIntface.controller;
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.modules.demo.annualCompIntface.service.AnnconalCompZWHService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import java.util.Map;
@Api(tags = "组委会首页")
@RestController
@RequestMapping("/zwh/inde")
@Slf4j
public class AnnconalCompZWHController {
@Autowired
private AnnconalCompZWHService annconalCompZWHService;
@ApiOperation(value = "组委会首页", notes = "组委会首页")
@GetMapping(value = "/zwhindex")
public Result zwhindex(String ids) {
Map<String, Object> result = annconalCompZWHService.getzwhindex(ids);
return Result.ok(result);
}
}

@ -0,0 +1,7 @@
package org.jeecg.modules.demo.annualCompIntface.service;
import java.util.Map;
public interface AnnconalCompZWHService {
Map<String, Object> getzwhindex(String ids);
}

@ -0,0 +1,164 @@
package org.jeecg.modules.demo.annualCompIntface.service;
import org.jeecg.modules.demo.annual.service.IAnnualService;
import org.jeecg.modules.demo.annualCompPoint.entity.AnnualCompPoint;
import org.jeecg.modules.demo.annualCompPoint.service.IAnnualCompPointService;
import org.jeecg.modules.demo.annualcomp.entity.AnnualComp;
import org.jeecg.modules.demo.annualcomp.service.IAnnualCompService;
import org.jeecg.modules.demo.annualcompetitionprojectregistration.entity.AnnualCompetitionProjectRegistration;
import org.jeecg.modules.demo.annualcompetitionprojectregistration.service.IAnnualCompetitionProjectRegistrationService;
import org.jeecg.modules.demo.comp.entity.Comp;
import org.jeecg.modules.demo.comp.service.ICompService;
import org.jeecg.modules.demo.compexp.entity.CompExp;
import org.jeecg.modules.demo.compexp.service.ICompExpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.text.SimpleDateFormat;
import java.time.LocalDateTime;
import java.time.Year;
import java.util.*;
@Service
public class AnnconalCompZWHServiceImpl implements AnnconalCompZWHService{
@Autowired
private IAnnualCompetitionProjectRegistrationService annualCompetitionProjectRegistrationService;
@Autowired
private ICompService compService;
@Autowired
private IAnnualCompService annualCompService;
@Autowired
private IAnnualCompPointService annualCompPointService;
@Autowired
private IAnnualService annualService;
@Autowired
private ICompExpService compExpService;
@Override
public Map<String, Object> getzwhindex(String ids) {
Map<String, Object> resultMap = new LinkedHashMap<>();
/*============================计算已经完成的项目开始============================================*/
List<String> complist =compService.findcompid(ids);
List<String> annualcomp = new ArrayList<>();
List<AnnualCompPoint> annualCompPointList = new ArrayList<>();
if (complist.size()>0) {
for (int i = 0; i < complist.size();i++) {
List<String> temp = new ArrayList<>();
temp =annualCompService.getannualcompid(complist.get(i));
annualcomp.addAll(temp);
}
if (annualcomp.size()>0){
List<AnnualCompPoint> temp1 = new ArrayList<>();
for(int j=0;j<annualcomp.size();j++) {
temp1 = annualCompPointService.getannualCompPointList(annualcomp.get(j));
annualCompPointList.addAll(temp1);
}
resultMap.put("num06",annualCompPointList.size());
}else{
resultMap.put("num06","暂无");
}
}else {
resultMap.put("num06","暂无");
}
/*============================计算已经完成的项目============结束================================*/
/*====================================开始======本年度的项目=========*/
SimpleDateFormat sdf = new SimpleDateFormat("yyyy");
String year = sdf.format(new Date());
String annualid =annualService.getannualthisid(year);
List<AnnualCompPoint> annualCompPointList1 = new ArrayList<>();
if(annualCompPointList.size()>0){
for (AnnualCompPoint point : annualCompPointList) {
// 获取endTime的年份
Calendar calendar = Calendar.getInstance();
calendar.setTime(point.getEndtime());
int year123 = calendar.get(Calendar.YEAR);
String yearAsString = Integer.toString(year123);
// 使用 Year 类获取年份
Year year1 = Year.now();
// 将 Year 对象转换为字符串
String yearAsString1 = year1.toString();
if (yearAsString.equals(yearAsString1)) {
annualCompPointList1.add(point);
}
}
resultMap.put("num05",annualCompPointList1.size());
}else {
resultMap.put("num05", "暂无");
}
/*====================================结束======本年度的项目=========*/
/*====================================开始======专家=========*/
if (complist.size()>0) {
List<CompExp> compExps = new ArrayList<>();
for (int i=0;i<complist.size();i++){
List<CompExp> temp= compExpService.gettempbycom(complist.get(i));
compExps.addAll(temp);
}
resultMap.put("num04", compExps.size());
}else {
resultMap.put("num04", "暂无");
}
/*====================================结束======专家=========*/
/*====================================开始======本年度报名=========*/
if (annualCompPointList1.size()>0){
List<AnnualCompetitionProjectRegistration> annualCompetitionProjectRegistrationlist = new ArrayList<>();
for(int i=0;i<annualCompPointList1.size();i++){
String acpid = annualCompPointList1.get(i).getId();
List<AnnualCompetitionProjectRegistration> temp =annualCompetitionProjectRegistrationService.getbyconoppid(acpid);
annualCompetitionProjectRegistrationlist.addAll(temp);
}
resultMap.put("num02", annualCompetitionProjectRegistrationlist.size());
}else {
resultMap.put("num02","暂无");
}
/*====================================结束======本年度报名=========*/
/*====================================开始======比赛=========*/
if (complist.size()>0) {
List<Comp> listcomp = new ArrayList<>();
for (int i=0;i<complist.size();i++){
Comp comp = compService.getById(complist.get(i));
listcomp.add(comp);
}
resultMap.put("data01",listcomp);
}
/*====================================结束======比赛=========*/
/*====================================开始======年度比赛=========*/
List<AnnualComp> listcompannual = new ArrayList<>();
if (complist.size()>0) {
for (int i=0;i<complist.size();i++){
List<AnnualComp> temo= annualCompService.getannualcompidlist(complist.get(i));
listcompannual.addAll(temo);
}
resultMap.put("data02",listcompannual);
}
/*====================================结束======年度比赛=========*/
/*====================================开始======年度比赛=========*/
if (listcompannual.size()>0) {
List<AnnualCompPoint> listcompannualPO = new ArrayList<>();
for (int i=0;i<listcompannual.size();i++){
List<AnnualCompPoint> temp= annualCompPointService.getannualCompPointList(listcompannual.get(i).getId());
listcompannualPO.addAll(temp);
}
resultMap.put("data03",listcompannualPO);
}
/*====================================结束======年度比赛=========*/
return resultMap;
}
}

@ -24,4 +24,8 @@ public interface AnnualCompPointMapper extends BaseMapper<AnnualCompPoint> {
@Select("SELECT COUNT(DISTINCT score) AS unique_scores FROM score_management WHERE annual_compid = #{id} ")
Boolean tongfenfupingiscfgr(String id);
@Select("select * from annual_comp_point where annual_comp_id =#{s}")
List<AnnualCompPoint> getannualCompPointList(String s);
}

@ -29,4 +29,6 @@ public interface IAnnualCompPointService extends IService<AnnualCompPoint> {
List<AnnualCompPoint> getAnnualCompbet1(LocalDate currentDate);
String tongfenfupingiscf(String id);
List<AnnualCompPoint> getannualCompPointList(String s);
}

@ -305,16 +305,17 @@ public class AnnualCompPointServiceImpl extends ServiceImpl<AnnualCompPointMappe
String zbc = "";
//首先判断成绩有没有重复的
Boolean a = annualCompPointMapper.tongfenfupingiscfgr(id);
if (a){
zbc = "1";
} else {
zbc = "0";
}
return zbc;
}
@Override
public List<AnnualCompPoint> getannualCompPointList(String s) {
return annualCompPointMapper.getannualCompPointList(s);
}
}

@ -3,6 +3,7 @@ package org.jeecg.modules.demo.annualcomp.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.annualcomp.entity.AnnualComp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -14,4 +15,11 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public interface AnnualCompMapper extends BaseMapper<AnnualComp> {
@Select("select id from annual_comp where compid =#{s}")
List<String> getannualcompid(String s);
@Select("select * from annual_comp where compid =#{s}")
List<AnnualComp> getannualcompidlist(String s);
}

@ -3,6 +3,8 @@ package org.jeecg.modules.demo.annualcomp.service;
import org.jeecg.modules.demo.annualcomp.entity.AnnualComp;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* @Description: 年度比赛管理
* @Author: jeecg-boot
@ -11,4 +13,7 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
public interface IAnnualCompService extends IService<AnnualComp> {
List<String> getannualcompid(String s);
List<AnnualComp> getannualcompidlist(String s);
}

@ -3,10 +3,13 @@ package org.jeecg.modules.demo.annualcomp.service.impl;
import org.jeecg.modules.demo.annualcomp.entity.AnnualComp;
import org.jeecg.modules.demo.annualcomp.mapper.AnnualCompMapper;
import org.jeecg.modules.demo.annualcomp.service.IAnnualCompService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
/**
* @Description: 年度比赛管理
* @Author: jeecg-boot
@ -16,4 +19,17 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@Service
public class AnnualCompServiceImpl extends ServiceImpl<AnnualCompMapper, AnnualComp> implements IAnnualCompService {
@Autowired
private AnnualCompMapper annualCompMapper;
@Override
public List<String> getannualcompid(String s) {
return annualCompMapper.getannualcompid(s);
}
@Override
public List<AnnualComp> getannualcompidlist(String s) {
return annualCompMapper.getannualcompidlist(s);
}
}

@ -3,6 +3,7 @@ package org.jeecg.modules.demo.annualcompetitionprojectregistration.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.annualcompetitionprojectregistration.entity.AnnualCompetitionProjectRegistration;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -14,4 +15,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public interface AnnualCompetitionProjectRegistrationMapper extends BaseMapper<AnnualCompetitionProjectRegistration> {
@Select("select * from annual_competition_project_registration where annual_compid =#{acpid}")
List<AnnualCompetitionProjectRegistration> getbyconoppid(String acpid);
}

@ -54,4 +54,6 @@ public interface IAnnualCompetitionProjectRegistrationService extends IService<A
AnnualCompetitionProjectRegistration getRegistrationByAnnualCompPointId(String annualCompPointId);
void studentSignUp(StudentSignUpVo studentSignUpVo);
List<AnnualCompetitionProjectRegistration> getbyconoppid(String acpid);
}

@ -264,6 +264,11 @@ public class AnnualCompetitionProjectRegistrationServiceImpl extends ServiceImpl
iInstructorSheetService.saveBatch(saveInstructorSheetList);
}
@Override
public List<AnnualCompetitionProjectRegistration> getbyconoppid(String acpid) {
return annualCompetitionProjectRegistrationMapper.getbyconoppid(acpid);
}
public String builderEnrollCode(final String type) {
String enrollCode = type;
String uuid = IdUtil.randomUUID().replaceAll("-", "");

@ -45,12 +45,4 @@ public class CompSystemBigScreenController /*extends JeecgController*/ {
return Result.ok(result);
}
//学生的首页
@GetMapping(value = "/studentindex")
public Result<?> studentindex(){
return Result.OK("qwq");
}
}

@ -19,4 +19,8 @@ public interface CompMapper extends BaseMapper<Comp> {
@Select("SELECT COUNT(*) FROM sys_user_role WHERE role_id ='1731948288626339841'")
int getzjint();
@Select("select id from comp where comp_admin=#{ids}")
List<String> findcompid(String ids);
}

@ -15,4 +15,6 @@ public interface ICompService extends IService<Comp> {
List<Comp> getbyAdmin(String username);
int getzjint();
List<String> findcompid(String ids);
}

@ -30,4 +30,9 @@ public class CompServiceImpl extends ServiceImpl<CompMapper, Comp> implements IC
public int getzjint() {
return compMapper.getzjint();
}
@Override
public List<String> findcompid(String ids) {
return compMapper.findcompid(ids);
}
}

@ -3,6 +3,7 @@ package org.jeecg.modules.demo.compexp.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.modules.demo.compexp.entity.CompExp;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
@ -14,4 +15,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
*/
public interface CompExpMapper extends BaseMapper<CompExp> {
@Select("select * from comp_exp where compid=#{s} and stat ='Y'")
List<CompExp> gettempbycom(String s);
}

@ -3,6 +3,8 @@ package org.jeecg.modules.demo.compexp.service;
import org.jeecg.modules.demo.compexp.entity.CompExp;
import com.baomidou.mybatisplus.extension.service.IService;
import java.util.List;
/**
* @Description: 比赛专家
* @Author: jeecg-boot
@ -11,4 +13,5 @@ import com.baomidou.mybatisplus.extension.service.IService;
*/
public interface ICompExpService extends IService<CompExp> {
List<CompExp> gettempbycom(String s);
}

@ -3,10 +3,13 @@ package org.jeecg.modules.demo.compexp.service.impl;
import org.jeecg.modules.demo.compexp.entity.CompExp;
import org.jeecg.modules.demo.compexp.mapper.CompExpMapper;
import org.jeecg.modules.demo.compexp.service.ICompExpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import java.util.List;
/**
* @Description: 比赛专家
* @Author: jeecg-boot
@ -16,4 +19,11 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
@Service
public class CompExpServiceImpl extends ServiceImpl<CompExpMapper, CompExp> implements ICompExpService {
@Autowired
private CompExpMapper compExpMapper;
@Override
public List<CompExp> gettempbycom(String s) {
return compExpMapper.gettempbycom(s);
}
}

@ -3,14 +3,19 @@ import { defHttp } from '/@/utils/http/axios';
enum Api {
loginfo = '/sys/loginfo',
visitInfo = '/sys/visitInfo',
getzwhinfo = '/zwh/inde/zwhindex',
}
/**
*
* @param params
*/
export const getLoginfo = (params) => defHttp.get({ url: Api.loginfo, params }, { isTransformResponse: false });
/**
* 访
* @param params
*/
export const getVisitInfo = (params) => defHttp.get({ url: Api.visitInfo, params }, { isTransformResponse: false });
export const getVisitInfozwh = (params) => defHttp.get({ url: Api.getzwhinfo, params }, { isTransformResponse: false });

@ -0,0 +1,396 @@
<template>
<div style="padding: 12px" class="index-container-ty">
<a-spin :spinning="loading">
<a-row :gutter="[32,16]" type="flex" justify="space-between" class="firstDiv">
<a-col :xs="12" :xl="4">
<div class="commonDiv">
<p class="title">本年度参加比赛队伍数</p>
<p class="subtitle">Participating schools</p>
<p class="num">
<!-- <span>{{num02}}</span>-->
<span class="iconDiv">
<!-- <img src="./images/icon2.png"/>-->
</span>
</p>
</div>
</a-col>
<a-col :xs="12" :xl="4">
<div class="commonDiv">
<p class="title">专家总数</p>
<p class="subtitle">School management</p>
<p class="num">
<span>{{num04}}</span>
<span class="iconDiv">
<!-- <img src="./images/icon4.png"/>-->
</span>
</p>
</div>
</a-col>
<a-col :xs="12" :xl="4">
<div class="commonDiv">
<p class="title">本年度项目数</p>
<p class="subtitle">Ongoing competition</p>
<p class="num">
<span>{{num05}}</span>
<span class="iconDiv">
<!-- <img src="./images/icon5.png"/>-->
</span>
</p>
</div>
</a-col>
<a-col :xs="12" :xl="4">
<div class="commonDiv">
<p class="title">已完成的项目数</p>
<p class="subtitle">Completed competitions</p>
<p class="num">
<span>{{num06}}</span>
<span class="iconDiv">
<!-- <img src="./images/icon6.png"/>-->
</span>
</p>
</div>
</a-col>
</a-row>
<a-row :gutter="[32,16]" type="flex" justify="space-between" class="titleDiv titleDiv1">
<a-col :xs="24" :xl="8" >
<a-row type="flex" justify="space-between" class="titleDiv">
<a-col :span="12" >
<span class="name">综合评分排名{{list}}</span>
</a-col>
<a-col :span="12" class="more">
<span>More<a-icon type="right" /></span>
</a-col>
</a-row>
<a-row :gutter="[32,16]" type="flex" justify="space-between" class="commonDiv" style="margin: 0">
<a-col :span="20">
<div id="histogram" style="width: 100%;height: 100%">
<div class="item" v-for="(item,index) in multipleScore" :key="index">
<div class="topDiv">
<div class="red color" :style="{height:item.target1*2+'px'}"></div>
<div class="yellow color" :style="{height:item.target2*2+'px'}"></div>
<div class="green color" :style="{height:item.target3*2+'px'}"></div>
</div>
<div class="bottomDiv">
{{item.name}}
</div>
</div>
</div>
</a-col>
<a-col :span="4">
<div class="colorDiv">
</div>
</a-col>
</a-row>
</a-col>
<a-col :xs="24" :xl="16">
<a-row type="flex" justify="space-between" class="titleDiv">
<a-col :span="12" >
<span class="name">比赛列表</span>
</a-col>
<a-col :span="12" class="more">
<span @click="goPage">More<a-icon type="right" /></span>
</a-col>
</a-row>
<div class="commonDiv">
<a-row :gutter="[32,16]" type="flex" justify="space-between" class="tableTitle">
<a-col :span="2">序号</a-col>
<a-col :span="12">名称</a-col>
<a-col :span="6">开始时间</a-col>
<a-col :span="4">审核状态</a-col>
</a-row>
<div class="none" v-if="false">暂无数据</div>
<a-row :gutter="[32,16]" type="flex" justify="space-between" v-for="(item,index) in data01"
:key="index" class="tableCoin">
<a-col :span="2">{{index+1}}</a-col>
<a-col :span="12">{{item.compName}}</a-col>
<a-col :span="6">{{item.createTime}}</a-col>
<a-col :span="4">已审核</a-col>
</a-row>
</div>
</a-col>
</a-row>
<a-row :gutter="[32,16]" type="flex" justify="space-between" class="titleDiv">
<a-col :xs="24" :xl="12" >
<a-row type="flex" justify="space-between" class="titleDiv">
<a-col :span="12" >
<span class="name">年度比赛列表</span>
</a-col>
<a-col :span="12" class="more">
<span>More<a-icon type="right" /></span>
</a-col>
</a-row>
<div class="commonDiv">
<a-row :gutter="[32,16]" type="flex" justify="space-between" class="tableTitle">
<a-col :span="2">序号</a-col>
<a-col :span="12">名称</a-col>
<a-col :span="6">开始时间</a-col>
<a-col :span="4">审核状态</a-col>
</a-row>
<div class="none" v-if="false">暂无数据</div>
<a-row :gutter="[32,16]" type="flex" justify="space-between" v-for="(item,index) in data02"
:key="index" class="tableCoin">
<a-col :span="2">{{index+1}}</a-col>
<a-col :span="12">{{item.name}}</a-col>
<a-col :span="6">{{item.starttime}}</a-col>
<a-col :span="4">已审核</a-col>
</a-row>
</div>
</a-col>
<a-col :xs="24" :xl="12">
<a-row type="flex" justify="space-between" class="titleDiv">
<a-col :span="12" >
<span class="name">年度比赛项目列表</span>
</a-col>
<a-col :span="12" class="more">
<span>More<a-icon type="right" /></span>
</a-col>
</a-row>
<div class="commonDiv">
<a-row :gutter="[32,16]" type="flex" justify="space-between" class="tableTitle">
<a-col :span="2">序号</a-col>
<a-col :span="12">名称</a-col>
<a-col :span="6">开始时间</a-col>
<a-col :span="4">审核状态</a-col>
</a-row>
<div class="none" v-if="false">暂无数据</div>
<a-row :gutter="[32,16]" type="flex" justify="space-between" v-for="(item,index) in data03"
:key="index" class="tableCoin">
<a-col :span="2">{{index+1}}</a-col>
<a-col :span="12">{{item.objName}}</a-col>
<a-col :span="6">{{item.starttime}}</a-col>
<a-col :span="4">已审核</a-col>
</a-row>
</div>
</a-col>
</a-row>
</a-spin></div>
</template>
<script lang="ts" setup>
import { getVisitInfozwh } from './api.ts';
import { useUserStore } from '/@/store/modules/user';
const userStore = useUserStore();
const ids= userStore.getUserInfo.username;
function sayHi () {
console.log("用户信息", ids)
const userInfo = userStore.getUserInfo;
console.log("用户信息", userInfo)
}
function initLogInfo() {
getVisitInfozwh({ids:ids}).then((res) => {
if (res.success) {
}
});
}
sayHi();
initLogInfo();
</script>
<style>
.my-index-table{height:270px}
.my-index-table table{font-size: 14px !important;}
.index-container-ty .ant-card-head-title{padding-top: 6px;padding-bottom: 6px;}
.index-container-ty .ant-card-extra{padding:0}
.index-container-ty .ant-card-extra a{color:#fff}
.index-container-ty .ant-card-extra a:hover{color:#152ede}
.index-container-ty .ant-card-head-wrapper,.index-container-ty .ant-card-head{
line-height:24px;
min-height:24px;
background: #7196fb;
}
.index-container-ty .ant-card-body{padding: 10px 12px 0px 12px}
.index-container-ty .ant-table-footer{text-align: right;padding:6px 12px 6px 6px;background: #fff;border-top: 2px solid #f7f1f1;}
.index-md-title{
postion:relative;
padding-left:24px;
width: 100%;
color: #fff;
font-size: 21px;
font-family: cursive;
}
.index-md-title img{
position: absolute;
height:32px;
top: 2px;
left:14px;
}
.index-container-ty .ant-table-thead > tr > th,
.index-container-ty .ant-table-tbody > tr > td{
border-bottom: 1px solid #90aeff;
}
.index-container-ty .ant-table-small > .ant-table-content > .ant-table-fixed-left > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-thead > tr > th,
.index-container-ty .ant-table-small > .ant-table-content > .ant-table-fixed-right > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-thead > tr > th{
border-bottom: 1px solid #90aeff;
}
.index-container-ty .ant-table-small > .ant-table-content > .ant-table-scroll > .ant-table-body > table > .ant-table-thead > tr > th{
border-bottom: 1px solid #90aeff;
}
.index-container-ty .ant-table-small{
border: 1px solid #90aeff;
}
.index-container-ty .ant-table-placeholder {
padding: 0
}
</style>
<style lang="less" scoped>
.none{
text-align: center;
padding-top: 50px;
color: #A3A3A3;
}
.commonDiv{
width: 100%;
padding: 15px 25px;
margin: 0;
background: #FDFDFD;
box-shadow: 18px 25px 48px 0px rgba(83,153,247,0.12);
border-radius: 20px 20px 20px 20px;
opacity: 1;
.title{
font-size: 14px;
color: #464255;
font-weight: bold;
margin-bottom: 4px;
}
.subtitle{
font-size: 12px;
color: #BBBBBB;
}
.num{
display: flex;
justify-content: space-between;
span{
font-size: 32px;
font-weight: 600;
color: #464255;
}
.iconDiv{
width: 50px;
height: 50px;
font-size: 26px;
line-height: 50px;
border-radius: 40px 40px 40px 40px;
text-align: center;
img{
width: 50px;
height: 50px;
}
}
}
.tableTitle{
border-bottom: 1px solid #ECEAF3;
height: 68px;
line-height: 68px;
color: #A3A3A3;
font-size: 16px;
text-align: center;
}
.tableCoin{
border-bottom: 1px solid #ECEAF3;
height: 68px;
line-height: 68px;
font-weight: 500;
color: #464255;
font-size: 16px;
text-align: center;
}
}
.titleDiv{
margin-top: 20px;
margin-bottom: 20px;
.name{
font-size: 18px;
font-weight: 500;
color: #464255;
}
.more{
text-align: right;
cursor: pointer;
i{
margin-left: 6px;
}
}
}
.titleDiv1 .commonDiv{
height: 300px;
}
.histogram{
display: flex;
justify-content: center;
height: 260px;
.item{
width: 50px;
height: 260px;
margin-right: 12px;
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
.topDiv{
height: 200px;
display: flex;
flex-direction: column;
justify-content: flex-end;
align-items: center;
.color{
width: 14px;
}
.red{
height: 30px;
background-color: #91CC75;
border-radius: 6px 6px 6px 6px;
margin-bottom: -7px;
}
.yellow{
height: 30px;
background-color:#FAC858;
border-radius: 6px 6px 6px 6px;
margin-bottom: -7px;
}
.green{
height: 30px;
background-color: #5470C6;
border-radius: 6px 6px 6px 6px;
}
}
.bottomDiv{
height: 51px;
line-height: 17px;
overflow: hidden;display: -webkit-box;text-overflow: ellipsis;
-webkit-line-clamp:2;-webkit-box-orient: vertical;white-space:normal;
}
}
}
.colorDiv{
.color{
margin-bottom: 30px;
.green{
width: 12px;
height: 12px;
background-color: #5470C6;
}
.red{
width: 12px;
height: 12px;
background-color: #91CC75;
}
.yellow{
width: 12px;
height: 12px;
background-color: #FAC858;
}
}
}
</style>
Loading…
Cancel
Save