From d362e2a258b9bb210a4ad9f4e26da2882fe31647 Mon Sep 17 00:00:00 2001 From: lixg Date: Thu, 12 Jan 2023 17:42:43 +0800 Subject: [PATCH 1/2] =?UTF-8?q?feat:=E4=BF=AE=E6=94=B9=E6=B4=BB=E5=8A=A8?= =?UTF-8?q?=E7=9B=B4=E6=92=AD=E4=BB=BB=E5=8A=A1=E7=AD=BE=E5=88=B0=E6=97=B6?= =?UTF-8?q?=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/assets/images/leveladd/reset.png | Bin 0 -> 734 bytes src/components/OpenPages.vue | 6 +- src/components/drawers/AddActive.vue | 106 +- src/components/drawers/AddLive.vue | 57 +- src/components/student/TableStudent.vue | 9 +- src/views/learningpath/LevelAdd.vue | 109 +- src/views/projectcenter/ProjectManage.vue | 1244 +++++++++++---------- 7 files changed, 812 insertions(+), 719 deletions(-) create mode 100644 src/assets/images/leveladd/reset.png diff --git a/src/assets/images/leveladd/reset.png b/src/assets/images/leveladd/reset.png new file mode 100644 index 0000000000000000000000000000000000000000..6dc4a01a4d69506e1df327cd79366fe98b106560 GIT binary patch literal 734 zcmV<40wMj0P)Px%m`OxIR5(wq)L&@LVI0Tt_xHE++h}G=6eTxEOHtf#p~;^MImh3f>>P*TVnR_v zNY=Q)g%%}qV=d>fO_ty9SlQL&f|Lsv=0dq}u|-Ix%$)Q4=&YulV@GG@xqF`H`@H%- z&-ZyA<3Bem=7p0=U|cbABb%k?QG(ZX-8kJ*0x%U@R|J%WQ`8u=BWmREwrqsjYz4Ij z+X85N7vkkW)J6;8zrdO}n~+52v)# zpf!MKI%d!Ez{p)4BA_X7S)Y#D`%=K#+nP4Bf*xSdi`l_^Fr_<)YAw`(mjYPp$8AkvhMkCz7q^{L z0V63r6nyhzmM8>I2^tL6c`^G?3c4k!#g5U3aoMZ4n|a{oq!xytR}O7{yunNPI4 zvpFZ@u)#o9?0XcqcaxoS(GRvTc&rH3Y_Nc{f+vH+v`pM;(Jhy9UH%pG8~Mi%BpE>s Q=l}o!07*qoM6N<$f{Z9*`~Uy| literal 0 HcmV?d00001 diff --git a/src/components/OpenPages.vue b/src/components/OpenPages.vue index b683f706..10f7d8ee 100644 --- a/src/components/OpenPages.vue +++ b/src/components/OpenPages.vue @@ -56,18 +56,17 @@ export default { const closePage = (value) => { console.log("点击关闭页面", value, state.openList); - + state.openList.map((item, key) => { if (item.href === value.href) { if (state.openList.length === 1) { if (state.openList[0].href !== "/learningpath") { state.openList.splice(key, 1); $router.push({ path: "/learningpath" }); - }else{ + } else { message.destroy(); return message.warning("至少保留一个页面"); } - } else { if (value.active) { if (key === state.openList.length - 1) { @@ -117,7 +116,6 @@ export default { .close { width: 50px; height: 50px; - position: absolute; display: flex; diff --git a/src/components/drawers/AddActive.vue b/src/components/drawers/AddActive.vue index fc0bcc0c..976c579b 100644 --- a/src/components/drawers/AddActive.vue +++ b/src/components/drawers/AddActive.vue @@ -31,14 +31,13 @@
- - +
@@ -51,10 +50,11 @@
@@ -74,7 +74,7 @@ 分钟 @@ -93,7 +93,7 @@
@@ -109,13 +109,14 @@
活动公告:
-
+
@@ -129,7 +130,8 @@ placeholder="请输入活动说明" allow-clear :rows="6" - show-count :maxlength="200" + show-count + :maxlength="200" />
@@ -158,7 +160,9 @@ " v-model:value="inputV4" /> - 分钟允许签到 + 分钟允许签到
活动开始后: @@ -174,7 +178,9 @@ " v-model:value="inputV5" /> - 分钟允许签到 + 分钟允许签到
- -
+
-
- -
+
-
@@ -318,7 +321,7 @@ export default { textV2: "", radioV1: "", time: "", - isClick: false + isClick: false, }); const closeDrawer = () => { ctx.emit("update:addactiveVisible", false); @@ -357,7 +360,8 @@ export default { api .getActivity(props.EditActiveId) .then((res) => { - //更新讨论信息 + console.log("获取活动信息", res); + //获取活动信息 state.inputV1 = res.data.data.activityName; state.textV1 = res.data.data.activityNotice; state.textV2 = res.data.data.activityExplain; @@ -387,7 +391,7 @@ export default { }; const updateTask = async (res) => { if (props.isLevel == 1) { - if(!props.isactive){ + if (!props.isactive) { message.destroy(); return message.warning("请先选中关卡"); } @@ -466,11 +470,11 @@ export default { return message.warning("请输入活动地址"); } - if(state.isClick){ - message.destroy(); - message.error('请勿频繁点击') - return - } + if (state.isClick) { + message.destroy(); + message.error("请勿频繁点击"); + return; + } state.isClick = true; let obj = { @@ -483,11 +487,12 @@ export default { activityNotice: state.textV1, //活动公告 activityStartTime: dayjs(state.time[0]).format("YYYY-MM-DD HH:mm"), //活动开始时间 activityTag: "", //活动逻辑删除标识 - afterSignIn: state.inputV5, //活动开始后多少分钟签到 - beforeSignIn: state.inputV4, //活动开始前多少分钟签到 + afterSignIn: state.inputV5 ? state.inputV5 : 0, //活动开始后多少分钟签到 + beforeSignIn: state.inputV4 ? state.inputV4 : 0, //活动开始前多少分钟签到 signOutTime: state.inputV6, //签退开始时间 standardSettings: state.radioV1, //标准设置 }; + console.log("obj", obj); if (props.edit) { //更新编辑活动信息 api @@ -526,28 +531,28 @@ export default { }; const range = (start, end) => { - const result = []; + const result = []; - for (let i = start; i < end; i++) { - result.push(i); - } + for (let i = start; i < end; i++) { + result.push(i); + } - return result; - }; - const disabledDate = (current) => { - // Can not select days before today and today - console.log('1111', dayjs().endOf('day')) - return current && current < dayjs().startOf('day'); - }; + return result; + }; + const disabledDate = (current) => { + // Can not select days before today and today + console.log("1111", dayjs().endOf("day")); + return current && current < dayjs().startOf("day"); + }; + + const disabledDateTime = () => { + return { + disabledHours: () => range(0, 24).splice(4, 20), + disabledMinutes: () => range(30, 60), + disabledSeconds: () => [55, 56], + }; + }; - const disabledDateTime = () => { - return { - disabledHours: () => range(0, 24).splice(4, 20), - disabledMinutes: () => range(30, 60), - disabledSeconds: () => [55, 56], - }; - }; - return { ...toRefs(state), afterVisibleChange, @@ -556,9 +561,7 @@ export default { cloradio1, updateActivityInfo, disabledDateTime, - disabledDate - - + disabledDate, }; }, }; @@ -701,7 +704,6 @@ export default { } .setbox { - flex-wrap: wrap; margin-top: 10px; margin-bottom: 24px; diff --git a/src/components/drawers/AddLive.vue b/src/components/drawers/AddLive.vue index 7f66403e..bd04ce35 100644 --- a/src/components/drawers/AddLive.vue +++ b/src/components/drawers/AddLive.vue @@ -71,7 +71,8 @@
{ ctx.emit("update:addliveVisible", false); @@ -701,11 +702,11 @@ export default { message.destroy(); return message.warning("请输入直播公告"); } - if(state.isClick){ - message.destroy(); - message.error('请勿频繁点击') - return - } + if (state.isClick) { + message.destroy(); + message.error("请勿频繁点击"); + return; + } state.isClick = true; const regular = /^[+]{0,1}(\d+)$/; @@ -722,8 +723,8 @@ export default { "Y-M-D h:m" ); state.obj = { - afterSignIn: state.inputV6, - beforeSignIn: state.inputV7, + afterSignIn: state.inputV6 ? state.inputV6 : 0, + beforeSignIn: state.inputV7 ? state.inputV7 : 0, assessmentId: state.assessmentId == null || state.assessmentId == "" ? 0 @@ -888,27 +889,27 @@ export default { state.isEvaluate = "0"; }; const range = (start, end) => { - const result = []; + const result = []; - for (let i = start; i < end; i++) { - result.push(i); - } + for (let i = start; i < end; i++) { + result.push(i); + } - return result; - }; - const disabledDate = (current) => { - // Can not select days before today and today - console.log('1111', dayjs().endOf('day')) - return current && current < dayjs().startOf('day'); - }; + return result; + }; + const disabledDate = (current) => { + // Can not select days before today and today + console.log("1111", dayjs().endOf("day")); + return current && current < dayjs().startOf("day"); + }; - const disabledDateTime = () => { - return { - disabledHours: () => range(0, 24).splice(4, 20), - disabledMinutes: () => range(30, 60), - disabledSeconds: () => [55, 56], - }; - }; + const disabledDateTime = () => { + return { + disabledHours: () => range(0, 24).splice(4, 20), + disabledMinutes: () => range(30, 60), + disabledSeconds: () => [55, 56], + }; + }; return { ...toRefs(state), afterVisibleChange, @@ -927,7 +928,7 @@ export default { showAssessment, removePG, disabledDateTime, - disabledDate + disabledDate, }; }, }; diff --git a/src/components/student/TableStudent.vue b/src/components/student/TableStudent.vue index ff141ab1..7b847b60 100644 --- a/src/components/student/TableStudent.vue +++ b/src/components/student/TableStudent.vue @@ -64,8 +64,13 @@ - 重置 + + + 重置 diff --git a/src/views/learningpath/LevelAdd.vue b/src/views/learningpath/LevelAdd.vue index f434f414..c4edee1e 100644 --- a/src/views/learningpath/LevelAdd.vue +++ b/src/views/learningpath/LevelAdd.vue @@ -536,9 +536,8 @@
- - - + +
@@ -668,7 +666,13 @@ > @@ -694,7 +698,6 @@ " class="docListStyle" > - - +
- +
- +
- +
- +
- - + +
@@ -742,7 +793,11 @@ :title="item.name" >{{ item.name }} - 下载 + 下载 - { console.log("router-list", res); state.fileList = JSON.parse(res.data.data.routerInfo.attach); - console.log('asdasdasd-------->',state.fileList) + console.log("asdasdasd-------->", state.fileList); state.docChecked = res.data.data.routerInfo.attachSwitch == 1 ? true : false; if (res.data.data.routerInfo.status == 1) { diff --git a/src/views/projectcenter/ProjectManage.vue b/src/views/projectcenter/ProjectManage.vue index c754afae..c47725c3 100644 --- a/src/views/projectcenter/ProjectManage.vue +++ b/src/views/projectcenter/ProjectManage.vue @@ -6,41 +6,41 @@
@@ -55,8 +55,13 @@ :placeholder="[' 开始时间', ' 结束时间']" />--> - +
@@ -80,26 +85,26 @@
@@ -108,18 +113,18 @@