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

View File

@@ -442,12 +442,16 @@ const durationText = computed(() =>
); );
const closeDrawer = () => { const closeDrawer = () => {
imageUrl.value = ""; if (step.value > 1) {
visible.value = false; step.value = 1;
dateTime.value = []; } else {
formData.reset(); imageUrl.value = "";
formData.value.info = {}; visible.value = false;
resetFields(); dateTime.value = [];
formData.reset();
formData.value.info = {};
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();