@egova/egova-api 1.0.204 → 1.0.208
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
|
@@ -41941,7 +41941,7 @@ module.exports = function (S, index, unicode) {
|
|
|
41941
41941
|
/***/ "8ab8":
|
|
41942
41942
|
/***/ (function(module, exports) {
|
|
41943
41943
|
|
|
41944
|
-
module.exports = "<article class=\"pre-execution-setting\">\r\n <section class=\"script\">\r\n <div class=\"script-title\">\r\n <div class=\"empty\"></div>\r\n <div class=\"script-btns\">\r\n <span @click=\"onViewMax\"><i class=\"iconfont icon-zuidahua1\"></i>{{viewMax ? \"还原显示\" : \"最大化\"}}</span>\r\n <span @click=\"onSave\"><i class=\"iconfont icon-baocun1\"></i>保存</span>\r\n <span @click=\"onRun\"><i class=\"iconfont icon-run1\"></i>RUN</span>\r\n </div>\r\n </div>\r\n <u-editor\r\n v-if=\"refreshEditor\"\r\n class=\"editor\"\r\n :model.sync=\"script\"\r\n :diyKeywordList=\"diyKeywordList\"\r\n lang=\"groovy\"\r\n >\r\n </u-editor>\r\n </section>\r\n <section class=\"quick-input\">\r\n <div class=\"info\">\r\n <p>{{scriptData.description}}</p>\r\n <!-- <ul>\r\n <li>request: 请求</li>\r\n </ul> -->\r\n </div>\r\n <i-input class=\"diy-input\" v-model=\"keyword\" @on-change=\"onFilter\" placeholder=\"输入关键字查询\">\r\n <i class=\"iconfont icon-chaxun\" slot=\"prefix\"></i>\r\n </i-input>\r\n <div class=\"quick-list\">\r\n <div v-for=\"type in tempScriptData.group\" class=\"quick-type\">\r\n <div class=\"quick-type-name\" @click=\"onQuickGroupClick(type)\">\r\n <i-icon type=\"md-arrow-dropright\" :class=\"type.expand ? 'expand' : ''\"/>\r\n <p>{{type.name}}</p>\r\n </div>\r\n <div\r\n v-show=\"type.expand\"\r\n v-for=\"item in type.list\"\r\n :key=\"item.name\"\r\n class=\"quick-item\"\r\n @click=\"onClickItem(item)\"\r\n >\r\n <i class=\"api-icon icon-item\"></i> {{item.name}}\r\n </div>\r\n </div>\r\n </div>\r\n </section>\r\n</article>\r\n"
|
|
41944
|
+
module.exports = "<article class=\"pre-execution-setting\">\r\n <section class=\"script\">\r\n <div class=\"script-title\">\r\n <div class=\"empty\"></div>\r\n <div class=\"script-btns\">\r\n <span @click=\"onViewMax\"><i class=\"iconfont icon-zuidahua1\"></i>{{viewMax ? \"还原显示\" : \"最大化\"}}</span>\r\n <span @click=\"onSave\"><i class=\"iconfont icon-baocun1\"></i>保存</span>\r\n <span @click=\"onRun\"><i class=\"iconfont icon-run1\"></i>RUN</span>\r\n </div>\r\n </div>\r\n <u-editor\r\n v-if=\"refreshEditor\"\r\n class=\"editor\"\r\n :model.sync=\"script\"\r\n :diyKeywordList=\"diyKeywordList\"\r\n lang=\"groovy\"\r\n @inited=\"onEditorInited\"\r\n >\r\n </u-editor>\r\n </section>\r\n <section class=\"quick-input\">\r\n <div class=\"info\">\r\n <p>{{scriptData.description}}</p>\r\n <!-- <ul>\r\n <li>request: 请求</li>\r\n </ul> -->\r\n </div>\r\n <i-input class=\"diy-input\" v-model=\"keyword\" @on-change=\"onFilter\" placeholder=\"输入关键字查询\">\r\n <i class=\"iconfont icon-chaxun\" slot=\"prefix\"></i>\r\n </i-input>\r\n <div class=\"quick-list\">\r\n <div v-for=\"type in tempScriptData.group\" class=\"quick-type\">\r\n <div class=\"quick-type-name\" @click=\"onQuickGroupClick(type)\">\r\n <i-icon type=\"md-arrow-dropright\" :class=\"type.expand ? 'expand' : ''\"/>\r\n <p>{{type.name}}</p>\r\n </div>\r\n <div\r\n v-show=\"type.expand\"\r\n v-for=\"item in type.list\"\r\n :key=\"item.name\"\r\n class=\"quick-item\"\r\n @click=\"onClickItem(item)\"\r\n >\r\n <i class=\"api-icon icon-item\"></i> {{item.name}}\r\n </div>\r\n </div>\r\n </div>\r\n </section>\r\n</article>\r\n"
|
|
41945
41945
|
|
|
41946
41946
|
/***/ }),
|
|
41947
41947
|
|
|
@@ -50794,9 +50794,19 @@ function (_super) {
|
|
|
50794
50794
|
class: "common-tree-node"
|
|
50795
50795
|
}, [isFolder ? h("i", {
|
|
50796
50796
|
// class: ["iconfont", data.expand ? "icon-expand" : "icon-unexpand"]
|
|
50797
|
-
class: this.isTreeList ? "iconfont icon-mulushu" : "iconfont icon-bumenkaohe"
|
|
50797
|
+
class: this.isTreeList ? "iconfont icon-mulushu" : "iconfont icon-bumenkaohe",
|
|
50798
|
+
on: {
|
|
50799
|
+
click: function click(e) {
|
|
50800
|
+
isFolder ? _this.clickParentNode(e, data) : _this.clickLeafNode(e, data);
|
|
50801
|
+
}
|
|
50802
|
+
}
|
|
50798
50803
|
}) : h("i", {
|
|
50799
|
-
class: "iconfont icon-file"
|
|
50804
|
+
class: "iconfont icon-file",
|
|
50805
|
+
on: {
|
|
50806
|
+
click: function click(e) {
|
|
50807
|
+
isFolder ? _this.clickParentNode(e, data) : _this.clickLeafNode(e, data);
|
|
50808
|
+
}
|
|
50809
|
+
}
|
|
50800
50810
|
}), h("p", {
|
|
50801
50811
|
on: {
|
|
50802
50812
|
click: function click(e) {
|
|
@@ -54587,7 +54597,7 @@ function (_super) {
|
|
|
54587
54597
|
|
|
54588
54598
|
DataModel.prototype.onSearch = function (searchCondition) {
|
|
54589
54599
|
this.condition = searchCondition;
|
|
54590
|
-
this.condition.categoryId = this.currentNode.id;
|
|
54600
|
+
this.condition.categoryId = this.currentNode.id === "virtual_root_directory" ? "" : this.currentNode.id;
|
|
54591
54601
|
this.paging.pageIndex = 1;
|
|
54592
54602
|
this.getTableData();
|
|
54593
54603
|
}; // 获取对应分组的表格数据
|
|
@@ -56097,7 +56107,7 @@ function (_super) {
|
|
|
56097
56107
|
|
|
56098
56108
|
ApiProject.prototype.onSearch = function (searchCondition) {
|
|
56099
56109
|
this.condition = searchCondition;
|
|
56100
|
-
this.condition.categoryId = this.currentNode.id;
|
|
56110
|
+
this.condition.categoryId = this.currentNode.id === "virtual_root_directory" ? "" : this.currentNode.id;
|
|
56101
56111
|
this.paging.pageIndex = 1;
|
|
56102
56112
|
this.getTableData();
|
|
56103
56113
|
}; // 获取对应分组的表格数据
|
|
@@ -60599,6 +60609,8 @@ var pre_execution_setting = __webpack_require__("d928");
|
|
|
60599
60609
|
|
|
60600
60610
|
|
|
60601
60611
|
|
|
60612
|
+
|
|
60613
|
+
|
|
60602
60614
|
var pre_execution_setting_extends = undefined && undefined.__extends || function () {
|
|
60603
60615
|
var _extendStatics = function extendStatics(d, b) {
|
|
60604
60616
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -60834,7 +60846,8 @@ function (_super) {
|
|
|
60834
60846
|
PreExecutionSetting.prototype.mounted = function () {
|
|
60835
60847
|
var _this = this;
|
|
60836
60848
|
|
|
60837
|
-
this.getScript();
|
|
60849
|
+
this.getScript(); // 监听最大化按钮的通信
|
|
60850
|
+
|
|
60838
60851
|
this.$subscribe("api://project-detail-max", function () {
|
|
60839
60852
|
_this.refreshEditor = !_this.refreshEditor;
|
|
60840
60853
|
|
|
@@ -60845,11 +60858,33 @@ function (_super) {
|
|
|
60845
60858
|
}, 5);
|
|
60846
60859
|
clearTimeout();
|
|
60847
60860
|
}
|
|
60861
|
+
}); // 获取代码编辑器滚动条
|
|
60862
|
+
|
|
60863
|
+
var scrollWrap = document.getElementsByClassName("ace_scrollbar")[0]; // 监听代码编辑器内容区滚动事件
|
|
60864
|
+
|
|
60865
|
+
scrollWrap.addEventListener("scroll", function () {
|
|
60866
|
+
var lineAll = document.getElementsByClassName("ace_gutter-cell");
|
|
60867
|
+
lineAll.forEach(function (h) {
|
|
60868
|
+
// 如果滚动的时候错误行代码在可视区,则实时将错误图标添加到该行号前
|
|
60869
|
+
if (_this.errorLine && (h === null || h === void 0 ? void 0 : h.innerHTML.includes(_this.errorLine))) {
|
|
60870
|
+
// 添加之前首先清除上一次的图标
|
|
60871
|
+
var lastText = document.getElementsByClassName("icon-a-cuowutishi1");
|
|
60872
|
+
|
|
60873
|
+
if (lastText === null || lastText === void 0 ? void 0 : lastText.length) {
|
|
60874
|
+
var parent = lastText[0].parentNode;
|
|
60875
|
+
parent.removeChild(lastText[0]);
|
|
60876
|
+
}
|
|
60877
|
+
|
|
60878
|
+
var errIcon = document.createElement("i");
|
|
60879
|
+
errIcon.className = "iconfont icon-a-cuowutishi1";
|
|
60880
|
+
h.insertBefore(errIcon, h.firstChild);
|
|
60881
|
+
}
|
|
60882
|
+
});
|
|
60848
60883
|
});
|
|
60849
60884
|
};
|
|
60850
60885
|
|
|
60851
60886
|
PreExecutionSetting.prototype.handleError = function (value) {
|
|
60852
|
-
var _this = this; // 通过定时器保证dom
|
|
60887
|
+
var _this = this; // 通过定时器保证dom节点已经渲染完毕,不然无法触发新增节点
|
|
60853
60888
|
|
|
60854
60889
|
|
|
60855
60890
|
setTimeout(function () {
|
|
@@ -60857,9 +60892,17 @@ function (_super) {
|
|
|
60857
60892
|
}, 5);
|
|
60858
60893
|
clearTimeout();
|
|
60859
60894
|
};
|
|
60895
|
+
/**
|
|
60896
|
+
* 添加错误行的错误图标
|
|
60897
|
+
* @param value 当前错误行
|
|
60898
|
+
* @returns
|
|
60899
|
+
*/
|
|
60900
|
+
|
|
60860
60901
|
|
|
60861
60902
|
PreExecutionSetting.prototype.displayError = function (value) {
|
|
60862
|
-
// 移除上一次的错误行图标
|
|
60903
|
+
var _this = this; // 移除上一次的错误行图标
|
|
60904
|
+
|
|
60905
|
+
|
|
60863
60906
|
var lastText = document.getElementsByClassName("icon-a-cuowutishi1");
|
|
60864
60907
|
|
|
60865
60908
|
if (lastText === null || lastText === void 0 ? void 0 : lastText.length) {
|
|
@@ -60868,10 +60911,24 @@ function (_super) {
|
|
|
60868
60911
|
}
|
|
60869
60912
|
|
|
60870
60913
|
if (value) {
|
|
60871
|
-
//
|
|
60872
|
-
var
|
|
60914
|
+
// 检查错误行是否在当前代码编辑器可视区
|
|
60915
|
+
var textAll = document.getElementsByClassName("ace_gutter-cell");
|
|
60916
|
+
var isView_1 = false;
|
|
60917
|
+
textAll === null || textAll === void 0 ? void 0 : textAll.forEach(function (h) {
|
|
60918
|
+
if (h === null || h === void 0 ? void 0 : h.innerHTML.includes(_this.errorLine)) {
|
|
60919
|
+
isView_1 = true;
|
|
60920
|
+
}
|
|
60921
|
+
}); // 如果当前错误行不在可视区则交由监听滚动去处理
|
|
60922
|
+
|
|
60923
|
+
if (!isView_1) {
|
|
60924
|
+
return;
|
|
60925
|
+
} // 给语法错误行新增提示图标
|
|
60926
|
+
|
|
60927
|
+
|
|
60928
|
+
var text = textAll[value - 1];
|
|
60873
60929
|
var errIcon = document.createElement("i");
|
|
60874
|
-
errIcon.className = "iconfont icon-a-cuowutishi1";
|
|
60930
|
+
errIcon.className = "iconfont icon-a-cuowutishi1"; // 将节点插入到子节点的首位
|
|
60931
|
+
|
|
60875
60932
|
text.insertBefore(errIcon, text.firstChild);
|
|
60876
60933
|
}
|
|
60877
60934
|
};
|
|
@@ -60899,6 +60956,7 @@ function (_super) {
|
|
|
60899
60956
|
this.tempScriptData = this.scriptData.$clone();
|
|
60900
60957
|
group = [];
|
|
60901
60958
|
(_b = this.scriptData) === null || _b === void 0 ? void 0 : _b.group.forEach(function (el) {
|
|
60959
|
+
if (el.name === "业务案例") return;
|
|
60902
60960
|
el.list.forEach(function (h) {
|
|
60903
60961
|
group.push({
|
|
60904
60962
|
meta: el.name,
|
|
@@ -60918,7 +60976,8 @@ function (_super) {
|
|
|
60918
60976
|
};
|
|
60919
60977
|
|
|
60920
60978
|
PreExecutionSetting.prototype.onClickItem = function (item) {
|
|
60921
|
-
this.
|
|
60979
|
+
this.editor.insert(item.code);
|
|
60980
|
+
this.editor.focus();
|
|
60922
60981
|
};
|
|
60923
60982
|
|
|
60924
60983
|
Object.defineProperty(PreExecutionSetting.prototype, "script", {
|
|
@@ -61642,6 +61701,10 @@ function (_super) {
|
|
|
61642
61701
|
if (this.response.code && this.response.code !== 200) {
|
|
61643
61702
|
this.active = this.responseSettingTypeList[4];
|
|
61644
61703
|
}
|
|
61704
|
+
|
|
61705
|
+
if (this.response.code && this.response.code === 200) {
|
|
61706
|
+
this.active = this.responseSettingTypeList[0];
|
|
61707
|
+
}
|
|
61645
61708
|
};
|
|
61646
61709
|
/**
|
|
61647
61710
|
* 由于最大化的情况下脚本编辑器大小会根据相应输出栏展开收起而自适应大小
|