@egova/egova-api 1.0.125 → 1.0.131
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
|
@@ -49153,6 +49153,7 @@ var es_array_concat = __webpack_require__("99af");
|
|
|
49153
49153
|
|
|
49154
49154
|
|
|
49155
49155
|
|
|
49156
|
+
|
|
49156
49157
|
var TreeDataUtil =
|
|
49157
49158
|
/** @class */
|
|
49158
49159
|
function () {
|
|
@@ -49206,6 +49207,34 @@ function () {
|
|
|
49206
49207
|
if (!filterEmpty || v.children.length) arr.push(v);
|
|
49207
49208
|
});
|
|
49208
49209
|
return arr;
|
|
49210
|
+
}; // 查找当前目录节点的完整路径
|
|
49211
|
+
|
|
49212
|
+
|
|
49213
|
+
TreeDataUtil.treeNodeDirectory = function (treeList, id) {
|
|
49214
|
+
if (treeList === void 0) {
|
|
49215
|
+
treeList = [];
|
|
49216
|
+
}
|
|
49217
|
+
|
|
49218
|
+
var directory = "";
|
|
49219
|
+
|
|
49220
|
+
for (var _i = 0, treeList_1 = treeList; _i < treeList_1.length; _i++) {
|
|
49221
|
+
var node = treeList_1[_i];
|
|
49222
|
+
|
|
49223
|
+
if (node.id === id) {
|
|
49224
|
+
directory = node.name;
|
|
49225
|
+
return directory;
|
|
49226
|
+
}
|
|
49227
|
+
|
|
49228
|
+
if (node.children && node.children.length) {
|
|
49229
|
+
directory = TreeDataUtil.treeNodeDirectory(node.children, id);
|
|
49230
|
+
|
|
49231
|
+
if (directory) {
|
|
49232
|
+
return node.name + "/" + directory;
|
|
49233
|
+
}
|
|
49234
|
+
}
|
|
49235
|
+
}
|
|
49236
|
+
|
|
49237
|
+
return "";
|
|
49209
49238
|
};
|
|
49210
49239
|
|
|
49211
49240
|
return TreeDataUtil;
|
|
@@ -50547,7 +50576,6 @@ function (_super) {
|
|
|
50547
50576
|
|
|
50548
50577
|
|
|
50549
50578
|
|
|
50550
|
-
|
|
50551
50579
|
var tree_selector_extends = undefined && undefined.__extends || function () {
|
|
50552
50580
|
var _extendStatics = function extendStatics(d, b) {
|
|
50553
50581
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -50620,8 +50648,9 @@ function (_super) {
|
|
|
50620
50648
|
|
|
50621
50649
|
var node = this.getNodeById(this.value, this.tree) || {}; // this.$set(node, "selected", true);
|
|
50622
50650
|
|
|
50623
|
-
this.current = node;
|
|
50624
|
-
|
|
50651
|
+
this.current = node; // this.inputValue = node.name || "";
|
|
50652
|
+
|
|
50653
|
+
this.inputValue = TreeDataUtil.treeNodeDirectory(this.tree, this.value) || "";
|
|
50625
50654
|
};
|
|
50626
50655
|
|
|
50627
50656
|
TreeSelectorComponent.prototype.renderContent = function (h, _a) {
|
|
@@ -51109,6 +51138,8 @@ function (_super) {
|
|
|
51109
51138
|
AddTreeNodeComponent.prototype.modalShow = function (nv) {
|
|
51110
51139
|
if (nv === false) {
|
|
51111
51140
|
this.categoryData = {};
|
|
51141
|
+
} else {
|
|
51142
|
+
this.categoryData.id = this.data.parentId;
|
|
51112
51143
|
}
|
|
51113
51144
|
};
|
|
51114
51145
|
|
|
@@ -63226,21 +63257,13 @@ function (_super) {
|
|
|
63226
63257
|
name: apiName
|
|
63227
63258
|
}, resume === "true");
|
|
63228
63259
|
}
|
|
63229
|
-
};
|
|
63230
|
-
|
|
63231
|
-
|
|
63232
|
-
|
|
63233
|
-
|
|
63234
|
-
|
|
63235
|
-
resume = _a.resume;
|
|
63260
|
+
}; // public activated() {
|
|
63261
|
+
// let { apiId, apiName, resume } = this.$route.query;
|
|
63262
|
+
// if (resume === "true") {
|
|
63263
|
+
// this.onCheckInterface({ id: apiId, name: apiName }, resume === "true");
|
|
63264
|
+
// }
|
|
63265
|
+
// }
|
|
63236
63266
|
|
|
63237
|
-
if (resume === "true") {
|
|
63238
|
-
this.onCheckInterface({
|
|
63239
|
-
id: apiId,
|
|
63240
|
-
name: apiName
|
|
63241
|
-
}, resume === "true");
|
|
63242
|
-
}
|
|
63243
|
-
};
|
|
63244
63267
|
|
|
63245
63268
|
ProjectDetail.prototype.onBack = function () {
|
|
63246
63269
|
this.$router.push({
|
package/dist/index.umd.js
CHANGED
|
@@ -49162,6 +49162,7 @@ var es_array_concat = __webpack_require__("99af");
|
|
|
49162
49162
|
|
|
49163
49163
|
|
|
49164
49164
|
|
|
49165
|
+
|
|
49165
49166
|
var TreeDataUtil =
|
|
49166
49167
|
/** @class */
|
|
49167
49168
|
function () {
|
|
@@ -49215,6 +49216,34 @@ function () {
|
|
|
49215
49216
|
if (!filterEmpty || v.children.length) arr.push(v);
|
|
49216
49217
|
});
|
|
49217
49218
|
return arr;
|
|
49219
|
+
}; // 查找当前目录节点的完整路径
|
|
49220
|
+
|
|
49221
|
+
|
|
49222
|
+
TreeDataUtil.treeNodeDirectory = function (treeList, id) {
|
|
49223
|
+
if (treeList === void 0) {
|
|
49224
|
+
treeList = [];
|
|
49225
|
+
}
|
|
49226
|
+
|
|
49227
|
+
var directory = "";
|
|
49228
|
+
|
|
49229
|
+
for (var _i = 0, treeList_1 = treeList; _i < treeList_1.length; _i++) {
|
|
49230
|
+
var node = treeList_1[_i];
|
|
49231
|
+
|
|
49232
|
+
if (node.id === id) {
|
|
49233
|
+
directory = node.name;
|
|
49234
|
+
return directory;
|
|
49235
|
+
}
|
|
49236
|
+
|
|
49237
|
+
if (node.children && node.children.length) {
|
|
49238
|
+
directory = TreeDataUtil.treeNodeDirectory(node.children, id);
|
|
49239
|
+
|
|
49240
|
+
if (directory) {
|
|
49241
|
+
return node.name + "/" + directory;
|
|
49242
|
+
}
|
|
49243
|
+
}
|
|
49244
|
+
}
|
|
49245
|
+
|
|
49246
|
+
return "";
|
|
49218
49247
|
};
|
|
49219
49248
|
|
|
49220
49249
|
return TreeDataUtil;
|
|
@@ -50556,7 +50585,6 @@ function (_super) {
|
|
|
50556
50585
|
|
|
50557
50586
|
|
|
50558
50587
|
|
|
50559
|
-
|
|
50560
50588
|
var tree_selector_extends = undefined && undefined.__extends || function () {
|
|
50561
50589
|
var _extendStatics = function extendStatics(d, b) {
|
|
50562
50590
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -50629,8 +50657,9 @@ function (_super) {
|
|
|
50629
50657
|
|
|
50630
50658
|
var node = this.getNodeById(this.value, this.tree) || {}; // this.$set(node, "selected", true);
|
|
50631
50659
|
|
|
50632
|
-
this.current = node;
|
|
50633
|
-
|
|
50660
|
+
this.current = node; // this.inputValue = node.name || "";
|
|
50661
|
+
|
|
50662
|
+
this.inputValue = TreeDataUtil.treeNodeDirectory(this.tree, this.value) || "";
|
|
50634
50663
|
};
|
|
50635
50664
|
|
|
50636
50665
|
TreeSelectorComponent.prototype.renderContent = function (h, _a) {
|
|
@@ -51118,6 +51147,8 @@ function (_super) {
|
|
|
51118
51147
|
AddTreeNodeComponent.prototype.modalShow = function (nv) {
|
|
51119
51148
|
if (nv === false) {
|
|
51120
51149
|
this.categoryData = {};
|
|
51150
|
+
} else {
|
|
51151
|
+
this.categoryData.id = this.data.parentId;
|
|
51121
51152
|
}
|
|
51122
51153
|
};
|
|
51123
51154
|
|
|
@@ -63235,21 +63266,13 @@ function (_super) {
|
|
|
63235
63266
|
name: apiName
|
|
63236
63267
|
}, resume === "true");
|
|
63237
63268
|
}
|
|
63238
|
-
};
|
|
63239
|
-
|
|
63240
|
-
|
|
63241
|
-
|
|
63242
|
-
|
|
63243
|
-
|
|
63244
|
-
resume = _a.resume;
|
|
63269
|
+
}; // public activated() {
|
|
63270
|
+
// let { apiId, apiName, resume } = this.$route.query;
|
|
63271
|
+
// if (resume === "true") {
|
|
63272
|
+
// this.onCheckInterface({ id: apiId, name: apiName }, resume === "true");
|
|
63273
|
+
// }
|
|
63274
|
+
// }
|
|
63245
63275
|
|
|
63246
|
-
if (resume === "true") {
|
|
63247
|
-
this.onCheckInterface({
|
|
63248
|
-
id: apiId,
|
|
63249
|
-
name: apiName
|
|
63250
|
-
}, resume === "true");
|
|
63251
|
-
}
|
|
63252
|
-
};
|
|
63253
63276
|
|
|
63254
63277
|
ProjectDetail.prototype.onBack = function () {
|
|
63255
63278
|
this.$router.push({
|