@egova/egova-api 1.3.32 → 1.3.34

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.umd.js CHANGED
@@ -8714,14 +8714,7 @@ var combine_model_ProjectCombineModel = /** @class */function (_super) {
8714
8714
  __extends(ProjectCombineModel, _super);
8715
8715
  function ProjectCombineModel() {
8716
8716
  var _this = _super !== null && _super.apply(this, arguments) || this;
8717
- _this.model = {
8718
- authFlag: 1,
8719
- type: "SCRIPT",
8720
- status: "NOT_PUBLISHED",
8721
- relations: [],
8722
- reqParams: [],
8723
- respParams: []
8724
- };
8717
+ _this.model = _this.createDefaultModel();
8725
8718
  _this.title = "合并模型";
8726
8719
  _this.id = "";
8727
8720
  _this.categoryId = "";
@@ -8780,6 +8773,16 @@ var combine_model_ProjectCombineModel = /** @class */function (_super) {
8780
8773
  _this.docShow = false;
8781
8774
  return _this;
8782
8775
  }
8776
+ ProjectCombineModel.prototype.createDefaultModel = function () {
8777
+ return {
8778
+ authFlag: 1,
8779
+ type: "SCRIPT",
8780
+ status: "NOT_PUBLISHED",
8781
+ relations: [],
8782
+ reqParams: [],
8783
+ respParams: []
8784
+ };
8785
+ };
8783
8786
  Object.defineProperty(ProjectCombineModel.prototype, "dataModelRelations", {
8784
8787
  get: function () {
8785
8788
  var _a, _b;
@@ -8823,6 +8826,11 @@ var combine_model_ProjectCombineModel = /** @class */function (_super) {
8823
8826
  this.isAdd = this.isEdit && !id;
8824
8827
  this.categoryId = categoryId;
8825
8828
  this.title = !this.isEdit ? "合并模型详情" : this.isAdd ? "新增合并模型" : "编辑合并模型";
8829
+ if (!id) {
8830
+ this.id = "";
8831
+ this.model = this.createDefaultModel();
8832
+ return;
8833
+ }
8826
8834
  if (id !== this.id) {
8827
8835
  this.id = id;
8828
8836
  this.getById();
@@ -16460,7 +16468,7 @@ var SwiperSlide = VueAwesomeSwiper.SwiperSlide;exports.Swiper=Swiper;exports.Swi
16460
16468
  /***/ "ef27":
16461
16469
  /***/ (function(module, exports) {
16462
16470
 
16463
- module.exports = "<article class=\"project-card\" @click=\"onDetail\">\r\n <header>{{data.name}}</header>\r\n <i-dropdown transfer transfer-class-name=\"api-project-oprate\" class=\"project-card-i-dropdown\" @on-click=\"onClick\">\r\n <i-icon type=\"ios-more\" />\r\n <i-dropdown-menu slot=\"list\">\r\n <i-dropdown-item :name=\"'export'\">\r\n <i\r\n class=\"api-icon icon-export project-card-i-dropdown-item-icon\"\r\n title=\"导出此项目\"\r\n @click.stop=\"onExport\"\r\n ></i>\r\n 导出此项目\r\n </i-dropdown-item>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n <main></main>\r\n <footer>\r\n <div @click.stop=\"onEdit\">修改</div>\r\n <u-confirm\r\n class=\"delete\"\r\n title=\"删除项目\"\r\n message=\"项目内所有接口将被一并删除, 是否确认执行?\"\r\n @on-ok=\"onDelete\"\r\n >\r\n <span>删除</span>\r\n </u-confirm>\r\n </footer>\r\n</article>\r\n"
16471
+ module.exports = "<article class=\"project-card\" @click=\"onDetail\">\r\n <header :title=\"data.name\">{{data.name}}</header>\r\n <i-dropdown transfer transfer-class-name=\"api-project-oprate\" class=\"project-card-i-dropdown\" @on-click=\"onClick\">\r\n <i-icon type=\"ios-more\" />\r\n <i-dropdown-menu slot=\"list\">\r\n <i-dropdown-item :name=\"'export'\">\r\n <i\r\n class=\"api-icon icon-export project-card-i-dropdown-item-icon\"\r\n title=\"导出此项目\"\r\n @click.stop=\"onExport\"\r\n ></i>\r\n 导出此项目\r\n </i-dropdown-item>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n <main></main>\r\n <footer>\r\n <div @click.stop=\"onEdit\">修改</div>\r\n <u-confirm\r\n class=\"delete\"\r\n title=\"删除项目\"\r\n message=\"项目内所有接口将被一并删除, 是否确认执行?\"\r\n @on-ok=\"onDelete\"\r\n >\r\n <span>删除</span>\r\n </u-confirm>\r\n </footer>\r\n</article>\r\n"
16464
16472
 
16465
16473
  /***/ }),
16466
16474