mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 03:16:44 +08:00
--demand 面授课
This commit is contained in:
@@ -18,8 +18,8 @@ export const COURSE_PLAN_EDIT = "/admin/offcourse/editPlan post";
|
||||
//删除开课
|
||||
export const DEL_PLAN = id => `/admin/offcourse/deletePlan?offcoursePlanId=${id} delete`;
|
||||
//作业详情
|
||||
export const WORK_DETAIL = "/work/queryWorkDetailById post";
|
||||
export const WORK_DETAIL = workId => `/work/queryWorkDetailById?workId=${workId} post`;
|
||||
//考试
|
||||
export const EXAM_DETAIL = "/examination/queryExaminationDetailById post";
|
||||
export const EXAM_DETAIL = examinationId => `/examination/queryExaminationDetailById?examinationId=${examinationId} post`;
|
||||
//评估
|
||||
export const ASSESSMENT_DETAIL = "/assessment/queryAssessmentDetailById post";
|
||||
|
||||
@@ -1,24 +1,29 @@
|
||||
<template>
|
||||
<a-checkbox @change="change">
|
||||
<a-checkbox v-model:checked="checked" @change="change">
|
||||
<slot></slot>
|
||||
</a-checkbox>
|
||||
</template>
|
||||
<script setup>
|
||||
import {defineEmits, defineProps} from "vue";
|
||||
import {defineEmits, defineProps, ref, watchEffect} from "vue";
|
||||
|
||||
const props = defineProps({
|
||||
checkValue: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
unCheckValue: {
|
||||
type: Boolean,
|
||||
modelValue: {
|
||||
type: [Boolean, Number, String],
|
||||
default: false
|
||||
},
|
||||
checkValue: {
|
||||
type: [Boolean, Number, String],
|
||||
default: false
|
||||
},
|
||||
unCheckValue: {
|
||||
type: [Boolean, Number, String],
|
||||
default: true
|
||||
},
|
||||
});
|
||||
const emit = defineEmits(['update:modelValue']);
|
||||
const emit = defineEmits(["update:modelValue"]);
|
||||
const checked = ref(props.modelValue);
|
||||
watchEffect(() => checked.value = props.modelValue);
|
||||
|
||||
const change = ({ target: { checked } }) => emit("update:modelValue", checked ? props.checkValue : props.unCheckValue);
|
||||
|
||||
function change({ target: { checked } }) {
|
||||
emit("update:modelValue", checked ? props.checkValue : props.unCheckValue);
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -218,7 +218,7 @@
|
||||
<span style="margin-right: 3px">报名设置</span>
|
||||
</div>
|
||||
<div class="b_input">
|
||||
<CheckBox v-model:checked="formData.applyFlag"
|
||||
<CheckBox v-model="formData.applyFlag"
|
||||
:check-value="1"
|
||||
:un-check-value="0">
|
||||
<span style="color: #6d7584">是否允许公开报名</span>
|
||||
@@ -231,12 +231,12 @@
|
||||
<span style="margin-right: 3px">现场参与</span>
|
||||
</div>
|
||||
<div class="b_input">
|
||||
<CheckBox v-model:checked="formData.projectSignFlag"
|
||||
<CheckBox v-model="formData.projectSignFlag"
|
||||
:check-value="1"
|
||||
:un-check-value="0">
|
||||
<span style="color: #6d7584">允许项目内人员临时到场参加(不在本场次培训的人员可以临时签到参加)</span>
|
||||
</CheckBox>
|
||||
<CheckBox v-model:checked="formData.signFlag"
|
||||
<CheckBox v-model="formData.signFlag"
|
||||
:check-value="1"
|
||||
:un-check-value="0">
|
||||
<span style="color: #6d7584">允许项目外人员临时到场参加</span>
|
||||
@@ -510,7 +510,7 @@ function confirm() {
|
||||
|
||||
const createNewCourse = () => {
|
||||
resetFields({
|
||||
id:null,
|
||||
id: null,
|
||||
type: props.type,
|
||||
offcourseId: params.value.offcourseId,
|
||||
draftTaskId: params.value.draftTaskId,
|
||||
@@ -547,8 +547,8 @@ async function coursePlanConfirm() {
|
||||
|
||||
function planEdit(record) {
|
||||
formData.value = { ...record };
|
||||
formData.value.homeWorkId && request(WORK_DETAIL, { workId: formData.value.homeWorkId }).then(res => formData.value.workInfo = res.data);
|
||||
formData.value.testId && request(EXAM_DETAIL, { examinationId: formData.value.testId }).then(res => formData.value.examInfo = res.data);
|
||||
formData.value.homeWorkId && request(WORK_DETAIL(formData.value.homeWorkId), {}).then(res => formData.value.workInfo = res.data);
|
||||
formData.value.testId && request(EXAM_DETAIL(formData.value.testId), {}).then(res => formData.value.examInfo = res.data);
|
||||
offCourseNewVisiable.value = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user