@egova/egova-api 1.0.148 → 1.0.151
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
|
@@ -21190,7 +21190,7 @@ exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDes
|
|
|
21190
21190
|
/***/ "07ab":
|
|
21191
21191
|
/***/ (function(module, exports) {
|
|
21192
21192
|
|
|
21193
|
-
module.exports = "<div class=\"u-tree-node\" @click=\"onClickNode\">\r\n <i class=\"iconfont\" :class=\"data.expand? 'icon-expand': 'icon-unexpand'\"></i>\r\n <div class=\"name\">{{data.name}}</div>\r\n <i-dropdown @on-click=\"onClick\" transfer transfer-class-name=\"node-oprate\">\r\n <i-icon type=\"ios-more\" />\r\n <i-dropdown-menu slot=\"list\">\r\n <i-dropdown-item v-for=\"item in actions\" :key=\"item.name\" :name=\"item.name\">\r\n <template v-if=\"item.name === 'import'\">\r\n <i-upload\r\n class=\"action-item\"\r\n :action=\"uploadAction\"\r\n :data=\"uploadParams\"\r\n accept=\".json\"\r\n :headers=\"headers\"\r\n :show-upload-list=\"false\"\r\n :format=\"['json']\"\r\n :on-success=\"onSuccess\"\r\n :before-upload=\"onBeforeUpload\"\r\n :on-format-error=\"onFormatError\"\r\n >\r\n <i title=\"导入\" class=\"iconfont icon-import\"></i>{{item.text}}\r\n </i-upload>\r\n </template>\r\n <template v-else> <i class=\"iconfont\" :class=\"'icon-' + (item.icon || item.name)\"></i>{{item.text}} </template>\r\n </i-dropdown-item>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n</div>\r\n"
|
|
21193
|
+
module.exports = "<div class=\"u-tree-node\" @click=\"onClickNode\">\r\n <i class=\"iconfont\" :class=\"data.expand? 'icon-expand': 'icon-unexpand'\"></i>\r\n <div class=\"name\">{{data.name}}</div>\r\n <i-dropdown @on-click=\"onClick\" transfer transfer-class-name=\"node-oprate\" v-if=\"data.id !== 'virtual_root_directory'\">\r\n <i-icon type=\"ios-more\" />\r\n <i-dropdown-menu slot=\"list\">\r\n <i-dropdown-item v-for=\"item in actions\" :key=\"item.name\" :name=\"item.name\">\r\n <template v-if=\"item.name === 'import'\">\r\n <i-upload\r\n class=\"action-item\"\r\n :action=\"uploadAction\"\r\n :data=\"uploadParams\"\r\n accept=\".json\"\r\n :headers=\"headers\"\r\n :show-upload-list=\"false\"\r\n :format=\"['json']\"\r\n :on-success=\"onSuccess\"\r\n :before-upload=\"onBeforeUpload\"\r\n :on-format-error=\"onFormatError\"\r\n >\r\n <i title=\"导入\" class=\"iconfont icon-import\"></i>{{item.text}}\r\n </i-upload>\r\n </template>\r\n <template v-else> <i class=\"iconfont\" :class=\"'icon-' + (item.icon || item.name)\"></i>{{item.text}} </template>\r\n </i-dropdown-item>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n</div>\r\n"
|
|
21194
21194
|
|
|
21195
21195
|
/***/ }),
|
|
21196
21196
|
|
|
@@ -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\" @on-tree-data=\"onTreeData\"> </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\" :class=\"selection.length ? '' : 'icon-button-disabled'\" @click=\"onBatchDelete\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n <span>批量删除</span>\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=\"onDetail(row)\" title=\"查看\" class=\"iconfont icon-detail\"></i>\r\n <i @click.stop=\"onCopy(row)\" title=\"复制\" class=\"iconfont icon-fuzhi\"> </i>\r\n <template v-if=\"row.status!=='PUBLISHED'\">\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 </template>\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 <i-modal draggable sticky reset-drag-position v-model=\"showCopyModal\" class=\"diy-modal combine-copy-modal\" :mask-closable=\"false\" title=\"复制接口\">\r\n <i-form :label-width=\"100\" class=\"diy-form\" v-model=\"copyData\" label-colon>\r\n <i-form-item label=\"接口名称\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"接口编码\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.code\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"选择分组\" required>\r\n <u-tree-selector :treeData=\"treeData\" leaf-name=\"copy\" :canChooseFolder=\"true\" v-model=\"categoryData.id\" @on-select=\"selectCategory\"> </u-tree-selector>\r\n </i-form-item>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onCopyConfirm\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n</article>\r\n"
|
|
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\" @on-tree-data=\"onTreeData\"> </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()\" :class=\"currentNode.id === 'virtual_root_directory' ? 'icon-button-disabled' : ''\">\r\n <i class=\"iconfont icon-add\"></i>\r\n <div>新增</div>\r\n </div>\r\n <div class=\"action-item action-text\" :class=\"selection.length ? '' : 'icon-button-disabled'\" @click=\"onBatchDelete\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n <span>批量删除</span>\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=\"onDetail(row)\" title=\"查看\" class=\"iconfont icon-detail\"></i>\r\n <i @click.stop=\"onCopy(row)\" title=\"复制\" class=\"iconfont icon-fuzhi\"> </i>\r\n <template v-if=\"row.status!=='PUBLISHED'\">\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 </template>\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 <i-modal draggable sticky reset-drag-position v-model=\"showCopyModal\" class=\"diy-modal combine-copy-modal\" :mask-closable=\"false\" title=\"复制接口\">\r\n <i-form :label-width=\"100\" class=\"diy-form\" v-model=\"copyData\" label-colon>\r\n <i-form-item label=\"接口名称\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"接口编码\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.code\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"选择分组\" required>\r\n <u-tree-selector :treeData=\"treeData\" leaf-name=\"copy\" :canChooseFolder=\"true\" v-model=\"categoryData.id\" @on-select=\"selectCategory\"> </u-tree-selector>\r\n </i-form-item>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onCopyConfirm\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n</article>\r\n"
|
|
46982
46982
|
|
|
46983
46983
|
/***/ }),
|
|
46984
46984
|
|
|
@@ -50677,6 +50677,11 @@ function (_super) {
|
|
|
50677
50677
|
|
|
50678
50678
|
TreeSelectorComponent.prototype.onTreeDataChange = function () {
|
|
50679
50679
|
this.tree = TreeDataUtil.handlerTreeData(this.treeData.$clone(), "name", this.leafName, undefined, this.filterEmpty);
|
|
50680
|
+
|
|
50681
|
+
if (this.tree && this.tree.length === 1 && this.tree[0].id === "virtual_root_directory") {
|
|
50682
|
+
this.tree[0].expand = true;
|
|
50683
|
+
}
|
|
50684
|
+
|
|
50680
50685
|
this.onValueChange(this.value);
|
|
50681
50686
|
};
|
|
50682
50687
|
|
|
@@ -51170,7 +51175,7 @@ function (_super) {
|
|
|
51170
51175
|
AddTreeNodeComponent.prototype.selectCategory = function (node) {
|
|
51171
51176
|
// 将所选的类型id付给当前类型的父id,实现修改分组
|
|
51172
51177
|
this.categoryData = node;
|
|
51173
|
-
this.data.parentId = this.categoryData.id;
|
|
51178
|
+
this.data.parentId = this.categoryData.id === "virtual_root_directory" ? "" : this.categoryData.id;
|
|
51174
51179
|
};
|
|
51175
51180
|
|
|
51176
51181
|
AddTreeNodeComponent.prototype.onCancel = function () {
|
|
@@ -51199,6 +51204,10 @@ function (_super) {
|
|
|
51199
51204
|
, this.$message.warning("所属分组不能选中自身")];
|
|
51200
51205
|
}
|
|
51201
51206
|
|
|
51207
|
+
if (this.data.parentId === "virtual_root_directory") {
|
|
51208
|
+
this.data.parentId = "";
|
|
51209
|
+
}
|
|
51210
|
+
|
|
51202
51211
|
return [4
|
|
51203
51212
|
/*yield*/
|
|
51204
51213
|
, this.service.saveNode(this.data)];
|
|
@@ -51473,6 +51482,7 @@ var tree = __webpack_require__("44c1");
|
|
|
51473
51482
|
|
|
51474
51483
|
|
|
51475
51484
|
|
|
51485
|
+
|
|
51476
51486
|
var tree_extends = undefined && undefined.__extends || function () {
|
|
51477
51487
|
var _extendStatics = function extendStatics(d, b) {
|
|
51478
51488
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -51702,6 +51712,7 @@ function (_super) {
|
|
|
51702
51712
|
type: _this.type,
|
|
51703
51713
|
parentId: null
|
|
51704
51714
|
};
|
|
51715
|
+
_this.tempData = [];
|
|
51705
51716
|
_this.showImportModal = false;
|
|
51706
51717
|
_this.importResult = {}; // 表头信息
|
|
51707
51718
|
|
|
@@ -52107,8 +52118,28 @@ function (_super) {
|
|
|
52107
52118
|
res = _a.sent();
|
|
52108
52119
|
|
|
52109
52120
|
if (res && !res.hasError) {
|
|
52110
|
-
this.
|
|
52111
|
-
|
|
52121
|
+
this.tempData = res.result || [];
|
|
52122
|
+
|
|
52123
|
+
if (this.tempData.length > 0) {
|
|
52124
|
+
this.tempData.forEach(function (item) {
|
|
52125
|
+
if (!item.parentId) {
|
|
52126
|
+
item.parentId = "virtual_root_directory";
|
|
52127
|
+
}
|
|
52128
|
+
});
|
|
52129
|
+
this.data = [tree_assign(tree_assign({}, this.tempData[0]), {
|
|
52130
|
+
id: "virtual_root_directory",
|
|
52131
|
+
// id: "",
|
|
52132
|
+
children: this.tempData,
|
|
52133
|
+
jobs: [],
|
|
52134
|
+
name: "全部",
|
|
52135
|
+
expand: true,
|
|
52136
|
+
parentId: null,
|
|
52137
|
+
parentName: null
|
|
52138
|
+
})];
|
|
52139
|
+
this.onToggleExpand(this.data[0]);
|
|
52140
|
+
}
|
|
52141
|
+
|
|
52142
|
+
this.$emit("on-tree-data", this.tempData);
|
|
52112
52143
|
} // 默认选中第一个节点
|
|
52113
52144
|
|
|
52114
52145
|
|
|
@@ -52638,7 +52669,7 @@ function (_super) {
|
|
|
52638
52669
|
this.loading = true;
|
|
52639
52670
|
queryModel = Object.create(null);
|
|
52640
52671
|
queryModel.condition = project_combine_assign(project_combine_assign({}, this.formData), {
|
|
52641
|
-
categoryId: (_b = this.currentNode) === null || _b === void 0 ? void 0 : _b.id
|
|
52672
|
+
categoryId: ((_b = this.currentNode) === null || _b === void 0 ? void 0 : _b.id) === "virtual_root_directory" ? "" : this.currentNode.id
|
|
52642
52673
|
});
|
|
52643
52674
|
queryModel.paging = this.paging;
|
|
52644
52675
|
return [4
|
|
@@ -52690,22 +52721,30 @@ function (_super) {
|
|
|
52690
52721
|
};
|
|
52691
52722
|
|
|
52692
52723
|
ProjectCombineManage.prototype.onAdd = function (id, isEdit) {
|
|
52724
|
+
var _a;
|
|
52725
|
+
|
|
52693
52726
|
if (isEdit === void 0) {
|
|
52694
52727
|
isEdit = true;
|
|
52695
52728
|
}
|
|
52696
52729
|
|
|
52697
52730
|
return project_combine_awaiter(this, void 0, void 0, function () {
|
|
52698
|
-
var
|
|
52731
|
+
var _b;
|
|
52732
|
+
|
|
52733
|
+
return project_combine_generator(this, function (_c) {
|
|
52734
|
+
if (((_a = this.currentNode) === null || _a === void 0 ? void 0 : _a.id) === "virtual_root_directory") {
|
|
52735
|
+
return [2
|
|
52736
|
+
/*return*/
|
|
52737
|
+
];
|
|
52738
|
+
}
|
|
52699
52739
|
|
|
52700
|
-
return project_combine_generator(this, function (_b) {
|
|
52701
52740
|
this.$router.push({
|
|
52702
52741
|
replace: true,
|
|
52703
52742
|
name: "combine-add",
|
|
52704
|
-
query: (
|
|
52743
|
+
query: (_b = {
|
|
52705
52744
|
isEdit: isEdit ? "1" : "0",
|
|
52706
52745
|
id: id !== null && id !== void 0 ? id : "",
|
|
52707
52746
|
categoryId: this.currentNode.id
|
|
52708
|
-
},
|
|
52747
|
+
}, _b["_".concat(id ? "edit" : "add")] = Date.now().toString(), _b)
|
|
52709
52748
|
});
|
|
52710
52749
|
return [2
|
|
52711
52750
|
/*return*/
|
|
@@ -61077,7 +61116,7 @@ function (_super) {
|
|
|
61077
61116
|
text: "",
|
|
61078
61117
|
type: "QueryString",
|
|
61079
61118
|
valueContent: "",
|
|
61080
|
-
disabled:
|
|
61119
|
+
disabled: false
|
|
61081
61120
|
});
|
|
61082
61121
|
};
|
|
61083
61122
|
|
|
@@ -61087,7 +61126,7 @@ function (_super) {
|
|
|
61087
61126
|
text: "",
|
|
61088
61127
|
type: this.typeMap[this.bodyType],
|
|
61089
61128
|
valueContent: "",
|
|
61090
|
-
disabled:
|
|
61129
|
+
disabled: false
|
|
61091
61130
|
});
|
|
61092
61131
|
};
|
|
61093
61132
|
|