@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.common.js
CHANGED
|
@@ -41932,7 +41932,7 @@ module.exports = function (S, index, unicode) {
|
|
|
41932
41932
|
/***/ "8ab8":
|
|
41933
41933
|
/***/ (function(module, exports) {
|
|
41934
41934
|
|
|
41935
|
-
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"
|
|
41935
|
+
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"
|
|
41936
41936
|
|
|
41937
41937
|
/***/ }),
|
|
41938
41938
|
|
|
@@ -50785,9 +50785,19 @@ function (_super) {
|
|
|
50785
50785
|
class: "common-tree-node"
|
|
50786
50786
|
}, [isFolder ? h("i", {
|
|
50787
50787
|
// class: ["iconfont", data.expand ? "icon-expand" : "icon-unexpand"]
|
|
50788
|
-
class: this.isTreeList ? "iconfont icon-mulushu" : "iconfont icon-bumenkaohe"
|
|
50788
|
+
class: this.isTreeList ? "iconfont icon-mulushu" : "iconfont icon-bumenkaohe",
|
|
50789
|
+
on: {
|
|
50790
|
+
click: function click(e) {
|
|
50791
|
+
isFolder ? _this.clickParentNode(e, data) : _this.clickLeafNode(e, data);
|
|
50792
|
+
}
|
|
50793
|
+
}
|
|
50789
50794
|
}) : h("i", {
|
|
50790
|
-
class: "iconfont icon-file"
|
|
50795
|
+
class: "iconfont icon-file",
|
|
50796
|
+
on: {
|
|
50797
|
+
click: function click(e) {
|
|
50798
|
+
isFolder ? _this.clickParentNode(e, data) : _this.clickLeafNode(e, data);
|
|
50799
|
+
}
|
|
50800
|
+
}
|
|
50791
50801
|
}), h("p", {
|
|
50792
50802
|
on: {
|
|
50793
50803
|
click: function click(e) {
|
|
@@ -54578,7 +54588,7 @@ function (_super) {
|
|
|
54578
54588
|
|
|
54579
54589
|
DataModel.prototype.onSearch = function (searchCondition) {
|
|
54580
54590
|
this.condition = searchCondition;
|
|
54581
|
-
this.condition.categoryId = this.currentNode.id;
|
|
54591
|
+
this.condition.categoryId = this.currentNode.id === "virtual_root_directory" ? "" : this.currentNode.id;
|
|
54582
54592
|
this.paging.pageIndex = 1;
|
|
54583
54593
|
this.getTableData();
|
|
54584
54594
|
}; // 获取对应分组的表格数据
|
|
@@ -56088,7 +56098,7 @@ function (_super) {
|
|
|
56088
56098
|
|
|
56089
56099
|
ApiProject.prototype.onSearch = function (searchCondition) {
|
|
56090
56100
|
this.condition = searchCondition;
|
|
56091
|
-
this.condition.categoryId = this.currentNode.id;
|
|
56101
|
+
this.condition.categoryId = this.currentNode.id === "virtual_root_directory" ? "" : this.currentNode.id;
|
|
56092
56102
|
this.paging.pageIndex = 1;
|
|
56093
56103
|
this.getTableData();
|
|
56094
56104
|
}; // 获取对应分组的表格数据
|
|
@@ -60590,6 +60600,8 @@ var pre_execution_setting = __webpack_require__("d928");
|
|
|
60590
60600
|
|
|
60591
60601
|
|
|
60592
60602
|
|
|
60603
|
+
|
|
60604
|
+
|
|
60593
60605
|
var pre_execution_setting_extends = undefined && undefined.__extends || function () {
|
|
60594
60606
|
var _extendStatics = function extendStatics(d, b) {
|
|
60595
60607
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -60825,7 +60837,8 @@ function (_super) {
|
|
|
60825
60837
|
PreExecutionSetting.prototype.mounted = function () {
|
|
60826
60838
|
var _this = this;
|
|
60827
60839
|
|
|
60828
|
-
this.getScript();
|
|
60840
|
+
this.getScript(); // 监听最大化按钮的通信
|
|
60841
|
+
|
|
60829
60842
|
this.$subscribe("api://project-detail-max", function () {
|
|
60830
60843
|
_this.refreshEditor = !_this.refreshEditor;
|
|
60831
60844
|
|
|
@@ -60836,11 +60849,33 @@ function (_super) {
|
|
|
60836
60849
|
}, 5);
|
|
60837
60850
|
clearTimeout();
|
|
60838
60851
|
}
|
|
60852
|
+
}); // 获取代码编辑器滚动条
|
|
60853
|
+
|
|
60854
|
+
var scrollWrap = document.getElementsByClassName("ace_scrollbar")[0]; // 监听代码编辑器内容区滚动事件
|
|
60855
|
+
|
|
60856
|
+
scrollWrap.addEventListener("scroll", function () {
|
|
60857
|
+
var lineAll = document.getElementsByClassName("ace_gutter-cell");
|
|
60858
|
+
lineAll.forEach(function (h) {
|
|
60859
|
+
// 如果滚动的时候错误行代码在可视区,则实时将错误图标添加到该行号前
|
|
60860
|
+
if (_this.errorLine && (h === null || h === void 0 ? void 0 : h.innerHTML.includes(_this.errorLine))) {
|
|
60861
|
+
// 添加之前首先清除上一次的图标
|
|
60862
|
+
var lastText = document.getElementsByClassName("icon-a-cuowutishi1");
|
|
60863
|
+
|
|
60864
|
+
if (lastText === null || lastText === void 0 ? void 0 : lastText.length) {
|
|
60865
|
+
var parent = lastText[0].parentNode;
|
|
60866
|
+
parent.removeChild(lastText[0]);
|
|
60867
|
+
}
|
|
60868
|
+
|
|
60869
|
+
var errIcon = document.createElement("i");
|
|
60870
|
+
errIcon.className = "iconfont icon-a-cuowutishi1";
|
|
60871
|
+
h.insertBefore(errIcon, h.firstChild);
|
|
60872
|
+
}
|
|
60873
|
+
});
|
|
60839
60874
|
});
|
|
60840
60875
|
};
|
|
60841
60876
|
|
|
60842
60877
|
PreExecutionSetting.prototype.handleError = function (value) {
|
|
60843
|
-
var _this = this; // 通过定时器保证dom
|
|
60878
|
+
var _this = this; // 通过定时器保证dom节点已经渲染完毕,不然无法触发新增节点
|
|
60844
60879
|
|
|
60845
60880
|
|
|
60846
60881
|
setTimeout(function () {
|
|
@@ -60848,9 +60883,17 @@ function (_super) {
|
|
|
60848
60883
|
}, 5);
|
|
60849
60884
|
clearTimeout();
|
|
60850
60885
|
};
|
|
60886
|
+
/**
|
|
60887
|
+
* 添加错误行的错误图标
|
|
60888
|
+
* @param value 当前错误行
|
|
60889
|
+
* @returns
|
|
60890
|
+
*/
|
|
60891
|
+
|
|
60851
60892
|
|
|
60852
60893
|
PreExecutionSetting.prototype.displayError = function (value) {
|
|
60853
|
-
// 移除上一次的错误行图标
|
|
60894
|
+
var _this = this; // 移除上一次的错误行图标
|
|
60895
|
+
|
|
60896
|
+
|
|
60854
60897
|
var lastText = document.getElementsByClassName("icon-a-cuowutishi1");
|
|
60855
60898
|
|
|
60856
60899
|
if (lastText === null || lastText === void 0 ? void 0 : lastText.length) {
|
|
@@ -60859,10 +60902,24 @@ function (_super) {
|
|
|
60859
60902
|
}
|
|
60860
60903
|
|
|
60861
60904
|
if (value) {
|
|
60862
|
-
//
|
|
60863
|
-
var
|
|
60905
|
+
// 检查错误行是否在当前代码编辑器可视区
|
|
60906
|
+
var textAll = document.getElementsByClassName("ace_gutter-cell");
|
|
60907
|
+
var isView_1 = false;
|
|
60908
|
+
textAll === null || textAll === void 0 ? void 0 : textAll.forEach(function (h) {
|
|
60909
|
+
if (h === null || h === void 0 ? void 0 : h.innerHTML.includes(_this.errorLine)) {
|
|
60910
|
+
isView_1 = true;
|
|
60911
|
+
}
|
|
60912
|
+
}); // 如果当前错误行不在可视区则交由监听滚动去处理
|
|
60913
|
+
|
|
60914
|
+
if (!isView_1) {
|
|
60915
|
+
return;
|
|
60916
|
+
} // 给语法错误行新增提示图标
|
|
60917
|
+
|
|
60918
|
+
|
|
60919
|
+
var text = textAll[value - 1];
|
|
60864
60920
|
var errIcon = document.createElement("i");
|
|
60865
|
-
errIcon.className = "iconfont icon-a-cuowutishi1";
|
|
60921
|
+
errIcon.className = "iconfont icon-a-cuowutishi1"; // 将节点插入到子节点的首位
|
|
60922
|
+
|
|
60866
60923
|
text.insertBefore(errIcon, text.firstChild);
|
|
60867
60924
|
}
|
|
60868
60925
|
};
|
|
@@ -60890,6 +60947,7 @@ function (_super) {
|
|
|
60890
60947
|
this.tempScriptData = this.scriptData.$clone();
|
|
60891
60948
|
group = [];
|
|
60892
60949
|
(_b = this.scriptData) === null || _b === void 0 ? void 0 : _b.group.forEach(function (el) {
|
|
60950
|
+
if (el.name === "业务案例") return;
|
|
60893
60951
|
el.list.forEach(function (h) {
|
|
60894
60952
|
group.push({
|
|
60895
60953
|
meta: el.name,
|
|
@@ -60909,7 +60967,8 @@ function (_super) {
|
|
|
60909
60967
|
};
|
|
60910
60968
|
|
|
60911
60969
|
PreExecutionSetting.prototype.onClickItem = function (item) {
|
|
60912
|
-
this.
|
|
60970
|
+
this.editor.insert(item.code);
|
|
60971
|
+
this.editor.focus();
|
|
60913
60972
|
};
|
|
60914
60973
|
|
|
60915
60974
|
Object.defineProperty(PreExecutionSetting.prototype, "script", {
|
|
@@ -61633,6 +61692,10 @@ function (_super) {
|
|
|
61633
61692
|
if (this.response.code && this.response.code !== 200) {
|
|
61634
61693
|
this.active = this.responseSettingTypeList[4];
|
|
61635
61694
|
}
|
|
61695
|
+
|
|
61696
|
+
if (this.response.code && this.response.code === 200) {
|
|
61697
|
+
this.active = this.responseSettingTypeList[0];
|
|
61698
|
+
}
|
|
61636
61699
|
};
|
|
61637
61700
|
/**
|
|
61638
61701
|
* 由于最大化的情况下脚本编辑器大小会根据相应输出栏展开收起而自适应大小
|