Commit ec1c81c7 authored by TZW's avatar TZW

1130

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