diff --git a/src/views/task_template/edit.vue b/src/views/task_template/edit.vue index 10b2bea..75a3e5c 100644 --- a/src/views/task_template/edit.vue +++ b/src/views/task_template/edit.vue @@ -156,6 +156,7 @@ const popupTitle = computed(() => { // 表单数据 const formData = reactive({ id: '', + task_scheduling: 0, company_id: '', title: '', admin_id: '', @@ -174,7 +175,9 @@ const formData = reactive({ terminus: {} //终点 } }) - +if (route.query.id) { + formData.task_scheduling = route.query.id +} //任务类型接口 dictDataLists({ type_id: 10 }).then((res) => { datalist.value = res.lists