|
@@ -140,7 +140,7 @@ const Inventory = () => {
|
|
|
size="small"
|
|
|
type="primary"
|
|
|
ghost
|
|
|
- disabled={!record?.moveable || record.position !== 'bottom'}
|
|
|
+ disabled={!record?.moveable || record?.position === 'top'}
|
|
|
onClick={() => moveWithOperation('up')}>
|
|
|
上移
|
|
|
</Button>
|
|
@@ -149,7 +149,7 @@ const Inventory = () => {
|
|
|
size="small"
|
|
|
type="primary"
|
|
|
ghost
|
|
|
- disabled={!record?.moveable || record.position !== 'top'}
|
|
|
+ disabled={!record?.moveable || record?.position === 'bottom'}
|
|
|
onClick={() => moveWithOperation('down')}>
|
|
|
下移
|
|
|
</Button>
|
|
@@ -172,7 +172,13 @@ const Inventory = () => {
|
|
|
size="small"
|
|
|
bordered
|
|
|
expandable={{ defaultExpandAllRows: true }}
|
|
|
- onRow={record => ({ onClick: () => rowClick(record) })}
|
|
|
+ onRow={record => ({
|
|
|
+ onClick: () => {
|
|
|
+ console.log(record)
|
|
|
+
|
|
|
+ rowClick(record)
|
|
|
+ }
|
|
|
+ })}
|
|
|
rowClassName={row => (row.ID === record?.ID ? 'ant-table-row-selected' : '')}
|
|
|
/>
|
|
|
)}
|