@egova/egova-api 1.0.167 → 1.0.170
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 +24 -16
- package/dist/index.css +1 -1
- package/dist/index.umd.js +24 -16
- package/dist/index.umd.min.js +2 -2
- package/package.json +2 -2
package/dist/index.common.js
CHANGED
|
@@ -40802,7 +40802,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
40802
40802
|
/***/ "88af":
|
|
40803
40803
|
/***/ (function(module, exports) {
|
|
40804
40804
|
|
|
40805
|
-
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"value\" width=\"800\" class=\"u-variable-modal diy-modal\" transfer>\n <header slot=\"header\">批量修改环境变量与授权</header>\n <main class=\"variable-content\">\n <div class=\"left\">\n <div class=\"left-title\">\n <div class=\"left-title-text\">选择API</div>\n </div>\n <div class=\"left-content\">\n <i-input class=\"diy-input search-input\" v-model=\"keyword\" placeholder=\"输入关键字查询\" @on-change=\"onFilter\">\n <template #prefix>\n <i-icon type=\"ios-search\"/>\n </template>\n </i-input>\n <div class=\"security-list\">\n <i-checkbox class=\"security-list-item-checkbox\" v-model=\"allSelect\" @on-change=\"onAllSelect\">全选</i-checkbox>\n <div class=\"security-list-item\"\n v-for=\"(item,index) in apiList\"\n :key=\"item.id || index\"\n >\n <div class=\"security-list-item-name\">\n <i-checkbox v-model=\"item.selected\" @on-change=\"onSelect($event,item)\"></i-checkbox>\n <i class=\"iconfont icon-API\"></i>\n <div class=\"security-list-item-text\" :title=\"item.name\">{{ item.name }}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"right\">\n <div class=\"right-title\">环境与授权</div>\n <div class=\"right-content\">\n <i-form ref=\"batch-api-form\" class=\"variable-content-form\" label-colon label-position=\"left\" v-if=\"isEmpty\" :rules=\"rules\" :label-width=\"100\" :model=\"formData\">\n <i-form-item class=\"content-form-item\" label=\"选择属性\">\n <i-select class=\"diy-select\" placeholder=\"请输入\" v-model=\"type\">\n <i-option value=\"env\">环境变量</i-option>\n <i-option value=\"auth\">授权设置</i-option>\n <i-option value=\"both\">环境变量和授权设置</i-option>\n </i-select>\n </i-form-item>\n <i-form-item class=\"content-form-item\" v-if=\"type !== 'auth'\" label=\"环境变量\" prop=\"envId\">\n <i-select class=\"diy-select\" placeholder=\"请选择\" v-model=\"formData.envId\">\n <i-option value=\"empty\"
|
|
40805
|
+
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"value\" width=\"800\" class=\"u-variable-modal diy-modal\" transfer>\n <header slot=\"header\">批量修改环境变量与授权</header>\n <main class=\"variable-content\">\n <div class=\"left\">\n <div class=\"left-title\">\n <div class=\"left-title-text\">选择API</div>\n </div>\n <div class=\"left-content\">\n <i-input class=\"diy-input search-input\" v-model=\"keyword\" placeholder=\"输入关键字查询\" @on-change=\"onFilter\">\n <template #prefix>\n <i-icon type=\"ios-search\"/>\n </template>\n </i-input>\n <div class=\"security-list\">\n <i-checkbox class=\"security-list-item-checkbox\" v-model=\"allSelect\" @on-change=\"onAllSelect\">全选</i-checkbox>\n <div class=\"security-list-item\"\n v-for=\"(item,index) in apiList\"\n :key=\"item.id || index\"\n >\n <div class=\"security-list-item-name\">\n <i-checkbox v-model=\"item.selected\" @on-change=\"onSelect($event,item)\"></i-checkbox>\n <i class=\"iconfont icon-API\"></i>\n <div class=\"security-list-item-text\" :title=\"item.name\">{{ item.name }}</div>\n </div>\n </div>\n </div>\n </div>\n </div>\n <div class=\"right\">\n <div class=\"right-title\">环境与授权</div>\n <div class=\"right-content\">\n <i-form ref=\"batch-api-form\" class=\"variable-content-form\" label-colon label-position=\"left\" v-if=\"isEmpty\" :rules=\"rules\" :label-width=\"100\" :model=\"formData\">\n <i-form-item class=\"content-form-item\" label=\"选择属性\">\n <i-select class=\"diy-select\" placeholder=\"请输入\" clearable v-model=\"type\">\n <i-option value=\"env\">环境变量</i-option>\n <i-option value=\"auth\">授权设置</i-option>\n <i-option value=\"both\">环境变量和授权设置</i-option>\n </i-select>\n </i-form-item>\n <i-form-item class=\"content-form-item\" v-if=\"type !== 'auth'\" label=\"环境变量\" prop=\"envId\">\n <i-select class=\"diy-select diy-batch-select\" placeholder=\"请选择\" clearable v-model=\"formData.envId\">\n <i-option value=\"empty\">清空所有已设置环境变量</i-option>\n <i-option v-for=\"item in variableList\" :key=\"item.name\" :value=\"item.id\">{{item.name}} </i-option>\n </i-select>\n </i-form-item>\n <i-form-item class=\"content-form-item\" label=\"授权设置\" v-if=\"type !== 'env'\" prop=\"authId\">\n <i-select class=\"diy-select diy-batch-select\" placeholder=\"请选择\" clearable v-model=\"formData.authId\">\n <i-option value=\"empty\">清空所有已设置授权</i-option>\n <i-option v-for=\"item in securityList\" :key=\"item.name\" :value=\"item.id\">{{item.name}} </i-option>\n </i-select>\n </i-form-item>\n </i-form>\n </div>\n </div>\n </main>\n\n <footer slot=\"footer\">\n <template>\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">保存</i-button>\n </template>\n </footer>\n</i-modal>\n"
|
|
40806
40806
|
|
|
40807
40807
|
/***/ }),
|
|
40808
40808
|
|
|
@@ -48850,7 +48850,7 @@ module.exports = uncurryThis([].slice);
|
|
|
48850
48850
|
/***/ "f40e":
|
|
48851
48851
|
/***/ (function(module, exports) {
|
|
48852
48852
|
|
|
48853
|
-
module.exports = "<article class=\"interface-settings\">\r\n <header>\r\n<!-- <i-input class=\"diy-input\" v-model=\"interfaceModel.info.url\">-->\r\n<!-- <i-select transfer slot=\"prepend\" class=\"diy-select\" v-model=\"interfaceModel.info.method\">-->\r\n<!-- <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>-->\r\n<!-- </i-select>-->\r\n<!-- </i-input>-->\r\n <i-select class=\"diy-select method-select\" v-model=\"interfaceModel.info.method\">\r\n <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\r\n </i-select>\r\n <i-select class=\"diy-select env-select\" v-model=\"interfaceModel.info.envId\">\r\n <i-option v-for=\"item in paramList\" :key=\"item.id\" :value=\"item.id\">{{item.name + \":\" + item.value}}</i-option>\r\n </i-select>\r\n <i-input class=\"diy-input url-input\" v-model=\"interfaceModel.info.url\"></i-input>\r\n\r\n <i-button type=\"primary\" class=\"diy-btn-primary submit-btn\" @click=\"onRun\">发送</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\" ghost>保存</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onVersion\" ghost>查看历史版本</i-button>\r\n <i class=\"export iconfont icon-xiazai\" title=\"导出\" type=\"md-download\" @click=\"onExport\"></i>\r\n <i-upload action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\r\n <i class=\"import iconfont icon-shangchuan\" title=\"导入\" type=\"md-cloud-upload\"></i>\r\n </i-upload>\r\n </header>\r\n <main :class=\"{'transverse': !lengthwise}\">\r\n <section class=\"request\">\r\n <div class=\"request-bar\">\r\n <div\r\n class=\"tag\"\r\n :class=\"{'active': currentRequestSettingType.name.indexOf(item.name) === 0}\"\r\n v-for=\"(item,index) in requertSettingTypeList\"\r\n :key=\"item.name\"\r\n @click=\"onClickRequertSettingTpye(item)\"\r\n >\r\n <span>{{item.title}}</span>\r\n </div>\r\n </div>\r\n <div class=\"request-content\">\r\n <component\r\n :is=\"currentRequestSettingType.name\"\r\n :lengthwise=\"lengthwise\"\r\n :interface-model=\"interfaceModel\"\r\n :response=\"response\"\r\n :key=\"interfaceModel.info.id + currentRequestSettingType.name\"\r\n :projectID=\"projectId\"\r\n :currentSecurityID=\"currentId\"\r\n @on-current-id=\"onCurrentId\"\r\n ></component>\r\n </div>\r\n </section>\r\n <response :key=\"interfaceModel.info.id + 'response'\" :lengthwise=\"lengthwise\" :response=\"response\"></response>\r\n </main>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n</article>\r\n"
|
|
48853
|
+
module.exports = "<article class=\"interface-settings\">\r\n <header>\r\n<!-- <i-input class=\"diy-input\" v-model=\"interfaceModel.info.url\">-->\r\n<!-- <i-select transfer slot=\"prepend\" class=\"diy-select\" v-model=\"interfaceModel.info.method\">-->\r\n<!-- <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>-->\r\n<!-- </i-select>-->\r\n<!-- </i-input>-->\r\n <i-select class=\"diy-select method-select\" v-model=\"interfaceModel.info.method\">\r\n <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\r\n </i-select>\r\n <i-select class=\"diy-select env-select\" v-model=\"interfaceModel.info.envId\">\r\n <i-option v-for=\"item in paramList\" :key=\"item.id\" :value=\"item.id\">{{item.name + \":\" + item.value}}</i-option>\r\n </i-select>\r\n <i-input class=\"diy-input url-input\" v-model=\"interfaceModel.info.url\"></i-input>\r\n\r\n <i-button type=\"primary\" class=\"diy-btn-primary submit-btn\" @click=\"onRun\">发送</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\" ghost>保存</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary his-btn\" @click=\"onVersion\" ghost>查看历史版本</i-button>\r\n <i class=\"export iconfont icon-xiazai\" title=\"导出\" type=\"md-download\" @click=\"onExport\"></i>\r\n <i-upload action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\r\n <i class=\"import iconfont icon-shangchuan\" title=\"导入\" type=\"md-cloud-upload\"></i>\r\n </i-upload>\r\n\r\n </header>\r\n <main :class=\"{'transverse': !lengthwise}\">\r\n <section class=\"request\">\r\n <div class=\"request-bar\">\r\n <div\r\n class=\"tag\"\r\n :class=\"{'active': currentRequestSettingType.name.indexOf(item.name) === 0}\"\r\n v-for=\"(item,index) in requertSettingTypeList\"\r\n :key=\"item.name\"\r\n @click=\"onClickRequertSettingTpye(item)\"\r\n >\r\n <span>{{item.title}}</span>\r\n </div>\r\n </div>\r\n <div class=\"request-content\">\r\n <component\r\n :is=\"currentRequestSettingType.name\"\r\n :lengthwise=\"lengthwise\"\r\n :interface-model=\"interfaceModel\"\r\n :response=\"response\"\r\n :key=\"interfaceModel.info.id + currentRequestSettingType.name\"\r\n :projectID=\"projectId\"\r\n :currentSecurityID=\"currentId\"\r\n @on-current-id=\"onCurrentId\"\r\n ></component>\r\n </div>\r\n </section>\r\n <response :key=\"interfaceModel.info.id + 'response'\" :lengthwise=\"lengthwise\" :response=\"response\"></response>\r\n </main>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n</article>\r\n"
|
|
48854
48854
|
|
|
48855
48855
|
/***/ }),
|
|
48856
48856
|
|
|
@@ -63675,6 +63675,7 @@ function (_super) {
|
|
|
63675
63675
|
|
|
63676
63676
|
|
|
63677
63677
|
|
|
63678
|
+
|
|
63678
63679
|
|
|
63679
63680
|
|
|
63680
63681
|
var interface_settings_extends = undefined && undefined.__extends || function () {
|
|
@@ -63960,12 +63961,15 @@ function (_super) {
|
|
|
63960
63961
|
};
|
|
63961
63962
|
|
|
63962
63963
|
InterfaceSettings.prototype.onRun = function () {
|
|
63963
|
-
var _a, _b;
|
|
63964
|
+
var _a, _b, _c;
|
|
63964
63965
|
|
|
63965
63966
|
return interface_settings_awaiter(this, void 0, void 0, function () {
|
|
63966
|
-
var formParams, requestHeaders, result;
|
|
63967
|
-
|
|
63968
|
-
|
|
63967
|
+
var formParams, requestHeaders, index, result;
|
|
63968
|
+
|
|
63969
|
+
var _this = this;
|
|
63970
|
+
|
|
63971
|
+
return interface_settings_generator(this, function (_d) {
|
|
63972
|
+
switch (_d.label) {
|
|
63969
63973
|
case 0:
|
|
63970
63974
|
this.loading = true;
|
|
63971
63975
|
formParams = [];
|
|
@@ -63983,6 +63987,13 @@ function (_super) {
|
|
|
63983
63987
|
});
|
|
63984
63988
|
}
|
|
63985
63989
|
|
|
63990
|
+
if (!((_c = this.interfaceModel.environmentParam) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
63991
|
+
index = this.paramList.findIndex(function (v) {
|
|
63992
|
+
return v.id === _this.interfaceModel.info.envId;
|
|
63993
|
+
});
|
|
63994
|
+
this.interfaceModel.environmentParam = index > -1 ? this.paramList[index] : null;
|
|
63995
|
+
}
|
|
63996
|
+
|
|
63986
63997
|
return [4
|
|
63987
63998
|
/*yield*/
|
|
63988
63999
|
, this.service.run(this.interfaceModel.info.id, interface_settings_assign(interface_settings_assign({}, this.interfaceModel), {
|
|
@@ -63991,7 +64002,7 @@ function (_super) {
|
|
|
63991
64002
|
}))];
|
|
63992
64003
|
|
|
63993
64004
|
case 1:
|
|
63994
|
-
result =
|
|
64005
|
+
result = _d.sent();
|
|
63995
64006
|
this.loading = false;
|
|
63996
64007
|
this.response = (result === null || result === void 0 ? void 0 : result.result) || new Response();
|
|
63997
64008
|
|
|
@@ -64565,7 +64576,7 @@ function (_super) {
|
|
|
64565
64576
|
return {
|
|
64566
64577
|
envId: [{
|
|
64567
64578
|
required: true,
|
|
64568
|
-
message: "
|
|
64579
|
+
message: "请选择",
|
|
64569
64580
|
trigger: "change"
|
|
64570
64581
|
}]
|
|
64571
64582
|
};
|
|
@@ -64573,7 +64584,7 @@ function (_super) {
|
|
|
64573
64584
|
return {
|
|
64574
64585
|
authId: [{
|
|
64575
64586
|
required: true,
|
|
64576
|
-
message: "
|
|
64587
|
+
message: "请选择",
|
|
64577
64588
|
trigger: "change"
|
|
64578
64589
|
}]
|
|
64579
64590
|
};
|
|
@@ -64581,12 +64592,12 @@ function (_super) {
|
|
|
64581
64592
|
return {
|
|
64582
64593
|
envId: [{
|
|
64583
64594
|
required: true,
|
|
64584
|
-
message: "
|
|
64595
|
+
message: "请选择",
|
|
64585
64596
|
trigger: "change"
|
|
64586
64597
|
}],
|
|
64587
64598
|
authId: [{
|
|
64588
64599
|
required: true,
|
|
64589
|
-
message: "
|
|
64600
|
+
message: "请选择",
|
|
64590
64601
|
trigger: "change"
|
|
64591
64602
|
}]
|
|
64592
64603
|
};
|
|
@@ -64621,11 +64632,8 @@ function (_super) {
|
|
|
64621
64632
|
this.getVariableList();
|
|
64622
64633
|
this.apiList = this.data.$clone();
|
|
64623
64634
|
} else {
|
|
64624
|
-
|
|
64625
|
-
|
|
64626
|
-
// envId: "",
|
|
64627
|
-
// authId: ""
|
|
64628
|
-
// };
|
|
64635
|
+
this.allSelect = false;
|
|
64636
|
+
this.set.clear();
|
|
64629
64637
|
this.$refs["batch-api-form"].resetFields();
|
|
64630
64638
|
}
|
|
64631
64639
|
|