From e77f8bff26b23137987147c71e63419114881230 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=84=E8=AF=97=E6=B4=A5?= <2723065175@qq.com> Date: Tue, 16 Apr 2024 06:07:05 +0000 Subject: [PATCH] =?UTF-8?q?!2687=20=E4=BC=98=E5=8C=96:F1=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=B8=80=E5=BB=BA=E6=A3=80=E6=9F=A5=E5=91=BD=E4=BB=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/UI/Components/Board/CommonBoardOption.tsx | 4 ---- src/UI/Components/CommandPanel/CommandList.ts | 10 ++++++++++ src/UI/Components/TopToolBar/TopToolBar.tsx | 2 +- src/UI/IconEnum.ts | 3 ++- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/UI/Components/Board/CommonBoardOption.tsx b/src/UI/Components/Board/CommonBoardOption.tsx index cd617b9ef..2bac92558 100644 --- a/src/UI/Components/Board/CommonBoardOption.tsx +++ b/src/UI/Components/Board/CommonBoardOption.tsx @@ -87,10 +87,6 @@ export function AddCommonBoardProps(Com: React.ComponentType this.setBrConfig(); } } - componentDidUpdate(prevProps: Readonly<{ board: Board; }>, prevState: Readonly<{}>, snapshot?: any): void - { - console.log('1', 1); - } get CurrentBoard() { return this._CurrentBoard.get(); diff --git a/src/UI/Components/CommandPanel/CommandList.ts b/src/UI/Components/CommandPanel/CommandList.ts index c9caa528c..475c6ac06 100644 --- a/src/UI/Components/CommandPanel/CommandList.ts +++ b/src/UI/Components/CommandPanel/CommandList.ts @@ -982,6 +982,16 @@ export const CommandList: ICommand[] = [ chName: "编辑板件模板", chDes: "编辑板件模板", }, + { + icon: IconEnum.OneClickInspection, + typeId: "bjbj", + link: `#`, + defaultCustom: CommandNames.OneClickInspection, + command: CommandNames.OneClickInspection, + type: "板件编辑", + chName: "一键检查", + chDes: "可选同时检查板件多项信息", + }, //灯光命令 { diff --git a/src/UI/Components/TopToolBar/TopToolBar.tsx b/src/UI/Components/TopToolBar/TopToolBar.tsx index a734fa6af..cad87dc99 100644 --- a/src/UI/Components/TopToolBar/TopToolBar.tsx +++ b/src/UI/Components/TopToolBar/TopToolBar.tsx @@ -106,7 +106,7 @@ export class TopToolBar extends React.Component<{}, {}> { svg: IconEnum.BoardFindModify, title: "批量修改板件大小", command: CommandNames.BatchModifyPanel }, { svg: IconEnum.ClearRelatedGroove, title: "清除关联切割", command: CommandNames.ClearRef }, { svg: IconEnum.ModifyGroovesKnife, title: "修改凹槽", command: CommandNames.ModifyGroovesKnife }, - { svg: "", title: "一键检查", command: CommandNames.OneClickInspection }, + { svg: IconEnum.OneClickInspection, title: "一键检查", command: CommandNames.OneClickInspection }, ]; store.iconList.dim = [ { svg: IconEnum.DAL, title: "对齐标注", command: CommandNames.AlignDim }, diff --git a/src/UI/IconEnum.ts b/src/UI/IconEnum.ts index 0e66659d5..718208e3f 100644 --- a/src/UI/IconEnum.ts +++ b/src/UI/IconEnum.ts @@ -245,5 +245,6 @@ export enum IconEnum BoardInfoDim = "BoardInfoDim.svg",//板件标注 Modeling = "Modeling.svg",//一键建模 TemplateGroup = "TemplateGroup.svg",//模块组合 - DrawArcBoard = "DrawArcBoard.svg" + DrawArcBoard = "DrawArcBoard.svg",//画圆弧板 + OneClickInspection = "OneClickInspection.svg",//一键检查 }