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

@@ -106,11 +106,10 @@
<script>
import { reactive, toRefs, ref } from "vue";
import CreVote from "../../components/drawers/CreVote.vue";
import { useRouter } from "vue-router";
import * as api from "../../api/indexVote";
import * as apitaskadd from "../../api/indexTaskadd";
import { message } from "ant-design-vue";
import { toDate } from "../../api/method";
const router = useRouter();
const options1 = ref([
{
value: "value1",
@@ -207,9 +206,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: 12,
});
}, 1000);
})
.catch((err) => {