@egova/egova-api 1.0.100 → 1.0.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.common.js +217 -152
- package/dist/index.css +1 -1
- package/dist/index.umd.js +217 -152
- package/dist/index.umd.min.js +4 -4
- package/dist/types/src/views/project-combine/combine-model/base-editor/index.d.ts +1 -0
- package/dist/types/src/views/project-combine/combine-model/index.d.ts +3 -1
- package/dist/types/src/views/project-combine/combine-model/request-parameter-list/index.d.ts +7 -16
- package/dist/types/src/views/project-combine/data-model/data-model-list/index.d.ts +2 -14
- package/dist/types/src/views/project-combine/index.d.ts +4 -3
- 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\">\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\n class=\"action-item\"\n :action=\"uploadAction\"\n :data=\"uploadParams\"\n accept=\".json\"\n :headers=\"headers\"\n :show-upload-list=\"false\"\n :format=\"['json']\"\n :on-success=\"onSuccess\"\n :before-upload=\"onBeforeUpload\"\n :on-format-error=\"onFormatError\"\n >\n <i title=\"导入\" class=\"iconfont icon-import\"></i>{{item.text}}\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"
|
|
21184
|
+
module.exports = "<div class=\"u-tree-node\" @click=\"onClickNode\">\r\n <i class=\"iconfont\" :class=\"data.expand? 'icon-expand': 'icon-unexpand'\"></i>\r\n <div class=\"name\">{{data.name}}</div>\r\n <i-dropdown @on-click=\"onClick\" transfer transfer-class-name=\"node-oprate\">\r\n <i-icon type=\"ios-more\" />\r\n <i-dropdown-menu slot=\"list\">\r\n <i-dropdown-item v-for=\"item in actions\" :key=\"item.name\" :name=\"item.name\">\r\n <template v-if=\"item.name === 'import'\">\r\n <i-upload\r\n class=\"action-item\"\r\n :action=\"uploadAction\"\r\n :data=\"uploadParams\"\r\n accept=\".json\"\r\n :headers=\"headers\"\r\n :show-upload-list=\"false\"\r\n :format=\"['json']\"\r\n :on-success=\"onSuccess\"\r\n :before-upload=\"onBeforeUpload\"\r\n :on-format-error=\"onFormatError\"\r\n >\r\n <i title=\"导入\" class=\"iconfont icon-import\"></i>{{item.text}}\r\n </i-upload>\r\n </template>\r\n <template v-else> <i class=\"iconfont\" :class=\"'icon-' + (item.icon || item.name)\"></i>{{item.text}} </template>\r\n </i-dropdown-item>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n</div>\r\n"
|
|
21185
21185
|
|
|
21186
21186
|
/***/ }),
|
|
21187
21187
|
|
|
@@ -21212,7 +21212,7 @@ 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\">\r\n <header slot=\"header\">运行结果</header>\r\n <main>\r\n <section class=\"u-test-run-content\">\r\n <section class=\"title-g\">参数</section>\r\n <section class=\"card-panel context-editor\">\r\n <u-base-editor :data.sync=\"context\"></u-base-editor>\r\n </section>\r\n <i-row justify=\"end\">\r\n <i-button class=\"diy-btn-default\" @click=\"onReset\">重置</i-button>\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onProcess\">执行</i-button>\r\n </i-row>\r\n <section class=\"title-g\">结果</section>\r\n <section class=\"card-panel\">\r\n <i-tabs>\r\n <i-tab-pane label=\"响应\" name=\"response\">\r\n <u-base-editor :class=\"['editor', error ? 'editor-error' : '']\" :data.sync=\"result\" :readOnly=\"true\"></u-base-editor>\r\n </i-tab-pane>\r\n <i-tab-pane label=\"输出\" name=\"output\">\r\n <u-base-editor :data.sync=\"output\" :readOnly=\"true\"></u-base-editor>\r\n </i-tab-pane>\r\n </i-tabs>\r\n </section>\r\n </section>\r\n </main>\r\n <footer slot=\"footer\">\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onOk\"
|
|
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\">\r\n <header slot=\"header\">运行结果</header>\r\n <main>\r\n <section class=\"u-test-run-content\">\r\n <section class=\"title-g\">参数</section>\r\n <section class=\"card-panel context-editor\">\r\n <u-base-editor :data.sync=\"context\"></u-base-editor>\r\n </section>\r\n <i-row justify=\"end\">\r\n <i-button class=\"diy-btn-default\" @click=\"onReset\">重置</i-button>\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onProcess\">执行</i-button>\r\n </i-row>\r\n <section class=\"title-g\">结果</section>\r\n <section class=\"card-panel\">\r\n <i-tabs>\r\n <i-tab-pane label=\"响应\" name=\"response\">\r\n <u-base-editor :class=\"['editor', error ? 'editor-error' : '']\" :data.sync=\"result\" :readOnly=\"true\"></u-base-editor>\r\n </i-tab-pane>\r\n <i-tab-pane label=\"输出\" name=\"output\">\r\n <u-base-editor :data.sync=\"output\" :readOnly=\"true\"></u-base-editor>\r\n </i-tab-pane>\r\n </i-tabs>\r\n </section>\r\n </section>\r\n </main>\r\n <footer slot=\"footer\">\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onOk\">关闭</i-button>\r\n </footer>\r\n</i-modal>\r\n"
|
|
21216
21216
|
|
|
21217
21217
|
/***/ }),
|
|
21218
21218
|
|
|
@@ -22619,7 +22619,7 @@ module.exports = !STRICT_METHOD ? function forEach(callbackfn /* , thisArg */) {
|
|
|
22619
22619
|
/***/ "193e":
|
|
22620
22620
|
/***/ (function(module, exports) {
|
|
22621
22621
|
|
|
22622
|
-
module.exports = "<article class=\"project-tree\">\n <header>\n <i-input\n class=\"diy-input\"\n search\n v-model=\"keyword\"\n @on-search=\"onFilter\"\n placeholder=\"输入关键字搜索\"\n >\n <i-select\n transfer\n slot=\"prepend\"\n v-model=\"type\"\n @on-change=\"onFilter\"\n class=\"diy-select\"\n >\n <i-option\n v-for=\"item in typeList\"\n :key=\"item.value\"\n :value=\"item.value\"\n >{{item.text}}</i-option\n >\n </i-select>\n </i-input>\n <div class=\"add\" @click=\"onAddGroup\">\n <i class=\"api-icon icon-add\"></i>\n <span>新建分组</span>\n </div>\n </header>\n <i-tree :data=\"renderData\" :render=\"renderContent\"></i-tree>\n <i-modal\n draggable\n sticky\n reset-drag-position\n v-model=\"showGroupModal\"\n class=\"diy-modal\"\n :mask-closable=\"false\"\n transfer\n @on-ok=\"onSaveGroup\"\n :title=\"group.id ? '修改分组': '添加分组'\"\n >\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\n <i-form-item label=\"分组名称\">\n <i-input class=\"diy-input\" v-model=\"group.name\"></i-input>\n </i-form-item>\n <i-form-item label=\"分组位置\">\n <u-group-select\n :data=\"groupTree\"\n :current=\"parent\"\n @on-select=\"onSelectParent\"\n ></u-group-select>\n </i-form-item>\n </i-form>\n </i-modal>\n <i-modal\n draggable\n sticky\n reset-drag-position\n v-model=\"showInterfaceModal\"\n class=\"diy-modal\"\n :mask-closable=\"false\"\n @on-ok=\"onSaveInterface\"\n :title=\"interfaceModel.id ? '修改接口': '添加接口'\"\n >\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\n <i-form-item label=\"接口名称\">\n <i-input\n class=\"diy-input\"\n v-model=\"interfaceModel.name\"\n ></i-input>\n </i-form-item>\n <i-form-item label=\"接口位置\">\n <u-group-select\n :data=\"groupTree\"\n :current=\"parent\"\n @on-select=\"onSelectParent\"\n ></u-group-select>\n </i-form-item>\n <i-form-item label=\"接口类型\">\n <i-select v-model=\"interfaceModel.method\" class=\"diy-select\" transfer>\n <i-option\n v-for=\"item in typeList\"\n v-if=\"item.value\"\n :key=\"item.value\"\n :value=\"item.value\"\n >{{item.text}}</i-option\n >\n </i-select>\n </i-form-item>\n </i-form>\n </i-modal>\n <i-modal\n draggable\n sticky\n reset-drag-position\n v-model=\"showCopyModal\"\n class=\"diy-modal\"\n :mask-closable=\"false\"\n title=\"复制接口\"\n >\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\n <i-form-item label=\"接口名称\" required>\n <i-input\n class=\"diy-input\"\n v-model=\"copyName\"\n ></i-input>\n </i-form-item>\n <i-form-item label=\"选择分组\" required>\n <u-group-select\n :data=\"groupTree\"\n :current=\"parent\"\n @on-select=\"onSelectParent\"\n ></u-group-select>\n </i-form-item>\n </i-form>\n <footer slot=\"footer\">\n <i-button\n class=\"diy-btn-primary\"\n type=\"primary\"\n @click=\"onCopy\"\n >确定</i-button>\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\n </footer>\n </i-modal>\n</article>\n"
|
|
22622
|
+
module.exports = "<article class=\"project-tree\">\r\n <header>\r\n <i-input\r\n class=\"diy-input\"\r\n search\r\n v-model=\"keyword\"\r\n @on-search=\"onFilter\"\r\n placeholder=\"输入关键字搜索\"\r\n >\r\n <i-select\r\n transfer\r\n slot=\"prepend\"\r\n v-model=\"type\"\r\n @on-change=\"onFilter\"\r\n class=\"diy-select\"\r\n >\r\n <i-option\r\n v-for=\"item in typeList\"\r\n :key=\"item.value\"\r\n :value=\"item.value\"\r\n >{{item.text}}</i-option\r\n >\r\n </i-select>\r\n </i-input>\r\n <div class=\"add\" @click=\"onAddGroup\">\r\n <i class=\"api-icon icon-add\"></i>\r\n <span>新建分组</span>\r\n </div>\r\n </header>\r\n <i-tree :data=\"renderData\" :render=\"renderContent\"></i-tree>\r\n <i-modal\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model=\"showGroupModal\"\r\n class=\"diy-modal\"\r\n :mask-closable=\"false\"\r\n transfer\r\n @on-ok=\"onSaveGroup\"\r\n :title=\"group.id ? '修改分组': '添加分组'\"\r\n >\r\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\r\n <i-form-item label=\"分组名称\">\r\n <i-input class=\"diy-input\" v-model=\"group.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"分组位置\">\r\n <u-group-select\r\n :data=\"groupTree\"\r\n :current=\"parent\"\r\n @on-select=\"onSelectParent\"\r\n ></u-group-select>\r\n </i-form-item>\r\n </i-form>\r\n </i-modal>\r\n <i-modal\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model=\"showInterfaceModal\"\r\n class=\"diy-modal\"\r\n :mask-closable=\"false\"\r\n @on-ok=\"onSaveInterface\"\r\n :title=\"interfaceModel.id ? '修改接口': '添加接口'\"\r\n >\r\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\r\n <i-form-item label=\"接口名称\">\r\n <i-input\r\n class=\"diy-input\"\r\n v-model=\"interfaceModel.name\"\r\n ></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"接口位置\">\r\n <u-group-select\r\n :data=\"groupTree\"\r\n :current=\"parent\"\r\n @on-select=\"onSelectParent\"\r\n ></u-group-select>\r\n </i-form-item>\r\n <i-form-item label=\"接口类型\">\r\n <i-select v-model=\"interfaceModel.method\" class=\"diy-select\" transfer>\r\n <i-option\r\n v-for=\"item in typeList\"\r\n v-if=\"item.value\"\r\n :key=\"item.value\"\r\n :value=\"item.value\"\r\n >{{item.text}}</i-option\r\n >\r\n </i-select>\r\n </i-form-item>\r\n </i-form>\r\n </i-modal>\r\n <i-modal\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model=\"showCopyModal\"\r\n class=\"diy-modal\"\r\n :mask-closable=\"false\"\r\n title=\"复制接口\"\r\n >\r\n <i-form :label-width=\"100\" class=\"diy-form\" label-colon>\r\n <i-form-item label=\"接口名称\" required>\r\n <i-input\r\n class=\"diy-input\"\r\n v-model=\"copyName\"\r\n ></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"选择分组\" required>\r\n <u-group-select\r\n :data=\"groupTree\"\r\n :current=\"parent\"\r\n @on-select=\"onSelectParent\"\r\n ></u-group-select>\r\n </i-form-item>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button\r\n class=\"diy-btn-primary\"\r\n type=\"primary\"\r\n @click=\"onCopy\"\r\n >确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n</article>\r\n"
|
|
22623
22623
|
|
|
22624
22624
|
/***/ }),
|
|
22625
22625
|
|
|
@@ -24816,7 +24816,7 @@ module.exports = "<article class=\"headers-setting\">\r\n <header>\r\n
|
|
|
24816
24816
|
/***/ "236b":
|
|
24817
24817
|
/***/ (function(module, exports) {
|
|
24818
24818
|
|
|
24819
|
-
module.exports = "<article class=\"after-execution-transfer\">\n <i-form :label-width=\"112\" class=\"diy-form\" label-colon v-if=\"interfaceModel.convertConfig\">\n <i-form-item label=\"状态字段位置\">\n <i-input class=\"diy-input\" v-model=\"interfaceModel.convertConfig.successCodePath\"></i-input>\n </i-form-item>\n <i-form-item label=\"成功标识\">\n <i-input class=\"diy-input\" v-model=\"interfaceModel.convertConfig.successCode\"></i-input>\n </i-form-item>\n <i-form-item label=\"数据字段位置\">\n <i-input class=\"diy-input\" v-model=\"interfaceModel.convertConfig.convertRoot\"></i-input>\n </i-form-item>\n </i-form>\n <i-row class=\"transfer-actions\" justify=\"space-between\">\n <span>配置输出字段</span>\n <div class=\"actions-wrapper\">\n <i-poptip confirm title=\"
|
|
24819
|
+
module.exports = "<article class=\"after-execution-transfer\">\r\n <i-form :label-width=\"112\" class=\"diy-form\" label-colon v-if=\"interfaceModel.convertConfig\">\r\n <i-form-item label=\"状态字段位置\">\r\n <i-input class=\"diy-input\" v-model=\"interfaceModel.convertConfig.successCodePath\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"成功标识\">\r\n <i-input class=\"diy-input\" v-model=\"interfaceModel.convertConfig.successCode\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"数据字段位置\">\r\n <i-input class=\"diy-input\" v-model=\"interfaceModel.convertConfig.convertRoot\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <i-row class=\"transfer-actions\" justify=\"space-between\">\r\n <span>配置输出字段</span>\r\n <div class=\"actions-wrapper\">\r\n <i-poptip confirm title=\"清空后当前编辑内容需要重新填写,是否确认一键覆盖?\" @on-ok=\"onReset\" transfer>\r\n <div class=\"action-item action-text\">\r\n <i class=\"iconfont icon-refresh\"></i>\r\n 清空\r\n </div>\r\n </i-poptip>\r\n <div class=\"action-item action-text\" @click=\"onAdd\">\r\n <i class=\"iconfont icon-add\"></i>\r\n 新增\r\n </div>\r\n </div>\r\n </i-row>\r\n <i-table :columns=\"columns\" :data=\"dataList\" class=\"diy-table\">\r\n <template slot-scope=\"{ row,index }\" slot=\"selection\">\r\n <i-checkbox v-model=\"dataList[index].checked\" @on-change=\"onChangeChecked($event,dataList[index])\"> </i-checkbox>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"path\">\r\n <i-input class=\"diy-input\" v-model=\"dataList[index].paramPath\" @on-change=\"debounceUpdateFieldMappings\"> </i-input>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"name\">\r\n <i-input class=\"diy-input half\" placeholder=\"输入字段命名\" v-model=\"dataList[index].name\" @on-change=\"debounceUpdateFieldMappings\"> </i-input>\r\n <i-select transfer class=\"half diy-select\" v-model=\"dataList[index].valueType\" placeholder=\"选择字段类型\" @on-change=\"debounceUpdateFieldMappings\">\r\n <i-option v-for=\"item in valueTypeList\" :key=\"item.name\" :value=\"item.name\">{{item.text}} </i-option>\r\n </i-select>\r\n </template>\r\n <template slot-scope=\"{ row,index }\" slot=\"action\">\r\n <i-poptip confirm title=\"确认删除这条数据吗?\" @on-ok=\"onDelete(index)\" transfer>\r\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n </template>\r\n </i-table>\r\n</article>\r\n"
|
|
24820
24820
|
|
|
24821
24821
|
/***/ }),
|
|
24822
24822
|
|
|
@@ -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>\r\n <header slot=\"header\">查看接口文档</header>\r\n <main>\r\n <div class=\"v-mavon-container\">\r\n <!-- startprint -->\r\n <mavon-editor :subfield=\"false\" :toolbars=\"toolbars\" :value=\"doc\" defaultOpen=\"preview\" @save=\"onSave\"></mavon-editor>\r\n <!-- endprint -->\r\n <iframe id=\"printf\" src=\"\" width=\"0\" height=\"0\" frameborder=\"0\"></iframe>\r\n </div>\r\n </main>\r\n <footer slot=\"footer\">\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onOk\"
|
|
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>\r\n <header slot=\"header\">查看接口文档</header>\r\n <main>\r\n <div class=\"v-mavon-container\">\r\n <!-- startprint -->\r\n <mavon-editor :subfield=\"false\" :toolbars=\"toolbars\" :value=\"doc\" defaultOpen=\"preview\" @save=\"onSave\"></mavon-editor>\r\n <!-- endprint -->\r\n <iframe id=\"printf\" src=\"\" width=\"0\" height=\"0\" frameborder=\"0\"></iframe>\r\n </div>\r\n </main>\r\n <footer slot=\"footer\">\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onOk\">关闭</i-button>\r\n </footer>\r\n</i-modal>\r\n"
|
|
26627
26627
|
|
|
26628
26628
|
/***/ }),
|
|
26629
26629
|
|
|
@@ -26692,7 +26692,7 @@ fixRegExpWellKnownSymbolLogic('match', function (MATCH, nativeMatch, maybeCallNa
|
|
|
26692
26692
|
/***/ "46d3":
|
|
26693
26693
|
/***/ (function(module, exports) {
|
|
26694
26694
|
|
|
26695
|
-
module.exports = "<article class=\"u-common-tree u-type-tree\">\n <slot name=\"header\">\n <header slot=\"header\" class=\"tree-header\">\n <span>合并模型列表</span>\n <i-upload\n class=\"action-item\"\n :action=\"uploadAction\"\n accept=\".json\"\n :headers=\"headers\"\n :show-upload-list=\"false\"\n :format=\"['json']\"\n :on-success=\"onSuccess\"\n :before-upload=\"onBeforeUpload\"\n :on-format-error=\"onFormatError\"\n >\n <i title=\"导入\" class=\"iconfont icon-import\"></i>\n </i-upload>\n <i\n @click=\"onModelExport\"\n :class=\"{'disabled': !data.length}\"\n class=\"iconfont icon-export\"\n title=\"导出\"\n ></i>\n <i @click.stop=\"onAddTreeNode\" title=\"新增合并模型\" class=\"iconfont icon-add-folder\"></i>\n </header>\n </slot>\n <section class=\"content\">\n <i-input class=\"search-input diy-input\" suffix=\"ios-search\" :placeholder=\"placeholder\" @on-change=\"onFilter\" v-model=\"keyword\" />\n <i-tree :data=\"renderData\" :render=\"renderContent\" @on-toggle-expand=\"onToggleExpand\"></i-tree>\n </section>\n <u-add-node :data=\"tempNode\" :categories=\"data\" v-model=\"showAddTreeNodeModal\" @on-refresh=\"queryTreeData\"></u-add-node>\n</article>\n"
|
|
26695
|
+
module.exports = "<article class=\"u-common-tree u-type-tree\">\r\n <slot name=\"header\">\r\n <header slot=\"header\" class=\"tree-header\">\r\n <span>合并模型列表</span>\r\n <i-upload\r\n class=\"action-item\"\r\n :action=\"uploadAction\"\r\n accept=\".json\"\r\n :headers=\"headers\"\r\n :show-upload-list=\"false\"\r\n :format=\"['json']\"\r\n :on-success=\"onSuccess\"\r\n :before-upload=\"onBeforeUpload\"\r\n :on-format-error=\"onFormatError\"\r\n >\r\n <i title=\"导入\" class=\"iconfont icon-import\"></i>\r\n </i-upload>\r\n <i\r\n @click=\"onModelExport\"\r\n :class=\"{'disabled': !data.length}\"\r\n class=\"iconfont icon-export\"\r\n title=\"导出\"\r\n ></i>\r\n <i @click.stop=\"onAddTreeNode\" title=\"新增合并模型\" class=\"iconfont icon-add-folder\"></i>\r\n </header>\r\n </slot>\r\n <section class=\"content\">\r\n <i-input class=\"search-input diy-input\" suffix=\"ios-search\" :placeholder=\"placeholder\" @on-change=\"onFilter\" v-model=\"keyword\" />\r\n <i-tree :data=\"renderData\" :render=\"renderContent\" @on-toggle-expand=\"onToggleExpand\"></i-tree>\r\n </section>\r\n <u-add-node :data=\"tempNode\" :categories=\"data\" v-model=\"showAddTreeNodeModal\" @on-refresh=\"queryTreeData\"></u-add-node>\r\n</article>\r\n"
|
|
26696
26696
|
|
|
26697
26697
|
/***/ }),
|
|
26698
26698
|
|
|
@@ -26769,7 +26769,7 @@ module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
|
|
|
26769
26769
|
/***/ "4935":
|
|
26770
26770
|
/***/ (function(module, exports) {
|
|
26771
26771
|
|
|
26772
|
-
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1280\" class=\"u-data-model-modal diy-modal\" transfer>\n <header slot=\"header\">添加数据模型</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-data-model-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-data-model-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"
|
|
26772
|
+
module.exports = "<i-modal draggable sticky reset-drag-position :mask-closable=\"false\" v-model=\"show\" width=\"1280\" class=\"u-data-model-modal diy-modal\" transfer>\r\n <header slot=\"header\">添加数据模型</header>\r\n <main>\r\n <i-split v-model=\"splitHorizontal\">\r\n <section slot=\"left\" class=\"card-panel card-panel-no-right-border\">\r\n <div class=\"card-panel-header\">\r\n <span>选择列表</span>\r\n </div>\r\n <div class=\"card-panel-main\">\r\n <u-tree :initSelectItem=\"initNode\" :prop-data=\"treeData\" @on-select=\"onSelect\" />\r\n </div>\r\n </section>\r\n <section slot=\"right\" class=\"right-content\">\r\n <i-split v-model=\"splitVertical\" mode=\"vertical\" max=\"600\">\r\n <section slot=\"top\" class=\"card-panel card-panel-no-bottom-border\">\r\n <div class=\"card-panel-header\">\r\n <span>选择模型</span>\r\n </div>\r\n <div class=\"card-panel-main\">\r\n <u-data-model-list\r\n :data=\"tableData\"\r\n :paging.sync=\"paging\"\r\n @on-search=\"onSearch\"\r\n @on-page-index-change=\"onPageIndexChange\"\r\n @on-page-size-change=\"onPageSizeChange\"\r\n @on-selection-change=\"onSelectionChange\"\r\n @on-delete-refresh=\"getTableData\"\r\n >\r\n </u-data-model-list>\r\n </div>\r\n </section>\r\n <section slot=\"bottom\" :class=\"['card-panel', collapse ? 'card-panel-no-bottom-border' : '']\">\r\n <div class=\"card-panel-header\">\r\n <span>已选({{checkedLength}})</span>\r\n <span>\r\n <i-poptip confirm title=\"确定要清空已选中的数据吗?\" transfer placement=\"top-end\" @on-ok=\"onBatchDelete\">\r\n <span class=\"action-text\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n <span>清空</span>\r\n </span>\r\n </i-poptip>\r\n <span class=\"action-text collapse-text\" @click=\"onClickCollapse\">\r\n <span>{{collapse ? \"展开\" : \"收起\"}}</span>\r\n <!-- <i class=\"iconfont icon-expand\"></i> -->\r\n </span>\r\n </span>\r\n </div>\r\n <div class=\"card-panel-main\">\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"checkedData\">\r\n <template #operates=\"{row,index}\">\r\n <div class=\"row-actions\">\r\n <i-poptip confirm transfer title=\"确认要删除这条数据吗?\" @on-ok=\"onDelete(row)\">\r\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n </div>\r\n </template>\r\n </i-table>\r\n </div>\r\n </section>\r\n </i-split>\r\n </section>\r\n </i-split>\r\n <i-spin fix v-if=\"isLoading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n </main>\r\n <footer slot=\"footer\">\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click=\"onSave\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onCancel\">取消</i-button>\r\n </footer>\r\n</i-modal>\r\n"
|
|
26773
26773
|
|
|
26774
26774
|
/***/ }),
|
|
26775
26775
|
|
|
@@ -40436,7 +40436,7 @@ module.exports = function (argument) {
|
|
|
40436
40436
|
/***/ "82af":
|
|
40437
40437
|
/***/ (function(module, exports) {
|
|
40438
40438
|
|
|
40439
|
-
module.exports = "<div class=\"v-data-modal-list-container\">\r\n <header>\r\n <div class=\"condition\">\r\n <div class=\"input-item\">\r\n <span
|
|
40439
|
+
module.exports = "<div class=\"v-data-modal-list-container\">\r\n <header>\r\n <div class=\"condition\">\r\n <div class=\"input-item\">\r\n <span>名称:</span>\r\n <i-input class=\"diy-input\" placeholder=\"请输入名称\" v-model=\"condition.name\" @on-enter=\"onSearch\"></i-input>\r\n </div>\r\n <div class=\"input-item\">\r\n <span>编码:</span>\r\n <i-input class=\"diy-input\" placeholder=\"请输入编码\" v-model=\"condition.code\" @on-enter=\"onSearch\"></i-input>\r\n </div>\r\n <div class=\"search-btn\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onSearch\">查询</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onEmpty\">重置</i-button>\r\n </div>\r\n </div>\r\n </header>\r\n <main>\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"data\" @on-selection-change=\"onSelected\">\r\n <template slot=\"enableCache\" slot-scope=\"{row}\">\r\n <span>{{row.enableCache === true ? \"是\" : \"否\"}}</span>\r\n </template>\r\n <template slot=\"doc\" slot-scope=\"{row}\">\r\n <a @click=\"onOpenDoc(row)\">查看</a>\r\n </template>\r\n </i-table>\r\n </main>\r\n <div class=\"pagination\">\r\n <i-page class=\"diy-page\" :total=\"page.totalCount\" @on-change=\"onPageIndexChange\" @on-page-size-change=\"onPageSizeChange\" show-elevator show-total show-sizer> </i-page>\r\n </div>\r\n <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\r\n</div>\r\n"
|
|
40440
40440
|
|
|
40441
40441
|
/***/ }),
|
|
40442
40442
|
|
|
@@ -43295,7 +43295,7 @@ module.exports = function (METHOD_NAME) {
|
|
|
43295
43295
|
/***/ "ab68":
|
|
43296
43296
|
/***/ (function(module, exports) {
|
|
43297
43297
|
|
|
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详情\">\r\n <i-form label-colon :label-width=\"120\">\r\n <i-form-item label=\"接口名称\">\r\n <span>{{action.name}}</span>\r\n </i-form-item>\r\n <i-form-item label=\"所属类型\">\r\n <span>{{model.type}}</span>\r\n </i-form-item>\r\n <i-form-item label=\"接口url\">\r\n <span>{{action.url}}</span>\r\n </i-form-item>\r\n <i-form-item label=\"创建时间\">\r\n <span>{{action.timestamp}}</span>\r\n </i-form-item>\r\n <p class=\"item-title\">接口参数</p>\r\n <component v-if=\"params\" :is=\"params\" :model=\"detail\"></component>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-
|
|
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详情\">\r\n <i-form label-colon :label-width=\"120\">\r\n <i-form-item label=\"接口名称\">\r\n <span>{{action.name}}</span>\r\n </i-form-item>\r\n <i-form-item label=\"所属类型\">\r\n <span>{{model.type}}</span>\r\n </i-form-item>\r\n <i-form-item label=\"接口url\">\r\n <span>{{action.url}}</span>\r\n </i-form-item>\r\n <i-form-item label=\"创建时间\">\r\n <span>{{action.timestamp}}</span>\r\n </i-form-item>\r\n <p class=\"item-title\">接口参数</p>\r\n <component v-if=\"params\" :is=\"params\" :model=\"detail\"></component>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onClose\">关闭</i-button>\r\n </footer>\r\n</i-modal>\r\n"
|
|
43299
43299
|
|
|
43300
43300
|
/***/ }),
|
|
43301
43301
|
|
|
@@ -46969,7 +46969,7 @@ $({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
|
|
|
46969
46969
|
/***/ "ccf6":
|
|
46970
46970
|
/***/ (function(module, exports) {
|
|
46971
46971
|
|
|
46972
|
-
module.exports = "<!DOCTYPE html>\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\" @on-tree-data=\"onTreeData\"> </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\" ? \"已发布\" : \"
|
|
46972
|
+
module.exports = "<!DOCTYPE html>\r\n<article class=\"v-api-combine-wrapper\">\r\n <i-split v-model=\"split\" min=\"200px\" max=\"1100px\">\r\n <!-- 左侧内容 -->\r\n <section slot=\"left\" class=\"left-split-pane\">\r\n <u-type-tree :initSelectItem=\"initNode\" @on-import-success=\"onQuery\" @on-select=\"onNodeSelect\" @on-tree-data=\"onTreeData\"> </u-type-tree>\r\n </section>\r\n <!-- 分割线 -->\r\n <section class=\"trigger\" slot=\"trigger\"></section>\r\n <!-- 右侧内容 -->\r\n <section slot=\"right\" class=\"right-split-pane\">\r\n <section class=\"search-wrapper\">\r\n <i-form class=\"diy-search-form\" ref=\"searchForm\" :model=\"formData\" label-position=\"left\" label-colon>\r\n <i-form-item label=\"名称\" prop=\"name\">\r\n <i-input class=\"diy-input\" v-model=\"formData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"编码\" prop=\"code\">\r\n <i-input class=\"diy-input\" v-model=\"formData.code\"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <div class=\"btns\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onQuery\">查询</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onReset\">重置</i-button>\r\n </div>\r\n </section>\r\n <section class=\"actions-wrapper\">\r\n <div class=\"action-item action-text\" @click=\"onAdd()\">\r\n <i class=\"iconfont icon-add\"></i>\r\n <div>新增</div>\r\n </div>\r\n <div class=\"action-item action-text\" :class=\"selection.length ? '' : 'icon-button-disabled'\" @click=\"onBatchDelete\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n <div>批量删除</div>\r\n </div>\r\n </section>\r\n <section class=\"main-wrapper\">\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"list\" @on-selection-change=\"onSelectChange\">\r\n <template slot=\"status\" slot-scope=\"{row,index}\">\r\n <i-switch class=\"diy-switch\" :value=\"row.status==='PUBLISHED'\" @on-change=\"onStatusChange($event, row, index)\"></i-switch>\r\n <span>{{row.status===\"PUBLISHED\" ? \"已发布\" : \"未发布\"}}</span>\r\n </template>\r\n <template slot=\"doc\" slot-scope=\"{row}\">\r\n <a @click=\"onOpenDoc(row)\">查看</a>\r\n </template>\r\n <template #operates=\"{row,index}\">\r\n <div class=\"row-actions\">\r\n <i @click.stop=\"onDetail(row)\" title=\"查看\" class=\"iconfont icon-detail\"></i>\r\n <template v-if=\"row.status!=='PUBLISHED'\">\r\n <i @click.stop=\"onCopy(row)\" title=\"复制\" class=\"iconfont icon-fuzhi\"> </i>\r\n <i @click.stop=\"onEdit(row)\" title=\"编辑\" class=\"iconfont icon-edit\"></i>\r\n <i-poptip confirm transfer title=\"确认要删除这条数据吗?\" @on-ok=\"onDelete(row)\">\r\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n </template>\r\n </div>\r\n </template>\r\n </i-table>\r\n <i-page\r\n class=\"diy-page\"\r\n show-total\r\n show-sizer\r\n show-elevator\r\n :total=\"paging.totalCount\"\r\n :current=\"paging.pageIndex\"\r\n :page-size=\"paging.pageSize\"\r\n @on-change=\"onPageIndexChange\"\r\n @on-page-size-change=\"onPageSizeChange\"\r\n ></i-page>\r\n </section>\r\n </section>\r\n </i-split>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n <u-data-model-doc v-model=\"docShow\" :doc=\"doc\"></u-data-model-doc>\r\n <i-modal draggable sticky reset-drag-position v-model=\"showCopyModal\" class=\"diy-modal combine-copy-modal\" :mask-closable=\"false\" title=\"复制接口\">\r\n <i-form :label-width=\"100\" class=\"diy-form\" v-model=\"copyData\" label-colon>\r\n <i-form-item label=\"接口名称\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.name\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"接口编码\" required>\r\n <i-input class=\"diy-input\" v-model=\"copyData.code\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"选择分组\" required>\r\n <u-tree-selector :treeData=\"treeData\" leaf-name=\"copy\" :canChooseFolder=\"true\" v-model=\"categoryData.id\" @on-select=\"selectCategory\"> </u-tree-selector>\r\n </i-form-item>\r\n </i-form>\r\n <footer slot=\"footer\">\r\n <i-button class=\"diy-btn-primary\" type=\"primary\" @click=\"onCopyConfirm\">确定</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onCopyCancel\">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n</article>\r\n"
|
|
46973
46973
|
|
|
46974
46974
|
/***/ }),
|
|
46975
46975
|
|
|
@@ -47021,7 +47021,7 @@ module.exports = require("axios");
|
|
|
47021
47021
|
/***/ "cfb3":
|
|
47022
47022
|
/***/ (function(module, exports) {
|
|
47023
47023
|
|
|
47024
|
-
module.exports = "<article class=\"project-list\">\n <header>\n <i-input\n class=\"diy-input\"\n v-model=\"condition.name\"\n search\n @on-search=\"onQuery\"\n placeholder=\"输入关键字检索\"\n ></i-input>\n </header>\n <main>\n <header class=\"tool-bar\">\n <span>项目列表</span>\n <div class=\"right-tool\">\n <div class=\"action-btn\">\n <i-upload\n class=\"action-item\"\n :action=\"uploadAction\"\n accept=\".json\"\n :headers=\"headers\"\n :show-upload-list=\"false\"\n :format=\"['json']\"\n :on-success=\"onSuccess\"\n :before-upload=\"onBeforeUpload\"\n :on-format-error=\"onFormatError\"\n >\n <i class=\"api-icon icon-import\"></i>\n <div>导入项目</div>\n </i-upload>\n </div>\n <div class=\"action-btn\" @click=\"onComment\">\n <i\n class=\"api-icon icon-star\"\n @click=\"onCheckType('list')\"\n ></i>\n <div>查看项目动态</div>\n </div>\n <i\n class=\"api-icon icon-list\"\n :class=\"{'active': type === 'list'}\"\n title=\"列表展示\"\n @click=\"onCheckType('list')\"\n ></i>\n <i\n class=\"api-icon icon-card\"\n :class=\"{'active': type === 'card'}\"\n title=\"卡片展示\"\n @click=\"onCheckType('card')\"\n ></i>\n </div>\n </header>\n <main>\n <section class=\"projects\" v-if=\"type==='card'\">\n <div class=\"project-card\" @click=\"onAdd\">\n <div class=\"add-card\">\n <i-icon type=\"md-add\" />\n <p>新建项目</p>\n </div>\n </div>\n <u-card\n v-for=\"item in dataList\"\n :data=\"item\"\n :key=\"item.id\"\n @on-delete=\"onDelete\"\n @on-detail=\"onDetail\"\n @on-edit=\"onEdit\"\n @on-export=\"onExport\"\n ></u-card>\n </section>\n <section class=\"projects\" v-else>\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"dataList\">\n <template slot-scope=\"{ row,index }\" slot=\"action\">\n <span @click=\"onExport(row)\" class=\"action-btn export\"\n ><i class=\"api-icon icon-export projects-icon-export\" title=\"导出此项目\"></i\n ></span>\n <span @click=\"onDetail(row)\" class=\"action-btn detail\"\n ><i class=\"api-icon icon-detail\" title=\"详情\"></i\n ></span>\n <span @click=\"onEdit(row)\" class=\"action-btn detail\"\n ><i class=\"api-icon icon-edit\" title=\"修改\"></i\n ></span>\n <u-confirm\n title=\"删除项目\"\n @on-ok=\"onDelete(row)\"\n message=\"项目内所有接口将被一并删除, 是否确认执行?\"\n >\n <span class=\"action-btn delete\"\n ><i\n class=\"api-icon icon-delete\"\n title=\"删除\"\n ></i\n ></span>\n </u-confirm>\n </template>\n </i-table>\n </section>\n </main>\n </main>\n <u-add-modal :visiable.sync=\"showAddModal\" :data=\"current\">\n <footer slot=\"footer\">\n <i-button @click=\"showAddModal = false\">取消</i-button>\n <i-button type=\"primary\" class=\"diy-btn-primary \" @click=\"onSave\"\n >确定</i-button\n >\n </footer>\n </u-add-modal>\n <i-spin fix v-show=\"loading\">\n <i class=\"spin-icon-load ivu-icon\"></i>\n </i-spin>\n</article>\n"
|
|
47024
|
+
module.exports = "<article class=\"project-list\">\r\n <header>\r\n <i-input\r\n class=\"diy-input\"\r\n v-model=\"condition.name\"\r\n search\r\n @on-search=\"onQuery\"\r\n placeholder=\"输入关键字检索\"\r\n ></i-input>\r\n </header>\r\n <main>\r\n <header class=\"tool-bar\">\r\n <span>项目列表</span>\r\n <div class=\"right-tool\">\r\n <div class=\"action-btn\">\r\n <i-upload\r\n class=\"action-item\"\r\n :action=\"uploadAction\"\r\n accept=\".json\"\r\n :headers=\"headers\"\r\n :show-upload-list=\"false\"\r\n :format=\"['json']\"\r\n :on-success=\"onSuccess\"\r\n :before-upload=\"onBeforeUpload\"\r\n :on-format-error=\"onFormatError\"\r\n >\r\n <i class=\"api-icon icon-import\"></i>\r\n <div>导入项目</div>\r\n </i-upload>\r\n </div>\r\n <div class=\"action-btn\" @click=\"onComment\">\r\n <i\r\n class=\"api-icon icon-star\"\r\n @click=\"onCheckType('list')\"\r\n ></i>\r\n <div>查看项目动态</div>\r\n </div>\r\n <i\r\n class=\"api-icon icon-list\"\r\n :class=\"{'active': type === 'list'}\"\r\n title=\"列表展示\"\r\n @click=\"onCheckType('list')\"\r\n ></i>\r\n <i\r\n class=\"api-icon icon-card\"\r\n :class=\"{'active': type === 'card'}\"\r\n title=\"卡片展示\"\r\n @click=\"onCheckType('card')\"\r\n ></i>\r\n </div>\r\n </header>\r\n <main>\r\n <section class=\"projects\" v-if=\"type==='card'\">\r\n <div class=\"project-card\" @click=\"onAdd\">\r\n <div class=\"add-card\">\r\n <i-icon type=\"md-add\" />\r\n <p>新建项目</p>\r\n </div>\r\n </div>\r\n <u-card\r\n v-for=\"item in dataList\"\r\n :data=\"item\"\r\n :key=\"item.id\"\r\n @on-delete=\"onDelete\"\r\n @on-detail=\"onDetail\"\r\n @on-edit=\"onEdit\"\r\n @on-export=\"onExport\"\r\n ></u-card>\r\n </section>\r\n <section class=\"projects\" v-else>\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"dataList\">\r\n <template slot-scope=\"{ row,index }\" slot=\"action\">\r\n <span @click=\"onExport(row)\" class=\"action-btn export\"\r\n ><i class=\"api-icon icon-export projects-icon-export\" title=\"导出此项目\"></i\r\n ></span>\r\n <span @click=\"onDetail(row)\" class=\"action-btn detail\"\r\n ><i class=\"api-icon icon-detail\" title=\"详情\"></i\r\n ></span>\r\n <span @click=\"onEdit(row)\" class=\"action-btn detail\"\r\n ><i class=\"api-icon icon-edit\" title=\"修改\"></i\r\n ></span>\r\n <u-confirm\r\n title=\"删除项目\"\r\n @on-ok=\"onDelete(row)\"\r\n message=\"项目内所有接口将被一并删除, 是否确认执行?\"\r\n >\r\n <span class=\"action-btn delete\"\r\n ><i\r\n class=\"api-icon icon-delete\"\r\n title=\"删除\"\r\n ></i\r\n ></span>\r\n </u-confirm>\r\n </template>\r\n </i-table>\r\n </section>\r\n </main>\r\n </main>\r\n <u-add-modal :visiable.sync=\"showAddModal\" :data=\"current\">\r\n <footer slot=\"footer\">\r\n <i-button @click=\"showAddModal = false\">取消</i-button>\r\n <i-button type=\"primary\" class=\"diy-btn-primary \" @click=\"onSave\"\r\n >确定</i-button\r\n >\r\n </footer>\r\n </u-add-modal>\r\n <i-spin fix v-show=\"loading\">\r\n <i class=\"spin-icon-load ivu-icon\"></i>\r\n </i-spin>\r\n</article>\r\n"
|
|
47025
47025
|
|
|
47026
47026
|
/***/ }),
|
|
47027
47027
|
|
|
@@ -47324,14 +47324,14 @@ module.exports = fails(function () {
|
|
|
47324
47324
|
/***/ "d8b4":
|
|
47325
47325
|
/***/ (function(module, exports) {
|
|
47326
47326
|
|
|
47327
|
-
module.exports = "<div class=\"v-parameter-list-container\">\r\n <main>\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"data\">\r\n <div slot=\"name\" slot-scope=\"{row}\">\r\n <i-input class=\"diy-input\" v-if=\"row.isEdit\" v-model=\"row.name\">{{row.name}}</i-input>\r\n <span v-else>{{row.name}}</span>\r\n </div>\r\n <div slot=\"type\" slot-scope=\"{row}\">\r\n <i-select class=\"diy-select\" v-if=\"row.isEdit\" v-model=\"row.type\">\r\n <i-option v-for=\"item in typeList\" :value=\"item.name\" :key=\"item.name\">{{item.text}}</i-option>\r\n </i-select>\r\n <span v-else>{{getTypeText(row.type)}}</span>\r\n </div>\r\n <div slot=\"
|
|
47327
|
+
module.exports = "<div class=\"v-parameter-list-container\">\r\n <main>\r\n <div class=\"parameter-table-btns\" v-if=\"isEdit\">\r\n <div class=\"table-btns table-btns-add\" @click=\"onAdd\">\r\n <i class=\"iconfont icon-add\"></i>\r\n <div class=\"table-btns-text\">新增</div>\r\n </div>\r\n <div class=\"table-btns table-btns-delete\" @click=\"onBatchDelete\">\r\n <i class=\"iconfont icon-delete\"></i>\r\n <div class=\"table-btns-text\">批量删除</div>\r\n </div>\r\n </div>\r\n <i-table class=\"diy-table\" :columns=\"columns\" :data=\"data\" @on-selection-change=\"onSelectionChange\">\r\n <div slot=\"name\" slot-scope=\"{row}\">\r\n <i-input class=\"diy-input\" v-if=\"row.isEdit\" v-model=\"row.name\">{{row.name}}</i-input>\r\n <span v-else>{{row.name}}</span>\r\n </div>\r\n <div slot=\"type\" slot-scope=\"{row}\">\r\n <i-select class=\"diy-select\" v-if=\"row.isEdit\" v-model=\"row.type\" transfer>\r\n <i-option v-for=\"item in typeList\" :value=\"item.name\" :key=\"item.name\">{{item.text}}</i-option>\r\n </i-select>\r\n <span v-else>{{getTypeText(row.type)}}</span>\r\n </div>\r\n <div slot=\"required\" slot-scope=\"{row}\">\r\n <i-select class=\"diy-select\" v-if=\"row.isEdit\" :value=\"booleanObj[row.required]\" @on-change=\"onChangeRequired($event, row)\" transfer>\r\n <i-option :value=\"0\" key=\"0\">否</i-option>\r\n <i-option :value=\"1\" key=\"1\">是</i-option>\r\n </i-select>\r\n <span v-else>{{row.required ? \"是\" : \"否\"}}</span>\r\n </div>\r\n <div slot=\"defaultValue\" slot-scope=\"{row}\">\r\n <i-input class=\"diy-input\" v-if=\"row.isEdit\" v-model=\"row.defaultValue\"></i-input>\r\n <span v-else>{{row.defaultValue}}</span>\r\n </div>\r\n <div slot=\"description\" slot-scope=\"{row}\">\r\n <i-input class=\"diy-input\" v-if=\"row.isEdit\" v-model=\"row.description\"></i-input>\r\n <span v-else>{{row.description}}</span>\r\n </div>\r\n <div v-if=\"isEdit\" class=\"row-actions\" slot=\"actions\" slot-scope=\"{row,index}\">\r\n <div v-if=\"row.isEdit\" class=\"edit-status\">\r\n <i class=\"iconfont icon-ok\" title=\"确认\" @click=\"onConfirm(row, index)\"></i>\r\n <i class=\"iconfont icon-cancel\" title=\"取消\" @click=\"onCancel(index)\"></i>\r\n </div>\r\n <div v-else class=\"read-status\">\r\n <i class=\"iconfont icon-edit\" title=\"编辑\" @click=\"onEdit(row)\"></i>\r\n <i-poptip confirm transfer title=\"您确定要删除这条内容吗?\" @on-ok=\"onDelete(row, index)\">\r\n <i class=\"iconfont icon-delete\" title=\"删除\"> </i>\r\n </i-poptip>\r\n </div>\r\n </div>\r\n </i-table>\r\n </main>\r\n</div>\r\n"
|
|
47328
47328
|
|
|
47329
47329
|
/***/ }),
|
|
47330
47330
|
|
|
47331
47331
|
/***/ "d8e7":
|
|
47332
47332
|
/***/ (function(module, exports) {
|
|
47333
47333
|
|
|
47334
|
-
module.exports = "<!DOCTYPE html>\r\n<article class=\"v-api-combine-info-wrapper\">\r\n <header class=\"header\">\r\n {{
|
|
47334
|
+
module.exports = "<!DOCTYPE html>\r\n<article class=\"v-api-combine-info-wrapper\">\r\n <header class=\"header\">\r\n {{title}}\r\n </header>\r\n <main>\r\n <i-form ref=\"form\" class=\"info-form\" :model=\"model\" :rules=\"rules\">\r\n <i-row>\r\n <section class=\"title-g\">基本信息</section>\r\n <i-form-item label=\"名称:\" prop=\"name\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入名称\" v-model=\"model.name\" :disabled=\"!isEdit\"></i-input>\r\n </i-form-item>\r\n <i-form-item label=\"编码:\" prop=\"code\">\r\n <i-input class=\"diy-input\" placeholder=\"请输入编码\" v-model=\"model.code\" :disabled=\"!isEdit\"></i-input>\r\n </i-form-item>\r\n <i-form-item class=\"full-width\" label=\"描述:\">\r\n <i-input type=\"textarea\" class=\"diy-input-textarea\" :rows=\"1\" placeholder=\"请输入描述\" v-model=\"model.description\" :disabled=\"!isEdit\"></i-input>\r\n </i-form-item>\r\n </i-row>\r\n <i-row>\r\n <section class=\"title-g\">待合并列表</section>\r\n <section class=\"to-combine-list\">\r\n <template v-if=\"isEdit\">\r\n <i-button class=\"diy-btn-default\" @click=\"onAddDataModel\">添加数据模型</i-button>\r\n <i-button class=\"diy-btn-default\" @click=\"onAddApiProject\">添加 API</i-button>\r\n </template>\r\n <i-table class=\"diy-table\" :columns=\"relationColumns\" :data=\"model.relations\">\r\n <template #type=\"{row}\">\r\n <span>{{row.type==='MODEL'?'数据模型':row.type==='API'?'API':''}}</span>\r\n </template>\r\n <template #operates=\"{row,index}\">\r\n <div class=\"row-actions\">\r\n <i title=\"查看\" class=\"iconfont icon-detail\" @click=\"onDetail(row)\"></i>\r\n <i-poptip v-if=\"isEdit\" confirm transfer title=\"确认删除这条数据吗?\" @on-ok=\"onRelationDelete(row)\">\r\n <i title=\"删除\" class=\"iconfont icon-delete\"></i>\r\n </i-poptip>\r\n </div>\r\n </template>\r\n </i-table>\r\n </section>\r\n </i-row>\r\n <i-row>\r\n <section class=\"title-g\">参数详情</section>\r\n <section class=\"parameter-detail\">\r\n <section class=\"card-panel card-panel-no-right-border\">\r\n <i-tabs>\r\n <i-tab-pane label=\"请求参数\" name=\"request\">\r\n <u-request-parameter-list :data=\"model.reqParams\" :isEdit=\"isEdit\"></u-request-parameter-list>\r\n </i-tab-pane>\r\n <i-tab-pane label=\"响应参数\" name=\"response\">\r\n <u-response-parameter-list :data=\"model.respParams\" :isEdit=\"isEdit\"></u-response-parameter-list>\r\n </i-tab-pane>\r\n </i-tabs>\r\n </section>\r\n <section class=\"card-panel\">\r\n <div class=\"card-panel-header\">\r\n <span>执行脚本</span>\r\n <span class=\"action-text\" @click.stop=\"onOpenTest\">\r\n <i class=\"iconfont icon-run\"></i>\r\n <span>试运行</span>\r\n </span>\r\n </div>\r\n <div class=\"card-panel-main\">\r\n <u-base-editor class=\"editor\" :data.sync=\"model.content\" :readOnly=\"!isEdit\"></u-base-editor>\r\n </div>\r\n </section>\r\n </section>\r\n </i-row>\r\n </i-form>\r\n </main>\r\n <footer>\r\n <template v-if=\"isEdit\">\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click.stop=\"onSave\">确定</i-button>\r\n <i-button type=\"text\" class=\"diy-btn-text\" @click.stop=\"onBack\">取消</i-button>\r\n </template>\r\n <template v-else>\r\n <i-button type=\"primary\" class=\"diy-btn-primary\" @click.stop=\"onBack\">关闭</i-button>\r\n </template>\r\n </footer>\r\n <u-data-model-modal v-model=\"dataModelShow\" :data=\"dataModelRelations\" @save=\"onRelationsSave\"></u-data-model-modal>\r\n <u-api-project-modal v-model=\"apiProjectShow\" :data=\"apiProjectRelations\" @save=\"onRelationsSave\"></u-api-project-modal>\r\n <u-data-model-doc-modal v-model=\"dataModelDocShow\" :doc=\"dataModelDoc\"></u-data-model-doc-modal>\r\n <u-api-project-detail-modal :visiable.sync=\"apiProjectDetailShow\" :model=\"apiProjectDetail\"></u-api-project-detail-modal>\r\n <u-test-run-modal :visible.sync=\"testShow\" :params=\"model.reqParams\" :data=\"testResult\" @on-run=\"onTestRun\"></u-test-run-modal>\r\n</article>\r\n"
|
|
47335
47335
|
|
|
47336
47336
|
/***/ }),
|
|
47337
47337
|
|
|
@@ -48424,7 +48424,7 @@ if ($stringify) {
|
|
|
48424
48424
|
/***/ "ef27":
|
|
48425
48425
|
/***/ (function(module, exports) {
|
|
48426
48426
|
|
|
48427
|
-
module.exports = "<article class=\"project-card\" @click=\"onDetail\">\n <header>{{data.name}}</header>\n <i-dropdown transfer transfer-class-name=\"api-project-oprate\" class=\"project-card-i-dropdown\" @on-click=\"onClick\">\n <i-icon type=\"ios-more\" />\n <i-dropdown-menu slot=\"list\">\n <i-dropdown-item :name=\"'export'\">\n <i\n class=\"api-icon icon-export project-card-i-dropdown-item-icon\"\n title=\"导出此项目\"\n @click.stop=\"onExport\"\n ></i>\n 导出此项目\n </i-dropdown-item>\n </i-dropdown-menu>\n </i-dropdown>\n <main></main>\n <footer>\n <div @click.stop=\"onEdit\">修改</div>\n <u-confirm\n class=\"delete\"\n title=\"删除项目\"\n message=\"项目内所有接口将被一并删除, 是否确认执行?\"\n @on-ok=\"onDelete\"\n >\n <span>删除</span>\n </u-confirm>\n </footer>\n</article>\n"
|
|
48427
|
+
module.exports = "<article class=\"project-card\" @click=\"onDetail\">\r\n <header>{{data.name}}</header>\r\n <i-dropdown transfer transfer-class-name=\"api-project-oprate\" class=\"project-card-i-dropdown\" @on-click=\"onClick\">\r\n <i-icon type=\"ios-more\" />\r\n <i-dropdown-menu slot=\"list\">\r\n <i-dropdown-item :name=\"'export'\">\r\n <i\r\n class=\"api-icon icon-export project-card-i-dropdown-item-icon\"\r\n title=\"导出此项目\"\r\n @click.stop=\"onExport\"\r\n ></i>\r\n 导出此项目\r\n </i-dropdown-item>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n <main></main>\r\n <footer>\r\n <div @click.stop=\"onEdit\">修改</div>\r\n <u-confirm\r\n class=\"delete\"\r\n title=\"删除项目\"\r\n message=\"项目内所有接口将被一并删除, 是否确认执行?\"\r\n @on-ok=\"onDelete\"\r\n >\r\n <span>删除</span>\r\n </u-confirm>\r\n </footer>\r\n</article>\r\n"
|
|
48428
48428
|
|
|
48429
48429
|
/***/ }),
|
|
48430
48430
|
|
|
@@ -49132,12 +49132,12 @@ var es_string_split = __webpack_require__("1276");
|
|
|
49132
49132
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.to-string.js
|
|
49133
49133
|
var es_regexp_to_string = __webpack_require__("25f0");
|
|
49134
49134
|
|
|
49135
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
49136
|
-
var es_function_name = __webpack_require__("b0c0");
|
|
49137
|
-
|
|
49138
49135
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
49139
49136
|
var es_array_map = __webpack_require__("d81d");
|
|
49140
49137
|
|
|
49138
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
49139
|
+
var es_function_name = __webpack_require__("b0c0");
|
|
49140
|
+
|
|
49141
49141
|
// EXTERNAL MODULE: external "@egova/flagwind-web"
|
|
49142
49142
|
var flagwind_web_ = __webpack_require__("6397");
|
|
49143
49143
|
|
|
@@ -50171,14 +50171,11 @@ function (_super) {
|
|
|
50171
50171
|
}), service_metadata("design:type", Function), service_metadata("design:paramtypes", [Object]), service_metadata("design:returntype", void 0)], Service.prototype, "getDoc", null);
|
|
50172
50172
|
|
|
50173
50173
|
service_decorate([serviceHandler("save", {
|
|
50174
|
-
title: "保存数据"
|
|
50175
|
-
showTip: true
|
|
50174
|
+
title: "保存数据"
|
|
50176
50175
|
}), service_metadata("design:type", Function), service_metadata("design:paramtypes", [String, Number]), service_metadata("design:returntype", typeof (_j = typeof Promise !== "undefined" && Promise) === "function" ? _j : Object)], Service.prototype, "changeStatus", null);
|
|
50177
50176
|
|
|
50178
50177
|
service_decorate([serviceHandler("save", {
|
|
50179
|
-
title: "复制接口"
|
|
50180
|
-
showErrorMsg: false,
|
|
50181
|
-
showTip: false
|
|
50178
|
+
title: "复制接口"
|
|
50182
50179
|
}), service_metadata("design:type", Function), service_metadata("design:paramtypes", [Object]), service_metadata("design:returntype", void 0)], Service.prototype, "copyApi", null);
|
|
50183
50180
|
|
|
50184
50181
|
return Service;
|
|
@@ -52331,21 +52328,21 @@ function (_super) {
|
|
|
52331
52328
|
}, {
|
|
52332
52329
|
title: "名称",
|
|
52333
52330
|
key: "name",
|
|
52334
|
-
align: "
|
|
52331
|
+
align: "center",
|
|
52335
52332
|
class: "STRING",
|
|
52336
52333
|
ellipsis: true,
|
|
52337
52334
|
tooltip: true
|
|
52338
52335
|
}, {
|
|
52339
52336
|
title: "编码",
|
|
52340
52337
|
key: "code",
|
|
52341
|
-
align: "
|
|
52338
|
+
align: "center",
|
|
52342
52339
|
class: "STRING",
|
|
52343
52340
|
ellipsis: true,
|
|
52344
52341
|
tooltip: true
|
|
52345
52342
|
}, {
|
|
52346
52343
|
title: "描述",
|
|
52347
52344
|
key: "description",
|
|
52348
|
-
align: "
|
|
52345
|
+
align: "center",
|
|
52349
52346
|
class: "STRING",
|
|
52350
52347
|
ellipsis: true,
|
|
52351
52348
|
tooltip: true
|
|
@@ -52478,12 +52475,21 @@ function (_super) {
|
|
|
52478
52475
|
this.doQuery();
|
|
52479
52476
|
};
|
|
52480
52477
|
|
|
52478
|
+
ProjectCombineManage.prototype.onDetail = function (row) {
|
|
52479
|
+
var id = (row !== null && row !== void 0 ? row : {}).id;
|
|
52480
|
+
this.onAdd(id, false);
|
|
52481
|
+
};
|
|
52482
|
+
|
|
52481
52483
|
ProjectCombineManage.prototype.onEdit = function (row) {
|
|
52482
52484
|
var id = (row !== null && row !== void 0 ? row : {}).id;
|
|
52483
|
-
this.onAdd(id);
|
|
52485
|
+
this.onAdd(id, true);
|
|
52484
52486
|
};
|
|
52485
52487
|
|
|
52486
|
-
ProjectCombineManage.prototype.onAdd = function (id) {
|
|
52488
|
+
ProjectCombineManage.prototype.onAdd = function (id, isEdit) {
|
|
52489
|
+
if (isEdit === void 0) {
|
|
52490
|
+
isEdit = true;
|
|
52491
|
+
}
|
|
52492
|
+
|
|
52487
52493
|
return project_combine_awaiter(this, void 0, void 0, function () {
|
|
52488
52494
|
var _a;
|
|
52489
52495
|
|
|
@@ -52492,12 +52498,10 @@ function (_super) {
|
|
|
52492
52498
|
replace: true,
|
|
52493
52499
|
name: "combine-add",
|
|
52494
52500
|
query: (_a = {
|
|
52501
|
+
isEdit: isEdit ? "1" : "0",
|
|
52495
52502
|
id: id !== null && id !== void 0 ? id : "",
|
|
52496
52503
|
categoryId: this.currentNode.id
|
|
52497
|
-
}, _a["_".concat(id ? "edit" : "add")] = Date.now().toString(), _a)
|
|
52498
|
-
params: {
|
|
52499
|
-
title: id ? "" : "合并模型(新建)"
|
|
52500
|
-
}
|
|
52504
|
+
}, _a["_".concat(id ? "edit" : "add")] = Date.now().toString(), _a)
|
|
52501
52505
|
});
|
|
52502
52506
|
return [2
|
|
52503
52507
|
/*return*/
|
|
@@ -52506,6 +52510,80 @@ function (_super) {
|
|
|
52506
52510
|
});
|
|
52507
52511
|
};
|
|
52508
52512
|
|
|
52513
|
+
ProjectCombineManage.prototype.onDelete = function (row) {
|
|
52514
|
+
return project_combine_awaiter(this, void 0, void 0, function () {
|
|
52515
|
+
var id, res;
|
|
52516
|
+
return project_combine_generator(this, function (_a) {
|
|
52517
|
+
switch (_a.label) {
|
|
52518
|
+
case 0:
|
|
52519
|
+
id = row.id;
|
|
52520
|
+
|
|
52521
|
+
if (!id) {
|
|
52522
|
+
return [2
|
|
52523
|
+
/*return*/
|
|
52524
|
+
];
|
|
52525
|
+
}
|
|
52526
|
+
|
|
52527
|
+
return [4
|
|
52528
|
+
/*yield*/
|
|
52529
|
+
, this.service.batchDelete([id])];
|
|
52530
|
+
|
|
52531
|
+
case 1:
|
|
52532
|
+
res = _a.sent();
|
|
52533
|
+
|
|
52534
|
+
if (res && !res.hasError) {
|
|
52535
|
+
this.onQuery();
|
|
52536
|
+
}
|
|
52537
|
+
|
|
52538
|
+
return [2
|
|
52539
|
+
/*return*/
|
|
52540
|
+
];
|
|
52541
|
+
}
|
|
52542
|
+
});
|
|
52543
|
+
});
|
|
52544
|
+
};
|
|
52545
|
+
|
|
52546
|
+
ProjectCombineManage.prototype.onBatchDelete = function () {
|
|
52547
|
+
var _this = this;
|
|
52548
|
+
|
|
52549
|
+
var ids = this.selection.map(function (item) {
|
|
52550
|
+
return item.id;
|
|
52551
|
+
});
|
|
52552
|
+
|
|
52553
|
+
if (!ids.length) {
|
|
52554
|
+
return;
|
|
52555
|
+
}
|
|
52556
|
+
|
|
52557
|
+
this.$modal.confirm({
|
|
52558
|
+
title: "将批量删除所选内容,是否继续?",
|
|
52559
|
+
onOk: function onOk() {
|
|
52560
|
+
return project_combine_awaiter(_this, void 0, void 0, function () {
|
|
52561
|
+
var res;
|
|
52562
|
+
return project_combine_generator(this, function (_a) {
|
|
52563
|
+
switch (_a.label) {
|
|
52564
|
+
case 0:
|
|
52565
|
+
return [4
|
|
52566
|
+
/*yield*/
|
|
52567
|
+
, this.service.batchDelete(ids)];
|
|
52568
|
+
|
|
52569
|
+
case 1:
|
|
52570
|
+
res = _a.sent();
|
|
52571
|
+
|
|
52572
|
+
if (res && !res.hasError) {
|
|
52573
|
+
this.onQuery();
|
|
52574
|
+
this.selection = [];
|
|
52575
|
+
}
|
|
52576
|
+
|
|
52577
|
+
return [2
|
|
52578
|
+
/*return*/
|
|
52579
|
+
];
|
|
52580
|
+
}
|
|
52581
|
+
});
|
|
52582
|
+
});
|
|
52583
|
+
}
|
|
52584
|
+
});
|
|
52585
|
+
};
|
|
52586
|
+
|
|
52509
52587
|
ProjectCombineManage.prototype.onCopy = function (row) {
|
|
52510
52588
|
var rowData = row.$clone();
|
|
52511
52589
|
this.copyData = {
|
|
@@ -52582,80 +52660,6 @@ function (_super) {
|
|
|
52582
52660
|
this.copyData.categoryId = node.id;
|
|
52583
52661
|
};
|
|
52584
52662
|
|
|
52585
|
-
ProjectCombineManage.prototype.onDelete = function (row) {
|
|
52586
|
-
return project_combine_awaiter(this, void 0, void 0, function () {
|
|
52587
|
-
var id, res;
|
|
52588
|
-
return project_combine_generator(this, function (_a) {
|
|
52589
|
-
switch (_a.label) {
|
|
52590
|
-
case 0:
|
|
52591
|
-
id = row.id;
|
|
52592
|
-
|
|
52593
|
-
if (!id) {
|
|
52594
|
-
return [2
|
|
52595
|
-
/*return*/
|
|
52596
|
-
];
|
|
52597
|
-
}
|
|
52598
|
-
|
|
52599
|
-
return [4
|
|
52600
|
-
/*yield*/
|
|
52601
|
-
, this.service.batchDelete([id])];
|
|
52602
|
-
|
|
52603
|
-
case 1:
|
|
52604
|
-
res = _a.sent();
|
|
52605
|
-
|
|
52606
|
-
if (res && !res.hasError) {
|
|
52607
|
-
this.onQuery();
|
|
52608
|
-
}
|
|
52609
|
-
|
|
52610
|
-
return [2
|
|
52611
|
-
/*return*/
|
|
52612
|
-
];
|
|
52613
|
-
}
|
|
52614
|
-
});
|
|
52615
|
-
});
|
|
52616
|
-
};
|
|
52617
|
-
|
|
52618
|
-
ProjectCombineManage.prototype.onBatchDelete = function () {
|
|
52619
|
-
var _this = this;
|
|
52620
|
-
|
|
52621
|
-
var ids = this.selection.map(function (item) {
|
|
52622
|
-
return item.id;
|
|
52623
|
-
});
|
|
52624
|
-
|
|
52625
|
-
if (!ids.length) {
|
|
52626
|
-
return this.$message.warning("请先勾选需要删除的数据");
|
|
52627
|
-
}
|
|
52628
|
-
|
|
52629
|
-
this.$modal.confirm({
|
|
52630
|
-
title: "将批量删除所选内容,是否继续?",
|
|
52631
|
-
onOk: function onOk() {
|
|
52632
|
-
return project_combine_awaiter(_this, void 0, void 0, function () {
|
|
52633
|
-
var res;
|
|
52634
|
-
return project_combine_generator(this, function (_a) {
|
|
52635
|
-
switch (_a.label) {
|
|
52636
|
-
case 0:
|
|
52637
|
-
return [4
|
|
52638
|
-
/*yield*/
|
|
52639
|
-
, this.service.batchDelete(ids)];
|
|
52640
|
-
|
|
52641
|
-
case 1:
|
|
52642
|
-
res = _a.sent();
|
|
52643
|
-
|
|
52644
|
-
if (res && !res.hasError) {
|
|
52645
|
-
this.onQuery();
|
|
52646
|
-
this.selection = [];
|
|
52647
|
-
}
|
|
52648
|
-
|
|
52649
|
-
return [2
|
|
52650
|
-
/*return*/
|
|
52651
|
-
];
|
|
52652
|
-
}
|
|
52653
|
-
});
|
|
52654
|
-
});
|
|
52655
|
-
}
|
|
52656
|
-
});
|
|
52657
|
-
};
|
|
52658
|
-
|
|
52659
52663
|
ProjectCombineManage.prototype.onStatusChange = function (value, row, index) {
|
|
52660
52664
|
return project_combine_awaiter(this, void 0, void 0, function () {
|
|
52661
52665
|
var id, res;
|
|
@@ -52959,6 +52963,10 @@ function (_super) {
|
|
|
52959
52963
|
this.editor.setReadOnly(this.readOnly);
|
|
52960
52964
|
};
|
|
52961
52965
|
|
|
52966
|
+
BaseEditor.prototype.onReadOnlyChange = function () {
|
|
52967
|
+
this.editor.setReadOnly(this.readOnly);
|
|
52968
|
+
};
|
|
52969
|
+
|
|
52962
52970
|
base_editor_decorate([Object(flagwind_web_["propSync"])("data"), base_editor_metadata("design:type", String)], BaseEditor.prototype, "script", void 0);
|
|
52963
52971
|
|
|
52964
52972
|
base_editor_decorate([Object(flagwind_web_["config"])({
|
|
@@ -52966,6 +52974,8 @@ function (_super) {
|
|
|
52966
52974
|
default: false
|
|
52967
52975
|
}), base_editor_metadata("design:type", Boolean)], BaseEditor.prototype, "readOnly", void 0);
|
|
52968
52976
|
|
|
52977
|
+
base_editor_decorate([Object(flagwind_web_["watch"])("readOnly"), base_editor_metadata("design:type", Function), base_editor_metadata("design:paramtypes", []), base_editor_metadata("design:returntype", void 0)], BaseEditor.prototype, "onReadOnlyChange", null);
|
|
52978
|
+
|
|
52969
52979
|
BaseEditor = base_editor_decorate([Object(flagwind_web_["component"])({
|
|
52970
52980
|
template: __webpack_require__("e718"),
|
|
52971
52981
|
components: {
|
|
@@ -53294,45 +53304,30 @@ function (_super) {
|
|
|
53294
53304
|
title: "全选",
|
|
53295
53305
|
align: "center",
|
|
53296
53306
|
width: 60
|
|
53297
|
-
}, {
|
|
53298
|
-
title: "编码",
|
|
53299
|
-
align: "center",
|
|
53300
|
-
key: "code",
|
|
53301
|
-
class: "STRING",
|
|
53302
|
-
ellipsis: true,
|
|
53303
|
-
tooltip: true
|
|
53304
53307
|
}, {
|
|
53305
53308
|
title: "名称",
|
|
53306
53309
|
align: "center",
|
|
53307
|
-
key: "name"
|
|
53308
|
-
class: "STRING",
|
|
53309
|
-
ellipsis: true,
|
|
53310
|
-
tooltip: true
|
|
53310
|
+
key: "name"
|
|
53311
53311
|
}, {
|
|
53312
|
-
title: "
|
|
53312
|
+
title: "编码",
|
|
53313
53313
|
align: "center",
|
|
53314
|
-
key: "
|
|
53315
|
-
class: "STRING",
|
|
53316
|
-
ellipsis: true,
|
|
53317
|
-
tooltip: true
|
|
53314
|
+
key: "code"
|
|
53318
53315
|
}, {
|
|
53319
|
-
title: "
|
|
53316
|
+
title: "数据源",
|
|
53320
53317
|
align: "center",
|
|
53321
|
-
key: "
|
|
53322
|
-
class: "STRING",
|
|
53323
|
-
ellipsis: true,
|
|
53324
|
-
tooltip: true
|
|
53318
|
+
key: "sourceName"
|
|
53325
53319
|
}, {
|
|
53326
53320
|
title: "是否开启缓存",
|
|
53327
53321
|
align: "center",
|
|
53328
|
-
|
|
53322
|
+
slot: "enableCache"
|
|
53329
53323
|
}, {
|
|
53330
53324
|
title: "过期时间(s)",
|
|
53331
53325
|
align: "center",
|
|
53332
|
-
key: "expireSeconds"
|
|
53333
|
-
|
|
53334
|
-
|
|
53335
|
-
|
|
53326
|
+
key: "expireSeconds"
|
|
53327
|
+
}, {
|
|
53328
|
+
title: "描述",
|
|
53329
|
+
align: "center",
|
|
53330
|
+
key: "description"
|
|
53336
53331
|
}, {
|
|
53337
53332
|
title: "接口文档",
|
|
53338
53333
|
align: "center",
|
|
@@ -55445,6 +55440,10 @@ var request_parameter_list = __webpack_require__("9e10");
|
|
|
55445
55440
|
|
|
55446
55441
|
|
|
55447
55442
|
|
|
55443
|
+
|
|
55444
|
+
|
|
55445
|
+
|
|
55446
|
+
|
|
55448
55447
|
var request_parameter_list_extends = undefined && undefined.__extends || function () {
|
|
55449
55448
|
var _extendStatics = function extendStatics(d, b) {
|
|
55450
55449
|
_extendStatics = Object.setPrototypeOf || {
|
|
@@ -55641,10 +55640,13 @@ function (_super) {
|
|
|
55641
55640
|
request_parameter_list_extends(RequestParameterList, _super);
|
|
55642
55641
|
|
|
55643
55642
|
function RequestParameterList() {
|
|
55644
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
55645
|
-
|
|
55643
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
55646
55644
|
|
|
55647
55645
|
_this.columns = [{
|
|
55646
|
+
type: "selection",
|
|
55647
|
+
width: 60,
|
|
55648
|
+
align: "center"
|
|
55649
|
+
}, {
|
|
55648
55650
|
title: "参数名",
|
|
55649
55651
|
align: "center",
|
|
55650
55652
|
slot: "name",
|
|
@@ -55655,6 +55657,19 @@ function (_super) {
|
|
|
55655
55657
|
title: "类型",
|
|
55656
55658
|
align: "center",
|
|
55657
55659
|
slot: "type",
|
|
55660
|
+
width: 130,
|
|
55661
|
+
class: "STRING",
|
|
55662
|
+
ellipsis: true,
|
|
55663
|
+
tooltip: true
|
|
55664
|
+
}, {
|
|
55665
|
+
title: "是否必传",
|
|
55666
|
+
align: "center",
|
|
55667
|
+
slot: "required",
|
|
55668
|
+
width: 120
|
|
55669
|
+
}, {
|
|
55670
|
+
title: "默认值",
|
|
55671
|
+
align: "center",
|
|
55672
|
+
slot: "defaultValue",
|
|
55658
55673
|
class: "STRING",
|
|
55659
55674
|
ellipsis: true,
|
|
55660
55675
|
tooltip: true
|
|
@@ -55671,6 +55686,8 @@ function (_super) {
|
|
|
55671
55686
|
slot: "actions"
|
|
55672
55687
|
}];
|
|
55673
55688
|
_this.typeList = [];
|
|
55689
|
+
_this.selections = []; // 列表中选中的数据
|
|
55690
|
+
|
|
55674
55691
|
_this.booleanObj = {
|
|
55675
55692
|
false: 0,
|
|
55676
55693
|
true: 1
|
|
@@ -55678,6 +55695,10 @@ function (_super) {
|
|
|
55678
55695
|
return _this;
|
|
55679
55696
|
}
|
|
55680
55697
|
|
|
55698
|
+
RequestParameterList.prototype.mounted = function () {
|
|
55699
|
+
this.getTypeList();
|
|
55700
|
+
};
|
|
55701
|
+
|
|
55681
55702
|
RequestParameterList.prototype.onEdit = function (row) {
|
|
55682
55703
|
this.$set(row, "isEdit", true);
|
|
55683
55704
|
};
|
|
@@ -55690,9 +55711,39 @@ function (_super) {
|
|
|
55690
55711
|
this.data.splice(index, 1);
|
|
55691
55712
|
};
|
|
55692
55713
|
|
|
55714
|
+
RequestParameterList.prototype.onBatchDelete = function () {
|
|
55715
|
+
var _this = this; // 对所有选中行的id与原data对比,若有相同的id,则视为该行数据是要被删除的数据
|
|
55716
|
+
|
|
55717
|
+
|
|
55718
|
+
if (this.selections && this.selections.length === 0) {
|
|
55719
|
+
this.$message.warning("请先勾选需要删除的数据");
|
|
55720
|
+
return;
|
|
55721
|
+
}
|
|
55722
|
+
|
|
55723
|
+
this.$modal.confirm({
|
|
55724
|
+
title: "将批量删除所选内容,是否继续?",
|
|
55725
|
+
onOk: function onOk() {
|
|
55726
|
+
_this.selections.forEach(function (s) {
|
|
55727
|
+
var index = _this.data.findIndex(function (d) {
|
|
55728
|
+
return d.id === s.id;
|
|
55729
|
+
});
|
|
55730
|
+
|
|
55731
|
+
if (index > -1) {
|
|
55732
|
+
_this.data.splice(index, 1);
|
|
55733
|
+
}
|
|
55734
|
+
});
|
|
55735
|
+
|
|
55736
|
+
_this.selections = [];
|
|
55737
|
+
}
|
|
55738
|
+
});
|
|
55739
|
+
};
|
|
55740
|
+
|
|
55693
55741
|
RequestParameterList.prototype.onAdd = function () {
|
|
55694
55742
|
this.data.push({
|
|
55695
|
-
isEdit: true
|
|
55743
|
+
isEdit: true,
|
|
55744
|
+
id: Math.random().toString(36).slice(-8).toString(),
|
|
55745
|
+
required: false,
|
|
55746
|
+
type: "STRING"
|
|
55696
55747
|
});
|
|
55697
55748
|
};
|
|
55698
55749
|
|
|
@@ -55711,10 +55762,6 @@ function (_super) {
|
|
|
55711
55762
|
}
|
|
55712
55763
|
};
|
|
55713
55764
|
|
|
55714
|
-
RequestParameterList.prototype.mounted = function () {
|
|
55715
|
-
this.getTypeList();
|
|
55716
|
-
};
|
|
55717
|
-
|
|
55718
55765
|
RequestParameterList.prototype.getTypeList = function () {
|
|
55719
55766
|
return request_parameter_list_awaiter(this, void 0, void 0, function () {
|
|
55720
55767
|
var result;
|
|
@@ -55744,6 +55791,14 @@ function (_super) {
|
|
|
55744
55791
|
}).text;
|
|
55745
55792
|
};
|
|
55746
55793
|
|
|
55794
|
+
RequestParameterList.prototype.onChangeRequired = function (value, row) {
|
|
55795
|
+
row.required = !!value;
|
|
55796
|
+
};
|
|
55797
|
+
|
|
55798
|
+
RequestParameterList.prototype.onSelectionChange = function (selections) {
|
|
55799
|
+
this.selections = selections;
|
|
55800
|
+
};
|
|
55801
|
+
|
|
55747
55802
|
var _a, _b;
|
|
55748
55803
|
|
|
55749
55804
|
request_parameter_list_decorate([Object(flagwind_web_["config"])({
|
|
@@ -55752,6 +55807,10 @@ function (_super) {
|
|
|
55752
55807
|
}
|
|
55753
55808
|
}), request_parameter_list_metadata("design:type", typeof (_a = typeof Array !== "undefined" && Array) === "function" ? _a : Object)], RequestParameterList.prototype, "data", void 0);
|
|
55754
55809
|
|
|
55810
|
+
request_parameter_list_decorate([Object(flagwind_web_["config"])({
|
|
55811
|
+
default: true
|
|
55812
|
+
}), request_parameter_list_metadata("design:type", Boolean)], RequestParameterList.prototype, "isEdit", void 0);
|
|
55813
|
+
|
|
55755
55814
|
request_parameter_list_decorate([autowired(project_combine_service), request_parameter_list_metadata("design:type", typeof (_b = typeof project_combine_service !== "undefined" && project_combine_service) === "function" ? _b : Object)], RequestParameterList.prototype, "service", void 0);
|
|
55756
55815
|
|
|
55757
55816
|
RequestParameterList = request_parameter_list_decorate([Object(flagwind_web_["component"])({
|
|
@@ -56033,6 +56092,7 @@ var combine_model = __webpack_require__("2e28");
|
|
|
56033
56092
|
|
|
56034
56093
|
|
|
56035
56094
|
|
|
56095
|
+
|
|
56036
56096
|
|
|
56037
56097
|
|
|
56038
56098
|
var combine_model_extends = undefined && undefined.__extends || function () {
|
|
@@ -56276,9 +56336,12 @@ function (_super) {
|
|
|
56276
56336
|
reqParams: [],
|
|
56277
56337
|
respParams: []
|
|
56278
56338
|
};
|
|
56339
|
+
_this.title = "合并模型";
|
|
56279
56340
|
_this.id = "";
|
|
56280
56341
|
_this.categoryId = "";
|
|
56281
56342
|
_this.saveing = false;
|
|
56343
|
+
_this.isEdit = false;
|
|
56344
|
+
_this.isAdd = false;
|
|
56282
56345
|
_this.rules = {
|
|
56283
56346
|
name: [{
|
|
56284
56347
|
required: true,
|
|
@@ -56329,15 +56392,6 @@ function (_super) {
|
|
|
56329
56392
|
return _this;
|
|
56330
56393
|
}
|
|
56331
56394
|
|
|
56332
|
-
Object.defineProperty(ProjectCombineModel.prototype, "isEdit", {
|
|
56333
|
-
get: function get() {
|
|
56334
|
-
var _a;
|
|
56335
|
-
|
|
56336
|
-
return !!((_a = this.model) === null || _a === void 0 ? void 0 : _a.id);
|
|
56337
|
-
},
|
|
56338
|
-
enumerable: false,
|
|
56339
|
-
configurable: true
|
|
56340
|
-
});
|
|
56341
56395
|
Object.defineProperty(ProjectCombineModel.prototype, "dataModelRelations", {
|
|
56342
56396
|
get: function get() {
|
|
56343
56397
|
var _a, _b;
|
|
@@ -56378,12 +56432,16 @@ function (_super) {
|
|
|
56378
56432
|
|
|
56379
56433
|
ProjectCombineModel.prototype.init = function () {
|
|
56380
56434
|
var _a = this.$route.query || {},
|
|
56435
|
+
isEdit = _a.isEdit,
|
|
56381
56436
|
_b = _a.id,
|
|
56382
56437
|
id = _b === void 0 ? "" : _b,
|
|
56383
56438
|
_c = _a.categoryId,
|
|
56384
56439
|
categoryId = _c === void 0 ? "" : _c;
|
|
56385
56440
|
|
|
56441
|
+
this.isEdit = Number(isEdit) === 1;
|
|
56442
|
+
this.isAdd = this.isEdit && !!id;
|
|
56386
56443
|
this.categoryId = categoryId;
|
|
56444
|
+
this.title = !this.isEdit ? "合并模型详情" : this.isAdd ? "新增模型详情" : "编辑合并模型";
|
|
56387
56445
|
|
|
56388
56446
|
if (id !== this.id) {
|
|
56389
56447
|
this.id = id;
|
|
@@ -56643,6 +56701,7 @@ function (_super) {
|
|
|
56643
56701
|
return combine_model_assign(combine_model_assign({}, r), {
|
|
56644
56702
|
relationType: relationType,
|
|
56645
56703
|
relationTypeId: r.apiId,
|
|
56704
|
+
required: false,
|
|
56646
56705
|
type: "STRING"
|
|
56647
56706
|
});
|
|
56648
56707
|
});
|
|
@@ -56739,8 +56798,11 @@ function (_super) {
|
|
|
56739
56798
|
return combine_model_generator(this, function (_b) {
|
|
56740
56799
|
switch (_b.label) {
|
|
56741
56800
|
case 0:
|
|
56742
|
-
_b.trys.push([0,
|
|
56801
|
+
_b.trys.push([0, 3,, 4]);
|
|
56743
56802
|
|
|
56803
|
+
if (!this.isEdit) return [3
|
|
56804
|
+
/*break*/
|
|
56805
|
+
, 2];
|
|
56744
56806
|
return [4
|
|
56745
56807
|
/*yield*/
|
|
56746
56808
|
, this.onSave(false)];
|
|
@@ -56748,18 +56810,21 @@ function (_super) {
|
|
|
56748
56810
|
case 1:
|
|
56749
56811
|
_b.sent();
|
|
56750
56812
|
|
|
56813
|
+
_b.label = 2;
|
|
56814
|
+
|
|
56815
|
+
case 2:
|
|
56751
56816
|
this.testShow = true;
|
|
56752
56817
|
return [3
|
|
56753
56818
|
/*break*/
|
|
56754
|
-
,
|
|
56819
|
+
, 4];
|
|
56755
56820
|
|
|
56756
|
-
case
|
|
56821
|
+
case 3:
|
|
56757
56822
|
_a = _b.sent();
|
|
56758
56823
|
return [3
|
|
56759
56824
|
/*break*/
|
|
56760
|
-
,
|
|
56825
|
+
, 4];
|
|
56761
56826
|
|
|
56762
|
-
case
|
|
56827
|
+
case 4:
|
|
56763
56828
|
return [2
|
|
56764
56829
|
/*return*/
|
|
56765
56830
|
];
|