@egova/egova-api 1.3.24 → 1.3.26
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/dist/index.common.js +19 -14
- package/dist/index.umd.js +19 -14
- package/dist/index.umd.min.js +2 -2
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -5524,10 +5524,6 @@ var web_url_search_params_has = __webpack_require__("a4d2");
|
|
|
5524
5524
|
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.35.0/node_modules/core-js/modules/web.url-search-params.size.js
|
|
5525
5525
|
var web_url_search_params_size = __webpack_require__("d371");
|
|
5526
5526
|
|
|
5527
|
-
// EXTERNAL MODULE: external "axios"
|
|
5528
|
-
var external_axios_ = __webpack_require__("cebe");
|
|
5529
|
-
var external_axios_default = /*#__PURE__*/__webpack_require__.n(external_axios_);
|
|
5530
|
-
|
|
5531
5527
|
// CONCATENATED MODULE: ./src/settings/index.ts
|
|
5532
5528
|
|
|
5533
5529
|
var global = window;
|
|
@@ -5542,7 +5538,6 @@ var commonSetting = __assign({}, global.commonSetting);
|
|
|
5542
5538
|
|
|
5543
5539
|
|
|
5544
5540
|
|
|
5545
|
-
|
|
5546
5541
|
/**
|
|
5547
5542
|
* 业务服务基类。
|
|
5548
5543
|
* @abstract
|
|
@@ -5557,6 +5552,18 @@ var base_service_ServiceBase = /** @class */function () {
|
|
|
5557
5552
|
ServiceBase.prototype.url = function (url) {
|
|
5558
5553
|
return commonSetting.baseUrl + url;
|
|
5559
5554
|
};
|
|
5555
|
+
Object.defineProperty(ServiceBase.prototype, "axios", {
|
|
5556
|
+
get: function () {
|
|
5557
|
+
// 优先使用 dex 的 axios 实例(带拦截器)
|
|
5558
|
+
if (window.__DEX_AXIOS__) {
|
|
5559
|
+
return window.__DEX_AXIOS__;
|
|
5560
|
+
}
|
|
5561
|
+
// 兜底使用自己的 axios
|
|
5562
|
+
return __webpack_require__("cebe");
|
|
5563
|
+
},
|
|
5564
|
+
enumerable: false,
|
|
5565
|
+
configurable: true
|
|
5566
|
+
});
|
|
5560
5567
|
Object.defineProperty(ServiceBase.prototype, "config", {
|
|
5561
5568
|
/**
|
|
5562
5569
|
* 获取当前应用的axios实例。
|
|
@@ -5591,7 +5598,7 @@ var base_service_ServiceBase = /** @class */function () {
|
|
|
5591
5598
|
* @param data 发送的参数
|
|
5592
5599
|
*/
|
|
5593
5600
|
ServiceBase.prototype._post = function (url, data) {
|
|
5594
|
-
return
|
|
5601
|
+
return this.axios.post(this.url(url), data, this.config).then(function (res) {
|
|
5595
5602
|
return res.data;
|
|
5596
5603
|
});
|
|
5597
5604
|
};
|
|
@@ -5600,7 +5607,7 @@ var base_service_ServiceBase = /** @class */function () {
|
|
|
5600
5607
|
* @param url 请求地址
|
|
5601
5608
|
*/
|
|
5602
5609
|
ServiceBase.prototype._get = function (url) {
|
|
5603
|
-
return
|
|
5610
|
+
return this.axios.get(this.url(url), this.config).then(function (res) {
|
|
5604
5611
|
return res.data;
|
|
5605
5612
|
});
|
|
5606
5613
|
};
|
|
@@ -5610,7 +5617,7 @@ var base_service_ServiceBase = /** @class */function () {
|
|
|
5610
5617
|
* @param data 请求参数
|
|
5611
5618
|
*/
|
|
5612
5619
|
ServiceBase.prototype._put = function (url, data) {
|
|
5613
|
-
return
|
|
5620
|
+
return this.axios.put(this.url(url), data, this.config).then(function (res) {
|
|
5614
5621
|
return res.data;
|
|
5615
5622
|
});
|
|
5616
5623
|
};
|
|
@@ -5619,7 +5626,7 @@ var base_service_ServiceBase = /** @class */function () {
|
|
|
5619
5626
|
* @param url
|
|
5620
5627
|
*/
|
|
5621
5628
|
ServiceBase.prototype._delete = function (url) {
|
|
5622
|
-
return
|
|
5629
|
+
return this.axios.delete(this.url(url), this.config).then(function (res) {
|
|
5623
5630
|
return res.data;
|
|
5624
5631
|
});
|
|
5625
5632
|
};
|
|
@@ -5629,7 +5636,7 @@ var base_service_ServiceBase = /** @class */function () {
|
|
|
5629
5636
|
* @param data
|
|
5630
5637
|
*/
|
|
5631
5638
|
ServiceBase.prototype._export = function (url, data) {
|
|
5632
|
-
return
|
|
5639
|
+
return this.axios.post(this.url(url), data, __assign(__assign({}, this.config), {
|
|
5633
5640
|
headers: {
|
|
5634
5641
|
"X-Requested-With": "XMLHttpRequest",
|
|
5635
5642
|
"Content-Type": "application/json; charset=UTF-8",
|
|
@@ -6390,7 +6397,6 @@ var add_node_modal = __webpack_require__("9fb0");
|
|
|
6390
6397
|
|
|
6391
6398
|
|
|
6392
6399
|
|
|
6393
|
-
|
|
6394
6400
|
var tree_service_Service = /** @class */function (_super) {
|
|
6395
6401
|
__extends(Service, _super);
|
|
6396
6402
|
function Service() {
|
|
@@ -6406,7 +6412,7 @@ var tree_service_Service = /** @class */function (_super) {
|
|
|
6406
6412
|
return this._delete("/unity/combine-info/category/".concat(id));
|
|
6407
6413
|
};
|
|
6408
6414
|
Service.prototype.exportModel = function (data) {
|
|
6409
|
-
return
|
|
6415
|
+
return this.axios.post(this.url("/unity/combine-info/export"), data, {
|
|
6410
6416
|
headers: {
|
|
6411
6417
|
"X-Requested-With": "XMLHttpRequest",
|
|
6412
6418
|
"Content-Type": "application/json; charset=UTF-8",
|
|
@@ -9846,7 +9852,6 @@ var project_list = __webpack_require__("17fe");
|
|
|
9846
9852
|
|
|
9847
9853
|
|
|
9848
9854
|
|
|
9849
|
-
|
|
9850
9855
|
var service_ProjectService = /** @class */function (_super) {
|
|
9851
9856
|
__extends(ProjectService, _super);
|
|
9852
9857
|
function ProjectService() {
|
|
@@ -9869,7 +9874,7 @@ var service_ProjectService = /** @class */function (_super) {
|
|
|
9869
9874
|
return this._delete("/unity/api/project/".concat(id));
|
|
9870
9875
|
};
|
|
9871
9876
|
ProjectService.prototype.exportProject = function (data) {
|
|
9872
|
-
return
|
|
9877
|
+
return this.axios.post(this.url("/unity/api/info/export"), data, {
|
|
9873
9878
|
headers: {
|
|
9874
9879
|
"X-Requested-With": "XMLHttpRequest",
|
|
9875
9880
|
"Content-Type": "application/json; charset=UTF-8",
|
package/dist/index.umd.js
CHANGED
|
@@ -5533,10 +5533,6 @@ var web_url_search_params_has = __webpack_require__("a4d2");
|
|
|
5533
5533
|
// EXTERNAL MODULE: ./node_modules/.pnpm/core-js@3.35.0/node_modules/core-js/modules/web.url-search-params.size.js
|
|
5534
5534
|
var web_url_search_params_size = __webpack_require__("d371");
|
|
5535
5535
|
|
|
5536
|
-
// EXTERNAL MODULE: external "axios"
|
|
5537
|
-
var external_axios_ = __webpack_require__("cebe");
|
|
5538
|
-
var external_axios_default = /*#__PURE__*/__webpack_require__.n(external_axios_);
|
|
5539
|
-
|
|
5540
5536
|
// CONCATENATED MODULE: ./src/settings/index.ts
|
|
5541
5537
|
|
|
5542
5538
|
var global = window;
|
|
@@ -5551,7 +5547,6 @@ var commonSetting = __assign({}, global.commonSetting);
|
|
|
5551
5547
|
|
|
5552
5548
|
|
|
5553
5549
|
|
|
5554
|
-
|
|
5555
5550
|
/**
|
|
5556
5551
|
* 业务服务基类。
|
|
5557
5552
|
* @abstract
|
|
@@ -5566,6 +5561,18 @@ var base_service_ServiceBase = /** @class */function () {
|
|
|
5566
5561
|
ServiceBase.prototype.url = function (url) {
|
|
5567
5562
|
return commonSetting.baseUrl + url;
|
|
5568
5563
|
};
|
|
5564
|
+
Object.defineProperty(ServiceBase.prototype, "axios", {
|
|
5565
|
+
get: function () {
|
|
5566
|
+
// 优先使用 dex 的 axios 实例(带拦截器)
|
|
5567
|
+
if (window.__DEX_AXIOS__) {
|
|
5568
|
+
return window.__DEX_AXIOS__;
|
|
5569
|
+
}
|
|
5570
|
+
// 兜底使用自己的 axios
|
|
5571
|
+
return __webpack_require__("cebe");
|
|
5572
|
+
},
|
|
5573
|
+
enumerable: false,
|
|
5574
|
+
configurable: true
|
|
5575
|
+
});
|
|
5569
5576
|
Object.defineProperty(ServiceBase.prototype, "config", {
|
|
5570
5577
|
/**
|
|
5571
5578
|
* 获取当前应用的axios实例。
|
|
@@ -5600,7 +5607,7 @@ var base_service_ServiceBase = /** @class */function () {
|
|
|
5600
5607
|
* @param data 发送的参数
|
|
5601
5608
|
*/
|
|
5602
5609
|
ServiceBase.prototype._post = function (url, data) {
|
|
5603
|
-
return
|
|
5610
|
+
return this.axios.post(this.url(url), data, this.config).then(function (res) {
|
|
5604
5611
|
return res.data;
|
|
5605
5612
|
});
|
|
5606
5613
|
};
|
|
@@ -5609,7 +5616,7 @@ var base_service_ServiceBase = /** @class */function () {
|
|
|
5609
5616
|
* @param url 请求地址
|
|
5610
5617
|
*/
|
|
5611
5618
|
ServiceBase.prototype._get = function (url) {
|
|
5612
|
-
return
|
|
5619
|
+
return this.axios.get(this.url(url), this.config).then(function (res) {
|
|
5613
5620
|
return res.data;
|
|
5614
5621
|
});
|
|
5615
5622
|
};
|
|
@@ -5619,7 +5626,7 @@ var base_service_ServiceBase = /** @class */function () {
|
|
|
5619
5626
|
* @param data 请求参数
|
|
5620
5627
|
*/
|
|
5621
5628
|
ServiceBase.prototype._put = function (url, data) {
|
|
5622
|
-
return
|
|
5629
|
+
return this.axios.put(this.url(url), data, this.config).then(function (res) {
|
|
5623
5630
|
return res.data;
|
|
5624
5631
|
});
|
|
5625
5632
|
};
|
|
@@ -5628,7 +5635,7 @@ var base_service_ServiceBase = /** @class */function () {
|
|
|
5628
5635
|
* @param url
|
|
5629
5636
|
*/
|
|
5630
5637
|
ServiceBase.prototype._delete = function (url) {
|
|
5631
|
-
return
|
|
5638
|
+
return this.axios.delete(this.url(url), this.config).then(function (res) {
|
|
5632
5639
|
return res.data;
|
|
5633
5640
|
});
|
|
5634
5641
|
};
|
|
@@ -5638,7 +5645,7 @@ var base_service_ServiceBase = /** @class */function () {
|
|
|
5638
5645
|
* @param data
|
|
5639
5646
|
*/
|
|
5640
5647
|
ServiceBase.prototype._export = function (url, data) {
|
|
5641
|
-
return
|
|
5648
|
+
return this.axios.post(this.url(url), data, __assign(__assign({}, this.config), {
|
|
5642
5649
|
headers: {
|
|
5643
5650
|
"X-Requested-With": "XMLHttpRequest",
|
|
5644
5651
|
"Content-Type": "application/json; charset=UTF-8",
|
|
@@ -6399,7 +6406,6 @@ var add_node_modal = __webpack_require__("9fb0");
|
|
|
6399
6406
|
|
|
6400
6407
|
|
|
6401
6408
|
|
|
6402
|
-
|
|
6403
6409
|
var tree_service_Service = /** @class */function (_super) {
|
|
6404
6410
|
__extends(Service, _super);
|
|
6405
6411
|
function Service() {
|
|
@@ -6415,7 +6421,7 @@ var tree_service_Service = /** @class */function (_super) {
|
|
|
6415
6421
|
return this._delete("/unity/combine-info/category/".concat(id));
|
|
6416
6422
|
};
|
|
6417
6423
|
Service.prototype.exportModel = function (data) {
|
|
6418
|
-
return
|
|
6424
|
+
return this.axios.post(this.url("/unity/combine-info/export"), data, {
|
|
6419
6425
|
headers: {
|
|
6420
6426
|
"X-Requested-With": "XMLHttpRequest",
|
|
6421
6427
|
"Content-Type": "application/json; charset=UTF-8",
|
|
@@ -9855,7 +9861,6 @@ var project_list = __webpack_require__("17fe");
|
|
|
9855
9861
|
|
|
9856
9862
|
|
|
9857
9863
|
|
|
9858
|
-
|
|
9859
9864
|
var service_ProjectService = /** @class */function (_super) {
|
|
9860
9865
|
__extends(ProjectService, _super);
|
|
9861
9866
|
function ProjectService() {
|
|
@@ -9878,7 +9883,7 @@ var service_ProjectService = /** @class */function (_super) {
|
|
|
9878
9883
|
return this._delete("/unity/api/project/".concat(id));
|
|
9879
9884
|
};
|
|
9880
9885
|
ProjectService.prototype.exportProject = function (data) {
|
|
9881
|
-
return
|
|
9886
|
+
return this.axios.post(this.url("/unity/api/info/export"), data, {
|
|
9882
9887
|
headers: {
|
|
9883
9888
|
"X-Requested-With": "XMLHttpRequest",
|
|
9884
9889
|
"Content-Type": "application/json; charset=UTF-8",
|