liting2017 6 yıl önce
ebeveyn
işleme
3d2e7870c8

+ 1 - 2
js/component/account/achievement/achievementDetails.jsx

@@ -119,10 +119,9 @@ const DemandDetail = Form.create()(React.createClass({
             method: "POST",
             dataType: "json",
             crossDomain: false,
-            url: globalConfig.context +  '/api/user/demand/offShelf',
+            url: globalConfig.context +  '/api/user/achievement/offShelf',
             data: {
                 id: this.state.id,
-                auditStatus:this.state.auditStatus
             }
         }).done(function (data) {
             if (!data.error.length) {

+ 1 - 1
js/component/account/achievement/achievementForm.jsx

@@ -192,7 +192,7 @@ const DemandDetailForm = Form.create()(React.createClass({
 					id:thisData.id,
 					tags: thisData.keywords,
 					data: thisData,
-					publishPages:thisData.publishPages,
+					publishPages:thisData.publishPages.length?thisData.publishPages:['app_achievement_list','web_achievement_list'],
 					auditStatus:thisData.auditStatus,
                     pictureUrl: thisData.technicalPictureUrl ? splitUrl(thisData.technicalPictureUrl, ',', globalConfig.avatarHost + '/upload') : []
                 });

+ 1 - 2
js/component/account/achievement/techAchievement.jsx

@@ -191,10 +191,9 @@ const DemandList = React.createClass({
             method: "POST",
             dataType: "json",
             crossDomain: false,
-            url: globalConfig.context +  '/api/user/demand/offShelf',
+            url: globalConfig.context +  '/api/user/achievement/offShelf',
             data: {
                 id: recard.id,
-                auditStatus:recard.auditStatus 
             }
         }).done(function (data) {
             if (!data.error.length) {