From 630524b5ef1e9a7247292ad538ed7d5d4de9ff96 Mon Sep 17 00:00:00 2001 From: songwc Date: Mon, 24 Oct 2022 18:17:29 +0800 Subject: [PATCH] =?UTF-8?q?style:=E4=BF=AE=E6=94=B9=E8=B7=AF=E5=BE=84?= =?UTF-8?q?=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/learningpath/LevelAdd.vue | 770 ++++++++++++++++++++++++--- src/views/projectcenter/TaskPage.vue | 48 +- 2 files changed, 730 insertions(+), 88 deletions(-) diff --git a/src/views/learningpath/LevelAdd.vue b/src/views/learningpath/LevelAdd.vue index d1107707..eb1cd246 100644 --- a/src/views/learningpath/LevelAdd.vue +++ b/src/views/learningpath/LevelAdd.vue @@ -45,7 +45,8 @@ :tabBarStyle="{ marginLeft: '10px' }" > -
+ + -
-
-
-
{{ item.lev }}
-
-
{{ item.name }}
-
- 当前关卡 - {{ item.count }} - 个人 -
-
-
-
-
- {{ item.online }} -
-
在线
-
-
-
-
- {{ item.homework }} -
-
作业
-
-
-
-
- {{ item.juan }} -
-
问卷
-
-
-
-
- {{ item.ballot }} -
-
投票
-
-
-
-
- {{ item.test }} -
-
考试
-
-
-
- 编辑 -
-
更多
-
-
-
复制
-
删除
-
-
-
-
-
-
- -
+
+
--> + +
+
+
任务大纲
+ + + + 编辑 + +
+
+ + + +
+ +
+
+
+ +
+
+
+
「{{ item.course }}」
+
{{ item.name }}
+
+
+
+
+ {{ item.classify }} +
+
+
+
开始时间
+
{{ item.beginTime }}
+
+
+
+ {{ item.complete }}/{{ item.total }}人 +
+
+ + {{ item.percent }}% +
+
+
+
+ 学员 +
+
+ 考勤 +
+
+ 二维码 +
+
+ 管理 +
+
+
+
+
+
+
@@ -372,7 +501,7 @@
+ + +
+
+
+
+
+ 面授管理 +
+
+
+
+
+
+
下载二维码
+
200*200
+
400*400
+
800*800
+
+
+
+
+ + + + + + + + + + + +
@@ -452,9 +621,25 @@ import { ref, reactive, toRefs } from "vue"; import AddStu from "../../components/drawers/AddLevelAddStu"; import ImpStu from "../../components/drawers/AddLevelImportStu"; import CheckStu from "../../components/drawers/CheckStu"; +import FaceStu from "../../components/drawers/FaceStu"; +import ActiveAttendance from "../../components/drawers/ActiveAttendance"; +import TimeManage from "../../components/drawers/TimeManage"; +import TestManage from "../../components/drawers/TestManage"; +import FaceManage from "../../components/drawers/FaceManage"; +import WorkManage from "../../components/drawers/WorkManage"; export default { name: "LevelAdd", - components: { AddStu, ImpStu, CheckStu }, + components: { + AddStu, + ImpStu, + CheckStu, + FaceStu, + ActiveAttendance, + TimeManage, + TestManage, + FaceManage, + WorkManage, + }, methods: {}, setup() { const state = reactive({ @@ -464,6 +649,7 @@ export default { AddSvisible: false, //添加学员抽屉 AddImpStuvisible: false, //导入学员抽屉 CheckStuvisible: false, //学员管理的查看抽屉 + Wvisible: false, //作业管理 projectNameListt: [ { id: 1, @@ -542,16 +728,131 @@ export default { label: "关卡2", }, ], + //任务大纲列表 + taskSyllabus: [ + { + text: "阶段1腾飞班阶段1", + children: [ + { + course: "在线", + name: "时间管理", + classify: "选修", + beginTime: "2022-09-10 14:03", + total: 50, //总人数 + complete: 20, //完成人数 + percent: 40, + }, + { + course: "直播", + name: "管理直播间", + classify: "必修", + beginTime: "2022-09-12 14:03", + total: 50, //总人数 + complete: 10, //完成人数 + percent: 20, + }, + { + course: "面授", + name: "管理面授课", + classify: "必修", + beginTime: "2022-09-16 14:03", + total: 80, //总人数 + complete: 0, //完成人数 + percent: 0, + }, + { + course: "活动", + name: "管理活动", + classify: "必修", + beginTime: "2022-09-16 14:03", + total: 50, //总人数 + complete: 40, //完成人数 + percent: 80, + }, + { + course: "作业", + name: "管理者作业", + classify: "选修", + beginTime: "2022-09-16 14:03", + total: 50, //总人数 + complete: 30, //完成人数 + percent: 60, + }, + { + course: "考试", + name: "管理者考试", + classify: "必修", + beginTime: "2022-09-16 14:03", + total: 50, //总人数 + complete: 50, //完成人数 + percent: 100, + }, + ], + }, + { + text: "阶段2腾飞班阶段2", + children: [ + { + course: "讨论", + name: "时间管理", + classify: "选修", + beginTime: "2022-09-16 14:03", + total: 50, //总人数 + complete: 20, //完成人数 + percent: 40, + }, + { + course: "测评", + name: "管理直播间", + classify: "必修", + beginTime: "2022-09-16 14:03", + total: 50, //总人数 + complete: 10, //完成人数 + percent: 20, + }, + { + course: "调研", + name: "管理直播间", + classify: "必修", + beginTime: "2022-09-16 14:03", + total: 50, //总人数 + complete: 10, //完成人数 + percent: 20, + }, + { + course: "投票", + name: "管理直播间", + classify: "必修", + beginTime: "2022-09-16 14:03", + total: 50, //总人数 + complete: 10, //完成人数 + percent: 20, + }, + ], + }, + ], activeKey: ref("1"), value: ref(" "), checked2: false, currentPage: 1, tableDataTotal: 100, pageSize: 10, - visible: false, + visiblene: false, sh: false, closeDeleteAll: false, curLevel: "", + taskSyllabusActive: 0, + //在线管理等页面传递参数 + showTimeText: "", + //考试、测评页面传递参数 + showTestText: "", + FSvisible: false, //面授学员 + AAvisible: false, //活动/直播考勤 + copyModal: false, //面授二维码弹窗 + closeCopy: false, //面授二维码关闭图标 + visible: false, //时间管理 + TMvisible: false, //考试管理 + FaceVisivle: false, //面授管理 //关卡的数据 level: [ // { @@ -799,6 +1100,42 @@ export default { const showCheckStu = () => { state.CheckStuvisible = true; }; + const showCopyModal = () => { + state.copyModal = true; + }; + const closeCopyModal = () => { + state.copyModal = false; + }; + //面授学员的弹窗 + const showFS = () => { + state.FSvisible = true; + }; + //活动考勤的抽屉 + const showAA = () => { + state.AAvisible = true; + }; + // 时间管理 + const showTime = (course, name) => { + console.log("点击管理"); + state.visible = true; + state.showTimeText = "【" + course + "】" + name; + // console.log("state.showTimeText", state.showTimeText); + }; + //考试管理的抽屉 + const showTest = (course, name) => { + state.TMvisible = true; + state.showTestText = "【" + course + "】" + name; + }; + //新增 + const showFace = () => { + //面授管理的抽屉 + // console.log("点击管理"); + state.FaceVisivle = true; + }; + //作业管理的抽屉 + const showWork = () => { + state.Wvisible = true; + }; return { ...toRefs(state), selectProjectName, @@ -814,6 +1151,14 @@ export default { showAddStu, showImpStu, showCheckStu, + showFS, + showAA, + showCopyModal, + closeCopyModal, + showTime, + showTest, + showFace, + showWork, }; }, }; @@ -936,6 +1281,107 @@ export default { } } } +.facemanageModal { + .ant-modal { + width: 532px !important; + height: 428px !important; + .ant-modal-content { + width: 532px !important; + height: 428px !important; + .ant-modal-body { + width: 532px !important; + height: 428px !important; + padding: 0 !important; + .delete { + z-index: 999; + width: 532px; + height: 428px; + background: #ffffff; + box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.21); + border-radius: 4px; + // position: absolute; + // left: 50%; + // top: 10%; + // transform: translate(-50%, -50%); + .del_header { + position: absolute; + width: calc(100%); + height: 68px; + background: linear-gradient( + rgba(78, 166, 255, 0.2) 0%, + rgba(78, 166, 255, 0) 100% + ); + } + .del_main { + width: 100%; + position: relative; + .header { + display: flex; + align-items: center; + padding-top: 20px; + padding-left: 26px; + font-size: 16px; + .icon { + width: 16px; + height: 16px; + margin-right: 10px; + background-image: url(@/assets/images/coursewareManage/QR.png); + background-size: 100% 100%; + } + .close_exit { + position: absolute; + right: 42px; + cursor: pointer; + width: 20px; + height: 20px; + background-image: url(@/assets/images/coursewareManage/close.png); + background-size: 100% 100%; + } + } + .body { + width: 100%; + margin: 34px auto 56px auto; + display: flex; + justify-content: center; + align-items: center; + flex-direction: column; + // background-color: red; + position: relative; + .back { + position: absolute; + top: 30px; + font-size: 12px; + font-weight: 400; + color: #666666; + } + } + .footerr { + display: flex; + justify-content: center; + align-items: center; + .onload { + color: rgba(51, 51, 51, 1); + font-size: 14px; + } + .onloadpx { + width: 80px; + height: 32px; + border: 1px solid rgba(56, 125, 247, 1); + border-radius: 4px; + color: rgba(56, 125, 247, 1); + margin-left: 20px; + display: flex; + justify-content: center; + align-items: center; + cursor: pointer; + } + } + } + } + } + } + } +} .changeModal { .ant-modal { width: 549px !important; @@ -1471,6 +1917,192 @@ export default { } } } + + .onerow { + //width: 100%; + display: flex; + height: 40px; + position: relative; + margin-top: 15px; + margin-left: 38px; + //margin-right: 38px; + .taskmain { + font-size: 18px; + padding-top: 7px; + color: #000000; + } + .btn { + position: absolute; + top: 0; + right: 168px; + background-color: #409eff; + width: 130px; + height: 40px; + border-radius: 8px; + border: 1px solid #409eff; + color: #ffffff; + cursor: pointer; + } + .edit { + position: absolute; + right: 38px; + top: 0; + color: #409eff; + width: 100px; + height: 40px; + border: 1px solid #409eff; + border-radius: 8px; + .editimg { + width: 15px; + height: 15px; + margin-top: -2px; + margin-left: 25px; + margin-right: 5px; + } + .editext { + line-height: 40px; + } + } + .edit:hover { + color: #ffffff; + background-color: #409eff; + cursor: pointer; + .editimg { + background-image: url("../../assets/images/projectadd/edit1.png"); + } + } + } + .taskSyllabus { + // flex: 1; + overflow-x: auto; + + .ant-collapse { + border: 0px; + background-color: rgba(255, 255, 255, 0); + min-width: 1040px; + } + + .ant-collapse-content > .ant-collapse-content-box { + padding-top: 0px; + padding-bottom: 0px; + } + .ant-collapse > .ant-collapse-item { + border: 0px; + } + .ant-collapse-header { + display: flex; + height: 49px; + background-color: #eff4fc; + align-items: center; + margin-top: 20px; + margin-left: 38px; + margin-right: 40px; + font-size: 16px; + font-weight: 400; + color: #409eff; + line-height: 36px; + .ant-collapse-arrow { + margin-left: 15px !important; + } + } + .ant-collapse-content { + border-top: 0px; + } + } + .course { + //width: 100%; + flex-shrink: 0; + margin-right: 24px; + + display: flex; + flex-wrap: wrap; + align-items: center; + padding: 25px 0px; + margin-left: 22px; + + //margin: 0 12px; + border: 1px solid #f2f6fc; + border-top: 0px; + .first { + //position: relative; + display: flex; + flex-grow: 1; + align-items: center; + //height: 71px; + margin-left: 12px; + margin-right: 50px; + + .iconame { + //position: absolute; + color: #4f5156; + font-size: 16px; + margin-left: 4px; + } + .icontext { + //positipn: absolute; + color: #999ba3; + font-size: 14px; + margin-left: 12px; + width: 83px; + } + } + .type { + //height: 71px; + display: flex; + flex-grow: 1; + align-items: center; + margin-right: 50px; + .typename { + width: 63px; + height: 23px; + color: #5dc988; + font-size: 14px; + background-color: #f2f6fc; + border-radius: 4px; + text-align: center; + } + .typename1 { + width: 63px; + height: 23px; + color: #f0f4fe; + font-size: 14px; + background-color: #5dc988; + border-radius: 4px; + text-align: center; + } + } + .time { + //height: 71px; + flex-grow: 1; + margin-right: 50px; + .timetext { + font-size: 14px; + color: #999ba3; + } + } + .progress { + width: 168px; + margin-left: 10px; + margin-right: 50px; + flex-grow: 1; + .progresstext { + color: #ffc067; + font-size: 14px; + } + } + .operations { + display: flex; + width: 200px; + //flex-grow: 1; + .operation { + color: #4ea6ff; + font-size: 14px; + padding: 10px; + margin-left: auto; + } + } + } + .xwid { // width: 100%; // height: 100%; diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index aeeedb2e..078557c2 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -372,9 +372,10 @@ ? 'flex' : 'none', }" - @click=" - item.course === '面授' ? showCopyModal(item.course) : null + item.course === '面授' + ? showCopyModal(item.course) + : null " > 二维码 @@ -788,13 +789,12 @@
- - +
排行榜
@@ -1488,7 +1488,7 @@
-
+
下载二维码
@@ -1538,7 +1538,6 @@ export default { NoticePub, ProjectScore, TaskImpStu, - }, setup() { const state = reactive({ @@ -2298,19 +2297,27 @@ export default { justifyContent: "center", }} > -
{ - if(value.excellent === false){ - state.canclestu = true; - }else if(value.excellent === true){ - state.canclestu = false; - } - }}> +
{ + if (value.excellent === false) { + state.canclestu = true; + } else if (value.excellent === true) { + state.canclestu = false; + } + }} + > {value.excellent ? "取消优秀" : "优秀学员"}
-
{ - state.Seevisible = true; - }}>查看
+
{ + state.Seevisible = true; + }} + > + 查看 +
-
{ +
{ state.Changevisible = true; - }}>换组
+ }} + > + 换组 +