mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-10 03:16:44 +08:00
feat:修改移动任务
This commit is contained in:
@@ -1683,16 +1683,11 @@ export default {
|
||||
}
|
||||
//移动任务到关卡
|
||||
const moveTask = () => {
|
||||
let arr = state.selectRow;
|
||||
console.log("选择的行信息",arr);
|
||||
console.log("选择的关卡id",state.isactive);
|
||||
arr.map( value => {
|
||||
console.log("value:",value);
|
||||
let obj = {
|
||||
chapterId: state.isactive,
|
||||
routerTaskIdList: [value],
|
||||
}
|
||||
api
|
||||
let obj = {
|
||||
chapterId: state.isactive,
|
||||
routerTaskIdList: state.selectRow,
|
||||
}
|
||||
api
|
||||
.moveTask(obj)
|
||||
.then((res) => {
|
||||
console.log("移动成功",res);
|
||||
@@ -1702,8 +1697,7 @@ export default {
|
||||
.catch((err) => {
|
||||
console.log("移动失败",err);
|
||||
})
|
||||
})
|
||||
};
|
||||
}
|
||||
return {
|
||||
...toRefs(state),
|
||||
tableDataFunc,
|
||||
|
||||
@@ -1715,36 +1715,31 @@ export default {
|
||||
};
|
||||
//移动任务到阶段
|
||||
const moveTask = () => {
|
||||
let arr = state.selectRow;
|
||||
console.log("选择的行信息", arr);
|
||||
arr.map((value) => {
|
||||
//console.log("value:", value);
|
||||
let obj = {
|
||||
stageId: state.chooseStageId,
|
||||
projectTaskId: [value],
|
||||
}
|
||||
console.log("routerTaskIdList",obj.routerTaskIdList);
|
||||
apimove
|
||||
.moveTask(obj)
|
||||
.then((res) => {
|
||||
console.log("移动成功",res);
|
||||
let obj ={
|
||||
stageId: state.chooseStageId,
|
||||
projectTaskId: state.selectRow,
|
||||
}
|
||||
apimove
|
||||
.moveTask(obj)
|
||||
.then((res) => {
|
||||
console.log("移动成功",res);
|
||||
message.destroy();
|
||||
message.success("移动成功");
|
||||
getTask();
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("移动失败", err);
|
||||
});
|
||||
});
|
||||
};
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("移动失败", err);
|
||||
})
|
||||
}
|
||||
//批量删除
|
||||
const deleteTaskAll = () => {
|
||||
//let arr = state.selectRow;
|
||||
console.log("selectRow数组",state.selectRow);
|
||||
let obj = {
|
||||
projectTaskIds: state.selectRow,
|
||||
}
|
||||
api
|
||||
let arr = state.selectRow;
|
||||
console.log("选择的行信息", arr);
|
||||
arr.map((value) => {
|
||||
let obj = {
|
||||
projectTaskIds: value,
|
||||
};
|
||||
api
|
||||
.deleteTask(obj)
|
||||
.then((res) => {
|
||||
console.log(res);
|
||||
@@ -1755,6 +1750,7 @@ export default {
|
||||
.catch((err) => {
|
||||
console.log(err);
|
||||
});
|
||||
})
|
||||
}
|
||||
const onSelectChange = (selectedRowKeys) => {
|
||||
console.log("selectedRowKeys changed: ", selectedRowKeys);
|
||||
|
||||
Reference in New Issue
Block a user