修改生产环境API

This commit is contained in:
Pengxiansen
2025-01-23 15:54:18 +08:00
parent 990380ac1a
commit 1feef41fdc
4 changed files with 92 additions and 102 deletions

View File

@@ -5,6 +5,8 @@ VUE_APP_BASE_API=/manageApi
VUE_APP_PIC_FOLDERID=1148997110156759040 VUE_APP_PIC_FOLDERID=1148997110156759040
# 教师节上传zip文件夹id # 教师节上传zip文件夹id
VUE_APP_TOOL_FOLDERID=1148996610925531136 VUE_APP_TOOL_FOLDERID=1148996610925531136
# 专业力必修API前缀
VUE_APP_BASE_API_GROWTH=/growth
VUE_APP_PROXY_URL=//u.boe.com/ VUE_APP_PROXY_URL=//u.boe.com/

View File

@@ -1,6 +1,6 @@
<template> <template>
<div class="growth-invist-root"> <div class="growth-invist-root">
<div class="contentMain drawerMain"> <div class="contentMain">
<div class="main_item"> <div class="main_item">
<div class="fi_input"> <div class="fi_input">
<a-input <a-input
@@ -180,25 +180,8 @@ async function confirm(record) {
width: 1300px !important; width: 1300px !important;
} }
.growth-invist-root { .growth-invist-root {
.drawerMain {
margin: 16px 0;
.header {
height: 73px;
border-bottom: 1px solid #e8e8e8;
display: flex;
justify-content: space-between;
align-items: center;
.headerTitle {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
margin-left: 24px;
}
}
.contentMain { .contentMain {
margin: 16px 0;
.main_item { .main_item {
display: flex; display: flex;
align-items: center; align-items: center;
@@ -297,5 +280,4 @@ async function confirm(record) {
} }
} }
} }
}
</style> </style>

View File

@@ -442,12 +442,16 @@ const durationText = computed(() =>
); );
const closeDrawer = () => { const closeDrawer = () => {
if (step.value > 1) {
step.value = 1;
} else {
imageUrl.value = ""; imageUrl.value = "";
visible.value = false; visible.value = false;
dateTime.value = []; dateTime.value = [];
formData.reset(); formData.reset();
formData.value.info = {}; formData.value.info = {};
resetFields(); resetFields();
}
}; };
function timeChange(time, timeStr) { function timeChange(time, timeStr) {
formData.value.info.liveStartTime = timeStr[0]; formData.value.info.liveStartTime = timeStr[0];

View File

@@ -558,7 +558,9 @@ export default {
// 创建a标签并为其添加属性 // 创建a标签并为其添加属性
const link = document.createElement("a"); const link = document.createElement("a");
link.href = url; link.href = url;
link.download = "专业力必修-录入学员模版.xlsx"; link.download = `${
state.TASK_TYPE[props.datasource.taskType].name
}${props.datasource.taskName}.xlsx`;
// 触发点击事件执行下载 // 触发点击事件执行下载
document.body.appendChild(link); document.body.appendChild(link);
link.click(); link.click();