mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-19 07:46:46 +08:00
修复提示请选中关卡问题
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user