|
@@ -1,4 +1,5 @@
|
|
|
import React, { useState, useEffect } from 'react'
|
|
import React, { useState, useEffect } from 'react'
|
|
|
|
|
+import '../index.scss'
|
|
|
import { Drawer, Row, Col } from 'antd'
|
|
import { Drawer, Row, Col } from 'antd'
|
|
|
import useAutoTable from '@/hooks/useAutoTable'
|
|
import useAutoTable from '@/hooks/useAutoTable'
|
|
|
import consts from '@/consts'
|
|
import consts from '@/consts'
|
|
@@ -14,15 +15,17 @@ const index = props => {
|
|
|
const [x,y] = useAutoTable(collapsed, needSubtractHeight)
|
|
const [x,y] = useAutoTable(collapsed, needSubtractHeight)
|
|
|
const [clientWidth, setClientWidth] = useState(document.body.clientWidth * 0.75)
|
|
const [clientWidth, setClientWidth] = useState(document.body.clientWidth * 0.75)
|
|
|
const [state, setState] = useState({
|
|
const [state, setState] = useState({
|
|
|
- longle: {}
|
|
|
|
|
|
|
+ longle: {},
|
|
|
|
|
+ log:[],
|
|
|
|
|
+ longleLog:[]
|
|
|
})
|
|
})
|
|
|
const initData = async () => {
|
|
const initData = async () => {
|
|
|
const {
|
|
const {
|
|
|
- data: { longle = {} },
|
|
|
|
|
|
|
+ data: { longle = {}, log = [], longleLog = [] },
|
|
|
code = -1
|
|
code = -1
|
|
|
} = await apiSoftwareDetail(id)
|
|
} = await apiSoftwareDetail(id)
|
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
|
- setState({ ...state, longle })
|
|
|
|
|
|
|
+ setState({ ...state, longle, log, longleLog })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
@@ -59,8 +62,8 @@ const index = props => {
|
|
|
</div>
|
|
</div>
|
|
|
</Col>
|
|
</Col>
|
|
|
<Col span={12}>
|
|
<Col span={12}>
|
|
|
- <LockTabList />
|
|
|
|
|
- <LockLowerList />
|
|
|
|
|
|
|
+ <LockTabList longleLog={state.longleLog} />
|
|
|
|
|
+ <LockLowerList log={state.log} />
|
|
|
</Col>
|
|
</Col>
|
|
|
</Row>
|
|
</Row>
|
|
|
</Drawer>
|
|
</Drawer>
|