Merge branch 'master_20250318-lyc' into test20250220

# Conflicts:
#	src/views/courselibrary/CoursewareManage.vue
This commit is contained in:
joshen
2025-03-20 09:23:11 +08:00
2 changed files with 16 additions and 22 deletions

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,
@@ -3474,7 +3474,9 @@ function onFocusEnd(){
}; };
const logT = () => { const logT = () => {
state.examInfo = {}; state.examInfo = {};
state.EditTestId = null; state.EditTestId = null; // 新增
state.assessmentId = null; // 新增
state.assessmentName = ""; // 新增
}; };
const removePG = () => { const removePG = () => {
console.log("11111"); console.log("11111");
@@ -3680,7 +3682,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",
@@ -3929,7 +3931,6 @@ function onFocusEnd(){
// handleRestTable(); // handleRestTable();
}; };
const createkk = () => { const createkk = () => {
//todo 创建开课
state.xjkkinputV1 = state.newCourseName state.xjkkinputV1 = state.newCourseName
state.offcoursePlanId = null; state.offcoursePlanId = null;
state.itemType = 3; state.itemType = 3;
@@ -3941,9 +3942,6 @@ 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.cstm_hs = true; state.cstm_hs = true;
}; };
const handleCancelStu = () => { const handleCancelStu = () => {
@@ -3979,8 +3977,6 @@ function onFocusEnd(){
//保存开课 //保存开课
const handleSureStu = async () => { const handleSureStu = async () => {
console.log("编辑的状况 state.kk_eidt",state.kk_eidt)
console.log("编辑的状况 state.examInfo",state.examInfo)
if(editBeginClass.value){ if(editBeginClass.value){
message.info('讲师费已进入审批阶段,无法编辑') message.info('讲师费已进入审批阶段,无法编辑')
return return
@@ -4007,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,
@@ -4120,11 +4116,10 @@ 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) => {
console.log("gx handelEditStu item",item)
nums.value = 0 nums.value = 0
editBeginClass.value = false editBeginClass.value = false
if (item.expenseStatus && item.expenseStatus !== 'A10' && item.expenseStatus !== 'S00') { if (item.expenseStatus && item.expenseStatus !== 'A10' && item.expenseStatus !== 'S00') {
@@ -4143,7 +4138,6 @@ function onFocusEnd(){
if (item.testId) { if (item.testId) {
queryExaminationDetailById({ examinationId: item.testId }).then( queryExaminationDetailById({ examinationId: item.testId }).then(
(res) => (state.examInfo = res.data.data) (res) => (state.examInfo = res.data.data)
); );
} }
// if(item.evalFlag){ // if(item.evalFlag){
@@ -4365,7 +4359,7 @@ function onFocusEnd(){
align: "center", align: "center",
customRender: ({ record }) => customRender: ({ record }) =>
record.examinationScore ? record.examinationScore : "-", record.examinationScore ? record.examinationScore : "-",
}, },
{ {
title: "结业状态", title: "结业状态",
@@ -5302,13 +5296,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),
// }; // };
// } // }
}; };

View File

@@ -508,7 +508,7 @@
<!-- <a-descriptions-item <!-- <a-descriptions-item
label="评分 ">{{ formParam.score ? Number(formParam.score).toFixed(0) == 0 ? '-' : Number(formParam.score).toFixed(2) + '分' : '-' label="评分 ">{{ formParam.score ? Number(formParam.score).toFixed(0) == 0 ? '-' : Number(formParam.score).toFixed(2) + '分' : '-'
}}</a-descriptions-item>--> }}</a-descriptions-item>-->
<a-descriptions-item label="评分 ">{{formParam.score +'分' }}</a-descriptions-item> <a-descriptions-item label="评分 ">{{formParam.score }}</a-descriptions-item>
<a-descriptions-item label="基准课酬 ">{{ formParam.levelPay || formParam.levelPay == 0 ? formParam.levelPay + '元' : <a-descriptions-item label="基准课酬 ">{{ formParam.levelPay || formParam.levelPay == 0 ? formParam.levelPay + '元' :
'-'}}</a-descriptions-item> '-'}}</a-descriptions-item>
<a-descriptions-item label="计划费用 ">{{ formParam.expense ? formParam.expense + '元' : '-' }}</a-descriptions-item> <a-descriptions-item label="计划费用 ">{{ formParam.expense ? formParam.expense + '元' : '-' }}</a-descriptions-item>