diff --git a/src/assets/images/nodata.png b/src/assets/images/nodata.png new file mode 100644 index 00000000..576fa716 Binary files /dev/null and b/src/assets/images/nodata.png differ diff --git a/src/components/drawers/project/AddCertificate.vue b/src/components/drawers/project/AddCertificate.vue new file mode 100644 index 00000000..c50083c3 --- /dev/null +++ b/src/components/drawers/project/AddCertificate.vue @@ -0,0 +1,756 @@ + + + + + {{ edit ? "编辑" : "添加" }}证书 + + + + + + + + + + + 证书名称: + + + + + + + + + + + + 证书: + + + + 创建证书 + + + + + + + + + + 设置获得条件 + + + + + + + + + + + + + + 完成项目 + + + + + 全部任务 + 完成必修任务 + + + + 完成阶段 + + + + + 第一阶段 + 第二阶段 + 第三阶段 + + + + 完成任务 + + + + + 任务一 + 任务二 + 任务三 + + + + 考试合格 + + + + + 考试一 + 考试二 + 考试三 + + + + 获得积分 + + + + 高于 + + 分可获得,当前项目积分为 10 分 + + + 完成作业 + + + + 高于 + + 分可获得证书 + + + 优秀小组长 + + + + 小组积分高于 + + 分小组长可获得证书 + + + 考勤按时签到可获得证书 + + + + + + + + + + + + + + + + + 取消 + 确定 + + + + + + + + + \ No newline at end of file diff --git a/src/components/drawers/project/CreateCertificate.vue b/src/components/drawers/project/CreateCertificate.vue new file mode 100644 index 00000000..beda905d --- /dev/null +++ b/src/components/drawers/project/CreateCertificate.vue @@ -0,0 +1,481 @@ + + + + + {{ edit ? "编辑" : "创建" }}证书 + + + + + + + + + + + 证书名称: + + + + + + + + + + + + 证书封面: + + + + + + + + + + + + 建议尺寸:750*348 格式支持jpg、gif、png、jpeg、svg、bmp + + + + + + 证书说明: + + + + + + + + + + 取消 + 确定 + + + + + + \ No newline at end of file diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index 96e4e266..1e5f5dc0 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -1,6 +1,6 @@ -img + @@ -867,7 +867,48 @@ - + + + + + + + 添加证书 + + + + + + +添加证书 + + + + + + 培训认证证书 + 完成项目 + + ... + + 查看 + 编辑 + 删除 + + + + + + + @@ -1148,6 +1189,30 @@ :itemsType="evaltype" :datasource="evalData" /> + + + + + + + + + + + @@ -1753,7 +1818,11 @@ import ProjectFaceTaskManage from "../../components/drawers/project/ProjectFaceT import ProjectOnlineManage from "../../components/drawers/project/ProjectOnlineManage"; import ProjectHomeWorkManage from "../../components/drawers/project/ProjectHomeWorkManage"; import ProjectExamManage from "../../components/drawers/project/ProjectExamManage"; -import ProjectEvalManage from "../../components/drawers/project/ProjectEvalManage"; +import ProjectEvalManage from "../../components/drawers/project/ProjectEvalManage"; +import AddCertificate from "../../components/drawers/project/AddCertificate"; +import CreateCertificate from "../../components/drawers/project/CreateCertificate"; + + import SubsetManage from "../../components/drawers/SubsetManage"; import MemberList from "../../components/drawers/MemberList"; import ActiveAttendance from "../../components/drawers/ActiveAttendance"; @@ -1786,6 +1855,7 @@ import { toDate, codeUrl } from "../../api/method"; import projSet from "../../components/Modals/projSet"; import { overview } from "../../api/indexProjStu"; import TwoDimensionalCode from "../../components/TwoDimensionalCode.vue"; +import ProjectScore from "../../components/drawers/ProjectScore"; import { useStore } from "vuex"; import ProjectLevel from "@/components/project/ProjectLevel"; import TrainClass from "@/components/project/TrainClass"; @@ -1813,18 +1883,22 @@ export default { SeeStu, ChangeGroup, NoticePub, - // ProjectScore, + ProjectScore, TaskImpStu, projSet, NoticeHis, TwoDimensionalCode, ProjectManager, TableStudent, + AddCertificate, + CreateCertificate }, setup() { const store = useStore(); const route = useRoute(); const state = reactive({ + screenHeight: document.body.clientHeight, + screenWidth: document.body.clientWidth, editRecord: {}, choosedStageIndex:0, hasTask:false, @@ -1964,6 +2038,8 @@ export default { Wvisible: false, //作业管理 TMvisible: false, //考试管理 Evalvisible: false, //测评管理 + ACertificate: false, //证书添加 + CCertificate: false, //证书创建 Stuvisible: false, //添加学员 Importvisible: false, //导入学员 Seevisible: false, //查看学员 @@ -2502,7 +2578,9 @@ export default { commonLevelName: "", evaltype: "", evalData: "", - facestudent: "" + facestudent: "", + + modal1Visible: false, // 证书预览 }); const levelList = reactive({ @@ -4173,6 +4251,15 @@ export default { state.choosedStageIndex = index; } + {/* 证书 */} + function addCertificate(){ + state.ACertificate = true; + } + + function previewPic() { + state.modal1Visible = true; + } + return { ...toRefs(state), ...toRefs(levelList), @@ -4281,6 +4368,8 @@ export default { showCodeModel2, checkType, downloadFile, + addCertificate, + previewPic }; }, }; @@ -4293,6 +4382,11 @@ export default { clear: both; } +.ant-upload.ant-upload-select-picture-card { + width: 170px; + height: 200px; +} + .pubproject { .ant-modal { .ant-modal-body { @@ -4458,6 +4552,18 @@ export default { } } +.xkbtn11 { + cursor: pointer; + width: 130px; + height: 40px; + background: #4ea6ff; + border-radius: 8px; + border: 0; + margin-right: 8px; + color: #fff; + margin-top: 24px; +} + .canclestu { .ant-modal { width: 424px !important;