49 lines
1.7 KiB
JavaScript
49 lines
1.7 KiB
JavaScript
|
|
import { Button,Spin} from 'antd';
|
|
import {WeaLocaleProvider, WeaDialog, WeaSelect, WeaFormItem} from "ecCom"
|
|
import {inject, observer} from "mobx-react";
|
|
import {toJS} from 'mobx';
|
|
import ProjectCondition from '../list/projectCondition';
|
|
const getLabel = WeaLocaleProvider.getLabel;
|
|
|
|
@observer
|
|
class editPrjFeedBackSetDialog extends React.Component {
|
|
constructor(props) {
|
|
super(props);
|
|
this.state={
|
|
width:1020,
|
|
height:650,
|
|
}
|
|
}
|
|
|
|
render() {
|
|
const {prjGroupStore} = this.props;
|
|
const {visible,handlePrjGroupDialog,fieldinfo,form,setFormFields,title} = prjGroupStore;
|
|
return (
|
|
<div>
|
|
<WeaDialog
|
|
title={title||getLabel('30747','设置') }
|
|
visible={visible}
|
|
// style= {{width: width, height: dialogHeight}}
|
|
maskClosable={false}
|
|
icon="icon-coms-project"
|
|
iconBgcolor="#217346"
|
|
onCancel={()=>handlePrjGroupDialog(false)}
|
|
buttons={this.getDialogButtons()}
|
|
>
|
|
<ProjectCondition fieldInfo={fieldinfo} form={form} setFormFields={(v)=>{setFormFields(v)}} />
|
|
</WeaDialog>
|
|
</div>)
|
|
}
|
|
|
|
getDialogButtons(){
|
|
const {projectPortalStore,prjGroupStore} = this.props;
|
|
let btn = [];
|
|
btn.push(<Button type="primary" onClick={()=>{prjGroupStore.savePrjGroupInfo(projectPortalStore);}}>{getLabel(86,"保存")}</Button>);
|
|
btn.push(<Button type="primary" onClick={()=>prjGroupStore.handlePrjGroupDialog(false)}>{getLabel(309,"关闭")}</Button>);
|
|
return btn
|
|
}
|
|
|
|
}
|
|
|
|
export default editPrjFeedBackSetDialog; |