mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 10:56:46 +08:00
--fix bug
This commit is contained in:
@@ -155,6 +155,31 @@
|
|||||||
></ProjectManager>
|
></ProjectManager>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="cstm_items">
|
||||||
|
<div class="signbox">
|
||||||
|
<div class="sign">
|
||||||
|
<img src="@/assets/images/coursewareManage/asterisk.png" alt=""/>
|
||||||
|
</div>
|
||||||
|
<span style="margin-right: 3px">持续时间</span>
|
||||||
|
</div>
|
||||||
|
<div class="b_input">
|
||||||
|
<a-input-number
|
||||||
|
:min="0"
|
||||||
|
:max="999999"
|
||||||
|
:precision="0"
|
||||||
|
placeholder="请输入持续时间"
|
||||||
|
style="
|
||||||
|
width: 88%;
|
||||||
|
height: 32px;
|
||||||
|
border-radius: 8px;
|
||||||
|
overflow: hidden;"
|
||||||
|
v-model:value="formData.duration"
|
||||||
|
></a-input-number>
|
||||||
|
<div class="inp_num" style="right: 96px;line-height: 12px">
|
||||||
|
<span style="color: #c7cbd2">分钟</span>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="cstm_items">
|
<div class="cstm_items">
|
||||||
<div class="signbox">
|
<div class="signbox">
|
||||||
<div class="sign">
|
<div class="sign">
|
||||||
@@ -173,30 +198,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="cstm_items">
|
|
||||||
<div class="signbox">
|
|
||||||
<div class="sign">
|
|
||||||
</div>
|
|
||||||
<span style="margin-right: 3px">持续时间</span>
|
|
||||||
</div>
|
|
||||||
<div class="b_input">
|
|
||||||
<a-input-number
|
|
||||||
:min="0"
|
|
||||||
:max="999999"
|
|
||||||
:precision="0"
|
|
||||||
placeholder="请输入持续时间"
|
|
||||||
style="
|
|
||||||
width: 88%;
|
|
||||||
height: 32px;
|
|
||||||
border-radius: 8px;
|
|
||||||
overflow: hidden;"
|
|
||||||
v-model:value="formData.duration"
|
|
||||||
></a-input-number>
|
|
||||||
<div class="inp_num" style="right: 96px;line-height: 12px">
|
|
||||||
<span style="color: #c7cbd2">分钟</span>
|
|
||||||
</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>
|
||||||
@@ -475,6 +476,7 @@ const formData = useResetRef({
|
|||||||
evalFlag: 0,
|
evalFlag: 0,
|
||||||
assessmentName: "",
|
assessmentName: "",
|
||||||
assessmentId: "",
|
assessmentId: "",
|
||||||
|
duration: "",
|
||||||
workInfo: {},
|
workInfo: {},
|
||||||
examInfo: {},
|
examInfo: {},
|
||||||
attach: "",
|
attach: "",
|
||||||
@@ -514,6 +516,12 @@ const formDataRule = {
|
|||||||
message: "请选择教师",
|
message: "请选择教师",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
duration: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请输入持续时间",
|
||||||
|
},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
const { validate } = Form.useForm(formData, formDataRule);
|
const { validate } = Form.useForm(formData, formDataRule);
|
||||||
|
|
||||||
|
|||||||
@@ -297,10 +297,11 @@ const columns = ref([
|
|||||||
key: "opacation",
|
key: "opacation",
|
||||||
width: 100,
|
width: 100,
|
||||||
align: "center",
|
align: "center",
|
||||||
customRender: ({record:{workStatus,answerId,examinationScore,studentId}}) =>
|
customRender: ({record:{workStatus,answerId,examinationScore,studentId,finishStatus}}) =>
|
||||||
<div style="display:flex;justify-content:center;">
|
<div style="display:flex;justify-content:center;">
|
||||||
{examinationScore?<a className="opa" style={{color: examinationScore ? '' : '#666', marginRight: '12px'}} onClick={() => examinationScore && showExamAnswer(answerId)}>查看答卷</a>:''}
|
{examinationScore?<a className="opa" style={{color: examinationScore ? '' : '#666', marginRight: '12px'}} onClick={() => examinationScore && showExamAnswer(answerId)}>查看答卷</a>:''}
|
||||||
{workStatus ? <a class="opa" style={{color:workStatus?'':'#666'}} onClick={() => workStatus && showCWvisible(studentId)}>查看作业</a>:''}
|
{workStatus ? <a class="opa" style={{color:workStatus?'':'#666'}} onClick={() => workStatus && showCWvisible(studentId)}>查看作业</a>:''}
|
||||||
|
{finishStatus != 1 ? <a className="opa" onClick={() => finishTask(studentId)}>标记为完成</a> : ''}
|
||||||
</div>
|
</div>
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
@@ -339,6 +340,23 @@ const batchFinish = () => {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const finishTask = (stuId) => dialog({
|
||||||
|
content: "确定标注完成吗?",
|
||||||
|
ok: async () => {
|
||||||
|
message.success("标注完成成功");
|
||||||
|
tableRef.value.toLoading();
|
||||||
|
await api.batchFinishTask({
|
||||||
|
ids: [stuId],
|
||||||
|
type: 3,
|
||||||
|
taskId: props.datasource.routerTaskId,
|
||||||
|
pid: offcoursePlanId.value,
|
||||||
|
taskType: props.datasource.type,
|
||||||
|
currentStageId: props.datasource.currentStageId,
|
||||||
|
});
|
||||||
|
tableRef.value.fetch();
|
||||||
|
},
|
||||||
|
});
|
||||||
|
|
||||||
const answerId = ref('');
|
const answerId = ref('');
|
||||||
const showExamAnswer = (id) => {
|
const showExamAnswer = (id) => {
|
||||||
answerId.value = id;
|
answerId.value = id;
|
||||||
|
|||||||
@@ -3202,26 +3202,22 @@ export default defineComponent({
|
|||||||
console.log(val);
|
console.log(val);
|
||||||
|
|
||||||
rest();
|
rest();
|
||||||
getTea();
|
|
||||||
};
|
};
|
||||||
const handelChangePageTea1 = (page, pageSize) => {
|
const handelChangePageTea1 = (page, pageSize) => {
|
||||||
state.currentPageTea1 = page;
|
state.currentPageTea1 = page;
|
||||||
state.pageSizeTea1 = pageSize;
|
state.pageSizeTea1 = pageSize;
|
||||||
rest();
|
rest();
|
||||||
getTea();
|
|
||||||
};
|
};
|
||||||
const handleChangeTea2 = (val) => {
|
const handleChangeTea2 = (val) => {
|
||||||
console.log(787877);
|
console.log(787877);
|
||||||
console.log(val);
|
console.log(val);
|
||||||
options4CurName.value = val;
|
options4CurName.value = val;
|
||||||
rest();
|
rest();
|
||||||
getTea();
|
|
||||||
};
|
};
|
||||||
const handelChangePageTea2 = (page, pageSize) => {
|
const handelChangePageTea2 = (page, pageSize) => {
|
||||||
state.currentPageTea2 = page;
|
state.currentPageTea2 = page;
|
||||||
state.pageSizeTea2 = pageSize;
|
state.pageSizeTea2 = pageSize;
|
||||||
rest();
|
rest();
|
||||||
getTea();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
//获取分类、场景、封面图、-----------字典配置-------------------------------
|
//获取分类、场景、封面图、-----------字典配置-------------------------------
|
||||||
@@ -3476,7 +3472,6 @@ export default defineComponent({
|
|||||||
const options4CurName = ref("张");
|
const options4CurName = ref("张");
|
||||||
const of_hShow = () => {
|
const of_hShow = () => {
|
||||||
state.offcourseId = "";
|
state.offcourseId = "";
|
||||||
getTea();
|
|
||||||
if (state.of_hs == false) {
|
if (state.of_hs == false) {
|
||||||
state.of_hs = true;
|
state.of_hs = true;
|
||||||
}
|
}
|
||||||
@@ -3546,7 +3541,6 @@ export default defineComponent({
|
|||||||
|
|
||||||
state.qdms_inputV1 = state.xzinputV1;
|
state.qdms_inputV1 = state.xzinputV1;
|
||||||
state.xzinputV1 = "";
|
state.xzinputV1 = "";
|
||||||
getTea();
|
|
||||||
}
|
}
|
||||||
if (state.bs_hs && state.valueE1 == 1) {
|
if (state.bs_hs && state.valueE1 == 1) {
|
||||||
state.addOnlineCoursevisible = true;
|
state.addOnlineCoursevisible = true;
|
||||||
@@ -4325,50 +4319,6 @@ export default defineComponent({
|
|||||||
// }); */
|
// }); */
|
||||||
// }
|
// }
|
||||||
};
|
};
|
||||||
//获取教师
|
|
||||||
const getTea = async () => {
|
|
||||||
options4CurName.value = state.teacher;
|
|
||||||
options4CurId.value = state.teacherId;
|
|
||||||
const item1 = await getMemberInfoApi({
|
|
||||||
pageNo: state.currentPageTea1,
|
|
||||||
pageSize: state.pageSizeTea1,
|
|
||||||
keyWord: options4CurName.value,
|
|
||||||
id: options4CurId.value ? options4CurId.value : null,
|
|
||||||
})
|
|
||||||
.then((res) => {
|
|
||||||
console.log("获取授课教师", res);
|
|
||||||
if (res.data.code === 200) return res.data.data;
|
|
||||||
})
|
|
||||||
.catch((err) => {
|
|
||||||
console.log("获取授课教师失败", err);
|
|
||||||
});
|
|
||||||
const { rows, total } = item1;
|
|
||||||
state.tableDataTotalTea1 = total;
|
|
||||||
state.tableDataTotalTea2 = total;
|
|
||||||
let newArr = [];
|
|
||||||
for (let item of rows) {
|
|
||||||
if (options4CurId.value === item.id) {
|
|
||||||
if (state.offcoursePlanId && state.offcourseId) {
|
|
||||||
options4CurName.value = item.realName;
|
|
||||||
state.xjkkinputV4 = item.realName;
|
|
||||||
state.teacherId = item.id;
|
|
||||||
} else if (state.offcourseId) {
|
|
||||||
options4CurName.value = item.realName;
|
|
||||||
state.qdms_inputV5 = item.realName;
|
|
||||||
state.teacher = item.realName;
|
|
||||||
state.teacherId = item.id;
|
|
||||||
console.log("那个老师", item);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
newArr.push({
|
|
||||||
value: item.id,
|
|
||||||
label: item.realName,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
options4.value = newArr;
|
|
||||||
console.log("options4.value");
|
|
||||||
console.log(options4.value);
|
|
||||||
};
|
|
||||||
//编辑面授课
|
//编辑面授课
|
||||||
const handleEdit = async (itm, type) => {
|
const handleEdit = async (itm, type) => {
|
||||||
if (type === "1") {
|
if (type === "1") {
|
||||||
@@ -4423,7 +4373,6 @@ export default defineComponent({
|
|||||||
// state.ft_hs = true;
|
// state.ft_hs = true;
|
||||||
CourseModalRef.value.visibleOpen(state.offcourseId, null);
|
CourseModalRef.value.visibleOpen(state.offcourseId, null);
|
||||||
state.ft_eidt = true;
|
state.ft_eidt = true;
|
||||||
// getTea();
|
|
||||||
};
|
};
|
||||||
|
|
||||||
// handleTagChange
|
// handleTagChange
|
||||||
|
|||||||
Reference in New Issue
Block a user