@egova/egova-api 1.0.86 → 1.0.89
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/LICENSE +201 -201
- package/README.md +1 -1
- package/dist/index.common.js +471 -131
- package/dist/index.css +1 -1
- package/dist/index.umd.js +471 -131
- package/dist/index.umd.min.js +4 -4
- package/dist/static/img/{iconfont.26f82952.svg → iconfont.559d2630.svg} +83 -83
- package/dist/types/src/common/index.d.ts +2 -2
- package/dist/types/src/common/object-factory.d.ts +29 -29
- package/dist/types/src/common/utils/index.d.ts +1 -1
- package/dist/types/src/common/utils/tree-data.d.ts +3 -3
- package/dist/types/src/components/code-editor/index.d.ts +8 -8
- package/dist/types/src/components/common-tree/index.d.ts +52 -52
- package/dist/types/src/components/tips-form-label/index.d.ts +6 -6
- package/dist/types/src/decorator.d.ts +17 -17
- package/dist/types/src/decorators/autowired.d.ts +1 -1
- package/dist/types/src/decorators/receivable.d.ts +9 -9
- package/dist/types/src/decorators/service-handler.d.ts +11 -11
- package/dist/types/src/index.d.ts +7 -7
- package/dist/types/src/models/common/index.d.ts +6 -6
- package/dist/types/src/models/common/page-path.d.ts +5 -5
- package/dist/types/src/models/common/paging.d.ts +5 -5
- package/dist/types/src/models/common/query-model.d.ts +8 -8
- package/dist/types/src/models/common/sorts.d.ts +5 -5
- package/dist/types/src/models/common/user-info.d.ts +13 -13
- package/dist/types/src/models/index.d.ts +1 -1
- package/dist/types/src/services/base-service.d.ts +37 -37
- package/dist/types/src/services/common-service.d.ts +8 -8
- package/dist/types/src/services/index.d.ts +3 -3
- package/dist/types/src/settings/index.d.ts +5 -5
- package/dist/types/src/views/project-combine/api-project/api-project-detail/api/index.d.ts +16 -16
- package/dist/types/src/views/project-combine/api-project/api-project-detail/catalog/index.d.ts +6 -6
- package/dist/types/src/views/project-combine/api-project/api-project-detail/ddcat/index.d.ts +6 -6
- package/dist/types/src/views/project-combine/api-project/api-project-detail/index.d.ts +10 -10
- package/dist/types/src/views/project-combine/api-project/api-project-list/index.d.ts +60 -60
- package/dist/types/src/views/project-combine/api-project/index.d.ts +70 -70
- package/dist/types/src/views/project-combine/api-project/service.d.ts +6 -6
- package/dist/types/src/views/project-combine/combine-model/base-editor/index.d.ts +8 -8
- package/dist/types/src/views/project-combine/combine-model/index.d.ts +59 -59
- package/dist/types/src/views/project-combine/combine-model/request-parameter-list/index.d.ts +35 -35
- package/dist/types/src/views/project-combine/combine-model/response-parameter-list/index.d.ts +4 -4
- package/dist/types/src/views/project-combine/combine-model/test-run-modal/index.d.ts +19 -19
- package/dist/types/src/views/project-combine/data-model/data-model-doc/index.d.ts +13 -13
- package/dist/types/src/views/project-combine/data-model/data-model-list/index.d.ts +60 -60
- package/dist/types/src/views/project-combine/data-model/index.d.ts +60 -60
- package/dist/types/src/views/project-combine/data-model/service.d.ts +5 -5
- package/dist/types/src/views/project-combine/index.d.ts +34 -34
- package/dist/types/src/views/project-combine/service.d.ts +12 -12
- package/dist/types/src/views/project-combine/tree/add-node-modal/index.d.ts +20 -16
- package/dist/types/src/views/project-combine/tree/index.d.ts +32 -32
- package/dist/types/src/views/project-combine/tree/node/index.d.ts +11 -11
- package/dist/types/src/views/project-combine/tree/service.d.ts +5 -5
- package/dist/types/src/views/project-combine/tree-selector/index.d.ts +21 -0
- package/dist/types/src/views/project-combine/tree-selector/tree-node/index.d.ts +7 -0
- package/dist/types/src/views/project-comment/index.d.ts +15 -15
- package/dist/types/src/views/project-comment/item/index.d.ts +10 -10
- package/dist/types/src/views/project-comment/service.d.ts +5 -5
- package/dist/types/src/views/project-detail/after-execution-script/index.d.ts +7 -7
- package/dist/types/src/views/project-detail/after-execution-transfer/index.d.ts +27 -27
- package/dist/types/src/views/project-detail/base-editor-setting.d.ts +7 -7
- package/dist/types/src/views/project-detail/current-variable-modal/index.d.ts +5 -5
- package/dist/types/src/views/project-detail/global-variable-modal/index.d.ts +15 -15
- package/dist/types/src/views/project-detail/group-select/index.d.ts +14 -14
- package/dist/types/src/views/project-detail/headers-setting/index.d.ts +10 -10
- package/dist/types/src/views/project-detail/index.d.ts +30 -30
- package/dist/types/src/views/project-detail/interface-settings/index.d.ts +25 -25
- package/dist/types/src/views/project-detail/interface-settings/model.d.ts +43 -43
- package/dist/types/src/views/project-detail/params-setting/index.d.ts +34 -34
- package/dist/types/src/views/project-detail/pre-execution-setting/index.d.ts +16 -16
- package/dist/types/src/views/project-detail/response/index.d.ts +36 -36
- package/dist/types/src/views/project-detail/security-setting/index.d.ts +18 -18
- package/dist/types/src/views/project-detail/service.d.ts +15 -15
- package/dist/types/src/views/project-detail/tree/index.d.ts +53 -53
- package/dist/types/src/views/project-detail/tree-node/index.d.ts +9 -9
- package/dist/types/src/views/project-list/add-project-modal/index.d.ts +6 -6
- package/dist/types/src/views/project-list/card/index.d.ts +9 -9
- package/dist/types/src/views/project-list/confirm/index.d.ts +10 -10
- package/dist/types/src/views/project-list/index.d.ts +30 -30
- package/dist/types/src/views/project-list/service.d.ts +7 -7
- package/package.json +2 -2
package/dist/index.common.js
CHANGED
|
@@ -21181,7 +21181,7 @@ exports.f = DESCRIPTORS ? $getOwnPropertyDescriptor : function getOwnPropertyDes
|
|
|
21181
21181
|
/***/ "07ab":
|
|
21182
21182
|
/***/ (function(module, exports) {
|
|
21183
21183
|
|
|
21184
|
-
module.exports = "<div class=\"u-tree-node\" @click=\"onClickNode\">\
|
|
21184
|
+
module.exports = "<div class=\"u-tree-node\" @click=\"onClickNode\">\n <i class=\"iconfont\" :class=\"data.expand? 'icon-expand': 'icon-unexpand'\"></i>\n <div class=\"name\">{{data.name}}</div>\n <i-dropdown @on-click=\"onClick\" transfer transfer-class-name=\"node-oprate\">\n <i-icon type=\"ios-more\" />\n <i-dropdown-menu slot=\"list\">\n <i-dropdown-item v-for=\"item in actions\" :key=\"item.name\" :name=\"item.name\">\n <template v-if=\"item.name === 'import'\">\n <i-upload class=\"action-item\" :action=\"uploadAction\" accept=\".json\" :headers=\"headers\" :show-upload-list=\"false\" :format=\"['json']\" :on-success=\"onSuccess\">\n <i class=\"iconfont icon-import\" title=\"导入\"></i>\n 导入\n </i-upload>\n </template>\n <template v-else> <i class=\"iconfont\" :class=\"'icon-' + (item.icon || item.name)\"></i>{{item.text}} </template>\n </i-dropdown-item>\n </i-dropdown-menu>\n </i-dropdown>\n</div>\n"
|
|
21185
21185
|
|
|
21186
21186
|
/***/ }),
|
|
21187
21187
|
|
|
@@ -21212,14 +21212,14 @@ module.exports = function (obj) {
|
|
|
21212
21212
|
/***/ "086a":
|
|
21213
21213
|
/***/ (function(module, exports) {
|
|
21214
21214
|
|
|
21215
|
-
module.exports = "<i-modal draggable sticky transfer reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1000\" class=\"u-test-run-modal diy-modal\">\
|
|
21215
|
+
module.exports = "<i-modal draggable sticky transfer reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1000\" class=\"u-test-run-modal diy-modal\">\n <header slot=\"header\">运行结果</header>\n <main>\n <section class=\"u-test-run-content\">\n <section class=\"title-g\">参数</section>\n <section class=\"card-panel context-editor\">\n <u-base-editor :data.sync=\"context\"></u-base-editor>\n </section>\n <i-row justify=\"end\">\n <i-button class=\"diy-btn-default\" @click=\"onReset\">重置</i-button>\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onProcess\">执行</i-button>\n </i-row>\n <section class=\"title-g\">结果</section>\n <section class=\"card-panel\">\n <i-tabs>\n <i-tab-pane label=\"响应\" name=\"response\">\n <u-base-editor :class=\"['editor', error ? 'editor-error' : '']\" :data.sync=\"result\" :readOnly=\"true\"></u-base-editor>\n </i-tab-pane>\n <i-tab-pane label=\"输出\" name=\"output\">\n <u-base-editor :data.sync=\"output\" :readOnly=\"true\"></u-base-editor>\n </i-tab-pane>\n </i-tabs>\n </section>\n </section>\n </main>\n <footer slot=\"footer\">\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onOk\">确定</i-button>\n </footer>\n</i-modal>\n"
|
|
21216
21216
|
|
|
21217
21217
|
/***/ }),
|
|
21218
21218
|
|
|
21219
21219
|
/***/ "0941":
|
|
21220
21220
|
/***/ (function(module, exports) {
|
|
21221
21221
|
|
|
21222
|
-
module.exports = "<i-modal draggable sticky transfer reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1280\" class=\"u-api-project-modal diy-modal\">\
|
|
21222
|
+
module.exports = "<i-modal draggable sticky transfer reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1280\" class=\"u-api-project-modal diy-modal\">\n <header slot=\"header\">添加API</header>\n <main>\n <i-split v-model=\"splitHorizontal\">\n <section slot=\"left\" class=\"card-panel card-panel-no-right-border\">\n <div class=\"card-panel-header\">\n <span>选择列表</span>\n </div>\n <div class=\"card-panel-main\">\n <u-tree :initSelectItem=\"initNode\" :prop-data=\"treeData\" @on-select=\"onSelect\" />\n </div>\n </section>\n <section slot=\"right\" class=\"right-content\">\n <i-split v-model=\"splitVertical\" mode=\"vertical\" max=\"600\">\n <section slot=\"top\" class=\"card-panel card-panel-no-bottom-border\">\n <div class=\"card-panel-header\">\n <span>选择模型</span>\n </div>\n <div class=\"card-panel-main\">\n <u-api-project-list\n :data=\"tableData\"\n :paging.sync=\"paging\"\n @on-search=\"onSearch\"\n @on-page-index-change=\"onPageIndexChange\"\n @on-page-size-change=\"onPageSizeChange\"\n @on-selection-change=\"onSelectionChange\"\n @on-delete-refresh=\"getTableData\"\n >\n </u-api-project-list>\n </div>\n </section>\n <section slot=\"bottom\" :class=\"['card-panel', collapse ? 'card-panel-no-bottom-border' : '']\">\n <div class=\"card-panel-header\">\n <span>已选({{checkedLength}})</span>\n <span>\n <i-poptip confirm title=\"您确定要清空已选中的数据吗?\" transfer placement=\"top-end\" @on-ok=\"onBatchDelete\">\n <span class=\"action-text\">\n <i class=\"iconfont icon-delete\"></i>\n <span>清空</span>\n </span>\n </i-poptip>\n <span class=\"action-text collapse-text\" @click=\"onClickCollapse\">\n <span>{{collapse ? \"展开\" : \"收起\"}}</span>\n <!-- <i class=\"iconfont icon-expand\"></i> -->\n </span>\n </span>\n </div>\n <div class=\"card-panel-main\">\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"checkedData\">\n <template #operates=\"{row,index}\">\n <div class=\"row-actions\">\n <i-poptip confirm transfer title=\"确认要删除这条数据吗?\" @on-ok=\"onDelete(row)\">\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\n </i-poptip>\n </div>\n </template>\n </i-table>\n </div>\n </section>\n </i-split>\n </section>\n </i-split>\n <i-spin fix v-if=\"isLoading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n </main>\n <footer slot=\"footer\">\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">确定</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\n </footer>\n</i-modal>\n"
|
|
21223
21223
|
|
|
21224
21224
|
/***/ }),
|
|
21225
21225
|
|
|
@@ -22337,7 +22337,7 @@ module.exports = fails(function () {
|
|
|
22337
22337
|
/***/ "10cf":
|
|
22338
22338
|
/***/ (function(module, exports) {
|
|
22339
22339
|
|
|
22340
|
-
module.exports = "<i-modal\
|
|
22340
|
+
module.exports = "<i-modal\n draggable\n sticky\n reset-drag-position\n v-model=\"value\"\n class=\"diy-modal current-variable-modal\"\n :mask-closable=\"false\"\n footer-hide\n title=\"查看当前变量\"\n>\n <i-form\n :label-width=\"95\"\n class=\"diy-form\"\n label-colon\n label-position=\"left\"\n >\n <i-form-item label=\"环境名称\">\n <i-input class=\"diy-input\" placeholder=\"请输入环境名称\"></i-input>\n </i-form-item>\n <i-form-item label=\"环境域名\" class=\"realm-name\">\n <i-input class=\"diy-input\" placeholder=\"请输入环境域名\">\n <i-select slot=\"prepend\" class=\"diy-select\"> </i-select>\n </i-input>\n </i-form-item>\n <i-form-item label=\"Header\" class=\"name-value-item\">\n <i-input class=\"diy-input\"></i-input>\n <i-input class=\"diy-input\"></i-input>\n </i-form-item>\n <i-form-item label=\"Cookie\" class=\"name-value-item\">\n <i-input class=\"diy-input\"></i-input>\n <i-input class=\"diy-input\"></i-input>\n </i-form-item>\n <i-form-item label=\"Global\" class=\"name-value-item\">\n <i-input class=\"diy-input\"></i-input>\n <i-input class=\"diy-input\"></i-input>\n </i-form-item>\n </i-form>\n</i-modal>\n"
|
|
22341
22341
|
|
|
22342
22342
|
/***/ }),
|
|
22343
22343
|
|
|
@@ -24809,7 +24809,7 @@ module.exports = function (iterable, unboundFunction, options) {
|
|
|
24809
24809
|
/***/ "22e8":
|
|
24810
24810
|
/***/ (function(module, exports) {
|
|
24811
24811
|
|
|
24812
|
-
module.exports = "<article class=\"headers-setting\">\
|
|
24812
|
+
module.exports = "<article class=\"headers-setting\">\n <header>\n <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onAdd\">\n <i class=\"api-icon icon-add\"></i>新增\n </i-button>\n <!-- <i-button type=\"primary\" ghost class=\"diy-btn-primary\">\n <i class=\"api-icon icon-import\"></i>导入参数\n </i-button>\n <i-button type=\"primary\" ghost class=\"diy-btn-primary\">\n <i class=\"api-icon icon-export\"></i>导出参数\n </i-button> -->\n </header>\n <i-table\n class=\"diy-table\"\n :columns=\"columns\"\n :data=\"interfaceModel.requestHeaders\"\n >\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\n <i-checkbox\n :value=\"!interfaceModel.requestHeaders[index].disabled\"\n @on-change=\"onChangeDisabled($event,interfaceModel.requestHeaders[index])\"\n >\n </i-checkbox>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"name\">\n <i-input\n class=\"diy-input\"\n placeholder=\"输入参数名称\"\n v-model=\"interfaceModel.requestHeaders[index].name\"\n >\n </i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"value\">\n <i-input\n class=\"diy-input\"\n placeholder=\"输入参数值\"\n v-model=\"interfaceModel.requestHeaders[index].value\"\n >\n </i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"text\">\n <i-input\n class=\"diy-input\"\n placeholder=\"备注\"\n v-model=\"interfaceModel.requestHeaders[index].text\"\n >\n </i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"action\">\n <i-poptip title=\"确认删除这条数据吗?\" confirm @on-ok=\"onDelete(index)\" transfer>\n <span class=\"action-btn delete\">删除</span>\n </i-poptip>\n </template>\n </i-table>\n</article>\n"
|
|
24813
24813
|
|
|
24814
24814
|
/***/ }),
|
|
24815
24815
|
|
|
@@ -26135,7 +26135,7 @@ module.exports = typeof Reflect == 'object' && Reflect.apply || (bind ? call.bin
|
|
|
26135
26135
|
/***/ "2c48":
|
|
26136
26136
|
/***/ (function(module, exports) {
|
|
26137
26137
|
|
|
26138
|
-
module.exports = "<article class=\"response\">\
|
|
26138
|
+
module.exports = "<article class=\"response\">\n <header\n :class=\"{'status-success': response.code === 200, 'status-fail': response.code && response.code!==200}\"\n >\n <span class=\"title\">响应</span>\n <div class=\"items-div\">\n <span class=\"item-name\">响应码:</span\n ><span class=\"item-value\">{{response.code}}</span>\n <span class=\"item-name\">时间:</span\n ><span class=\"item-value\">{{response.time}}ms</span>\n <span class=\"item-name\">大小:</span\n ><span class=\"item-value\">{{response.size}}B</span>\n </div>\n </header>\n <main>\n <div class=\"response-bar\">\n <div\n class=\"tag\"\n @click=\"onClickResponseSettingTpye(item)\"\n :class=\"{'active': item.name === active.name}\"\n v-for=\"(item,index) in responseSettingTypeList\"\n :key=\"item.name\"\n >\n <span\n >{{item.title + (item.num > 0 ? '(' + item.num + ')':\n \"\")}}</span\n >\n </div>\n </div>\n <div class=\"response-content\">\n <template v-if=\"active.name === 'content'\">\n <header>\n <!-- <i-radio-group\n type=\"button\"\n class=\"diy-radio-group-button\"\n v-model=\"contentType\"\n >\n <i-radio label=\"Pretty\">Pretty(美化)</i-radio>\n <i-radio label=\"Raw\">Raw(原生)</i-radio>\n </i-radio-group> -->\n <i-radio-group\n type=\"button\"\n class=\"diy-radio-group-button\"\n v-model=\"contentType\"\n >\n <i-radio label=\"originalContent\">转换前</i-radio>\n <i-radio label=\"content\">转换后</i-radio>\n </i-radio-group>\n <i-dropdown class=\"diy-dropdown\" @on-click=\"onChangeLang\">\n <i-button ghost type=\"primary\" class=\"diy-btn-primary\">\n <span class=\"lang\">{{lang.toUpperCase()}}</span>\n <i class=\"api-icon icon-select\"></i>\n </i-button>\n <i-dropdown-menu slot=\"list\">\n <i-dropdown-item name=\"json\">JSON</i-dropdown-item>\n <i-dropdown-item name=\"xml\">XML</i-dropdown-item>\n </i-dropdown-menu>\n </i-dropdown>\n </header>\n <u-editor\n :value=\"content\"\n :lang=\"lang\"\n @inited=\"onEditorInited\"\n ></u-editor>\n </template>\n <div v-if=\"active.name === 'responseHeaders'\">\n <i-table\n :columns=\"headerColumns\"\n :data=\"responseHeaders\"\n class=\"diy-table\"\n >\n </i-table>\n </div>\n <template v-if=\"active.name === 'requestHeaders'\">\n <i-table\n :columns=\"headerColumns\"\n :data=\"requestHeaders\"\n class=\"diy-table\"\n >\n </i-table>\n </template>\n <template v-if=\"active.name === 'cookies'\">\n <i-table\n :columns=\"headerColumns\"\n :data=\"cookies\"\n class=\"diy-table\"\n >\n </i-table>\n </template>\n <template v-if=\"active.name==='output'\">\n <span class=\"output\">{{output}}</span>\n </template>\n </div>\n </main>\n</article>\n"
|
|
26139
26139
|
|
|
26140
26140
|
/***/ }),
|
|
26141
26141
|
|
|
@@ -26383,7 +26383,7 @@ module.exports = function (it) {
|
|
|
26383
26383
|
/***/ "35e3":
|
|
26384
26384
|
/***/ (function(module, exports) {
|
|
26385
26385
|
|
|
26386
|
-
module.exports = "<editor class=\"code-edit\" v-model=\"code\" :options=\"option\" @init=\"editorInit\" :lang=\"lang\" width=\"100%\" height=\"100%\"></editor>\
|
|
26386
|
+
module.exports = "<editor class=\"code-edit\" v-model=\"code\" :options=\"option\" @init=\"editorInit\" :lang=\"lang\" width=\"100%\" height=\"100%\"></editor>\n"
|
|
26387
26387
|
|
|
26388
26388
|
/***/ }),
|
|
26389
26389
|
|
|
@@ -26416,14 +26416,14 @@ module.exports = DESCRIPTORS ? Object.defineProperties : function defineProperti
|
|
|
26416
26416
|
/***/ "37f5":
|
|
26417
26417
|
/***/ (function(module, exports) {
|
|
26418
26418
|
|
|
26419
|
-
module.exports = "<article class=\"catalog-params\">\
|
|
26419
|
+
module.exports = "<article class=\"catalog-params\">\n <header>\n 请求体为 JSON 数组,每一个 JSON 对象应符合如下的格式:\n </header>\n <i-table height=\"200\" class=\"diy-table\" :columns=\"columns\" :data=\"dataList\">\n <template slot-scope=\"{ row,index }\" slot=\"type\">\n {{(row.typeDict || {}).text}}\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"required\">\n {{row.required ? \"是\": \"否\"}}\n </template>\n </i-table>\n</article>\n"
|
|
26420
26420
|
|
|
26421
26421
|
/***/ }),
|
|
26422
26422
|
|
|
26423
26423
|
/***/ "3a71":
|
|
26424
26424
|
/***/ (function(module, exports) {
|
|
26425
26425
|
|
|
26426
|
-
module.exports = "<i-collapse v-model=\"value\" simple class=\"api-params\">\
|
|
26426
|
+
module.exports = "<i-collapse v-model=\"value\" simple class=\"api-params\">\n <i-panel name=\"1\">\n <span>Query参数</span>\n <span class=\"status\">{{getExpand('1') ? \"收起\" : \"展开\"}}</span>\n <div slot=\"content\" class=\"setting-content\">\n <main>\n <i-table\n height=\"200\"\n class=\"diy-table\"\n :columns=\"paramColumns\"\n :data=\"queryDataList\"\n >\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\n <i-checkbox\n disabled\n :value=\"!queryDataList[index].disabled\"\n >\n </i-checkbox>\n </template>\n </i-table>\n </main>\n </div>\n </i-panel>\n <i-panel name=\"2\">\n <span>Body参数</span>\n <span class=\"status\">{{getExpand('2') ? \"收起\" : \"展开\"}}</span>\n <div slot=\"content\" class=\"setting-content\">\n <main>\n <i-table\n height=\"200\"\n class=\"diy-table\"\n :columns=\"paramColumns\"\n :data=\"bodyDataList\"\n v-if=\"isFormData\"\n >\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\n <i-checkbox\n disabled\n :value=\"!bodyDataList[index].disabled\"\n >\n </i-checkbox>\n </template>\n </i-table>\n <json-viewer\n v-else\n :value=\"model.json\"\n boxed\n :copyable=\"{copyText: '复制', copiedText: '已复制'}\"\n :expanded=\"true\"\n :expand-depth=\"5\"\n >\n </json-viewer>\n </main>\n </div>\n </i-panel>\n</i-collapse>\n"
|
|
26427
26427
|
|
|
26428
26428
|
/***/ }),
|
|
26429
26429
|
|
|
@@ -26440,7 +26440,7 @@ module.exports = uncurryThis({}.isPrototypeOf);
|
|
|
26440
26440
|
/***/ "3b85":
|
|
26441
26441
|
/***/ (function(module, exports) {
|
|
26442
26442
|
|
|
26443
|
-
module.exports = "<i-modal :mask-closable=\"false\" draggable sticky reset-drag-position v-model=\"show\" class=\"diy-modal\">\
|
|
26443
|
+
module.exports = "<i-modal :mask-closable=\"false\" draggable sticky reset-drag-position v-model=\"show\" class=\"diy-modal\">\n <header slot=\"header\">\n {{isEdit ? \"编辑合并模型文件夹\" : \"新增合并模型文件夹\"}}\n </header>\n <main>\n <i-form ref=\"addForm\" :model=\"data\" :rules=\"rules\">\n <i-form-item prop=\"name\" label=\"合并模型文件夹名称\">\n <i-input class=\"diy-input\" v-model=\"data.name\"></i-input>\n </i-form-item>\n <i-form-item v-if=\"isEdit\" label=\"所属分组\" class=\"update-category\">\n <u-tree-selector :treeData=\"categories\" leaf-name=\"task\" :canChooseFolder=\"true\" v-model=\"categoryData.id\" @on-select=\"selectCategory\">\n </u-tree-selector>\n </i-form-item>\n </i-form>\n </main>\n <footer slot=\"footer\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click.stop=\"onSave\">确定</i-button>\n <i-button class=\"diy-btn-default\" @click.stop=\"onCancel\">取消</i-button>\n </footer>\n</i-modal>\n"
|
|
26444
26444
|
|
|
26445
26445
|
/***/ }),
|
|
26446
26446
|
|
|
@@ -26623,7 +26623,7 @@ module.exports = function (it) {
|
|
|
26623
26623
|
/***/ "45bb":
|
|
26624
26624
|
/***/ (function(module, exports) {
|
|
26625
26625
|
|
|
26626
|
-
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"880\" class=\"u-data-model-doc-modal diy-modal\" transfer>\
|
|
26626
|
+
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"880\" class=\"u-data-model-doc-modal diy-modal\" transfer>\n <header slot=\"header\">查看接口文档</header>\n <main>\n <div class=\"v-mavon-container\">\n <!-- startprint -->\n <mavon-editor :subfield=\"false\" :toolbars=\"toolbars\" :value=\"doc\" defaultOpen=\"preview\" @save=\"onSave\"></mavon-editor>\n <!-- endprint -->\n <iframe id=\"printf\" src=\"\" width=\"0\" height=\"0\" frameborder=\"0\"></iframe>\n </div>\n </main>\n <footer slot=\"footer\">\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onOk\">确定</i-button>\n </footer>\n</i-modal>\n"
|
|
26627
26627
|
|
|
26628
26628
|
/***/ }),
|
|
26629
26629
|
|
|
@@ -26692,14 +26692,14 @@ 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 @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</article>\n"
|
|
26696
26696
|
|
|
26697
26697
|
/***/ }),
|
|
26698
26698
|
|
|
26699
26699
|
/***/ "470f":
|
|
26700
26700
|
/***/ (function(module, exports) {
|
|
26701
26701
|
|
|
26702
|
-
module.exports = "<i-modal\
|
|
26702
|
+
module.exports = "<i-modal\n draggable\n sticky\n reset-drag-position\n v-model=\"value\"\n class=\"diy-modal global-variable-modal\"\n :mask-closable=\"false\"\n title=\"全局参数设置\"\n>\n <header class=\"types\">\n <div\n class=\"tag\"\n @click=\"onCheckTpye(item)\"\n :class=\"{'active': item.name === active.name}\"\n v-for=\"(item,index) in typeList\"\n :key=\"item.name\"\n >\n <span>{{item.title }}</span>\n </div>\n </header>\n <main class=\"content\">\n <i-button type=\"primary\" ghost class=\"diy-btn-primary\">\n <i class=\"api-icon icon-add\"></i>新增参数\n </i-button>\n <i-table\n :columns=\"columns\"\n :data=\"dataList\"\n class=\"diy-table\"\n height=\"400\"\n >\n <template slot-scope=\"{ row,index }\" slot=\"name\">\n <i-input\n class=\"diy-input\"\n placeholder=\"输入参数名称\"\n v-model=\"dataList[index].name\"\n ></i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"value\">\n <i-input\n class=\"diy-input\"\n placeholder=\"输入参数值\"\n v-model=\"dataList[index].value\"\n ></i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"required\">\n <i-switch v-model=\"dataList[index].required\">\n <span slot=\"open\">是</span>\n <span slot=\"close\">否</span>\n </i-switch>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"remark\">\n <i-input\n class=\"diy-input\"\n placeholder=\"输入备注\"\n v-model=\"dataList[index].remark\"\n ></i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"action\">\n <span\n class=\"action-btn delete\"\n @click=\"onDelete(dataList,index)\"\n >删除</span\n >\n <span class=\"action-btn\" @click=\"onUp(dataList,index)\"\n >上移</span\n >\n <span class=\"action-btn\" @click=\"onDown(dataList,index)\"\n >下移</span\n >\n <span\n v-if=\"index !== 0\"\n class=\"action-btn\"\n @click=\"onTop(dataList,index)\"\n >置顶</span\n >\n <span\n v-if=\"index < dataList.length - 1\"\n class=\"action-btn\"\n @click=\"onBottom(dataList,index)\"\n >置底</span\n >\n </template>\n </i-table>\n </main>\n <slot slot=\"footer\" name=\"footer\"> </slot>\n</i-modal>\n"
|
|
26703
26703
|
|
|
26704
26704
|
/***/ }),
|
|
26705
26705
|
|
|
@@ -38080,6 +38080,13 @@ module.exports = {
|
|
|
38080
38080
|
};
|
|
38081
38081
|
|
|
38082
38082
|
|
|
38083
|
+
/***/ }),
|
|
38084
|
+
|
|
38085
|
+
/***/ "58d2":
|
|
38086
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
38087
|
+
|
|
38088
|
+
// extracted by mini-css-extract-plugin
|
|
38089
|
+
|
|
38083
38090
|
/***/ }),
|
|
38084
38091
|
|
|
38085
38092
|
/***/ "5926":
|
|
@@ -38474,7 +38481,7 @@ module.exports = !$assign || fails(function () {
|
|
|
38474
38481
|
/***/ "6255":
|
|
38475
38482
|
/***/ (function(module, exports) {
|
|
38476
38483
|
|
|
38477
|
-
module.exports = "<i-modal\
|
|
38484
|
+
module.exports = "<i-modal\n draggable\n sticky\n reset-drag-position\n v-model=\"value\"\n class=\"diy-modal\"\n :mask-closable=\"false\"\n :title=\"data.id ? '编辑项目': '新建项目'\"\n>\n <i-form :label-width=\"95\" class=\"diy-form\" label-colon>\n <i-form-item label=\"项目名称\" required>\n <i-input\n v-model=\"data.name\"\n class=\"diy-input\"\n placeholder=\"请输入项目名称\"\n ></i-input>\n </i-form-item>\n <i-form-item label=\"项目描述\">\n <i-input\n class=\"diy-input\"\n type=\"textarea\"\n :rows=\"4\"\n v-model=\"data.description\"\n placeholder=\"请输入项目描述\"\n ></i-input>\n </i-form-item>\n </i-form>\n <slot slot=\"footer\" name=\"footer\"> </slot>\n</i-modal>\n"
|
|
38478
38485
|
|
|
38479
38486
|
/***/ }),
|
|
38480
38487
|
|
|
@@ -38927,7 +38934,7 @@ ace.define("ace/snippets/javascript",["require","exports","module"],function(e,t
|
|
|
38927
38934
|
/***/ "6d46":
|
|
38928
38935
|
/***/ (function(module, exports) {
|
|
38929
38936
|
|
|
38930
|
-
module.exports = "<article class=\"u-common-tree\" :class=\"className.join(' ')\">\
|
|
38937
|
+
module.exports = "<article class=\"u-common-tree\" :class=\"className.join(' ')\">\n <slot name=\"header\"></slot>\n <section class=\"content\">\n <i-input class=\"search-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</article>\n"
|
|
38931
38938
|
|
|
38932
38939
|
/***/ }),
|
|
38933
38940
|
|
|
@@ -39659,7 +39666,7 @@ module.exports = function (NAME) {
|
|
|
39659
39666
|
/***/ "7640":
|
|
39660
39667
|
/***/ (function(module, exports) {
|
|
39661
39668
|
|
|
39662
|
-
module.exports = "<article class=\"params-setting\">\r\n <i-collapse v-model=\"value\" simple>\r\n <i-panel name=\"1\">\r\n <span>Query参数</span>\r\n <span class=\"status\">{{getExpand('1') ? \"收起\" : \"展开\"}}</span>\r\n <div slot=\"content\" class=\"setting-content\">\r\n <header>\r\n <i-button\r\n type=\"primary\"\r\n ghost\r\n class=\"diy-btn-primary\"\r\n @click=\"onAddRequestParam\"\r\n >\r\n <i class=\"api-icon icon-add\"></i>新增参数\r\n </i-button>\r\n </header>\r\n <main>\r\n <i-table\r\n height=\"200\"\r\n width=\"1280\"\r\n class=\"diy-table\"\r\n :columns=\"paramColumns\"\r\n :data=\"queryDataList\"\r\n >\r\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\r\n <i-checkbox\r\n :value=\"!queryDataList[index].disabled\"\r\n @on-change=\"onChangeDisabled($event,queryDataList[index])\"\r\n >\r\n </i-checkbox>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"name\">\r\n <i-input\r\n class=\"diy-input\"\r\n placeholder=\"输入参数名称\"\r\n v-model=\"queryDataList[index].name\"\r\n ></i-input>\r\n </template>\r\n <template\r\n slot-scope=\"{ row,index }\"\r\n slot=\"valueContent\"\r\n >\r\n <i-input\r\n class=\"diy-input\"\r\n placeholder=\"输入参数值\"\r\n v-model=\"queryDataList[index].valueContent\"\r\n ></i-input>\r\n </template>\r\n <!-- <template slot-scope=\"{ row,index }\" slot=\"required\">\r\n <i-switch v-model=\"queryDataList[index].required\">\r\n <span slot=\"open\">是</span>\r\n <span slot=\"close\">否</span>\r\n </i-switch>\r\n </template> -->\r\n <template slot-scope=\"{ row,index }\" slot=\"text\">\r\n <i-input\r\n class=\"diy-input\"\r\n placeholder=\"输入备注\"\r\n v-model=\"queryDataList[index].text\"\r\n ></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"action\">\r\n <i-poptip class=\"action-btn delete\" title=\"确认删除这条数据吗?\" confirm @on-ok=\"onDelete(queryDataList,index)\" transfer>\r\n <span\r\n class=\"action-btn delete\"\r\n >删除</span\r\n >\r\n </i-poptip>\r\n <span\r\n class=\"action-btn\"\r\n @click=\"onUp(queryDataList,index)\"\r\n >上移</span\r\n >\r\n <span\r\n class=\"action-btn\"\r\n @click=\"onDown(queryDataList,index)\"\r\n >下移</span\r\n >\r\n <span\r\n v-if=\"index !== 0\"\r\n class=\"action-btn\"\r\n @click=\"onTop(queryDataList,index)\"\r\n >置顶</span\r\n >\r\n <span\r\n v-if=\"index < queryDataList.length - 1\"\r\n class=\"action-btn\"\r\n @click=\"onBottom(queryDataList,index)\"\r\n >置底</span\r\n >\r\n </template>\r\n </i-table>\r\n </main>\r\n </div>\r\n </i-panel>\r\n <i-panel name=\"2\">\r\n <span>Body参数</span>\r\n <span class=\"status\">{{getExpand('2') ? \"收起\" : \"展开\"}}</span>\r\n <div slot=\"content\" class=\"setting-content\">\r\n <header>\r\n <i-button\r\n v-if=\"isFormData\"\r\n type=\"primary\"\r\n ghost\r\n class=\"diy-btn-primary\"\r\n @click=\"onAddBodyParam\"\r\n >\r\n <i class=\"api-icon icon-add\"></i>新增参数\r\n </i-button>\r\n <i-button\r\n v-else\r\n type=\"primary\"\r\n ghost\r\n class=\"diy-btn-primary\"\r\n @click=\"onBeautify\"\r\n >\r\n <i class=\"api-icon icon-view\"></i>格式化\r\n </i-button>\r\n <i-select\r\n transfer\r\n v-model=\"interfaceModel.info.requestBodyType\"\r\n class=\"diy-select\"\r\n >\r\n <i-option\r\n v-for=\"item in requestBodyTypeList\"\r\n :value=\"item.name\"\r\n :key=\"item.name\"\r\n >{{item.text}}</i-option\r\n >\r\n </i-select>\r\n </header>\r\n <main>\r\n <i-table\r\n height=\"200\"\r\n width=\"1280\"\r\n class=\"diy-table\"\r\n :columns=\"paramColumns\"\r\n :data=\"bodyDataList\"\r\n v-if=\"isFormData\"\r\n >\r\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\r\n <i-checkbox\r\n :value=\"!bodyDataList[index].disabled\"\r\n @on-change=\"onChangeDisabled($event,bodyDataList[index])\"\r\n >\r\n </i-checkbox>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"name\">\r\n <i-input\r\n class=\"diy-input\"\r\n placeholder=\"输入参数名称\"\r\n v-model=\"bodyDataList[index].name\"\r\n ></i-input>\r\n </template>\r\n <template\r\n slot-scope=\"{ row,index }\"\r\n slot=\"valueContent\"\r\n >\r\n <i-input\r\n class=\"diy-input\"\r\n placeholder=\"输入参数值\"\r\n v-model=\"bodyDataList[index].valueContent\"\r\n ></i-input>\r\n </template>\r\n <!-- <template slot-scope=\"{ row,index }\" slot=\"required\">\r\n <i-switch v-model=\"bodyDataList[index].required\">\r\n <span slot=\"open\">是</span>\r\n <span slot=\"close\">否</span>\r\n </i-switch>\r\n </template> -->\r\n <template slot-scope=\"{ row,index }\" slot=\"text\">\r\n <i-input\r\n class=\"diy-input\"\r\n placeholder=\"输入备注\"\r\n v-model=\"bodyDataList[index].remark\"\r\n ></i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"action\">\r\n <span\r\n class=\"action-btn delete\"\r\n @click=\"onDeleteBodyParam(interfaceModel.formParams,row.id)\"\r\n >删除</span\r\n >\r\n <span\r\n class=\"action-btn\"\r\n @click=\"onUpBodyParam(interfaceModel.formParams,row.id)\"\r\n >上移</span\r\n >\r\n <span\r\n class=\"action-btn\"\r\n @click=\"onDownBodyParam(interfaceModel.formParams,row.id)\"\r\n >下移</span\r\n >\r\n <span\r\n v-if=\"index !== 0\"\r\n class=\"action-btn\"\r\n @click=\"onTopBodyParam(interfaceModel.formParams,row.id)\"\r\n >置顶</span\r\n >\r\n <span\r\n v-if=\"index < bodyDataList.length - 1\"\r\n class=\"action-btn\"\r\n @click=\"onBottomBodyParam(interfaceModel.formParams,row.id)\"\r\n >置底</span\r\n >\r\n </template>\r\n </i-table>\r\n <u-editor\r\n v-else\r\n :value.sync=\"interfaceModel.json\"\r\n lang=\"json\"\r\n @inited=\"onEditorInited\"\r\n ></u-editor>\r\n </main>\r\n </div>\r\n </i-panel>\r\n </i-collapse>\r\n</article>\r\n"
|
|
39669
|
+
module.exports = "<article class=\"params-setting\">\n <i-collapse v-model=\"value\" simple>\n <i-panel name=\"1\">\n <span>Query参数</span>\n <span class=\"status\">{{getExpand('1') ? \"收起\" : \"展开\"}}</span>\n <div slot=\"content\" class=\"setting-content\">\n <header>\n <i-button\n type=\"primary\"\n ghost\n class=\"diy-btn-primary\"\n @click=\"onAddRequestParam\"\n >\n <i class=\"api-icon icon-add\"></i>新增参数\n </i-button>\n </header>\n <main>\n <i-table\n height=\"200\"\n width=\"1280\"\n class=\"diy-table\"\n :columns=\"paramColumns\"\n :data=\"queryDataList\"\n >\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\n <i-checkbox\n :value=\"!queryDataList[index].disabled\"\n @on-change=\"onChangeDisabled($event,queryDataList[index])\"\n >\n </i-checkbox>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"name\">\n <i-input\n class=\"diy-input\"\n placeholder=\"输入参数名称\"\n v-model=\"queryDataList[index].name\"\n ></i-input>\n </template>\n <template\n slot-scope=\"{ row,index }\"\n slot=\"valueContent\"\n >\n <i-input\n class=\"diy-input\"\n placeholder=\"输入参数值\"\n v-model=\"queryDataList[index].valueContent\"\n ></i-input>\n </template>\n <!-- <template slot-scope=\"{ row,index }\" slot=\"required\">\n <i-switch v-model=\"queryDataList[index].required\">\n <span slot=\"open\">是</span>\n <span slot=\"close\">否</span>\n </i-switch>\n </template> -->\n <template slot-scope=\"{ row,index }\" slot=\"text\">\n <i-input\n class=\"diy-input\"\n placeholder=\"输入备注\"\n v-model=\"queryDataList[index].text\"\n ></i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"action\">\n <i-poptip class=\"action-btn delete\" title=\"确认删除这条数据吗?\" confirm @on-ok=\"onDelete(queryDataList,index)\" transfer>\n <span\n class=\"action-btn delete\"\n >删除</span\n >\n </i-poptip>\n <span\n class=\"action-btn\"\n @click=\"onUp(queryDataList,index)\"\n >上移</span\n >\n <span\n class=\"action-btn\"\n @click=\"onDown(queryDataList,index)\"\n >下移</span\n >\n <span\n v-if=\"index !== 0\"\n class=\"action-btn\"\n @click=\"onTop(queryDataList,index)\"\n >置顶</span\n >\n <span\n v-if=\"index < queryDataList.length - 1\"\n class=\"action-btn\"\n @click=\"onBottom(queryDataList,index)\"\n >置底</span\n >\n </template>\n </i-table>\n </main>\n </div>\n </i-panel>\n <i-panel name=\"2\">\n <span>Body参数</span>\n <span class=\"status\">{{getExpand('2') ? \"收起\" : \"展开\"}}</span>\n <div slot=\"content\" class=\"setting-content\">\n <header>\n <i-button\n v-if=\"isFormData\"\n type=\"primary\"\n ghost\n class=\"diy-btn-primary\"\n @click=\"onAddBodyParam\"\n >\n <i class=\"api-icon icon-add\"></i>新增参数\n </i-button>\n <i-button\n v-else\n type=\"primary\"\n ghost\n class=\"diy-btn-primary\"\n @click=\"onBeautify\"\n >\n <i class=\"api-icon icon-view\"></i>格式化\n </i-button>\n <i-select\n transfer\n v-model=\"interfaceModel.info.requestBodyType\"\n class=\"diy-select\"\n >\n <i-option\n v-for=\"item in requestBodyTypeList\"\n :value=\"item.name\"\n :key=\"item.name\"\n >{{item.text}}</i-option\n >\n </i-select>\n </header>\n <main>\n <i-table\n height=\"200\"\n width=\"1280\"\n class=\"diy-table\"\n :columns=\"paramColumns\"\n :data=\"bodyDataList\"\n v-if=\"isFormData\"\n >\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\n <i-checkbox\n :value=\"!bodyDataList[index].disabled\"\n @on-change=\"onChangeDisabled($event,bodyDataList[index])\"\n >\n </i-checkbox>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"name\">\n <i-input\n class=\"diy-input\"\n placeholder=\"输入参数名称\"\n v-model=\"bodyDataList[index].name\"\n ></i-input>\n </template>\n <template\n slot-scope=\"{ row,index }\"\n slot=\"valueContent\"\n >\n <i-input\n class=\"diy-input\"\n placeholder=\"输入参数值\"\n v-model=\"bodyDataList[index].valueContent\"\n ></i-input>\n </template>\n <!-- <template slot-scope=\"{ row,index }\" slot=\"required\">\n <i-switch v-model=\"bodyDataList[index].required\">\n <span slot=\"open\">是</span>\n <span slot=\"close\">否</span>\n </i-switch>\n </template> -->\n <template slot-scope=\"{ row,index }\" slot=\"text\">\n <i-input\n class=\"diy-input\"\n placeholder=\"输入备注\"\n v-model=\"bodyDataList[index].remark\"\n ></i-input>\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"action\">\n <span\n class=\"action-btn delete\"\n @click=\"onDeleteBodyParam(interfaceModel.formParams,row.id)\"\n >删除</span\n >\n <span\n class=\"action-btn\"\n @click=\"onUpBodyParam(interfaceModel.formParams,row.id)\"\n >上移</span\n >\n <span\n class=\"action-btn\"\n @click=\"onDownBodyParam(interfaceModel.formParams,row.id)\"\n >下移</span\n >\n <span\n v-if=\"index !== 0\"\n class=\"action-btn\"\n @click=\"onTopBodyParam(interfaceModel.formParams,row.id)\"\n >置顶</span\n >\n <span\n v-if=\"index < bodyDataList.length - 1\"\n class=\"action-btn\"\n @click=\"onBottomBodyParam(interfaceModel.formParams,row.id)\"\n >置底</span\n >\n </template>\n </i-table>\n <u-editor\n v-else\n :value.sync=\"interfaceModel.json\"\n lang=\"json\"\n @inited=\"onEditorInited\"\n ></u-editor>\n </main>\n </div>\n </i-panel>\n </i-collapse>\n</article>\n"
|
|
39663
39670
|
|
|
39664
39671
|
/***/ }),
|
|
39665
39672
|
|
|
@@ -40429,7 +40436,7 @@ module.exports = function (argument) {
|
|
|
40429
40436
|
/***/ "82af":
|
|
40430
40437
|
/***/ (function(module, exports) {
|
|
40431
40438
|
|
|
40432
|
-
module.exports = "<div class=\"v-data-modal-list-container\">\
|
|
40439
|
+
module.exports = "<div class=\"v-data-modal-list-container\">\n <header>\n <div class=\"condition\">\n <div class=\"input-item\">\n <span>编码:</span>\n <i-input class=\"diy-input\" placeholder=\"请输入编码\" v-model=\"condition.code\" @on-enter=\"onSearch\"></i-input>\n </div>\n <div class=\"input-item\">\n <span>名称:</span>\n <i-input class=\"diy-input\" placeholder=\"请输入名称\" v-model=\"condition.name\" @on-enter=\"onSearch\"></i-input>\n </div>\n <div class=\"search-btn\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onSearch\">查询</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onEmpty\">重置</i-button>\n </div>\n </div>\n </header>\n <main>\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"data\" @on-selection-change=\"onSelected\">\n <template slot=\"doc\" slot-scope=\"{row}\">\n <a @click=\"onOpenDoc(row)\">查看</a>\n </template>\n </i-table>\n </main>\n <div class=\"pagination\">\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>\n </div>\n <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\n</div>\n"
|
|
40433
40440
|
|
|
40434
40441
|
/***/ }),
|
|
40435
40442
|
|
|
@@ -41674,7 +41681,7 @@ module.exports = function (S, index, unicode) {
|
|
|
41674
41681
|
/***/ "8ab8":
|
|
41675
41682
|
/***/ (function(module, exports) {
|
|
41676
41683
|
|
|
41677
|
-
module.exports = "<article class=\"pre-execution-setting\">\
|
|
41684
|
+
module.exports = "<article class=\"pre-execution-setting\">\n <section class=\"script\">\n <u-editor\n @inited=\"onEditorInited\"\n :value.sync=\"script\"\n lang=\"groovy\"\n ></u-editor>\n </section>\n <section class=\"quick-input\">\n <div class=\"info\">\n <p>{{scriptData.description}}</p>\n <!-- <ul>\n <li>request: 请求</li>\n </ul> -->\n </div>\n <div class=\"quick-list\">\n <div v-for=\"type in scriptData.group\" class=\"quick-type\">\n <p>{{type.name}}</p>\n <div\n v-for=\"item in type.list\"\n :key=\"item.name\"\n class=\"quick-item\"\n @click=\"onClickItem(item)\"\n >\n <i class=\"api-icon icon-item\"></i> {{item.name}}\n </div>\n </div>\n </div>\n </section>\n</article>\n"
|
|
41678
41685
|
|
|
41679
41686
|
/***/ }),
|
|
41680
41687
|
|
|
@@ -42038,7 +42045,7 @@ dom.importCssString(exports.cssText, exports.cssClass);
|
|
|
42038
42045
|
/***/ "981a":
|
|
42039
42046
|
/***/ (function(module, exports) {
|
|
42040
42047
|
|
|
42041
|
-
module.exports = "<div class=\"v-api-project-list-container\">\
|
|
42048
|
+
module.exports = "<div class=\"v-api-project-list-container\">\n <header>\n <div class=\"condition\">\n <div class=\"input-item\">\n <span>名称:</span>\n <i-input class=\"diy-input\" placeholder=\"请输入名称\" v-model=\"condition.name\" @on-enter=\"onSearch\"></i-input>\n </div>\n <div class=\"input-item\">\n <span>地址:</span>\n <i-input class=\"diy-input\" placeholder=\"请输入地址\" v-model=\"condition.url\" @on-enter=\"onSearch\"></i-input>\n </div>\n <div class=\"search-btn\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onSearch\">查询</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onEmpty\">重置</i-button>\n </div>\n </div>\n </header>\n <main>\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"data\" @on-selection-change=\"onSelected\">\n <template slot=\"detail\" slot-scope=\"{row}\">\n <a @click=\"onDetail(row)\">查看</a>\n </template>\n </i-table>\n </main>\n <div class=\"pagination\">\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>\n </div>\n <u-api-project-detail :visiable.sync=\"detailShow\" :model=\"detail\"></u-api-project-detail>\n</div>\n"
|
|
42042
42049
|
|
|
42043
42050
|
/***/ }),
|
|
42044
42051
|
|
|
@@ -42545,7 +42552,7 @@ module.exports = function (argument, usingIterator) {
|
|
|
42545
42552
|
/***/ "9b44":
|
|
42546
42553
|
/***/ (function(module, exports) {
|
|
42547
42554
|
|
|
42548
|
-
module.exports = "<i-timeline-item v-if=\"source.type==='more'\" class=\"trends-item\">\
|
|
42555
|
+
module.exports = "<i-timeline-item v-if=\"source.type==='more'\" class=\"trends-item\">\n <i slot=\"dot\"></i>\n <div class=\"item-more\" @click=\"onMore\">查看更多</div>\n</i-timeline-item>\n<i-timeline-item v-else class=\"trends-item\">\n <i-avatar size=\"large\" :class=\"source.operateType\" slot=\"dot\"></i-avatar>\n <div class=\"item-body\">\n <i-time class=\"time\" :time=\"source.createTime\" />\n <div class=\"title\">\n <span>{{source.projectName}}</span>\n <span class=\"create-time\">{{source.createTime}}</span>\n </div>\n <div class=\"content\">\n <span class=\"name\">{{source.creatorName || source.creator}}</span>\n <span>{{source._operateType && source._operateType.text}}</span>\n <span class=\"name\">{{source.categoryName}}</span>\n <span v-if=\"source.categoryName\">分组下的</span>\n <span class=\"name api-name\" @click=\"onToApi\">{{source.apiName}}</span>\n <span>接口</span>\n </div>\n </div>\n</i-timeline-item>\n"
|
|
42549
42556
|
|
|
42550
42557
|
/***/ }),
|
|
42551
42558
|
|
|
@@ -42698,7 +42705,7 @@ module.exports = function (argument) {
|
|
|
42698
42705
|
/***/ "a0f2":
|
|
42699
42706
|
/***/ (function(module, exports) {
|
|
42700
42707
|
|
|
42701
|
-
module.exports = "<article class=\"catalog-params\">\
|
|
42708
|
+
module.exports = "<article class=\"catalog-params\">\n <i-table height=\"200\" class=\"diy-table\" :columns=\"columns\" :data=\"dataList\">\n <template slot-scope=\"{ row,index }\" slot=\"type\">\n {{(row._type || {}).text}}\n </template>\n <template slot-scope=\"{ row,index }\" slot=\"required\">\n {{row.required ? \"是\": \"否\"}}\n </template>\n </i-table>\n</article>\n"
|
|
42702
42709
|
|
|
42703
42710
|
/***/ }),
|
|
42704
42711
|
|
|
@@ -42709,10 +42716,17 @@ module.exports = "<article class=\"catalog-params\">\r\n <i-table height=\"20
|
|
|
42709
42716
|
|
|
42710
42717
|
/***/ }),
|
|
42711
42718
|
|
|
42719
|
+
/***/ "a1f0":
|
|
42720
|
+
/***/ (function(module, exports) {
|
|
42721
|
+
|
|
42722
|
+
module.exports = "<i-poptip\n transfer\n class=\"u-tree-selector\"\n transfer-class-name=\"u-tree-selector\"\n trigger=\"click\"\n content=\"content\"\n placement=\"bottom\"\n :disabled=\"readonly\"\n v-model=\"visible\"\n>\n <i-input\n class=\"diy-input\"\n :value=\"inputValue\"\n @on-change=\"onInputChange\"\n readonly\n />\n <i-icon\n v-if=\"inputValue && !readonly\"\n class=\"icon-clear-value\"\n type=\"ios-close-circle\"\n @click.stop=\"onClear\"\n />\n <i-tree\n slot=\"content\"\n :data=\"tree\"\n :render=\"renderContent\"\n @on-select-change=\"onSelectChange\"\n ></i-tree>\n</i-poptip>\n"
|
|
42723
|
+
|
|
42724
|
+
/***/ }),
|
|
42725
|
+
|
|
42712
42726
|
/***/ "a406":
|
|
42713
42727
|
/***/ (function(module, exports) {
|
|
42714
42728
|
|
|
42715
|
-
module.exports = "<span>\
|
|
42729
|
+
module.exports = "<span>\n <span>{{labelTitle}}</span>\n <i-poptip trigger=\"hover\" :content=\"tips\">\n <i class=\"api-icon icon-warning\" />\n </i-poptip>\n <span v-if=\"labelColon\">:</span>\n</span>\n"
|
|
42716
42730
|
|
|
42717
42731
|
/***/ }),
|
|
42718
42732
|
|
|
@@ -43281,7 +43295,7 @@ module.exports = function (METHOD_NAME) {
|
|
|
43281
43295
|
/***/ "ab68":
|
|
43282
43296
|
/***/ (function(module, exports) {
|
|
43283
43297
|
|
|
43284
|
-
module.exports = "<i-modal draggable sticky reset-drag-position class=\"api-detail-modal diy-modal\" v-model=\"show\" width=\"1000\" :mask-closable=\"false\" title=\"API详情\">\
|
|
43298
|
+
module.exports = "<i-modal draggable sticky reset-drag-position class=\"api-detail-modal diy-modal\" v-model=\"show\" width=\"1000\" :mask-closable=\"false\" title=\"API详情\">\n <i-form label-colon :label-width=\"120\">\n <i-form-item label=\"接口名称\">\n <span>{{action.name}}</span>\n </i-form-item>\n <i-form-item label=\"所属类型\">\n <span>{{model.type}}</span>\n </i-form-item>\n <i-form-item label=\"接口url\">\n <span>{{action.url}}</span>\n </i-form-item>\n <i-form-item label=\"创建时间\">\n <span>{{action.timestamp}}</span>\n </i-form-item>\n <p class=\"item-title\">接口参数</p>\n <component v-if=\"params\" :is=\"params\" :model=\"detail\"></component>\n </i-form>\n <footer slot=\"footer\">\n <i-button class=\"diy-btn-default\" @click.stop=\"onClose\">取消</i-button>\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click.stop=\"onClose\">确定</i-button>\n </footer>\n</i-modal>\n"
|
|
43285
43299
|
|
|
43286
43300
|
/***/ }),
|
|
43287
43301
|
|
|
@@ -45699,6 +45713,13 @@ module.exports = queueMicrotask || function (fn) {
|
|
|
45699
45713
|
};
|
|
45700
45714
|
|
|
45701
45715
|
|
|
45716
|
+
/***/ }),
|
|
45717
|
+
|
|
45718
|
+
/***/ "b61c":
|
|
45719
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
45720
|
+
|
|
45721
|
+
// extracted by mini-css-extract-plugin
|
|
45722
|
+
|
|
45702
45723
|
/***/ }),
|
|
45703
45724
|
|
|
45704
45725
|
/***/ "b622":
|
|
@@ -45756,7 +45777,7 @@ $({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
|
|
|
45756
45777
|
/***/ "b676":
|
|
45757
45778
|
/***/ (function(module, exports) {
|
|
45758
45779
|
|
|
45759
|
-
module.exports = "<article class=\"security-setting\">\
|
|
45780
|
+
module.exports = "<article class=\"security-setting\">\n <i-form class=\"type-form diy-form\" label-colon>\n <i-form-item label=\"类型\">\n <i-select transfer v-model=\"interfaceModel.authentication.type\" class=\"diy-select\">\n <i-option v-for=\"item in securityTypeList\" :key=\"item.name\" :value=\"item.name\">{{item.text}} </i-option>\n </i-select>\n <div class=\"tips\">\n <i class=\"api-icon icon-warning\"></i>\n <span>认证类型</span>\n </div>\n </i-form-item>\n <i-form-item label=\"存储位置\">\n <i-select transfer v-model=\"interfaceModel.authentication.location\" class=\"diy-select\">\n <i-option v-for=\"item in tokenLocationTypeList\" :key=\"item.name\" :value=\"item.name\"> {{item.text}} </i-option>\n </i-select>\n <div class=\"tips\">\n <i class=\"api-icon icon-warning\"></i>\n <span>认证信息存储位置</span>\n </div>\n </i-form-item>\n <i-form-item label=\"存储键值\">\n <i-input class=\"diy-input\" v-model=\"interfaceModel.authentication.locationKey\"> </i-input>\n <div class=\"tips\">\n <i class=\"api-icon icon-warning\"></i>\n <span>认证信息存储键值</span>\n </div>\n </i-form-item>\n </i-form>\n <section>\n <i-form label-colon :label-width=\"200\" class=\"diy-form content-form\" label-position=\"left\">\n <template v-if=\"interfaceModel.authentication && interfaceModel.authentication.type === 'Base_Auth'\">\n <i-form-item label=\"username\">\n <i-input class=\"diy-input\" v-model=\"model.username\" placeholder=\"请输入\"> </i-input>\n </i-form-item>\n <i-form-item label=\"password\">\n <i-input class=\"diy-input\" v-model=\"model.password\" placeholder=\"请输入\" type=\"password\"> </i-input>\n </i-form-item>\n </template>\n <template v-if=\"interfaceModel.authentication && interfaceModel.authentication.type === 'OAuth2'\">\n <i-form-item>\n <u-tips-form-label slot=\"label\" label-colon labelTitle=\"Header Prefix\" tips=\"token前缀 例如 Bearer \"> </u-tips-form-label>\n <i-input class=\"diy-input\" v-model=\"model.headerPrefix\" placeholder=\"请输入\"> </i-input>\n </i-form-item>\n <i-form-item>\n <u-tips-form-label slot=\"label\" label-colon labelTitle=\"Grant Type\" tips=\"认证类型\"> </u-tips-form-label>\n <i-select transfer v-model=\"model.grantType\" class=\"diy-select\">\n <i-option v-for=\"item in grantTypeList\" :key=\"item.name\" :value=\"item.name\"> {{item.text}} </i-option>\n </i-select>\n </i-form-item>\n <i-form-item>\n <u-tips-form-label label-colon slot=\"label\" labelTitle=\"Access Token Url\" tips=\"获取token的httpUrl\"> </u-tips-form-label>\n <i-input class=\"diy-input\" v-model=\"model.tokenUrl\" placeholder=\"请输入\"> </i-input>\n </i-form-item>\n <i-form-item>\n <u-tips-form-label label-colon slot=\"label\" labelTitle=\"TokenPath\" tips=\"获取响应结果的token路径\"> </u-tips-form-label>\n <i-input class=\"diy-input\" v-model=\"model.tokenPath\" placeholder=\"请输入\"> </i-input>\n </i-form-item>\n <i-form-item label=\"Client ID\">\n <i-input class=\"diy-input\" v-model=\"model.clientId\" placeholder=\"请输入\"> </i-input>\n </i-form-item>\n <i-form-item label=\"Client Secret\">\n <i-input class=\"diy-input\" v-model=\"model.clientSecret\" placeholder=\"请输入\"> </i-input>\n </i-form-item>\n <template v-if=\"model.grantType === 'password'\">\n <i-form-item label=\"username\">\n <i-input class=\"diy-input\" v-model=\"model.username\" placeholder=\"请输入\"> </i-input>\n </i-form-item>\n <i-form-item label=\"password\">\n <i-input class=\"diy-input\" v-model=\"model.password\" type=\"password\" password placeholder=\"请输入\"> </i-input>\n </i-form-item>\n </template>\n <i-form-item label=\"Scope\">\n <i-input class=\"diy-input\" v-model=\"model.scope\" placeholder=\"请输入\"> </i-input>\n </i-form-item>\n </template>\n <template v-if=\"interfaceModel.authentication && interfaceModel.authentication.type === 'Api_Key'\">\n <i-form-item label=\"key\">\n <i-input class=\"diy-input\" v-model=\"model.key\" placeholder=\"请输入\"> </i-input>\n </i-form-item>\n </template>\n <i-button type=\"primary\" class=\"clear-btn diy-btn-primary\" @click=\"onClear\">清空</i-button>\n </i-form>\n </section>\n</article>\n"
|
|
45760
45781
|
|
|
45761
45782
|
/***/ }),
|
|
45762
45783
|
|
|
@@ -45843,7 +45864,7 @@ module.exports = {
|
|
|
45843
45864
|
/***/ "b769":
|
|
45844
45865
|
/***/ (function(module, exports) {
|
|
45845
45866
|
|
|
45846
|
-
module.exports = "<article class=\"project-comment\">\
|
|
45867
|
+
module.exports = "<article class=\"project-comment\">\n <header>\n <i-input\n class=\"diy-input\"\n prefix=\"ios-search\"\n search\n @on-search=\"onQuery\"\n placeholder=\"输入关键字检索\"\n v-model=\"condition.apiName\"\n ></i-input>\n </header>\n\n <main>\n <header class=\"tool-bar\">\n <span>项目动态</span>\n </header>\n <main>\n <i-timeline :pending=\"false\">\n <virtual-list\n class=\"scroll-list\"\n data-key=\"id\"\n :data-sources=\"list\"\n :data-component=\"itemComponent\"\n >\n </virtual-list>\n </i-timeline>\n </main>\n </main>\n</article>\n"
|
|
45847
45868
|
|
|
45848
45869
|
/***/ }),
|
|
45849
45870
|
|
|
@@ -46659,7 +46680,7 @@ exports.Mode = Mode;
|
|
|
46659
46680
|
/***/ "bc13":
|
|
46660
46681
|
/***/ (function(module, exports) {
|
|
46661
46682
|
|
|
46662
|
-
module.exports = "<div class=\"confirm\">\
|
|
46683
|
+
module.exports = "<div class=\"confirm\">\n <div @click.stop=\"onOpenConfirm\">\n <slot></slot>\n </div>\n <i-modal\n width=400\n draggable\n sticky\n reset-drag-position\n v-model=\"value\"\n class=\"diy-modal confirm-modal\"\n :mask-closable=\"false\"\n :title=\"title\"\n >\n <div>\n <i class=\"api-icon icon-warning\"></i>\n </div>\n <p>\n {{message}}\n </p>\n <footer slot=\"footer\">\n <i-button type=\"primary\" class=\"diy-btn-primary \" @click=\"onOk\"\n >确定</i-button\n >\n <i-button @click=\"onCancel\">取消</i-button>\n </footer>\n </i-modal>\n</div>\n"
|
|
46663
46684
|
|
|
46664
46685
|
/***/ }),
|
|
46665
46686
|
|
|
@@ -46687,7 +46708,7 @@ module.exports = require("js-cookie");
|
|
|
46687
46708
|
/***/ "c01f":
|
|
46688
46709
|
/***/ (function(module, exports) {
|
|
46689
46710
|
|
|
46690
|
-
module.exports = "<article class=\"group-select\">\
|
|
46711
|
+
module.exports = "<article class=\"group-select\">\n <i-poptip\n trigger=\"click\"\n transfer\n transfer-class-name=\"group-select-transfer\"\n placement=\"bottom-start\"\n v-model=\"visible\"\n >\n <i-input\n readonly\n class=\"diy-input\"\n :value=\"current.name\"\n clearable\n @on-clear=\"onClear\"\n ></i-input>\n <template slot=\"content\">\n <i-tree\n :data=\"data\"\n @on-select-change=\"onSelect\"\n :render=\"renderContent\"\n ></i-tree>\n </template>\n </i-poptip>\n</article>\n"
|
|
46691
46712
|
|
|
46692
46713
|
/***/ }),
|
|
46693
46714
|
|
|
@@ -46948,7 +46969,7 @@ $({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
|
|
46948
46969
|
/***/ "ccf6":
|
|
46949
46970
|
/***/ (function(module, exports) {
|
|
46950
46971
|
|
|
46951
|
-
module.exports = "<!DOCTYPE html>\
|
|
46972
|
+
module.exports = "<!DOCTYPE html>\n<article class=\"v-api-combine-wrapper\">\n <i-split v-model=\"split\" min=\"200px\" max=\"1100px\">\n <!-- 左侧内容 -->\n <section slot=\"left\" class=\"left-split-pane\">\n <u-type-tree :initSelectItem=\"initNode\" @on-import-success=\"onQuery\" @on-select=\"onNodeSelect\"> </u-type-tree>\n </section>\n <!-- 分割线 -->\n <section class=\"trigger\" slot=\"trigger\"></section>\n <!-- 右侧内容 -->\n <section slot=\"right\" class=\"right-split-pane\">\n <section class=\"search-wrapper\">\n <i-form class=\"diy-search-form\" ref=\"searchForm\" :model=\"formData\" label-position=\"left\" label-colon>\n <i-form-item label=\"名称\" prop=\"name\">\n <i-input class=\"diy-input\" v-model=\"formData.name\"></i-input>\n </i-form-item>\n <i-form-item label=\"编码\" prop=\"code\">\n <i-input class=\"diy-input\" v-model=\"formData.code\"></i-input>\n </i-form-item>\n </i-form>\n <div class=\"btns\">\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onQuery\">查询</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onReset\">重置</i-button>\n </div>\n </section>\n <section class=\"actions-wrapper\">\n <div class=\"action-item action-text\" @click=\"onAdd()\">\n <i class=\"iconfont icon-add\"></i>\n <div>新增</div>\n </div>\n <div class=\"action-item action-text\" @click=\"onBatchDelete\">\n <i class=\"iconfont icon-delete\"></i>\n <div>批量删除</div>\n </div>\n </section>\n <section class=\"main-wrapper\">\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"list\" @on-selection-change=\"onSelectChange\">\n <template slot=\"status\" slot-scope=\"{row,index}\">\n <i-switch class=\"diy-switch\" :value=\"row.status==='PUBLISHED'\" @on-change=\"onStatusChange($event, row, index)\"></i-switch>\n <span>{{row.status===\"PUBLISHED\" ? \"已发布\" : \"未已布\"}}</span>\n </template>\n <template slot=\"doc\" slot-scope=\"{row}\">\n <a @click=\"onOpenDoc(row)\">查看</a>\n </template>\n <template #operates=\"{row,index}\">\n <div class=\"row-actions\">\n <i @click.stop=\"onEdit(row)\" title=\"编辑\" class=\"iconfont icon-edit\"> </i>\n <i-poptip confirm transfer title=\"确认要删除这条数据吗?\" @on-ok=\"onDelete(row)\">\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\n </i-poptip>\n </div>\n </template>\n </i-table>\n <i-page\n class=\"diy-page\"\n show-total\n show-sizer\n show-elevator\n :total=\"paging.totalCount\"\n :current=\"paging.pageIndex\"\n :page-size=\"paging.pageSize\"\n @on-change=\"onPageIndexChange\"\n @on-page-size-change=\"onPageSizeChange\"\n ></i-page>\n </section>\n </section>\n </i-split>\n <i-spin fix v-show=\"loading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\n</article>\n"
|
|
46952
46973
|
|
|
46953
46974
|
/***/ }),
|
|
46954
46975
|
|
|
@@ -47116,6 +47137,13 @@ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
|
|
|
47116
47137
|
}() : undefined);
|
|
47117
47138
|
|
|
47118
47139
|
|
|
47140
|
+
/***/ }),
|
|
47141
|
+
|
|
47142
|
+
/***/ "d30a":
|
|
47143
|
+
/***/ (function(module, exports) {
|
|
47144
|
+
|
|
47145
|
+
module.exports = "<div class=\"u-selector-tree-node\" @click=\"onClickNode\">\n <i-icon v-if=\"!data.children\" type=\"ios-bookmark-outline\" />\n <template v-else>\n <i\n class=\"iconfont\"\n :class=\"data.expand? 'icon-expand': 'icon-unexpand'\"\n ></i>\n </template>\n <span>{{data.title}}</span>\n</div>\n"
|
|
47146
|
+
|
|
47119
47147
|
/***/ }),
|
|
47120
47148
|
|
|
47121
47149
|
/***/ "d3b7":
|
|
@@ -47167,7 +47195,7 @@ module.exports = /ipad|iphone|ipod/i.test(userAgent) && global.Pebble !== undefi
|
|
|
47167
47195
|
/***/ "d63e":
|
|
47168
47196
|
/***/ (function(module, exports) {
|
|
47169
47197
|
|
|
47170
|
-
module.exports = "<article class=\"project-detail\">\
|
|
47198
|
+
module.exports = "<article class=\"project-detail\">\n <header>\n <div class=\"environment\">\n <p>{{projectName}}</p>\n <!-- <span>环境变量:</span> -->\n <!-- <i-select class=\"diy-select\"></i-select> -->\n </div>\n <div class=\"btns\">\n <!-- <i-button type=\"primary\" ghost class=\"diy-btn-primary\" @click=\"onOpenGlobalModal\"> <i class=\"api-icon icon-setting\"></i>全局参数设置</i-button>\n <i-button type=\"success\" ghost class=\"diy-btn-success\" @click=\"onOpenCurrentModal\"><i class=\"api-icon icon-view\"></i>查看当前变量</i-button> -->\n <i-button type=\"primary\" class=\"diy-btn-primary button-back\" ghost icon=\"md-return-left\" @click=\"onBack\">返回列表</i-button>\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>\n </div>\n </header>\n <!-- <main> -->\n <i-split v-model=\"split\" min=\"200px\" max=\"900px\">\n <u-tree slot=\"left\" @on-check-interface=\"onCheckInterface\" :project-id=\"projectId\"></u-tree>\n <section slot=\"right\" class=\"interface-box\">\n <header class=\"interface-bar\">\n <swiper class=\"swiper\" :options=\"swiperOption\" @click-slide=\"onClickSlide\" @ready=\"onSwiperReadied\">\n <swiper-slide class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\"\n ><span>{{item.name}}</span> <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon\n ></swiper-slide>\n </swiper>\n <!-- <div class=\"tag\" @click=\"onClickTag(item)\" :class=\"{'active': item.id === active.id}\" v-for=\"(item,index) in openInterfaceList\" :key=\"item.id\">\n <span>{{item.name}}</span>\n <i-icon type=\"md-close\" @click.stop=\"onClose(index)\"></i-icon>\n </div> -->\n </header>\n <u-settings :interface-model.sync=\"active\" :project-id=\"projectId\" v-if=\"active.id\" :lengthwise=\"lengthwise\"></u-settings>\n </section>\n </i-split>\n <i-spin fix v-show=\"loading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n <!-- </main> -->\n <u-global-modal :visiable.sync=\"showGlobalModal\">\n <footer slot=\"footer\">\n <i-button @click=\"showGlobalModal = false\">取消</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary\">确定</i-button>\n </footer>\n </u-global-modal>\n <u-current-modal :visiable.sync=\"showCurrentModal\"> </u-current-modal>\n</article>\n"
|
|
47171
47199
|
|
|
47172
47200
|
/***/ }),
|
|
47173
47201
|
|
|
@@ -47296,14 +47324,14 @@ module.exports = fails(function () {
|
|
|
47296
47324
|
/***/ "d8b4":
|
|
47297
47325
|
/***/ (function(module, exports) {
|
|
47298
47326
|
|
|
47299
|
-
module.exports = "<div class=\"v-parameter-list-container\">\
|
|
47327
|
+
module.exports = "<div class=\"v-parameter-list-container\">\n <main>\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"data\">\n <div slot=\"name\" slot-scope=\"{row}\">\n <i-input class=\"diy-input\" v-if=\"row.isEdit\" v-model=\"row.name\">{{row.name}}</i-input>\n <span v-else>{{row.name}}</span>\n </div>\n <div slot=\"type\" slot-scope=\"{row}\">\n <i-select class=\"diy-select\" v-if=\"row.isEdit\" v-model=\"row.type\">\n <i-option v-for=\"item in typeList\" :value=\"item.name\" :key=\"item.name\">{{item.text}}</i-option>\n </i-select>\n <span v-else>{{getTypeText(row.type)}}</span>\n </div>\n <div slot=\"location\" slot-scope=\"{row}\">\n <i-select class=\"diy-select\" v-if=\"row.isEdit\" v-model=\"row.location\">\n <i-option v-for=\"item in locationList\" :value=\"item.name\" :key=\"item.name\">{{item.text}}</i-option>\n </i-select>\n <span v-else>{{getLocationText(row.location)}}</span>\n </div>\n <div slot=\"defaultValue\" slot-scope=\"{row}\">\n <i-input class=\"diy-input\" v-if=\"row.isEdit\" v-model=\"row.defaultValue\"></i-input>\n <span v-else>{{row.defaultValue}}</span>\n </div>\n <div slot=\"description\" slot-scope=\"{row}\">\n <i-input class=\"diy-input\" v-if=\"row.isEdit\" v-model=\"row.description\"></i-input>\n <span v-else>{{row.description}}</span>\n </div>\n <div class=\"row-actions\" slot=\"actions\" slot-scope=\"{row,index}\">\n <div v-if=\"row.isEdit\" class=\"edit-status\">\n <i class=\"iconfont icon-ok\" title=\"确认\" @click=\"onConfirm(row, index)\"></i>\n <i class=\"iconfont icon-cancel\" title=\"取消\" @click=\"onCancel(index)\"></i>\n </div>\n <div v-else class=\"read-status\">\n <i class=\"iconfont icon-edit\" title=\"编辑\" @click=\"onEdit(row)\"></i>\n <i-poptip confirm transfer title=\"您确定要删除这条内容吗?\" @on-ok=\"onDelete(row, index)\">\n <i class=\"iconfont icon-delete\" title=\"删除\"> </i>\n </i-poptip>\n </div>\n </div>\n </i-table>\n <!-- <i-icon class=\"iconfont icon-add\" @click=\"onAdd\" /> -->\n </main>\n</div>\n"
|
|
47300
47328
|
|
|
47301
47329
|
/***/ }),
|
|
47302
47330
|
|
|
47303
47331
|
/***/ "d8e7":
|
|
47304
47332
|
/***/ (function(module, exports) {
|
|
47305
47333
|
|
|
47306
|
-
module.exports = "<!DOCTYPE html>\
|
|
47334
|
+
module.exports = "<!DOCTYPE html>\n<article class=\"v-api-combine-info-wrapper\">\n <header class=\"header\">\n {{isEdit ? \"编辑合并模型\" : \"新增合并模型\"}}\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\"></i-input>\n </i-form-item>\n <i-form-item label=\"编码:\" prop=\"code\">\n <i-input class=\"diy-input\" placeholder=\"请输入编码\" v-model=\"model.code\"></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\"></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 <i-button class=\"diy-btn-default\" @click=\"onAddDataModel\">添加数据模型</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onAddApiProject\">添加 API</i-button>\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 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\"></u-request-parameter-list>\n </i-tab-pane>\n <i-tab-pane label=\"响应参数\" name=\"response\">\n <u-response-parameter-list :data=\"model.respParams\"></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 <span>执行脚本</span>\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\"></u-base-editor>\n </div>\n </section>\n </section>\n </i-row>\n </i-form>\n </main>\n <footer>\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 </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</article>\n"
|
|
47307
47335
|
|
|
47308
47336
|
/***/ }),
|
|
47309
47337
|
|
|
@@ -47317,7 +47345,7 @@ module.exports = "<!DOCTYPE html>\r\n<article class=\"v-api-combine-info-wrapper
|
|
|
47317
47345
|
/***/ "d953":
|
|
47318
47346
|
/***/ (function(module, exports) {
|
|
47319
47347
|
|
|
47320
|
-
module.exports = "<div class=\"interface-tree-node\" @click=\"onClick\">\
|
|
47348
|
+
module.exports = "<div class=\"interface-tree-node\" @click=\"onClick\">\n <span v-if=\"isLeaf && data.method\" class=\"method\" :class=\"data.method.toLowerCase() \"\n >{{data.method}}</span\n >\n <i class=\"api-icon icon-interface\"></i>\n <span class=\"interface-tree-node-name\" :title=\"data.title\">{{data.title}}</span>\n <i-dropdown\n transfer\n stop-propagation\n class=\"diy-dropdown\"\n transfer-class-name=\"diy-transfer-dropdown\"\n @on-click=\"onClickAction\"\n >\n <i class=\"api-icon icon-more\"></i>\n <i-dropdown-menu slot=\"list\">\n <template v-if=\"isLeaf\">\n <i-dropdown-item name=\"edit-interface\">修改</i-dropdown-item>\n <u-confirm\n title=\"删除接口\"\n @on-ok=\"onDelete('delete-interface')\"\n message=\"删除接口, 是否确认执行?\"\n >\n <i-dropdown-item>删除</i-dropdown-item>\n </u-confirm>\n <i-dropdown-item name=\"copy-interface\">复制</i-dropdown-item>\n </template>\n <template v-else>\n <i-dropdown-item name=\"edit-group\">修改</i-dropdown-item>\n <i-dropdown-item name=\"add-interface\">新增接口</i-dropdown-item>\n <u-confirm\n title=\"删除接口\"\n @on-ok=\"onDelete('delete-group')\"\n message=\"分组内的接口一并删除, 是否确认执行?\"\n >\n <i-dropdown-item>删除</i-dropdown-item>\n </u-confirm>\n </template>\n </i-dropdown-menu>\n </i-dropdown>\n</div>\n"
|
|
47321
47349
|
|
|
47322
47350
|
/***/ }),
|
|
47323
47351
|
|
|
@@ -47600,11 +47628,11 @@ module.exports = !fails(function () {
|
|
|
47600
47628
|
|
|
47601
47629
|
|
|
47602
47630
|
var commonSetting = global.commonSetting;
|
|
47603
|
-
/**
|
|
47604
|
-
* 业务服务基类。
|
|
47605
|
-
* @abstract
|
|
47606
|
-
* @class
|
|
47607
|
-
* @version 1.0.0
|
|
47631
|
+
/**
|
|
47632
|
+
* 业务服务基类。
|
|
47633
|
+
* @abstract
|
|
47634
|
+
* @class
|
|
47635
|
+
* @version 1.0.0
|
|
47608
47636
|
*/
|
|
47609
47637
|
|
|
47610
47638
|
var ServiceBase =
|
|
@@ -47615,10 +47643,10 @@ function () {
|
|
|
47615
47643
|
ServiceBase.prototype.url = function (url) {
|
|
47616
47644
|
return commonSetting.baseUrl + url;
|
|
47617
47645
|
};
|
|
47618
|
-
/**
|
|
47619
|
-
* 发送post请求
|
|
47620
|
-
* @param url 请求地址
|
|
47621
|
-
* @param data 发送的参数
|
|
47646
|
+
/**
|
|
47647
|
+
* 发送post请求
|
|
47648
|
+
* @param url 请求地址
|
|
47649
|
+
* @param data 发送的参数
|
|
47622
47650
|
*/
|
|
47623
47651
|
|
|
47624
47652
|
|
|
@@ -47627,9 +47655,9 @@ function () {
|
|
|
47627
47655
|
return res.data;
|
|
47628
47656
|
});
|
|
47629
47657
|
};
|
|
47630
|
-
/**
|
|
47631
|
-
* 发送get请求
|
|
47632
|
-
* @param url 请求地址
|
|
47658
|
+
/**
|
|
47659
|
+
* 发送get请求
|
|
47660
|
+
* @param url 请求地址
|
|
47633
47661
|
*/
|
|
47634
47662
|
|
|
47635
47663
|
|
|
@@ -47638,10 +47666,10 @@ function () {
|
|
|
47638
47666
|
return res.data;
|
|
47639
47667
|
});
|
|
47640
47668
|
};
|
|
47641
|
-
/**
|
|
47642
|
-
* 发送put请求
|
|
47643
|
-
* @param url 请求地址
|
|
47644
|
-
* @param data 请求参数
|
|
47669
|
+
/**
|
|
47670
|
+
* 发送put请求
|
|
47671
|
+
* @param url 请求地址
|
|
47672
|
+
* @param data 请求参数
|
|
47645
47673
|
*/
|
|
47646
47674
|
|
|
47647
47675
|
|
|
@@ -47650,9 +47678,9 @@ function () {
|
|
|
47650
47678
|
return res.data;
|
|
47651
47679
|
});
|
|
47652
47680
|
};
|
|
47653
|
-
/**
|
|
47654
|
-
* 发送delete请求 请求地址
|
|
47655
|
-
* @param url
|
|
47681
|
+
/**
|
|
47682
|
+
* 发送delete请求 请求地址
|
|
47683
|
+
* @param url
|
|
47656
47684
|
*/
|
|
47657
47685
|
|
|
47658
47686
|
|
|
@@ -47661,10 +47689,10 @@ function () {
|
|
|
47661
47689
|
return res.data;
|
|
47662
47690
|
});
|
|
47663
47691
|
};
|
|
47664
|
-
/**
|
|
47665
|
-
* 导出数据
|
|
47666
|
-
* @param url
|
|
47667
|
-
* @param data
|
|
47692
|
+
/**
|
|
47693
|
+
* 导出数据
|
|
47694
|
+
* @param url
|
|
47695
|
+
* @param data
|
|
47668
47696
|
*/
|
|
47669
47697
|
|
|
47670
47698
|
|
|
@@ -48260,7 +48288,7 @@ $({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
|
|
|
48260
48288
|
/***/ "e718":
|
|
48261
48289
|
/***/ (function(module, exports) {
|
|
48262
48290
|
|
|
48263
|
-
module.exports = "<section class=\"v-base-editor-container\">\
|
|
48291
|
+
module.exports = "<section class=\"v-base-editor-container\">\n <u-editor @inited=\"onEditorInited\" :value.sync=\"script\" lang=\"groovy\"></u-editor>\n</section>\n"
|
|
48264
48292
|
|
|
48265
48293
|
/***/ }),
|
|
48266
48294
|
|
|
@@ -48536,7 +48564,7 @@ module.exports = uncurryThis([].slice);
|
|
|
48536
48564
|
/***/ "f40e":
|
|
48537
48565
|
/***/ (function(module, exports) {
|
|
48538
48566
|
|
|
48539
|
-
module.exports = "<article class=\"interface-settings\">\
|
|
48567
|
+
module.exports = "<article class=\"interface-settings\">\n <header>\n <i-input class=\"diy-input\" v-model=\"interfaceModel.info.url\">\n <i-select transfer slot=\"prepend\" class=\"diy-select\" v-model=\"interfaceModel.info.method\">\n <i-option v-for=\"item in typeList\" :key=\"item.value\" :value=\"item.value\">{{item.text}}</i-option>\n </i-select>\n </i-input>\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onRun\">发送</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\" ghost>保存</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onVersion\" ghost>查看历史版本</i-button>\n <i-icon class=\"export\" title=\"导出\" type=\"md-download\" @click=\"onExport\" />\n <i-upload action=\"\" :before-upload=\"onImport\" :show-upload-list=\"false\">\n <i-icon class=\"import\" title=\"导入\" type=\"md-cloud-upload\" />\n </i-upload>\n </header>\n <main :class=\"{'transverse': !lengthwise}\">\n <section class=\"request\">\n <div class=\"request-bar\">\n <div class=\"tag\" :class=\"{'active': currentRequestSettingType.name.indexOf(item.name) === 0}\" v-for=\"(item,index) in requertSettingTypeList\" :key=\"item.name\">\n <i-dropdown class=\"diy-dropdown\" stop-propagation v-if=\"item.children\" @on-click=\"onClickRequertSettingSubTpye(item,$event)\">\n <span>{{item.title}}<i class=\"api-icon icon-select\"></i></span>\n <i-dropdown-menu slot=\"list\">\n <i-dropdown-item v-for=\"subItem in item.children\" :key=\"subItem.name\" :name=\"subItem.name\">{{subItem.title}}</i-dropdown-item>\n </i-dropdown-menu>\n </i-dropdown>\n <span v-else @click=\"onClickRequertSettingTpye(item)\">{{item.title}}</span>\n </div>\n </div>\n <div class=\"request-content\">\n <component\n :is=\"currentRequestSettingType.name\"\n :lengthwise=\"lengthwise\"\n :interface-model=\"interfaceModel\"\n :response=\"response\"\n :key=\"interfaceModel.info.id + currentRequestSettingType.name\"\n ></component>\n </div>\n </section>\n <response :key=\"interfaceModel.info.id + 'response'\" :lengthwise=\"lengthwise\" :response=\"response\"></response>\n </main>\n <i-spin fix v-show=\"loading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n</article>\n"
|
|
48540
48568
|
|
|
48541
48569
|
/***/ }),
|
|
48542
48570
|
|
|
@@ -49101,6 +49129,9 @@ var es_regexp_exec = __webpack_require__("ac1f");
|
|
|
49101
49129
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.split.js
|
|
49102
49130
|
var es_string_split = __webpack_require__("1276");
|
|
49103
49131
|
|
|
49132
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
49133
|
+
var es_regexp_to_string = __webpack_require__("25f0");
|
|
49134
|
+
|
|
49104
49135
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
49105
49136
|
var es_array_map = __webpack_require__("d81d");
|
|
49106
49137
|
|
|
@@ -49220,36 +49251,36 @@ var __spreadArray = undefined && undefined.__spreadArray || function (to, from,
|
|
|
49220
49251
|
};
|
|
49221
49252
|
|
|
49222
49253
|
|
|
49223
|
-
/**
|
|
49224
|
-
* 静态对象工厂
|
|
49254
|
+
/**
|
|
49255
|
+
* 静态对象工厂
|
|
49225
49256
|
*/
|
|
49226
49257
|
|
|
49227
49258
|
var object_factory_ObjectFactory =
|
|
49228
49259
|
/** @class */
|
|
49229
49260
|
function () {
|
|
49230
49261
|
function ObjectFactory() {}
|
|
49231
|
-
/**
|
|
49232
|
-
* 获取指定key对应的对象
|
|
49233
|
-
* @param key 对象唯一标识
|
|
49262
|
+
/**
|
|
49263
|
+
* 获取指定key对应的对象
|
|
49264
|
+
* @param key 对象唯一标识
|
|
49234
49265
|
*/
|
|
49235
49266
|
|
|
49236
49267
|
|
|
49237
49268
|
ObjectFactory.get = function (key) {
|
|
49238
49269
|
return this.maps.get(key);
|
|
49239
49270
|
};
|
|
49240
|
-
/**
|
|
49241
|
-
* 设置指定对象
|
|
49242
|
-
* @param key 对象唯一标识
|
|
49243
|
-
* @param value
|
|
49271
|
+
/**
|
|
49272
|
+
* 设置指定对象
|
|
49273
|
+
* @param key 对象唯一标识
|
|
49274
|
+
* @param value
|
|
49244
49275
|
*/
|
|
49245
49276
|
|
|
49246
49277
|
|
|
49247
49278
|
ObjectFactory.set = function (key, value) {
|
|
49248
49279
|
this.maps.set(key, value);
|
|
49249
49280
|
};
|
|
49250
|
-
/**
|
|
49251
|
-
* 是否存在指定key的对象
|
|
49252
|
-
* @param key
|
|
49281
|
+
/**
|
|
49282
|
+
* 是否存在指定key的对象
|
|
49283
|
+
* @param key
|
|
49253
49284
|
*/
|
|
49254
49285
|
|
|
49255
49286
|
|
|
@@ -49266,10 +49297,10 @@ function () {
|
|
|
49266
49297
|
});
|
|
49267
49298
|
return list;
|
|
49268
49299
|
};
|
|
49269
|
-
/**
|
|
49270
|
-
* 根据类型创建对象
|
|
49271
|
-
* @param serviceType 对象类型
|
|
49272
|
-
* @param params 构造参数
|
|
49300
|
+
/**
|
|
49301
|
+
* 根据类型创建对象
|
|
49302
|
+
* @param serviceType 对象类型
|
|
49303
|
+
* @param params 构造参数
|
|
49273
49304
|
*/
|
|
49274
49305
|
|
|
49275
49306
|
|
|
@@ -49470,10 +49501,10 @@ var __generator = undefined && undefined.__generator || function (thisArg, body)
|
|
|
49470
49501
|
|
|
49471
49502
|
|
|
49472
49503
|
|
|
49473
|
-
/**
|
|
49474
|
-
*
|
|
49475
|
-
* @param serviveType 服务的类型 指的是服务是保存类(delete/update/save)操作save 还是查询类操作query
|
|
49476
|
-
* 根据这个类型来决定调用不同的ResponseHandler
|
|
49504
|
+
/**
|
|
49505
|
+
*
|
|
49506
|
+
* @param serviveType 服务的类型 指的是服务是保存类(delete/update/save)操作save 还是查询类操作query
|
|
49507
|
+
* 根据这个类型来决定调用不同的ResponseHandler
|
|
49477
49508
|
*/
|
|
49478
49509
|
|
|
49479
49510
|
function serviceHandler(serviveType, option) {
|
|
@@ -49647,8 +49678,8 @@ function () {
|
|
|
49647
49678
|
};
|
|
49648
49679
|
|
|
49649
49680
|
Object.defineProperty(ResponseHandler, "message", {
|
|
49650
|
-
/**
|
|
49651
|
-
* 全局通知对象
|
|
49681
|
+
/**
|
|
49682
|
+
* 全局通知对象
|
|
49652
49683
|
*/
|
|
49653
49684
|
get: function get() {
|
|
49654
49685
|
return external_vue_default.a.prototype.$Message;
|
|
@@ -50219,8 +50250,8 @@ function (_super) {
|
|
|
50219
50250
|
_this.expandNodeSet = new Set();
|
|
50220
50251
|
return _this;
|
|
50221
50252
|
}
|
|
50222
|
-
/**
|
|
50223
|
-
* 输入关键字对数据进行过滤
|
|
50253
|
+
/**
|
|
50254
|
+
* 输入关键字对数据进行过滤
|
|
50224
50255
|
*/
|
|
50225
50256
|
|
|
50226
50257
|
|
|
@@ -50239,10 +50270,10 @@ function (_super) {
|
|
|
50239
50270
|
return v;
|
|
50240
50271
|
});
|
|
50241
50272
|
};
|
|
50242
|
-
/**
|
|
50243
|
-
* 判断一个节点是否是与关键字匹配的叶子节点或者目录节点,或者是包含符合条件的叶子节点的祖先节点
|
|
50244
|
-
* 如果匹配的是目录节点,那么目录下的节点无需过滤
|
|
50245
|
-
* @param node
|
|
50273
|
+
/**
|
|
50274
|
+
* 判断一个节点是否是与关键字匹配的叶子节点或者目录节点,或者是包含符合条件的叶子节点的祖先节点
|
|
50275
|
+
* 如果匹配的是目录节点,那么目录下的节点无需过滤
|
|
50276
|
+
* @param node
|
|
50246
50277
|
*/
|
|
50247
50278
|
|
|
50248
50279
|
|
|
@@ -50263,9 +50294,9 @@ function (_super) {
|
|
|
50263
50294
|
childrenMatched: childrenMatched
|
|
50264
50295
|
};
|
|
50265
50296
|
};
|
|
50266
|
-
/**
|
|
50267
|
-
* 处理渲染数据,只保留与关键字匹配的叶子节点和其祖先节点
|
|
50268
|
-
* @param data
|
|
50297
|
+
/**
|
|
50298
|
+
* 处理渲染数据,只保留与关键字匹配的叶子节点和其祖先节点
|
|
50299
|
+
* @param data
|
|
50269
50300
|
*/
|
|
50270
50301
|
|
|
50271
50302
|
|
|
@@ -50288,10 +50319,10 @@ function (_super) {
|
|
|
50288
50319
|
}));
|
|
50289
50320
|
return d;
|
|
50290
50321
|
};
|
|
50291
|
-
/**
|
|
50292
|
-
* 点击叶子节点
|
|
50293
|
-
* @param node
|
|
50294
|
-
* @param data
|
|
50322
|
+
/**
|
|
50323
|
+
* 点击叶子节点
|
|
50324
|
+
* @param node
|
|
50325
|
+
* @param data
|
|
50295
50326
|
*/
|
|
50296
50327
|
|
|
50297
50328
|
|
|
@@ -50316,10 +50347,10 @@ function (_super) {
|
|
|
50316
50347
|
return v;
|
|
50317
50348
|
});
|
|
50318
50349
|
};
|
|
50319
|
-
/**
|
|
50320
|
-
* 渲染子节点
|
|
50321
|
-
* @param h
|
|
50322
|
-
* @param param
|
|
50350
|
+
/**
|
|
50351
|
+
* 渲染子节点
|
|
50352
|
+
* @param h
|
|
50353
|
+
* @param param
|
|
50323
50354
|
*/
|
|
50324
50355
|
|
|
50325
50356
|
|
|
@@ -50385,6 +50416,285 @@ function (_super) {
|
|
|
50385
50416
|
}(flagwind_web_["Component"]);
|
|
50386
50417
|
|
|
50387
50418
|
/* harmony default export */ var components_common_tree = (common_tree_CommonTree);
|
|
50419
|
+
// EXTERNAL MODULE: ./src/views/project-combine/tree-selector/index.scss
|
|
50420
|
+
var tree_selector = __webpack_require__("58d2");
|
|
50421
|
+
|
|
50422
|
+
// EXTERNAL MODULE: ./src/views/project-combine/tree-selector/tree-node/index.scss
|
|
50423
|
+
var tree_node = __webpack_require__("b61c");
|
|
50424
|
+
|
|
50425
|
+
// CONCATENATED MODULE: ./src/views/project-combine/tree-selector/tree-node/index.ts
|
|
50426
|
+
|
|
50427
|
+
|
|
50428
|
+
|
|
50429
|
+
|
|
50430
|
+
|
|
50431
|
+
|
|
50432
|
+
var tree_node_extends = undefined && undefined.__extends || function () {
|
|
50433
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
50434
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
50435
|
+
__proto__: []
|
|
50436
|
+
} instanceof Array && function (d, b) {
|
|
50437
|
+
d.__proto__ = b;
|
|
50438
|
+
} || function (d, b) {
|
|
50439
|
+
for (var p in b) {
|
|
50440
|
+
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
50441
|
+
}
|
|
50442
|
+
};
|
|
50443
|
+
|
|
50444
|
+
return _extendStatics(d, b);
|
|
50445
|
+
};
|
|
50446
|
+
|
|
50447
|
+
return function (d, b) {
|
|
50448
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
50449
|
+
|
|
50450
|
+
_extendStatics(d, b);
|
|
50451
|
+
|
|
50452
|
+
function __() {
|
|
50453
|
+
this.constructor = d;
|
|
50454
|
+
}
|
|
50455
|
+
|
|
50456
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
50457
|
+
};
|
|
50458
|
+
}();
|
|
50459
|
+
|
|
50460
|
+
var tree_node_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
50461
|
+
var c = arguments.length,
|
|
50462
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
50463
|
+
d;
|
|
50464
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
50465
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
50466
|
+
}
|
|
50467
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
50468
|
+
};
|
|
50469
|
+
|
|
50470
|
+
var tree_node_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
50471
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
50472
|
+
};
|
|
50473
|
+
|
|
50474
|
+
|
|
50475
|
+
|
|
50476
|
+
|
|
50477
|
+
var tree_node_TreeNodeComponent =
|
|
50478
|
+
/** @class */
|
|
50479
|
+
function (_super) {
|
|
50480
|
+
tree_node_extends(TreeNodeComponent, _super);
|
|
50481
|
+
|
|
50482
|
+
function TreeNodeComponent() {
|
|
50483
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
50484
|
+
}
|
|
50485
|
+
|
|
50486
|
+
TreeNodeComponent.prototype.onClickNode = function (e) {
|
|
50487
|
+
if (this.data.children && !this.canChooseFolder) {
|
|
50488
|
+
this.$set(this.data, "expand", !this.data.expand);
|
|
50489
|
+
e.stopPropagation();
|
|
50490
|
+
}
|
|
50491
|
+
|
|
50492
|
+
if (this.data.selected) {
|
|
50493
|
+
e.stopPropagation();
|
|
50494
|
+
}
|
|
50495
|
+
};
|
|
50496
|
+
|
|
50497
|
+
tree_node_decorate([Object(flagwind_web_["config"])({
|
|
50498
|
+
default: function _default() {
|
|
50499
|
+
return {};
|
|
50500
|
+
}
|
|
50501
|
+
}), tree_node_metadata("design:type", Object)], TreeNodeComponent.prototype, "data", void 0);
|
|
50502
|
+
|
|
50503
|
+
tree_node_decorate([Object(flagwind_web_["config"])({
|
|
50504
|
+
type: Boolean,
|
|
50505
|
+
default: false
|
|
50506
|
+
}), tree_node_metadata("design:type", Boolean)], TreeNodeComponent.prototype, "canChooseFolder", void 0);
|
|
50507
|
+
|
|
50508
|
+
TreeNodeComponent = tree_node_decorate([Object(flagwind_web_["component"])({
|
|
50509
|
+
template: __webpack_require__("d30a")
|
|
50510
|
+
})], TreeNodeComponent);
|
|
50511
|
+
return TreeNodeComponent;
|
|
50512
|
+
}(flagwind_web_["Component"]);
|
|
50513
|
+
|
|
50514
|
+
/* harmony default export */ var tree_selector_tree_node = (tree_node_TreeNodeComponent);
|
|
50515
|
+
// CONCATENATED MODULE: ./src/views/project-combine/tree-selector/index.ts
|
|
50516
|
+
|
|
50517
|
+
|
|
50518
|
+
|
|
50519
|
+
|
|
50520
|
+
|
|
50521
|
+
|
|
50522
|
+
|
|
50523
|
+
var tree_selector_extends = undefined && undefined.__extends || function () {
|
|
50524
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
50525
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
50526
|
+
__proto__: []
|
|
50527
|
+
} instanceof Array && function (d, b) {
|
|
50528
|
+
d.__proto__ = b;
|
|
50529
|
+
} || function (d, b) {
|
|
50530
|
+
for (var p in b) {
|
|
50531
|
+
if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p];
|
|
50532
|
+
}
|
|
50533
|
+
};
|
|
50534
|
+
|
|
50535
|
+
return _extendStatics(d, b);
|
|
50536
|
+
};
|
|
50537
|
+
|
|
50538
|
+
return function (d, b) {
|
|
50539
|
+
if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
50540
|
+
|
|
50541
|
+
_extendStatics(d, b);
|
|
50542
|
+
|
|
50543
|
+
function __() {
|
|
50544
|
+
this.constructor = d;
|
|
50545
|
+
}
|
|
50546
|
+
|
|
50547
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
50548
|
+
};
|
|
50549
|
+
}();
|
|
50550
|
+
|
|
50551
|
+
var tree_selector_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
50552
|
+
var c = arguments.length,
|
|
50553
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
50554
|
+
d;
|
|
50555
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
50556
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
50557
|
+
}
|
|
50558
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
50559
|
+
};
|
|
50560
|
+
|
|
50561
|
+
var tree_selector_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
50562
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
50563
|
+
};
|
|
50564
|
+
|
|
50565
|
+
|
|
50566
|
+
|
|
50567
|
+
|
|
50568
|
+
|
|
50569
|
+
|
|
50570
|
+
var tree_selector_TreeSelectorComponent =
|
|
50571
|
+
/** @class */
|
|
50572
|
+
function (_super) {
|
|
50573
|
+
tree_selector_extends(TreeSelectorComponent, _super);
|
|
50574
|
+
|
|
50575
|
+
function TreeSelectorComponent() {
|
|
50576
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
50577
|
+
|
|
50578
|
+
_this.tree = []; // iview tree使用的数据
|
|
50579
|
+
|
|
50580
|
+
_this.inputValue = "";
|
|
50581
|
+
_this.visible = false;
|
|
50582
|
+
_this.current = {};
|
|
50583
|
+
return _this;
|
|
50584
|
+
}
|
|
50585
|
+
|
|
50586
|
+
TreeSelectorComponent.prototype.onValueChange = function (nv) {
|
|
50587
|
+
if (!nv) {
|
|
50588
|
+
this.inputValue = "";
|
|
50589
|
+
this.current = {};
|
|
50590
|
+
return;
|
|
50591
|
+
}
|
|
50592
|
+
|
|
50593
|
+
var node = this.getNodeById(this.value, this.tree) || {}; // this.$set(node, "selected", true);
|
|
50594
|
+
|
|
50595
|
+
this.current = node;
|
|
50596
|
+
this.inputValue = node.name || "";
|
|
50597
|
+
};
|
|
50598
|
+
|
|
50599
|
+
TreeSelectorComponent.prototype.renderContent = function (h, _a) {
|
|
50600
|
+
var root = _a.root,
|
|
50601
|
+
node = _a.node,
|
|
50602
|
+
data = _a.data;
|
|
50603
|
+
this.$set(data, "selected", this.current.id === data.id);
|
|
50604
|
+
return h(tree_selector_tree_node, {
|
|
50605
|
+
props: {
|
|
50606
|
+
data: data,
|
|
50607
|
+
canChooseFolder: this.canChooseFolder
|
|
50608
|
+
}
|
|
50609
|
+
});
|
|
50610
|
+
};
|
|
50611
|
+
|
|
50612
|
+
TreeSelectorComponent.prototype.onTreeDataChange = function () {
|
|
50613
|
+
this.tree = TreeDataUtil.handlerTreeData(this.treeData.$clone(), "name", this.leafName, undefined, this.filterEmpty);
|
|
50614
|
+
this.onValueChange(this.value);
|
|
50615
|
+
};
|
|
50616
|
+
|
|
50617
|
+
TreeSelectorComponent.prototype.getNodeById = function (id, nodes) {
|
|
50618
|
+
var node = undefined;
|
|
50619
|
+
|
|
50620
|
+
for (var _i = 0, nodes_1 = nodes; _i < nodes_1.length; _i++) {
|
|
50621
|
+
var i = nodes_1[_i];
|
|
50622
|
+
if (i.id === id) return i;
|
|
50623
|
+
|
|
50624
|
+
if (i.children && i.children.length) {
|
|
50625
|
+
node = this.getNodeById(id, i.children);
|
|
50626
|
+
if (node) return node;
|
|
50627
|
+
}
|
|
50628
|
+
}
|
|
50629
|
+
|
|
50630
|
+
return undefined;
|
|
50631
|
+
};
|
|
50632
|
+
|
|
50633
|
+
TreeSelectorComponent.prototype.onInputChange = function () {
|
|
50634
|
+
this.visible = true;
|
|
50635
|
+
};
|
|
50636
|
+
|
|
50637
|
+
TreeSelectorComponent.prototype.onSelectChange = function (selection, node) {
|
|
50638
|
+
this.$emit("input", node.id);
|
|
50639
|
+
this.$emit("on-select", node);
|
|
50640
|
+
this.visible = false;
|
|
50641
|
+
};
|
|
50642
|
+
|
|
50643
|
+
TreeSelectorComponent.prototype.onClear = function () {
|
|
50644
|
+
this.$emit("input", "");
|
|
50645
|
+
this.$emit("on-select", {});
|
|
50646
|
+
};
|
|
50647
|
+
|
|
50648
|
+
var _a;
|
|
50649
|
+
|
|
50650
|
+
tree_selector_decorate([Object(flagwind_web_["config"])({
|
|
50651
|
+
type: String,
|
|
50652
|
+
default: ""
|
|
50653
|
+
}), tree_selector_metadata("design:type", String)], TreeSelectorComponent.prototype, "value", void 0);
|
|
50654
|
+
|
|
50655
|
+
tree_selector_decorate([Object(flagwind_web_["config"])({
|
|
50656
|
+
type: Array,
|
|
50657
|
+
default: function _default() {
|
|
50658
|
+
return [];
|
|
50659
|
+
}
|
|
50660
|
+
}), tree_selector_metadata("design:type", typeof (_a = typeof Array !== "undefined" && Array) === "function" ? _a : Object)], TreeSelectorComponent.prototype, "treeData", void 0);
|
|
50661
|
+
|
|
50662
|
+
tree_selector_decorate([Object(flagwind_web_["config"])({
|
|
50663
|
+
default: "children"
|
|
50664
|
+
}), tree_selector_metadata("design:type", String)], TreeSelectorComponent.prototype, "leafName", void 0);
|
|
50665
|
+
|
|
50666
|
+
tree_selector_decorate([Object(flagwind_web_["config"])({
|
|
50667
|
+
type: Boolean,
|
|
50668
|
+
default: false
|
|
50669
|
+
}), tree_selector_metadata("design:type", Boolean)], TreeSelectorComponent.prototype, "filterEmpty", void 0);
|
|
50670
|
+
|
|
50671
|
+
tree_selector_decorate([Object(flagwind_web_["config"])({
|
|
50672
|
+
type: Boolean,
|
|
50673
|
+
default: false
|
|
50674
|
+
}), tree_selector_metadata("design:type", Boolean)], TreeSelectorComponent.prototype, "readonly", void 0);
|
|
50675
|
+
|
|
50676
|
+
tree_selector_decorate([Object(flagwind_web_["config"])({
|
|
50677
|
+
type: Boolean,
|
|
50678
|
+
default: false
|
|
50679
|
+
}), tree_selector_metadata("design:type", Boolean)], TreeSelectorComponent.prototype, "canChooseFolder", void 0);
|
|
50680
|
+
|
|
50681
|
+
tree_selector_decorate([Object(flagwind_web_["watch"])("value", {
|
|
50682
|
+
immediate: true
|
|
50683
|
+
}), tree_selector_metadata("design:type", Function), tree_selector_metadata("design:paramtypes", [String]), tree_selector_metadata("design:returntype", void 0)], TreeSelectorComponent.prototype, "onValueChange", null);
|
|
50684
|
+
|
|
50685
|
+
tree_selector_decorate([Object(flagwind_web_["watch"])("treeData", {
|
|
50686
|
+
deep: false,
|
|
50687
|
+
immediate: true
|
|
50688
|
+
}), tree_selector_metadata("design:type", Function), tree_selector_metadata("design:paramtypes", []), tree_selector_metadata("design:returntype", void 0)], TreeSelectorComponent.prototype, "onTreeDataChange", null);
|
|
50689
|
+
|
|
50690
|
+
TreeSelectorComponent = tree_selector_decorate([Object(flagwind_web_["component"])({
|
|
50691
|
+
template: __webpack_require__("a1f0"),
|
|
50692
|
+
components: {}
|
|
50693
|
+
})], TreeSelectorComponent);
|
|
50694
|
+
return TreeSelectorComponent;
|
|
50695
|
+
}(flagwind_web_["Component"]);
|
|
50696
|
+
|
|
50697
|
+
/* harmony default export */ var project_combine_tree_selector = (tree_selector_TreeSelectorComponent);
|
|
50388
50698
|
// EXTERNAL MODULE: ./src/views/project-combine/tree/add-node-modal/index.scss
|
|
50389
50699
|
var add_node_modal = __webpack_require__("9fb0");
|
|
50390
50700
|
|
|
@@ -50679,14 +50989,17 @@ var add_node_modal_generator = undefined && undefined.__generator || function (t
|
|
|
50679
50989
|
|
|
50680
50990
|
|
|
50681
50991
|
|
|
50992
|
+
|
|
50682
50993
|
var add_node_modal_AddTreeNodeComponent =
|
|
50683
50994
|
/** @class */
|
|
50684
50995
|
function (_super) {
|
|
50685
50996
|
add_node_modal_extends(AddTreeNodeComponent, _super);
|
|
50686
50997
|
|
|
50687
50998
|
function AddTreeNodeComponent() {
|
|
50688
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
50999
|
+
var _this = _super !== null && _super.apply(this, arguments) || this; // 所选分组数据
|
|
50689
51000
|
|
|
51001
|
+
|
|
51002
|
+
_this.categoryData = {};
|
|
50690
51003
|
_this.rules = {
|
|
50691
51004
|
name: [{
|
|
50692
51005
|
required: true,
|
|
@@ -50720,6 +51033,18 @@ function (_super) {
|
|
|
50720
51033
|
this.$refs.addForm.resetFields();
|
|
50721
51034
|
};
|
|
50722
51035
|
|
|
51036
|
+
AddTreeNodeComponent.prototype.modalShow = function (nv) {
|
|
51037
|
+
if (nv === false) {
|
|
51038
|
+
this.categoryData = {};
|
|
51039
|
+
}
|
|
51040
|
+
};
|
|
51041
|
+
|
|
51042
|
+
AddTreeNodeComponent.prototype.selectCategory = function (node) {
|
|
51043
|
+
// 将所选的类型id付给当前类型的父id,实现修改分组
|
|
51044
|
+
this.categoryData = node;
|
|
51045
|
+
this.data.parentId = this.categoryData.id;
|
|
51046
|
+
};
|
|
51047
|
+
|
|
50723
51048
|
AddTreeNodeComponent.prototype.onCancel = function () {
|
|
50724
51049
|
this.show = false;
|
|
50725
51050
|
};
|
|
@@ -50740,6 +51065,12 @@ function (_super) {
|
|
|
50740
51065
|
return add_node_modal_generator(this, function (_a) {
|
|
50741
51066
|
switch (_a.label) {
|
|
50742
51067
|
case 0:
|
|
51068
|
+
if (this.isEdit && this.data.id === this.data.parentId) {
|
|
51069
|
+
return [2
|
|
51070
|
+
/*return*/
|
|
51071
|
+
, this.$message.warning("所属分组不能选中自身")];
|
|
51072
|
+
}
|
|
51073
|
+
|
|
50743
51074
|
return [4
|
|
50744
51075
|
/*yield*/
|
|
50745
51076
|
, this.service.saveNode(this.data)];
|
|
@@ -50760,7 +51091,7 @@ function (_super) {
|
|
|
50760
51091
|
});
|
|
50761
51092
|
};
|
|
50762
51093
|
|
|
50763
|
-
var _a;
|
|
51094
|
+
var _a, _b;
|
|
50764
51095
|
|
|
50765
51096
|
add_node_modal_decorate([autowired(tree_service), add_node_modal_metadata("design:type", typeof (_a = typeof tree_service !== "undefined" && tree_service) === "function" ? _a : Object)], AddTreeNodeComponent.prototype, "service", void 0);
|
|
50766
51097
|
|
|
@@ -50769,6 +51100,11 @@ function (_super) {
|
|
|
50769
51100
|
default: false
|
|
50770
51101
|
}), add_node_modal_metadata("design:type", Boolean)], AddTreeNodeComponent.prototype, "value", void 0);
|
|
50771
51102
|
|
|
51103
|
+
add_node_modal_decorate([Object(flagwind_web_["config"])({
|
|
51104
|
+
type: Array,
|
|
51105
|
+
default: []
|
|
51106
|
+
}), add_node_modal_metadata("design:type", typeof (_b = typeof Array !== "undefined" && Array) === "function" ? _b : Object)], AddTreeNodeComponent.prototype, "categories", void 0);
|
|
51107
|
+
|
|
50772
51108
|
add_node_modal_decorate([Object(flagwind_web_["config"])({
|
|
50773
51109
|
default: function _default() {
|
|
50774
51110
|
return {
|
|
@@ -50781,15 +51117,20 @@ function (_super) {
|
|
|
50781
51117
|
|
|
50782
51118
|
add_node_modal_decorate([Object(flagwind_web_["watch"])("value"), add_node_modal_metadata("design:type", Function), add_node_modal_metadata("design:paramtypes", [Boolean]), add_node_modal_metadata("design:returntype", void 0)], AddTreeNodeComponent.prototype, "onValueChange", null);
|
|
50783
51119
|
|
|
51120
|
+
add_node_modal_decorate([Object(flagwind_web_["watch"])("show"), add_node_modal_metadata("design:type", Function), add_node_modal_metadata("design:paramtypes", [Boolean]), add_node_modal_metadata("design:returntype", void 0)], AddTreeNodeComponent.prototype, "modalShow", null);
|
|
51121
|
+
|
|
50784
51122
|
AddTreeNodeComponent = add_node_modal_decorate([Object(flagwind_web_["component"])({
|
|
50785
|
-
template: __webpack_require__("3b85")
|
|
51123
|
+
template: __webpack_require__("3b85"),
|
|
51124
|
+
components: {
|
|
51125
|
+
"u-tree-selector": project_combine_tree_selector
|
|
51126
|
+
}
|
|
50786
51127
|
})], AddTreeNodeComponent);
|
|
50787
51128
|
return AddTreeNodeComponent;
|
|
50788
51129
|
}(flagwind_web_["Component"]);
|
|
50789
51130
|
|
|
50790
51131
|
/* harmony default export */ var tree_add_node_modal = (add_node_modal_AddTreeNodeComponent);
|
|
50791
51132
|
// EXTERNAL MODULE: ./src/views/project-combine/tree/node/index.scss
|
|
50792
|
-
var
|
|
51133
|
+
var project_combine_tree_node = __webpack_require__("de03");
|
|
50793
51134
|
|
|
50794
51135
|
// CONCATENATED MODULE: ./src/views/project-combine/tree/node/index.ts
|
|
50795
51136
|
|
|
@@ -50918,7 +51259,7 @@ function (_super) {
|
|
|
50918
51259
|
return TreeNode;
|
|
50919
51260
|
}(flagwind_web_["Component"]);
|
|
50920
51261
|
|
|
50921
|
-
/* harmony default export */ var
|
|
51262
|
+
/* harmony default export */ var views_project_combine_tree_node = (node_TreeNode);
|
|
50922
51263
|
// EXTERNAL MODULE: ./src/views/project-combine/tree/index.scss
|
|
50923
51264
|
var tree = __webpack_require__("44c1");
|
|
50924
51265
|
|
|
@@ -51171,10 +51512,10 @@ function (_super) {
|
|
|
51171
51512
|
// return { Authorization: "Bearer " + token };
|
|
51172
51513
|
// }
|
|
51173
51514
|
}
|
|
51174
|
-
/**
|
|
51175
|
-
* 渲染子节点
|
|
51176
|
-
* @param h
|
|
51177
|
-
* @param param
|
|
51515
|
+
/**
|
|
51516
|
+
* 渲染子节点
|
|
51517
|
+
* @param h
|
|
51518
|
+
* @param param
|
|
51178
51519
|
*/
|
|
51179
51520
|
|
|
51180
51521
|
|
|
@@ -51186,7 +51527,7 @@ function (_super) {
|
|
|
51186
51527
|
data = _a.data;
|
|
51187
51528
|
this.$set(data, "selected", this.selectItem.id === data.id);
|
|
51188
51529
|
this.$set(data, "expand", this.expandNodeSet.has(data.id));
|
|
51189
|
-
return h(
|
|
51530
|
+
return h(views_project_combine_tree_node, {
|
|
51190
51531
|
props: {
|
|
51191
51532
|
data: data
|
|
51192
51533
|
},
|
|
@@ -51539,6 +51880,7 @@ var project_combine = __webpack_require__("da9a");
|
|
|
51539
51880
|
|
|
51540
51881
|
|
|
51541
51882
|
|
|
51883
|
+
|
|
51542
51884
|
var project_combine_extends = undefined && undefined.__extends || function () {
|
|
51543
51885
|
var _extendStatics = function extendStatics(d, b) {
|
|
51544
51886
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -51921,14 +52263,16 @@ function (_super) {
|
|
|
51921
52263
|
|
|
51922
52264
|
ProjectCombineManage.prototype.onAdd = function (id) {
|
|
51923
52265
|
return project_combine_awaiter(this, void 0, void 0, function () {
|
|
51924
|
-
|
|
52266
|
+
var _a;
|
|
52267
|
+
|
|
52268
|
+
return project_combine_generator(this, function (_b) {
|
|
51925
52269
|
this.$router.push({
|
|
51926
52270
|
replace: true,
|
|
51927
52271
|
name: "combine-add",
|
|
51928
|
-
query: {
|
|
52272
|
+
query: (_a = {
|
|
51929
52273
|
id: id !== null && id !== void 0 ? id : "",
|
|
51930
52274
|
categoryId: this.currentNode.id
|
|
51931
|
-
},
|
|
52275
|
+
}, _a["_".concat(id ? "edit" : "add")] = Date.now().toString(), _a),
|
|
51932
52276
|
params: {
|
|
51933
52277
|
title: id ? "" : "合并模型(新建)"
|
|
51934
52278
|
}
|
|
@@ -55188,9 +55532,6 @@ function (_super) {
|
|
|
55188
55532
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
55189
55533
|
var es_json_stringify = __webpack_require__("e9c4");
|
|
55190
55534
|
|
|
55191
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
55192
|
-
var es_regexp_to_string = __webpack_require__("25f0");
|
|
55193
|
-
|
|
55194
55535
|
// EXTERNAL MODULE: ./src/views/project-combine/combine-model/test-run-modal/index.scss
|
|
55195
55536
|
var test_run_modal = __webpack_require__("cfde");
|
|
55196
55537
|
|
|
@@ -55723,8 +56064,7 @@ function (_super) {
|
|
|
55723
56064
|
|
|
55724
56065
|
ProjectCombineModel.prototype.onBack = function () {
|
|
55725
56066
|
this.$router.push({
|
|
55726
|
-
name: "combine"
|
|
55727
|
-
|
|
56067
|
+
name: "combine"
|
|
55728
56068
|
});
|
|
55729
56069
|
this.$store.commit("tag/closeCurrent", this.$route);
|
|
55730
56070
|
};
|
|
@@ -56627,8 +56967,8 @@ var settings_assign = undefined && undefined.__assign || function () {
|
|
|
56627
56967
|
};
|
|
56628
56968
|
|
|
56629
56969
|
var global = window;
|
|
56630
|
-
/**
|
|
56631
|
-
* 公共配置
|
|
56970
|
+
/**
|
|
56971
|
+
* 公共配置
|
|
56632
56972
|
*/
|
|
56633
56973
|
|
|
56634
56974
|
var commonSetting = settings_assign({
|
|
@@ -61279,7 +61619,7 @@ var project_detail_tree_node = __webpack_require__("688a");
|
|
|
61279
61619
|
|
|
61280
61620
|
|
|
61281
61621
|
|
|
61282
|
-
var
|
|
61622
|
+
var project_detail_tree_node_extends = undefined && undefined.__extends || function () {
|
|
61283
61623
|
var _extendStatics = function extendStatics(d, b) {
|
|
61284
61624
|
_extendStatics = Object.setPrototypeOf || {
|
|
61285
61625
|
__proto__: []
|
|
@@ -61307,7 +61647,7 @@ var tree_node_extends = undefined && undefined.__extends || function () {
|
|
|
61307
61647
|
};
|
|
61308
61648
|
}();
|
|
61309
61649
|
|
|
61310
|
-
var
|
|
61650
|
+
var project_detail_tree_node_decorate = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
61311
61651
|
var c = arguments.length,
|
|
61312
61652
|
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
61313
61653
|
d;
|
|
@@ -61317,7 +61657,7 @@ var tree_node_decorate = undefined && undefined.__decorate || function (decorato
|
|
|
61317
61657
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
61318
61658
|
};
|
|
61319
61659
|
|
|
61320
|
-
var
|
|
61660
|
+
var project_detail_tree_node_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
61321
61661
|
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
61322
61662
|
};
|
|
61323
61663
|
|
|
@@ -61328,7 +61668,7 @@ var tree_node_metadata = undefined && undefined.__metadata || function (k, v) {
|
|
|
61328
61668
|
var tree_node_TreeNode =
|
|
61329
61669
|
/** @class */
|
|
61330
61670
|
function (_super) {
|
|
61331
|
-
|
|
61671
|
+
project_detail_tree_node_extends(TreeNode, _super);
|
|
61332
61672
|
|
|
61333
61673
|
function TreeNode() {
|
|
61334
61674
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -61359,13 +61699,13 @@ function (_super) {
|
|
|
61359
61699
|
this.$emit("on-" + name, this.data);
|
|
61360
61700
|
};
|
|
61361
61701
|
|
|
61362
|
-
|
|
61702
|
+
project_detail_tree_node_decorate([Object(flagwind_web_["config"])({
|
|
61363
61703
|
default: function _default() {
|
|
61364
61704
|
return new Object();
|
|
61365
61705
|
}
|
|
61366
|
-
}),
|
|
61706
|
+
}), project_detail_tree_node_metadata("design:type", Object)], TreeNode.prototype, "data", void 0);
|
|
61367
61707
|
|
|
61368
|
-
TreeNode =
|
|
61708
|
+
TreeNode = project_detail_tree_node_decorate([Object(flagwind_web_["component"])({
|
|
61369
61709
|
template: __webpack_require__("d953"),
|
|
61370
61710
|
components: {
|
|
61371
61711
|
"u-confirm": views_project_list_confirm
|
|
@@ -61829,8 +62169,8 @@ function (_super) {
|
|
|
61829
62169
|
};
|
|
61830
62170
|
this.showGroupModal = true;
|
|
61831
62171
|
};
|
|
61832
|
-
/**
|
|
61833
|
-
* 输入关键字对数据进行过滤
|
|
62172
|
+
/**
|
|
62173
|
+
* 输入关键字对数据进行过滤
|
|
61834
62174
|
*/
|
|
61835
62175
|
|
|
61836
62176
|
|
|
@@ -61842,9 +62182,9 @@ function (_super) {
|
|
|
61842
62182
|
|
|
61843
62183
|
this.renderData = this.filterData(this.data.$clone());
|
|
61844
62184
|
};
|
|
61845
|
-
/**
|
|
61846
|
-
* 判断一个节点是否是与关键字匹配的叶子节点,或者是包含符合条件的叶子节点的祖先节点
|
|
61847
|
-
* @param node
|
|
62185
|
+
/**
|
|
62186
|
+
* 判断一个节点是否是与关键字匹配的叶子节点,或者是包含符合条件的叶子节点的祖先节点
|
|
62187
|
+
* @param node
|
|
61848
62188
|
*/
|
|
61849
62189
|
|
|
61850
62190
|
|
|
@@ -61861,9 +62201,9 @@ function (_super) {
|
|
|
61861
62201
|
return flag_1;
|
|
61862
62202
|
}
|
|
61863
62203
|
};
|
|
61864
|
-
/**
|
|
61865
|
-
* 处理渲染数据,只保留与关键字匹配的叶子节点和其祖先节点
|
|
61866
|
-
* @param data
|
|
62204
|
+
/**
|
|
62205
|
+
* 处理渲染数据,只保留与关键字匹配的叶子节点和其祖先节点
|
|
62206
|
+
* @param data
|
|
61867
62207
|
*/
|
|
61868
62208
|
|
|
61869
62209
|
|