feat:测评评估投票创建添加到任务列表

This commit is contained in:
dongwug
2022-11-03 14:14:17 +08:00
parent 22f3b0702b
commit 5cfa72c80a
3 changed files with 26 additions and 13 deletions

View File

@@ -75,10 +75,9 @@
</template>
<script>
import { reactive, toRefs} from "vue";
import { useRouter } from "vue-router";
import * as api from "../../api/indexInvist";
import * as apitaskadd from "../../api/indexTaskadd";
import { message } from "ant-design-vue";
const router = useRouter();
export default {
name: "AddInvist",
// components: {
@@ -206,9 +205,17 @@ export default {
setTimeout(() => {
console.log("创建成功", res);
message.success("创建成功");
// state.createLoading = false;
router.push("/leveladd");
// getLearnPath();
closeDrawer();
apitaskadd.addTask({
courseId: 0,
duration: 0,
flag: true,
name: "",
projectId: 28,
projectTaskId: 0,
stageId: 3,
type: 11,
});
}, 1000);
})
.catch((err) => {