@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.umd.js
CHANGED
|
@@ -40811,7 +40811,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
40811
40811
|
/***/ "88af":
|
|
40812
40812
|
/***/ (function(module, exports) {
|
|
40813
40813
|
|
|
40814
|
-
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\"
|
|
40814
|
+
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"
|
|
40815
40815
|
|
|
40816
40816
|
/***/ }),
|
|
40817
40817
|
|
|
@@ -48859,7 +48859,7 @@ module.exports = uncurryThis([].slice);
|
|
|
48859
48859
|
/***/ "f40e":
|
|
48860
48860
|
/***/ (function(module, exports) {
|
|
48861
48861
|
|
|
48862
|
-
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"
|
|
48862
|
+
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"
|
|
48863
48863
|
|
|
48864
48864
|
/***/ }),
|
|
48865
48865
|
|
|
@@ -63684,6 +63684,7 @@ function (_super) {
|
|
|
63684
63684
|
|
|
63685
63685
|
|
|
63686
63686
|
|
|
63687
|
+
|
|
63687
63688
|
|
|
63688
63689
|
|
|
63689
63690
|
var interface_settings_extends = undefined && undefined.__extends || function () {
|
|
@@ -63969,12 +63970,15 @@ function (_super) {
|
|
|
63969
63970
|
};
|
|
63970
63971
|
|
|
63971
63972
|
InterfaceSettings.prototype.onRun = function () {
|
|
63972
|
-
var _a, _b;
|
|
63973
|
+
var _a, _b, _c;
|
|
63973
63974
|
|
|
63974
63975
|
return interface_settings_awaiter(this, void 0, void 0, function () {
|
|
63975
|
-
var formParams, requestHeaders, result;
|
|
63976
|
-
|
|
63977
|
-
|
|
63976
|
+
var formParams, requestHeaders, index, result;
|
|
63977
|
+
|
|
63978
|
+
var _this = this;
|
|
63979
|
+
|
|
63980
|
+
return interface_settings_generator(this, function (_d) {
|
|
63981
|
+
switch (_d.label) {
|
|
63978
63982
|
case 0:
|
|
63979
63983
|
this.loading = true;
|
|
63980
63984
|
formParams = [];
|
|
@@ -63992,6 +63996,13 @@ function (_super) {
|
|
|
63992
63996
|
});
|
|
63993
63997
|
}
|
|
63994
63998
|
|
|
63999
|
+
if (!((_c = this.interfaceModel.environmentParam) === null || _c === void 0 ? void 0 : _c.length)) {
|
|
64000
|
+
index = this.paramList.findIndex(function (v) {
|
|
64001
|
+
return v.id === _this.interfaceModel.info.envId;
|
|
64002
|
+
});
|
|
64003
|
+
this.interfaceModel.environmentParam = index > -1 ? this.paramList[index] : null;
|
|
64004
|
+
}
|
|
64005
|
+
|
|
63995
64006
|
return [4
|
|
63996
64007
|
/*yield*/
|
|
63997
64008
|
, this.service.run(this.interfaceModel.info.id, interface_settings_assign(interface_settings_assign({}, this.interfaceModel), {
|
|
@@ -64000,7 +64011,7 @@ function (_super) {
|
|
|
64000
64011
|
}))];
|
|
64001
64012
|
|
|
64002
64013
|
case 1:
|
|
64003
|
-
result =
|
|
64014
|
+
result = _d.sent();
|
|
64004
64015
|
this.loading = false;
|
|
64005
64016
|
this.response = (result === null || result === void 0 ? void 0 : result.result) || new Response();
|
|
64006
64017
|
|
|
@@ -64574,7 +64585,7 @@ function (_super) {
|
|
|
64574
64585
|
return {
|
|
64575
64586
|
envId: [{
|
|
64576
64587
|
required: true,
|
|
64577
|
-
message: "
|
|
64588
|
+
message: "请选择",
|
|
64578
64589
|
trigger: "change"
|
|
64579
64590
|
}]
|
|
64580
64591
|
};
|
|
@@ -64582,7 +64593,7 @@ function (_super) {
|
|
|
64582
64593
|
return {
|
|
64583
64594
|
authId: [{
|
|
64584
64595
|
required: true,
|
|
64585
|
-
message: "
|
|
64596
|
+
message: "请选择",
|
|
64586
64597
|
trigger: "change"
|
|
64587
64598
|
}]
|
|
64588
64599
|
};
|
|
@@ -64590,12 +64601,12 @@ function (_super) {
|
|
|
64590
64601
|
return {
|
|
64591
64602
|
envId: [{
|
|
64592
64603
|
required: true,
|
|
64593
|
-
message: "
|
|
64604
|
+
message: "请选择",
|
|
64594
64605
|
trigger: "change"
|
|
64595
64606
|
}],
|
|
64596
64607
|
authId: [{
|
|
64597
64608
|
required: true,
|
|
64598
|
-
message: "
|
|
64609
|
+
message: "请选择",
|
|
64599
64610
|
trigger: "change"
|
|
64600
64611
|
}]
|
|
64601
64612
|
};
|
|
@@ -64630,11 +64641,8 @@ function (_super) {
|
|
|
64630
64641
|
this.getVariableList();
|
|
64631
64642
|
this.apiList = this.data.$clone();
|
|
64632
64643
|
} else {
|
|
64633
|
-
|
|
64634
|
-
|
|
64635
|
-
// envId: "",
|
|
64636
|
-
// authId: ""
|
|
64637
|
-
// };
|
|
64644
|
+
this.allSelect = false;
|
|
64645
|
+
this.set.clear();
|
|
64638
64646
|
this.$refs["batch-api-form"].resetFields();
|
|
64639
64647
|
}
|
|
64640
64648
|
|