yee 7 роки тому
батько
коміт
103ad3a9b1

+ 2 - 2
js/component/account/services/activityCostList.jsx

@@ -12,7 +12,7 @@ const ActivityDescFrom = Form.create()(React.createClass({
         return {
             loading: false,
             activityNumberOption: [],
-            activityNumberObj:{},
+            activityNumberObj: {},
             yearOption: []
         };
     },
@@ -77,7 +77,7 @@ const ActivityDescFrom = Form.create()(React.createClass({
                     url: globalConfig.context + "/api/user/cognizance/activityCost",
                     data: {
                         id: this.props.data.id,
-                        aid: this.props.data.aid,
+                        aid: values.activityNumber,
                         activityNumber: this.state.activityNumberObj[values.activityNumber],
                         year: values.year,
 

+ 1 - 1
js/component/manageCenter/servicesManage/highTech/fosterDesc/activityCostList.jsx

@@ -20,7 +20,7 @@ const ActivityDescFrom = Form.create()(React.createClass({
         this.state.allCost = this.props.data.allCost;
         this.props.activityNumberList.map(function (item) {
             _me.state.activityNumberOption.push(
-                <Select.Option value={item.aid} key={item.uid}>{item.activityNumber}</Select.Option>
+                <Select.Option key={item.aid}>{item.activityNumber}</Select.Option>
             );
             _me.state.activityNumberObj[item.aid] = item.activityNumber;
         });

+ 2 - 1
js/component/portal/search/achievement.jsx

@@ -181,7 +181,8 @@ const Content = React.createClass({
         this.state.maturityRadio = theMaturityArr;
 
         if (window.location.search) {
-            this.state.keyword = window.location.search;
+            let theUrl = window.location.search
+            this.state.keyword =theUrl.substring(1, theUrl.length);
         };
 
         this.loadData();

+ 2 - 1
js/component/portal/search/demand.jsx

@@ -160,7 +160,8 @@ const Content = React.createClass({
         this.state.industryRadioA = theArr;
         this.state.demandTypeRadio = demandArr;
         if (window.location.search) {
-            this.state.keyword = window.location.search;
+            let theUrl = window.location.search
+            this.state.keyword =theUrl.substring(1, theUrl.length);
         };
         this.loadData();
     },

+ 6 - 0
js/component/portal/search/subscriber.jsx

@@ -100,6 +100,12 @@ const SubContent = React.createClass({
         });
         this.state.fieldFirstOption = theFieldArr;
         this.state.provinceOption = theProvinceArr;
+
+        if (window.location.search) {
+            let theUrl = window.location.search
+            this.state.keyword =theUrl.substring(1, theUrl.length);
+        };
+        
         this.loadData();
     },
     fieldFirstChange(e) {