From 164a9633882466ae9da46264ba7ddba00434bb6e Mon Sep 17 00:00:00 2001 From: wyx Date: Fri, 9 Dec 2022 09:37:53 +0800 Subject: [PATCH 01/10] =?UTF-8?q?fix:=E5=85=B1=E4=BA=AB=E6=96=87=E6=A1=A3?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E6=A0=B7=E5=BC=8F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/learningpath/LevelAdd.vue | 10 ++++++---- src/views/projectcenter/LibraryAdd.vue | 9 +++++---- src/views/projectcenter/TaskPage.vue | 3 ++- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/src/views/learningpath/LevelAdd.vue b/src/views/learningpath/LevelAdd.vue index e2b6cc2e..08c580b5 100644 --- a/src/views/learningpath/LevelAdd.vue +++ b/src/views/learningpath/LevelAdd.vue @@ -854,6 +854,7 @@
- {{ + {{ item.name }} 删除 @@ -2645,8 +2646,9 @@ export default { .docListStyle { display: flex; - width: 300px !important; - justify-content: space-around; + width: 500px !important; + align-items: center; + justify-content: space-between; } .del_btnbox { diff --git a/src/views/projectcenter/LibraryAdd.vue b/src/views/projectcenter/LibraryAdd.vue index f5072de6..91c1d2be 100644 --- a/src/views/projectcenter/LibraryAdd.vue +++ b/src/views/projectcenter/LibraryAdd.vue @@ -638,11 +638,11 @@ " alt="" /> - {{ + {{ item.name }} 删除 @@ -1951,8 +1951,9 @@ export default defineComponent({ } .docListStyle { display: flex; - width: 300px !important; - justify-content: space-around; + width: 500px !important; + align-items: center; + justify-content: space-between; } .taskBox { .onerow { diff --git a/src/views/projectcenter/TaskPage.vue b/src/views/projectcenter/TaskPage.vue index 8ffc471c..e95626e9 100644 --- a/src/views/projectcenter/TaskPage.vue +++ b/src/views/projectcenter/TaskPage.vue @@ -1236,6 +1236,7 @@
- {{ + {{ item.name }} Date: Fri, 9 Dec 2022 11:06:07 +0800 Subject: [PATCH 02/10] =?UTF-8?q?fix:=E5=A2=9E=E5=8A=A0=E9=99=84=E4=BB=B6?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E5=90=8D=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/common/FJUpload.vue | 1 + src/views/courselibrary/CoursewareManage.vue | 10 +++++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/components/common/FJUpload.vue b/src/components/common/FJUpload.vue index 5701585b..4ea93d9c 100644 --- a/src/components/common/FJUpload.vue +++ b/src/components/common/FJUpload.vue @@ -35,6 +35,7 @@ :class="`${{uploading: 'updatacolor3', done: 'updatacolor' ,error: 'updatacolor2'}[item.status] || 'updatacolor'}`" :style="{width:`${item.status==='uploading'?parseInt(item.percent):100}%`}">
{{ {uploading: '正在上传', done: '上传完成', error: '上传失败'}[item.status] || '' }}
diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 3704ec16..32285a7e 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -629,6 +629,9 @@ +
+ {{ item.slice(item.lastIndexOf('/')+1) }} +
+
+ {{ item.slice(item.lastIndexOf('/')+1) }} +
From a76e232a52a5e4133f4850fcf0d4c804d2c82ecd Mon Sep 17 00:00:00 2001 From: wyx Date: Fri, 9 Dec 2022 12:19:41 +0800 Subject: [PATCH 05/10] =?UTF-8?q?fix:=E5=BE=85=E5=AE=A1=E6=A0=B8=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E9=99=84=E4=BB=B6=E5=90=8D=E7=A7=B0=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/components/seeModal.vue | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/src/views/courselibrary/components/seeModal.vue b/src/views/courselibrary/components/seeModal.vue index 23909941..0377642b 100644 --- a/src/views/courselibrary/components/seeModal.vue +++ b/src/views/courselibrary/components/seeModal.vue @@ -156,6 +156,7 @@
@@ -205,13 +206,16 @@
- {{ item.name }} + + + {{ item.indexOf('-')!==-1?item.slice(item.lastIndexOf('/')+1,item.indexOf('-')) + item.slice(item.lastIndexOf('.')) :item }} +
-
上传完成
+
上传完成
100% @@ -642,21 +646,21 @@ export default defineComponent({ .updataxq { position: absolute; - right: 2px; + right: -62px; top: -30px; color: #57c887; } .updataxq2 { position: absolute; - right: 2px; + right: -62px; top: -30px; color: #ff7474; } .updataxq3 { position: absolute; - right: 2px; + right: -62px; top: -30px; color: #388be1; } From 573532c727d6937d89809a1b74fb362cdaa3818f Mon Sep 17 00:00:00 2001 From: wyx Date: Fri, 9 Dec 2022 14:20:44 +0800 Subject: [PATCH 06/10] =?UTF-8?q?fix:=E9=A1=B9=E7=9B=AE=E9=98=B6=E6=AE=B5?= =?UTF-8?q?=E5=85=A8=E9=83=A8=E5=88=A0=E9=99=A4=E5=8F=8A=E6=9C=80=E5=90=8E?= =?UTF-8?q?=E4=B8=80=E9=98=B6=E6=AE=B5=E5=88=A0=E9=99=A4=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/CoursewareManage.vue | 4 +- src/views/projectcenter/TaskAdd.vue | 51 +++++++++++++++++--- 2 files changed, 45 insertions(+), 10 deletions(-) diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 32285a7e..486eef1f 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -75,10 +75,10 @@
重置
- +
新建课程
diff --git a/src/views/projectcenter/TaskAdd.vue b/src/views/projectcenter/TaskAdd.vue index 55e2a5b2..4c0bb277 100644 --- a/src/views/projectcenter/TaskAdd.vue +++ b/src/views/projectcenter/TaskAdd.vue @@ -5,11 +5,11 @@
阶段 - - - - - +
@@ -880,13 +880,13 @@
- 您确定要取消阶段吗 + 您确定要删除所有阶段吗?
取消
-
+
确定
@@ -1020,7 +1020,7 @@
- 您确定要删除此阶段 + {{level.length==1?"当前阶段为第一阶段,删除后任务将被移出,为无阶段模式,确认删除阶段吗?":"您确定要删除此阶段"}}
@@ -1680,6 +1680,7 @@ export default { const showDeleteStage = (id) => { state.deleteStageId = id; state.deleteStageModal = true; + console.log(state.level) }; //关闭删除阶段弹窗 const closeDeleteStage = () => { @@ -1815,6 +1816,39 @@ export default { getTableData(final.taskList); }; + // 删除所有阶段 + const removeAllLevel = () => { + // state.cancelModal = false; + console.log(state.level) + let removeArr = state.level; + for(let i=0;i { + console.log("删除阶段成功", res); + if(removeArr.length-1==i){ + message.destroy(); + message.success("删除全部阶段成功"); + closeDeleteStage(); + localStorage.setItem("stageId", ""); + getTask(); + state.cancelModal = false; + } + }) + .catch((err) => { + if(removeArr.length-1==i){ + console.log("删除阶段失败", err); + message.destroy(); + message.success("删除全部阶段失败"); + state.cancelModal = false; + } + }); + } + } + //选择单个任务 const changeRow = (e) => { //selectRow:已经选择的任务的id数组 @@ -2019,6 +2053,7 @@ export default { temporaryStorage, submitStorage, cancelStorage, + removeAllLevel }; }, }; From c853af33169e752f8d0103b139809ccf64d3fb13 Mon Sep 17 00:00:00 2001 From: lixg Date: Fri, 9 Dec 2022 14:22:39 +0800 Subject: [PATCH 07/10] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E5=BC=80=E8=AF=BE?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=90=9C=E7=B4=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/config.js | 4 +- src/views/courselibrary/CoursewareManage.vue | 71 ++++--- src/views/learningpath/LevelAdd.vue | 25 ++- src/views/projectcenter/LibraryAdd.vue | 191 ++++++++++--------- 4 files changed, 172 insertions(+), 119 deletions(-) diff --git a/src/api/config.js b/src/api/config.js index 773efa21..adba7185 100644 --- a/src/api/config.js +++ b/src/api/config.js @@ -2,7 +2,7 @@ * @Author: lixg lixg@dongwu-inc.com * @Date: 2022-11-21 14:32:52 * @LastEditors: lixg lixg@dongwu-inc.com - * @LastEditTime: 2022-12-08 15:47:05 + * @LastEditTime: 2022-12-09 10:04:32 * @FilePath: /fe-manage/src/api/config.js * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ @@ -56,7 +56,7 @@ http.interceptors.response.use( return response; } else { if (code === 1000) { - window.open("https://u-pre.boe.com/web/", '_self'); + // window.open("https://u-pre.boe.com/web/", '_self'); // window.open("http://111.231.196.214:12013/manage/login", '_self'); } console.log("api %o", msg); diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 3704ec16..93ad5b99 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -221,7 +221,7 @@
- +
@@ -231,7 +231,7 @@ alt="" />
- + 是否设置目录
@@ -257,7 +257,7 @@
-
+