面授开课,等待接口联调

This commit is contained in:
zhangsir
2024-09-27 16:13:33 +08:00
parent 18e69264c7
commit 0ee5ad528c

View File

@@ -872,6 +872,9 @@
</a-dropdown>
</div>
</template>
<template #teacherName="{record}">
<div :title="moreLine(record.offteachers)">{{record.offteachers.map(item=>item.teacherName).join(',')}}</div>
</template>
</a-table>
<div class="tableBox" style="margin-top: 50px">
<div class="pa">
@@ -1143,7 +1146,26 @@
</a-checkbox>
</div>
</div>
<div class="cstm_items">
<div class="signbox">
<span style="margin-right: 3px">结业设置</span>
</div>
<div class="b_input">
<a-checkbox v-model:checked="xjkkradioVEnd" :disabled = "itemType!=3">
<span style="color: #6d7584">是否允许自动结业</span>
</a-checkbox>
<span>面授时间结束后</span>
<a-input-number :precision="0" :min="0" v-model:value="xjkkradioVEndTime" style="
width: 60px;
height: 32px;
border-radius: 8px;
margin: 0 10px;"
/>
</div>
</div>
<div class="cstm_items">
<div class="signbox">
<span style="margin-right: 3px">评估设置</span>
@@ -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 <a-tooltip color="white" placement="bottom" title = {text} >{text ? text : "-"}</a-tooltip>
},
},
{
@@ -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 = [
// </div>
// );
// });
return record.offteachers.map(item=>item.teacherName).join(',')
}
// return record.offteachers.map(item=>item.teacherName).join(',')
// }
},
{
@@ -2061,7 +2089,7 @@ const columns6 = [
return(
<div style="display:flex;justify-content:center;align-items:center;">
<span>{text || '0'}</span>
<div>xixi</div>
<div class="daochu" onClick={()=>downStudent()} title="导出学员信息"></div>
</div>
)
},
@@ -2074,7 +2102,12 @@ const columns6 = [
align: "center",
ellipsis: true,
customRender: ({ text }) => {
return text ? text : "0";
return(
<div style="display:flex;justify-content:center;align-items:center;">
<span>{text || '0'}</span>
<div class="daochu" onClick={()=>downPin()} title="导出评估信息"></div>
</div>
)
},
},
{
@@ -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 <a-tooltip placement="topLeft" title = {text} >{text ? text : "-"}</a-tooltip>
return <a-tooltip color="white" placement="topLeft" title = {text} >{text ? text : "-"}</a-tooltip>
},
},
{
@@ -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
};
},
});
</script>
<style lang="scss">
.ant-tooltip-inner{
color: #000 !important;
}
.daochu {
width: 14px;
height: 14px;
background: url("../../assets/images/coursewareManage/export.png") no-repeat;
background-size: 100%;
margin-left: 8px;
cursor: pointer;
}
.ant-drawer-body{
padding: 0;
}