@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.umd.js
CHANGED
|
@@ -26701,7 +26701,7 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
|
|
|
26701
26701
|
/***/ "46d3":
|
|
26702
26702
|
/***/ (function(module, exports) {
|
|
26703
26703
|
|
|
26704
|
-
module.exports = "<article class=\"u-common-tree u-type-tree\">\
|
|
26704
|
+
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"
|
|
26705
26705
|
|
|
26706
26706
|
/***/ }),
|
|
26707
26707
|
|
|
@@ -46978,7 +46978,7 @@ $({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
|
|
46978
46978
|
/***/ "ccf6":
|
|
46979
46979
|
/***/ (function(module, exports) {
|
|
46980
46980
|
|
|
46981
|
-
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
|
|
46981
|
+
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"
|
|
46982
46982
|
|
|
46983
46983
|
/***/ }),
|
|
46984
46984
|
|
|
@@ -47030,7 +47030,7 @@ module.exports = __WEBPACK_EXTERNAL_MODULE_cebe__;
|
|
|
47030
47030
|
/***/ "cfb3":
|
|
47031
47031
|
/***/ (function(module, exports) {
|
|
47032
47032
|
|
|
47033
|
-
module.exports = "<article class=\"project-list\">\
|
|
47033
|
+
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"
|
|
47034
47034
|
|
|
47035
47035
|
/***/ }),
|
|
47036
47036
|
|
|
@@ -47340,7 +47340,7 @@ module.exports = "<div class=\"v-parameter-list-container\">\r\n <main>\r\n
|
|
|
47340
47340
|
/***/ "d8e7":
|
|
47341
47341
|
/***/ (function(module, exports) {
|
|
47342
47342
|
|
|
47343
|
-
module.exports = "<!DOCTYPE html>\
|
|
47343
|
+
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"
|
|
47344
47344
|
|
|
47345
47345
|
/***/ }),
|
|
47346
47346
|
|
|
@@ -48433,7 +48433,7 @@ if ($stringify) {
|
|
|
48433
48433
|
/***/ "ef27":
|
|
48434
48434
|
/***/ (function(module, exports) {
|
|
48435
48435
|
|
|
48436
|
-
module.exports = "<article class=\"project-card\" @click=\"onDetail\">\
|
|
48436
|
+
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"
|
|
48437
48437
|
|
|
48438
48438
|
/***/ }),
|
|
48439
48439
|
|
|
@@ -49244,6 +49244,35 @@ function () {
|
|
|
49244
49244
|
}
|
|
49245
49245
|
|
|
49246
49246
|
return "";
|
|
49247
|
+
}; // 查找当前目录节点的所有父节点id数据
|
|
49248
|
+
|
|
49249
|
+
|
|
49250
|
+
TreeDataUtil.treeNodeFatherArray = function (treeList, id) {
|
|
49251
|
+
if (treeList === void 0) {
|
|
49252
|
+
treeList = [];
|
|
49253
|
+
}
|
|
49254
|
+
|
|
49255
|
+
var arr = [];
|
|
49256
|
+
|
|
49257
|
+
for (var _i = 0, treeList_2 = treeList; _i < treeList_2.length; _i++) {
|
|
49258
|
+
var node = treeList_2[_i];
|
|
49259
|
+
|
|
49260
|
+
if (node.id === id) {
|
|
49261
|
+
arr.push(node);
|
|
49262
|
+
return arr;
|
|
49263
|
+
}
|
|
49264
|
+
|
|
49265
|
+
if (node.children && node.children.length) {
|
|
49266
|
+
arr = TreeDataUtil.treeNodeFatherArray(node.children, id);
|
|
49267
|
+
|
|
49268
|
+
if (arr.length > 0) {
|
|
49269
|
+
arr.unshift(node);
|
|
49270
|
+
return arr;
|
|
49271
|
+
}
|
|
49272
|
+
}
|
|
49273
|
+
}
|
|
49274
|
+
|
|
49275
|
+
return [];
|
|
49247
49276
|
};
|
|
49248
49277
|
|
|
49249
49278
|
return TreeDataUtil;
|
|
@@ -51696,6 +51725,7 @@ var tree_generator = undefined && undefined.__generator || function (thisArg, bo
|
|
|
51696
51725
|
|
|
51697
51726
|
|
|
51698
51727
|
|
|
51728
|
+
|
|
51699
51729
|
var tree_Tree =
|
|
51700
51730
|
/** @class */
|
|
51701
51731
|
function (_super) {
|
|
@@ -51719,21 +51749,21 @@ function (_super) {
|
|
|
51719
51749
|
_this.columns = [{
|
|
51720
51750
|
type: "index",
|
|
51721
51751
|
title: "序号",
|
|
51722
|
-
align: "
|
|
51752
|
+
align: "left",
|
|
51723
51753
|
width: 80
|
|
51724
51754
|
}, {
|
|
51725
51755
|
title: "名称",
|
|
51726
|
-
align: "
|
|
51756
|
+
align: "left",
|
|
51727
51757
|
key: "name",
|
|
51728
51758
|
tooltip: true
|
|
51729
51759
|
}, {
|
|
51730
51760
|
title: "编码",
|
|
51731
|
-
align: "
|
|
51761
|
+
align: "left",
|
|
51732
51762
|
key: "code",
|
|
51733
51763
|
tooltip: true
|
|
51734
51764
|
}, {
|
|
51735
51765
|
title: "说明",
|
|
51736
|
-
align: "
|
|
51766
|
+
align: "left",
|
|
51737
51767
|
key: "remark",
|
|
51738
51768
|
tooltip: true
|
|
51739
51769
|
}];
|
|
@@ -51984,9 +52014,13 @@ function (_super) {
|
|
|
51984
52014
|
}
|
|
51985
52015
|
};
|
|
51986
52016
|
|
|
51987
|
-
Tree.prototype.onSelect = function (data) {
|
|
52017
|
+
Tree.prototype.onSelect = function (data, isQuery) {
|
|
52018
|
+
if (isQuery === void 0) {
|
|
52019
|
+
isQuery = true;
|
|
52020
|
+
}
|
|
52021
|
+
|
|
51988
52022
|
this.selectItem = data;
|
|
51989
|
-
this.$emit("on-select", this.selectItem);
|
|
52023
|
+
this.$emit("on-select", this.selectItem, isQuery);
|
|
51990
52024
|
};
|
|
51991
52025
|
|
|
51992
52026
|
Tree.prototype.initSelectItemChange = function () {
|
|
@@ -51997,6 +52031,37 @@ function (_super) {
|
|
|
51997
52031
|
}
|
|
51998
52032
|
};
|
|
51999
52033
|
|
|
52034
|
+
Tree.prototype.watchTaskID = function (nv) {
|
|
52035
|
+
if (nv) {
|
|
52036
|
+
var arr = TreeDataUtil.treeNodeFatherArray(this.data, nv);
|
|
52037
|
+
|
|
52038
|
+
if (arr.length > 0) {
|
|
52039
|
+
for (var i = 0; i < arr.length; i++) {
|
|
52040
|
+
if (i === arr.length - 1) {
|
|
52041
|
+
this.onSelect(arr[i], false);
|
|
52042
|
+
} else {
|
|
52043
|
+
arr[i].expand = true;
|
|
52044
|
+
this.onToggleExpand(arr[i]);
|
|
52045
|
+
}
|
|
52046
|
+
}
|
|
52047
|
+
}
|
|
52048
|
+
|
|
52049
|
+
this.$nextTick(function () {
|
|
52050
|
+
clearTimeout();
|
|
52051
|
+
var element = document.getElementsByClassName("ivu-tree-title-selected");
|
|
52052
|
+
|
|
52053
|
+
if (element.length) {
|
|
52054
|
+
setTimeout(function () {
|
|
52055
|
+
element[0].scrollIntoView({
|
|
52056
|
+
behavior: "smooth",
|
|
52057
|
+
block: "center"
|
|
52058
|
+
});
|
|
52059
|
+
}, 200);
|
|
52060
|
+
}
|
|
52061
|
+
});
|
|
52062
|
+
}
|
|
52063
|
+
};
|
|
52064
|
+
|
|
52000
52065
|
Tree.prototype.onAddTreeNode = function () {
|
|
52001
52066
|
this.tempNode = {
|
|
52002
52067
|
name: "",
|
|
@@ -52176,10 +52241,18 @@ function (_super) {
|
|
|
52176
52241
|
|
|
52177
52242
|
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);
|
|
52178
52243
|
|
|
52244
|
+
tree_decorate([Object(flagwind_web_["config"])({
|
|
52245
|
+
default: ""
|
|
52246
|
+
}), tree_metadata("design:type", String)], Tree.prototype, "taskCategoryID", void 0);
|
|
52247
|
+
|
|
52179
52248
|
tree_decorate([Object(flagwind_web_["watch"])("initSelectItem", {
|
|
52180
52249
|
immediate: true
|
|
52181
52250
|
}), tree_metadata("design:type", Function), tree_metadata("design:paramtypes", []), tree_metadata("design:returntype", void 0)], Tree.prototype, "initSelectItemChange", null);
|
|
52182
52251
|
|
|
52252
|
+
tree_decorate([Object(flagwind_web_["watch"])("taskCategoryID", {
|
|
52253
|
+
immediate: false
|
|
52254
|
+
}), tree_metadata("design:type", Function), tree_metadata("design:paramtypes", [String]), tree_metadata("design:returntype", void 0)], Tree.prototype, "watchTaskID", null);
|
|
52255
|
+
|
|
52183
52256
|
Tree = tree_decorate([Object(flagwind_web_["component"])({
|
|
52184
52257
|
template: __webpack_require__("46d3"),
|
|
52185
52258
|
components: {
|
|
@@ -52575,39 +52648,39 @@ function (_super) {
|
|
|
52575
52648
|
}, {
|
|
52576
52649
|
title: "名称",
|
|
52577
52650
|
key: "name",
|
|
52578
|
-
align: "
|
|
52651
|
+
align: "left",
|
|
52579
52652
|
class: "STRING",
|
|
52580
52653
|
ellipsis: true,
|
|
52581
52654
|
tooltip: true
|
|
52582
52655
|
}, {
|
|
52583
52656
|
title: "编码",
|
|
52584
52657
|
key: "code",
|
|
52585
|
-
align: "
|
|
52658
|
+
align: "left",
|
|
52586
52659
|
class: "STRING",
|
|
52587
52660
|
ellipsis: true,
|
|
52588
52661
|
tooltip: true
|
|
52589
52662
|
}, {
|
|
52590
52663
|
title: "描述",
|
|
52591
52664
|
key: "description",
|
|
52592
|
-
align: "
|
|
52665
|
+
align: "left",
|
|
52593
52666
|
class: "STRING",
|
|
52594
52667
|
ellipsis: true,
|
|
52595
52668
|
tooltip: true
|
|
52596
52669
|
}, {
|
|
52597
52670
|
title: "发布状态",
|
|
52598
|
-
align: "
|
|
52671
|
+
align: "left",
|
|
52599
52672
|
slot: "status",
|
|
52600
52673
|
width: 135
|
|
52601
52674
|
}, {
|
|
52602
52675
|
title: "接口文档",
|
|
52603
|
-
align: "
|
|
52676
|
+
align: "left",
|
|
52604
52677
|
slot: "doc",
|
|
52605
52678
|
width: 100
|
|
52606
52679
|
}, {
|
|
52607
52680
|
title: "操作",
|
|
52608
|
-
align: "
|
|
52681
|
+
align: "left",
|
|
52609
52682
|
slot: "operates",
|
|
52610
|
-
width:
|
|
52683
|
+
width: 150
|
|
52611
52684
|
}];
|
|
52612
52685
|
_this.paging = {
|
|
52613
52686
|
pageIndex: 1,
|
|
@@ -52622,6 +52695,7 @@ function (_super) {
|
|
|
52622
52695
|
name: undefined,
|
|
52623
52696
|
code: undefined
|
|
52624
52697
|
};
|
|
52698
|
+
_this.taskCategoryID = "";
|
|
52625
52699
|
return _this;
|
|
52626
52700
|
}
|
|
52627
52701
|
|
|
@@ -52643,9 +52717,12 @@ function (_super) {
|
|
|
52643
52717
|
}
|
|
52644
52718
|
};
|
|
52645
52719
|
|
|
52646
|
-
ProjectCombineManage.prototype.onNodeSelect = function (node) {
|
|
52647
|
-
|
|
52648
|
-
|
|
52720
|
+
ProjectCombineManage.prototype.onNodeSelect = function (node, isQuery) {
|
|
52721
|
+
if (isQuery) {
|
|
52722
|
+
this.taskCategoryID = "";
|
|
52723
|
+
this.currentNode = node;
|
|
52724
|
+
this.onQuery();
|
|
52725
|
+
}
|
|
52649
52726
|
};
|
|
52650
52727
|
|
|
52651
52728
|
ProjectCombineManage.prototype.onReset = function () {
|
|
@@ -52994,6 +53071,12 @@ function (_super) {
|
|
|
52994
53071
|
}
|
|
52995
53072
|
};
|
|
52996
53073
|
|
|
53074
|
+
ProjectCombineManage.prototype.onRowClick = function (row, index) {
|
|
53075
|
+
if (this.currentNode.id === "virtual_root_directory") {
|
|
53076
|
+
this.taskCategoryID = row.categoryId;
|
|
53077
|
+
}
|
|
53078
|
+
};
|
|
53079
|
+
|
|
52997
53080
|
var _a;
|
|
52998
53081
|
|
|
52999
53082
|
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);
|
|
@@ -53561,31 +53644,31 @@ function (_super) {
|
|
|
53561
53644
|
width: 60
|
|
53562
53645
|
}, {
|
|
53563
53646
|
title: "名称",
|
|
53564
|
-
align: "
|
|
53647
|
+
align: "left",
|
|
53565
53648
|
key: "name"
|
|
53566
53649
|
}, {
|
|
53567
53650
|
title: "编码",
|
|
53568
|
-
align: "
|
|
53651
|
+
align: "left",
|
|
53569
53652
|
key: "code"
|
|
53570
53653
|
}, {
|
|
53571
53654
|
title: "数据源",
|
|
53572
|
-
align: "
|
|
53655
|
+
align: "left",
|
|
53573
53656
|
key: "sourceName"
|
|
53574
53657
|
}, {
|
|
53575
53658
|
title: "是否开启缓存",
|
|
53576
|
-
align: "
|
|
53659
|
+
align: "left",
|
|
53577
53660
|
slot: "enableCache"
|
|
53578
53661
|
}, {
|
|
53579
53662
|
title: "过期时间(s)",
|
|
53580
|
-
align: "
|
|
53663
|
+
align: "left",
|
|
53581
53664
|
key: "expireSeconds"
|
|
53582
53665
|
}, {
|
|
53583
53666
|
title: "描述",
|
|
53584
|
-
align: "
|
|
53667
|
+
align: "left",
|
|
53585
53668
|
key: "description"
|
|
53586
53669
|
}, {
|
|
53587
53670
|
title: "接口文档",
|
|
53588
|
-
align: "
|
|
53671
|
+
align: "left",
|
|
53589
53672
|
slot: "doc",
|
|
53590
53673
|
width: 100
|
|
53591
53674
|
}]; // 查看文档
|
|
@@ -53968,21 +54051,21 @@ function (_super) {
|
|
|
53968
54051
|
|
|
53969
54052
|
_this.columns = [{
|
|
53970
54053
|
title: "编码",
|
|
53971
|
-
align: "
|
|
54054
|
+
align: "left",
|
|
53972
54055
|
key: "code",
|
|
53973
54056
|
class: "STRING",
|
|
53974
54057
|
ellipsis: true,
|
|
53975
54058
|
tooltip: true
|
|
53976
54059
|
}, {
|
|
53977
54060
|
title: "名称",
|
|
53978
|
-
align: "
|
|
54061
|
+
align: "left",
|
|
53979
54062
|
key: "name",
|
|
53980
54063
|
class: "STRING",
|
|
53981
54064
|
ellipsis: true,
|
|
53982
54065
|
tooltip: true
|
|
53983
54066
|
}, {
|
|
53984
54067
|
title: "描述",
|
|
53985
|
-
align: "
|
|
54068
|
+
align: "left",
|
|
53986
54069
|
key: "description",
|
|
53987
54070
|
class: "STRING",
|
|
53988
54071
|
ellipsis: true,
|
|
@@ -53991,7 +54074,7 @@ function (_super) {
|
|
|
53991
54074
|
title: "操作",
|
|
53992
54075
|
key: "operates",
|
|
53993
54076
|
slot: "operates",
|
|
53994
|
-
align: "
|
|
54077
|
+
align: "left",
|
|
53995
54078
|
width: 80
|
|
53996
54079
|
}];
|
|
53997
54080
|
return _this;
|
|
@@ -55032,7 +55115,7 @@ function (_super) {
|
|
|
55032
55115
|
width: 60
|
|
55033
55116
|
}, {
|
|
55034
55117
|
title: "名称",
|
|
55035
|
-
align: "
|
|
55118
|
+
align: "left",
|
|
55036
55119
|
key: "name",
|
|
55037
55120
|
class: "STRING",
|
|
55038
55121
|
ellipsis: true,
|
|
@@ -55040,14 +55123,14 @@ function (_super) {
|
|
|
55040
55123
|
width: 300
|
|
55041
55124
|
}, {
|
|
55042
55125
|
title: "地址",
|
|
55043
|
-
align: "
|
|
55126
|
+
align: "left",
|
|
55044
55127
|
key: "url",
|
|
55045
55128
|
class: "STRING",
|
|
55046
55129
|
ellipsis: true,
|
|
55047
55130
|
tooltip: true
|
|
55048
55131
|
}, {
|
|
55049
55132
|
title: "查看详情",
|
|
55050
|
-
align: "
|
|
55133
|
+
align: "left",
|
|
55051
55134
|
slot: "detail",
|
|
55052
55135
|
width: 100
|
|
55053
55136
|
}]; // 查看文档
|
|
@@ -55430,7 +55513,7 @@ function (_super) {
|
|
|
55430
55513
|
|
|
55431
55514
|
_this.columns = [{
|
|
55432
55515
|
title: "名称",
|
|
55433
|
-
align: "
|
|
55516
|
+
align: "left",
|
|
55434
55517
|
key: "name",
|
|
55435
55518
|
class: "STRING",
|
|
55436
55519
|
ellipsis: true,
|
|
@@ -55438,7 +55521,7 @@ function (_super) {
|
|
|
55438
55521
|
width: 300
|
|
55439
55522
|
}, {
|
|
55440
55523
|
title: "地址",
|
|
55441
|
-
align: "
|
|
55524
|
+
align: "left",
|
|
55442
55525
|
key: "url",
|
|
55443
55526
|
class: "STRING",
|
|
55444
55527
|
ellipsis: true,
|
|
@@ -55447,7 +55530,7 @@ function (_super) {
|
|
|
55447
55530
|
title: "操作",
|
|
55448
55531
|
key: "operates",
|
|
55449
55532
|
slot: "operates",
|
|
55450
|
-
align: "
|
|
55533
|
+
align: "left",
|
|
55451
55534
|
width: 80
|
|
55452
55535
|
}];
|
|
55453
55536
|
return _this;
|
|
@@ -55935,14 +56018,14 @@ function (_super) {
|
|
|
55935
56018
|
width: 60
|
|
55936
56019
|
}, {
|
|
55937
56020
|
title: "参数名",
|
|
55938
|
-
align: "
|
|
56021
|
+
align: "left",
|
|
55939
56022
|
slot: "name",
|
|
55940
56023
|
class: "STRING",
|
|
55941
56024
|
ellipsis: true,
|
|
55942
56025
|
tooltip: true
|
|
55943
56026
|
}, {
|
|
55944
56027
|
title: "类型",
|
|
55945
|
-
align: "
|
|
56028
|
+
align: "left",
|
|
55946
56029
|
slot: "type",
|
|
55947
56030
|
width: 130,
|
|
55948
56031
|
class: "STRING",
|
|
@@ -55950,26 +56033,26 @@ function (_super) {
|
|
|
55950
56033
|
tooltip: true
|
|
55951
56034
|
}, {
|
|
55952
56035
|
title: "是否必传",
|
|
55953
|
-
align: "
|
|
56036
|
+
align: "left",
|
|
55954
56037
|
slot: "required",
|
|
55955
56038
|
width: 120
|
|
55956
56039
|
}, {
|
|
55957
56040
|
title: "默认值",
|
|
55958
|
-
align: "
|
|
56041
|
+
align: "left",
|
|
55959
56042
|
slot: "defaultValue",
|
|
55960
56043
|
class: "STRING",
|
|
55961
56044
|
ellipsis: true,
|
|
55962
56045
|
tooltip: true
|
|
55963
56046
|
}, {
|
|
55964
56047
|
title: "描述",
|
|
55965
|
-
align: "
|
|
56048
|
+
align: "left",
|
|
55966
56049
|
slot: "description",
|
|
55967
56050
|
class: "STRING",
|
|
55968
56051
|
ellipsis: true,
|
|
55969
56052
|
tooltip: true
|
|
55970
56053
|
}, {
|
|
55971
56054
|
title: "操作",
|
|
55972
|
-
align: "
|
|
56055
|
+
align: "left",
|
|
55973
56056
|
slot: "actions"
|
|
55974
56057
|
}];
|
|
55975
56058
|
_this.typeList = [];
|
|
@@ -56154,21 +56237,21 @@ function (_super) {
|
|
|
56154
56237
|
width: 60
|
|
56155
56238
|
}, {
|
|
56156
56239
|
title: "参数名",
|
|
56157
|
-
align: "
|
|
56240
|
+
align: "left",
|
|
56158
56241
|
slot: "name",
|
|
56159
56242
|
class: "STRING",
|
|
56160
56243
|
ellipsis: true,
|
|
56161
56244
|
tooltip: true
|
|
56162
56245
|
}, {
|
|
56163
56246
|
title: "类型",
|
|
56164
|
-
align: "
|
|
56247
|
+
align: "left",
|
|
56165
56248
|
slot: "type",
|
|
56166
56249
|
class: "STRING",
|
|
56167
56250
|
ellipsis: true,
|
|
56168
56251
|
tooltip: true
|
|
56169
56252
|
}, {
|
|
56170
56253
|
title: "操作",
|
|
56171
|
-
align: "
|
|
56254
|
+
align: "left",
|
|
56172
56255
|
slot: "actions"
|
|
56173
56256
|
}];
|
|
56174
56257
|
return _this;
|
|
@@ -56647,20 +56730,20 @@ function (_super) {
|
|
|
56647
56730
|
};
|
|
56648
56731
|
_this.relationColumns = [{
|
|
56649
56732
|
title: "类型",
|
|
56650
|
-
align: "
|
|
56733
|
+
align: "left",
|
|
56651
56734
|
key: "type",
|
|
56652
56735
|
slot: "type",
|
|
56653
56736
|
width: 280
|
|
56654
56737
|
}, {
|
|
56655
56738
|
title: "名称",
|
|
56656
|
-
align: "
|
|
56739
|
+
align: "left",
|
|
56657
56740
|
key: "name",
|
|
56658
56741
|
class: "STRING",
|
|
56659
56742
|
ellipsis: true,
|
|
56660
56743
|
tooltip: true
|
|
56661
56744
|
}, {
|
|
56662
56745
|
title: "编码或地址",
|
|
56663
|
-
align: "
|
|
56746
|
+
align: "left",
|
|
56664
56747
|
key: "typeCode",
|
|
56665
56748
|
class: "STRING",
|
|
56666
56749
|
ellipsis: true,
|
|
@@ -56669,7 +56752,7 @@ function (_super) {
|
|
|
56669
56752
|
title: "操作",
|
|
56670
56753
|
key: "operates",
|
|
56671
56754
|
slot: "operates",
|
|
56672
|
-
align: "
|
|
56755
|
+
align: "left",
|
|
56673
56756
|
width: 100
|
|
56674
56757
|
}];
|
|
56675
56758
|
_this.testShow = false;
|
|
@@ -60465,7 +60548,7 @@ function (_super) {
|
|
|
60465
60548
|
}, {
|
|
60466
60549
|
title: "操作",
|
|
60467
60550
|
width: 80,
|
|
60468
|
-
align: "
|
|
60551
|
+
align: "left",
|
|
60469
60552
|
slot: "action"
|
|
60470
60553
|
}];
|
|
60471
60554
|
_this.valueTypeList = [];
|
|
@@ -62907,6 +62990,14 @@ function (_super) {
|
|
|
62907
62990
|
case 0:
|
|
62908
62991
|
this.group.parentId = this.parent.id;
|
|
62909
62992
|
this.group.type = "api";
|
|
62993
|
+
|
|
62994
|
+
if (this.group.id && this.group.id === this.group.parentId) {
|
|
62995
|
+
this.$message.warning("所属分组不能选中自身");
|
|
62996
|
+
return [2
|
|
62997
|
+
/*return*/
|
|
62998
|
+
];
|
|
62999
|
+
}
|
|
63000
|
+
|
|
62910
63001
|
return [4
|
|
62911
63002
|
/*yield*/
|
|
62912
63003
|
, this.service.saveCategory(this.group)];
|