mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 20:06:47 +08:00
Merge branch 'compulsory_professional_skills' into test20250220
This commit is contained in:
@@ -125,16 +125,11 @@ div
|
|||||||
style="margin-top: 20px; flex-wrap: wrap"
|
style="margin-top: 20px; flex-wrap: wrap"
|
||||||
v-if="data?.length"
|
v-if="data?.length"
|
||||||
>
|
>
|
||||||
<div
|
<div class="btn btn1" @click="step = 2">
|
||||||
:class="{ notClick: courseSelectRows.length > 0 }"
|
|
||||||
class="btn btn1"
|
|
||||||
@click="step = 2"
|
|
||||||
>
|
|
||||||
<div class="img3"></div>
|
<div class="img3"></div>
|
||||||
<div class="wz">添加学员</div>
|
<div class="wz">添加学员</div>
|
||||||
</div>
|
</div>
|
||||||
<div
|
<div
|
||||||
:class="{ notClick: courseSelectRows.length > 0 }"
|
|
||||||
class="btn btn1"
|
class="btn btn1"
|
||||||
style="margin-right: 20px; margin-left: 20px"
|
style="margin-right: 20px; margin-left: 20px"
|
||||||
@click="step = 3"
|
@click="step = 3"
|
||||||
@@ -147,7 +142,6 @@ div
|
|||||||
class="btn btn1"
|
class="btn btn1"
|
||||||
style="margin-right: 20px"
|
style="margin-right: 20px"
|
||||||
@click="qrcodeVisibleSign()"
|
@click="qrcodeVisibleSign()"
|
||||||
:class="{ notClick: courseSelectRows.length > 0 }"
|
|
||||||
>
|
>
|
||||||
<div class="wz">签到二维码</div>
|
<div class="wz">签到二维码</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -156,7 +150,6 @@ div
|
|||||||
style="margin-right: 20px"
|
style="margin-right: 20px"
|
||||||
v-if="data[coursePlanIndex]?.assessmentId"
|
v-if="data[coursePlanIndex]?.assessmentId"
|
||||||
@click="qrcodeAssement()"
|
@click="qrcodeAssement()"
|
||||||
:class="{ notClick: courseSelectRows.length > 0 }"
|
|
||||||
>
|
>
|
||||||
<div class="wz">评估二维码</div>
|
<div class="wz">评估二维码</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -164,7 +157,6 @@ div
|
|||||||
class="btn btn1"
|
class="btn btn1"
|
||||||
style="margin-right: 20px"
|
style="margin-right: 20px"
|
||||||
@click="qrcodeVisible()"
|
@click="qrcodeVisible()"
|
||||||
:class="{ notClick: courseSelectRows.length > 0 }"
|
|
||||||
>
|
>
|
||||||
<div class="wz">开课二维码</div>
|
<div class="wz">开课二维码</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -187,7 +179,6 @@ div
|
|||||||
class="btn btn1"
|
class="btn btn1"
|
||||||
@click="exportTaskStu"
|
@click="exportTaskStu"
|
||||||
style="margin-right: 20px"
|
style="margin-right: 20px"
|
||||||
:class="{ notClick: courseSelectRows.length > 0 }"
|
|
||||||
>
|
>
|
||||||
<div class="img2"></div>
|
<div class="img2"></div>
|
||||||
<div class="wz">导出签到数据</div>
|
<div class="wz">导出签到数据</div>
|
||||||
@@ -196,7 +187,6 @@ div
|
|||||||
class="btn btn1"
|
class="btn btn1"
|
||||||
@click="exportAssessment"
|
@click="exportAssessment"
|
||||||
v-if="data[coursePlanIndex]?.assessmentId"
|
v-if="data[coursePlanIndex]?.assessmentId"
|
||||||
:class="{ notClick: courseSelectRows.length > 0 }"
|
|
||||||
>
|
>
|
||||||
<div class="img2"></div>
|
<div class="img2"></div>
|
||||||
<div class="wz">导出评估数据</div>
|
<div class="wz">导出评估数据</div>
|
||||||
@@ -460,8 +450,6 @@ const columns = ref([
|
|||||||
title: "考勤情况",
|
title: "考勤情况",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
className: "h",
|
className: "h",
|
||||||
dataIndex: "opacation",
|
|
||||||
key: "opacation",
|
|
||||||
width: 130,
|
width: 130,
|
||||||
align: "center",
|
align: "center",
|
||||||
customRender: (text) =>
|
customRender: (text) =>
|
||||||
@@ -470,13 +458,19 @@ const columns = ref([
|
|||||||
<div class="opa">
|
<div class="opa">
|
||||||
<a-radio
|
<a-radio
|
||||||
checked={text.record.signStatus}
|
checked={text.record.signStatus}
|
||||||
onClick={() => stuSign(text)}
|
onClick={(event) => {
|
||||||
|
event.stopPropagation();
|
||||||
|
stuSign(text);
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
签到
|
签到
|
||||||
</a-radio>
|
</a-radio>
|
||||||
<a-radio
|
<a-radio
|
||||||
checked={text.record.leaveStatus}
|
checked={text.record.leaveStatus}
|
||||||
onClick={() => stuSign(text)}
|
onClick={(event) => {
|
||||||
|
event.stopPropagation();
|
||||||
|
stuSign(text);
|
||||||
|
}}
|
||||||
>
|
>
|
||||||
请假
|
请假
|
||||||
</a-radio>
|
</a-radio>
|
||||||
@@ -491,7 +485,7 @@ const columns = ref([
|
|||||||
className: "h",
|
className: "h",
|
||||||
dataIndex: "opacation",
|
dataIndex: "opacation",
|
||||||
key: "opacation",
|
key: "opacation",
|
||||||
width: 130,
|
width: 80,
|
||||||
align: "center",
|
align: "center",
|
||||||
customRender: ({ record }) =>
|
customRender: ({ record }) =>
|
||||||
data.value[coursePlanIndex.value].type == 4 ||
|
data.value[coursePlanIndex.value].type == 4 ||
|
||||||
@@ -570,17 +564,17 @@ const batchSign = () => {
|
|||||||
.attendanceSign({
|
.attendanceSign({
|
||||||
courseId: offcoursePlanId.value,
|
courseId: offcoursePlanId.value,
|
||||||
ids: courseSelectRows.value?.map((t) => t.studentId),
|
ids: courseSelectRows.value?.map((t) => t.studentId),
|
||||||
taskId: props.datasource.id,
|
|
||||||
taskType: props.datasource.taskType,
|
taskType: props.datasource.taskType,
|
||||||
type: 3,
|
type: 3,
|
||||||
})
|
})
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
message.success("签到成功");
|
message.success("签到成功");
|
||||||
|
tableRef.value.fetch();
|
||||||
})
|
})
|
||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
message.error("签到失败");
|
message.error("签到失败");
|
||||||
});
|
});
|
||||||
tableRef.value.fetch();
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -603,7 +597,6 @@ const batchSignAll = () => {
|
|||||||
.catch((err) => {
|
.catch((err) => {
|
||||||
message.error("签到失败");
|
message.error("签到失败");
|
||||||
});
|
});
|
||||||
tableRef.value.fetch();
|
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
@@ -630,7 +623,7 @@ function stuSign(text) {
|
|||||||
// taskId: props.datasource.id,
|
// taskId: props.datasource.id,
|
||||||
taskType: props.datasource.taskType,
|
taskType: props.datasource.taskType,
|
||||||
type: 3,
|
type: 3,
|
||||||
});
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
//搜索学员
|
//搜索学员
|
||||||
|
|||||||
@@ -315,7 +315,7 @@ const columns = ref([
|
|||||||
dataIndex: "studentName",
|
dataIndex: "studentName",
|
||||||
key: "studentName",
|
key: "studentName",
|
||||||
width: 50,
|
width: 50,
|
||||||
align: "left",
|
align: "center",
|
||||||
className: "classify",
|
className: "classify",
|
||||||
scopedSlots: { customRender: "action" },
|
scopedSlots: { customRender: "action" },
|
||||||
customRender: (text) => (
|
customRender: (text) => (
|
||||||
|
|||||||
@@ -286,7 +286,6 @@ export default {
|
|||||||
dataIndex: "stdPositionName",
|
dataIndex: "stdPositionName",
|
||||||
key: "stdPositionName",
|
key: "stdPositionName",
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
|
||||||
className: "h",
|
className: "h",
|
||||||
customRender: (text) => {
|
customRender: (text) => {
|
||||||
return (
|
return (
|
||||||
@@ -306,7 +305,6 @@ export default {
|
|||||||
dataIndex: "qualsLevelDesr",
|
dataIndex: "qualsLevelDesr",
|
||||||
key: "qualsLevelDesr",
|
key: "qualsLevelDesr",
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
|
||||||
className: "h",
|
className: "h",
|
||||||
customRender: (text) => {
|
customRender: (text) => {
|
||||||
return (
|
return (
|
||||||
@@ -326,7 +324,6 @@ export default {
|
|||||||
dataIndex: "bandCode",
|
dataIndex: "bandCode",
|
||||||
key: "bandCode",
|
key: "bandCode",
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
|
||||||
className: "h",
|
className: "h",
|
||||||
customRender: (text) => {
|
customRender: (text) => {
|
||||||
return (
|
return (
|
||||||
@@ -344,7 +341,6 @@ export default {
|
|||||||
dataIndex: "joinMethod",
|
dataIndex: "joinMethod",
|
||||||
key: "joinMethod",
|
key: "joinMethod",
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
|
||||||
className: "h",
|
className: "h",
|
||||||
customRender: ({ record: { joinMethod } }) =>
|
customRender: ({ record: { joinMethod } }) =>
|
||||||
({
|
({
|
||||||
@@ -357,7 +353,6 @@ export default {
|
|||||||
dataIndex: "progress",
|
dataIndex: "progress",
|
||||||
key: "progress",
|
key: "progress",
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
|
||||||
className: "h",
|
className: "h",
|
||||||
customRender: (text) => {
|
customRender: (text) => {
|
||||||
return (
|
return (
|
||||||
@@ -372,8 +367,7 @@ export default {
|
|||||||
dataIndex: "finishTime",
|
dataIndex: "finishTime",
|
||||||
key: "finishTime",
|
key: "finishTime",
|
||||||
align: "center",
|
align: "center",
|
||||||
width: 150,
|
width: 180,
|
||||||
ellipsis: true,
|
|
||||||
customRender: (text) => {
|
customRender: (text) => {
|
||||||
return (
|
return (
|
||||||
<div class="racona">
|
<div class="racona">
|
||||||
@@ -390,7 +384,6 @@ export default {
|
|||||||
dataIndex: "completionStatus",
|
dataIndex: "completionStatus",
|
||||||
key: "completionStatus",
|
key: "completionStatus",
|
||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
|
||||||
className: "h",
|
className: "h",
|
||||||
customRender: (text) => {
|
customRender: (text) => {
|
||||||
return (
|
return (
|
||||||
|
|||||||
@@ -603,6 +603,7 @@ const columns = ref([
|
|||||||
dataIndex: "teacher",
|
dataIndex: "teacher",
|
||||||
key: "teacher",
|
key: "teacher",
|
||||||
width: "20%",
|
width: "20%",
|
||||||
|
ellipsis: true,
|
||||||
align: "center",
|
align: "center",
|
||||||
customRender: ({ record }) => {
|
customRender: ({ record }) => {
|
||||||
// const teachers = record.offteachers;
|
// const teachers = record.offteachers;
|
||||||
|
|||||||
@@ -66,7 +66,7 @@
|
|||||||
上传失败
|
上传失败
|
||||||
</div>
|
</div>
|
||||||
<div v-else class="stateloading">
|
<div v-else class="stateloading">
|
||||||
{{ uploadpercent == 100 ? "上传成功" : "正在上传" }}
|
{{ uploadpercent == 100 ? "导入成功" : "正在上传" }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="prog">
|
<div class="prog">
|
||||||
@@ -189,8 +189,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="btnn">
|
<div class="btnn">
|
||||||
<button class="btn2" @click="closeDrawer(false)">取消</button>
|
<button class="btn2" @click="closeDrawer(false)">关闭</button>
|
||||||
<button class="btn2" @click="closeDrawer(true)">确定</button>
|
<!-- <button class="btn2" @click="closeDrawer(true)">确定</button> -->
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 加载动画 -->
|
<!-- 加载动画 -->
|
||||||
@@ -346,7 +346,7 @@ export default {
|
|||||||
});
|
});
|
||||||
state.fileName = info.file.name;
|
state.fileName = info.file.name;
|
||||||
let i = 0;
|
let i = 0;
|
||||||
message.success("上传成功");
|
message.success("导入成功");
|
||||||
if (info.file.response.code == 1) {
|
if (info.file.response.code == 1) {
|
||||||
state.fileList = [];
|
state.fileList = [];
|
||||||
state.addLoading = false;
|
state.addLoading = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user