|
@@ -9,24 +9,24 @@ import LockLowerList from '@/components/PopContent/Locks/LockLowerList'
|
|
|
import LockTabList from '@/components/PopContent/Locks/LockTabList'
|
|
import LockTabList from '@/components/PopContent/Locks/LockTabList'
|
|
|
|
|
|
|
|
const index = props => {
|
|
const index = props => {
|
|
|
- const { visible, onClose,collapsed, id = '' } = props
|
|
|
|
|
|
|
+ const { visible, onClose, collapsed, id = '' } = props
|
|
|
const needSubtractHeight = 55 // 需要被裁掉的高度
|
|
const needSubtractHeight = 55 // 需要被裁掉的高度
|
|
|
// const needSubtractWidth = (collapsed ? 208 : 48) + 48 + 48 + 48 // 需要被裁掉的高度
|
|
// const needSubtractWidth = (collapsed ? 208 : 48) + 48 + 48 + 48 // 需要被裁掉的高度
|
|
|
- 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:[],
|
|
|
|
|
|
|
+ log: [],
|
|
|
total: 0,
|
|
total: 0,
|
|
|
- longleLog:[]
|
|
|
|
|
|
|
+ longleLog: []
|
|
|
})
|
|
})
|
|
|
const initData = async () => {
|
|
const initData = async () => {
|
|
|
const {
|
|
const {
|
|
|
- code = -1,
|
|
|
|
|
- data: { longle = {}, log = [], longleLog = [], total = 0 } = { longle: {}, longleLog: [], total: 0 }
|
|
|
|
|
|
|
+ data: { longle = {}, log = [], longleLog = [] } = { longle: {}, longleLog: [] },
|
|
|
|
|
+ code = -1
|
|
|
} = await apiSoftwareDetail(id)
|
|
} = await apiSoftwareDetail(id)
|
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
if (code === consts.RET_CODE.SUCCESS) {
|
|
|
- setState({ ...state, data:longle, log, longleLog, total })
|
|
|
|
|
|
|
+ setState({ ...state, longle, log, longleLog })
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
@@ -42,24 +42,24 @@ const index = props => {
|
|
|
}, [visible])
|
|
}, [visible])
|
|
|
return (
|
|
return (
|
|
|
<div>
|
|
<div>
|
|
|
- <div className='sheet-box'>
|
|
|
|
|
|
|
+ <div className="sheet-box">
|
|
|
<Drawer
|
|
<Drawer
|
|
|
- title="软件锁"
|
|
|
|
|
- placement="right"
|
|
|
|
|
- bodyStyle={{
|
|
|
|
|
- height:y,
|
|
|
|
|
- overflowY:'hidden'
|
|
|
|
|
- }}
|
|
|
|
|
- width={clientWidth}
|
|
|
|
|
- closable
|
|
|
|
|
- onClose={onClose}
|
|
|
|
|
- visible={visible}
|
|
|
|
|
- // mask={false}
|
|
|
|
|
- >
|
|
|
|
|
|
|
+ title="软件锁"
|
|
|
|
|
+ placement="right"
|
|
|
|
|
+ bodyStyle={{
|
|
|
|
|
+ height: y,
|
|
|
|
|
+ overflowY: 'hidden'
|
|
|
|
|
+ }}
|
|
|
|
|
+ width={clientWidth}
|
|
|
|
|
+ closable
|
|
|
|
|
+ onClose={onClose}
|
|
|
|
|
+ visible={visible}
|
|
|
|
|
+ // mask={false}
|
|
|
|
|
+ >
|
|
|
<Row>
|
|
<Row>
|
|
|
- <Col span={12} className="sheet-box-left" style={{ height:y-25,overflowY:'auto' }}>
|
|
|
|
|
|
|
+ <Col span={12} className="sheet-box-left" style={{ height: y - 25, overflowY: 'auto' }}>
|
|
|
<div className="sheet-left-panel zh-pd-right-15">
|
|
<div className="sheet-left-panel zh-pd-right-15">
|
|
|
- <LockForm longle={state.longle}/>
|
|
|
|
|
|
|
+ <LockForm longle={state.longle} />
|
|
|
</div>
|
|
</div>
|
|
|
</Col>
|
|
</Col>
|
|
|
<Col span={12}>
|
|
<Col span={12}>
|