@egova/egova-api 1.0.135 → 1.0.138
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 +16 -49
- package/dist/index.css +1 -1
- package/dist/index.umd.js +16 -49
- package/dist/index.umd.min.js +3 -3
- package/dist/types/src/views/project-detail/index.d.ts +1 -0
- package/package.json +2 -2
package/dist/index.umd.js
CHANGED
|
@@ -40445,7 +40445,7 @@ module.exports = function (argument) {
|
|
|
40445
40445
|
/***/ "82af":
|
|
40446
40446
|
/***/ (function(module, exports) {
|
|
40447
40447
|
|
|
40448
|
-
module.exports = "<div class=\"v-data-modal-list-container\">\r\n <header>\r\n <div class=\"condition\">\r\n <div class=\"input-item\">\r\n <span>名称:</span>\r\n <i-input class=\"diy-input\" placeholder=\"请输入名称\" v-model=\"condition.name\" @on-enter=\"onSearch\"></i-input>\r\n </div>\r\n <div class=\"input-item\">\r\n <span>编码:</span>\r\n <i-input class=\"diy-input\" placeholder=\"请输入编码\" v-model=\"condition.code\" @on-enter=\"onSearch\"></i-input>\r\n </div>\r\n <div class=\"search-btn\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onSearch\">查询</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onEmpty\">重置</i-button>\r\n </div>\r\n </div>\r\n </header>\r\n <main>\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"data\" @on-selection-change=\"onSelected\">\r\n <template slot=\"enableCache\" slot-scope=\"{row}\">\r\n <span>{{row.enableCache === true ? \"是\" : \"否\"}}</span>\r\n </template>\r\n <template slot=\"doc\" slot-scope=\"{row}\">\r\n <a @click=\"onOpenDoc(row)\">查看</a>\r\n </template>\r\n </i-table>\r\n </main>\r\n <div class=\"pagination\">\r\n <i-page class=\"diy-page\" :total=\"page.totalCount\" @on-change=\"onPageIndexChange\" @on-page-size-change=\"onPageSizeChange\"
|
|
40448
|
+
module.exports = "<div class=\"v-data-modal-list-container\">\r\n <header>\r\n <div class=\"condition\">\r\n <div class=\"input-item\">\r\n <span>名称:</span>\r\n <i-input class=\"diy-input\" placeholder=\"请输入名称\" v-model=\"condition.name\" @on-enter=\"onSearch\"></i-input>\r\n </div>\r\n <div class=\"input-item\">\r\n <span>编码:</span>\r\n <i-input class=\"diy-input\" placeholder=\"请输入编码\" v-model=\"condition.code\" @on-enter=\"onSearch\"></i-input>\r\n </div>\r\n <div class=\"search-btn\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onSearch\">查询</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onEmpty\">重置</i-button>\r\n </div>\r\n </div>\r\n </header>\r\n <main>\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"data\" @on-selection-change=\"onSelected\">\r\n <template slot=\"enableCache\" slot-scope=\"{row}\">\r\n <span>{{row.enableCache === true ? \"是\" : \"否\"}}</span>\r\n </template>\r\n <template slot=\"doc\" slot-scope=\"{row}\">\r\n <a @click=\"onOpenDoc(row)\">查看</a>\r\n </template>\r\n </i-table>\r\n </main>\r\n <div class=\"pagination\">\r\n <i-page class=\"diy-page\" :total=\"page.totalCount\" @on-change=\"onPageIndexChange\" @on-page-size-change=\"onPageSizeChange\" show-elevator show-total show-sizer> </i-page>\r\n </div>\r\n <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\r\n</div>\r\n"
|
|
40449
40449
|
|
|
40450
40450
|
/***/ }),
|
|
40451
40451
|
|
|
@@ -42054,7 +42054,7 @@ dom.importCssString(exports.cssText, exports.cssClass);
|
|
|
42054
42054
|
/***/ "981a":
|
|
42055
42055
|
/***/ (function(module, exports) {
|
|
42056
42056
|
|
|
42057
|
-
module.exports = "<div class=\"v-api-project-list-container\">\r\n <header>\r\n <div class=\"condition\">\r\n <div class=\"input-item\">\r\n <span>名称:</span>\r\n <i-input class=\"diy-input\" placeholder=\"请输入名称\" v-model=\"condition.name\" @on-enter=\"onSearch\"></i-input>\r\n </div>\r\n <div class=\"input-item\">\r\n <span>地址:</span>\r\n <i-input class=\"diy-input\" placeholder=\"请输入地址\" v-model=\"condition.url\" @on-enter=\"onSearch\"></i-input>\r\n </div>\r\n <div class=\"search-btn\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onSearch\">查询</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onEmpty\">重置</i-button>\r\n </div>\r\n </div>\r\n </header>\r\n <main>\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"data\" @on-selection-change=\"onSelected\">\r\n <template slot=\"detail\" slot-scope=\"{row}\">\r\n <a @click=\"onDetail(row)\">查看</a>\r\n </template>\r\n </i-table>\r\n </main>\r\n <div class=\"pagination\">\r\n <i-page class=\"diy-page\" :total=\"page.totalCount\" @on-change=\"onPageIndexChange\" @on-page-size-change=\"onPageSizeChange\"
|
|
42057
|
+
module.exports = "<div class=\"v-api-project-list-container\">\r\n <header>\r\n <div class=\"condition\">\r\n <div class=\"input-item\">\r\n <span>名称:</span>\r\n <i-input class=\"diy-input\" placeholder=\"请输入名称\" v-model=\"condition.name\" @on-enter=\"onSearch\"></i-input>\r\n </div>\r\n <div class=\"input-item\">\r\n <span>地址:</span>\r\n <i-input class=\"diy-input\" placeholder=\"请输入地址\" v-model=\"condition.url\" @on-enter=\"onSearch\"></i-input>\r\n </div>\r\n <div class=\"search-btn\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onSearch\">查询</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onEmpty\">重置</i-button>\r\n </div>\r\n </div>\r\n </header>\r\n <main>\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"data\" @on-selection-change=\"onSelected\">\r\n <template slot=\"detail\" slot-scope=\"{row}\">\r\n <a @click=\"onDetail(row)\">查看</a>\r\n </template>\r\n </i-table>\r\n </main>\r\n <div class=\"pagination\">\r\n <i-page class=\"diy-page\" :total=\"page.totalCount\" @on-change=\"onPageIndexChange\" @on-page-size-change=\"onPageSizeChange\" show-elevator show-total show-sizer> </i-page>\r\n </div>\r\n <u-api-project-detail :visiable.sync=\"detailShow\" :model=\"detail\"></u-api-project-detail>\r\n</div>\r\n"
|
|
42058
42058
|
|
|
42059
42059
|
/***/ }),
|
|
42060
42060
|
|
|
@@ -47204,7 +47204,7 @@ module.exports = /ipad|iphone|ipod/i.test(userAgent) && global.Pebble !== undefi
|
|
|
47204
47204
|
/***/ "d63e":
|
|
47205
47205
|
/***/ (function(module, exports) {
|
|
47206
47206
|
|
|
47207
|
-
module.exports = "<article class=\"project-detail\">\r\n <header>\r\n <div class=\"environment\">\r\n <p>{{projectName}}</p>\r\n <!-- <span>环境变量:</span> -->\r\n <!-- <i-select class=\"diy-select\"></i-select> -->\r\n </div>\r\n <div class=\"btns\">\r\n <!-- <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onOpenGlobalModal\"> <i class=\"api-icon icon-setting\"></i>全局参数设置</i-button> -->\r\n <!-- <i-button type=\"success\" ghost class=\"diy-btn-success\" @click=\"onOpenCurrentModal\"><i class=\"api-icon icon-view\"></i>查看当前变量</i-button> -->\r\n <i-button type=\"primary\" class=\"diy-btn-primary button-back\" ghost icon=\"md-return-left\" @click=\"onBack\">返回列表</i-button>\r\n <i-button v-show=\"active.id\" type=\"primary\" class=\"diy-btn-primary\" ghost @click=\"onToggleLayout\"><i class=\"api-icon icon-switch\"></i>切换布局</i-button>\r\n </div>\r\n </header>\r\n <!-- <main> -->\r\n <i-split v-model=\"split\" min=\"200px\" max=\"900px\">\r\n <u-tree slot=\"left\" @on-check-interface=\"onCheckInterface\" :project-id=\"projectId\"></u-tree>\r\n <section slot=\"right\" class=\"interface-box\">\r\n <header class=\"interface-bar\">\r\n <swiper class=\"swiper\" :options=\"swiperOption\" @click-slide=\"onClickSlide\" @ready=\"onSwiperReadied\">\r\n <swiper-slide class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\"\r\n ><span>{{item.name}}</span> <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon\r\n ></swiper-slide>\r\n </swiper>\r\n <!-- <div class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\">\r\n <span>{{item.name}}</span>\r\n <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon>\r\n </div> -->\r\n </header>\r\n <u-settings :interface-model.sync=\"active\" :project-id=\"projectId\" v-if=\"active.id\" :lengthwise=\"lengthwise\"></u-settings>\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 <!-- </main> -->\r\n <u-global-modal :visiable.sync=\"showGlobalModal\">\r\n <footer slot=\"footer\">\r\n <i-button @click=\"showGlobalModal = false\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\">确定</i-button>\r\n </footer>\r\n </u-global-modal>\r\n <u-current-modal :visiable.sync=\"showCurrentModal\"> </u-current-modal>\r\n</article>\r\n"
|
|
47207
|
+
module.exports = "<article class=\"project-detail\">\r\n <header>\r\n <div class=\"environment\">\r\n <p>{{projectName}}</p>\r\n <!-- <span>环境变量:</span> -->\r\n <!-- <i-select class=\"diy-select\"></i-select> -->\r\n </div>\r\n <div class=\"btns\">\r\n <!-- <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onOpenGlobalModal\"> <i class=\"api-icon icon-setting\"></i>全局参数设置</i-button> -->\r\n <!-- <i-button type=\"success\" ghost class=\"diy-btn-success\" @click=\"onOpenCurrentModal\"><i class=\"api-icon icon-view\"></i>查看当前变量</i-button> -->\r\n <i-button type=\"primary\" class=\"diy-btn-primary button-back\" ghost icon=\"md-return-left\" @click=\"onBack\">返回列表</i-button>\r\n <i-button v-show=\"active.id\" type=\"primary\" class=\"diy-btn-primary\" ghost @click=\"onToggleLayout\"><i class=\"api-icon icon-switch\"></i>切换布局</i-button>\r\n </div>\r\n </header>\r\n <!-- <main> -->\r\n <i-split v-model=\"split\" min=\"200px\" max=\"900px\">\r\n <u-tree slot=\"left\" @on-check-interface=\"onCheckInterface\" @on-edit-interface-success=\"onEditInterfaceSuccess\" :project-id=\"projectId\"></u-tree>\r\n <section slot=\"right\" class=\"interface-box\">\r\n <header class=\"interface-bar\">\r\n <swiper class=\"swiper\" :options=\"swiperOption\" @click-slide=\"onClickSlide\" @ready=\"onSwiperReadied\">\r\n <swiper-slide class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\"\r\n ><span>{{item.name}}</span> <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon\r\n ></swiper-slide>\r\n </swiper>\r\n <!-- <div class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\">\r\n <span>{{item.name}}</span>\r\n <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon>\r\n </div> -->\r\n </header>\r\n <u-settings :interface-model.sync=\"active\" :project-id=\"projectId\" v-if=\"active.id\" :lengthwise=\"lengthwise\"></u-settings>\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 <!-- </main> -->\r\n <u-global-modal :visiable.sync=\"showGlobalModal\">\r\n <footer slot=\"footer\">\r\n <i-button @click=\"showGlobalModal = false\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\">确定</i-button>\r\n </footer>\r\n </u-global-modal>\r\n <u-current-modal :visiable.sync=\"showCurrentModal\"> </u-current-modal>\r\n</article>\r\n"
|
|
47208
47208
|
|
|
47209
47209
|
/***/ }),
|
|
47210
47210
|
|
|
@@ -53529,7 +53529,6 @@ var data_model = __webpack_require__("a121");
|
|
|
53529
53529
|
|
|
53530
53530
|
|
|
53531
53531
|
|
|
53532
|
-
|
|
53533
53532
|
var data_model_extends = undefined && undefined.__extends || function () {
|
|
53534
53533
|
var _extendStatics = function extendStatics(d, b) {
|
|
53535
53534
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -53961,27 +53960,12 @@ function (_super) {
|
|
|
53961
53960
|
|
|
53962
53961
|
|
|
53963
53962
|
DataModel.prototype.onSelectionChange = function (rows) {
|
|
53964
|
-
rows.forEach(function (r) {
|
|
53965
|
-
return r._checked = true;
|
|
53966
|
-
});
|
|
53967
|
-
this.tableData.forEach(function (t) {
|
|
53968
|
-
for (var _i = 0, rows_1 = rows; _i < rows_1.length; _i++) {
|
|
53969
|
-
var row = rows_1[_i];
|
|
53970
|
-
|
|
53971
|
-
if (t.typeId === row.typeId) {
|
|
53972
|
-
return t._checked = true;
|
|
53973
|
-
}
|
|
53974
|
-
}
|
|
53975
|
-
|
|
53976
|
-
return t._checked = false;
|
|
53977
|
-
});
|
|
53978
53963
|
this.checkedData = data_model_spreadArray(data_model_spreadArray([], this.lastCheckedData, true), rows, true);
|
|
53979
53964
|
}; // 清空已选数据
|
|
53980
53965
|
|
|
53981
53966
|
|
|
53982
53967
|
DataModel.prototype.onBatchDelete = function () {
|
|
53983
53968
|
this.checkedData = [];
|
|
53984
|
-
this.lastCheckedData = [];
|
|
53985
53969
|
this.tableData = this.tableData.map(function (t) {
|
|
53986
53970
|
return data_model_assign(data_model_assign({}, t), {
|
|
53987
53971
|
_checked: false
|
|
@@ -53994,13 +53978,8 @@ function (_super) {
|
|
|
53994
53978
|
this.checkedData = this.checkedData.filter(function (c) {
|
|
53995
53979
|
return c.typeId !== row.typeId;
|
|
53996
53980
|
});
|
|
53997
|
-
this.
|
|
53998
|
-
return
|
|
53999
|
-
});
|
|
54000
|
-
this.tableData.forEach(function (t) {
|
|
54001
|
-
if (t.typeId === row.typeId) {
|
|
54002
|
-
t._checked = false;
|
|
54003
|
-
}
|
|
53981
|
+
this.tableData = this.tableData.filter(function (t) {
|
|
53982
|
+
return t.typeId !== row.typeId;
|
|
54004
53983
|
});
|
|
54005
53984
|
}; // 点击展开收起
|
|
54006
53985
|
|
|
@@ -55006,7 +54985,6 @@ var api_project = __webpack_require__("eb57");
|
|
|
55006
54985
|
|
|
55007
54986
|
|
|
55008
54987
|
|
|
55009
|
-
|
|
55010
54988
|
var api_project_extends = undefined && undefined.__extends || function () {
|
|
55011
54989
|
var _extendStatics = function extendStatics(d, b) {
|
|
55012
54990
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -55437,27 +55415,12 @@ function (_super) {
|
|
|
55437
55415
|
|
|
55438
55416
|
|
|
55439
55417
|
ApiProject.prototype.onSelectionChange = function (rows) {
|
|
55440
|
-
rows.forEach(function (r) {
|
|
55441
|
-
return r._checked = true;
|
|
55442
|
-
});
|
|
55443
|
-
this.tableData.forEach(function (t) {
|
|
55444
|
-
for (var _i = 0, rows_1 = rows; _i < rows_1.length; _i++) {
|
|
55445
|
-
var row = rows_1[_i];
|
|
55446
|
-
|
|
55447
|
-
if (t.typeId === row.typeId) {
|
|
55448
|
-
return t._checked = true;
|
|
55449
|
-
}
|
|
55450
|
-
}
|
|
55451
|
-
|
|
55452
|
-
return t._checked = false;
|
|
55453
|
-
});
|
|
55454
55418
|
this.checkedData = api_project_spreadArray(api_project_spreadArray([], this.lastCheckedData, true), rows, true);
|
|
55455
55419
|
}; // 清空已选数据
|
|
55456
55420
|
|
|
55457
55421
|
|
|
55458
55422
|
ApiProject.prototype.onBatchDelete = function () {
|
|
55459
55423
|
this.checkedData = [];
|
|
55460
|
-
this.lastCheckedData = [];
|
|
55461
55424
|
this.tableData = this.tableData.map(function (t) {
|
|
55462
55425
|
return api_project_assign(api_project_assign({}, t), {
|
|
55463
55426
|
_checked: false
|
|
@@ -55470,13 +55433,8 @@ function (_super) {
|
|
|
55470
55433
|
this.checkedData = this.checkedData.filter(function (c) {
|
|
55471
55434
|
return c.typeId !== row.typeId;
|
|
55472
55435
|
});
|
|
55473
|
-
this.
|
|
55474
|
-
return
|
|
55475
|
-
});
|
|
55476
|
-
this.tableData.forEach(function (t) {
|
|
55477
|
-
if (t.typeId === row.typeId) {
|
|
55478
|
-
t._checked = false;
|
|
55479
|
-
}
|
|
55436
|
+
this.tableData = this.tableData.filter(function (t) {
|
|
55437
|
+
return t.typeId !== row.typeId;
|
|
55480
55438
|
});
|
|
55481
55439
|
}; // 点击展开收起
|
|
55482
55440
|
|
|
@@ -62674,6 +62632,7 @@ function (_super) {
|
|
|
62674
62632
|
|
|
62675
62633
|
if (result && !result.hasError) {
|
|
62676
62634
|
this.showInterfaceModal = false;
|
|
62635
|
+
this.$emit("on-edit-interface-success", this.interfaceModel);
|
|
62677
62636
|
this.init();
|
|
62678
62637
|
}
|
|
62679
62638
|
|
|
@@ -62809,6 +62768,7 @@ function (_super) {
|
|
|
62809
62768
|
result = _a.sent();
|
|
62810
62769
|
|
|
62811
62770
|
if (result && !result.hasError) {
|
|
62771
|
+
this.showGroupModal = false;
|
|
62812
62772
|
this.init();
|
|
62813
62773
|
}
|
|
62814
62774
|
|
|
@@ -63264,6 +63224,13 @@ function (_super) {
|
|
|
63264
63224
|
});
|
|
63265
63225
|
};
|
|
63266
63226
|
|
|
63227
|
+
ProjectDetail.prototype.onEditInterfaceSuccess = function (data) {
|
|
63228
|
+
var index = this.openInterfaceList.findIndex(function (i) {
|
|
63229
|
+
return i.id === data.id;
|
|
63230
|
+
});
|
|
63231
|
+
this.openInterfaceList[index].name = data.name;
|
|
63232
|
+
};
|
|
63233
|
+
|
|
63267
63234
|
ProjectDetail.prototype.onClose = function (index) {
|
|
63268
63235
|
this.openInterfaceList.splice(index, 1);
|
|
63269
63236
|
|