修改生产环境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
# 教师节上传zip文件夹id
VUE_APP_TOOL_FOLDERID=1148996610925531136
# 专业力必修API前缀
VUE_APP_BASE_API_GROWTH=/growth
VUE_APP_PROXY_URL=//u.boe.com/

View File

@@ -1,6 +1,6 @@
<template>
<div class="growth-invist-root">
<div class="contentMain drawerMain">
<div class="contentMain">
<div class="main_item">
<div class="fi_input">
<a-input
@@ -180,121 +180,103 @@ async function confirm(record) {
width: 1300px !important;
}
.growth-invist-root {
.drawerMain {
.contentMain {
margin: 16px 0;
.header {
height: 73px;
border-bottom: 1px solid #e8e8e8;
.main_item {
display: flex;
justify-content: space-between;
align-items: center;
.headerTitle {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
margin-left: 24px;
margin-bottom: 20px;
margin-top: 20px;
.fi_input {
margin-right: 20px;
}
}
.contentMain {
.main_item {
.btns {
margin-right: 20px;
padding: 0px 26px 0px 26px;
height: 38px;
background: #4ea6ff;
border-radius: 8px;
//border: 1px solid rgba(64, 158, 255, 1);
display: flex;
align-items: center;
margin-bottom: 20px;
margin-top: 20px;
.fi_input {
margin-right: 20px;
justify-content: center;
margin-right: 14px;
flex-shrink: 0;
cursor: pointer;
.search {
width: 15px;
height: 17px;
background-image: url("../../assets/images/courseManage/search0.png");
background-size: 100% 100%;
}
.btns {
margin-right: 20px;
padding: 0px 26px 0px 26px;
height: 38px;
background: #4ea6ff;
border-radius: 8px;
//border: 1px solid rgba(64, 158, 255, 1);
display: flex;
align-items: center;
justify-content: center;
margin-right: 14px;
flex-shrink: 0;
cursor: pointer;
.btnText {
font-size: 14px;
font-weight: 400;
color: #ffffff;
line-height: 36px;
margin-left: 5px;
}
}
.search {
width: 15px;
height: 17px;
background-image: url("../../assets/images/courseManage/search0.png");
background-size: 100% 100%;
}
.btnsn {
padding: 0px 26px 0px 26px;
height: 38px;
background: #ffffff;
border-radius: 8px;
border: 1px solid rgba(64, 158, 255, 1);
display: flex;
align-items: center;
justify-content: center;
margin-right: 14px;
flex-shrink: 0;
cursor: pointer;
.btnText {
font-size: 14px;
font-weight: 400;
color: #ffffff;
line-height: 36px;
margin-left: 5px;
}
.search {
width: 16px;
height: 18px;
background-image: url("../../assets/images/courseManage/reset1.png");
background-size: 100% 100%;
}
.btnsn {
padding: 0px 26px 0px 26px;
height: 38px;
background: #ffffff;
border-radius: 8px;
border: 1px solid rgba(64, 158, 255, 1);
display: flex;
align-items: center;
justify-content: center;
margin-right: 14px;
flex-shrink: 0;
cursor: pointer;
.search {
width: 16px;
height: 18px;
background-image: url("../../assets/images/courseManage/reset1.png");
background-size: 100% 100%;
}
.btnText {
font-size: 14px;
font-weight: 400;
color: #4ea6ff;
line-height: 36px;
margin-left: 5px;
}
.btnText {
font-size: 14px;
font-weight: 400;
color: #4ea6ff;
line-height: 36px;
margin-left: 5px;
}
}
}
.main_table {
position: relative;
padding-bottom: 80px;
}
.main_table {
position: relative;
padding-bottom: 80px;
.ant-checkbox-wrapper {
align-items: center;
margin-top: -2px;
}
.ant-checkbox-wrapper {
align-items: center;
margin-top: -2px;
}
.ant-table-selection-column {
padding: 0px !important;
padding-left: 5px !important;
}
.ant-table-selection-column {
padding: 0px !important;
padding-left: 5px !important;
}
.ant-table-thead > tr > th {
background-color: rgba(239, 244, 252, 1);
}
.ant-table-thead > tr > th {
background-color: rgba(239, 244, 252, 1);
}
th.h {
background-color: #eff4fc !important;
}
th.h {
background-color: #eff4fc !important;
}
.ant-table-tbody
> tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
> td {
background: #f6f9fd;
}
.ant-table-tbody
> tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected)
> td {
background: #f6f9fd;
}
}
}

View File

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

View File

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