@mapgis/webclient-common 17.2.0 → 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 +11 -1
- package/dist/es5/webclient-common.min.js +5 -5
- package/dist/webclient-common-es6.min.js +6 -6
- 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/ArcGISMapServer.html +10 -10
- package/documention/ArcGISTileLayer.html +5 -5
- package/documention/ArcGISVectorTileLayer.html +7 -7
- package/documention/ArcGISVectorTileServer.html +10 -10
- package/documention/BaseServer.html +10 -10
- package/documention/BaseView.html +1 -1
- package/documention/Basemap.html +3 -3
- package/documention/Cesium3DTilesCacheLayer.html +38 -112
- package/documention/Cesium3DTilesServer.html +11 -11
- package/documention/Circle.html +7 -7
- package/documention/ClassBreakRenderer.html +18 -18
- package/documention/ClusterRenderer.html +2 -2
- package/documention/Config.html +4 -4
- package/documention/Extent.html +15 -15
- package/documention/ExtrudeSymbol3DLayer.html +2 -2
- package/documention/Feature.html +7 -7
- package/documention/FeatureServer.html +27 -27
- package/documention/FeatureSet.html +7 -7
- package/documention/FillSymbol3DLayer.html +2 -2
- package/documention/Font.html +1 -1
- package/documention/GeoJSONLayer.html +26 -26
- package/documention/Geometry.html +7 -7
- package/documention/GeometryEngine.html +79 -79
- package/documention/GeometryServer.html +30 -30
- package/documention/GraphicsLayer.html +31 -31
- package/documention/GroupLayer.html +2 -2
- package/documention/IGSFeatureLayer.html +25 -25
- package/documention/IGSMapImageLayer.html +46 -46
- package/documention/IGSMapImageSubLayer.html +3 -3
- package/documention/IGSSceneLayer.html +11 -11
- package/documention/IGSTileLayer.html +10 -11
- package/documention/IGSVectorTileLayer.html +32 -29
- package/documention/IGSVectorTileSubLayer.html +5 -4
- package/documention/IconSymbol3DLayer.html +4 -4
- package/documention/ImageServer.html +11 -11
- package/documention/LabelClass.html +3 -3
- package/documention/LabelSymbol3D.html +2 -2
- package/documention/LineString.html +10 -10
- package/documention/LineSymbol3D.html +2 -2
- package/documention/LineSymbol3DLayer.html +2 -2
- package/documention/M3DModelCacheLayer.html +12 -12
- package/documention/M3DServer.html +11 -11
- package/documention/Map.html +4 -4
- package/documention/MapGISTextSymbol.html +3 -3
- package/documention/MapServer.html +14 -14
- package/documention/MapView.html +1 -1
- package/documention/MultiLineString.html +13 -13
- package/documention/MultiPoint.html +10 -10
- package/documention/MultiPolygon.html +9 -9
- package/documention/ObjectSymbol3DLayer.html +4 -4
- package/documention/OutStatistic.html +1 -1
- package/documention/PathSymbol3DLayer.html +2 -2
- package/documention/PictureFillSymbol.html +1 -1
- package/documention/PictureMarkerSymbol.html +3 -3
- package/documention/PlotServer.html +10 -10
- package/documention/PoiServer.html +11 -11
- package/documention/Point.html +12 -12
- package/documention/PointSymbol3D.html +2 -2
- package/documention/Polygon.html +14 -14
- package/documention/PolygonSymbol3D.html +2 -2
- package/documention/Projection.html +8 -8
- package/documention/RandomRenderer.html +1 -1
- package/documention/RankRenderer.html +2 -2
- package/documention/ResourceServer.html +150 -150
- package/documention/RootServer.html +11 -11
- package/documention/SceneServer.html +16 -16
- package/documention/SceneView.html +1 -1
- package/documention/SecurityServer.html +12 -12
- package/documention/SimpleFillSymbol.html +3 -3
- package/documention/SimpleLineSymbol.html +3 -3
- package/documention/SimpleMarkerSymbol.html +3 -3
- package/documention/SimpleRenderer.html +9 -9
- package/documention/SizeVariable.html +1 -1
- package/documention/SketchEditor.html +1 -1
- package/documention/SketchEditorVideo.html +2 -2
- package/documention/SketchEditorVideoBase.html +3 -3
- package/documention/SpatialReference.html +1 -1
- package/documention/Symbol.html +1 -1
- package/documention/TerrainCacheLayer.html +1 -1
- package/documention/TerrainServer.html +11 -11
- package/documention/TextSymbol.html +4 -4
- package/documention/TextSymbol3DLayer.html +2 -2
- package/documention/ThemeServer.html +12 -12
- package/documention/TileServer.html +11 -11
- package/documention/UniqueValueRenderer.html +18 -18
- package/documention/VectorTileLayer.html +1 -1
- package/documention/VectorTileServer.html +11 -11
- package/documention/VideoMapView.html +4 -4
- package/documention/WCSServer.html +10 -10
- package/documention/WFSLayer.html +24 -24
- package/documention/WFSServer.html +11 -11
- package/documention/WMSLayer.html +15 -15
- package/documention/WMSServer.html +11 -11
- package/documention/WMTSLayer.html +10 -10
- package/documention/WMTSServer.html +11 -11
- package/documention/WPSServer.html +10 -10
- package/documention/WebTileLayer.html +5 -5
- 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 +344 -1644
- package/documention/index.html +40 -37
- 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/package.json +2 -1
|
@@ -410,20 +410,20 @@
|
|
|
410
410
|
<h5>示例</h5>
|
|
411
411
|
|
|
412
412
|
|
|
413
|
-
<pre class="prettyprint"><code>const attStrct1 = new
|
|
413
|
+
<pre class="prettyprint"><code>const attStrct1 = new zondy.object.CAttStruct({
|
|
414
414
|
FldName: ["ID", "面积", "周长", "LayerID"],
|
|
415
415
|
FldNumber: 4,
|
|
416
416
|
FldType: ["FldLong", "FldDouble", "FldDouble", "FldLong"],
|
|
417
417
|
});
|
|
418
418
|
//实例化CAttDataRow类
|
|
419
|
-
const valuesRow1 = new
|
|
419
|
+
const valuesRow1 = new zondy.object.CAttDataRow(
|
|
420
420
|
[0, 62.566714, 50.803211, 0],
|
|
421
421
|
1
|
|
422
422
|
);
|
|
423
|
-
const workFlowServer600239 = new
|
|
423
|
+
const workFlowServer600239 = new zondy.service.WorkFlowServer600239({
|
|
424
424
|
url: "http://localhost:8089/igs/rest/services/workflow/600239/WorkflowServer",
|
|
425
425
|
geometrys: [
|
|
426
|
-
new
|
|
426
|
+
new zondy.geometry.Polygon({
|
|
427
427
|
coordinates: [
|
|
428
428
|
[
|
|
429
429
|
[11.2203627335275, 532.624659163762],
|
|
@@ -444,7 +444,7 @@
|
|
|
444
444
|
inFormat: "JSON",
|
|
445
445
|
});
|
|
446
446
|
workFlowServer600239.execute({
|
|
447
|
-
method:
|
|
447
|
+
method: zondy.enum.FetchMethod.get,
|
|
448
448
|
success: function (res) {
|
|
449
449
|
console.log("execute: ", res);
|
|
450
450
|
},
|
|
@@ -1145,7 +1145,7 @@
|
|
|
1145
1145
|
|
|
1146
1146
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1147
1147
|
// ES5引入方式
|
|
1148
|
-
const { BaseServer } =
|
|
1148
|
+
const { BaseServer } = zondy.service
|
|
1149
1149
|
// ES6引入方式
|
|
1150
1150
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1151
1151
|
let BaseServer = new BaseServer({
|
|
@@ -1404,7 +1404,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
1404
1404
|
|
|
1405
1405
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
1406
1406
|
// ES5引入方式
|
|
1407
|
-
const { BaseServer } =
|
|
1407
|
+
const { BaseServer } = zondy.service
|
|
1408
1408
|
// ES6引入方式
|
|
1409
1409
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1410
1410
|
let BaseServer = new BaseServer({
|
|
@@ -1731,7 +1731,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
1731
1731
|
|
|
1732
1732
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1733
1733
|
// ES5引入方式
|
|
1734
|
-
const { BaseServer,RequestInterceptor } =
|
|
1734
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
1735
1735
|
// ES6引入方式
|
|
1736
1736
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
1737
1737
|
let BaseServer = new BaseServer({
|
|
@@ -1840,7 +1840,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
1840
1840
|
<pre class="prettyprint"><code>//设置超时时间
|
|
1841
1841
|
//初始化AddressServer服务对象
|
|
1842
1842
|
// ES5引入方式
|
|
1843
|
-
const { BaseServer } =
|
|
1843
|
+
const { BaseServer } = zondy.service
|
|
1844
1844
|
// ES6引入方式
|
|
1845
1845
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1846
1846
|
let BaseServer = new BaseServer({
|
|
@@ -1937,7 +1937,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
1937
1937
|
|
|
1938
1938
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
1939
1939
|
// ES5引入方式
|
|
1940
|
-
const { BaseServer,ResponseInterceptor } =
|
|
1940
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
1941
1941
|
// ES6引入方式
|
|
1942
1942
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
1943
1943
|
let BaseServer = new BaseServer({
|
|
@@ -2047,8 +2047,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
2047
2047
|
|
|
2048
2048
|
<pre class="prettyprint"><code>//设置token值
|
|
2049
2049
|
// ES5引入方式
|
|
2050
|
-
const { BaseServer } =
|
|
2051
|
-
const { TokenAttachType } =
|
|
2050
|
+
const { BaseServer } = zondy.service
|
|
2051
|
+
const { TokenAttachType } = zondy.enum
|
|
2052
2052
|
// ES6引入方式
|
|
2053
2053
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
2054
2054
|
let BaseServer = new BaseServer({
|
|
@@ -2149,7 +2149,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
2149
2149
|
|
|
2150
2150
|
<pre class="prettyprint"><code>//设置token名
|
|
2151
2151
|
// ES5引入方式
|
|
2152
|
-
const { BaseServer } =
|
|
2152
|
+
const { BaseServer } = zondy.service
|
|
2153
2153
|
// ES6引入方式
|
|
2154
2154
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2155
2155
|
let BaseServer = new BaseServer({
|
|
@@ -2246,7 +2246,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
2246
2246
|
|
|
2247
2247
|
<pre class="prettyprint"><code>//设置token值
|
|
2248
2248
|
// ES5引入方式
|
|
2249
|
-
const { BaseServer } =
|
|
2249
|
+
const { BaseServer } = zondy.service
|
|
2250
2250
|
// ES6引入方式
|
|
2251
2251
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2252
2252
|
let BaseServer = new BaseServer({
|
|
@@ -2845,7 +2845,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
2845
2845
|
|
|
2846
2846
|
|
|
2847
2847
|
<pre class="prettyprint"><code>workflow.execute({
|
|
2848
|
-
method:
|
|
2848
|
+
method: zondy.enum.FetchMethod.get,
|
|
2849
2849
|
success: function (res) {
|
|
2850
2850
|
console.log("execute: ", res);
|
|
2851
2851
|
},
|
|
@@ -4097,7 +4097,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
4097
4097
|
<div class="columns">
|
|
4098
4098
|
|
|
4099
4099
|
<div class='param-desc column is-7'><p>workflow.submit({
|
|
4100
|
-
method:
|
|
4100
|
+
method: zondy.enum.FetchMethod.get,
|
|
4101
4101
|
success: function (res) {
|
|
4102
4102
|
console.log("submit: ", res);
|
|
4103
4103
|
},
|
|
@@ -385,7 +385,7 @@
|
|
|
385
385
|
|
|
386
386
|
<pre class="prettyprint"><code>const workFlowServer600307 = WorkFlowServer.createWorkFlow({
|
|
387
387
|
url: "http://localhost:8089/igs/rest/services/workflow/600307/WorkflowServer",
|
|
388
|
-
geometry1: new
|
|
388
|
+
geometry1: new zondy.geometry.Polygon({
|
|
389
389
|
coordinates: [
|
|
390
390
|
[
|
|
391
391
|
[11.2203627335275, 532.624659163762],
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
],
|
|
398
398
|
],
|
|
399
399
|
}),
|
|
400
|
-
geometry2: new
|
|
400
|
+
geometry2: new zondy.geometry.Polygon({
|
|
401
401
|
coordinates: [
|
|
402
402
|
[
|
|
403
403
|
[1978.70877883796, 1119.35207631636],
|
|
@@ -417,7 +417,7 @@
|
|
|
417
417
|
inFormat: "JSON",
|
|
418
418
|
});
|
|
419
419
|
workFlowServer600307.execute({
|
|
420
|
-
method:
|
|
420
|
+
method: zondy.enum.FetchMethod.get,
|
|
421
421
|
success: function (res) {
|
|
422
422
|
console.log("execute: ", res);
|
|
423
423
|
},
|
|
@@ -1247,7 +1247,7 @@
|
|
|
1247
1247
|
|
|
1248
1248
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1249
1249
|
// ES5引入方式
|
|
1250
|
-
const { BaseServer } =
|
|
1250
|
+
const { BaseServer } = zondy.service
|
|
1251
1251
|
// ES6引入方式
|
|
1252
1252
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1253
1253
|
let BaseServer = new BaseServer({
|
|
@@ -1656,7 +1656,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
1656
1656
|
|
|
1657
1657
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
1658
1658
|
// ES5引入方式
|
|
1659
|
-
const { BaseServer } =
|
|
1659
|
+
const { BaseServer } = zondy.service
|
|
1660
1660
|
// ES6引入方式
|
|
1661
1661
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1662
1662
|
let BaseServer = new BaseServer({
|
|
@@ -2058,7 +2058,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
2058
2058
|
|
|
2059
2059
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
2060
2060
|
// ES5引入方式
|
|
2061
|
-
const { BaseServer,RequestInterceptor } =
|
|
2061
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
2062
2062
|
// ES6引入方式
|
|
2063
2063
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
2064
2064
|
let BaseServer = new BaseServer({
|
|
@@ -2167,7 +2167,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
2167
2167
|
<pre class="prettyprint"><code>//设置超时时间
|
|
2168
2168
|
//初始化AddressServer服务对象
|
|
2169
2169
|
// ES5引入方式
|
|
2170
|
-
const { BaseServer } =
|
|
2170
|
+
const { BaseServer } = zondy.service
|
|
2171
2171
|
// ES6引入方式
|
|
2172
2172
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2173
2173
|
let BaseServer = new BaseServer({
|
|
@@ -2264,7 +2264,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
2264
2264
|
|
|
2265
2265
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
2266
2266
|
// ES5引入方式
|
|
2267
|
-
const { BaseServer,ResponseInterceptor } =
|
|
2267
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
2268
2268
|
// ES6引入方式
|
|
2269
2269
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
2270
2270
|
let BaseServer = new BaseServer({
|
|
@@ -2374,8 +2374,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
2374
2374
|
|
|
2375
2375
|
<pre class="prettyprint"><code>//设置token值
|
|
2376
2376
|
// ES5引入方式
|
|
2377
|
-
const { BaseServer } =
|
|
2378
|
-
const { TokenAttachType } =
|
|
2377
|
+
const { BaseServer } = zondy.service
|
|
2378
|
+
const { TokenAttachType } = zondy.enum
|
|
2379
2379
|
// ES6引入方式
|
|
2380
2380
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
2381
2381
|
let BaseServer = new BaseServer({
|
|
@@ -2476,7 +2476,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
2476
2476
|
|
|
2477
2477
|
<pre class="prettyprint"><code>//设置token名
|
|
2478
2478
|
// ES5引入方式
|
|
2479
|
-
const { BaseServer } =
|
|
2479
|
+
const { BaseServer } = zondy.service
|
|
2480
2480
|
// ES6引入方式
|
|
2481
2481
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2482
2482
|
let BaseServer = new BaseServer({
|
|
@@ -2573,7 +2573,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
2573
2573
|
|
|
2574
2574
|
<pre class="prettyprint"><code>//设置token值
|
|
2575
2575
|
// ES5引入方式
|
|
2576
|
-
const { BaseServer } =
|
|
2576
|
+
const { BaseServer } = zondy.service
|
|
2577
2577
|
// ES6引入方式
|
|
2578
2578
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2579
2579
|
let BaseServer = new BaseServer({
|
|
@@ -3097,7 +3097,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
3097
3097
|
|
|
3098
3098
|
|
|
3099
3099
|
<pre class="prettyprint"><code>workflow.execute({
|
|
3100
|
-
method:
|
|
3100
|
+
method: zondy.enum.FetchMethod.get,
|
|
3101
3101
|
success: function (res) {
|
|
3102
3102
|
console.log("execute: ", res);
|
|
3103
3103
|
},
|
|
@@ -4349,7 +4349,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
4349
4349
|
<div class="columns">
|
|
4350
4350
|
|
|
4351
4351
|
<div class='param-desc column is-7'><p>workflow.submit({
|
|
4352
|
-
method:
|
|
4352
|
+
method: zondy.enum.FetchMethod.get,
|
|
4353
4353
|
success: function (res) {
|
|
4354
4354
|
console.log("submit: ", res);
|
|
4355
4355
|
},
|
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
<pre class="prettyprint"><code>const workFlowServer600308 = WorkFlowServer.createWorkFlow({
|
|
414
414
|
url: "http://localhost:8089/igs/rest/services/workflow/600308/WorkflowServer",
|
|
415
415
|
srcInfo1: "gdbp://MapGISLocalPlus/test/sfcls/林地-gs",
|
|
416
|
-
geometry: new
|
|
416
|
+
geometry: new zondy.geometry.LineString({
|
|
417
417
|
coordinates: [
|
|
418
418
|
[11.2203627335275, 532.624659163762],
|
|
419
419
|
[2732.66363429598, 532.624659163762],
|
|
@@ -430,7 +430,7 @@
|
|
|
430
430
|
inFormat: "JSON",
|
|
431
431
|
});
|
|
432
432
|
workFlowServer600308.execute({
|
|
433
|
-
method:
|
|
433
|
+
method: zondy.enum.FetchMethod.get,
|
|
434
434
|
success: function (res) {
|
|
435
435
|
console.log("execute: ", res);
|
|
436
436
|
},
|
|
@@ -450,7 +450,7 @@
|
|
|
450
450
|
radius: 0.001,
|
|
451
451
|
});
|
|
452
452
|
workFlowServer600309.execute({
|
|
453
|
-
method:
|
|
453
|
+
method: zondy.enum.FetchMethod.get,
|
|
454
454
|
success: function (res) {
|
|
455
455
|
console.log("execute: ", res);
|
|
456
456
|
},
|
|
@@ -1298,7 +1298,7 @@
|
|
|
1298
1298
|
|
|
1299
1299
|
<pre class="prettyprint"><code>//设置请求基地址
|
|
1300
1300
|
// ES5引入方式
|
|
1301
|
-
const { BaseServer } =
|
|
1301
|
+
const { BaseServer } = zondy.service
|
|
1302
1302
|
// ES6引入方式
|
|
1303
1303
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1304
1304
|
let BaseServer = new BaseServer({
|
|
@@ -1707,7 +1707,7 @@ BaseServer.enableGlobeFetch = true;</code></pre>
|
|
|
1707
1707
|
|
|
1708
1708
|
<pre class="prettyprint"><code>//设置请求头参数
|
|
1709
1709
|
// ES5引入方式
|
|
1710
|
-
const { BaseServer } =
|
|
1710
|
+
const { BaseServer } = zondy.service
|
|
1711
1711
|
// ES6引入方式
|
|
1712
1712
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
1713
1713
|
let BaseServer = new BaseServer({
|
|
@@ -2034,7 +2034,7 @@ BaseServer.headers.token = '新token';</code></pre>
|
|
|
2034
2034
|
|
|
2035
2035
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
2036
2036
|
// ES5引入方式
|
|
2037
|
-
const { BaseServer,RequestInterceptor } =
|
|
2037
|
+
const { BaseServer,RequestInterceptor } = zondy.service
|
|
2038
2038
|
// ES6引入方式
|
|
2039
2039
|
import { BaseServer,RequestInterceptor } from "@mapgis/webclient-common"
|
|
2040
2040
|
let BaseServer = new BaseServer({
|
|
@@ -2143,7 +2143,7 @@ BaseServer.requestInterceptor.before = function() {};</code></pre>
|
|
|
2143
2143
|
<pre class="prettyprint"><code>//设置超时时间
|
|
2144
2144
|
//初始化AddressServer服务对象
|
|
2145
2145
|
// ES5引入方式
|
|
2146
|
-
const { BaseServer } =
|
|
2146
|
+
const { BaseServer } = zondy.service
|
|
2147
2147
|
// ES6引入方式
|
|
2148
2148
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2149
2149
|
let BaseServer = new BaseServer({
|
|
@@ -2240,7 +2240,7 @@ BaseServer.requestTimeout = 3000;</code></pre>
|
|
|
2240
2240
|
|
|
2241
2241
|
<pre class="prettyprint"><code>//设置拦截器,任何一个继承自BaseServer的对象都可以设置,全局唯一
|
|
2242
2242
|
// ES5引入方式
|
|
2243
|
-
const { BaseServer,ResponseInterceptor } =
|
|
2243
|
+
const { BaseServer,ResponseInterceptor } = zondy.service
|
|
2244
2244
|
// ES6引入方式
|
|
2245
2245
|
import { BaseServer,ResponseInterceptor } from "@mapgis/webclient-common"
|
|
2246
2246
|
let BaseServer = new BaseServer({
|
|
@@ -2500,8 +2500,8 @@ BaseServer.responseInterceptor.success = function() {};</code></pre>
|
|
|
2500
2500
|
|
|
2501
2501
|
<pre class="prettyprint"><code>//设置token值
|
|
2502
2502
|
// ES5引入方式
|
|
2503
|
-
const { BaseServer } =
|
|
2504
|
-
const { TokenAttachType } =
|
|
2503
|
+
const { BaseServer } = zondy.service
|
|
2504
|
+
const { TokenAttachType } = zondy.enum
|
|
2505
2505
|
// ES6引入方式
|
|
2506
2506
|
import { BaseServer,TokenAttachType } from "@mapgis/webclient-common"
|
|
2507
2507
|
let BaseServer = new BaseServer({
|
|
@@ -2602,7 +2602,7 @@ BaseServer.tokenAttachType = TokenAttachType.header;</code></pre>
|
|
|
2602
2602
|
|
|
2603
2603
|
<pre class="prettyprint"><code>//设置token名
|
|
2604
2604
|
// ES5引入方式
|
|
2605
|
-
const { BaseServer } =
|
|
2605
|
+
const { BaseServer } = zondy.service
|
|
2606
2606
|
// ES6引入方式
|
|
2607
2607
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2608
2608
|
let BaseServer = new BaseServer({
|
|
@@ -2699,7 +2699,7 @@ BaseServer.tokenKey = '新tokenKey';</code></pre>
|
|
|
2699
2699
|
|
|
2700
2700
|
<pre class="prettyprint"><code>//设置token值
|
|
2701
2701
|
// ES5引入方式
|
|
2702
|
-
const { BaseServer } =
|
|
2702
|
+
const { BaseServer } = zondy.service
|
|
2703
2703
|
// ES6引入方式
|
|
2704
2704
|
import { BaseServer } from "@mapgis/webclient-common"
|
|
2705
2705
|
let BaseServer = new BaseServer({
|
|
@@ -3223,7 +3223,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
3223
3223
|
|
|
3224
3224
|
|
|
3225
3225
|
<pre class="prettyprint"><code>workflow.execute({
|
|
3226
|
-
method:
|
|
3226
|
+
method: zondy.enum.FetchMethod.get,
|
|
3227
3227
|
success: function (res) {
|
|
3228
3228
|
console.log("execute: ", res);
|
|
3229
3229
|
},
|
|
@@ -4475,7 +4475,7 @@ BaseServer.tokenValue = '新token值';</code></pre>
|
|
|
4475
4475
|
<div class="columns">
|
|
4476
4476
|
|
|
4477
4477
|
<div class='param-desc column is-7'><p>workflow.submit({
|
|
4478
|
-
method:
|
|
4478
|
+
method: zondy.enum.FetchMethod.get,
|
|
4479
4479
|
success: function (res) {
|
|
4480
4480
|
console.log("submit: ", res);
|
|
4481
4481
|
},
|
|
@@ -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
|
},
|