|
|
|
@ -259,7 +259,6 @@ interface IBBSSealingComponentProps
|
|
|
|
|
option: IBoardInfoOptions;
|
|
|
|
|
ModifyDataRecord: (index: number, brData: Board, modifyKey: string, value: string | LinesType | ProcessingGroupRecord[]) => void;
|
|
|
|
|
index: number;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -601,42 +600,50 @@ export class BBSProcessGroupItem extends React.Component<IBBSProcessGroupItemPro
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
interface IBBSRemarksComponentProps extends IBBSSealingComponentProps
|
|
|
|
|
{
|
|
|
|
|
getCalcStyles: (key: string) => React.CSSProperties;
|
|
|
|
|
}
|
|
|
|
|
@observer
|
|
|
|
|
export class BBSRemarksComponent extends React.Component<IBBSSealingComponentProps>
|
|
|
|
|
export class BBSRemarksComponent extends React.Component<IBBSRemarksComponentProps>
|
|
|
|
|
{
|
|
|
|
|
render()
|
|
|
|
|
{
|
|
|
|
|
const { board, option, index, click } = this.props;
|
|
|
|
|
|
|
|
|
|
return (
|
|
|
|
|
<>
|
|
|
|
|
{
|
|
|
|
|
option.remarks.length === 0 ?
|
|
|
|
|
<div className="bbs-list-td bbs-td">
|
|
|
|
|
<div className="bbs-list-td bbs-td remarks" style={this.props.getCalcStyles("remarks")}>
|
|
|
|
|
<input
|
|
|
|
|
className="bp3-input "
|
|
|
|
|
value=""
|
|
|
|
|
readOnly={true}
|
|
|
|
|
onClick={() => { click("remarks"); }}
|
|
|
|
|
/>
|
|
|
|
|
</div>
|
|
|
|
|
:
|
|
|
|
|
<div className="bbs-list-td bbs-td remarks" style={this.props.getCalcStyles("remarks")} >
|
|
|
|
|
<Tooltip
|
|
|
|
|
className="bbs-list-td bbs-td"
|
|
|
|
|
usePortal={false}
|
|
|
|
|
content={<ul>
|
|
|
|
|
content={
|
|
|
|
|
<ul>
|
|
|
|
|
{
|
|
|
|
|
option.remarks.map((d, i) => <li key={i}>{d[0]} : {d[1]}</li>)
|
|
|
|
|
}
|
|
|
|
|
</ul>}
|
|
|
|
|
</ul>
|
|
|
|
|
}
|
|
|
|
|
position={Position.RIGHT}
|
|
|
|
|
intent={Intent.PRIMARY}
|
|
|
|
|
>
|
|
|
|
|
<input
|
|
|
|
|
className="bp3-input "
|
|
|
|
|
className="bp3-input"
|
|
|
|
|
value={option.remarks.reduce((s, r) => s += `${r[0]}:${r[1]} `, "")}
|
|
|
|
|
readOnly={true}
|
|
|
|
|
onClick={() => { click("remarks"); }}
|
|
|
|
|
/>
|
|
|
|
|
</Tooltip>
|
|
|
|
|
</div>
|
|
|
|
|
}
|
|
|
|
|
</>
|
|
|
|
|
);
|
|
|
|
|