提交 a7884ea7 authored 作者: 钟是志's avatar 钟是志

样式修改

上级 cb78b2e4
...@@ -9,6 +9,7 @@ import { Input, Row, Col, Modal, Checkbox } from 'antd'; ...@@ -9,6 +9,7 @@ import { Input, Row, Col, Modal, Checkbox } from 'antd';
import Btn from '../pagesBtn'; import Btn from '../pagesBtn';
import MyModal from '../Modal'; import MyModal from '../Modal';
import styles from './styles.less'; import styles from './styles.less';
import {getContainer} from "@/webPublic/one_stop_public/utils/utils";
const { TextArea } = Input; const { TextArea } = Input;
export default class userButton extends Component { export default class userButton extends Component {
...@@ -133,6 +134,8 @@ export default class userButton extends Component { ...@@ -133,6 +134,8 @@ export default class userButton extends Component {
this.setState({ checked: e.target.checked }); this.setState({ checked: e.target.checked });
}; };
render() { render() {
const { btnList, visibleOk, value, user, returnText } = this.state; const { btnList, visibleOk, value, user, returnText } = this.state;
const { const {
...@@ -145,7 +148,7 @@ export default class userButton extends Component { ...@@ -145,7 +148,7 @@ export default class userButton extends Component {
} = this.props; } = this.props;
return ( return (
<> <>
<div className={styles.btn_page}> <div className={styles.btn_page} id={'form_btns_list'}>
{btns.length > 0 {btns.length > 0
? btns.map((item, index) => { ? btns.map((item, index) => {
const className = this.getStyle(item.key, item.value); const className = this.getStyle(item.key, item.value);
...@@ -167,7 +170,10 @@ export default class userButton extends Component { ...@@ -167,7 +170,10 @@ export default class userButton extends Component {
{/* <Btn get='2' btnOne={()=>{this.showModal('不同意')}} btnTwo={()=>{this.showModal('驳回')}} btnThree={()=>{this.showModal('通过')}}/> */} {/* <Btn get='2' btnOne={()=>{this.showModal('不同意')}} btnTwo={()=>{this.showModal('驳回')}} btnThree={()=>{this.showModal('通过')}}/> */}
<MyModal <MyModal
visible={visibleOk} visible={visibleOk}
getContainer={false} getContainer={() => {
// return document.getElementById('form_btns_list').parentNode.parentNode;
return getContainer(document.getElementById('form_btns_list').parentNode.parentNode);
}}
title={isSecond ? '重新发起' : '通过审批'} title={isSecond ? '重新发起' : '通过审批'}
width={600} width={600}
handleCancel={this.handleCancelOk}> handleCancel={this.handleCancelOk}>
......
...@@ -29,6 +29,7 @@ export const dispatch = (type, payload, callback) => { ...@@ -29,6 +29,7 @@ export const dispatch = (type, payload, callback) => {
export const getContainer = (node) => { export const getContainer = (node) => {
// console.log(node); // console.log(node);
console.log(window.parent?.document);
if(window.parent?.document && node){ if(window.parent?.document && node){
return node; return node;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论