@egova/egova-api 1.0.160 → 1.0.163
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 +143 -52
- package/dist/index.umd.js +143 -52
- package/dist/index.umd.min.js +2 -2
- package/dist/types/src/common/utils/tree-data.d.ts +1 -0
- package/dist/types/src/views/project-combine/index.d.ts +3 -1
- package/dist/types/src/views/project-combine/tree/index.d.ts +3 -1
- package/package.json +2 -2
package/dist/index.common.js
CHANGED
|
@@ -26692,7 +26692,7 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
|
|
|
26692
26692
|
/***/ "46d3":
|
|
26693
26693
|
/***/ (function(module, exports) {
|
|
26694
26694
|
|
|
26695
|
-
module.exports = "<article class=\"u-common-tree u-type-tree\">\
|
|
26695
|
+
module.exports = "<article class=\"u-common-tree u-type-tree\">\n <slot name=\"header\">\n <header slot=\"header\" class=\"tree-header\">\n <span>合并模型列表</span>\n <i-upload\n class=\"action-item\"\n :action=\"uploadAction\"\n accept=\".json\"\n :headers=\"headers\"\n :show-upload-list=\"false\"\n :format=\"['json']\"\n :on-success=\"onSuccess\"\n :before-upload=\"onBeforeUpload\"\n :on-format-error=\"onFormatError\"\n >\n <i title=\"导入\" class=\"iconfont icon-import\"></i>\n </i-upload>\n <i\n @click=\"onModelExport(null)\"\n :class=\"{'disabled': !data.length}\"\n class=\"iconfont icon-export\"\n title=\"导出\"\n ></i>\n <i @click.stop=\"onAddTreeNode\" title=\"新增合并模型\" class=\"iconfont icon-add-folder\"></i>\n </header>\n </slot>\n <section class=\"content\">\n <i-input class=\"search-input diy-input\" suffix=\"ios-search\" :placeholder=\"placeholder\" @on-change=\"onFilter\" v-model=\"keyword\" />\n <i-tree :data=\"renderData\" :render=\"renderContent\" @on-toggle-expand=\"onToggleExpand\"></i-tree>\n </section>\n <u-add-node :data=\"tempNode\" :categories=\"data\" v-model=\"showAddTreeNodeModal\" @on-refresh=\"queryTreeData\"></u-add-node>\n\n <i-modal draggable sticky reset-drag-position v-model=\"showImportModal\" class=\"diy-modal duplicate-import-modal\" width=\"800\" :mask-closable=\"false\" title=\"导入已合并接口\">\n <div class=\"import-title\">上传成功</div>\n <div class=\"import-label\">{{ `上传共${importResult.total}条合并接口数据,其中${importResult.total - importResult.duplicateNum}条可成功导入。` }}</div>\n <div class=\"import-label\">{{ `发现以下${importResult.duplicateNum}条接口数据存在编码重复(编码已存在),将不会被导入。` }}</div>\n <i-table class=\"diy-table import-modal-table\" :columns=\"columns\" :data=\"importResult.items\">\n </i-table>\n <footer slot=\"footer\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onImportConfirm\">确定</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onImportCancel\">取消</i-button>\n </footer>\n </i-modal>\n</article>\n"
|
|
26696
26696
|
|
|
26697
26697
|
/***/ }),
|
|
26698
26698
|
|
|
@@ -46969,7 +46969,7 @@ $({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
|
|
46969
46969
|
/***/ "ccf6":
|
|
46970
46970
|
/***/ (function(module, exports) {
|
|
46971
46971
|
|
|
46972
|
-
module.exports = "<!DOCTYPE html>\r\n<article class=\"v-api-combine-wrapper\">\r\n <i-split v-model=\"split\" min=\"200px\" max=\"1100px\">\r\n <!-- 左侧内容 -->\r\n <section slot=\"left\" class=\"left-split-pane\">\r\n <u-type-tree :initSelectItem=\"initNode\" @on-import-success=\"onQuery\" @on-select=\"onNodeSelect\" @on-tree-data=\"onTreeData\"> </u-type-tree>\r\n </section>\r\n <!-- 分割线 -->\r\n <section class=\"trigger\" slot=\"trigger\"></section>\r\n <!-- 右侧内容 -->\r\n <section slot=\"right\" class=\"right-split-pane\">\r\n <section class=\"search-wrapper\">\r\n <i-form class=\"diy-search-form\" ref=\"searchForm\" :model=\"formData\" label-position=\"left\" label-colon>\r\n <i-form-item label=\"名称\" prop=\"name\">\r\n <i-input class=\"diy-input\" v-model=\"formData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"编码\" prop=\"code\">\r\n <i-input class=\"diy-input\" v-model=\"formData.code\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <div class=\"btns\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onQuery\">查询</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onReset\">重置</i-button>\r\n </div>\r\n </section>\r\n <section class=\"actions-wrapper\">\r\n <div class=\"action-item action-text\" @click=\"onAdd()\" :class=\"currentNode.id === 'virtual_root_directory' ? 'icon-button-disabled' : ''\">\r\n <i class=\"iconfont icon-add\"></i>\r\n <div>新增</div>\r\n </div>\r\n <div class=\"action-item action-text\" :class=\"selection.length ? '' : 'icon-button-disabled'\" @click=\"onBatchDelete\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n <span>批量删除</span>\r\n </div>\r\n </section>\r\n <section class=\"main-wrapper\">\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"list\" @on-selection-change=\"onSelectChange\">\r\n
|
|
46972
|
+
module.exports = "<!DOCTYPE html>\r\n<article class=\"v-api-combine-wrapper\">\r\n <i-split v-model=\"split\" min=\"200px\" max=\"1100px\">\r\n <!-- 左侧内容 -->\r\n <section slot=\"left\" class=\"left-split-pane\">\r\n <u-type-tree :taskCategoryID=\"taskCategoryID\" :initSelectItem=\"initNode\" @on-import-success=\"onQuery\" @on-select=\"onNodeSelect\" @on-tree-data=\"onTreeData\"> </u-type-tree>\r\n </section>\r\n <!-- 分割线 -->\r\n <section class=\"trigger\" slot=\"trigger\"></section>\r\n <!-- 右侧内容 -->\r\n <section slot=\"right\" class=\"right-split-pane\">\r\n <section class=\"search-wrapper\">\r\n <i-form class=\"diy-search-form\" ref=\"searchForm\" :model=\"formData\" label-position=\"left\" label-colon>\r\n <i-form-item label=\"名称\" prop=\"name\">\r\n <i-input class=\"diy-input\" v-model=\"formData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"编码\" prop=\"code\">\r\n <i-input class=\"diy-input\" v-model=\"formData.code\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <div class=\"btns\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onQuery\">查询</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onReset\">重置</i-button>\r\n </div>\r\n </section>\r\n <section class=\"actions-wrapper\">\r\n <div class=\"action-item action-text\" @click=\"onAdd()\" :class=\"currentNode.id === 'virtual_root_directory' ? 'icon-button-disabled' : ''\">\r\n <i class=\"iconfont icon-add\"></i>\r\n <div>新增</div>\r\n </div>\r\n <div class=\"action-item action-text\" :class=\"selection.length ? '' : 'icon-button-disabled'\" @click=\"onBatchDelete\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n <span>批量删除</span>\r\n </div>\r\n </section>\r\n <section class=\"main-wrapper\">\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"list\" @on-selection-change=\"onSelectChange\" @on-row-click=\"onRowClick\">\r\n <template slot=\"status\" slot-scope=\"{row,index}\">\r\n <i-switch class=\"diy-switch\" :value=\"row.status==='PUBLISHED'\" @on-change=\"onStatusChange($event, row, index)\"></i-switch>\r\n <span>{{row.status===\"PUBLISHED\" ? \"已发布\" : \"未发布\"}}</span>\r\n </template>\r\n <template slot=\"doc\" slot-scope=\"{row}\">\r\n <a @click=\"onOpenDoc(row)\">查看</a>\r\n </template>\r\n <template #operates=\"{row,index}\">\r\n <div class=\"row-actions\">\r\n <i @click.stop=\"onDetail(row)\" title=\"查看\" class=\"iconfont icon-detail\"></i>\r\n <i @click.stop=\"onCopy(row)\" title=\"复制\" class=\"iconfont icon-fuzhi\"> </i>\r\n <template v-if=\"row.status!=='PUBLISHED'\">\r\n <i @click.stop=\"onEdit(row)\" title=\"编辑\" class=\"iconfont icon-edit\"></i>\r\n <i-poptip confirm transfer title=\"确认要删除这条数据吗?\" @on-ok=\"onDelete(row)\">\r\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n </template>\r\n </div>\r\n </template>\r\n </i-table>\r\n <i-page\r\n class=\"diy-page\"\r\n show-total\r\n show-sizer\r\n show-elevator\r\n :total=\"paging.totalCount\"\r\n :current=\"paging.pageIndex\"\r\n :page-size=\"paging.pageSize\"\r\n @on-change=\"onPageIndexChange\"\r\n @on-page-size-change=\"onPageSizeChange\"\r\n ></i-page>\r\n </section>\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 <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\r\n <i-modal draggable sticky reset-drag-position v-model=\"showCopyModal\" class=\"diy-modal combine-copy-modal\" :mask-closable=\"false\" title=\"复制接口\">\r\n <i-form :label-width=\"100\" class=\"diy-form\" v-model=\"copyData\" label-colon>\r\n <i-form-item label=\"接口名称\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"接口编码\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.code\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"选择分组\" required>\r\n <u-tree-selector :treeData=\"treeData\" leaf-name=\"copy\" :canChooseFolder=\"true\" v-model=\"categoryData.id\" @on-select=\"selectCategory\"> </u-tree-selector>\r\n </i-form-item>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onCopyConfirm\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n</article>\r\n"
|
|
46973
46973
|
|
|
46974
46974
|
/***/ }),
|
|
46975
46975
|
|
|
@@ -47021,7 +47021,7 @@ module.exports = require("axios");
|
|
|
47021
47021
|
/***/ "cfb3":
|
|
47022
47022
|
/***/ (function(module, exports) {
|
|
47023
47023
|
|
|
47024
|
-
module.exports = "<article class=\"project-list\">\
|
|
47024
|
+
module.exports = "<article class=\"project-list\">\n <header>\n <i-input\n class=\"diy-input\"\n v-model=\"condition.name\"\n search\n @on-search=\"onQuery\"\n placeholder=\"输入关键字检索\"\n ></i-input>\n </header>\n <main>\n <header class=\"tool-bar\">\n <span>项目列表</span>\n <div class=\"right-tool\">\n <div class=\"action-btn\">\n <i-upload\n class=\"action-item\"\n :action=\"uploadAction\"\n accept=\".json\"\n :headers=\"headers\"\n :show-upload-list=\"false\"\n :format=\"['json']\"\n :on-success=\"onSuccess\"\n :before-upload=\"onBeforeUpload\"\n :on-format-error=\"onFormatError\"\n >\n <i class=\"api-icon icon-import\"></i>\n <div>导入项目</div>\n </i-upload>\n </div>\n <div class=\"action-btn\" @click=\"onComment\">\n <i\n class=\"api-icon icon-star\"\n @click=\"onCheckType('list')\"\n ></i>\n <div>查看项目动态</div>\n </div>\n <i\n class=\"api-icon icon-list\"\n :class=\"{'active': type === 'list'}\"\n title=\"列表展示\"\n @click=\"onCheckType('list')\"\n ></i>\n <i\n class=\"api-icon icon-card\"\n :class=\"{'active': type === 'card'}\"\n title=\"卡片展示\"\n @click=\"onCheckType('card')\"\n ></i>\n </div>\n </header>\n <main>\n <section class=\"projects\" v-if=\"type==='card'\">\n <div class=\"project-card\" @click=\"onAdd\">\n <div class=\"add-card\">\n <i-icon type=\"md-add\" />\n <p>新建项目</p>\n </div>\n </div>\n <u-card\n v-for=\"item in dataList\"\n :data=\"item\"\n :key=\"item.id\"\n @on-delete=\"onDelete\"\n @on-detail=\"onDetail\"\n @on-edit=\"onEdit\"\n @on-export=\"onExport\"\n ></u-card>\n </section>\n <section class=\"projects\" v-else>\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"dataList\">\n <template slot-scope=\"{ row,index }\" slot=\"action\">\n <span @click=\"onExport(row)\" class=\"action-btn export\"\n ><i class=\"api-icon icon-export projects-icon-export\" title=\"导出此项目\"></i\n ></span>\n <span @click=\"onDetail(row)\" class=\"action-btn detail\"\n ><i class=\"api-icon icon-detail\" title=\"详情\"></i\n ></span>\n <span @click=\"onEdit(row)\" class=\"action-btn detail\"\n ><i class=\"api-icon icon-edit\" title=\"修改\"></i\n ></span>\n <u-confirm\n title=\"删除项目\"\n @on-ok=\"onDelete(row)\"\n message=\"项目内所有接口将被一并删除, 是否确认执行?\"\n >\n <span class=\"action-btn delete\"\n ><i\n class=\"api-icon icon-delete\"\n title=\"删除\"\n ></i\n ></span>\n </u-confirm>\n </template>\n </i-table>\n </section>\n </main>\n </main>\n <u-add-modal :visiable.sync=\"showAddModal\" :data=\"current\">\n <footer slot=\"footer\">\n <i-button @click=\"showAddModal = false\">取消</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary \" @click=\"onSave\"\n >确定</i-button\n >\n </footer>\n </u-add-modal>\n <i-spin fix v-show=\"loading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n</article>\n"
|
|
47025
47025
|
|
|
47026
47026
|
/***/ }),
|
|
47027
47027
|
|
|
@@ -47331,7 +47331,7 @@ module.exports = "<div class=\"v-parameter-list-container\">\r\n <main>\r\n
|
|
|
47331
47331
|
/***/ "d8e7":
|
|
47332
47332
|
/***/ (function(module, exports) {
|
|
47333
47333
|
|
|
47334
|
-
module.exports = "<!DOCTYPE html>\
|
|
47334
|
+
module.exports = "<!DOCTYPE html>\n<article class=\"v-api-combine-info-wrapper\">\n <header class=\"header\">\n {{title}}\n </header>\n <main>\n <i-form ref=\"form\" class=\"info-form\" :model=\"model\" :rules=\"rules\">\n <i-row>\n <section class=\"title-g\">基本信息</section>\n <i-form-item label=\"名称:\" prop=\"name\">\n <i-input class=\"diy-input\" placeholder=\"请输入名称\" v-model=\"model.name\" :disabled=\"!isEdit\"></i-input>\n </i-form-item>\n <i-form-item label=\"编码:\" prop=\"code\">\n <i-input class=\"diy-input\" placeholder=\"请输入编码\" v-model=\"model.code\" :disabled=\"!isEdit\"></i-input>\n </i-form-item>\n <i-form-item class=\"full-width\" label=\"描述:\">\n <i-input type=\"textarea\" class=\"diy-input-textarea\" :rows=\"1\" placeholder=\"请输入描述\" v-model=\"model.description\" :disabled=\"!isEdit\"></i-input>\n </i-form-item>\n </i-row>\n <i-row>\n <section class=\"title-g\">待合并列表</section>\n <section class=\"to-combine-list\">\n <template v-if=\"isEdit\">\n <i-button class=\"diy-btn-default\" @click=\"onAddDataModel\">添加数据模型</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onAddApiProject\">添加 API</i-button>\n </template>\n <i-table class=\"diy-table\" :columns=\"relationColumns\" :data=\"model.relations\">\n <template #type=\"{row}\">\n <span>{{row.type==='MODEL'?'数据模型':row.type==='API'?'API':''}}</span>\n </template>\n <template #operates=\"{row,index}\">\n <div class=\"row-actions\">\n <i title=\"查看\" class=\"iconfont icon-detail\" @click=\"onDetail(row)\"></i>\n <i-poptip v-if=\"isEdit\" confirm transfer title=\"确认删除这条数据吗?\" @on-ok=\"onRelationDelete(row)\">\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\n </i-poptip>\n </div>\n </template>\n </i-table>\n </section>\n </i-row>\n <i-row>\n <section class=\"title-g\">参数详情</section>\n <section class=\"parameter-detail\">\n <section class=\"card-panel card-panel-no-right-border\">\n <i-tabs>\n <i-tab-pane label=\"请求参数\" name=\"request\">\n <u-request-parameter-list :data=\"model.reqParams\" :isEdit=\"isEdit\"></u-request-parameter-list>\n </i-tab-pane>\n <i-tab-pane label=\"响应参数\" name=\"response\">\n <u-response-parameter-list :data=\"model.respParams\" :isEdit=\"isEdit\"></u-response-parameter-list>\n </i-tab-pane>\n </i-tabs>\n </section>\n <section class=\"card-panel\">\n <div class=\"card-panel-header\">\n <div>\n <span>执行脚本</span>\n <i-icon class=\"help-icon\" type=\"md-alert\" @click=\"onOpenDoc\" title=\"帮助文档\"> </i-icon>\n </div>\n <span class=\"action-text\" @click.stop=\"onOpenTest\">\n <i class=\"iconfont icon-run\"></i>\n <span>试运行</span>\n </span>\n </div>\n <div class=\"card-panel-main\">\n <u-base-editor class=\"editor\" :data.sync=\"model.content\" :readOnly=\"!isEdit\"></u-base-editor>\n </div>\n </section>\n </section>\n </i-row>\n </i-form>\n </main>\n <footer>\n <template v-if=\"isEdit\">\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click.stop=\"onSave\">确定</i-button>\n <i-button type=\"text\" class=\"diy-btn-text\" @click.stop=\"onBack\">取消</i-button>\n </template>\n <template v-else>\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click.stop=\"onBack\">关闭</i-button>\n </template>\n </footer>\n <u-data-model-modal v-model=\"dataModelShow\" :data=\"dataModelRelations\" @save=\"onRelationsSave\"></u-data-model-modal>\n <u-api-project-modal v-model=\"apiProjectShow\" :data=\"apiProjectRelations\" @save=\"onRelationsSave\"></u-api-project-modal>\n <u-data-model-doc-modal v-model=\"dataModelDocShow\" :doc=\"dataModelDoc\"></u-data-model-doc-modal>\n <u-api-project-detail-modal :visiable.sync=\"apiProjectDetailShow\" :model=\"apiProjectDetail\"></u-api-project-detail-modal>\n <u-test-run-modal :visible.sync=\"testShow\" :params=\"model.reqParams\" :data=\"testResult\" @on-run=\"onTestRun\"></u-test-run-modal>\n <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\n</article>\n"
|
|
47335
47335
|
|
|
47336
47336
|
/***/ }),
|
|
47337
47337
|
|
|
@@ -48424,7 +48424,7 @@ if ($stringify) {
|
|
|
48424
48424
|
/***/ "ef27":
|
|
48425
48425
|
/***/ (function(module, exports) {
|
|
48426
48426
|
|
|
48427
|
-
module.exports = "<article class=\"project-card\" @click=\"onDetail\">\
|
|
48427
|
+
module.exports = "<article class=\"project-card\" @click=\"onDetail\">\n <header>{{data.name}}</header>\n <i-dropdown transfer transfer-class-name=\"api-project-oprate\" class=\"project-card-i-dropdown\" @on-click=\"onClick\">\n <i-icon type=\"ios-more\" />\n <i-dropdown-menu slot=\"list\">\n <i-dropdown-item :name=\"'export'\">\n <i\n class=\"api-icon icon-export project-card-i-dropdown-item-icon\"\n title=\"导出此项目\"\n @click.stop=\"onExport\"\n ></i>\n 导出此项目\n </i-dropdown-item>\n </i-dropdown-menu>\n </i-dropdown>\n <main></main>\n <footer>\n <div @click.stop=\"onEdit\">修改</div>\n <u-confirm\n class=\"delete\"\n title=\"删除项目\"\n message=\"项目内所有接口将被一并删除, 是否确认执行?\"\n @on-ok=\"onDelete\"\n >\n <span>删除</span>\n </u-confirm>\n </footer>\n</article>\n"
|
|
48428
48428
|
|
|
48429
48429
|
/***/ }),
|
|
48430
48430
|
|
|
@@ -49235,6 +49235,35 @@ function () {
|
|
|
49235
49235
|
}
|
|
49236
49236
|
|
|
49237
49237
|
return "";
|
|
49238
|
+
}; // 查找当前目录节点的所有父节点id数据
|
|
49239
|
+
|
|
49240
|
+
|
|
49241
|
+
TreeDataUtil.treeNodeFatherArray = function (treeList, id) {
|
|
49242
|
+
if (treeList === void 0) {
|
|
49243
|
+
treeList = [];
|
|
49244
|
+
}
|
|
49245
|
+
|
|
49246
|
+
var arr = [];
|
|
49247
|
+
|
|
49248
|
+
for (var _i = 0, treeList_2 = treeList; _i < treeList_2.length; _i++) {
|
|
49249
|
+
var node = treeList_2[_i];
|
|
49250
|
+
|
|
49251
|
+
if (node.id === id) {
|
|
49252
|
+
arr.push(node);
|
|
49253
|
+
return arr;
|
|
49254
|
+
}
|
|
49255
|
+
|
|
49256
|
+
if (node.children && node.children.length) {
|
|
49257
|
+
arr = TreeDataUtil.treeNodeFatherArray(node.children, id);
|
|
49258
|
+
|
|
49259
|
+
if (arr.length > 0) {
|
|
49260
|
+
arr.unshift(node);
|
|
49261
|
+
return arr;
|
|
49262
|
+
}
|
|
49263
|
+
}
|
|
49264
|
+
}
|
|
49265
|
+
|
|
49266
|
+
return [];
|
|
49238
49267
|
};
|
|
49239
49268
|
|
|
49240
49269
|
return TreeDataUtil;
|
|
@@ -51687,6 +51716,7 @@ var tree_generator = undefined && undefined.__generator || function (thisArg, bo
|
|
|
51687
51716
|
|
|
51688
51717
|
|
|
51689
51718
|
|
|
51719
|
+
|
|
51690
51720
|
var tree_Tree =
|
|
51691
51721
|
/** @class */
|
|
51692
51722
|
function (_super) {
|
|
@@ -51710,21 +51740,21 @@ function (_super) {
|
|
|
51710
51740
|
_this.columns = [{
|
|
51711
51741
|
type: "index",
|
|
51712
51742
|
title: "序号",
|
|
51713
|
-
align: "
|
|
51743
|
+
align: "left",
|
|
51714
51744
|
width: 80
|
|
51715
51745
|
}, {
|
|
51716
51746
|
title: "名称",
|
|
51717
|
-
align: "
|
|
51747
|
+
align: "left",
|
|
51718
51748
|
key: "name",
|
|
51719
51749
|
tooltip: true
|
|
51720
51750
|
}, {
|
|
51721
51751
|
title: "编码",
|
|
51722
|
-
align: "
|
|
51752
|
+
align: "left",
|
|
51723
51753
|
key: "code",
|
|
51724
51754
|
tooltip: true
|
|
51725
51755
|
}, {
|
|
51726
51756
|
title: "说明",
|
|
51727
|
-
align: "
|
|
51757
|
+
align: "left",
|
|
51728
51758
|
key: "remark",
|
|
51729
51759
|
tooltip: true
|
|
51730
51760
|
}];
|
|
@@ -51975,9 +52005,13 @@ function (_super) {
|
|
|
51975
52005
|
}
|
|
51976
52006
|
};
|
|
51977
52007
|
|
|
51978
|
-
Tree.prototype.onSelect = function (data) {
|
|
52008
|
+
Tree.prototype.onSelect = function (data, isQuery) {
|
|
52009
|
+
if (isQuery === void 0) {
|
|
52010
|
+
isQuery = true;
|
|
52011
|
+
}
|
|
52012
|
+
|
|
51979
52013
|
this.selectItem = data;
|
|
51980
|
-
this.$emit("on-select", this.selectItem);
|
|
52014
|
+
this.$emit("on-select", this.selectItem, isQuery);
|
|
51981
52015
|
};
|
|
51982
52016
|
|
|
51983
52017
|
Tree.prototype.initSelectItemChange = function () {
|
|
@@ -51988,6 +52022,37 @@ function (_super) {
|
|
|
51988
52022
|
}
|
|
51989
52023
|
};
|
|
51990
52024
|
|
|
52025
|
+
Tree.prototype.watchTaskID = function (nv) {
|
|
52026
|
+
if (nv) {
|
|
52027
|
+
var arr = TreeDataUtil.treeNodeFatherArray(this.data, nv);
|
|
52028
|
+
|
|
52029
|
+
if (arr.length > 0) {
|
|
52030
|
+
for (var i = 0; i < arr.length; i++) {
|
|
52031
|
+
if (i === arr.length - 1) {
|
|
52032
|
+
this.onSelect(arr[i], false);
|
|
52033
|
+
} else {
|
|
52034
|
+
arr[i].expand = true;
|
|
52035
|
+
this.onToggleExpand(arr[i]);
|
|
52036
|
+
}
|
|
52037
|
+
}
|
|
52038
|
+
}
|
|
52039
|
+
|
|
52040
|
+
this.$nextTick(function () {
|
|
52041
|
+
clearTimeout();
|
|
52042
|
+
var element = document.getElementsByClassName("ivu-tree-title-selected");
|
|
52043
|
+
|
|
52044
|
+
if (element.length) {
|
|
52045
|
+
setTimeout(function () {
|
|
52046
|
+
element[0].scrollIntoView({
|
|
52047
|
+
behavior: "smooth",
|
|
52048
|
+
block: "center"
|
|
52049
|
+
});
|
|
52050
|
+
}, 200);
|
|
52051
|
+
}
|
|
52052
|
+
});
|
|
52053
|
+
}
|
|
52054
|
+
};
|
|
52055
|
+
|
|
51991
52056
|
Tree.prototype.onAddTreeNode = function () {
|
|
51992
52057
|
this.tempNode = {
|
|
51993
52058
|
name: "",
|
|
@@ -52167,10 +52232,18 @@ function (_super) {
|
|
|
52167
52232
|
|
|
52168
52233
|
tree_decorate([autowired(tree_service), tree_metadata("design:type", typeof (_a = typeof tree_service !== "undefined" && tree_service) === "function" ? _a : Object)], Tree.prototype, "service", void 0);
|
|
52169
52234
|
|
|
52235
|
+
tree_decorate([Object(flagwind_web_["config"])({
|
|
52236
|
+
default: ""
|
|
52237
|
+
}), tree_metadata("design:type", String)], Tree.prototype, "taskCategoryID", void 0);
|
|
52238
|
+
|
|
52170
52239
|
tree_decorate([Object(flagwind_web_["watch"])("initSelectItem", {
|
|
52171
52240
|
immediate: true
|
|
52172
52241
|
}), tree_metadata("design:type", Function), tree_metadata("design:paramtypes", []), tree_metadata("design:returntype", void 0)], Tree.prototype, "initSelectItemChange", null);
|
|
52173
52242
|
|
|
52243
|
+
tree_decorate([Object(flagwind_web_["watch"])("taskCategoryID", {
|
|
52244
|
+
immediate: false
|
|
52245
|
+
}), tree_metadata("design:type", Function), tree_metadata("design:paramtypes", [String]), tree_metadata("design:returntype", void 0)], Tree.prototype, "watchTaskID", null);
|
|
52246
|
+
|
|
52174
52247
|
Tree = tree_decorate([Object(flagwind_web_["component"])({
|
|
52175
52248
|
template: __webpack_require__("46d3"),
|
|
52176
52249
|
components: {
|
|
@@ -52566,39 +52639,39 @@ function (_super) {
|
|
|
52566
52639
|
}, {
|
|
52567
52640
|
title: "名称",
|
|
52568
52641
|
key: "name",
|
|
52569
|
-
align: "
|
|
52642
|
+
align: "left",
|
|
52570
52643
|
class: "STRING",
|
|
52571
52644
|
ellipsis: true,
|
|
52572
52645
|
tooltip: true
|
|
52573
52646
|
}, {
|
|
52574
52647
|
title: "编码",
|
|
52575
52648
|
key: "code",
|
|
52576
|
-
align: "
|
|
52649
|
+
align: "left",
|
|
52577
52650
|
class: "STRING",
|
|
52578
52651
|
ellipsis: true,
|
|
52579
52652
|
tooltip: true
|
|
52580
52653
|
}, {
|
|
52581
52654
|
title: "描述",
|
|
52582
52655
|
key: "description",
|
|
52583
|
-
align: "
|
|
52656
|
+
align: "left",
|
|
52584
52657
|
class: "STRING",
|
|
52585
52658
|
ellipsis: true,
|
|
52586
52659
|
tooltip: true
|
|
52587
52660
|
}, {
|
|
52588
52661
|
title: "发布状态",
|
|
52589
|
-
align: "
|
|
52662
|
+
align: "left",
|
|
52590
52663
|
slot: "status",
|
|
52591
52664
|
width: 135
|
|
52592
52665
|
}, {
|
|
52593
52666
|
title: "接口文档",
|
|
52594
|
-
align: "
|
|
52667
|
+
align: "left",
|
|
52595
52668
|
slot: "doc",
|
|
52596
52669
|
width: 100
|
|
52597
52670
|
}, {
|
|
52598
52671
|
title: "操作",
|
|
52599
|
-
align: "
|
|
52672
|
+
align: "left",
|
|
52600
52673
|
slot: "operates",
|
|
52601
|
-
width:
|
|
52674
|
+
width: 150
|
|
52602
52675
|
}];
|
|
52603
52676
|
_this.paging = {
|
|
52604
52677
|
pageIndex: 1,
|
|
@@ -52613,6 +52686,7 @@ function (_super) {
|
|
|
52613
52686
|
name: undefined,
|
|
52614
52687
|
code: undefined
|
|
52615
52688
|
};
|
|
52689
|
+
_this.taskCategoryID = "";
|
|
52616
52690
|
return _this;
|
|
52617
52691
|
}
|
|
52618
52692
|
|
|
@@ -52634,9 +52708,12 @@ function (_super) {
|
|
|
52634
52708
|
}
|
|
52635
52709
|
};
|
|
52636
52710
|
|
|
52637
|
-
ProjectCombineManage.prototype.onNodeSelect = function (node) {
|
|
52638
|
-
|
|
52639
|
-
|
|
52711
|
+
ProjectCombineManage.prototype.onNodeSelect = function (node, isQuery) {
|
|
52712
|
+
if (isQuery) {
|
|
52713
|
+
this.taskCategoryID = "";
|
|
52714
|
+
this.currentNode = node;
|
|
52715
|
+
this.onQuery();
|
|
52716
|
+
}
|
|
52640
52717
|
};
|
|
52641
52718
|
|
|
52642
52719
|
ProjectCombineManage.prototype.onReset = function () {
|
|
@@ -52985,6 +53062,12 @@ function (_super) {
|
|
|
52985
53062
|
}
|
|
52986
53063
|
};
|
|
52987
53064
|
|
|
53065
|
+
ProjectCombineManage.prototype.onRowClick = function (row, index) {
|
|
53066
|
+
if (this.currentNode.id === "virtual_root_directory") {
|
|
53067
|
+
this.taskCategoryID = row.categoryId;
|
|
53068
|
+
}
|
|
53069
|
+
};
|
|
53070
|
+
|
|
52988
53071
|
var _a;
|
|
52989
53072
|
|
|
52990
53073
|
project_combine_decorate([autowired(project_combine_service), project_combine_metadata("design:type", typeof (_a = typeof project_combine_service !== "undefined" && project_combine_service) === "function" ? _a : Object)], ProjectCombineManage.prototype, "service", void 0);
|
|
@@ -53552,31 +53635,31 @@ function (_super) {
|
|
|
53552
53635
|
width: 60
|
|
53553
53636
|
}, {
|
|
53554
53637
|
title: "名称",
|
|
53555
|
-
align: "
|
|
53638
|
+
align: "left",
|
|
53556
53639
|
key: "name"
|
|
53557
53640
|
}, {
|
|
53558
53641
|
title: "编码",
|
|
53559
|
-
align: "
|
|
53642
|
+
align: "left",
|
|
53560
53643
|
key: "code"
|
|
53561
53644
|
}, {
|
|
53562
53645
|
title: "数据源",
|
|
53563
|
-
align: "
|
|
53646
|
+
align: "left",
|
|
53564
53647
|
key: "sourceName"
|
|
53565
53648
|
}, {
|
|
53566
53649
|
title: "是否开启缓存",
|
|
53567
|
-
align: "
|
|
53650
|
+
align: "left",
|
|
53568
53651
|
slot: "enableCache"
|
|
53569
53652
|
}, {
|
|
53570
53653
|
title: "过期时间(s)",
|
|
53571
|
-
align: "
|
|
53654
|
+
align: "left",
|
|
53572
53655
|
key: "expireSeconds"
|
|
53573
53656
|
}, {
|
|
53574
53657
|
title: "描述",
|
|
53575
|
-
align: "
|
|
53658
|
+
align: "left",
|
|
53576
53659
|
key: "description"
|
|
53577
53660
|
}, {
|
|
53578
53661
|
title: "接口文档",
|
|
53579
|
-
align: "
|
|
53662
|
+
align: "left",
|
|
53580
53663
|
slot: "doc",
|
|
53581
53664
|
width: 100
|
|
53582
53665
|
}]; // 查看文档
|
|
@@ -53959,21 +54042,21 @@ function (_super) {
|
|
|
53959
54042
|
|
|
53960
54043
|
_this.columns = [{
|
|
53961
54044
|
title: "编码",
|
|
53962
|
-
align: "
|
|
54045
|
+
align: "left",
|
|
53963
54046
|
key: "code",
|
|
53964
54047
|
class: "STRING",
|
|
53965
54048
|
ellipsis: true,
|
|
53966
54049
|
tooltip: true
|
|
53967
54050
|
}, {
|
|
53968
54051
|
title: "名称",
|
|
53969
|
-
align: "
|
|
54052
|
+
align: "left",
|
|
53970
54053
|
key: "name",
|
|
53971
54054
|
class: "STRING",
|
|
53972
54055
|
ellipsis: true,
|
|
53973
54056
|
tooltip: true
|
|
53974
54057
|
}, {
|
|
53975
54058
|
title: "描述",
|
|
53976
|
-
align: "
|
|
54059
|
+
align: "left",
|
|
53977
54060
|
key: "description",
|
|
53978
54061
|
class: "STRING",
|
|
53979
54062
|
ellipsis: true,
|
|
@@ -53982,7 +54065,7 @@ function (_super) {
|
|
|
53982
54065
|
title: "操作",
|
|
53983
54066
|
key: "operates",
|
|
53984
54067
|
slot: "operates",
|
|
53985
|
-
align: "
|
|
54068
|
+
align: "left",
|
|
53986
54069
|
width: 80
|
|
53987
54070
|
}];
|
|
53988
54071
|
return _this;
|
|
@@ -55023,7 +55106,7 @@ function (_super) {
|
|
|
55023
55106
|
width: 60
|
|
55024
55107
|
}, {
|
|
55025
55108
|
title: "名称",
|
|
55026
|
-
align: "
|
|
55109
|
+
align: "left",
|
|
55027
55110
|
key: "name",
|
|
55028
55111
|
class: "STRING",
|
|
55029
55112
|
ellipsis: true,
|
|
@@ -55031,14 +55114,14 @@ function (_super) {
|
|
|
55031
55114
|
width: 300
|
|
55032
55115
|
}, {
|
|
55033
55116
|
title: "地址",
|
|
55034
|
-
align: "
|
|
55117
|
+
align: "left",
|
|
55035
55118
|
key: "url",
|
|
55036
55119
|
class: "STRING",
|
|
55037
55120
|
ellipsis: true,
|
|
55038
55121
|
tooltip: true
|
|
55039
55122
|
}, {
|
|
55040
55123
|
title: "查看详情",
|
|
55041
|
-
align: "
|
|
55124
|
+
align: "left",
|
|
55042
55125
|
slot: "detail",
|
|
55043
55126
|
width: 100
|
|
55044
55127
|
}]; // 查看文档
|
|
@@ -55421,7 +55504,7 @@ function (_super) {
|
|
|
55421
55504
|
|
|
55422
55505
|
_this.columns = [{
|
|
55423
55506
|
title: "名称",
|
|
55424
|
-
align: "
|
|
55507
|
+
align: "left",
|
|
55425
55508
|
key: "name",
|
|
55426
55509
|
class: "STRING",
|
|
55427
55510
|
ellipsis: true,
|
|
@@ -55429,7 +55512,7 @@ function (_super) {
|
|
|
55429
55512
|
width: 300
|
|
55430
55513
|
}, {
|
|
55431
55514
|
title: "地址",
|
|
55432
|
-
align: "
|
|
55515
|
+
align: "left",
|
|
55433
55516
|
key: "url",
|
|
55434
55517
|
class: "STRING",
|
|
55435
55518
|
ellipsis: true,
|
|
@@ -55438,7 +55521,7 @@ function (_super) {
|
|
|
55438
55521
|
title: "操作",
|
|
55439
55522
|
key: "operates",
|
|
55440
55523
|
slot: "operates",
|
|
55441
|
-
align: "
|
|
55524
|
+
align: "left",
|
|
55442
55525
|
width: 80
|
|
55443
55526
|
}];
|
|
55444
55527
|
return _this;
|
|
@@ -55926,14 +56009,14 @@ function (_super) {
|
|
|
55926
56009
|
width: 60
|
|
55927
56010
|
}, {
|
|
55928
56011
|
title: "参数名",
|
|
55929
|
-
align: "
|
|
56012
|
+
align: "left",
|
|
55930
56013
|
slot: "name",
|
|
55931
56014
|
class: "STRING",
|
|
55932
56015
|
ellipsis: true,
|
|
55933
56016
|
tooltip: true
|
|
55934
56017
|
}, {
|
|
55935
56018
|
title: "类型",
|
|
55936
|
-
align: "
|
|
56019
|
+
align: "left",
|
|
55937
56020
|
slot: "type",
|
|
55938
56021
|
width: 130,
|
|
55939
56022
|
class: "STRING",
|
|
@@ -55941,26 +56024,26 @@ function (_super) {
|
|
|
55941
56024
|
tooltip: true
|
|
55942
56025
|
}, {
|
|
55943
56026
|
title: "是否必传",
|
|
55944
|
-
align: "
|
|
56027
|
+
align: "left",
|
|
55945
56028
|
slot: "required",
|
|
55946
56029
|
width: 120
|
|
55947
56030
|
}, {
|
|
55948
56031
|
title: "默认值",
|
|
55949
|
-
align: "
|
|
56032
|
+
align: "left",
|
|
55950
56033
|
slot: "defaultValue",
|
|
55951
56034
|
class: "STRING",
|
|
55952
56035
|
ellipsis: true,
|
|
55953
56036
|
tooltip: true
|
|
55954
56037
|
}, {
|
|
55955
56038
|
title: "描述",
|
|
55956
|
-
align: "
|
|
56039
|
+
align: "left",
|
|
55957
56040
|
slot: "description",
|
|
55958
56041
|
class: "STRING",
|
|
55959
56042
|
ellipsis: true,
|
|
55960
56043
|
tooltip: true
|
|
55961
56044
|
}, {
|
|
55962
56045
|
title: "操作",
|
|
55963
|
-
align: "
|
|
56046
|
+
align: "left",
|
|
55964
56047
|
slot: "actions"
|
|
55965
56048
|
}];
|
|
55966
56049
|
_this.typeList = [];
|
|
@@ -56145,21 +56228,21 @@ function (_super) {
|
|
|
56145
56228
|
width: 60
|
|
56146
56229
|
}, {
|
|
56147
56230
|
title: "参数名",
|
|
56148
|
-
align: "
|
|
56231
|
+
align: "left",
|
|
56149
56232
|
slot: "name",
|
|
56150
56233
|
class: "STRING",
|
|
56151
56234
|
ellipsis: true,
|
|
56152
56235
|
tooltip: true
|
|
56153
56236
|
}, {
|
|
56154
56237
|
title: "类型",
|
|
56155
|
-
align: "
|
|
56238
|
+
align: "left",
|
|
56156
56239
|
slot: "type",
|
|
56157
56240
|
class: "STRING",
|
|
56158
56241
|
ellipsis: true,
|
|
56159
56242
|
tooltip: true
|
|
56160
56243
|
}, {
|
|
56161
56244
|
title: "操作",
|
|
56162
|
-
align: "
|
|
56245
|
+
align: "left",
|
|
56163
56246
|
slot: "actions"
|
|
56164
56247
|
}];
|
|
56165
56248
|
return _this;
|
|
@@ -56638,20 +56721,20 @@ function (_super) {
|
|
|
56638
56721
|
};
|
|
56639
56722
|
_this.relationColumns = [{
|
|
56640
56723
|
title: "类型",
|
|
56641
|
-
align: "
|
|
56724
|
+
align: "left",
|
|
56642
56725
|
key: "type",
|
|
56643
56726
|
slot: "type",
|
|
56644
56727
|
width: 280
|
|
56645
56728
|
}, {
|
|
56646
56729
|
title: "名称",
|
|
56647
|
-
align: "
|
|
56730
|
+
align: "left",
|
|
56648
56731
|
key: "name",
|
|
56649
56732
|
class: "STRING",
|
|
56650
56733
|
ellipsis: true,
|
|
56651
56734
|
tooltip: true
|
|
56652
56735
|
}, {
|
|
56653
56736
|
title: "编码或地址",
|
|
56654
|
-
align: "
|
|
56737
|
+
align: "left",
|
|
56655
56738
|
key: "typeCode",
|
|
56656
56739
|
class: "STRING",
|
|
56657
56740
|
ellipsis: true,
|
|
@@ -56660,7 +56743,7 @@ function (_super) {
|
|
|
56660
56743
|
title: "操作",
|
|
56661
56744
|
key: "operates",
|
|
56662
56745
|
slot: "operates",
|
|
56663
|
-
align: "
|
|
56746
|
+
align: "left",
|
|
56664
56747
|
width: 100
|
|
56665
56748
|
}];
|
|
56666
56749
|
_this.testShow = false;
|
|
@@ -60456,7 +60539,7 @@ function (_super) {
|
|
|
60456
60539
|
}, {
|
|
60457
60540
|
title: "操作",
|
|
60458
60541
|
width: 80,
|
|
60459
|
-
align: "
|
|
60542
|
+
align: "left",
|
|
60460
60543
|
slot: "action"
|
|
60461
60544
|
}];
|
|
60462
60545
|
_this.valueTypeList = [];
|
|
@@ -62898,6 +62981,14 @@ function (_super) {
|
|
|
62898
62981
|
case 0:
|
|
62899
62982
|
this.group.parentId = this.parent.id;
|
|
62900
62983
|
this.group.type = "api";
|
|
62984
|
+
|
|
62985
|
+
if (this.group.id && this.group.id === this.group.parentId) {
|
|
62986
|
+
this.$message.warning("所属分组不能选中自身");
|
|
62987
|
+
return [2
|
|
62988
|
+
/*return*/
|
|
62989
|
+
];
|
|
62990
|
+
}
|
|
62991
|
+
|
|
62901
62992
|
return [4
|
|
62902
62993
|
/*yield*/
|
|
62903
62994
|
, this.service.saveCategory(this.group)];
|