@egova/egova-api 1.2.7 → 1.2.9
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 +11 -3
- package/dist/index.umd.js +11 -3
- package/dist/index.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -13076,9 +13076,9 @@ var tree_ProjectTree = /** @class */function (_super) {
|
|
|
13076
13076
|
this.showInterfaceModal = false;
|
|
13077
13077
|
if (["BIND_NONE", "NOT_UPDATED_PROJECT"].includes(status)) {
|
|
13078
13078
|
this.$message.success("保存接口成功");
|
|
13079
|
+
this.$emit("on-reset");
|
|
13079
13080
|
this.$publish("api://project-detail-save");
|
|
13080
|
-
this.$emit("on-edit-interface-success", this.interfaceModel);
|
|
13081
|
-
this.init();
|
|
13081
|
+
// this.$emit("on-edit-interface-success", this.interfaceModel);
|
|
13082
13082
|
} else if ("BIND_JOB" === status) {
|
|
13083
13083
|
this.$message.error(this.MOVE_RESULT.BIND_JOB);
|
|
13084
13084
|
} else if ("BIND_ENV" === status) {
|
|
@@ -13227,6 +13227,9 @@ var tree_ProjectTree = /** @class */function (_super) {
|
|
|
13227
13227
|
this.showGroupModal = false;
|
|
13228
13228
|
if (["BIND_NONE", "NOT_UPDATED_PROJECT"].includes(status)) {
|
|
13229
13229
|
this.$message.success("保存分组成功");
|
|
13230
|
+
if ("BIND_NONE" === status) {
|
|
13231
|
+
this.$emit("on-reset");
|
|
13232
|
+
}
|
|
13230
13233
|
this.$publish("api://project-detail-save");
|
|
13231
13234
|
} else if ("BIND_JOB" === status) {
|
|
13232
13235
|
this.$message.error(this.MOVE_RESULT.BIND_JOB);
|
|
@@ -13370,6 +13373,7 @@ var tree_ProjectTree = /** @class */function (_super) {
|
|
|
13370
13373
|
case 4:
|
|
13371
13374
|
if (res && !res.hasError) {
|
|
13372
13375
|
this.$publish("api://project-detail-save");
|
|
13376
|
+
this.$emit("on-reset");
|
|
13373
13377
|
}
|
|
13374
13378
|
return [2 /*return*/];
|
|
13375
13379
|
}
|
|
@@ -13560,6 +13564,10 @@ var project_detail_ProjectDetail = /** @class */function (_super) {
|
|
|
13560
13564
|
this.swiper.slideTo(0, 1000, false);
|
|
13561
13565
|
}
|
|
13562
13566
|
};
|
|
13567
|
+
ProjectDetail.prototype.onReset = function () {
|
|
13568
|
+
this.openInterfaceList.splice(0);
|
|
13569
|
+
this.active = {};
|
|
13570
|
+
};
|
|
13563
13571
|
ProjectDetail.prototype.onClickTag = function (data) {
|
|
13564
13572
|
this.active = data;
|
|
13565
13573
|
};
|
|
@@ -13815,7 +13823,7 @@ module.exports = function (obj) {
|
|
|
13815
13823
|
/***/ "d63e":
|
|
13816
13824
|
/***/ (function(module, exports) {
|
|
13817
13825
|
|
|
13818
|
-
module.exports = "<article class=\"project-detail\">\
|
|
13826
|
+
module.exports = "<article class=\"project-detail\">\n <header>\n <div class=\"environment\">\n <i class=\"iconfont icon-zhankai\" @click=\"onBack\"></i>\n <p>{{projectName}}</p>\n <!-- <span>环境变量:</span> -->\n <!-- <i-select class=\"diy-select\"></i-select> -->\n </div>\n <div class=\"btns\">\n <!-- <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onOpenGlobalModal\"> <i class=\"api-icon icon-setting\"></i>全局参数设置</i-button> -->\n <!-- <i-button type=\"success\" ghost class=\"diy-btn-success\" @click=\"onOpenCurrentModal\"><i class=\"api-icon icon-view\"></i>查看当前变量</i-button> -->\n <i-button v-if=\"projectId && projectName\" type=\"primary\" class=\"diy-btn-primary security-btn\" ghost @click=\"onSecurity\"><i class=\"iconfont icon-xinzengzhibiao\"></i>授权认证</i-button>\n <i-button v-if=\"projectId && projectName\" type=\"primary\" class=\"diy-btn-primary\" ghost @click=\"onOpenEnvModal\"><i class=\"iconfont icon-bianliang\"></i>环境变量</i-button>\n <i-button v-show=\"active.id\" type=\"primary\" class=\"diy-btn-primary\" ghost @click=\"onToggleLayout\"><i class=\"api-icon icon-switch\"></i>切换布局</i-button>\n </div>\n </header>\n <!-- <main> -->\n <i-split v-model=\"split\" min=\"200px\" max=\"900px\">\n <u-tree slot=\"left\" @on-check-interface=\"onCheckInterface\" @on-edit-interface-success=\"onEditInterfaceSuccess\" :project-id=\"projectId\" @on-success=\"onBatchSuccess\" @on-delete-interface=\"onDeleteInterface\" @on-reset=\"onReset\"></u-tree>\n <section slot=\"right\" class=\"interface-box\">\n <header class=\"interface-bar\">\n <swiper class=\"swiper\" :options=\"swiperOption\" @click-slide=\"onClickSlide\" @ready=\"onSwiperReadied\">\n <swiper-slide class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\"\n ><span>{{item.name}}</span> <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon\n ></swiper-slide>\n </swiper>\n <!-- <div class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\">\n <span>{{item.name}}</span>\n <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon>\n </div> -->\n </header>\n <u-settings ref=\"interface-settings\" :interface-model.sync=\"active\" :project-id=\"projectId\" v-if=\"active.id\" :lengthwise=\"lengthwise\"></u-settings>\n </section>\n </i-split>\n <i-spin fix v-show=\"loading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n <!-- </main> -->\n <u-global-modal :visiable.sync=\"showGlobalModal\">\n <footer slot=\"footer\">\n <i-button @click=\"showGlobalModal = false\">取消</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary\">确定</i-button>\n </footer>\n </u-global-modal>\n <u-current-modal :visiable.sync=\"showCurrentModal\"> </u-current-modal>\n <u-security-modal v-model=\"showSecurity\" :projectID=\"projectId\"></u-security-modal>\n <u-environment-modal :visiable.sync=\"showEnvironmentModal\" :projectId=\"projectId\" @on-refresh=\"onEnvironmentRefresh\"></u-environment-modal>\n</article>\n"
|
|
13819
13827
|
|
|
13820
13828
|
/***/ }),
|
|
13821
13829
|
|
package/dist/index.umd.js
CHANGED
|
@@ -13085,9 +13085,9 @@ var tree_ProjectTree = /** @class */function (_super) {
|
|
|
13085
13085
|
this.showInterfaceModal = false;
|
|
13086
13086
|
if (["BIND_NONE", "NOT_UPDATED_PROJECT"].includes(status)) {
|
|
13087
13087
|
this.$message.success("保存接口成功");
|
|
13088
|
+
this.$emit("on-reset");
|
|
13088
13089
|
this.$publish("api://project-detail-save");
|
|
13089
|
-
this.$emit("on-edit-interface-success", this.interfaceModel);
|
|
13090
|
-
this.init();
|
|
13090
|
+
// this.$emit("on-edit-interface-success", this.interfaceModel);
|
|
13091
13091
|
} else if ("BIND_JOB" === status) {
|
|
13092
13092
|
this.$message.error(this.MOVE_RESULT.BIND_JOB);
|
|
13093
13093
|
} else if ("BIND_ENV" === status) {
|
|
@@ -13236,6 +13236,9 @@ var tree_ProjectTree = /** @class */function (_super) {
|
|
|
13236
13236
|
this.showGroupModal = false;
|
|
13237
13237
|
if (["BIND_NONE", "NOT_UPDATED_PROJECT"].includes(status)) {
|
|
13238
13238
|
this.$message.success("保存分组成功");
|
|
13239
|
+
if ("BIND_NONE" === status) {
|
|
13240
|
+
this.$emit("on-reset");
|
|
13241
|
+
}
|
|
13239
13242
|
this.$publish("api://project-detail-save");
|
|
13240
13243
|
} else if ("BIND_JOB" === status) {
|
|
13241
13244
|
this.$message.error(this.MOVE_RESULT.BIND_JOB);
|
|
@@ -13379,6 +13382,7 @@ var tree_ProjectTree = /** @class */function (_super) {
|
|
|
13379
13382
|
case 4:
|
|
13380
13383
|
if (res && !res.hasError) {
|
|
13381
13384
|
this.$publish("api://project-detail-save");
|
|
13385
|
+
this.$emit("on-reset");
|
|
13382
13386
|
}
|
|
13383
13387
|
return [2 /*return*/];
|
|
13384
13388
|
}
|
|
@@ -13569,6 +13573,10 @@ var project_detail_ProjectDetail = /** @class */function (_super) {
|
|
|
13569
13573
|
this.swiper.slideTo(0, 1000, false);
|
|
13570
13574
|
}
|
|
13571
13575
|
};
|
|
13576
|
+
ProjectDetail.prototype.onReset = function () {
|
|
13577
|
+
this.openInterfaceList.splice(0);
|
|
13578
|
+
this.active = {};
|
|
13579
|
+
};
|
|
13572
13580
|
ProjectDetail.prototype.onClickTag = function (data) {
|
|
13573
13581
|
this.active = data;
|
|
13574
13582
|
};
|
|
@@ -13824,7 +13832,7 @@ module.exports = function (obj) {
|
|
|
13824
13832
|
/***/ "d63e":
|
|
13825
13833
|
/***/ (function(module, exports) {
|
|
13826
13834
|
|
|
13827
|
-
module.exports = "<article class=\"project-detail\">\
|
|
13835
|
+
module.exports = "<article class=\"project-detail\">\n <header>\n <div class=\"environment\">\n <i class=\"iconfont icon-zhankai\" @click=\"onBack\"></i>\n <p>{{projectName}}</p>\n <!-- <span>环境变量:</span> -->\n <!-- <i-select class=\"diy-select\"></i-select> -->\n </div>\n <div class=\"btns\">\n <!-- <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onOpenGlobalModal\"> <i class=\"api-icon icon-setting\"></i>全局参数设置</i-button> -->\n <!-- <i-button type=\"success\" ghost class=\"diy-btn-success\" @click=\"onOpenCurrentModal\"><i class=\"api-icon icon-view\"></i>查看当前变量</i-button> -->\n <i-button v-if=\"projectId && projectName\" type=\"primary\" class=\"diy-btn-primary security-btn\" ghost @click=\"onSecurity\"><i class=\"iconfont icon-xinzengzhibiao\"></i>授权认证</i-button>\n <i-button v-if=\"projectId && projectName\" type=\"primary\" class=\"diy-btn-primary\" ghost @click=\"onOpenEnvModal\"><i class=\"iconfont icon-bianliang\"></i>环境变量</i-button>\n <i-button v-show=\"active.id\" type=\"primary\" class=\"diy-btn-primary\" ghost @click=\"onToggleLayout\"><i class=\"api-icon icon-switch\"></i>切换布局</i-button>\n </div>\n </header>\n <!-- <main> -->\n <i-split v-model=\"split\" min=\"200px\" max=\"900px\">\n <u-tree slot=\"left\" @on-check-interface=\"onCheckInterface\" @on-edit-interface-success=\"onEditInterfaceSuccess\" :project-id=\"projectId\" @on-success=\"onBatchSuccess\" @on-delete-interface=\"onDeleteInterface\" @on-reset=\"onReset\"></u-tree>\n <section slot=\"right\" class=\"interface-box\">\n <header class=\"interface-bar\">\n <swiper class=\"swiper\" :options=\"swiperOption\" @click-slide=\"onClickSlide\" @ready=\"onSwiperReadied\">\n <swiper-slide class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\"\n ><span>{{item.name}}</span> <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon\n ></swiper-slide>\n </swiper>\n <!-- <div class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\">\n <span>{{item.name}}</span>\n <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon>\n </div> -->\n </header>\n <u-settings ref=\"interface-settings\" :interface-model.sync=\"active\" :project-id=\"projectId\" v-if=\"active.id\" :lengthwise=\"lengthwise\"></u-settings>\n </section>\n </i-split>\n <i-spin fix v-show=\"loading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n <!-- </main> -->\n <u-global-modal :visiable.sync=\"showGlobalModal\">\n <footer slot=\"footer\">\n <i-button @click=\"showGlobalModal = false\">取消</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary\">确定</i-button>\n </footer>\n </u-global-modal>\n <u-current-modal :visiable.sync=\"showCurrentModal\"> </u-current-modal>\n <u-security-modal v-model=\"showSecurity\" :projectID=\"projectId\"></u-security-modal>\n <u-environment-modal :visiable.sync=\"showEnvironmentModal\" :projectId=\"projectId\" @on-refresh=\"onEnvironmentRefresh\"></u-environment-modal>\n</article>\n"
|
|
13828
13836
|
|
|
13829
13837
|
/***/ }),
|
|
13830
13838
|
|