|
@@ -28,6 +28,7 @@ import ResolutionDetail from '@/resolutionDetail'
|
|
|
import ImgList from "./common/imgList";
|
|
|
import CheckProject from "./manageCenter/components/checkProject";
|
|
|
import { cuiJieDian } from '@/dataDic.js'
|
|
|
+import {getProjectName} from "./tools";
|
|
|
const { TabPane } = Tabs
|
|
|
const project = React.createClass({
|
|
|
getInitialState() {
|
|
@@ -39,7 +40,6 @@ const project = React.createClass({
|
|
|
|
|
|
containOfficialFees:0,//官费缴费情况
|
|
|
|
|
|
- visible: false,
|
|
|
record: this.props.record,
|
|
|
paginations: false,
|
|
|
tabsKey: "1",
|
|
@@ -173,9 +173,8 @@ const project = React.createClass({
|
|
|
],
|
|
|
}
|
|
|
},
|
|
|
- componentWillReceiveProps(nextProps) {
|
|
|
+ componentWillReceiveProps(nextProps){
|
|
|
this.setState({
|
|
|
- visible: nextProps.visible,
|
|
|
record: nextProps.record,
|
|
|
})
|
|
|
if (nextProps.record) {
|
|
@@ -208,8 +207,6 @@ const project = React.createClass({
|
|
|
resVisible: false,
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
- componentDidMount() {},
|
|
|
xiangqing(id) {
|
|
|
this.setState({
|
|
|
loading: true,
|
|
@@ -822,12 +819,12 @@ const project = React.createClass({
|
|
|
},
|
|
|
}
|
|
|
return (
|
|
|
- this.state.visible ? <Modal
|
|
|
+ this.props.visible ? <Modal
|
|
|
className="customeDetails"
|
|
|
footer=""
|
|
|
title=""
|
|
|
width="900px"
|
|
|
- visible={this.state.visible}
|
|
|
+ visible={this.props.visible}
|
|
|
// onOk={this.visitOk}
|
|
|
onCancel={(e) => {
|
|
|
this.setState({
|
|
@@ -1249,7 +1246,7 @@ const project = React.createClass({
|
|
|
{/* })*/}
|
|
|
{/* }}*/}
|
|
|
{/*/>*/}
|
|
|
- {this.state.attachmentUrl && this.state.visible && this.state.tabsKey === "1" ? <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
|
|
|
+ {this.state.attachmentUrl && this.props.visible && this.state.tabsKey === "1" ? <div style={{paddingTop:'10px',paddingBottom:'10px'}}>
|
|
|
<ImgList fileList={this.state.attachmentUrl} ItemWidth={'96px'}/>
|
|
|
</div> : <div/>}
|
|
|
<Modal
|
|
@@ -1315,7 +1312,7 @@ const project = React.createClass({
|
|
|
{this.state.tabsKey === "2" ? <Spin spinning={this.state.loading}>
|
|
|
<div>
|
|
|
{
|
|
|
- this.state.visible && this.state.tabsKey === '2' ?
|
|
|
+ this.props.visible && this.state.tabsKey === '2' ?
|
|
|
<CheckProject
|
|
|
{...this.props}
|
|
|
tid={this.props.record.id}
|