修复任务安排回显bug

This commit is contained in:
weipengfei 2023-10-11 11:35:37 +08:00
parent 35a0f3364f
commit 68e15cdcb2

View File

@ -21,6 +21,7 @@
:disabled="mode != 'add'"
placeholder="请选择任务角色"
@change="changeTaskRole"
style="width: 100%"
>
<el-option
v-for="item in taskRoleRow"
@ -38,6 +39,7 @@
:disabled="mode != 'add'"
placeholder="请选择任务类型"
@change="changeTaskType"
style="width: 100%"
>
<el-option
v-for="item in datalist"
@ -48,12 +50,13 @@
</el-select>
</el-form-item>
<el-form-item label="阶段类型" prop="types">
<div>
<div style="width: 100%">
<el-select
v-model="formData.types"
clearable
:disabled="mode != 'add'"
placeholder="请选择阶段类型"
style="width: 100%"
>
<el-option
v-for="item in [
@ -257,9 +260,9 @@ if (route.query.id) {
formData.task_scheduling = route.query.id;
}
//
apiTaskTypeList({ type_value: taskType.value }).then((res) => {
datalist.value = res.lists;
});
// apiTaskTypeList({ type_value: taskType.value }).then((res) => {
// datalist.value = res.lists;
// });
//
const formRules = reactive<any>({
@ -409,6 +412,11 @@ const handleSubmit = async () => {
const open = (type = "add") => {
mode.value = type;
popupRef.value?.open();
if (type == "edit") {
apiTaskTypeList({ type_value: taskType.value }).then((res) => {
datalist.value = res.lists;
});
}
};
//