File tree Expand file tree Collapse file tree 4 files changed +8
-43
lines changed
Expand file tree Collapse file tree 4 files changed +8
-43
lines changed Original file line number Diff line number Diff line change 11require ( '../util/Request' ) ;
2- require ( './ServiceUpdateParam' ) ;
32
43SuperMap . Service = SuperMap . Class ( {
54
@@ -48,10 +47,12 @@ SuperMap.Service = SuperMap.Class({
4847 } ,
4948
5049 update : function ( ) {
51- var serviceUpdateParam = new SuperMap . ServiceUpdateParam ( ) ;
52- for ( var key in serviceUpdateParam ) {
53- serviceUpdateParam [ key ] = this [ key ] ;
54- }
50+ var serviceUpdateParam = {
51+ authorizeSetting : this . authorizeSetting ,
52+ metadata : this . metadata ,
53+ tags : this . tags ,
54+ thumbnail : this . thumbnail
55+ } ;
5556 return this . request . put ( this . serviceUrl , serviceUpdateParam ) ;
5657 }
5758
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11require ( './Service' ) ;
2- require ( './ServicesDeleteParam' ) ;
32require ( './ServicesQueryParam' ) ;
43require ( '../util/Request' ) ;
54
@@ -31,9 +30,9 @@ SuperMap.Portal = SuperMap.Class({
3130 } ) ;
3231 } ,
3332
34- deleteServices : function ( params ) {
33+ deleteServices : function ( ids ) {
3534 var serviceUrl = this . iportalUrl + "/web/services" ;
36- return this . request . delete ( serviceUrl , params ) ;
35+ return this . request . delete ( serviceUrl , { ids : ids } ) ;
3736 }
3837
3938} )
You can’t perform that action at this time.
0 commit comments