UPDATE:修改编辑计划按钮判断是否为主计划逻辑
This commit is contained in:
@@ -580,8 +580,8 @@ const openDialog = (titleType: string, row: Partial<Plan.ReqPlan> = {}) => {
|
||||
if (row.children?.length > 0) {
|
||||
// 有子计划 -> 主计划
|
||||
planType = 0
|
||||
} else if (row.origin == null) {
|
||||
// 没有来源 -> 主计划
|
||||
} else if (row.fatherPlanId === '0') {
|
||||
// 父级ID为"0" -> 主计划
|
||||
planType = 0
|
||||
} else {
|
||||
// 其他 -> 修改子计划
|
||||
|
||||
Reference in New Issue
Block a user