@mapgis/webclient-common 17.0.7 → 17.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -37
- package/dist/es5/webclient-common.min.js +15 -4
- package/dist/webclient-common-es6.min.js +16 -5
- package/documention/AddressServer.html +12 -12
- package/documention/ArcGISFeatureServer.html +10 -10
- package/documention/ArcGISGeometryServer.html +10 -10
- package/documention/ArcGISMapImageLayer.html +10 -10
- package/documention/ArcGISMapImageSubLayer.html +311 -7
- package/documention/ArcGISMapServer.html +414 -10
- package/documention/ArcGISTileLayer.html +121 -13
- package/documention/ArcGISVectorTileLayer.html +7 -7
- package/documention/ArcGISVectorTileServer.html +10 -10
- package/documention/BaseRenderer.html +239 -0
- package/documention/BaseServer.html +11 -11
- package/documention/BaseView.html +458 -3
- package/documention/Basemap.html +3 -3
- package/documention/Callout3D.html +107 -0
- package/documention/Cesium3DTilesCacheLayer.html +149 -177
- package/documention/Cesium3DTilesServer.html +11 -11
- package/documention/Circle.html +110 -7
- package/documention/ClassBreakInfo.html +0 -217
- package/documention/ClassBreakRenderer.html +413 -23
- package/documention/ClusterRenderer.html +247 -7
- package/documention/Config.html +4 -4
- package/documention/Extent.html +118 -15
- package/documention/ExtrudeSymbol3DLayer.html +109 -2
- package/documention/Feature.html +7 -7
- package/documention/FeatureLayer.html +116 -8
- package/documention/FeatureServer.html +27 -27
- package/documention/FeatureSet.html +7 -7
- package/documention/FillSymbol.html +107 -0
- package/documention/FillSymbol3DLayer.html +109 -2
- package/documention/Font.html +4 -4
- package/documention/GeoJSONLayer.html +142 -34
- package/documention/Geometry.html +138 -7
- package/documention/GeometryEngine.html +79 -79
- package/documention/GeometryServer.html +30 -30
- package/documention/GraphicsLayer.html +147 -39
- package/documention/GroupLayer.html +120 -12
- package/documention/HeatmapRenderer.html +107 -0
- package/documention/IGSFeatureLayer.html +25 -25
- package/documention/IGSMapImageLayer.html +46 -46
- package/documention/IGSMapImageSubLayer.html +307 -3
- package/documention/IGSSceneLayer.html +11 -11
- package/documention/IGSSceneSubLayer.html +213 -33
- package/documention/IGSTileLayer.html +126 -19
- package/documention/IGSVectorTileLayer.html +230 -43
- package/documention/IGSVectorTileSubLayer.html +5 -4
- package/documention/IconSymbol3DLayer.html +111 -4
- package/documention/ImageServer.html +11 -11
- package/documention/LabelClass.html +10 -5
- package/documention/LabelSymbol3D.html +2 -2
- package/documention/Layer.html +244 -9
- package/documention/LineCallout3D.html +107 -0
- package/documention/LineString.html +113 -10
- package/documention/LineSymbol.html +107 -0
- package/documention/LineSymbol3D.html +2 -2
- package/documention/LineSymbol3DLayer.html +109 -2
- package/documention/M3DModelCacheLayer.html +133 -79
- package/documention/M3DServer.html +12 -12
- package/documention/Map.html +32 -5
- package/documention/MapGISTextSymbol.html +110 -3
- package/documention/MapImageLayer.html +527 -16
- package/documention/MapServer.html +14 -14
- package/documention/MapView.html +204 -3
- package/documention/MarkerSymbol.html +107 -0
- package/documention/MultiLineString.html +116 -13
- package/documention/MultiPoint.html +113 -10
- package/documention/MultiPolygon.html +112 -9
- package/documention/OGCLayer.html +116 -8
- package/documention/ObjectSymbol3DLayer.html +111 -4
- package/documention/OutStatistic.html +1 -1
- package/documention/OverlayLayer.html +116 -8
- package/documention/PathSymbol3DLayer.html +109 -2
- package/documention/PictureFillSymbol.html +169 -8
- package/documention/PictureMarkerSymbol.html +3 -3
- package/documention/PlotServer.html +10 -10
- package/documention/PoiServer.html +12 -12
- package/documention/Point.html +115 -12
- package/documention/PointSymbol3D.html +3 -3
- package/documention/Polygon.html +117 -14
- package/documention/PolygonSymbol3D.html +2 -2
- package/documention/Projection.html +429 -8
- package/documention/RandomRenderer.html +108 -1
- package/documention/RankRenderer.html +109 -2
- package/documention/ResourceServer.html +150 -150
- package/documention/RootServer.html +12 -12
- package/documention/SceneLayer.html +116 -8
- package/documention/SceneServer.html +16 -16
- package/documention/SceneView.html +10164 -130
- package/documention/SecurityServer.html +12 -12
- package/documention/SimpleFillSymbol.html +110 -3
- package/documention/SimpleLineSymbol.html +3 -3
- package/documention/SimpleMarkerSymbol.html +3 -3
- package/documention/SimpleRenderer.html +116 -9
- package/documention/SizeVariable.html +1 -1
- package/documention/SketchBaseDrawTool.html +181 -3
- package/documention/SketchCircleDrawTool.html +159 -3
- package/documention/SketchEditor.html +2 -2
- package/documention/SketchEditorCesium.html +1 -1
- package/documention/SketchEditorVideo.html +2 -2
- package/documention/SketchEditorVideoBase.html +3 -3
- package/documention/SketchExtentDrawTool.html +159 -3
- package/documention/SketchFreehandPolygonDrawTool.html +159 -3
- package/documention/SketchFreehandPolylineDrawTool.html +159 -3
- package/documention/SketchPointDrawTool.html +159 -3
- package/documention/SketchPolygonDrawTool.html +318 -6
- package/documention/SketchPolylineDrawTool.html +318 -6
- package/documention/SpatialReference.html +1 -1
- package/documention/SubLayer.html +296 -26
- package/documention/Symbol.html +134 -1
- package/documention/Symbol3DLayer.html +107 -0
- package/documention/Symbol3DVerticalOffset.html +107 -0
- package/documention/TerrainCacheLayer.html +133 -165
- package/documention/TerrainServer.html +11 -11
- package/documention/TextSymbol.html +111 -4
- package/documention/TextSymbol3DLayer.html +109 -2
- package/documention/ThemeServer.html +13 -13
- package/documention/TileLayer.html +116 -8
- package/documention/TileServer.html +12 -12
- package/documention/UniqueValueInfo.html +0 -217
- package/documention/UniqueValueRenderer.html +125 -18
- package/documention/UnknownLayer.html +116 -8
- package/documention/VectorTileLayer.html +117 -9
- package/documention/VectorTileServer.html +11 -11
- package/documention/VectorTileSubLayer.html +304 -0
- package/documention/VideoMapView.html +4 -4
- package/documention/WCSServer.html +10 -10
- package/documention/WFSLayer.html +140 -32
- package/documention/WFSServer.html +11 -11
- package/documention/WMSLayer.html +131 -23
- package/documention/WMSServer.html +12 -12
- package/documention/WMSSubLayer.html +218 -7
- package/documention/WMTSLayer.html +126 -18
- package/documention/WMTSServer.html +12 -12
- package/documention/WMTSSubLayer.html +116 -8
- package/documention/WPSServer.html +10 -10
- package/documention/WaterSymbol3DLayer.html +107 -0
- package/documention/WebTileLayer.html +121 -13
- package/documention/WorkFlowServer.html +12 -12
- package/documention/WorkFlowServer600227.html +12 -12
- package/documention/WorkFlowServer600228.html +13 -13
- package/documention/WorkFlowServer600229.html +12 -12
- package/documention/WorkFlowServer600230.html +12 -12
- package/documention/WorkFlowServer600231.html +12 -12
- package/documention/WorkFlowServer600232.html +13 -13
- package/documention/WorkFlowServer600233.html +14 -14
- package/documention/WorkFlowServer600235.html +12 -12
- package/documention/WorkFlowServer600237.html +13 -13
- package/documention/WorkFlowServer600238.html +15 -15
- package/documention/WorkFlowServer600239.html +16 -16
- package/documention/WorkFlowServer600307.html +14 -14
- package/documention/WorkFlowServer600308.html +2 -2
- package/documention/WorkFlowServer600309.html +12 -12
- package/documention/WorkFlowServer600314.html +12 -12
- package/documention/WorkFlowServer600334.html +12 -12
- package/documention/WorkFlowServer600336.html +12 -12
- package/documention/WorkFlowServer600340.html +12 -12
- package/documention/WorkFlowServer600354.html +12 -12
- package/documention/WorkFlowServer600368.html +12 -12
- package/documention/WorkFlowServer600369.html +12 -12
- package/documention/WorkFlowServer600370.html +12 -12
- package/documention/global.html +1024 -1874
- package/documention/index.html +84 -78
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CAllOtherDataItemInfoSource.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CAnnInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartLabelFormat.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartTheme.html +4 -4
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartThemeRepresentInfo.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CChartType.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CDotDensityTheme.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CFourColorTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CGraduatedSymbolTheme.html +7 -7
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CLinInfo.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CMultiClassTheme.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CPntInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRandomTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRangeTheme.html +5 -5
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRangeThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CRegInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CSimpleTheme.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CTheme.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CThemeInfo.html +7 -7
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CUniqueTheme.html +4 -4
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.CUniqueThemeInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ExpInfo.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.FolderInfo.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.FolderInfoAttribute.html +1 -1
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ItemValue.html +3 -3
- package/documention/module-%E4%B8%93%E9%A2%98%E5%9B%BE%E6%9C%8D%E5%8A%A1.ThemesInfo.html +2 -2
- package/documention/scripts/sideBar.js +16 -2
- package/documention/tutorial-/346/270/262/346/237/223/345/231/250.html +5 -1
- package/documention/tutorial-/347/254/246/345/217/267.html +52 -6
- package/documention/tutorial-/350/241/250/350/276/276/345/274/217.html +293 -1
- package/package.json +14 -13
|
@@ -478,7 +478,7 @@
|
|
|
478
478
|
sOrig: true,
|
|
479
479
|
});
|
|
480
480
|
workFlowServer600314.execute({
|
|
481
|
-
method:
|
|
481
|
+
method: zondy.enum.FetchMethod.get,
|
|
482
482
|
success: function (res) {
|
|
483
483
|
console.log("execute: ", res);
|
|
484
484
|
},
|
|
@@ -1344,7 +1344,7 @@
|
|
|
1344
1344
|
|
|
1345
1345
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1346
1346
|
// ES5引入方式
|
|
1347
|
-
const { BaseServer } =
|
|
1347
|
+
const { BaseServer } = zondy.service
|
|
1348
1348
|
// ES6引入方式
|
|
1349
1349
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1350
1350
|
let BaseServer = new BaseServer({
|
|
@@ -1603,7 +1603,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
1603
1603
|
|
|
1604
1604
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
1605
1605
|
// ES5引入方式
|
|
1606
|
-
const { BaseServer } =
|
|
1606
|
+
const { BaseServer } = zondy.service
|
|
1607
1607
|
// ES6引入方式
|
|
1608
1608
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1609
1609
|
let BaseServer = new BaseServer({
|
|
@@ -2230,7 +2230,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
2230
2230
|
|
|
2231
2231
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
2232
2232
|
// ES5引入方式
|
|
2233
|
-
const { BaseServer,RequestInterceptor } =
|
|
2233
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
2234
2234
|
// ES6引入方式
|
|
2235
2235
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
2236
2236
|
let BaseServer = new BaseServer({
|
|
@@ -2339,7 +2339,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
2339
2339
|
<pre class="prettyprint"><code>//设置超时时间
|
|
2340
2340
|
//初始化AddressServer服务对象
|
|
2341
2341
|
// ES5引入方式
|
|
2342
|
-
const { BaseServer } =
|
|
2342
|
+
const { BaseServer } = zondy.service
|
|
2343
2343
|
// ES6引入方式
|
|
2344
2344
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2345
2345
|
let BaseServer = new BaseServer({
|
|
@@ -2436,7 +2436,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
2436
2436
|
|
|
2437
2437
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
2438
2438
|
// ES5引入方式
|
|
2439
|
-
const { BaseServer,ResponseInterceptor } =
|
|
2439
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
2440
2440
|
// ES6引入方式
|
|
2441
2441
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
2442
2442
|
let BaseServer = new BaseServer({
|
|
@@ -2621,8 +2621,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
2621
2621
|
|
|
2622
2622
|
<pre class="prettyprint"><code>//设置token值
|
|
2623
2623
|
// ES5引入方式
|
|
2624
|
-
const { BaseServer } =
|
|
2625
|
-
const { TokenAttachType } =
|
|
2624
|
+
const { BaseServer } = zondy.service
|
|
2625
|
+
const { TokenAttachType } = zondy.enum
|
|
2626
2626
|
// ES6引入方式
|
|
2627
2627
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
2628
2628
|
let BaseServer = new BaseServer({
|
|
@@ -2723,7 +2723,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
2723
2723
|
|
|
2724
2724
|
<pre class="prettyprint"><code>//设置token名
|
|
2725
2725
|
// ES5引入方式
|
|
2726
|
-
const { BaseServer } =
|
|
2726
|
+
const { BaseServer } = zondy.service
|
|
2727
2727
|
// ES6引入方式
|
|
2728
2728
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2729
2729
|
let BaseServer = new BaseServer({
|
|
@@ -2820,7 +2820,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
2820
2820
|
|
|
2821
2821
|
<pre class="prettyprint"><code>//设置token值
|
|
2822
2822
|
// ES5引入方式
|
|
2823
|
-
const { BaseServer } =
|
|
2823
|
+
const { BaseServer } = zondy.service
|
|
2824
2824
|
// ES6引入方式
|
|
2825
2825
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2826
2826
|
let BaseServer = new BaseServer({
|
|
@@ -3344,7 +3344,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
3344
3344
|
|
|
3345
3345
|
|
|
3346
3346
|
<pre class="prettyprint"><code>workflow.execute({
|
|
3347
|
-
method:
|
|
3347
|
+
method: zondy.enum.FetchMethod.get,
|
|
3348
3348
|
success: function (res) {
|
|
3349
3349
|
console.log("execute: ", res);
|
|
3350
3350
|
},
|
|
@@ -4596,7 +4596,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
4596
4596
|
<div class="columns">
|
|
4597
4597
|
|
|
4598
4598
|
<div class='param-desc column is-7'><p>workflow.submit({
|
|
4599
|
-
method:
|
|
4599
|
+
method: zondy.enum.FetchMethod.get,
|
|
4600
4600
|
success: function (res) {
|
|
4601
4601
|
console.log("submit: ", res);
|
|
4602
4602
|
},
|
|
@@ -449,7 +449,7 @@
|
|
|
449
449
|
isCreateDesCls: true,
|
|
450
450
|
});
|
|
451
451
|
workFlowServer600334.execute({
|
|
452
|
-
method:
|
|
452
|
+
method: zondy.enum.FetchMethod.get,
|
|
453
453
|
success: function (res) {
|
|
454
454
|
console.log("execute: ", res);
|
|
455
455
|
},
|
|
@@ -1297,7 +1297,7 @@
|
|
|
1297
1297
|
|
|
1298
1298
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1299
1299
|
// ES5引入方式
|
|
1300
|
-
const { BaseServer } =
|
|
1300
|
+
const { BaseServer } = zondy.service
|
|
1301
1301
|
// ES6引入方式
|
|
1302
1302
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1303
1303
|
let BaseServer = new BaseServer({
|
|
@@ -1556,7 +1556,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
1556
1556
|
|
|
1557
1557
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
1558
1558
|
// ES5引入方式
|
|
1559
|
-
const { BaseServer } =
|
|
1559
|
+
const { BaseServer } = zondy.service
|
|
1560
1560
|
// ES6引入方式
|
|
1561
1561
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1562
1562
|
let BaseServer = new BaseServer({
|
|
@@ -1958,7 +1958,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
1958
1958
|
|
|
1959
1959
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1960
1960
|
// ES5引入方式
|
|
1961
|
-
const { BaseServer,RequestInterceptor } =
|
|
1961
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
1962
1962
|
// ES6引入方式
|
|
1963
1963
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
1964
1964
|
let BaseServer = new BaseServer({
|
|
@@ -2067,7 +2067,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
2067
2067
|
<pre class="prettyprint"><code>//设置超时时间
|
|
2068
2068
|
//初始化AddressServer服务对象
|
|
2069
2069
|
// ES5引入方式
|
|
2070
|
-
const { BaseServer } =
|
|
2070
|
+
const { BaseServer } = zondy.service
|
|
2071
2071
|
// ES6引入方式
|
|
2072
2072
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2073
2073
|
let BaseServer = new BaseServer({
|
|
@@ -2164,7 +2164,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
2164
2164
|
|
|
2165
2165
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
2166
2166
|
// ES5引入方式
|
|
2167
|
-
const { BaseServer,ResponseInterceptor } =
|
|
2167
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
2168
2168
|
// ES6引入方式
|
|
2169
2169
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
2170
2170
|
let BaseServer = new BaseServer({
|
|
@@ -2499,8 +2499,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
2499
2499
|
|
|
2500
2500
|
<pre class="prettyprint"><code>//设置token值
|
|
2501
2501
|
// ES5引入方式
|
|
2502
|
-
const { BaseServer } =
|
|
2503
|
-
const { TokenAttachType } =
|
|
2502
|
+
const { BaseServer } = zondy.service
|
|
2503
|
+
const { TokenAttachType } = zondy.enum
|
|
2504
2504
|
// ES6引入方式
|
|
2505
2505
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
2506
2506
|
let BaseServer = new BaseServer({
|
|
@@ -2601,7 +2601,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
2601
2601
|
|
|
2602
2602
|
<pre class="prettyprint"><code>//设置token名
|
|
2603
2603
|
// ES5引入方式
|
|
2604
|
-
const { BaseServer } =
|
|
2604
|
+
const { BaseServer } = zondy.service
|
|
2605
2605
|
// ES6引入方式
|
|
2606
2606
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2607
2607
|
let BaseServer = new BaseServer({
|
|
@@ -2698,7 +2698,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
2698
2698
|
|
|
2699
2699
|
<pre class="prettyprint"><code>//设置token值
|
|
2700
2700
|
// ES5引入方式
|
|
2701
|
-
const { BaseServer } =
|
|
2701
|
+
const { BaseServer } = zondy.service
|
|
2702
2702
|
// ES6引入方式
|
|
2703
2703
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2704
2704
|
let BaseServer = new BaseServer({
|
|
@@ -3222,7 +3222,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
3222
3222
|
|
|
3223
3223
|
|
|
3224
3224
|
<pre class="prettyprint"><code>workflow.execute({
|
|
3225
|
-
method:
|
|
3225
|
+
method: zondy.enum.FetchMethod.get,
|
|
3226
3226
|
success: function (res) {
|
|
3227
3227
|
console.log("execute: ", res);
|
|
3228
3228
|
},
|
|
@@ -4474,7 +4474,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
4474
4474
|
<div class="columns">
|
|
4475
4475
|
|
|
4476
4476
|
<div class='param-desc column is-7'><p>workflow.submit({
|
|
4477
|
-
method:
|
|
4477
|
+
method: zondy.enum.FetchMethod.get,
|
|
4478
4478
|
success: function (res) {
|
|
4479
4479
|
console.log("submit: ", res);
|
|
4480
4480
|
},
|
|
@@ -394,7 +394,7 @@
|
|
|
394
394
|
analyTp: "UserMode",
|
|
395
395
|
});
|
|
396
396
|
workFlowServer600336.execute({
|
|
397
|
-
method:
|
|
397
|
+
method: zondy.enum.FetchMethod.get,
|
|
398
398
|
success: function (res) {
|
|
399
399
|
console.log("execute: ", res);
|
|
400
400
|
},
|
|
@@ -1206,7 +1206,7 @@
|
|
|
1206
1206
|
|
|
1207
1207
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1208
1208
|
// ES5引入方式
|
|
1209
|
-
const { BaseServer } =
|
|
1209
|
+
const { BaseServer } = zondy.service
|
|
1210
1210
|
// ES6引入方式
|
|
1211
1211
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1212
1212
|
let BaseServer = new BaseServer({
|
|
@@ -1615,7 +1615,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
1615
1615
|
|
|
1616
1616
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
1617
1617
|
// ES5引入方式
|
|
1618
|
-
const { BaseServer } =
|
|
1618
|
+
const { BaseServer } = zondy.service
|
|
1619
1619
|
// ES6引入方式
|
|
1620
1620
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1621
1621
|
let BaseServer = new BaseServer({
|
|
@@ -1867,7 +1867,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
1867
1867
|
|
|
1868
1868
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1869
1869
|
// ES5引入方式
|
|
1870
|
-
const { BaseServer,RequestInterceptor } =
|
|
1870
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
1871
1871
|
// ES6引入方式
|
|
1872
1872
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
1873
1873
|
let BaseServer = new BaseServer({
|
|
@@ -1976,7 +1976,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
1976
1976
|
<pre class="prettyprint"><code>//设置超时时间
|
|
1977
1977
|
//初始化AddressServer服务对象
|
|
1978
1978
|
// ES5引入方式
|
|
1979
|
-
const { BaseServer } =
|
|
1979
|
+
const { BaseServer } = zondy.service
|
|
1980
1980
|
// ES6引入方式
|
|
1981
1981
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1982
1982
|
let BaseServer = new BaseServer({
|
|
@@ -2073,7 +2073,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
2073
2073
|
|
|
2074
2074
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
2075
2075
|
// ES5引入方式
|
|
2076
|
-
const { BaseServer,ResponseInterceptor } =
|
|
2076
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
2077
2077
|
// ES6引入方式
|
|
2078
2078
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
2079
2079
|
let BaseServer = new BaseServer({
|
|
@@ -2183,8 +2183,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
2183
2183
|
|
|
2184
2184
|
<pre class="prettyprint"><code>//设置token值
|
|
2185
2185
|
// ES5引入方式
|
|
2186
|
-
const { BaseServer } =
|
|
2187
|
-
const { TokenAttachType } =
|
|
2186
|
+
const { BaseServer } = zondy.service
|
|
2187
|
+
const { TokenAttachType } = zondy.enum
|
|
2188
2188
|
// ES6引入方式
|
|
2189
2189
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
2190
2190
|
let BaseServer = new BaseServer({
|
|
@@ -2285,7 +2285,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
2285
2285
|
|
|
2286
2286
|
<pre class="prettyprint"><code>//设置token名
|
|
2287
2287
|
// ES5引入方式
|
|
2288
|
-
const { BaseServer } =
|
|
2288
|
+
const { BaseServer } = zondy.service
|
|
2289
2289
|
// ES6引入方式
|
|
2290
2290
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2291
2291
|
let BaseServer = new BaseServer({
|
|
@@ -2382,7 +2382,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
2382
2382
|
|
|
2383
2383
|
<pre class="prettyprint"><code>//设置token值
|
|
2384
2384
|
// ES5引入方式
|
|
2385
|
-
const { BaseServer } =
|
|
2385
|
+
const { BaseServer } = zondy.service
|
|
2386
2386
|
// ES6引入方式
|
|
2387
2387
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2388
2388
|
let BaseServer = new BaseServer({
|
|
@@ -2981,7 +2981,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
2981
2981
|
|
|
2982
2982
|
|
|
2983
2983
|
<pre class="prettyprint"><code>workflow.execute({
|
|
2984
|
-
method:
|
|
2984
|
+
method: zondy.enum.FetchMethod.get,
|
|
2985
2985
|
success: function (res) {
|
|
2986
2986
|
console.log("execute: ", res);
|
|
2987
2987
|
},
|
|
@@ -4233,7 +4233,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
4233
4233
|
<div class="columns">
|
|
4234
4234
|
|
|
4235
4235
|
<div class='param-desc column is-7'><p>workflow.submit({
|
|
4236
|
-
method:
|
|
4236
|
+
method: zondy.enum.FetchMethod.get,
|
|
4237
4237
|
success: function (res) {
|
|
4238
4238
|
console.log("submit: ", res);
|
|
4239
4239
|
},
|
|
@@ -638,7 +638,7 @@
|
|
|
638
638
|
projRate: 1,
|
|
639
639
|
});
|
|
640
640
|
workFlowServer600340.execute({
|
|
641
|
-
method:
|
|
641
|
+
method: zondy.enum.FetchMethod.get,
|
|
642
642
|
success: function (res) {
|
|
643
643
|
console.log("execute: ", res);
|
|
644
644
|
},
|
|
@@ -1612,7 +1612,7 @@
|
|
|
1612
1612
|
|
|
1613
1613
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1614
1614
|
// ES5引入方式
|
|
1615
|
-
const { BaseServer } =
|
|
1615
|
+
const { BaseServer } = zondy.service
|
|
1616
1616
|
// ES6引入方式
|
|
1617
1617
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1618
1618
|
let BaseServer = new BaseServer({
|
|
@@ -1871,7 +1871,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
1871
1871
|
|
|
1872
1872
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
1873
1873
|
// ES5引入方式
|
|
1874
|
-
const { BaseServer } =
|
|
1874
|
+
const { BaseServer } = zondy.service
|
|
1875
1875
|
// ES6引入方式
|
|
1876
1876
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1877
1877
|
let BaseServer = new BaseServer({
|
|
@@ -2798,7 +2798,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
2798
2798
|
|
|
2799
2799
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
2800
2800
|
// ES5引入方式
|
|
2801
|
-
const { BaseServer,RequestInterceptor } =
|
|
2801
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
2802
2802
|
// ES6引入方式
|
|
2803
2803
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
2804
2804
|
let BaseServer = new BaseServer({
|
|
@@ -2907,7 +2907,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
2907
2907
|
<pre class="prettyprint"><code>//设置超时时间
|
|
2908
2908
|
//初始化AddressServer服务对象
|
|
2909
2909
|
// ES5引入方式
|
|
2910
|
-
const { BaseServer } =
|
|
2910
|
+
const { BaseServer } = zondy.service
|
|
2911
2911
|
// ES6引入方式
|
|
2912
2912
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2913
2913
|
let BaseServer = new BaseServer({
|
|
@@ -3004,7 +3004,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
3004
3004
|
|
|
3005
3005
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
3006
3006
|
// ES5引入方式
|
|
3007
|
-
const { BaseServer,ResponseInterceptor } =
|
|
3007
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
3008
3008
|
// ES6引入方式
|
|
3009
3009
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
3010
3010
|
let BaseServer = new BaseServer({
|
|
@@ -3189,8 +3189,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
3189
3189
|
|
|
3190
3190
|
<pre class="prettyprint"><code>//设置token值
|
|
3191
3191
|
// ES5引入方式
|
|
3192
|
-
const { BaseServer } =
|
|
3193
|
-
const { TokenAttachType } =
|
|
3192
|
+
const { BaseServer } = zondy.service
|
|
3193
|
+
const { TokenAttachType } = zondy.enum
|
|
3194
3194
|
// ES6引入方式
|
|
3195
3195
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
3196
3196
|
let BaseServer = new BaseServer({
|
|
@@ -3291,7 +3291,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
3291
3291
|
|
|
3292
3292
|
<pre class="prettyprint"><code>//设置token名
|
|
3293
3293
|
// ES5引入方式
|
|
3294
|
-
const { BaseServer } =
|
|
3294
|
+
const { BaseServer } = zondy.service
|
|
3295
3295
|
// ES6引入方式
|
|
3296
3296
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
3297
3297
|
let BaseServer = new BaseServer({
|
|
@@ -3388,7 +3388,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
3388
3388
|
|
|
3389
3389
|
<pre class="prettyprint"><code>//设置token值
|
|
3390
3390
|
// ES5引入方式
|
|
3391
|
-
const { BaseServer } =
|
|
3391
|
+
const { BaseServer } = zondy.service
|
|
3392
3392
|
// ES6引入方式
|
|
3393
3393
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
3394
3394
|
let BaseServer = new BaseServer({
|
|
@@ -4062,7 +4062,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
4062
4062
|
|
|
4063
4063
|
|
|
4064
4064
|
<pre class="prettyprint"><code>workflow.execute({
|
|
4065
|
-
method:
|
|
4065
|
+
method: zondy.enum.FetchMethod.get,
|
|
4066
4066
|
success: function (res) {
|
|
4067
4067
|
console.log("execute: ", res);
|
|
4068
4068
|
},
|
|
@@ -5314,7 +5314,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
5314
5314
|
<div class="columns">
|
|
5315
5315
|
|
|
5316
5316
|
<div class='param-desc column is-7'><p>workflow.submit({
|
|
5317
|
-
method:
|
|
5317
|
+
method: zondy.enum.FetchMethod.get,
|
|
5318
5318
|
success: function (res) {
|
|
5319
5319
|
console.log("submit: ", res);
|
|
5320
5320
|
},
|
|
@@ -421,7 +421,7 @@
|
|
|
421
421
|
outFormat: "JSON",
|
|
422
422
|
});
|
|
423
423
|
workFlowServer600354.execute({
|
|
424
|
-
method:
|
|
424
|
+
method: zondy.enum.FetchMethod.get,
|
|
425
425
|
success: function (res) {
|
|
426
426
|
console.log("execute: ", res);
|
|
427
427
|
},
|
|
@@ -1326,7 +1326,7 @@
|
|
|
1326
1326
|
|
|
1327
1327
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1328
1328
|
// ES5引入方式
|
|
1329
|
-
const { BaseServer } =
|
|
1329
|
+
const { BaseServer } = zondy.service
|
|
1330
1330
|
// ES6引入方式
|
|
1331
1331
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1332
1332
|
let BaseServer = new BaseServer({
|
|
@@ -1735,7 +1735,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
1735
1735
|
|
|
1736
1736
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
1737
1737
|
// ES5引入方式
|
|
1738
|
-
const { BaseServer } =
|
|
1738
|
+
const { BaseServer } = zondy.service
|
|
1739
1739
|
// ES6引入方式
|
|
1740
1740
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1741
1741
|
let BaseServer = new BaseServer({
|
|
@@ -2062,7 +2062,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
2062
2062
|
|
|
2063
2063
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
2064
2064
|
// ES5引入方式
|
|
2065
|
-
const { BaseServer,RequestInterceptor } =
|
|
2065
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
2066
2066
|
// ES6引入方式
|
|
2067
2067
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
2068
2068
|
let BaseServer = new BaseServer({
|
|
@@ -2171,7 +2171,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
2171
2171
|
<pre class="prettyprint"><code>//设置超时时间
|
|
2172
2172
|
//初始化AddressServer服务对象
|
|
2173
2173
|
// ES5引入方式
|
|
2174
|
-
const { BaseServer } =
|
|
2174
|
+
const { BaseServer } = zondy.service
|
|
2175
2175
|
// ES6引入方式
|
|
2176
2176
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2177
2177
|
let BaseServer = new BaseServer({
|
|
@@ -2268,7 +2268,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
2268
2268
|
|
|
2269
2269
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
2270
2270
|
// ES5引入方式
|
|
2271
|
-
const { BaseServer,ResponseInterceptor } =
|
|
2271
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
2272
2272
|
// ES6引入方式
|
|
2273
2273
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
2274
2274
|
let BaseServer = new BaseServer({
|
|
@@ -2378,8 +2378,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
2378
2378
|
|
|
2379
2379
|
<pre class="prettyprint"><code>//设置token值
|
|
2380
2380
|
// ES5引入方式
|
|
2381
|
-
const { BaseServer } =
|
|
2382
|
-
const { TokenAttachType } =
|
|
2381
|
+
const { BaseServer } = zondy.service
|
|
2382
|
+
const { TokenAttachType } = zondy.enum
|
|
2383
2383
|
// ES6引入方式
|
|
2384
2384
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
2385
2385
|
let BaseServer = new BaseServer({
|
|
@@ -2480,7 +2480,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
2480
2480
|
|
|
2481
2481
|
<pre class="prettyprint"><code>//设置token名
|
|
2482
2482
|
// ES5引入方式
|
|
2483
|
-
const { BaseServer } =
|
|
2483
|
+
const { BaseServer } = zondy.service
|
|
2484
2484
|
// ES6引入方式
|
|
2485
2485
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2486
2486
|
let BaseServer = new BaseServer({
|
|
@@ -2577,7 +2577,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
2577
2577
|
|
|
2578
2578
|
<pre class="prettyprint"><code>//设置token值
|
|
2579
2579
|
// ES5引入方式
|
|
2580
|
-
const { BaseServer } =
|
|
2580
|
+
const { BaseServer } = zondy.service
|
|
2581
2581
|
// ES6引入方式
|
|
2582
2582
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2583
2583
|
let BaseServer = new BaseServer({
|
|
@@ -3101,7 +3101,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
3101
3101
|
|
|
3102
3102
|
|
|
3103
3103
|
<pre class="prettyprint"><code>workflow.execute({
|
|
3104
|
-
method:
|
|
3104
|
+
method: zondy.enum.FetchMethod.get,
|
|
3105
3105
|
success: function (res) {
|
|
3106
3106
|
console.log("execute: ", res);
|
|
3107
3107
|
},
|
|
@@ -4353,7 +4353,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
4353
4353
|
<div class="columns">
|
|
4354
4354
|
|
|
4355
4355
|
<div class='param-desc column is-7'><p>workflow.submit({
|
|
4356
|
-
method:
|
|
4356
|
+
method: zondy.enum.FetchMethod.get,
|
|
4357
4357
|
success: function (res) {
|
|
4358
4358
|
console.log("submit: ", res);
|
|
4359
4359
|
},
|
|
@@ -310,7 +310,7 @@
|
|
|
310
310
|
FID2: "1",
|
|
311
311
|
});
|
|
312
312
|
workFlowServer600368.execute({
|
|
313
|
-
method:
|
|
313
|
+
method: zondy.enum.FetchMethod.get,
|
|
314
314
|
success: function (res) {
|
|
315
315
|
console.log("execute: ", res);
|
|
316
316
|
},
|
|
@@ -918,7 +918,7 @@
|
|
|
918
918
|
|
|
919
919
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
920
920
|
// ES5引入方式
|
|
921
|
-
const { BaseServer } =
|
|
921
|
+
const { BaseServer } = zondy.service
|
|
922
922
|
// ES6引入方式
|
|
923
923
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
924
924
|
let BaseServer = new BaseServer({
|
|
@@ -1327,7 +1327,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
1327
1327
|
|
|
1328
1328
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
1329
1329
|
// ES5引入方式
|
|
1330
|
-
const { BaseServer } =
|
|
1330
|
+
const { BaseServer } = zondy.service
|
|
1331
1331
|
// ES6引入方式
|
|
1332
1332
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1333
1333
|
let BaseServer = new BaseServer({
|
|
@@ -1429,7 +1429,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
1429
1429
|
|
|
1430
1430
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1431
1431
|
// ES5引入方式
|
|
1432
|
-
const { BaseServer,RequestInterceptor } =
|
|
1432
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
1433
1433
|
// ES6引入方式
|
|
1434
1434
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
1435
1435
|
let BaseServer = new BaseServer({
|
|
@@ -1538,7 +1538,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
1538
1538
|
<pre class="prettyprint"><code>//设置超时时间
|
|
1539
1539
|
//初始化AddressServer服务对象
|
|
1540
1540
|
// ES5引入方式
|
|
1541
|
-
const { BaseServer } =
|
|
1541
|
+
const { BaseServer } = zondy.service
|
|
1542
1542
|
// ES6引入方式
|
|
1543
1543
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1544
1544
|
let BaseServer = new BaseServer({
|
|
@@ -1635,7 +1635,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
1635
1635
|
|
|
1636
1636
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1637
1637
|
// ES5引入方式
|
|
1638
|
-
const { BaseServer,ResponseInterceptor } =
|
|
1638
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
1639
1639
|
// ES6引入方式
|
|
1640
1640
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
1641
1641
|
let BaseServer = new BaseServer({
|
|
@@ -1895,8 +1895,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
1895
1895
|
|
|
1896
1896
|
<pre class="prettyprint"><code>//设置token值
|
|
1897
1897
|
// ES5引入方式
|
|
1898
|
-
const { BaseServer } =
|
|
1899
|
-
const { TokenAttachType } =
|
|
1898
|
+
const { BaseServer } = zondy.service
|
|
1899
|
+
const { TokenAttachType } = zondy.enum
|
|
1900
1900
|
// ES6引入方式
|
|
1901
1901
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
1902
1902
|
let BaseServer = new BaseServer({
|
|
@@ -1997,7 +1997,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
1997
1997
|
|
|
1998
1998
|
<pre class="prettyprint"><code>//设置token名
|
|
1999
1999
|
// ES5引入方式
|
|
2000
|
-
const { BaseServer } =
|
|
2000
|
+
const { BaseServer } = zondy.service
|
|
2001
2001
|
// ES6引入方式
|
|
2002
2002
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2003
2003
|
let BaseServer = new BaseServer({
|
|
@@ -2094,7 +2094,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
2094
2094
|
|
|
2095
2095
|
<pre class="prettyprint"><code>//设置token值
|
|
2096
2096
|
// ES5引入方式
|
|
2097
|
-
const { BaseServer } =
|
|
2097
|
+
const { BaseServer } = zondy.service
|
|
2098
2098
|
// ES6引入方式
|
|
2099
2099
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2100
2100
|
let BaseServer = new BaseServer({
|
|
@@ -2618,7 +2618,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
2618
2618
|
|
|
2619
2619
|
|
|
2620
2620
|
<pre class="prettyprint"><code>workflow.execute({
|
|
2621
|
-
method:
|
|
2621
|
+
method: zondy.enum.FetchMethod.get,
|
|
2622
2622
|
success: function (res) {
|
|
2623
2623
|
console.log("execute: ", res);
|
|
2624
2624
|
},
|
|
@@ -3870,7 +3870,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
3870
3870
|
<div class="columns">
|
|
3871
3871
|
|
|
3872
3872
|
<div class='param-desc column is-7'><p>workflow.submit({
|
|
3873
|
-
method:
|
|
3873
|
+
method: zondy.enum.FetchMethod.get,
|
|
3874
3874
|
success: function (res) {
|
|
3875
3875
|
console.log("submit: ", res);
|
|
3876
3876
|
},
|