修复任务安排回显bug
This commit is contained in:
parent
35a0f3364f
commit
68e15cdcb2
@ -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;
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
// 关闭回调
|
||||
|
Loading…
x
Reference in New Issue
Block a user