fix:修改未审核课程预览附件名称显示问题

This commit is contained in:
lixg
2022-12-14 15:46:33 +08:00
parent f0603eda14
commit 497b7449cb
2 changed files with 19 additions and 13 deletions

View File

@@ -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,

View File

@@ -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;