@egova/egova-api 1.0.98 → 1.0.99

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
@@ -46978,7 +46978,7 @@ $({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
46978
46978
  /***/ "ccf6":
46979
46979
  /***/ (function(module, exports) {
46980
46980
 
46981
- module.exports = "<!DOCTYPE html>\r\n<article class=\"v-api-combine-wrapper\">\r\n <i-split v-model=\"split\" min=\"200px\" max=\"1100px\">\r\n <!-- 左侧内容 -->\r\n <section slot=\"left\" class=\"left-split-pane\">\r\n <u-type-tree :initSelectItem=\"initNode\" @on-import-success=\"onQuery\" @on-select=\"onNodeSelect\"> </u-type-tree>\r\n </section>\r\n <!-- 分割线 -->\r\n <section class=\"trigger\" slot=\"trigger\"></section>\r\n <!-- 右侧内容 -->\r\n <section slot=\"right\" class=\"right-split-pane\">\r\n <section class=\"search-wrapper\">\r\n <i-form class=\"diy-search-form\" ref=\"searchForm\" :model=\"formData\" label-position=\"left\" label-colon>\r\n <i-form-item label=\"名称\" prop=\"name\">\r\n <i-input class=\"diy-input\" v-model=\"formData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"编码\" prop=\"code\">\r\n <i-input class=\"diy-input\" v-model=\"formData.code\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <div class=\"btns\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onQuery\">查询</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onReset\">重置</i-button>\r\n </div>\r\n </section>\r\n <section class=\"actions-wrapper\">\r\n <div class=\"action-item action-text\" @click=\"onAdd()\">\r\n <i class=\"iconfont icon-add\"></i>\r\n <div>新增</div>\r\n </div>\r\n <div class=\"action-item action-text\" @click=\"onBatchDelete\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n <div>批量删除</div>\r\n </div>\r\n </section>\r\n <section class=\"main-wrapper\">\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"list\" @on-selection-change=\"onSelectChange\">\r\n <template slot=\"status\" slot-scope=\"{row,index}\">\r\n <i-switch class=\"diy-switch\" :value=\"row.status==='PUBLISHED'\" @on-change=\"onStatusChange($event, row, index)\"></i-switch>\r\n <span>{{row.status===\"PUBLISHED\" ? \"已发布\" : \"未已布\"}}</span>\r\n </template>\r\n <template slot=\"doc\" slot-scope=\"{row}\">\r\n <a @click=\"onOpenDoc(row)\">查看</a>\r\n </template>\r\n <template #operates=\"{row,index}\">\r\n <div class=\"row-actions\">\r\n <i @click.stop=\"onEdit(row)\" title=\"编辑\" class=\"iconfont icon-edit\"> </i>\r\n <i-poptip confirm transfer title=\"确认要删除这条数据吗?\" @on-ok=\"onDelete(row)\">\r\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n </div>\r\n </template>\r\n </i-table>\r\n <i-page\r\n class=\"diy-page\"\r\n show-total\r\n show-sizer\r\n show-elevator\r\n :total=\"paging.totalCount\"\r\n :current=\"paging.pageIndex\"\r\n :page-size=\"paging.pageSize\"\r\n @on-change=\"onPageIndexChange\"\r\n @on-page-size-change=\"onPageSizeChange\"\r\n ></i-page>\r\n </section>\r\n </section>\r\n </i-split>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\r\n</article>\r\n"
46981
+ module.exports = "<!DOCTYPE html>\n<article class=\"v-api-combine-wrapper\">\n <i-split v-model=\"split\" min=\"200px\" max=\"1100px\">\n <!-- 左侧内容 -->\n <section slot=\"left\" class=\"left-split-pane\">\n <u-type-tree :initSelectItem=\"initNode\" @on-import-success=\"onQuery\" @on-select=\"onNodeSelect\" @on-tree-data=\"onTreeData\"> </u-type-tree>\n </section>\n <!-- 分割线 -->\n <section class=\"trigger\" slot=\"trigger\"></section>\n <!-- 右侧内容 -->\n <section slot=\"right\" class=\"right-split-pane\">\n <section class=\"search-wrapper\">\n <i-form class=\"diy-search-form\" ref=\"searchForm\" :model=\"formData\" label-position=\"left\" label-colon>\n <i-form-item label=\"名称\" prop=\"name\">\n <i-input class=\"diy-input\" v-model=\"formData.name\"></i-input>\n </i-form-item>\n <i-form-item label=\"编码\" prop=\"code\">\n <i-input class=\"diy-input\" v-model=\"formData.code\"></i-input>\n </i-form-item>\n </i-form>\n <div class=\"btns\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onQuery\">查询</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onReset\">重置</i-button>\n </div>\n </section>\n <section class=\"actions-wrapper\">\n <div class=\"action-item action-text\" @click=\"onAdd()\">\n <i class=\"iconfont icon-add\"></i>\n <div>新增</div>\n </div>\n <div class=\"action-item action-text\" @click=\"onBatchDelete\">\n <i class=\"iconfont icon-delete\"></i>\n <div>批量删除</div>\n </div>\n </section>\n <section class=\"main-wrapper\">\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"list\" @on-selection-change=\"onSelectChange\">\n <template slot=\"status\" slot-scope=\"{row,index}\">\n <i-switch class=\"diy-switch\" :value=\"row.status==='PUBLISHED'\" @on-change=\"onStatusChange($event, row, index)\"></i-switch>\n <span>{{row.status===\"PUBLISHED\" ? \"已发布\" : \"未已布\"}}</span>\n </template>\n <template slot=\"doc\" slot-scope=\"{row}\">\n <a @click=\"onOpenDoc(row)\">查看</a>\n </template>\n <template #operates=\"{row,index}\">\n <div class=\"row-actions\">\n <i @click.stop=\"onEdit(row)\" title=\"编辑\" class=\"iconfont icon-edit\"> </i>\n <i @click.stop=\"onCopy(row)\" title=\"复制\" class=\"iconfont icon-fuzhi\"> </i>\n <i-poptip confirm transfer title=\"确认要删除这条数据吗?\" @on-ok=\"onDelete(row)\">\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\n </i-poptip>\n </div>\n </template>\n </i-table>\n <i-page\n class=\"diy-page\"\n show-total\n show-sizer\n show-elevator\n :total=\"paging.totalCount\"\n :current=\"paging.pageIndex\"\n :page-size=\"paging.pageSize\"\n @on-change=\"onPageIndexChange\"\n @on-page-size-change=\"onPageSizeChange\"\n ></i-page>\n </section>\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 <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\n <i-modal\n draggable\n sticky\n reset-drag-position\n v-model=\"showCopyModal\"\n class=\"diy-modal combine-copy-modal\"\n :mask-closable=\"false\"\n title=\"复制接口\"\n >\n <i-form :label-width=\"100\" class=\"diy-form\" v-model=\"copyData\" label-colon>\n <i-form-item label=\"接口名称\" required>\n <i-input\n class=\"diy-input\"\n v-model=\"copyData.name\"\n ></i-input>\n </i-form-item>\n <i-form-item label=\"接口编码\" required>\n <i-input\n class=\"diy-input\"\n v-model=\"copyData.code\"\n ></i-input>\n </i-form-item>\n <i-form-item label=\"选择分组\" required>\n <u-tree-selector\n :treeData=\"treeData\"\n leaf-name=\"copy\"\n :canChooseFolder=\"true\"\n v-model=\"categoryData.id\"\n @on-select=\"selectCategory\">\n </u-tree-selector>\n </i-form-item>\n </i-form>\n <footer slot=\"footer\">\n <i-button\n class=\"diy-btn-primary\"\n type=\"primary\"\n @click=\"onCopyConfirm\"\n >确定</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\n </footer>\n </i-modal>\n</article>\n"
46982
46982
 
46983
46983
  /***/ }),
46984
46984
 
@@ -49141,6 +49141,9 @@ var es_string_split = __webpack_require__("1276");
49141
49141
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
49142
49142
  var es_regexp_to_string = __webpack_require__("25f0");
49143
49143
 
49144
+ // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
49145
+ var es_function_name = __webpack_require__("b0c0");
49146
+
49144
49147
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
49145
49148
  var es_array_map = __webpack_require__("d81d");
49146
49149
 
@@ -50137,6 +50140,10 @@ function (_super) {
50137
50140
  });
50138
50141
  };
