This commit is contained in:
joshen
2025-03-19 21:03:47 +08:00
parent 92cbc0bbcd
commit 11277aebe2

View File

@@ -781,7 +781,7 @@
</div> </div>
</div> </div>
</div> </div>
</div> </div>
<!-- 无数据样式 --> <!-- 无数据样式 -->
<div class="notable" v-if="tableData6.length === 0"> <div class="notable" v-if="tableData6.length === 0">
@@ -975,7 +975,7 @@
:placeholder="[' 开始时间', ' 结束时间']" :placeholder="[' 开始时间', ' 结束时间']"
:disabled="editBeginClass" :disabled="editBeginClass"
/> --> /> -->
<a-date-picker <a-date-picker
style="width: 45%; height: 40px; border-radius: 8px" style="width: 45%; height: 40px; border-radius: 8px"
:show-time="{ format: 'HH:mm' }" :show-time="{ format: 'HH:mm' }"
:format="['YYYY-MM-DD HH:mm','YYYY/MM/DD HH:mm']" :format="['YYYY-MM-DD HH:mm','YYYY/MM/DD HH:mm']"
@@ -1172,7 +1172,7 @@
<span v-if="xjkkradioVEnd" style="color: #6d7584">天</span> <span v-if="xjkkradioVEnd" style="color: #6d7584">天</span>
</div> </div>
</div> </div>
<div class="cstm_items"> <div class="cstm_items">
<div class="signbox"> <div class="signbox">
<span style="margin-right: 3px">评估设置</span> <span style="margin-right: 3px">评估设置</span>
@@ -2317,7 +2317,7 @@ export default defineComponent({
const store = useStore(); const store = useStore();
const sysTypeOptions = computed(() => store.state.content_type); const sysTypeOptions = computed(() => store.state.content_type);
const durationText = computed(() => state.xjkkinputV3?.length==2?dayjs(state.xjkkinputV3[1]).diff(dayjs(state.xjkkinputV3[0]),'minute')|| '请输入持续时间':'请输入持续时间'); const durationText = computed(() => state.xjkkinputV3?.length==2?dayjs(state.xjkkinputV3[1]).diff(dayjs(state.xjkkinputV3[0]),'minute')|| '请输入持续时间':'请输入持续时间');
const state = reactive({ const state = reactive({
tableStudentChange: null, tableStudentChange: null,
isAssessmentId: null, isAssessmentId: null,
@@ -3679,7 +3679,7 @@ function onFocusEnd(){
}).catch(err=>{ }).catch(err=>{
message.error(err.message=='timeout of 15000ms exceeded'?'系统超时,请稍后再试':err.data.msg) message.error(err.message=='timeout of 15000ms exceeded'?'系统超时,请稍后再试':err.data.msg)
state.tableCoursePlanLoading = false state.tableCoursePlanLoading = false
res ={ res ={
data:{data:{ data:{data:{
"pageNo": "1", "pageNo": "1",
"pageSize": "10", "pageSize": "10",
@@ -3940,7 +3940,7 @@ function onFocusEnd(){
state.changeName = true state.changeName = true
state.xjkkinputV3 = [moment().format('YYYY-MM-DD HH:mm'),''] state.xjkkinputV3 = [moment().format('YYYY-MM-DD HH:mm'),'']
state.examInfo = {}; // state.examInfo = {};
//清除缓存 //清除缓存
state.cstm_hs = true; state.cstm_hs = true;
}; };
@@ -4003,7 +4003,7 @@ function onFocusEnd(){
let t = state.signCom ? "1," : "0,"; let t = state.signCom ? "1," : "0,";
let p = state.comLeave ? "1" : "0"; let p = state.comLeave ? "1" : "0";
let type = t.concat(p); let type = t.concat(p);
let postData = { const postData = {
offcourseId: state.offcourseId, offcourseId: state.offcourseId,
id: state.offcoursePlanId, //开课ID,不传代表新增 id: state.offcoursePlanId, //开课ID,不传代表新增
address: state.xjkkinputV2, address: state.xjkkinputV2,
@@ -4027,12 +4027,12 @@ function onFocusEnd(){
// teacher: state.member.name, // teacher: state.member.name,
offteachers: state.offteachers, offteachers: state.offteachers,
workInfo: state.workInfo, //提交的作业信息 workInfo: state.workInfo, //提交的作业信息
//提交的考试信息 examInfo: state.examInfo, //提交的考试信息
beforeStart: state.beforeValue, //考勤 开始前 beforeStart: state.beforeValue, //考勤 开始前
afterStart: state.afterStartValue, //考勤 开始后 afterStart: state.afterStartValue, //考勤 开始后
score: state.scoreParams, score: state.scoreParams,
}; };
if(state.kk_eidt){ /*if(state.kk_eidt){
//编辑 //编辑
postData.examInfo = state.examInfo; postData.examInfo = state.examInfo;
}else{ }else{
@@ -4043,7 +4043,7 @@ function onFocusEnd(){
} }
console.log("postData gxdata data" ,postData); console.log("postData gxdata data" ,postData);*/
if(!postData.name){ if(!postData.name){
return message.error("请输入开课名称"); return message.error("请输入开课名称");
} }
@@ -4111,7 +4111,7 @@ function onFocusEnd(){
}); });
state.cstm_hs = false; state.cstm_hs = false;
}; };
let editBeginClass = ref(false) let editBeginClass = ref(false)
//编辑开课 //编辑开课
const handelEditStu = async (item) => { const handelEditStu = async (item) => {
@@ -4354,7 +4354,7 @@ function onFocusEnd(){
align: "center", align: "center",
customRender: ({ record }) => customRender: ({ record }) =>
record.examinationScore ? record.examinationScore : "-", record.examinationScore ? record.examinationScore : "-",
}, },
{ {
title: "结业状态", title: "结业状态",
@@ -5291,13 +5291,13 @@ function onFocusEnd(){
}; };
const disabledDateTime = () => { const disabledDateTime = () => {
// const dateOnlyStart = new Date(state.xjkkinputV3[0].split(' ')[0]); // const dateOnlyStart = new Date(state.xjkkinputV3[0].split(' ')[0]);
// const dateOnlyEnd = new Date(state.xjkkinputV3[1].split(' ')[0]); // const dateOnlyEnd = new Date(state.xjkkinputV3[1].split(' ')[0]);
// if(dateOnlyStart.getTime()==dateOnlyEnd.getTime()){ // if(dateOnlyStart.getTime()==dateOnlyEnd.getTime()){
// const currentMinute = dayjs(state.xjkkinputV3[0]).minute(); // const currentMinute = dayjs(state.xjkkinputV3[0]).minute();
// return { // return {
// disabledHours: () => range(0, dayjs(state.xjkkinputV3[0]).hour()).splice(0, dayjs(state.xjkkinputV3[0]).hour()), // disabledHours: () => range(0, dayjs(state.xjkkinputV3[0]).hour()).splice(0, dayjs(state.xjkkinputV3[0]).hour()),
// disabledMinutes: () => range(0, currentMinute+1).splice(0, currentMinute+1), // disabledMinutes: () => range(0, currentMinute+1).splice(0, currentMinute+1),
// }; // };
// } // }
}; };