|
@@ -83,7 +83,7 @@
|
|
|
<el-button
|
|
<el-button
|
|
|
type="primary"
|
|
type="primary"
|
|
|
@click="handleNewButtonClick"
|
|
@click="handleNewButtonClick"
|
|
|
- :style="{ backgroundColor: showPracticalCourse ? '#ffcc00' : '#fee78a' }"
|
|
|
|
|
|
|
+ :style="{ background: showPracticalCourse ? 'linear-gradient(to bottom, #ffefb0, #ffcc00)' : '#fee78a' }"
|
|
|
>
|
|
>
|
|
|
{{ showPracticalCourse ? '返回通识课' : '实操课' }}
|
|
{{ showPracticalCourse ? '返回通识课' : '实操课' }}
|
|
|
</el-button>
|
|
</el-button>
|
|
@@ -177,6 +177,7 @@ const showPracticalCourse = ref(false)
|
|
|
// 统一函数来获取课程大纲数据 通识课/实操课
|
|
// 统一函数来获取课程大纲数据 通识课/实操课
|
|
|
const fetchClassOutline = async (classId) => {
|
|
const fetchClassOutline = async (classId) => {
|
|
|
try {
|
|
try {
|
|
|
|
|
+ // 保存通识课数据
|
|
|
const res = await ClassOutline(classId)
|
|
const res = await ClassOutline(classId)
|
|
|
console.log(res);
|
|
console.log(res);
|
|
|
if (res.code === 0) {
|
|
if (res.code === 0) {
|
|
@@ -186,9 +187,9 @@ const fetchClassOutline = async (classId) => {
|
|
|
item.ctTypeSort = item.ctTypeSort > 9 ? item.ctTypeSort : "0" + item.ctTypeSort
|
|
item.ctTypeSort = item.ctTypeSort > 9 ? item.ctTypeSort : "0" + item.ctTypeSort
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
|
|
+ // 保存实操课数据
|
|
|
const Scres = await ClassOutlineSc(classId)
|
|
const Scres = await ClassOutlineSc(classId)
|
|
|
console.log(Scres);
|
|
console.log(Scres);
|
|
|
- // 保存实操课数据
|
|
|
|
|
if (Scres.code === 0) {
|
|
if (Scres.code === 0) {
|
|
|
ClassOutlineScData.value = Scres.data
|
|
ClassOutlineScData.value = Scres.data
|
|
|
ClassOutlineScData.value.map((item, index) => {
|
|
ClassOutlineScData.value.map((item, index) => {
|
|
@@ -308,7 +309,7 @@ const querySearch = (queryString, cb) => {
|
|
|
// 搜索选择处理方法
|
|
// 搜索选择处理方法
|
|
|
const handleSearchSelect = item => {
|
|
const handleSearchSelect = item => {
|
|
|
goToAIExperience(item)
|
|
goToAIExperience(item)
|
|
|
- // 添加以下代码清空输入框
|
|
|
|
|
|
|
+ // 清空输入框
|
|
|
SearchInput.value = '';
|
|
SearchInput.value = '';
|
|
|
}
|
|
}
|
|
|
// 修改过滤逻辑,直接使用classOutlineData
|
|
// 修改过滤逻辑,直接使用classOutlineData
|
|
@@ -336,7 +337,6 @@ const goToAIExperience = outlineData => {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
router.push({
|
|
router.push({
|
|
|
path: '/ai-develop', // 跳转视频页面
|
|
path: '/ai-develop', // 跳转视频页面
|
|
|
query: { typeId: outlineData.id, typeName: outlineData.ctType }
|
|
query: { typeId: outlineData.id, typeName: outlineData.ctType }
|
|
@@ -709,7 +709,7 @@ const goToAIExperience = outlineData => {
|
|
|
|
|
|
|
|
.box-2 {
|
|
.box-2 {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
- flex: 1;
|
|
|
|
|
|
|
+ // flex: 1;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
display: flex; // 确保子元素水平排列
|
|
display: flex; // 确保子元素水平排列
|
|
|
flex-wrap: wrap; // 允许子元素换行;
|
|
flex-wrap: wrap; // 允许子元素换行;
|