mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/student-h5.git
synced 2025-12-15 05:46:47 +08:00
feat:修改面授课下载
This commit is contained in:
@@ -14,8 +14,8 @@
|
|||||||
:key="i"
|
:key="i"
|
||||||
class="cha"
|
class="cha"
|
||||||
:style="{
|
:style="{
|
||||||
top: `${imgAttr.positions[i]?.top - (current === i ? 1 : 0)}px`,
|
top: `${imgAttr?.positions[i]?.top - (current === i ? 1 : 0)}px`,
|
||||||
left: `${imgAttr.positions[i]?.left - (current === i ? 11 : 0)}px`,
|
left: `${imgAttr?.positions[i]?.left - (current === i ? 11 : 0)}px`,
|
||||||
}"
|
}"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@@ -152,10 +152,14 @@ const imageAttrs = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
const imgAttr = computed(
|
const imgAttr = computed(() => {
|
||||||
() =>
|
if (props.img) {
|
||||||
imageAttrs[Object.keys(imageAttrs).find((e) => props.img.includes(e))] || {}
|
return (
|
||||||
);
|
imageAttrs[Object.keys(imageAttrs).find((e) => props.img.includes(e))] ||
|
||||||
|
{}
|
||||||
|
);
|
||||||
|
}
|
||||||
|
});
|
||||||
const imgAttrindex = computed(
|
const imgAttrindex = computed(
|
||||||
() => {
|
() => {
|
||||||
// console.log("props.img.includes1", props.img);
|
// console.log("props.img.includes1", props.img);
|
||||||
|
|||||||
@@ -420,16 +420,11 @@ const handleClick = (tab, event) => {
|
|||||||
const download = (url) => {
|
const download = (url) => {
|
||||||
console.log(
|
console.log(
|
||||||
"url2",
|
"url2",
|
||||||
window.location.protocol +
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url
|
||||||
import.meta.env.VITE_BOE_API_URL +
|
|
||||||
import.meta.env.VITE_FILE_PATH +
|
|
||||||
url
|
|
||||||
);
|
);
|
||||||
window.open(
|
window.open(
|
||||||
window.location.protocol +
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url,
|
||||||
import.meta.env.VITE_BOE_API_URL +
|
"_top"
|
||||||
import.meta.env.VITE_FILE_PATH +
|
|
||||||
url
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
const downloads = (url) => {
|
const downloads = (url) => {
|
||||||
|
|||||||
@@ -85,7 +85,7 @@
|
|||||||
</el-tab-pane> -->
|
</el-tab-pane> -->
|
||||||
<el-tab-pane label="材料下载" name="third">
|
<el-tab-pane label="材料下载" name="third">
|
||||||
<div
|
<div
|
||||||
v-if="!data.planDto?.attach"
|
v-if="!data.offcourseDto?.attach"
|
||||||
style="
|
style="
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
@@ -99,7 +99,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div v-else>
|
<div v-else>
|
||||||
<div
|
<div
|
||||||
v-for="(el, index) in formateArr(data.planDto.attach)"
|
v-for="(el, index) in formateArr(data.offcourseDto.attach)"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="enclosure"
|
class="enclosure"
|
||||||
:style="{ borderBottom: '1px solid rgba(56, 125, 247, 0.2)' }"
|
:style="{ borderBottom: '1px solid rgba(56, 125, 247, 0.2)' }"
|
||||||
@@ -182,16 +182,11 @@ const handleClick = (tab, event) => {
|
|||||||
const download = (url) => {
|
const download = (url) => {
|
||||||
console.log(
|
console.log(
|
||||||
"url2",
|
"url2",
|
||||||
window.location.protocol +
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url
|
||||||
import.meta.env.VITE_BOE_API_URL +
|
|
||||||
import.meta.env.VITE_FILE_PATH +
|
|
||||||
url
|
|
||||||
);
|
);
|
||||||
window.open(
|
window.open(
|
||||||
window.location.protocol +
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url,
|
||||||
import.meta.env.VITE_BOE_API_URL +
|
"_top"
|
||||||
import.meta.env.VITE_FILE_PATH +
|
|
||||||
url
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
const downloads = (url) => {
|
const downloads = (url) => {
|
||||||
|
|||||||
@@ -186,16 +186,11 @@ const handleClick = (tab, event) => {
|
|||||||
const download = (url) => {
|
const download = (url) => {
|
||||||
console.log(
|
console.log(
|
||||||
"url2",
|
"url2",
|
||||||
window.location.protocol +
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url
|
||||||
import.meta.env.VITE_BOE_API_URL +
|
|
||||||
import.meta.env.VITE_FILE_PATH +
|
|
||||||
url
|
|
||||||
);
|
);
|
||||||
window.open(
|
window.open(
|
||||||
window.location.protocol +
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url,
|
||||||
import.meta.env.VITE_BOE_API_URL +
|
"_top"
|
||||||
import.meta.env.VITE_FILE_PATH +
|
|
||||||
url
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
const downloads = (url) => {
|
const downloads = (url) => {
|
||||||
|
|||||||
@@ -195,16 +195,11 @@ const handleClick = (tab, event) => {
|
|||||||
const download = (url) => {
|
const download = (url) => {
|
||||||
console.log(
|
console.log(
|
||||||
"url2",
|
"url2",
|
||||||
window.location.protocol +
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url
|
||||||
import.meta.env.VITE_BOE_API_URL +
|
|
||||||
import.meta.env.VITE_FILE_PATH +
|
|
||||||
url
|
|
||||||
);
|
);
|
||||||
window.open(
|
window.open(
|
||||||
window.location.protocol +
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url,
|
||||||
import.meta.env.VITE_BOE_API_URL +
|
"_top"
|
||||||
import.meta.env.VITE_FILE_PATH +
|
|
||||||
url
|
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
* @Author: lixg lixg@dongwu-inc.com
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
* @Date: 2023-01-13 11:42:48
|
* @Date: 2023-01-13 11:42:48
|
||||||
* @LastEditors: lixg lixg@dongwu-inc.com
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
* @LastEditTime: 2023-03-03 20:16:42
|
* @LastEditTime: 2023-03-04 10:42:36
|
||||||
* @FilePath: /stu_h5/src/views/filestorag/fileStorag.vue
|
* @FilePath: /stu_h5/src/views/filestorag/fileStorag.vue
|
||||||
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
-->
|
-->
|
||||||
@@ -109,17 +109,12 @@ const fileList = computed(() =>
|
|||||||
//下载
|
//下载
|
||||||
function downloadFile(url) {
|
function downloadFile(url) {
|
||||||
console.log(
|
console.log(
|
||||||
"url2",
|
"url222",
|
||||||
window.location.protocol +
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url
|
||||||
import.meta.env.VITE_BOE_API_URL +
|
|
||||||
import.meta.env.VITE_FILE_PATH +
|
|
||||||
url
|
|
||||||
);
|
);
|
||||||
window.open(
|
window.open(
|
||||||
window.location.protocol +
|
import.meta.env.VITE_BOE_API_URL + import.meta.env.VITE_FILE_PATH + url,
|
||||||
import.meta.env.VITE_BOE_API_URL +
|
"_top"
|
||||||
import.meta.env.VITE_FILE_PATH +
|
|
||||||
url
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user