!3084 修复:排钻配置规则为空时,保存错误问题

pull/3073/MERGE
林三 3 weeks ago committed by ChenX
parent 1d23211fd7
commit 216256abff

@ -5,6 +5,7 @@ import { mapSortByCN } from "../../Common/ArrayExt";
import { CheckObjectType, CheckoutValid } from "../../Common/CheckoutVaildValue";
import { DataAdapter } from "../../Common/DataAdapter";
import { DirUrl, TemplateUrls } from "../../Common/HostUrl";
import { Log, LogType } from "../../Common/Log";
import { DirectoryId, PostJson, RequestStatus } from "../../Common/Request";
import { EntitysIn, EntitysOut, GetEntitysLogo, deflate } from "../../Common/SerializeMaterial";
import { StoreageKeys } from "../../Common/StoreageKeys";
@ -323,8 +324,18 @@ export class DrillStore extends BoardStore
/**修正就版本排钻配置,缓存排钻模板 */
HandleDrillConfig(ruleMap: Map<string, DrillingOption[]>)
{
for (let [, configs] of ruleMap)
for (let [key, configs] of ruleMap)
{
if (!configs)
{
AppToaster.show({
message: `排钻类型 "${key}" 规则为空, 请检查 !`,
timeout: 5000,
intent: Intent.WARNING
});
Log(`排钻类型 "${key}" 规则为空, 请检查 !`, LogType.Warning);
continue;
}
for (let conf of configs)
{
conf.tYmjRad = Number(conf.tYmjRad);

Loading…
Cancel
Save