Commit ec1c81c7 authored by TZW's avatar TZW

1130

parent be2b06f4
......@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-10 09:39:56
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-11-30 13:56:43
* @Last Modified time: 2022-11-30 14:36:31
*/
import * as React from 'react';
......@@ -634,7 +634,7 @@ function Model(props) {
overlay={menu}
trigger={['click']}
arrow={true}
getPopupContainer={() => document.getElementsByClassName('ant-table-container')[0]}
getPopupContainer={() => containderef.current}
>
<Button size="small">更多</Button>
</Dropdown>
......@@ -2035,6 +2035,7 @@ function Model(props) {
}
};
const containderef = useRef();
return (
<div style={{ position: 'relative' }}>
<div className="ant-card-head">
......@@ -2044,7 +2045,7 @@ function Model(props) {
</div>
</div>
</div>
<Layout style={{ height: '100%' }}>
<Layout style={{ height: '100%' }} ref={containderef}>
<Sider theme="light" width={300}>
<TreeRender url="/auth/sysFactory/getTree" onselected={onselecteTree} noaction={true} />
</Sider>
......
......@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-11-11 17:11:00
* @Last Modified time: 2022-11-30 14:14:28
*/
import * as React from 'react';
......@@ -75,7 +75,7 @@ function Model(props) {
params,
});
if (res.code === '0000') {
message.success('新增成功!');
message.success('编辑成功!');
setDrawer((s) => ({
...s,
visible: false,
......@@ -96,7 +96,7 @@ function Model(props) {
return (
<PremButton
pop={{
title: '是否删除该设备?',
title: '是否删除该型号?',
okText: '确认',
cancelText: '取消',
onConfirm: async () => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment