更新了任务排期选择类型的接口
This commit is contained in:
parent
33b880a04b
commit
32013bca9b
@ -23,4 +23,9 @@ export function apiTaskTemplateDelete(params: any) {
|
||||
// 任务安排详情
|
||||
export function apiTaskTemplateDetail(params: any) {
|
||||
return request.get({ url: '/task_template.task_template/detail', params })
|
||||
}
|
||||
}
|
||||
|
||||
// 任务类型
|
||||
export function apiTaskTypeList(params: any) {
|
||||
return request.get({ url: '/setting.dict.dict_data/lists', params })
|
||||
}
|
||||
|
@ -22,7 +22,7 @@
|
||||
:disabled="true"
|
||||
v-model="formData.id"
|
||||
clearable
|
||||
placeholder="请输入任务安排"
|
||||
placeholder="请输入任务ID"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item label="任务日期" prop="datetime">
|
||||
|
@ -226,6 +226,7 @@ import {
|
||||
apiTaskTemplateAdd,
|
||||
apiTaskTemplateEdit,
|
||||
apiTaskTemplateDetail,
|
||||
apiTaskTypeList,
|
||||
} from "@/api/task_template";
|
||||
import { timeFormat } from "@/utils/util";
|
||||
import type { PropType } from "vue";
|
||||
@ -289,7 +290,7 @@ if (route.query.id) {
|
||||
formData.task_scheduling = route.query.id;
|
||||
}
|
||||
//任务类型接口
|
||||
dictDataLists({ type_id: 10 }).then((res) => {
|
||||
apiTaskTypeList({ type_value: "task_type" }).then((res) => {
|
||||
datalist.value = res.lists;
|
||||
});
|
||||
|
||||
|
@ -18,6 +18,7 @@
|
||||
<el-select
|
||||
v-model="formData.type"
|
||||
clearable
|
||||
:disabled="mode != 'add'"
|
||||
placeholder="请输入任务类型"
|
||||
@change="changeTaskType"
|
||||
>
|
||||
@ -34,6 +35,7 @@
|
||||
<el-select
|
||||
v-model="formData.types"
|
||||
clearable
|
||||
:disabled="mode != 'add'"
|
||||
placeholder="请输入阶段类型"
|
||||
>
|
||||
<el-option
|
||||
@ -163,6 +165,7 @@ import {
|
||||
apiTaskTemplateAdd,
|
||||
apiTaskTemplateEdit,
|
||||
apiTaskTemplateDetail,
|
||||
apiTaskTypeList,
|
||||
} from "@/api/task_template";
|
||||
import { timeFormat } from "@/utils/util";
|
||||
import type { PropType } from "vue";
|
||||
@ -234,7 +237,7 @@ if (route.query.id) {
|
||||
formData.task_scheduling = route.query.id;
|
||||
}
|
||||
//任务类型接口
|
||||
dictDataLists({ type_id: 15 }).then((res) => {
|
||||
apiTaskTypeList({ type_value: "town_task_type" }).then((res) => {
|
||||
datalist.value = res.lists;
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user