|
|
|
@ -774,8 +774,18 @@ export default { |
|
|
|
// 根据层索引确定窄任务文本的垂直偏移 |
|
|
|
// 根据层索引确定窄任务文本的垂直偏移 |
|
|
|
getNarrowTaskOffsetByLayerLeft(processName) { |
|
|
|
getNarrowTaskOffsetByLayerLeft(processName) { |
|
|
|
// 偶数层在上方显示(负值),奇数层在下方显示(正值) |
|
|
|
// 偶数层在上方显示(负值),奇数层在下方显示(正值) |
|
|
|
const offset = processName.length >= 5 ? -30 : -7; |
|
|
|
// const offset = processName.length >= 5 ? -30 : -15; |
|
|
|
return offset; |
|
|
|
const offset = null; |
|
|
|
|
|
|
|
if (processName.length >= 7) { |
|
|
|
|
|
|
|
return -33; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (processName.length >= 6) { |
|
|
|
|
|
|
|
return -20; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (processName.length >= 5) { |
|
|
|
|
|
|
|
return -17; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
return -7 |
|
|
|
}, |
|
|
|
}, |
|
|
|
handleParamsChange() { |
|
|
|
handleParamsChange() { |
|
|
|
// 参数变化时的处理逻辑 |
|
|
|
// 参数变化时的处理逻辑 |
|
|
|
@ -909,7 +919,6 @@ export default { |
|
|
|
return `星期${days[dayIndex]}`; |
|
|
|
return `星期${days[dayIndex]}`; |
|
|
|
}, |
|
|
|
}, |
|
|
|
processChange(val) { |
|
|
|
processChange(val) { |
|
|
|
console.log(9999, val); |
|
|
|
|
|
|
|
if (val) { |
|
|
|
if (val) { |
|
|
|
this.formLabelAlign.processName = val.name; |
|
|
|
this.formLabelAlign.processName = val.name; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
|