修复提示请选中关卡问题

This commit is contained in:
zhangyc
2022-12-14 14:09:01 +08:00
parent 8310728551
commit 233d334840
13 changed files with 104 additions and 96 deletions

View File

@@ -513,14 +513,14 @@ export default {
align: "center",
className: "h",
},
{
title: "所在岗位",
dataIndex: "gang",
key: "gang",
width: 50,
align: "center",
className: "h",
},
// {
// title: "所在岗位",
// dataIndex: "gang",
// key: "gang",
// width: 50,
// align: "center",
// className: "h",
// },
{
title: "签到时间",
dataIndex: "cur",

View File

@@ -191,11 +191,12 @@ export default {
}
};
const updateTask = async (res) => {
if(!props.isactive){
if (props.isLevel == 1) {
if(!props.isactive){
message.destroy();
return message.warning("请先选中关卡");
}
if (props.isLevel == 1) {
await RouterEditTask({
chapterId: props.isactive,
courseId: res.data.data.discussId,

View File

@@ -177,11 +177,12 @@ export default {
};
//向关卡或阶段渲染
const updateTask = async (value) => {
if(!props.isactive){
if (props.isLevel == 1) {
if(!props.isactive){
message.destroy();
return message.warning("请先选中关卡");
}
if (props.isLevel == 1) {
await RouterEditTask({
chapterId: props.isactive,
courseId: Number(value.evaluationId),

View File

@@ -702,11 +702,12 @@ export default {
// 新增编辑或新增项目任务
const updateTask = async (res) => {
console.log("props.isLevel=====", props.isLevel);
if(!props.isactive){
if (props.isLevel == 1) {
if(!props.isactive){
message.destroy();
return message.warning("请先选中关卡");
}
if (props.isLevel == 1) {
let editObj1 = {
chapterId: props.isactive,
courseId: res.data.data.offcoursePlanId,

View File

@@ -155,14 +155,14 @@ export default {
align: "center",
className: "h",
},
{
title: "岗位",
dataIndex: "gangw",
key: "gangw",
width: 60,
align: "center",
className: "h",
},
// {
// title: "岗位",
// dataIndex: "gangw",
// key: "gangw",
// width: 60,
// align: "center",
// className: "h",
// },
// {
// title: "进度",
// dataIndex: "progress",

View File

@@ -231,14 +231,14 @@ export default {
align: "center",
className: "h",
},
{
title: "岗位",
dataIndex: "gangw",
key: "gangw",
width: 60,
align: "center",
className: "h",
},
// {
// title: "岗位",
// dataIndex: "gangw",
// key: "gangw",
// width: 60,
// align: "center",
// className: "h",
// },
{
title: "进度",
dataIndex: "progress",