mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 19:36:46 +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 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";
|
export const ASSESSMENT_DETAIL = "/assessment/queryAssessmentDetailById post";
|
||||||
|
|||||||
@@ -1,24 +1,29 @@
|
|||||||
<template>
|
<template>
|
||||||
<a-checkbox @change="change">
|
<a-checkbox v-model:checked="checked" @change="change">
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
</a-checkbox>
|
</a-checkbox>
|
||||||
</template>
|
</template>
|
||||||
<script setup>
|
<script setup>
|
||||||
import {defineEmits, defineProps} from "vue";
|
import {defineEmits, defineProps, ref, watchEffect} from "vue";
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
checkValue: {
|
modelValue: {
|
||||||
type: Boolean,
|
type: [Boolean, Number, String],
|
||||||
default: true
|
|
||||||
},
|
|
||||||
unCheckValue: {
|
|
||||||
type: Boolean,
|
|
||||||
default: false
|
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>
|
</script>
|
||||||
|
|||||||
@@ -218,7 +218,7 @@
|
|||||||
<span style="margin-right: 3px">报名设置</span>
|
<span style="margin-right: 3px">报名设置</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="b_input">
|
<div class="b_input">
|
||||||
<CheckBox v-model:checked="formData.applyFlag"
|
<CheckBox v-model="formData.applyFlag"
|
||||||
:check-value="1"
|
:check-value="1"
|
||||||
:un-check-value="0">
|
:un-check-value="0">
|
||||||
<span style="color: #6d7584">是否允许公开报名</span>
|
<span style="color: #6d7584">是否允许公开报名</span>
|
||||||
@@ -231,12 +231,12 @@
|
|||||||
<span style="margin-right: 3px">现场参与</span>
|
<span style="margin-right: 3px">现场参与</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="b_input">
|
<div class="b_input">
|
||||||
<CheckBox v-model:checked="formData.projectSignFlag"
|
<CheckBox v-model="formData.projectSignFlag"
|
||||||
:check-value="1"
|
:check-value="1"
|
||||||
:un-check-value="0">
|
:un-check-value="0">
|
||||||
<span style="color: #6d7584">允许项目内人员临时到场参加(不在本场次培训的人员可以临时签到参加)</span>
|
<span style="color: #6d7584">允许项目内人员临时到场参加(不在本场次培训的人员可以临时签到参加)</span>
|
||||||
</CheckBox>
|
</CheckBox>
|
||||||
<CheckBox v-model:checked="formData.signFlag"
|
<CheckBox v-model="formData.signFlag"
|
||||||
:check-value="1"
|
:check-value="1"
|
||||||
:un-check-value="0">
|
:un-check-value="0">
|
||||||
<span style="color: #6d7584">允许项目外人员临时到场参加</span>
|
<span style="color: #6d7584">允许项目外人员临时到场参加</span>
|
||||||
@@ -510,7 +510,7 @@ function confirm() {
|
|||||||
|
|
||||||
const createNewCourse = () => {
|
const createNewCourse = () => {
|
||||||
resetFields({
|
resetFields({
|
||||||
id:null,
|
id: null,
|
||||||
type: props.type,
|
type: props.type,
|
||||||
offcourseId: params.value.offcourseId,
|
offcourseId: params.value.offcourseId,
|
||||||
draftTaskId: params.value.draftTaskId,
|
draftTaskId: params.value.draftTaskId,
|
||||||
@@ -547,8 +547,8 @@ async function coursePlanConfirm() {
|
|||||||
|
|
||||||
function planEdit(record) {
|
function planEdit(record) {
|
||||||
formData.value = { ...record };
|
formData.value = { ...record };
|
||||||
formData.value.homeWorkId && request(WORK_DETAIL, { workId: formData.value.homeWorkId }).then(res => formData.value.workInfo = res.data);
|
formData.value.homeWorkId && request(WORK_DETAIL(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.testId && request(EXAM_DETAIL(formData.value.testId), {}).then(res => formData.value.examInfo = res.data);
|
||||||
offCourseNewVisiable.value = true;
|
offCourseNewVisiable.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user