mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 21:06:44 +08:00
fix:修改添加作业接口判断
This commit is contained in:
@@ -506,7 +506,12 @@
|
||||
</div>
|
||||
</a-tab-pane>
|
||||
<a-tab-pane key="3" tab="学员管理" force-render>
|
||||
<TableStudent :type="2" :id="routerId" :stage="stage"></TableStudent>
|
||||
<TableStudent
|
||||
:type="2"
|
||||
:id="routerId"
|
||||
:stage="stage"
|
||||
:columns="tableDataFunc()"
|
||||
></TableStudent>
|
||||
</a-tab-pane>
|
||||
<!--1211注释 待开放
|
||||
<a-tab-pane key="4" tab="设置">
|
||||
@@ -1332,49 +1337,49 @@ export default {
|
||||
|
||||
const tableDataFunc = () => {
|
||||
const columns = [
|
||||
{
|
||||
title: "姓名",
|
||||
dataIndex: "name",
|
||||
// width: "30%",
|
||||
key: "name",
|
||||
width: 110,
|
||||
align: "left",
|
||||
className: "classify",
|
||||
// {
|
||||
// title: "姓名",
|
||||
// dataIndex: "name",
|
||||
// // width: "30%",
|
||||
// key: "name",
|
||||
// width: 110,
|
||||
// align: "left",
|
||||
// className: "classify",
|
||||
|
||||
scopedSlots: { customRender: "action" }, //引入的插槽
|
||||
customRender: (text) => {
|
||||
// console.log(text.record.checked1);
|
||||
return (
|
||||
<div class="racona">
|
||||
<span> {text.record.name}</span>
|
||||
// scopedSlots: { customRender: "action" }, //引入的插槽
|
||||
// customRender: (text) => {
|
||||
// // console.log(text.record.checked1);
|
||||
// return (
|
||||
// <div class="racona">
|
||||
// <span> {text.record.name}</span>
|
||||
|
||||
{/**
|
||||
<div class="img"></div>
|
||||
<a-checkbox class="ch" checked={text.record.checkedd}>
|
||||
{text.record.lei}
|
||||
</a-checkbox>
|
||||
*/}
|
||||
</div>
|
||||
);
|
||||
},
|
||||
},
|
||||
{
|
||||
title: "部门",
|
||||
dataIndex: "com",
|
||||
// width: "30%",
|
||||
key: "com",
|
||||
width: 110,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
// {
|
||||
// title: "岗位",
|
||||
// dataIndex: "gang",
|
||||
// key: "gang",
|
||||
// width: 110,
|
||||
// align: "center",
|
||||
// className: "h",
|
||||
// },
|
||||
// {/**
|
||||
// <div class="img"></div>
|
||||
// <a-checkbox class="ch" checked={text.record.checkedd}>
|
||||
// {text.record.lei}
|
||||
// </a-checkbox>
|
||||
// */}
|
||||
// </div>
|
||||
// );
|
||||
// },
|
||||
// },
|
||||
// {
|
||||
// title: "部门",
|
||||
// dataIndex: "com",
|
||||
// // width: "30%",
|
||||
// key: "com",
|
||||
// width: 110,
|
||||
// align: "center",
|
||||
// className: "h",
|
||||
// },
|
||||
// // {
|
||||
// // title: "岗位",
|
||||
// // dataIndex: "gang",
|
||||
// // key: "gang",
|
||||
// // width: 110,
|
||||
// // align: "center",
|
||||
// // className: "h",
|
||||
// // },
|
||||
{
|
||||
title: "当前关卡",
|
||||
dataIndex: "cur",
|
||||
@@ -1391,64 +1396,64 @@ export default {
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "开始时间",
|
||||
dataIndex: "time",
|
||||
key: "time",
|
||||
width: 120,
|
||||
align: "center",
|
||||
className: "h",
|
||||
},
|
||||
{
|
||||
title: "操作",
|
||||
className: "h",
|
||||
dataIndex: "opacation",
|
||||
key: "opacation",
|
||||
width: 140,
|
||||
align: "center",
|
||||
fixed: "right",
|
||||
scopedSlots: { customRender: "action" }, //引入的插槽
|
||||
customRender: (text) => {
|
||||
return (
|
||||
<div class="opa">
|
||||
<div class="opacation">
|
||||
{/**
|
||||
2022-11-30注释 后面放开
|
||||
<span
|
||||
onClick={() => {
|
||||
showCheckStu(text.record.studentId);
|
||||
state.Seevisible = true;
|
||||
}}
|
||||
style="color:#4EA6FF;margin-right:25px;cursor:pointer"
|
||||
>
|
||||
查看
|
||||
</span>
|
||||
*/}
|
||||
{/**
|
||||
2022-11-30注释 后面放开
|
||||
<span
|
||||
onClick={() => {
|
||||
state.visiblene = true;
|
||||
console.log(text.record.cur);
|
||||
}}
|
||||
style="color:#4EA6FF;margin-right:25px;cursor:pointer"
|
||||
>
|
||||
调整
|
||||
</span>
|
||||
*/}
|
||||
<span
|
||||
style="color:#4EA6FF;cursor:pointer"
|
||||
onClick={() => {
|
||||
delConfirm(text.record.studentId);
|
||||
}}
|
||||
>
|
||||
删除
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
},
|
||||
},
|
||||
// {
|
||||
// title: "开始时间",
|
||||
// dataIndex: "time",
|
||||
// key: "time",
|
||||
// width: 120,
|
||||
// align: "center",
|
||||
// className: "h",
|
||||
// },
|
||||
// {
|
||||
// title: "操作",
|
||||
// className: "h",
|
||||
// dataIndex: "opacation",
|
||||
// key: "opacation",
|
||||
// width: 140,
|
||||
// align: "center",
|
||||
// fixed: "right",
|
||||
// scopedSlots: { customRender: "action" }, //引入的插槽
|
||||
// customRender: (text) => {
|
||||
// return (
|
||||
// <div class="opa">
|
||||
// <div class="opacation">
|
||||
// {/**
|
||||
// 2022-11-30注释 后面放开
|
||||
// <span
|
||||
// onClick={() => {
|
||||
// showCheckStu(text.record.studentId);
|
||||
// state.Seevisible = true;
|
||||
// }}
|
||||
// style="color:#4EA6FF;margin-right:25px;cursor:pointer"
|
||||
// >
|
||||
// 查看
|
||||
// </span>
|
||||
// */}
|
||||
// {/**
|
||||
// 2022-11-30注释 后面放开
|
||||
// <span
|
||||
// onClick={() => {
|
||||
// state.visiblene = true;
|
||||
// console.log(text.record.cur);
|
||||
// }}
|
||||
// style="color:#4EA6FF;margin-right:25px;cursor:pointer"
|
||||
// >
|
||||
// 调整
|
||||
// </span>
|
||||
// */}
|
||||
// <span
|
||||
// style="color:#4EA6FF;cursor:pointer"
|
||||
// onClick={() => {
|
||||
// delConfirm(text.record.studentId);
|
||||
// }}
|
||||
// >
|
||||
// 删除
|
||||
// </span>
|
||||
// </div>
|
||||
// </div>
|
||||
// );
|
||||
// },
|
||||
// },
|
||||
];
|
||||
return columns;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user