mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-21 00:36:46 +08:00
Merge branch 'dongwu_develop' into boe_develop
This commit is contained in:
@@ -33,7 +33,7 @@ import {USER_PERMISSION} from "@/api/ThirdApi";
|
|||||||
|
|
||||||
const store = useStore();
|
const store = useStore();
|
||||||
const isLogin = ref(false);
|
const isLogin = ref(false);
|
||||||
console.log("版本2.1.7------------");
|
console.log("版本2.1.8------------");
|
||||||
|
|
||||||
// 监听关闭浏览器
|
// 监听关闭浏览器
|
||||||
let time1 = ref(0);
|
let time1 = ref(0);
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -146,6 +146,7 @@
|
|||||||
:show-time="{ format: 'HH:mm' }"
|
:show-time="{ format: 'HH:mm' }"
|
||||||
:disabled-date="disabledDate"
|
:disabled-date="disabledDate"
|
||||||
format="YYYY-MM-DD HH:mm"
|
format="YYYY-MM-DD HH:mm"
|
||||||
|
valueFormat="YYYY-MM-DD HH:mm"
|
||||||
v-model:value="dateTime"
|
v-model:value="dateTime"
|
||||||
@change="timeChange"
|
@change="timeChange"
|
||||||
separator="至"
|
separator="至"
|
||||||
@@ -218,7 +219,7 @@
|
|||||||
<span style="margin-right: 3px">报名设置</span>
|
<span style="margin-right: 3px">报名设置</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="b_input" style="width: 88%;">
|
<div class="b_input" style="width: 88%;">
|
||||||
<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 +232,12 @@
|
|||||||
<span style="margin-right: 3px">现场参与</span>
|
<span style="margin-right: 3px">现场参与</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="b_input" style="width: 88%;display: flex;flex-direction: column;">
|
<div class="b_input" style="width: 88%;display: flex;flex-direction: column;">
|
||||||
<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"
|
||||||
style="margin-left: 0px;"
|
style="margin-left: 0px;"
|
||||||
:un-check-value="0">
|
:un-check-value="0">
|
||||||
@@ -511,7 +512,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,
|
||||||
@@ -548,8 +549,10 @@ 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);
|
validated.value = 0;
|
||||||
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);
|
||||||
|
dateTime.value=[formData.value.beginTime,formData.value.endTime]
|
||||||
offCourseNewVisiable.value = true;
|
offCourseNewVisiable.value = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user