50139
50142
 
50143
+ Service.prototype.copyApi = function (copyData) {
50144
+ return this._post("/unity/combine-info/copy", copyData);
50145
+ };
50146
+
50140
50147
  var _a, _b, _c, _d, _e, _f, _g, _h, _j;
50141
50148
 
50142
50149
  service_decorate([serviceHandler("query", {
@@ -50177,13 +50184,16 @@ function (_super) {
50177
50184
  showTip: true
50178
50185
  }), service_metadata("design:type", Function), service_metadata("design:paramtypes", [String, Number]), service_metadata("design:returntype", typeof (_j = typeof Promise !== "undefined" && Promise) === "function" ? _j : Object)], Service.prototype, "changeStatus", null);
50179
50186
 
50187
+ service_decorate([serviceHandler("save", {
50188
+ title: "复制接口",
50189
+ showErrorMsg: false,
50190
+ showTip: false
50191
+ }), service_metadata("design:type", Function), service_metadata("design:paramtypes", [Object]), service_metadata("design:returntype", void 0)], Service.prototype, "copyApi", null);
50192
+
50180
50193
  return Service;
50181
50194
  }(common_service);
50182
50195
 
50183
50196
  /* harmony default export */ var project_combine_service = (service_Service);
50184
- // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
50185
- var es_function_name = __webpack_require__("b0c0");
50186
-
50187
50197
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.set.js
50188
50198
  var es_set = __webpack_require__("6062");
50189
50199
 
