yee 7 years ago
parent
commit
885354963d

+ 1 - 1
js/component/account/services/technology.jsx

@@ -17,7 +17,7 @@ const Technology = React.createClass({
             loading: true
         });
         $.ajax({
-            method: "post",
+            method: "get",
             dataType: "json",
             crossDomain: false,
             url: globalConfig.context + "/api/user/techproject/listClientTechProject",

+ 8 - 8
js/component/manageCenter/achievement/techAchievementDesc.jsx

@@ -145,7 +145,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
             businessPlanFileList: []
         };
     },
-    loadData(id) {
+    loadData(id, detailApiUrl) {
         this.setState({
             loading: true
         });
@@ -153,7 +153,7 @@ const AchievementDetailShow = Form.create()(React.createClass({
             method: "get",
             dataType: "json",
             crossDomain: false,
-            url: globalConfig.context + this.props.detailApiUrl,
+            url: globalConfig.context + detailApiUrl,
             data: {
                 id: id
             },
@@ -277,11 +277,11 @@ const AchievementDetailShow = Form.create()(React.createClass({
         }.bind(this));
     },
     componentWillMount() {
-        this.loadData(this.props.data.id);
+        this.loadData(this.props.data.id, this.props.detailApiUrl);
     },
     componentWillReceiveProps(nextProps) {
         if (!this.props.visible && nextProps.visible) {
-            this.loadData(nextProps.data.id);
+            this.loadData(nextProps.data.id, nextProps.detailApiUrl);
             this.state.textFileList = [];
             this.state.techPlanFileList = [];
             this.state.businessPlanFileList = [];
@@ -618,7 +618,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
             dataSource: [],
         };
     },
-    loadData(id) {
+    loadData(id, detailApiUrl) {
         this.setState({
             loading: true
         });
@@ -626,7 +626,7 @@ const AchievementDetailForm = Form.create()(React.createClass({
             method: "get",
             dataType: "json",
             crossDomain: false,
-            url: globalConfig.context + this.props.detailApiUrl,
+            url: globalConfig.context + detailApiUrl,
             data: {
                 id: id
             },
@@ -839,11 +839,11 @@ const AchievementDetailForm = Form.create()(React.createClass({
     },
     componentWillMount() {
         this.state.therottleSearch = throttle(this.handleSearch, 1000, { leading: false }).bind(this);
-        this.loadData(this.props.data.id);
+        this.loadData(this.props.data.id, this.props.detailApiUrl);
     },
     componentWillReceiveProps(nextProps) {
         if (!this.props.visible && nextProps.visible) {
-            this.loadData(nextProps.data.id);
+            this.loadData(nextProps.data.id.nextProps.detailApiUrl);
             this.state.textFileList = [];
             this.state.techPlanFileList = [];
             this.state.businessPlanFileList = [];

File diff suppressed because it is too large
+ 660 - 617
js/component/manageCenter/demand/techDemandDesc.jsx