@egova/egova-api 1.3.24 → 1.3.25
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 +21 -10
- package/dist/index.umd.js +21 -10
- 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",
|
|
@@ -6383,6 +6390,10 @@ var tree_selector_TreeSelectorComponent = /** @class */function (_super) {
|
|
|
6383
6390
|
// EXTERNAL MODULE: ./src/views/project-combine/tree/add-node-modal/index.scss
|
|
6384
6391
|
var add_node_modal = __webpack_require__("9fb0");
|
|
6385
6392
|
|
|
6393
|
+
// EXTERNAL MODULE: external "axios"
|
|
6394
|
+
var external_axios_ = __webpack_require__("cebe");
|
|
6395
|
+
var external_axios_default = /*#__PURE__*/__webpack_require__.n(external_axios_);
|
|
6396
|
+
|
|
6386
6397
|
// CONCATENATED MODULE: ./src/views/project-combine/tree/service.ts
|
|
6387
6398
|
|
|
6388
6399
|
|
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",
|
|
@@ -6392,6 +6399,10 @@ var tree_selector_TreeSelectorComponent = /** @class */function (_super) {
|
|
|
6392
6399
|
// EXTERNAL MODULE: ./src/views/project-combine/tree/add-node-modal/index.scss
|
|
6393
6400
|
var add_node_modal = __webpack_require__("9fb0");
|
|
6394
6401
|
|
|
6402
|
+
// EXTERNAL MODULE: external "axios"
|
|
6403
|
+
var external_axios_ = __webpack_require__("cebe");
|
|
6404
|
+
var external_axios_default = /*#__PURE__*/__webpack_require__.n(external_axios_);
|
|
6405
|
+
|
|
6395
6406
|
// CONCATENATED MODULE: ./src/views/project-combine/tree/service.ts
|
|
6396
6407
|
|
|
6397
6408
|
|