mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 21:06:44 +08:00
style:增加学习路径图各任务管理界面及参数传递
This commit is contained in:
@@ -440,6 +440,8 @@
|
||||
/>
|
||||
<span class="progresstext" style="margin-left: 10px"
|
||||
>{{
|
||||
item.totalStuNum == 0 ? 0 :
|
||||
item.finishStuNum == 0 ? 0 :
|
||||
parseInt(
|
||||
(item.finishStuNum / item.totalStuNum) * 100
|
||||
)
|
||||
@@ -490,13 +492,15 @@
|
||||
item.type === 11 ||
|
||||
item.type === 12 ||
|
||||
item.type === 9
|
||||
? showTime(item.type, item.name)
|
||||
: item.type === 5 || item.type === 10
|
||||
? showTest(item.type, item.name)
|
||||
? commonModel(item)
|
||||
: item.type === 2
|
||||
? showFace(item.type)
|
||||
? faceTeachModel(item)
|
||||
: item.type === 4
|
||||
? showWork(item.type)
|
||||
? evaluationModel(item)
|
||||
: item.type === 5
|
||||
? examinationModel(item)
|
||||
: item.type === 10
|
||||
? homeworkModel(item)
|
||||
: null
|
||||
"
|
||||
>
|
||||
@@ -1096,6 +1100,26 @@
|
||||
type="课程二维码"
|
||||
/>
|
||||
<!-- 二维码弹窗 -->
|
||||
|
||||
<!-- 面授管理抽屉 开始 -->
|
||||
<router-face-teach-manage v-model:FaceTeachModelVisible="faceTeachModelVisible" :title="faceTeachModelVisibleTitle" :datasource="faceData" />
|
||||
<!-- 面授管理抽屉 结束-->
|
||||
|
||||
<!-- 考试管理抽屉 开始-->
|
||||
<router-examination-manage v-model:ExaminationModelVisible="examinationModelVisible" :title="examinationModelVisibleTitle" :datasource="examinationData" />
|
||||
<!-- 考试管理抽屉 结束-->
|
||||
|
||||
<!-- 测评管理抽屉 开始-->
|
||||
<router-evaluation-manage v-model:EvaluationModelVisible="evaluationModelVisible" :title="evaluationModelVisibleTitle" :datasource="evaluationData" />
|
||||
<!-- 测评管理抽屉 结束-->
|
||||
|
||||
<!-- 作业管理抽屉 开始-->
|
||||
<router-homework-manage v-model:HomeworkModelVisible="homeworkModelVisible" :title="homeworkModelVisibleTitle" :datasource="homeworkData" />
|
||||
<!-- 作业管理抽屉 结束-->
|
||||
|
||||
<!-- 公共管理抽屉 开始-->
|
||||
<router-common-manage v-model:CommonModelVisible="commonModelVisible" :title="commonModelVisibleTitle" :datasource="commonData" />
|
||||
<!-- 公共管理抽屉 结束-->
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
@@ -1126,6 +1150,13 @@ import TwoDimensionalCode from "../../components/TwoDimensionalCode.vue";
|
||||
import TableStudent from "@/components/student/TableStudent";
|
||||
// import * as student from "@/api/student";
|
||||
import { getStuPage } from "@/api/index1";
|
||||
|
||||
import RouterFaceTeachManage from "../../components/drawers/router/RouterFaceTeachManage";
|
||||
import RouterExaminationManage from "../../components/drawers/router/RouterExaminationManage";
|
||||
import RouterEvaluationManage from "../../components/drawers/router/RouterEvaluationManage";
|
||||
import RouterHomeworkManage from "../../components/drawers/router/RouterHomeworkManage";
|
||||
import RouterCommonManage from "../../components/drawers/router/RouterCommonManage";
|
||||
|
||||
export default {
|
||||
name: "LevelAdd",
|
||||
components: {
|
||||
@@ -1142,6 +1173,12 @@ export default {
|
||||
SeeStu,
|
||||
TwoDimensionalCode,
|
||||
TableStudent,
|
||||
|
||||
RouterFaceTeachManage,
|
||||
RouterExaminationManage,
|
||||
RouterEvaluationManage,
|
||||
RouterHomeworkManage,
|
||||
RouterCommonManage
|
||||
},
|
||||
setup() {
|
||||
const router = useRouter();
|
||||
@@ -1307,6 +1344,24 @@ export default {
|
||||
previewEndNum: 0,
|
||||
studyStartNum: 0,
|
||||
studyEndNum: 0,
|
||||
|
||||
faceTeachModelVisible: false,
|
||||
examinationModelVisible: false,
|
||||
evaluationModelVisible: false,
|
||||
homeworkModelVisible: false,
|
||||
commonModelVisible: false,
|
||||
faceTeachModelVisibleTitle: '',
|
||||
examinationModelVisibleTitle: '',
|
||||
evaluationModelVisibleTitle: '',
|
||||
homeworkModelVisibleTitle: '',
|
||||
commonModelVisibleTitle: '',
|
||||
|
||||
faceData: '',
|
||||
examinationData: '',
|
||||
evaluationData: '',
|
||||
homeworkData: '',
|
||||
commonData: ''
|
||||
|
||||
});
|
||||
|
||||
const levelList = reactive({
|
||||
@@ -1525,7 +1580,7 @@ export default {
|
||||
};
|
||||
// 时间管理
|
||||
const showTime = (course) => {
|
||||
console.log("点击管理");
|
||||
console.log("点击管理", course);
|
||||
state.visible = true;
|
||||
state.showTimeText = "【" + course + "】" + "管理";
|
||||
// console.log("state.showTimeText", state.showTimeText);
|
||||
@@ -1571,6 +1626,48 @@ export default {
|
||||
getStudent();
|
||||
}
|
||||
};
|
||||
|
||||
// 面授课点击管理弹框
|
||||
const faceTeachModel = (data) => {
|
||||
console.log(data)
|
||||
state.faceTeachModelVisible = true;
|
||||
state.faceTeachModelVisibleTitle = data.name;
|
||||
state.faceData = data;
|
||||
// 面授课弹框名称 RouterFaceTeachManage
|
||||
}
|
||||
// 考试点击管理弹框
|
||||
const examinationModel = (data) => {
|
||||
console.log(data)
|
||||
state.examinationModelVisible = true;
|
||||
state.examinationModelVisibleTitle = data.name;
|
||||
state.examinationData = data;
|
||||
// 考试弹框名称 RouterExaminationManage
|
||||
}
|
||||
// 测评点击管理弹框
|
||||
const evaluationModel = (data) => {
|
||||
console.log(data)
|
||||
state.evaluationModelVisible = true;
|
||||
state.evaluationModelVisibleTitle = data.name;
|
||||
state.evaluationData = data;
|
||||
// 测评弹框名称 RouterEvaluationManage
|
||||
}
|
||||
// 作业点击管理弹框
|
||||
const homeworkModel = (data) => {
|
||||
console.log(data)
|
||||
state.homeworkModelVisible = true;
|
||||
state.homeworkModelVisibleTitle = data.name;
|
||||
state.homeworkData = data;
|
||||
// 作业弹框名称 RouterHomeworkManage
|
||||
}
|
||||
// 在线、案例、外链、评估、直播、活动点击管理弹框
|
||||
const commonModel = (data) => {
|
||||
console.log(data)
|
||||
state.commonModelVisible = true;
|
||||
state.commonModelVisibleTitle = data.name;
|
||||
state.commonData = data;
|
||||
// 公共模块弹框名称 RouterCommonManage
|
||||
}
|
||||
|
||||
//学员管理------------------------------------------------
|
||||
//获取学员列表
|
||||
const getStudent = () => {
|
||||
@@ -2259,6 +2356,12 @@ export default {
|
||||
showCodeModel2,
|
||||
editLearnInfo,
|
||||
pubIcon,
|
||||
|
||||
faceTeachModel,
|
||||
examinationModel,
|
||||
evaluationModel,
|
||||
homeworkModel,
|
||||
commonModel
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user