@@ -51906,6 +51916,7 @@ function (_super) {
51906
51916
 
51907
51917
  if (res && !res.hasError) {
51908
51918
  this.data = res.result || [];
51919
+ this.$emit("on-tree-data", this.data);
51909
51920
  } // 默认选中第一个节点
51910
51921
 
51911
51922
 
@@ -52095,6 +52106,7 @@ var project_combine = __webpack_require__("da9a");
52095
52106
 
52096
52107
 
52097
52108
 
52109
+
52098
52110
  var project_combine_extends = undefined && undefined.__extends || function () {
52099
52111
  var _extendStatics = function extendStatics(d, b) {
52100
52112
  _extendStatics = Object.setPrototypeOf || {
@@ -52303,6 +52315,7 @@ var project_combine_generator = undefined && undefined.__generator || function (
52303
52315
 
52304
52316
 
52305
52317
 
52318
+
52306
52319
  var project_combine_ProjectCombineManage =
52307
52320
  /** @class */
52308
52321
  function (_super) {
@@ -52314,6 +52327,10 @@ function (_super) {
52314
52327
  _this.split = 0.2;
52315
52328
  _this.initNode = {};
52316
52329
  _this.currentNode = Object.create(null);
52330
+ _this.treeData = [];
52331
+ _this.showCopyModal = false;
52332
+ _this.copyData = {};
52333
+ _this.categoryData = {};
52317
52334
  _this.list = [];
52318
52335
  _this.selection = [];
52319
52336
  _this.columns = [{
@@ -52498,6 +52515,80 @@ function (_super) {
52498
52515
  });
52499
52516
  };
52500
52517
 
52518
+ ProjectCombineManage.prototype.onCopy = function (row) {
52519
+ var rowData = row.$clone();
52520
+ this.copyData = {
52521
+ id: rowData.id,
52522
+ code: rowData.code,
52523
+ name: rowData.name,
52524
+ categoryId: rowData.categoryId
52525
+ };
52526
+ this.categoryData.id = rowData.categoryId;
52527
+ this.copyData.name += "_copy";
52528
+ this.copyData.code += "_copy";
52529
+ this.showCopyModal = true;
52530
+ };
52531
+
52532
+ ProjectCombineManage.prototype.onCopyConfirm = function () {
52533
+ return project_combine_awaiter(this, void 0, void 0, function () {
52534
+ var result;
52535
+ return project_combine_generator(this, function (_a) {
52536
+ switch (_a.label) {
52537
+ case 0:
52538
+ if (!this.copyData.name) {
52539
+ return [2
52540
+ /*return*/
52541
+ , this.$message.warning("请填写接口名称")];
52542
+ } else if (!this.copyData.code) {
52543
+ return [2
52544
+ /*return*/
52545
+ , this.$message.warning("请填写接口编码")];
52546
+ } else if (!this.copyData.categoryId) {
52547
+ return [2
52548
+ /*return*/
52549
+ , this.$message.warning("请选择分组")];
52550
+ }
52551
+
52552
+ return [4
52553
+ /*yield*/
52554
+ , this.service.copyApi(this.copyData)];
52555
+
52556
+ case 1:
52557
+ result = _a.sent();
52558
+
52559
+ if (result && !result.hasError) {
52560
+ this.showCopyModal = false;
52561
+ this.doQuery();
52562
+ } else if (result && result.hasError && result.message) {
52563
+ return [2
52564
+ /*return*/
52565
+ , this.$message.error(result.message)];
52566
+ }
52567
+
52568
+ return [2
52569
+ /*return*/
52570
+ ];
52571
+ }
52572
+ });
52573
+ });
52574
+ };
52575
+
52576
+ ProjectCombineManage.prototype.onCopyCancel = function () {
52577
+ this.copyData = {};
52578
+ this.categoryData = {};
52579
+ this.showCopyModal = false;
52580
+ };
52581
+
52582
+ ProjectCombineManage.prototype.onTreeData = function (treeData) {
52583
+ this.treeData = treeData.$clone();
52584
+ };
52585
+
52586
+ ProjectCombineManage.prototype.selectCategory = function (node) {
52587
+ // 将所选的类型id付给当前类型的父id,实现修改分组
52588
+ this.categoryData = node;
52589
+ this.copyData.categoryId = node.id;
52590
+ };
52591
+
52501
52592
  ProjectCombineManage.prototype.onDelete = function (row) {
52502
52593
  return project_combine_awaiter(this, void 0, void 0, function () {
52503
52594
  var id, res;
@@ -52660,7 +52751,8 @@ function (_super) {
52660
52751
  template: __webpack_require__("ccf6"),
52661
52752
  components: {
52662
52753
  "u-type-tree": project_combine_tree,
52663
- "u-data-model-doc": data_model_data_model_doc
52754
+ "u-data-model-doc": data_model_data_model_doc,
52755
+ "u-tree-selector": project_combine_tree_selector
52664
52756
  }
52665
52757
  })], ProjectCombineManage);
52666
52758
  return ProjectCombineManage;