@egova/egova-api 1.0.218 → 1.0.219
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 +120 -9
- package/dist/index.umd.js +120 -9
- package/dist/index.umd.min.js +1 -1
- package/package.json +2 -2
package/dist/index.common.js
CHANGED
|
@@ -63744,21 +63744,24 @@ function (_super) {
|
|
|
63744
63744
|
case 1:
|
|
63745
63745
|
result = _a.sent();
|
|
63746
63746
|
this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
63747
|
-
this.$subscribe("api://security-list-refresh", function () {
|
|
63747
|
+
this.$subscribe("api://security-list-refresh", function (data) {
|
|
63748
63748
|
return security_setting_v2_awaiter(_this, void 0, void 0, function () {
|
|
63749
|
+
var isBatchRefresh;
|
|
63750
|
+
|
|
63749
63751
|
var _this = this;
|
|
63750
63752
|
|
|
63751
|
-
var _a;
|
|
63753
|
+
var _a, _b;
|
|
63752
63754
|
|
|
63753
|
-
return security_setting_v2_generator(this, function (
|
|
63754
|
-
switch (
|
|
63755
|
+
return security_setting_v2_generator(this, function (_c) {
|
|
63756
|
+
switch (_c.label) {
|
|
63755
63757
|
case 0:
|
|
63758
|
+
isBatchRefresh = data.get("isBatchRefresh") || false;
|
|
63756
63759
|
return [4
|
|
63757
63760
|
/*yield*/
|
|
63758
63761
|
, this.getSecurityList()];
|
|
63759
63762
|
|
|
63760
63763
|
case 1:
|
|
63761
|
-
|
|
63764
|
+
_c.sent();
|
|
63762
63765
|
|
|
63763
63766
|
if (this.currentSecurityID) {
|
|
63764
63767
|
this.currentSecurityItemId = this.currentSecurityID;
|
|
@@ -63766,6 +63769,10 @@ function (_super) {
|
|
|
63766
63769
|
this.currentSecurityItemId = this.interfaceModel.authentication.id;
|
|
63767
63770
|
}
|
|
63768
63771
|
|
|
63772
|
+
if (((_b = this.interfaceModel.authentication) === null || _b === void 0 ? void 0 : _b.id) && isBatchRefresh) {
|
|
63773
|
+
this.currentSecurityItemId = this.interfaceModel.authentication.id;
|
|
63774
|
+
}
|
|
63775
|
+
|
|
63769
63776
|
this.currentSecurityItem = this.securityList.find(function (item) {
|
|
63770
63777
|
return item.id === _this.currentSecurityItemId;
|
|
63771
63778
|
}) || {};
|
|
@@ -65072,6 +65079,7 @@ function (_super) {
|
|
|
65072
65079
|
if (res && !res.hasError) {
|
|
65073
65080
|
this.$message.success("保存成功!");
|
|
65074
65081
|
this.$emit("on-success", true);
|
|
65082
|
+
this.$publish("api://batch-api-refresh", data);
|
|
65075
65083
|
this.onCancel();
|
|
65076
65084
|
}
|
|
65077
65085
|
|
|
@@ -65093,8 +65101,10 @@ function (_super) {
|
|
|
65093
65101
|
|
|
65094
65102
|
if (res && !res.hasError) {
|
|
65095
65103
|
this.$message.success("保存成功!"); // this.$publish("api://batch-api-refresh");
|
|
65096
|
-
// this.$publish("api://security-list-refresh");
|
|
65097
65104
|
|
|
65105
|
+
this.$publish("api://batch-api-refresh", batch_api_modal_assign(batch_api_modal_assign({}, data), {
|
|
65106
|
+
isEnvAndAuth: true
|
|
65107
|
+
}));
|
|
65098
65108
|
this.onCancel();
|
|
65099
65109
|
}
|
|
65100
65110
|
|
|
@@ -65123,6 +65133,9 @@ function (_super) {
|
|
|
65123
65133
|
if (!(res === null || res === void 0 ? void 0 : res.hasError) && !(result === null || result === void 0 ? void 0 : result.hasError)) {
|
|
65124
65134
|
this.$message.success("保存成功!");
|
|
65125
65135
|
this.$emit("on-success", true);
|
|
65136
|
+
this.$publish("api://batch-api-refresh", batch_api_modal_assign(batch_api_modal_assign({}, data), {
|
|
65137
|
+
isEnvAndAuth: true
|
|
65138
|
+
}));
|
|
65126
65139
|
this.onCancel();
|
|
65127
65140
|
}
|
|
65128
65141
|
|
|
@@ -66005,6 +66018,9 @@ var vue_awesome_swiper = __webpack_require__("7212");
|
|
|
66005
66018
|
|
|
66006
66019
|
|
|
66007
66020
|
|
|
66021
|
+
|
|
66022
|
+
|
|
66023
|
+
|
|
66008
66024
|
|
|
66009
66025
|
|
|
66010
66026
|
|
|
@@ -66430,6 +66446,8 @@ function (_super) {
|
|
|
66430
66446
|
|
|
66431
66447
|
|
|
66432
66448
|
ProjectDetail.prototype.mounted = function () {
|
|
66449
|
+
var _this = this;
|
|
66450
|
+
|
|
66433
66451
|
this.getProjectInfo();
|
|
66434
66452
|
var _a = this.$route.query,
|
|
66435
66453
|
apiId = _a.apiId,
|
|
@@ -66441,10 +66459,103 @@ function (_super) {
|
|
|
66441
66459
|
id: apiId,
|
|
66442
66460
|
name: apiName
|
|
66443
66461
|
}, resume === "true");
|
|
66444
|
-
}
|
|
66445
|
-
|
|
66446
|
-
|
|
66462
|
+
}
|
|
66463
|
+
|
|
66464
|
+
this.$subscribe("api://batch-api-refresh", function (data) {
|
|
66465
|
+
return project_detail_awaiter(_this, void 0, void 0, function () {
|
|
66466
|
+
var ids, isEnvAndAuth, cross, _loop_1, this_1, _i, cross_1, value;
|
|
66467
|
+
|
|
66468
|
+
var _this = this;
|
|
66447
66469
|
|
|
66470
|
+
return project_detail_generator(this, function (_a) {
|
|
66471
|
+
switch (_a.label) {
|
|
66472
|
+
case 0:
|
|
66473
|
+
ids = data.get("ids");
|
|
66474
|
+
isEnvAndAuth = data.get("isEnvAndAuth") || false;
|
|
66475
|
+
cross = [];
|
|
66476
|
+
this.openInterfaceList.forEach(function (item) {
|
|
66477
|
+
if (ids.includes(item.id)) {
|
|
66478
|
+
cross.push({
|
|
66479
|
+
id: item.id,
|
|
66480
|
+
name: item.name
|
|
66481
|
+
});
|
|
66482
|
+
}
|
|
66483
|
+
});
|
|
66484
|
+
if (!cross.length) return [3
|
|
66485
|
+
/*break*/
|
|
66486
|
+
, 5];
|
|
66487
|
+
|
|
66488
|
+
_loop_1 = function _loop_1(value) {
|
|
66489
|
+
var res, result, index;
|
|
66490
|
+
return project_detail_generator(this, function (_b) {
|
|
66491
|
+
switch (_b.label) {
|
|
66492
|
+
case 0:
|
|
66493
|
+
return [4
|
|
66494
|
+
/*yield*/
|
|
66495
|
+
, this_1.service.apiInfo(value.id)];
|
|
66496
|
+
|
|
66497
|
+
case 1:
|
|
66498
|
+
res = _b.sent();
|
|
66499
|
+
result = project_detail_assign(project_detail_assign({}, res.result || {}), {
|
|
66500
|
+
name: value.name,
|
|
66501
|
+
id: value.id
|
|
66502
|
+
});
|
|
66503
|
+
index = this_1.openInterfaceList.findIndex(function (i) {
|
|
66504
|
+
return i.id === value.id;
|
|
66505
|
+
});
|
|
66506
|
+
this_1.openInterfaceList.splice(index, 1, result);
|
|
66507
|
+
return [2
|
|
66508
|
+
/*return*/
|
|
66509
|
+
];
|
|
66510
|
+
}
|
|
66511
|
+
});
|
|
66512
|
+
};
|
|
66513
|
+
|
|
66514
|
+
this_1 = this;
|
|
66515
|
+
_i = 0, cross_1 = cross;
|
|
66516
|
+
_a.label = 1;
|
|
66517
|
+
|
|
66518
|
+
case 1:
|
|
66519
|
+
if (!(_i < cross_1.length)) return [3
|
|
66520
|
+
/*break*/
|
|
66521
|
+
, 4];
|
|
66522
|
+
value = cross_1[_i];
|
|
66523
|
+
return [5
|
|
66524
|
+
/*yield**/
|
|
66525
|
+
, _loop_1(value)];
|
|
66526
|
+
|
|
66527
|
+
case 2:
|
|
66528
|
+
_a.sent();
|
|
66529
|
+
|
|
66530
|
+
_a.label = 3;
|
|
66531
|
+
|
|
66532
|
+
case 3:
|
|
66533
|
+
_i++;
|
|
66534
|
+
return [3
|
|
66535
|
+
/*break*/
|
|
66536
|
+
, 1];
|
|
66537
|
+
|
|
66538
|
+
case 4:
|
|
66539
|
+
this.active = this.openInterfaceList[this.openInterfaceList.findIndex(function (i) {
|
|
66540
|
+
return i.id === _this.current.id;
|
|
66541
|
+
})];
|
|
66542
|
+
|
|
66543
|
+
if (isEnvAndAuth) {
|
|
66544
|
+
this.$publish("api://security-list-refresh", {
|
|
66545
|
+
isBatchRefresh: true
|
|
66546
|
+
});
|
|
66547
|
+
}
|
|
66548
|
+
|
|
66549
|
+
_a.label = 5;
|
|
66550
|
+
|
|
66551
|
+
case 5:
|
|
66552
|
+
return [2
|
|
66553
|
+
/*return*/
|
|
66554
|
+
];
|
|
66555
|
+
}
|
|
66556
|
+
});
|
|
66557
|
+
});
|
|
66558
|
+
});
|
|
66448
66559
|
};
|
|
66449
66560
|
|
|
66450
66561
|
ProjectDetail.prototype.activated = function () {
|
package/dist/index.umd.js
CHANGED
|
@@ -63753,21 +63753,24 @@ function (_super) {
|
|
|
63753
63753
|
case 1:
|
|
63754
63754
|
result = _a.sent();
|
|
63755
63755
|
this.grantTypeList = (result === null || result === void 0 ? void 0 : result.result) || [];
|
|
63756
|
-
this.$subscribe("api://security-list-refresh", function () {
|
|
63756
|
+
this.$subscribe("api://security-list-refresh", function (data) {
|
|
63757
63757
|
return security_setting_v2_awaiter(_this, void 0, void 0, function () {
|
|
63758
|
+
var isBatchRefresh;
|
|
63759
|
+
|
|
63758
63760
|
var _this = this;
|
|
63759
63761
|
|
|
63760
|
-
var _a;
|
|
63762
|
+
var _a, _b;
|
|
63761
63763
|
|
|
63762
|
-
return security_setting_v2_generator(this, function (
|
|
63763
|
-
switch (
|
|
63764
|
+
return security_setting_v2_generator(this, function (_c) {
|
|
63765
|
+
switch (_c.label) {
|
|
63764
63766
|
case 0:
|
|
63767
|
+
isBatchRefresh = data.get("isBatchRefresh") || false;
|
|
63765
63768
|
return [4
|
|
63766
63769
|
/*yield*/
|
|
63767
63770
|
, this.getSecurityList()];
|
|
63768
63771
|
|
|
63769
63772
|
case 1:
|
|
63770
|
-
|
|
63773
|
+
_c.sent();
|
|
63771
63774
|
|
|
63772
63775
|
if (this.currentSecurityID) {
|
|
63773
63776
|
this.currentSecurityItemId = this.currentSecurityID;
|
|
@@ -63775,6 +63778,10 @@ function (_super) {
|
|
|
63775
63778
|
this.currentSecurityItemId = this.interfaceModel.authentication.id;
|
|
63776
63779
|
}
|
|
63777
63780
|
|
|
63781
|
+
if (((_b = this.interfaceModel.authentication) === null || _b === void 0 ? void 0 : _b.id) && isBatchRefresh) {
|
|
63782
|
+
this.currentSecurityItemId = this.interfaceModel.authentication.id;
|
|
63783
|
+
}
|
|
63784
|
+
|
|
63778
63785
|
this.currentSecurityItem = this.securityList.find(function (item) {
|
|
63779
63786
|
return item.id === _this.currentSecurityItemId;
|
|
63780
63787
|
}) || {};
|
|
@@ -65081,6 +65088,7 @@ function (_super) {
|
|
|
65081
65088
|
if (res && !res.hasError) {
|
|
65082
65089
|
this.$message.success("保存成功!");
|
|
65083
65090
|
this.$emit("on-success", true);
|
|
65091
|
+
this.$publish("api://batch-api-refresh", data);
|
|
65084
65092
|
this.onCancel();
|
|
65085
65093
|
}
|
|
65086
65094
|
|
|
@@ -65102,8 +65110,10 @@ function (_super) {
|
|
|
65102
65110
|
|
|
65103
65111
|
if (res && !res.hasError) {
|
|
65104
65112
|
this.$message.success("保存成功!"); // this.$publish("api://batch-api-refresh");
|
|
65105
|
-
// this.$publish("api://security-list-refresh");
|
|
65106
65113
|
|
|
65114
|
+
this.$publish("api://batch-api-refresh", batch_api_modal_assign(batch_api_modal_assign({}, data), {
|
|
65115
|
+
isEnvAndAuth: true
|
|
65116
|
+
}));
|
|
65107
65117
|
this.onCancel();
|
|
65108
65118
|
}
|
|
65109
65119
|
|
|
@@ -65132,6 +65142,9 @@ function (_super) {
|
|
|
65132
65142
|
if (!(res === null || res === void 0 ? void 0 : res.hasError) && !(result === null || result === void 0 ? void 0 : result.hasError)) {
|
|
65133
65143
|
this.$message.success("保存成功!");
|
|
65134
65144
|
this.$emit("on-success", true);
|
|
65145
|
+
this.$publish("api://batch-api-refresh", batch_api_modal_assign(batch_api_modal_assign({}, data), {
|
|
65146
|
+
isEnvAndAuth: true
|
|
65147
|
+
}));
|
|
65135
65148
|
this.onCancel();
|
|
65136
65149
|
}
|
|
65137
65150
|
|
|
@@ -66014,6 +66027,9 @@ var vue_awesome_swiper = __webpack_require__("7212");
|
|
|
66014
66027
|
|
|
66015
66028
|
|
|
66016
66029
|
|
|
66030
|
+
|
|
66031
|
+
|
|
66032
|
+
|
|
66017
66033
|
|
|
66018
66034
|
|
|
66019
66035
|
|
|
@@ -66439,6 +66455,8 @@ function (_super) {
|
|
|
66439
66455
|
|
|
66440
66456
|
|
|
66441
66457
|
ProjectDetail.prototype.mounted = function () {
|
|
66458
|
+
var _this = this;
|
|
66459
|
+
|
|
66442
66460
|
this.getProjectInfo();
|
|
66443
66461
|
var _a = this.$route.query,
|
|
66444
66462
|
apiId = _a.apiId,
|
|
@@ -66450,10 +66468,103 @@ function (_super) {
|
|
|
66450
66468
|
id: apiId,
|
|
66451
66469
|
name: apiName
|
|
66452
66470
|
}, resume === "true");
|
|
66453
|
-
}
|
|
66454
|
-
|
|
66455
|
-
|
|
66471
|
+
}
|
|
66472
|
+
|
|
66473
|
+
this.$subscribe("api://batch-api-refresh", function (data) {
|
|
66474
|
+
return project_detail_awaiter(_this, void 0, void 0, function () {
|
|
66475
|
+
var ids, isEnvAndAuth, cross, _loop_1, this_1, _i, cross_1, value;
|
|
66476
|
+
|
|
66477
|
+
var _this = this;
|
|
66456
66478
|
|
|
66479
|
+
return project_detail_generator(this, function (_a) {
|
|
66480
|
+
switch (_a.label) {
|
|
66481
|
+
case 0:
|
|
66482
|
+
ids = data.get("ids");
|
|
66483
|
+
isEnvAndAuth = data.get("isEnvAndAuth") || false;
|
|
66484
|
+
cross = [];
|
|
66485
|
+
this.openInterfaceList.forEach(function (item) {
|
|
66486
|
+
if (ids.includes(item.id)) {
|
|
66487
|
+
cross.push({
|
|
66488
|
+
id: item.id,
|
|
66489
|
+
name: item.name
|
|
66490
|
+
});
|
|
66491
|
+
}
|
|
66492
|
+
});
|
|
66493
|
+
if (!cross.length) return [3
|
|
66494
|
+
/*break*/
|
|
66495
|
+
, 5];
|
|
66496
|
+
|
|
66497
|
+
_loop_1 = function _loop_1(value) {
|
|
66498
|
+
var res, result, index;
|
|
66499
|
+
return project_detail_generator(this, function (_b) {
|
|
66500
|
+
switch (_b.label) {
|
|
66501
|
+
case 0:
|
|
66502
|
+
return [4
|
|
66503
|
+
/*yield*/
|
|
66504
|
+
, this_1.service.apiInfo(value.id)];
|
|
66505
|
+
|
|
66506
|
+
case 1:
|
|
66507
|
+
res = _b.sent();
|
|
66508
|
+
result = project_detail_assign(project_detail_assign({}, res.result || {}), {
|
|
66509
|
+
name: value.name,
|
|
66510
|
+
id: value.id
|
|
66511
|
+
});
|
|
66512
|
+
index = this_1.openInterfaceList.findIndex(function (i) {
|
|
66513
|
+
return i.id === value.id;
|
|
66514
|
+
});
|
|
66515
|
+
this_1.openInterfaceList.splice(index, 1, result);
|
|
66516
|
+
return [2
|
|
66517
|
+
/*return*/
|
|
66518
|
+
];
|
|
66519
|
+
}
|
|
66520
|
+
});
|
|
66521
|
+
};
|
|
66522
|
+
|
|
66523
|
+
this_1 = this;
|
|
66524
|
+
_i = 0, cross_1 = cross;
|
|
66525
|
+
_a.label = 1;
|
|
66526
|
+
|
|
66527
|
+
case 1:
|
|
66528
|
+
if (!(_i < cross_1.length)) return [3
|
|
66529
|
+
/*break*/
|
|
66530
|
+
, 4];
|
|
66531
|
+
value = cross_1[_i];
|
|
66532
|
+
return [5
|
|
66533
|
+
/*yield**/
|
|
66534
|
+
, _loop_1(value)];
|
|
66535
|
+
|
|
66536
|
+
case 2:
|
|
66537
|
+
_a.sent();
|
|
66538
|
+
|
|
66539
|
+
_a.label = 3;
|
|
66540
|
+
|
|
66541
|
+
case 3:
|
|
66542
|
+
_i++;
|
|
66543
|
+
return [3
|
|
66544
|
+
/*break*/
|
|
66545
|
+
, 1];
|
|
66546
|
+
|
|
66547
|
+
case 4:
|
|
66548
|
+
this.active = this.openInterfaceList[this.openInterfaceList.findIndex(function (i) {
|
|
66549
|
+
return i.id === _this.current.id;
|
|
66550
|
+
})];
|
|
66551
|
+
|
|
66552
|
+
if (isEnvAndAuth) {
|
|
66553
|
+
this.$publish("api://security-list-refresh", {
|
|
66554
|
+
isBatchRefresh: true
|
|
66555
|
+
});
|
|
66556
|
+
}
|
|
66557
|
+
|
|
66558
|
+
_a.label = 5;
|
|
66559
|
+
|
|
66560
|
+
case 5:
|
|
66561
|
+
return [2
|
|
66562
|
+
/*return*/
|
|
66563
|
+
];
|
|
66564
|
+
}
|
|
66565
|
+
});
|
|
66566
|
+
});
|
|
66567
|
+
});
|
|
66457
66568
|
};
|
|
66458
66569
|
|
|
66459
66570
|
ProjectDetail.prototype.activated = function () {
|