@egova/egova-api 1.0.109 → 1.0.110
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
|
@@ -22619,7 +22619,7 @@ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
|
|
22619
22619
|
/***/ "193e":
|
|
22620
22620
|
/***/ (function(module, exports) {
|
|
22621
22621
|
|
|
22622
|
-
module.exports = "<article class=\"project-tree\">\
|
|
22622
|
+
module.exports = "<article class=\"project-tree\">\n <header>\n <i-input\n class=\"diy-input\"\n search\n v-model=\"keyword\"\n @on-search=\"onFilter\"\n placeholder=\"输入关键字搜索\"\n >\n <i-select\n transfer\n slot=\"prepend\"\n v-model=\"type\"\n @on-change=\"onFilter\"\n class=\"diy-select\"\n >\n <i-option\n v-for=\"item in typeList\"\n :key=\"item.value\"\n :value=\"item.value\"\n >{{item.text}}</i-option\n >\n </i-select>\n </i-input>\n <div class=\"add\" @click=\"onAddGroup\">\n <i class=\"api-icon icon-add\"></i>\n <span>新建分组</span>\n </div>\n </header>\n <i-tree :data=\"renderData\" :render=\"renderContent\"></i-tree>\n <i-modal\n draggable\n sticky\n reset-drag-position\n v-model=\"showGroupModal\"\n class=\"diy-modal\"\n :mask-closable=\"false\"\n transfer\n @on-ok=\"onSaveGroup\"\n :title=\"group.id ? '修改分组': '添加分组'\"\n >\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\n <i-form-item label=\"分组名称\">\n <i-input class=\"diy-input\" v-model=\"group.name\"></i-input>\n </i-form-item>\n <i-form-item label=\"分组位置\">\n <u-group-select\n :data=\"groupTree\"\n :current=\"parent\"\n @on-select=\"onSelectParent\"\n ></u-group-select>\n </i-form-item>\n </i-form>\n </i-modal>\n <i-modal\n draggable\n sticky\n reset-drag-position\n v-model=\"showInterfaceModal\"\n class=\"diy-modal\"\n :mask-closable=\"false\"\n :title=\"interfaceModel.id ? '修改接口': '添加接口'\"\n >\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\n <i-form-item label=\"接口名称\">\n <i-input\n class=\"diy-input\"\n v-model=\"interfaceModel.name\"\n ></i-input>\n </i-form-item>\n <i-form-item label=\"接口位置\">\n <u-group-select\n :data=\"groupTree\"\n :current=\"parent\"\n @on-select=\"onSelectParent\"\n ></u-group-select>\n </i-form-item>\n <i-form-item label=\"接口类型\">\n <i-select v-model=\"interfaceModel.method\" class=\"diy-select\" transfer>\n <i-option\n v-for=\"item in typeList\"\n v-if=\"item.value\"\n :key=\"item.value\"\n :value=\"item.value\"\n >{{item.text}}</i-option\n >\n </i-select>\n </i-form-item>\n </i-form>\n <footer slot=\"footer\">\n <i-button\n class=\"diy-btn-primary\"\n type=\"primary\"\n @click=\"onSaveInterface\"\n >确定</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onInterfaceCancel\">取消</i-button>\n </footer>\n </i-modal>\n <i-modal\n draggable\n sticky\n reset-drag-position\n v-model=\"showCopyModal\"\n class=\"diy-modal\"\n :mask-closable=\"false\"\n title=\"复制接口\"\n >\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\n <i-form-item label=\"接口名称\" required>\n <i-input\n class=\"diy-input\"\n v-model=\"copyName\"\n ></i-input>\n </i-form-item>\n <i-form-item label=\"选择分组\" required>\n <u-group-select\n isSelector=\"true\"\n :data=\"groupTree\"\n :current=\"parent\"\n @on-select=\"onSelectParent\"\n ></u-group-select>\n </i-form-item>\n </i-form>\n <footer slot=\"footer\">\n <i-button\n class=\"diy-btn-primary\"\n type=\"primary\"\n @click=\"onCopy\"\n >确定</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\n </footer>\n </i-modal>\n</article>\n"
|
|
22623
22623
|
|
|
22624
22624
|
/***/ }),
|
|
22625
22625
|
|
|
@@ -62372,7 +62372,7 @@ function (_super) {
|
|
|
62372
62372
|
id: data.parentId,
|
|
62373
62373
|
name: data.parentName
|
|
62374
62374
|
};
|
|
62375
|
-
this.interfaceModel = data;
|
|
62375
|
+
this.interfaceModel = data.$clone();
|
|
62376
62376
|
this.showInterfaceModal = true;
|
|
62377
62377
|
};
|
|
62378
62378
|
|
|
@@ -62500,6 +62500,7 @@ function (_super) {
|
|
|
62500
62500
|
|
|
62501
62501
|
if (this.interfaceModel.name && this.interfaceModel.name.length > 50) {
|
|
62502
62502
|
this.$message.error("接口名称长度不能超过50");
|
|
62503
|
+
this.showInterfaceModal = true;
|
|
62503
62504
|
return [2
|
|
62504
62505
|
/*return*/
|
|
62505
62506
|
];
|
|
@@ -62513,6 +62514,7 @@ function (_super) {
|
|
|
62513
62514
|
result = _a.sent();
|
|
62514
62515
|
|
|
62515
62516
|
if (result && !result.hasError) {
|
|
62517
|
+
this.showInterfaceModal = false;
|
|
62516
62518
|
this.init();
|
|
62517
62519
|
}
|
|
62518
62520
|
|
|
@@ -62524,6 +62526,10 @@ function (_super) {
|
|
|
62524
62526
|
});
|
|
62525
62527
|
};
|
|
62526
62528
|
|
|
62529
|
+
ProjectTree.prototype.onInterfaceCancel = function () {
|
|
62530
|
+
this.showInterfaceModal = false;
|
|
62531
|
+
};
|
|
62532
|
+
|
|
62527
62533
|
ProjectTree.prototype.onDeleteGroup = function (group) {
|
|
62528
62534
|
return project_detail_tree_awaiter(this, void 0, void 0, function () {
|
|
62529
62535
|
var result;
|
package/dist/index.umd.js
CHANGED
|
@@ -22628,7 +22628,7 @@ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
|
|
22628
22628
|
/***/ "193e":
|
|
22629
22629
|
/***/ (function(module, exports) {
|
|
22630
22630
|
|
|
22631
|
-
module.exports = "<article class=\"project-tree\">\
|
|
22631
|
+
module.exports = "<article class=\"project-tree\">\n <header>\n <i-input\n class=\"diy-input\"\n search\n v-model=\"keyword\"\n @on-search=\"onFilter\"\n placeholder=\"输入关键字搜索\"\n >\n <i-select\n transfer\n slot=\"prepend\"\n v-model=\"type\"\n @on-change=\"onFilter\"\n class=\"diy-select\"\n >\n <i-option\n v-for=\"item in typeList\"\n :key=\"item.value\"\n :value=\"item.value\"\n >{{item.text}}</i-option\n >\n </i-select>\n </i-input>\n <div class=\"add\" @click=\"onAddGroup\">\n <i class=\"api-icon icon-add\"></i>\n <span>新建分组</span>\n </div>\n </header>\n <i-tree :data=\"renderData\" :render=\"renderContent\"></i-tree>\n <i-modal\n draggable\n sticky\n reset-drag-position\n v-model=\"showGroupModal\"\n class=\"diy-modal\"\n :mask-closable=\"false\"\n transfer\n @on-ok=\"onSaveGroup\"\n :title=\"group.id ? '修改分组': '添加分组'\"\n >\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\n <i-form-item label=\"分组名称\">\n <i-input class=\"diy-input\" v-model=\"group.name\"></i-input>\n </i-form-item>\n <i-form-item label=\"分组位置\">\n <u-group-select\n :data=\"groupTree\"\n :current=\"parent\"\n @on-select=\"onSelectParent\"\n ></u-group-select>\n </i-form-item>\n </i-form>\n </i-modal>\n <i-modal\n draggable\n sticky\n reset-drag-position\n v-model=\"showInterfaceModal\"\n class=\"diy-modal\"\n :mask-closable=\"false\"\n :title=\"interfaceModel.id ? '修改接口': '添加接口'\"\n >\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\n <i-form-item label=\"接口名称\">\n <i-input\n class=\"diy-input\"\n v-model=\"interfaceModel.name\"\n ></i-input>\n </i-form-item>\n <i-form-item label=\"接口位置\">\n <u-group-select\n :data=\"groupTree\"\n :current=\"parent\"\n @on-select=\"onSelectParent\"\n ></u-group-select>\n </i-form-item>\n <i-form-item label=\"接口类型\">\n <i-select v-model=\"interfaceModel.method\" class=\"diy-select\" transfer>\n <i-option\n v-for=\"item in typeList\"\n v-if=\"item.value\"\n :key=\"item.value\"\n :value=\"item.value\"\n >{{item.text}}</i-option\n >\n </i-select>\n </i-form-item>\n </i-form>\n <footer slot=\"footer\">\n <i-button\n class=\"diy-btn-primary\"\n type=\"primary\"\n @click=\"onSaveInterface\"\n >确定</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onInterfaceCancel\">取消</i-button>\n </footer>\n </i-modal>\n <i-modal\n draggable\n sticky\n reset-drag-position\n v-model=\"showCopyModal\"\n class=\"diy-modal\"\n :mask-closable=\"false\"\n title=\"复制接口\"\n >\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\n <i-form-item label=\"接口名称\" required>\n <i-input\n class=\"diy-input\"\n v-model=\"copyName\"\n ></i-input>\n </i-form-item>\n <i-form-item label=\"选择分组\" required>\n <u-group-select\n isSelector=\"true\"\n :data=\"groupTree\"\n :current=\"parent\"\n @on-select=\"onSelectParent\"\n ></u-group-select>\n </i-form-item>\n </i-form>\n <footer slot=\"footer\">\n <i-button\n class=\"diy-btn-primary\"\n type=\"primary\"\n @click=\"onCopy\"\n >确定</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\n </footer>\n </i-modal>\n</article>\n"
|
|
22632
22632
|
|
|
22633
22633
|
/***/ }),
|
|
22634
22634
|
|
|
@@ -62381,7 +62381,7 @@ function (_super) {
|
|
|
62381
62381
|
id: data.parentId,
|
|
62382
62382
|
name: data.parentName
|
|
62383
62383
|
};
|
|
62384
|
-
this.interfaceModel = data;
|
|
62384
|
+
this.interfaceModel = data.$clone();
|
|
62385
62385
|
this.showInterfaceModal = true;
|
|
62386
62386
|
};
|
|
62387
62387
|
|
|
@@ -62509,6 +62509,7 @@ function (_super) {
|
|
|
62509
62509
|
|
|
62510
62510
|
if (this.interfaceModel.name && this.interfaceModel.name.length > 50) {
|
|
62511
62511
|
this.$message.error("接口名称长度不能超过50");
|
|
62512
|
+
this.showInterfaceModal = true;
|
|
62512
62513
|
return [2
|
|
62513
62514
|
/*return*/
|
|
62514
62515
|
];
|
|
@@ -62522,6 +62523,7 @@ function (_super) {
|
|
|
62522
62523
|
result = _a.sent();
|
|
62523
62524
|
|
|
62524
62525
|
if (result && !result.hasError) {
|
|
62526
|
+
this.showInterfaceModal = false;
|
|
62525
62527
|
this.init();
|
|
62526
62528
|
}
|
|
62527
62529
|
|
|
@@ -62533,6 +62535,10 @@ function (_super) {
|
|
|
62533
62535
|
});
|
|
62534
62536
|
};
|
|
62535
62537
|
|
|
62538
|
+
ProjectTree.prototype.onInterfaceCancel = function () {
|
|
62539
|
+
this.showInterfaceModal = false;
|
|
62540
|
+
};
|
|
62541
|
+
|
|
62536
62542
|
ProjectTree.prototype.onDeleteGroup = function (group) {
|
|
62537
62543
|
return project_detail_tree_awaiter(this, void 0, void 0, function () {
|
|
62538
62544
|
var result;
|