mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-18 23:36:46 +08:00
feat:修改面授课传参
This commit is contained in:
@@ -115,12 +115,15 @@
|
||||
<!-- 导出成绩抽屉 -->
|
||||
<EScore v-model:eScorevisible="eScorevisible" />
|
||||
</a-drawer>
|
||||
<!-- 查看答卷抽屉 -->
|
||||
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="datasource"/>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { toRefs, reactive } from "vue";
|
||||
import { message } from "ant-design-vue";
|
||||
import EScore from "../ExportScore.vue";
|
||||
import CheckAnsware from '../CheckAnsware.vue'
|
||||
import * as api from '../../../api/indexTaskManage';
|
||||
|
||||
// import * as api from "../../../api/index";
|
||||
@@ -128,6 +131,7 @@ export default {
|
||||
name: "RouterExaminationManage",
|
||||
components: {
|
||||
EScore,
|
||||
CheckAnsware
|
||||
},
|
||||
props: {
|
||||
ExaminationModelVisible: {
|
||||
@@ -320,8 +324,34 @@ export default {
|
||||
className: "h",
|
||||
customRender: ({record:{finishStatus}}) => ({1:'通过',2:'未通过'}[finishStatus] || '未开始'),
|
||||
},
|
||||
{
|
||||
title: "操作",
|
||||
dataIndex: "studentKid",
|
||||
key: "studentKid",
|
||||
width: 60,
|
||||
align: "center",
|
||||
ellipsis: true,
|
||||
className: "h",
|
||||
customRender: (text) => {
|
||||
return (
|
||||
<div class="racona">
|
||||
<a
|
||||
onClick={()=>{
|
||||
state.studentKid = text.record.studentKid;
|
||||
state.datasource = text.record;
|
||||
state.CAvisible = true;
|
||||
}}>
|
||||
查看答卷
|
||||
</a>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
},
|
||||
],
|
||||
loadingData: true
|
||||
loadingData: true,
|
||||
studentKid: '',
|
||||
CAvisible: false,
|
||||
datasource: ''
|
||||
});
|
||||
|
||||
const closeDrawer = () => {
|
||||
|
||||
@@ -348,21 +348,13 @@
|
||||
>管理</a-button
|
||||
>
|
||||
<DropDown v-if="checkPer(record.permissions)" value="授权">
|
||||
<OwnerTableModelStudent
|
||||
:types="[10, 11, 12]"
|
||||
:id="record.offcourseId"
|
||||
<OwnerTableModelStudent :types="[10, 11, 12]" :id="record.id"
|
||||
>权限名单</OwnerTableModelStudent
|
||||
>
|
||||
<CommonStudent
|
||||
:type="10"
|
||||
:id="record.offcourseId"
|
||||
title="查看权"
|
||||
<CommonStudent :type="10" :id="record.id" title="查看权"
|
||||
>查看权</CommonStudent
|
||||
>
|
||||
<CommonStudent
|
||||
:type="11"
|
||||
:id="record.offcourseId"
|
||||
title="管理权"
|
||||
<CommonStudent :type="11" :id="record.id" title="管理权"
|
||||
>管理权</CommonStudent
|
||||
>
|
||||
</DropDown>
|
||||
@@ -3064,6 +3056,7 @@ export default defineComponent({
|
||||
findClassFullName(sysTypeOptions.value, itm.sysTypeId) || "-";
|
||||
});
|
||||
state.tableData1 = datas;
|
||||
console.log("state.tableData1", state.tableData1);
|
||||
state.tableLoading = false;
|
||||
};
|
||||
|
||||
@@ -3776,9 +3769,9 @@ export default defineComponent({
|
||||
|
||||
//编辑开课
|
||||
const handelEditStu = async (itm) => {
|
||||
console.log(itm);
|
||||
console.log("编辑开课", itm);
|
||||
|
||||
state.offcourseId = itm.offcourseId;
|
||||
state.offcourseId = itm.id;
|
||||
state.offcoursePlanId = itm.offcoursePlanId;
|
||||
|
||||
const item = await detailPlan({
|
||||
@@ -3857,7 +3850,7 @@ export default defineComponent({
|
||||
};
|
||||
const handelGuan = (itm) => {
|
||||
console.log("开课信息", itm);
|
||||
state.offcourseId = itm.offcourseId;
|
||||
state.offcourseId = itm.id;
|
||||
state.offcoursePlanId = itm.offcoursePlanId;
|
||||
state.studentId = itm.studentId;
|
||||
state.studentItem = itm;
|
||||
@@ -3937,7 +3930,7 @@ export default defineComponent({
|
||||
if (type === "1") {
|
||||
return;
|
||||
}
|
||||
state.offcourseId = itm.offcourseId;
|
||||
state.offcourseId = itm.id;
|
||||
|
||||
handle({
|
||||
offcourseId: state.offcourseId,
|
||||
@@ -4246,7 +4239,7 @@ export default defineComponent({
|
||||
if (type === "1") {
|
||||
return;
|
||||
}
|
||||
// console.log(itm)
|
||||
console.log("编辑面授课信息", itm, type);
|
||||
state.offcourseId = itm.id;
|
||||
|
||||
const item = await detail({
|
||||
@@ -4353,14 +4346,14 @@ export default defineComponent({
|
||||
if (type === "1") {
|
||||
return;
|
||||
}
|
||||
state.offcourseId = itm.offcourseId;
|
||||
state.offcourseId = itm.id;
|
||||
|
||||
state.delete_hs = true;
|
||||
state.copy_hs = true;
|
||||
};
|
||||
const handleCopyP = async (itm) => {
|
||||
console.log(itm);
|
||||
state.offcourseId = itm.offcourseId;
|
||||
state.offcourseId = itm.id;
|
||||
state.offcoursePlanId = itm.offcoursePlanId;
|
||||
|
||||
state.delete_hs = true;
|
||||
@@ -4371,7 +4364,7 @@ export default defineComponent({
|
||||
if (type === "1") {
|
||||
return;
|
||||
}
|
||||
state.offcourseId = itm.offcourseId;
|
||||
state.offcourseId = itm.id;
|
||||
|
||||
state.delete_hs = true;
|
||||
state.nouse_hs = true;
|
||||
@@ -4381,7 +4374,7 @@ export default defineComponent({
|
||||
if (type === "1") {
|
||||
return;
|
||||
}
|
||||
state.offcourseId = itm.offcourseId;
|
||||
state.offcourseId = itm.id;
|
||||
|
||||
handle({
|
||||
offcourseId: state.offcourseId,
|
||||
@@ -4494,6 +4487,7 @@ export default defineComponent({
|
||||
|
||||
// 管理开课
|
||||
const handleGuan22 = (item) => {
|
||||
console.log("点击管理信息", item);
|
||||
if (String(item.courseform) === "1") {
|
||||
return;
|
||||
}
|
||||
@@ -4508,7 +4502,7 @@ export default defineComponent({
|
||||
console.log(787666, item);
|
||||
state.faceClassification = item.contentTxt;
|
||||
state.faceStatus = item.kkty;
|
||||
state.currentFaceId = item.offcourseId;
|
||||
state.currentFaceId = item.id;
|
||||
getCourseStudentList();
|
||||
state.newCourseName = item.name;
|
||||
};
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -227,7 +227,7 @@ export default {
|
||||
style="cursor:pointer;color:#387DF7"
|
||||
onClick={() => {
|
||||
showProjAudit(
|
||||
value.record.projectId,
|
||||
value.record.id,
|
||||
value.record.createId,
|
||||
value.record.createName
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user