@egova/egova-api 1.0.112 → 1.0.115
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>\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\" :class=\"selection.length ? '' : 'icon-button-disabled'\" @click=\"onBatchDelete\">\n <i class=\"iconfont icon-delete\"></i>\n <span>批量删除</span>\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=\"onDetail(row)\" title=\"查看\" class=\"iconfont icon-detail\"></i>\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\" :class=\"selection.length ? '' : 'icon-button-disabled'\" @click=\"onBatchDelete\">\n <i class=\"iconfont icon-delete\"></i>\n <span>批量删除</span>\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=\"onDetail(row)\" title=\"查看\" class=\"iconfont icon-detail\"></i>\n <i @click.stop=\"onCopy(row)\" title=\"复制\" class=\"iconfont icon-fuzhi\"> </i>\n <template v-if=\"row.status!=='PUBLISHED'\">\n <i @click.stop=\"onEdit(row)\" title=\"编辑\" class=\"iconfont icon-edit\"></i>\n <i-poptip confirm transfer title=\"确认要删除这条数据吗?\" @on-ok=\"onDelete(row)\">\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\n </i-poptip>\n </template>\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 draggable sticky reset-drag-position v-model=\"showCopyModal\" class=\"diy-modal combine-copy-modal\" :mask-closable=\"false\" title=\"复制接口\">\n <i-form :label-width=\"100\" class=\"diy-form\" v-model=\"copyData\" label-colon>\n <i-form-item label=\"接口名称\" required>\n <i-input class=\"diy-input\" v-model=\"copyData.name\"></i-input>\n </i-form-item>\n <i-form-item label=\"接口编码\" required>\n <i-input class=\"diy-input\" v-model=\"copyData.code\"></i-input>\n </i-form-item>\n <i-form-item label=\"选择分组\" required>\n <u-tree-selector :treeData=\"treeData\" leaf-name=\"copy\" :canChooseFolder=\"true\" v-model=\"categoryData.id\" @on-select=\"selectCategory\"> </u-tree-selector>\n </i-form-item>\n </i-form>\n <footer slot=\"footer\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onCopyConfirm\">确定</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
|
|
|
@@ -50845,6 +50845,10 @@ function (_super) {
|
|
|
50845
50845
|
});
|
|
50846
50846
|
};
|
|
50847
50847
|
|
|
50848
|
+
Service.prototype.isCanExportModel = function (data) {
|
|
50849
|
+
return this._post("/unity/combine-info/export", data);
|
|
50850
|
+
};
|
|
50851
|
+
|
|
50848
50852
|
tree_service_decorate([serviceHandler("save", {
|
|
50849
50853
|
title: "保存",
|
|
50850
50854
|
showTip: false
|
|
@@ -51703,21 +51707,48 @@ function (_super) {
|
|
|
51703
51707
|
|
|
51704
51708
|
Tree.prototype.onModelExport = function (id) {
|
|
51705
51709
|
return tree_awaiter(this, void 0, void 0, function () {
|
|
51706
|
-
var queryModel;
|
|
51710
|
+
var queryModel, res;
|
|
51707
51711
|
return tree_generator(this, function (_a) {
|
|
51708
51712
|
switch (_a.label) {
|
|
51709
51713
|
case 0:
|
|
51714
|
+
if (this.data.length === 0) {
|
|
51715
|
+
return [2
|
|
51716
|
+
/*return*/
|
|
51717
|
+
];
|
|
51718
|
+
}
|
|
51719
|
+
|
|
51710
51720
|
queryModel = Object.create(null);
|
|
51711
51721
|
queryModel = {
|
|
51712
51722
|
categoryId: id ? id : null
|
|
51713
51723
|
};
|
|
51714
51724
|
return [4
|
|
51715
51725
|
/*yield*/
|
|
51716
|
-
, this.service.
|
|
51726
|
+
, this.service.isCanExportModel(queryModel)];
|
|
51717
51727
|
|
|
51718
51728
|
case 1:
|
|
51729
|
+
res = _a.sent();
|
|
51730
|
+
if (!(res && !res.hasError)) return [3
|
|
51731
|
+
/*break*/
|
|
51732
|
+
, 3];
|
|
51733
|
+
return [4
|
|
51734
|
+
/*yield*/
|
|
51735
|
+
, this.service.exportModel(queryModel)];
|
|
51736
|
+
|
|
51737
|
+
case 2:
|
|
51719
51738
|
_a.sent();
|
|
51720
51739
|
|
|
51740
|
+
return [3
|
|
51741
|
+
/*break*/
|
|
51742
|
+
, 4];
|
|
51743
|
+
|
|
51744
|
+
case 3:
|
|
51745
|
+
if (res && res.hasError) {
|
|
51746
|
+
this.$message.error(res.message);
|
|
51747
|
+
}
|
|
51748
|
+
|
|
51749
|
+
_a.label = 4;
|
|
51750
|
+
|
|
51751
|
+
case 4:
|
|
51721
51752
|
return [2
|
|
51722
51753
|
/*return*/
|
|
51723
51754
|
];
|
|
@@ -59832,17 +59863,28 @@ function (_super) {
|
|
|
59832
59863
|
Object.defineProperty(ResponsePanel.prototype, "cookies", {
|
|
59833
59864
|
get: function get() {
|
|
59834
59865
|
var cookies = this.response.responseHeaders["Set-Cookie"] || "";
|
|
59835
|
-
var arr = cookies.split(";").map(function (v) {
|
|
59836
|
-
var _a = v.split("="),
|
|
59837
|
-
key = _a[0],
|
|
59838
|
-
value = _a[1];
|
|
59839
59866
|
|
|
59840
|
-
|
|
59841
|
-
|
|
59842
|
-
|
|
59843
|
-
|
|
59844
|
-
|
|
59845
|
-
|
|
59867
|
+
if (cookies.$isArray()) {
|
|
59868
|
+
return cookies.map(function (value, key) {
|
|
59869
|
+
return {
|
|
59870
|
+
key: key,
|
|
59871
|
+
value: value
|
|
59872
|
+
};
|
|
59873
|
+
});
|
|
59874
|
+
} else if ((cookies === null || cookies === void 0 ? void 0 : cookies.length) > 0) {
|
|
59875
|
+
return cookies.split(";").map(function (v) {
|
|
59876
|
+
var _a = v.split("="),
|
|
59877
|
+
key = _a[0],
|
|
59878
|
+
value = _a[1];
|
|
59879
|
+
|
|
59880
|
+
return {
|
|
59881
|
+
key: key,
|
|
59882
|
+
value: value
|
|
59883
|
+
};
|
|
59884
|
+
});
|
|
59885
|
+
}
|
|
59886
|
+
|
|
59887
|
+
return undefined;
|
|
59846
59888
|
},
|
|
59847
59889
|
enumerable: false,
|
|
59848
59890
|
configurable: true
|
|
@@ -59861,18 +59903,7 @@ function (_super) {
|
|
|
59861
59903
|
v.num = obj.$isArray() ? obj.length : Object.keys(obj).length;
|
|
59862
59904
|
|
|
59863
59905
|
if (v.name === "cookies") {
|
|
59864
|
-
|
|
59865
|
-
var arr = cookies ? cookies.split(";").map(function (v) {
|
|
59866
|
-
var _a = v.split("="),
|
|
59867
|
-
key = _a[0],
|
|
59868
|
-
value = _a[1];
|
|
59869
|
-
|
|
59870
|
-
return {
|
|
59871
|
-
key: key,
|
|
59872
|
-
value: value
|
|
59873
|
-
};
|
|
59874
|
-
}) : [];
|
|
59875
|
-
v.num = arr.length;
|
|
59906
|
+
v.num = _this.cookies.length;
|
|
59876
59907
|
}
|
|
59877
59908
|
});
|
|
59878
59909
|
};
|