From 0ee5ad528c7ee87c6f284fa8d039025f05f2ca37 Mon Sep 17 00:00:00 2001 From: zhangsir Date: Fri, 27 Sep 2024 16:13:33 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=A2=E6=8E=88=E5=BC=80=E8=AF=BE=EF=BC=8C?= =?UTF-8?q?=E7=AD=89=E5=BE=85=E6=8E=A5=E5=8F=A3=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/courselibrary/CoursewareManage.vue | 81 +++++++++++++++++--- 1 file changed, 69 insertions(+), 12 deletions(-) diff --git a/src/views/courselibrary/CoursewareManage.vue b/src/views/courselibrary/CoursewareManage.vue index 3056eecf..053bae4d 100644 --- a/src/views/courselibrary/CoursewareManage.vue +++ b/src/views/courselibrary/CoursewareManage.vue @@ -872,6 +872,9 @@ +
@@ -1143,7 +1146,26 @@
- + +
+
+ 结业设置 +
+
+ + 是否允许自动结业 + + 面授时间结束后 + + 天 +
+
+
评估设置 @@ -1830,7 +1852,12 @@ import {duration} from "moment"; import { DeleteOutlined } from '@ant-design/icons-vue'; //列表表格 - +const moreLine = (item) => { + item.map(val => { + return (val.line = val.teacherName + " 权重 " + val.weight + '%') + }) + return item.map(i => i.line).join('\n') +} //列表操作在线面授管理 const columns2 = [ { @@ -1977,9 +2004,9 @@ const columns6 = [ key: "organization", width: "15%", align: "center", - ellipsis: true, + customCell:() => {return {style: {maxWidth: '200px',overflow: 'hidden',whiteSpace: 'nowrap',textOverflow:'ellipsis',cursor:'pointer',padding:'0px 10px'}}}, customRender: ({ text }) => { - return text ? text : "-"; + return {text ? text : "-"} }, }, { @@ -1997,10 +2024,11 @@ const columns6 = [ title: "教师名称", dataIndex: "teacher", key: "teacher", - width: "24%", + width: "30%", align: "center", ellipsis: true, - customRender: ({ record }) => { + slots: { customRender: "teacherName" }, + // customRender: ({ record }) => { // const teachers = record.offteachers; // return teachers.map((teacher, index) => { // // 如果需要显示为列表形式 @@ -2011,8 +2039,8 @@ const columns6 = [ //
// ); // }); - return record.offteachers.map(item=>item.teacherName).join(',') - } + // return record.offteachers.map(item=>item.teacherName).join(',') + // } }, { @@ -2061,7 +2089,7 @@ const columns6 = [ return(
{text || '0'} -
xixi
+
downStudent()} title="导出学员信息">
) }, @@ -2074,7 +2102,12 @@ const columns6 = [ align: "center", ellipsis: true, customRender: ({ text }) => { - return text ? text : "0"; + return( +
+ {text || '0'} +
downPin()} title="导出评估信息">
+
+ ) }, }, { @@ -2087,6 +2120,12 @@ const columns6 = [ slots: { customRender: "action" }, }, ]; +const downStudent = () => { + console.log('down') +} +const downPin = () => { + console.log('down') +} //开课学员管理 const columns7 = [ //// { @@ -2311,7 +2350,7 @@ export default defineComponent({ align: "left", customCell :() => {return {style: {maxWidth: '200px',overflow: 'hidden',whiteSpace: 'nowrap',textOverflow:'ellipsis',cursor:'pointer'}}}, customRender: ({ text }) => { - return {text ? text : "-"} + return {text ? text : "-"} }, }, { @@ -2708,6 +2747,8 @@ export default defineComponent({ kkinputV2: "", //新建开课 xjkkradioV1: false, + xjkkradioVEnd: false, + xjkkradioVEndTime: null, completeType: "", xjkkinputV1: "", onceName: "", @@ -3872,6 +3913,8 @@ function onFocusEnd(){ state.kk_eidt = false; state.xjkkradioV1 = false; + state.xjkkradioVEnd = false; + state.xjkkradioVEndTime = null; state.completeType = ""; // state.xjkkinputV1 = ""; state.onceName = ""; @@ -5194,6 +5237,7 @@ function onFocusEnd(){ handleEdit, handleDelete, changevalue, + moreLine, columns2, columns4, columns6, @@ -5309,12 +5353,25 @@ function onFocusEnd(){ inputWeightChange, totalWeightSum, inputAdd, - inputRemove + inputRemove, + downStudent, + downPin }; }, });