@egova/egova-api 1.2.8 → 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 -2
- package/dist/index.umd.js +11 -2
- package/dist/index.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -13076,8 +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.$emit("on-edit-interface-success", this.interfaceModel);
|
|
13081
13082
|
} else if ("BIND_JOB" === status) {
|
|
13082
13083
|
this.$message.error(this.MOVE_RESULT.BIND_JOB);
|
|
13083
13084
|
} else if ("BIND_ENV" === status) {
|
|
@@ -13226,6 +13227,9 @@ var tree_ProjectTree = /** @class */function (_super) {
|
|
|
13226
13227
|
this.showGroupModal = false;
|
|
13227
13228
|
if (["BIND_NONE", "NOT_UPDATED_PROJECT"].includes(status)) {
|
|
13228
13229
|
this.$message.success("保存分组成功");
|
|
13230
|
+
if ("BIND_NONE" === status) {
|
|
13231
|
+
this.$emit("on-reset");
|
|
13232
|
+
}
|
|
13229
13233
|
this.$publish("api://project-detail-save");
|
|
13230
13234
|
} else if ("BIND_JOB" === status) {
|
|
13231
13235
|
this.$message.error(this.MOVE_RESULT.BIND_JOB);
|
|
@@ -13369,6 +13373,7 @@ var tree_ProjectTree = /** @class */function (_super) {
|
|
|
13369
13373
|
case 4:
|
|
13370
13374
|
if (res && !res.hasError) {
|
|
13371
13375
|
this.$publish("api://project-detail-save");
|
|
13376
|
+
this.$emit("on-reset");
|
|
13372
13377
|
}
|
|
13373
13378
|
return [2 /*return*/];
|
|
13374
13379
|
}
|
|
@@ -13559,6 +13564,10 @@ var project_detail_ProjectDetail = /** @class */function (_super) {
|
|
|
13559
13564
|
this.swiper.slideTo(0, 1000, false);
|
|
13560
13565
|
}
|
|
13561
13566
|
};
|
|
13567
|
+
ProjectDetail.prototype.onReset = function () {
|
|
13568
|
+
this.openInterfaceList.splice(0);
|
|
13569
|
+
this.active = {};
|
|
13570
|
+
};
|
|
13562
13571
|
ProjectDetail.prototype.onClickTag = function (data) {
|
|
13563
13572
|
this.active = data;
|
|
13564
13573
|
};
|
|
@@ -13814,7 +13823,7 @@ module.exports = function (obj) {
|
|
|
13814
13823
|
/***/ "d63e":
|
|
13815
13824
|
/***/ (function(module, exports) {
|
|
13816
13825
|
|
|
13817
|
-
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"
|
|
13818
13827
|
|
|
13819
13828
|
/***/ }),
|
|
13820
13829
|
|
package/dist/index.umd.js
CHANGED
|
@@ -13085,8 +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.$emit("on-edit-interface-success", this.interfaceModel);
|
|
13090
13091
|
} else if ("BIND_JOB" === status) {
|
|
13091
13092
|
this.$message.error(this.MOVE_RESULT.BIND_JOB);
|
|
13092
13093
|
} else if ("BIND_ENV" === status) {
|
|
@@ -13235,6 +13236,9 @@ var tree_ProjectTree = /** @class */function (_super) {
|
|
|
13235
13236
|
this.showGroupModal = false;
|
|
13236
13237
|
if (["BIND_NONE", "NOT_UPDATED_PROJECT"].includes(status)) {
|
|
13237
13238
|
this.$message.success("保存分组成功");
|
|
13239
|
+
if ("BIND_NONE" === status) {
|
|
13240
|
+
this.$emit("on-reset");
|
|
13241
|
+
}
|
|
13238
13242
|
this.$publish("api://project-detail-save");
|
|
13239
13243
|
} else if ("BIND_JOB" === status) {
|
|
13240
13244
|
this.$message.error(this.MOVE_RESULT.BIND_JOB);
|
|
@@ -13378,6 +13382,7 @@ var tree_ProjectTree = /** @class */function (_super) {
|
|
|
13378
13382
|
case 4:
|
|
13379
13383
|
if (res && !res.hasError) {
|
|
13380
13384
|
this.$publish("api://project-detail-save");
|
|
13385
|
+
this.$emit("on-reset");
|
|
13381
13386
|
}
|
|
13382
13387
|
return [2 /*return*/];
|
|
13383
13388
|
}
|
|
@@ -13568,6 +13573,10 @@ var project_detail_ProjectDetail = /** @class */function (_super) {
|
|
|
13568
13573
|
this.swiper.slideTo(0, 1000, false);
|
|
13569
13574
|
}
|
|
13570
13575
|
};
|
|
13576
|
+
ProjectDetail.prototype.onReset = function () {
|
|
13577
|
+
this.openInterfaceList.splice(0);
|
|
13578
|
+
this.active = {};
|
|
13579
|
+
};
|
|
13571
13580
|
ProjectDetail.prototype.onClickTag = function (data) {
|
|
13572
13581
|
this.active = data;
|
|
13573
13582
|
};
|
|
@@ -13823,7 +13832,7 @@ module.exports = function (obj) {
|
|
|
13823
13832
|
/***/ "d63e":
|
|
13824
13833
|
/***/ (function(module, exports) {
|
|
13825
13834
|
|
|
13826
|
-
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"
|
|
13827
13836
|
|
|
13828
13837
|
/***/ }),
|
|
13829
13838
|
|