From 497b7449cbcbb6011009cfb6cbfe29b9c72990da Mon Sep 17 00:00:00 2001 From: lixg Date: Wed, 14 Dec 2022 15:46:33 +0800 Subject: [PATCH] =?UTF-8?q?fix:=E4=BF=AE=E6=94=B9=E6=9C=AA=E5=AE=A1?= =?UTF-8?q?=E6=A0=B8=E8=AF=BE=E7=A8=8B=E9=A2=84=E8=A7=88=E9=99=84=E4=BB=B6?= =?UTF-8?q?=E5=90=8D=E7=A7=B0=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/CoursewareManage.vue | 22 +++++++++---------- .../courselibrary/components/seeModal.vue | 10 +++++++-- 2 files changed, 19 insertions(+), 13 deletions(-) diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 1c4b42f6..5692e525 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -2119,7 +2119,7 @@ item.indexOf("-") !== -1 ? item.slice( item.lastIndexOf("/") + 1, - item.indexOf("-") + item.lastIndexOf("-") ) + item.slice(item.lastIndexOf(".")) : item }} @@ -3274,16 +3274,16 @@ const columns7 = [ return text ? text : "-"; }, }, - // { - // title: "岗位", - // width: 300, - // dataIndex: "postion", - // key: "3", - // align: "center", - // customRender: ({ text }) => { - // return text ? text : "-"; - // }, - // }, + // { + // title: "岗位", + // width: 300, + // dataIndex: "postion", + // key: "3", + // align: "center", + // customRender: ({ text }) => { + // return text ? text : "-"; + // }, + // }, { title: "Band", width: 200, diff --git a/src/views/courselibrary/components/seeModal.vue b/src/views/courselibrary/components/seeModal.vue index 76ee9e31..1d9971d6 100644 --- a/src/views/courselibrary/components/seeModal.vue +++ b/src/views/courselibrary/components/seeModal.vue @@ -224,7 +224,7 @@ item.indexOf("-") !== -1 ? item.slice( item.lastIndexOf("/") + 1, - item.indexOf("-") + item.lastIndexOf("-") ) + item.slice(item.lastIndexOf(".")) : item }} @@ -410,8 +410,14 @@ export default defineComponent({ ], }, ], + ceshi: "https://u-pre.boe.com/upload/测试下载ppt2-1671002026755.pptx", + ceshi2: "http://111.231.196.214:12016/测试下载ppt3-1671001683026.pptx", }); - console.log("detail", props.detail); + + // item.slice( + // item.lastIndexOf("/") + 1, + // item.indexOf("-") + // ) + item.slice(item.lastIndexOf(".")) const filterTxt = (txt) => { if (txt) { return txt;