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