feat:增加修改id

This commit is contained in:
dongwug
2022-11-07 11:44:58 +08:00
parent 6560d6a4b2
commit 666459a6e5
4 changed files with 62 additions and 21 deletions

View File

@@ -131,6 +131,14 @@ export default {
type: Number,
default: 0,
},
projectId: {
type: Number,
default: null,
},
chooseStageId: {
type: Number,
default: null,
},
},
setup(props, ctx) {
const state = reactive({
@@ -242,6 +250,7 @@ export default {
console.log("创建成功", res);
message.success("创建成功");
closeDrawer();
//渲染到学历路径列表
if (props.learn == 0)
apitaskadd
.addTask({
@@ -249,9 +258,9 @@ export default {
duration: 0,
flag: true,
name: obj.evaluationName,
projectId: 28,
projectId: props.projectId,
projectTaskId: 0,
stageId: 3,
stageId: props.chooseStageId,
type: 10,
})
.then((res) => {
@@ -265,6 +274,7 @@ export default {
.catch((err) => {
console.log(err);
});
//渲染到项目列表
else {
let editObj1 = {
chapterId: 36,