mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-21 00:36:46 +08:00
--fix bug
This commit is contained in:
@@ -1028,11 +1028,11 @@ export default {
|
|||||||
data.map((value) => {
|
data.map((value) => {
|
||||||
if (value.stageId != 0) {
|
if (value.stageId != 0) {
|
||||||
let obj = {
|
let obj = {
|
||||||
id: value.stageId,
|
id: value.id,
|
||||||
tit: value.name,
|
tit: value.name,
|
||||||
name: value.remark,
|
name: value.remark,
|
||||||
taskList: value.taskList,
|
taskList: value.taskList,
|
||||||
value: value.stageId,
|
value: value.id,
|
||||||
label: value.name,
|
label: value.name,
|
||||||
courseId: value.courseId ? value.courseId : null,
|
courseId: value.courseId ? value.courseId : null,
|
||||||
};
|
};
|
||||||
@@ -1201,13 +1201,13 @@ export default {
|
|||||||
state.unlockMode = res.data.data.projectInfo.unlockMode
|
state.unlockMode = res.data.data.projectInfo.unlockMode
|
||||||
let arraynew = []
|
let arraynew = []
|
||||||
for (let i = 0; i < data.length; i++) {
|
for (let i = 0; i < data.length; i++) {
|
||||||
if (data[i].stageId !== '0') {
|
if (data[i].id !== '0') {
|
||||||
arraynew.push(data[i])
|
arraynew.push(data[i])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// console.log(arraynew)
|
// console.log(arraynew)
|
||||||
if (arraynew.length !== 0) {
|
if (arraynew.length !== 0) {
|
||||||
state.chooseStageId = Number(arraynew[arraynew.length - 1].stageId);
|
state.chooseStageId = Number(arraynew[arraynew.length - 1].id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
78
src/views/system/DictManage.vue
Normal file
78
src/views/system/DictManage.vue
Normal file
@@ -0,0 +1,78 @@
|
|||||||
|
<!--
|
||||||
|
* @Author: lixg lixg@dongwu-inc.com
|
||||||
|
* @Date: 2022-11-09 09:26:26
|
||||||
|
* @LastEditors: lixg lixg@dongwu-inc.com
|
||||||
|
* @LastEditTime: 2022-11-25 17:37:05
|
||||||
|
* @FilePath: /fe-manage/src/views/courselibrary/CourseManage.vue
|
||||||
|
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
||||||
|
-->
|
||||||
|
<!-- 课件管理页面 -->
|
||||||
|
<!-- sandbox="allow-forms allow-scripts allow-same-origin allow-popups" -->
|
||||||
|
<template>
|
||||||
|
<div class="courseManage">
|
||||||
|
<iframe
|
||||||
|
id="iframe"
|
||||||
|
style="width: 100%; height: 100%"
|
||||||
|
src="http://43.143.139.204/platform/"
|
||||||
|
frameborder="0"
|
||||||
|
name="myframe"
|
||||||
|
security="restricted"
|
||||||
|
sandbox="allow-forms allow-scripts allow-same-origin allow-popups"
|
||||||
|
></iframe>
|
||||||
|
<OnlineClassModelStudent ref="stuRef"></OnlineClassModelStudent>
|
||||||
|
<div @click="test">
|
||||||
|
asdfasdf
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
<script setup>
|
||||||
|
import {onMounted, ref} from "vue";
|
||||||
|
import OnlineClassModelStudent from "@/components/student/OnlineClassModelStudent";
|
||||||
|
|
||||||
|
const stuRef = ref()
|
||||||
|
|
||||||
|
onMounted(()=>{
|
||||||
|
window.openStudentModel = stuRef.value.openDrawer
|
||||||
|
})
|
||||||
|
|
||||||
|
function test(){
|
||||||
|
window.openStudentModel()
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<style lang="scss">
|
||||||
|
.courseManage {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.btnn {
|
||||||
|
height: 72px;
|
||||||
|
width: 100%;
|
||||||
|
background-color: #fff;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
|
||||||
|
.btn1 {
|
||||||
|
width: 100px;
|
||||||
|
height: 40px;
|
||||||
|
border: 1px solid #4ea6ff;
|
||||||
|
border-radius: 8px;
|
||||||
|
color: #4ea6ff;
|
||||||
|
background-color: #fff;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
.btn2 {
|
||||||
|
cursor: pointer;
|
||||||
|
width: 100px;
|
||||||
|
height: 40px;
|
||||||
|
background: #4ea6ff;
|
||||||
|
border-radius: 8px;
|
||||||
|
border: 0;
|
||||||
|
margin-left: 15px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
Reference in New Issue
Block a user