@egova/egova-api 1.3.19 → 1.3.21

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.
@@ -1,10 +1,10 @@
1
- (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue-property-decorator"),require("brace/mode/json"),require("brace/mode/groovy"),require("brace/mode/xml"),require("vue-json-viewer"),require("brace/snippets/json"),require("lodash.debounce"),require("brace/ext/searchbox"),require("@egova/flagwind-core"),require("@egova/flagwind-web"),require("brace/theme/chrome"),require("brace/ext/language_tools"),require("vue2-ace-editor"),require("vue"),require("brace/snippets/javascript"),require("brace"),require("halo-math"),require("brace/snippets/groovy"),require("jsencrypt"),require("crypto-js"),require("mavon-editor"),require("js-cookie"),require("brace/mode/javascript"),require("@egova/flagwind-web/dist/flagwind-web.umd.js"),require("axios"),require("swiper")):"function"===typeof define&&define.amd?define(["vue-property-decorator","brace/mode/json","brace/mode/groovy","brace/mode/xml","vue-json-viewer","brace/snippets/json","lodash.debounce","brace/ext/searchbox","@egova/flagwind-core","@egova/flagwind-web","brace/theme/chrome","brace/ext/language_tools","vue2-ace-editor","vue","brace/snippets/javascript","brace","halo-math","brace/snippets/groovy","jsencrypt","crypto-js","mavon-editor","js-cookie","brace/mode/javascript","@egova/flagwind-web/dist/flagwind-web.umd.js","axios","swiper"],e):"object"===typeof exports?exports["index"]=e(require("vue-property-decorator"),require("brace/mode/json"),require("brace/mode/groovy"),require("brace/mode/xml"),require("vue-json-viewer"),require("brace/snippets/json"),require("lodash.debounce"),require("brace/ext/searchbox"),require("@egova/flagwind-core"),require("@egova/flagwind-web"),require("brace/theme/chrome"),require("brace/ext/language_tools"),require("vue2-ace-editor"),require("vue"),require("brace/snippets/javascript"),require("brace"),require("halo-math"),require("brace/snippets/groovy"),require("jsencrypt"),require("crypto-js"),require("mavon-editor"),require("js-cookie"),require("brace/mode/javascript"),require("@egova/flagwind-web/dist/flagwind-web.umd.js"),require("axios"),require("swiper")):t["index"]=e(t["vue-property-decorator"],t["brace/mode/json"],t["brace/mode/groovy"],t["brace/mode/xml"],t["vue-json-viewer"],t["brace/snippets/json"],t["lodash.debounce"],t["brace/ext/searchbox"],t["@egova/flagwind-core"],t["@egova/flagwind-web"],t["brace/theme/chrome"],t["brace/ext/language_tools"],t["vue2-ace-editor"],t["vue"],t["brace/snippets/javascript"],t["brace"],t["halo-math"],t["brace/snippets/groovy"],t["jsencrypt"],t["crypto-js"],t["mavon-editor"],t["js-cookie"],t["brace/mode/javascript"],t["@egova/flagwind-web/dist/flagwind-web.umd.js"],t["axios"],t["swiper"])})("undefined"!==typeof self?self:this,(function(t,e,n,i,r,o,a,s,c,l,u,p,d,h,f,m,y,v,g,b,w,x,S,I,k,C){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="3061")}({"00fe":function(t,e,n){"use strict";var i=n("d631");t.exports=function(t,e,n){var r=0,o=arguments.length>2?n:i(e),a=new t(o);while(o>r)a[r]=e[r++];return a}},"01a6":function(e,n){e.exports=t},"04ca":function(t,e,n){"use strict";var i=n("10a7"),r=n("ec2f"),o=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n===u||n!==l&&(r(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},"06a8":function(t,e,n){},"07ab":function(t,e){t.exports='<div class="u-tree-node">\r\n\x3c!-- <i class="iconfont" :class="data.expand? \'icon-expand\': \'icon-unexpand\'"></i>--\x3e\r\n <i class="iconfont icon-mulushu" @click="onClickNode"></i>\r\n <div class="name" @click="onClickNode">{{data.name}}</div>\r\n <i-dropdown @on-click="onClick" transfer transfer-class-name="node-oprate" v-if="data.id !== \'virtual_root_directory\'">\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'},"086a":function(t,e){t.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'},"0888":function(t,e,n){"use strict";var i=n("bc85"),r=n("9afe"),o="__core-js_shared__",a=i[o]||r(o,{});t.exports=a},"0941":function(t,e){t.exports='<i-modal draggable sticky transfer reset-drag-position :mask-closable="false" v-model="show" width="1280" class="u-api-project-modal diy-modal">\r\n <header slot="header">添加API</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 :commonTaskCategoryID="taskCategoryID" :initSelectItem="initNode" :prop-data="treeData" :isTreeList="true" @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-api-project-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 @on-row-click="onRowClick"\r\n >\r\n </u-api-project-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="ivu-icon ivu-icon-ios-arrow-forward" :class="{\'icon-arrow-collapse\':collapse}"></i>\r\n </span>\r\n </span>\r\n </div>\r\n <div class="card-panel-main">\r\n <template v-if="checkedData&&checkedData.length">\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 </template>\r\n <template v-else>\r\n <div class="table-no-data">\r\n <div class="table-no-data-bg"></div>\r\n <div class="table-no-data-text">暂无数据</div>\r\n </div>\r\n </template>\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'},"0a2e":function(t,e,n){},"0d9b":function(t,e,n){"use strict";var i=n("720f"),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},"0ddb":function(t,e,n){"use strict";var i=n("82ef"),r=n("bc85"),o=n("ff99"),a=n("6d6e"),s="WebAssembly",c=r[s],l=7!==new Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=a(t,e,l),i({global:!0,constructor:!0,arity:1,forced:l},n)},p=function(t,e){if(c&&c[t]){var n={};n[t]=a(s+"."+t,e,l),i({target:s,stat:!0,constructor:!0,arity:1,forced:l},n)}};u("Error",(function(t){return function(e){return o(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),u("URIError",(function(t){return function(e){return o(t,this,arguments)}})),p("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),p("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),p("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},"0e0c":function(t,n){t.exports=e},"10a7":function(t,e,n){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},"10cf":function(t,e){t.exports='<i-modal\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model="value"\r\n class="diy-modal current-variable-modal"\r\n :mask-closable="false"\r\n footer-hide\r\n title="查看当前变量"\r\n>\r\n <i-form\r\n :label-width="95"\r\n class="diy-form"\r\n label-colon\r\n label-position="left"\r\n >\r\n <i-form-item label="环境名称">\r\n <i-input class="diy-input" placeholder="请输入环境名称"></i-input>\r\n </i-form-item>\r\n <i-form-item label="环境域名" class="realm-name">\r\n <i-input class="diy-input" placeholder="请输入环境域名">\r\n <i-select slot="prepend" class="diy-select"> </i-select>\r\n </i-input>\r\n </i-form-item>\r\n <i-form-item label="Header" class="name-value-item">\r\n <i-input class="diy-input"></i-input>\r\n <i-input class="diy-input"></i-input>\r\n </i-form-item>\r\n <i-form-item label="Cookie" class="name-value-item">\r\n <i-input class="diy-input"></i-input>\r\n <i-input class="diy-input"></i-input>\r\n </i-form-item>\r\n <i-form-item label="Global" class="name-value-item">\r\n <i-input class="diy-input"></i-input>\r\n <i-input class="diy-input"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n</i-modal>\r\n'},1215:function(t,e,n){"use strict";e.f=Object.getOwnPropertySymbols},"12f2":function(t,e,n){"use strict";var i=n("10a7");t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"16bf":function(t,e,n){"use strict";var i=n("ead7"),r=RangeError;t.exports=function(t,e){var n=i(t);if(n%e)throw new r("Wrong offset");return n}},"17f8":function(t,e,n){"use strict";var i=n("9822"),r=n("dd76"),o=n("d5e3"),a=Error.captureStackTrace;t.exports=function(t,e,n,s){o&&(a?a(t,e):i(t,"stack",r(n,s)))}},"17fe":function(t,e,n){},"193e":function(t,e){t.exports='<article class="project-tree">\r\n <header>\r\n <div class="tree-api">\r\n <div class="title-g">API列表</div>\r\n <div class="add" @click="onAddGroup">\r\n <i class="iconfont icon-xinjianwenjianjia" title="新增分组"></i>\r\n </div>\r\n </div>\r\n <div class="tree-search">\r\n <i-select class="diy-select" transfer v-model="type" @on-change="onFilter">\r\n <i-option v-for="item in typeList" :key="item.value" :value="item.value">{{item.text}}</i-option>\r\n </i-select>\r\n <i-input class="diy-input" v-model="keyword" @on-change="onFilter" placeholder="输入关键字查询">\r\n <i class="iconfont icon-chaxun" slot="prefix"></i>\r\n </i-input>\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 :title="group.id ? \'修改分组\': \'新增分组\'"\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 class="diy-input" v-model="group.name"></i-input>\r\n </i-form-item>\r\n <i-form-item v-if="group.id" label="所属项目" required>\r\n <i-select class="diy-select" v-model="group.projectId" transfer filterable @on-change="onChangeProject(true,true)">\r\n <i-option v-for="item in projectList" :value="item.id" :key="item.id">{{item.name}}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item label="分组位置">\r\n <u-group-select :data="groupTree" :current="parent" @on-select="onSelectParent"></u-group-select>\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.stop="onSaveGroup">确定</i-button>\r\n <i-button class="diy-btn-default" @click.stop="onGourpCancel">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n <i-modal draggable sticky reset-drag-position v-model="showInterfaceModal" class="diy-modal" :mask-closable="false" :title="interfaceModel.id ? \'修改接口\': \'新增接口\'">\r\n <i-form :label-width="100" class="diy-form" label-colon>\r\n <i-form-item label="接口名称" required>\r\n <i-input class="diy-input" v-model="interfaceModel.name"></i-input>\r\n </i-form-item>\r\n\r\n <i-form-item v-if="interfaceModel.id" label="所属项目" required>\r\n <i-select class="diy-select" v-model="interfaceModel.projectId" transfer filterable @on-change="onChangeProject(false,true)">\r\n <i-option v-for="item in projectList" :value="item.id" :key="item.id">{{item.name}}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n\r\n <i-form-item label="接口位置" required>\r\n <u-group-select :data="groupTree" :current="parent" @on-select="onSelectParent"></u-group-select>\r\n </i-form-item>\r\n <i-form-item label="接口类型" required>\r\n <i-select v-model="interfaceModel.method" class="diy-select" transfer>\r\n <i-option v-for="item in typeList" v-if="item.value" :key="item.value" :value="item.value">{{item.text}}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item label="需要认证" required>\r\n <i-select v-model="interfaceModel.authFlag" class="diy-select" transfer>\r\n <i-option :key="0" :value="0">否</i-option>\r\n <i-option :key="1" :value="1">是</i-option>\r\n </i-select>\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="onSaveInterface">确定</i-button>\r\n <i-button class="diy-btn-default" @click="onInterfaceCancel">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n <i-modal draggable sticky reset-drag-position v-model="showCopyModal" class="diy-modal" :mask-closable="false" title="复制接口">\r\n <i-form :label-width="100" class="diy-form" label-colon>\r\n <i-form-item label="接口名称" required>\r\n <i-input class="diy-input" v-model="copyName"></i-input>\r\n </i-form-item>\r\n <i-form-item label="选择分组" required>\r\n <u-group-select :isSelector="true" :data="groupTree" :current="parent" @on-select="onSelectParent"></u-group-select>\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="onCopy">确定</i-button>\r\n <i-button class="diy-btn-default" @click="onCopyCancel">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n\r\n <i-modal width="730" draggable sticky reset-drag-position v-model="showMoveModal" class="diy-modal" :mask-closable="false" :title="moveType===\'group\' ? \'分组移动提示\': \'接口移动提示\'">\r\n <div class="api-move-project-body">\r\n <span class="warn-title">\r\n <i-icon type="ios-help-circle" />\r\n 检测到被移动{{moveType===\'group\'?"分组":"接口"}}中存在已关联的授权/环境变量,是否在新项目中新建?\r\n </span>\r\n <span class="second-title">新建授权/环境变量:将在目标项目中新建{{moveType===\'group\'?"分组":"接口"}}绑定的授权/环境变量</span>\r\n <span class="second-title">不新建:将原有的授权/环境变量置为空,仅移动接口</span>\r\n <span class="second-title">取消:取消本次操作</span>\r\n </div>\r\n <footer slot="footer">\r\n <i-button class="diy-btn-primary api-move-ok-btn" type="primary" @click="onMoveOk(true)">新建授权/环境变量</i-button>\r\n <i-button class="diy-btn-default" @click="onMoveOk(false)">不新建</i-button>\r\n <i-button class="diy-btn-default api-move-cancel-btn" @click="onMoveCancel">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n <u-batch-modal :visiable.sync="showBatchModal" :data="categoryApiList" :projectId="projectId" @on-success="onBatchSuccess"></u-batch-modal>\r\n</article>\r\n'},"1a93":function(t,e,n){},"1aea":function(t,e,n){},"1b9a":function(t,e,n){"use strict";var i=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw i("Maximum allowed index exceeded");return t}},"1cdf":function(t,e){t.exports=n},"1d6e":function(t,e,n){"use strict";var i=String;t.exports=function(t){try{return i(t)}catch(e){return"Object"}}},"1e82":function(t,e){t.exports=i},"22e8":function(t,e){t.exports='<article class="headers-setting">\r\n <header>\r\n <i-button type="primary" ghost class="diy-btn-primary" @click="onAdd">\r\n <i class="api-icon icon-add"></i>新增\r\n </i-button>\r\n \x3c!-- <i-button type="primary" ghost class="diy-btn-primary">\r\n <i class="api-icon icon-import"></i>导入参数\r\n </i-button>\r\n <i-button type="primary" ghost class="diy-btn-primary">\r\n <i class="api-icon icon-export"></i>导出参数\r\n </i-button> --\x3e\r\n </header>\r\n <i-table\r\n class="diy-table"\r\n :columns="columns"\r\n :data="interfaceModel.requestHeaders"\r\n >\r\n <template slot-scope="{ row,index }" slot="selection">\r\n <i-checkbox\r\n :value="!interfaceModel.requestHeaders[index].disabled"\r\n @on-change="onChangeDisabled($event,interfaceModel.requestHeaders[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="interfaceModel.requestHeaders[index].name"\r\n >\r\n </i-input>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="value">\r\n <i-input\r\n class="diy-input"\r\n placeholder="输入参数值"\r\n v-model="interfaceModel.requestHeaders[index].value"\r\n >\r\n </i-input>\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="interfaceModel.requestHeaders[index].text"\r\n >\r\n </i-input>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="action">\r\n <i-poptip title="确认删除这条数据吗?" confirm @on-ok="onDelete(index)" transfer>\r\n <i class="iconfont icon-delete" title="删除"></i>\r\n </i-poptip>\r\n </template>\r\n </i-table>\r\n</article>\r\n'},"234b":function(t,e,n){"use strict";var i=n("0d9b");t.exports=Array.isArray||function(t){return"Array"===i(t)}},2364:function(t,e){t.exports=r},"236b":function(t,e){t.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 <div class="transfer-actions-title">\r\n <span>配置输出字段</span>\r\n <i-poptip class="action" trigger="hover" content="当前页面的勾选框仅对批量删除有效,实际输出字段为下方列表内的所有内容。" width="300" word-wrap transfer>\r\n <i class="iconfont icon-xinxi"> </i>\r\n </i-poptip>\r\n </div>\r\n <div class="actions-wrapper">\r\n <i-poptip class="action" confirm title="将自动解析转换前结果json至配置输出字段,是否继续?" width="300" @on-ok="onParse" transfer>\r\n <div class="action-item action-text">\r\n <i class="iconfont icon-jiexi-copy"></i>\r\n 解析\r\n </div>\r\n </i-poptip>\r\n <i-poptip class="action" confirm title="将重置当前所有输出字段为上次保存内容,是否确认一键重置?" width="300" @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 action" @click="onAdd">\r\n <i class="iconfont icon-add"></i>\r\n 新增\r\n </div>\r\n <i-poptip class="action" confirm title="将批量删除勾选字段,是否确认?" @on-ok="batchDelete" transfer>\r\n <div class="action-item action-text action-text-delete" :class="selections.length > 0 ? \'\' : \'icon-button-disabled\'">\r\n <i class="iconfont icon-delete"></i>\r\n 批量删除\r\n </div>\r\n </i-poptip>\r\n </div>\r\n </i-row>\r\n <i-table :columns="columns" :data="dataList" class="diy-table" @on-selection-change="onChangeChecked">\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 <span @click="onDelete(index)">\r\n <i title="删除" class="iconfont icon-delete"></i>\r\n </span>\r\n </template>\r\n </i-table>\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'},2380:function(t,e,n){},2385:function(t,e,n){"use strict";var i=n("7e75"),r=n("0888");(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.35.0",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"23c0":function(t,e,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:i},2597:function(t,e,n){"use strict";var i=n("6a10"),r=n("d631"),o=n("9b7f"),a=i.aTypedArray,s=i.exportTypedArrayMethod;s("at",(function(t){var e=a(this),n=r(e),i=o(t),s=i>=0?i:n+i;return s<0||s>=n?void 0:e[s]}))},2606:function(t,e,n){"use strict";var i=n("e900"),r=n("d803"),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),c=s&&"something"===function(){}.name,l=s&&(!i||i&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},"270f":function(t,e,n){},2720:function(t,e,n){"use strict";var i=n("0d9b"),r=n("720f");t.exports=function(t){if("Function"===i(t))return r(t)}},"2a79":function(t,e,n){},"2c48":function(t,e){t.exports='<article class="response" :class="{\'response-expand\':expand}">\r\n <header :class="{\'status-success\': response.code === 200, \'status-fail\': response.code && response.code!==200}">\r\n <span class="title">响应</span>\r\n <span class="collapse-text" @click="onClickCollapse">\r\n <i class="ivu-icon ivu-icon-ios-arrow-forward" :class="{\'icon-arrow-collapse\':expand}"></i>\r\n <span>{{expand ? "收起" : "展开"}}</span>\r\n </span>\r\n <div class="items-div">\r\n <span class="item-name">响应码:</span>\r\n <span class="item-value">{{response.code}}</span>\r\n <span class="item-name">时间:</span>\r\n <span class="item-value">{{response.time}}ms</span>\r\n <span class="item-name">大小:</span>\r\n <span class="item-value">{{response.size}}B</span>\r\n </div>\r\n </header>\r\n <main v-show="expand">\r\n <div class="response-bar">\r\n <div\r\n class="tag"\r\n @click="onClickResponseSettingTpye(item)"\r\n :class="{\'active\': item.name === active.name}"\r\n v-for="(item,index) in responseSettingTypeList"\r\n :key="item.name"\r\n >\r\n <span>{{item.title + (item.num > 0 ? \'(\' + item.num + \')\': "")}}</span>\r\n </div>\r\n </div>\r\n <div class="response-content">\r\n <template v-if="active.name === \'content\'">\r\n <header>\r\n <i-radio-group type="button" class="diy-radio-group-button response-content-radio-group" v-model="contentType">\r\n <i-radio label="originalContent">转换前</i-radio>\r\n <i-radio label="content">转换后</i-radio>\r\n </i-radio-group>\r\n <i-dropdown class="diy-dropdown response-content-dropdown" @on-click="onChangeLang">\r\n <i-button ghost type="primary" class="diy-btn-primary">\r\n <span class="lang">{{lang.toUpperCase()}}</span>\r\n <i class="api-icon icon-select"></i>\r\n </i-button>\r\n <i-dropdown-menu slot="list">\r\n <i-dropdown-item name="json">JSON</i-dropdown-item>\r\n <i-dropdown-item name="xml">XML</i-dropdown-item>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n </header>\r\n <u-editor :value="content" :lang="lang" @inited="onEditorInited"></u-editor>\r\n </template>\r\n <div v-if="active.name === \'responseHeaders\'">\r\n <i-table :columns="headerColumns" :data="responseHeaders" class="diy-table"> </i-table>\r\n </div>\r\n <template v-if="active.name === \'requestHeaders\'">\r\n <i-table :columns="headerColumns" :data="requestHeaders" class="diy-table"> </i-table>\r\n </template>\r\n <template v-if="active.name === \'cookies\'">\r\n <i-table :columns="headerColumns" :data="cookies" class="diy-table"> </i-table>\r\n </template>\r\n <template v-if="active.name===\'output\'">\r\n <span class="output">{{output}}</span>\r\n </template>\r\n </div>\r\n </main>\r\n</article>\r\n'},"2e28":function(t,e,n){},"2ece":function(t,e,n){"use strict";var i=n("2720"),r=n("7801"),o=n("12f2"),a=i(i.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},"2f53":function(t,e){t.exports='<span class="wrap">\r\n <i-poptip trigger="hover" :content="tips">\r\n\x3c!-- <div class="diy-info-icon">i</div>--\x3e\r\n <i-icon type="ios-information-circle-outline"></i-icon>\r\n </i-poptip>\r\n <span class="title">{{labelTitle}}</span>\r\n <span v-if="labelColon">:</span>\r\n</span>\r\n'},3061:function(t,e,n){"use strict";if(n.r(e),n.d(e,"ProjectCombineManage",(function(){return lt})),n.d(e,"ProjectCombineModel",(function(){return Kt})),n.d(e,"ProjectComment",(function(){return Me})),n.d(e,"ProjectDetail",(function(){return Fn})),n.d(e,"ProjectList",(function(){return Ie})),n.d(e,"injectEnableUserCenterCookie",(function(){return k})),"undefined"!==typeof window){var i=window.document.currentScript,r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}var o=n("8bbf"),a=n.n(o),s=n("9839"),c=n.n(s),l=(n("92d1"),n("e02e"),function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},l(t,e)});function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var p=function(){return p=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},p.apply(this,arguments)};function d(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function h(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{c(i.next(t))}catch(e){o(e)}}function s(t){try{c(i["throw"](t))}catch(e){o(e)}}function c(t){t.done?n(t.value):r(t.value).then(a,s)}c((i=i.apply(t,e||[])).next())}))}function f(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(a=0)),a)try{if(n=1,i&&(r=2&s[0]?i["return"]:s[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!(r=r.length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(c){s=[6,c],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}Object.create;function m(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var y=n("6397"),v=n("be65"),g=n.n(v),b=["dex-web:access_token","bigdata-web:access_token","access_token"],w=["admin_sso_token"];function x(t){return g.a.get(t)||localStorage.getItem(t)||void 0}function S(){var t,e=w.map(x).find(Boolean),n=I()&&!!e,i=n?e:null!==(t=b.map(x).find(Boolean))&&void 0!==t?t:"",r=n?{"X-Authorization":"Bearer ".concat(i)}:{Authorization:"Bearer ".concat(i)};return{token:i,isUserCenter:n,headers:r}}var I=function(){return!1};function k(t){I=t}(function(){function t(){}t.isLogin=function(){return void 0!==S()},t.getRemeberLoginName=function(){var t=g.a.get("remember_login_name");return t},t.setRemeberLoginName=function(t){t?g.a.set("remember_login_name",t):g.a.remove("remember_login_name")}})();var C=n("554d"),j=n.n(C),D=function(){function t(){}return t.get=function(t){return this.maps.get(t)},t.set=function(t,e){this.maps.set(t,e)},t.has=function(t){return this.maps.has(t)},t.match=function(t){var e=new Array;return this.maps.forEach((function(n,i){i.startsWith(t)&&e.push(n)})),e},t.create=function(t){for(var e,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return(e=j.a.Activator).createInstance.apply(e,m([t],n,!1))},t.maps=new Map,t}();function T(t){return function(e,n){var i=t;i&&!D.has(i)&&D.set(i,D.create(t)),Object.defineProperty(e,n,{get:function(){return D.get(i)}})}}function O(t,e){return function(n,i){var r=n[i],o="query"===t?E.queryHandler:E.saveHandler,a=n.constructor,s=D.has(a)?D.get(a):D.create(n.constructor);Object.defineProperty(s,i,{get:function(){return o(s,r,e)}}),D.set(a,s)}}var E=function(){function t(){}return t.queryHandler=function(e,n,i){var r=this;return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return h(r,void 0,void 0,(function(){var r,a,s,c,l,u,p,d,h,m,y,v,g,b,w;return f(this,(function(f){switch(f.label){case 0:r=i,a=r.title,s=void 0===a?"":a,c=r.dataName,l=void 0===c?"":c,u=r.showTip,p=void 0!==u&&u,d=r.showErrorMsg,h=void 0===d||d,f.label=1;case 1:return f.trys.push([1,3,,4]),[4,n.apply(e,o)];case 2:return m=f.sent(),g=void 0,m.hasError?(g=s?"".concat(s,"出错!"):"请求服务失败",g=h?m.message:g,(p||h)&&t.message.error(g),console.error(g),[2,m]):(y=(l?m[l]:m)||"",(!y||y.$isObject()&&y.$isEmpty()||y.$isArray()&&y.$isEmpty()||""===l&&(m.result||[]).$isEmpty())&&(g="".concat(s,"无结果!"),p&&t.message.warning(g),console.warn(g)),[2,y]);case 3:return v=f.sent(),g=s?"".concat(s,"出错!"):"请求服务失败",g=h&&(null===(w=null===(b=v.response)||void 0===b?void 0:b.data)||void 0===w?void 0:w.message)||g,(p||h)&&t.message.error(g),console.error(g,v),[3,4];case 4:return[2]}}))}))}},t.saveHandler=function(e,n,i){var r=this,o=i,a=o.title,s=void 0===a?"":a,c=o.dataName,l=void 0===c?"":c,u=o.showTip,p=void 0!==u&&u,d=o.showErrorMsg,m=void 0===d||d;return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return h(r,void 0,void 0,(function(){var r,o,a,c,u,d;return f(this,(function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),[4,n.apply(this||e,i)];case 1:return r=h.sent(),c=void 0,r.hasError?(c=s?"".concat(s,"出错!"):"请求服务失败",c=m?r.message:c,(p||m)&&t.message.error(c),console.error(c),[2,r]):(c=s?"".concat(s,"成功!"):"请求服务成功",p&&t.message.success(c),o=l?r[l]:r,[2,o]);case 2:return a=h.sent(),c=s?"".concat(s,"出错!"):"请求服务失败",c=m&&(null===(d=null===(u=a.response)||void 0===u?void 0:u.data)||void 0===d?void 0:d.message)||c,(p||m)&&t.message.error(c),console.error(c,a),[3,3];case 3:return[2]}}))}))}},Object.defineProperty(t,"message",{get:function(){return a.a.prototype.$Message},enumerable:!1,configurable:!0}),t}(),P=(n("68b7"),n("a4d2"),n("d371"),n("cebe")),L=n.n(P),M=window,A=p({},M.commonSetting),N=function(){function t(){this.securityServer=A.securityServer||"",this.adminServer=A.adminServer||""}return t.prototype.url=function(t){return A.baseUrl+t},Object.defineProperty(t.prototype,"applicationContext",{get:function(){return j.a.Application.context},enumerable:!1,configurable:!0}),t.prototype._post=function(t,e){return L.a.post(this.url(t),e).then((function(t){return t.data}))},t.prototype._get=function(t){return L.a.get(this.url(t)).then((function(t){return t.data}))},t.prototype._put=function(t,e){return L.a.put(this.url(t),e).then((function(t){return t.data}))},t.prototype._delete=function(t){return L.a.delete(this.url(t)).then((function(t){return t.data}))},t.prototype._export=function(t,e){return L.a.post(this.url(t),e,{headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/json; charset=UTF-8","Access-Control-Allow-Origin":"*"},responseType:"arraybuffer"}).then((function(t){var e=new Blob([t.data],{type:"application/vnd.ms-excel"}),n=URL.createObjectURL(e);window.location.href=n}))},t}(),q=N,$=n("98f0"),R=n.n($),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.getPublicKey=function(){return h(this,void 0,Promise,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this._get("".concat(this.securityServer,"/oauth/extras/public-key"))];case 1:return t=e.sent(),g.a.set("public-key",t.result||"none"),[2,t]}}))}))},e.prototype.login=function(t,e){return h(this,void 0,Promise,(function(){return f(this,(function(n){return[2,this._post("".concat(this.securityServer,"/oauth/extras/token"),{client_id:"unity-client",client_secret:"unity",grant_type:"password",password:this.getEncryptPassword(e),username:t})]}))}))},e.prototype.getEncryptPassword=function(t){var e=g.a.get("public-key");if("none"===e||!e)return t;var n=new R.a;return n.setPublicKey(e),n.encrypt(t)},e.prototype.saveCategory=function(t){return t.id?this._put("/unity/api/category",t):this._post("/unity/api/category",t)},e.prototype.deleteCategory=function(t){return this._delete("/unity/api/category/".concat(t))},e.prototype.getCategoryTree=function(t){return this._get("/unity/category/tree?type=".concat(t))},e.prototype.getEnumByType=function(t){return this._get("/free/display/".concat(t))},e.prototype.getItemListByType=function(t){return this._get("/free/display/".concat(t))},d([O("query",{title:"获取加密需要的公钥"})],e.prototype,"getPublicKey",null),d([O("save",{title:"保存分组",showTip:!0,showErrorMsg:!0})],e.prototype,"saveCategory",null),d([O("save",{title:"删除分组",showTip:!0,showErrorMsg:!0})],e.prototype,"deleteCategory",null),d([O("query",{title:"查询分类树"})],e.prototype,"getCategoryTree",null),d([O("query",{title:"查询枚举数据",showTip:!0,showErrorMsg:!0})],e.prototype,"getEnumByType",null),d([O("query")],e.prototype,"getItemListByType",null),e}(q),F=_,B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.page=function(t){return h(this,void 0,Promise,(function(){return f(this,(function(e){return[2,this._post("/unity/combine-info/page",t)]}))}))},e.prototype.getById=function(t){return h(this,void 0,Promise,(function(){return f(this,(function(e){return[2,this._get("/unity/combine-info/".concat(t))]}))}))},e.prototype.save=function(t){return h(this,void 0,Promise,(function(){return f(this,(function(e){return t.id?[2,this._put("/unity/combine-info",t)]:[2,this._post("/unity/combine-info",t)]}))}))},e.prototype.batchDelete=function(t){return h(this,void 0,Promise,(function(){return f(this,(function(e){return[2,this._post("/unity/combine-info/batch?@state=delete",t)]}))}))},e.prototype.dataModelParams=function(t){return h(this,void 0,Promise,(function(){return f(this,(function(e){return[2,this._post("/unity/data-model/list-request-params",t)]}))}))},e.prototype.apiProjectParams=function(t){return h(this,void 0,Promise,(function(){return f(this,(function(e){return[2,this._post("/unity/api/info/list-request-params",t)]}))}))},e.prototype.testRun=function(t){return h(this,void 0,Promise,(function(){return f(this,(function(e){return[2,this._post("/unity/combine-info/test",t)]}))}))},e.prototype.getDoc=function(t){return this._get("/unity/combine-info/".concat(t,"/doc"))},e.prototype.changeAuthFlag=function(t,e){return h(this,void 0,Promise,(function(){return f(this,(function(n){return[2,this._post("/unity/combine-info/requireauth/changestatus?id=".concat(t,"&authFlag=").concat(e))]}))}))},e.prototype.changeStatus=function(t,e){return h(this,void 0,Promise,(function(){return f(this,(function(n){return[2,this._put("/unity/combine-info/".concat(t,"/change-status?status=").concat(e))]}))}))},e.prototype.copyApi=function(t){return this._post("/unity/combine-info/copy",t)},e.prototype.geHelpDoc=function(){return this._get("/combine-api-help/help.md")},d([O("query",{title:"分页查询数据"})],e.prototype,"page",null),d([O("query",{title:"通过id获取数据详情"})],e.prototype,"getById",null),d([O("save",{title:"保存数据"})],e.prototype,"save",null),d([O("query",{title:"批量删除"})],e.prototype,"batchDelete",null),d([O("query",{title:"批量查询模型请求参数"})],e.prototype,"dataModelParams",null),d([O("query",{title:"批量查询API请求参数"})],e.prototype,"apiProjectParams",null),d([O("query",{title:"接口测试",showTip:!0})],e.prototype,"testRun",null),d([O("get",{title:"获取文档"})],e.prototype,"getDoc",null),d([O("save",{title:"保存数据"})],e.prototype,"changeAuthFlag",null),d([O("save",{title:"保存数据"})],e.prototype,"changeStatus",null),d([O("save",{title:"复制接口"})],e.prototype,"copyApi",null),e}(F),z=B,V=(n("98f4"),function(){function t(){}return t.handlerTreeData=function(e,n,i,r,o){void 0===e&&(e=[]),void 0===i&&(i=""),void 0===r&&(r=n),void 0===o&&(o=!1);var a=[];return e&&e.forEach((function(e){if(e.title=e[n],e.checked=!1,e.selected=!1,e.indeterminate=!1,e.expand=!1,e.children=t.handlerTreeData(e.children,n,i,r),i){var s=e[i];s&&(s=s.map((function(t){return t.title=t[r],t.checked=!1,t.selected=!1,t.indeterminate=!1,t.parentId=e.id,t.parentName=e.title,t})),e.children=(e.children||[]).concat(s))}o&&!e.children.length||a.push(e)})),a},t.handlerTreeData2=function(e,n,i,r,o,a,s){void 0===e&&(e=[]),void 0===i&&(i=""),void 0===r&&(r=n),void 0===o&&(o=!1),void 0===a&&(a=""),void 0===s&&(s="");var c=[];return e&&e.forEach((function(e){if(e.title=e[n],e.checked=!1,e.selected=!1,e.indeterminate=!1,e.expand=!1,e.parentId=e.parentId||a,e.parentName=e.parentName||s,e.children=t.handlerTreeData2(e.children,n,i,r,!1,e.id,e.title),i){var l=e[i];l&&(l=l.map((function(t){return t.title=t[r],t.checked=!1,t.selected=!1,t.indeterminate=!1,t.parentId=e.id,t.parentName=e.title,t})),e.children=(e.children||[]).concat(l))}o&&!e.children.length||c.push(e)})),c},t.treeNodeDirectory=function(e,n){void 0===e&&(e=[]);for(var i="",r=0,o=e;r<o.length;r++){var a=o[r];if(a.id===n)return i=a.name,i;if(a.children&&a.children.length&&(i=t.treeNodeDirectory(a.children,n),i))return a.name+"/"+i}return""},t.treeNodeFatherArray=function(e,n){void 0===e&&(e=[]);for(var i=[],r=0,o=e;r<o.length;r++){var a=o[r];if(a.id===n)return i.push(a),i;if(a.children&&a.children.length&&(i=t.treeNodeFatherArray(a.children,n),i.length>0))return i.unshift(a),i}return[]},t}()),U=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=[],e.className=[],e.placeholder="输入关键字查询",e.treeData=[],e.renderData=[],e.keyword="",e.selectItem={},e.expandNodeSet=new Set,e}return u(e,t),e.prototype.onFilter=function(){this.keyword?(this.renderData=this.filterData(this.treeData.$clone()),this.renderData=this.renderData.map((function(t){return t}))):this.renderData=this.treeData.map((function(t){return t}))},e.prototype.match=function(t){var e=this,n=-1!==(t.title||t.name).indexOf(this.keyword),i=!1;return!n&&t.children&&t.children.forEach((function(t){i=e.match(t).matched||e.match(t).childrenMatched||i})),{matched:n,childrenMatched:i}},e.prototype.filterData=function(t){var e=this;if(!t||!Array.isArray(t))return t;var n=t.filter((function(t){return e.match(t).childrenMatched}));return n=n.map((function(t){return t.children&&(t.children=e.filterData(t.children)),t})),n=n.concat(t.filter((function(t){return e.match(t).matched}))),n},e.prototype.clickLeafNode=function(t,e){this.selectItem=e,this.$emit("on-select",this.selectItem)},e.prototype.clickParentNode=function(t,e){this.$set(e,"expand",!e.expand),this.onToggleExpand(e),this.selectItem=e,this.$emit("on-select",this.selectItem)},e.prototype.onLocationSelect=function(t,e){void 0===e&&(e=!0),this.selectItem=t,this.$emit("on-select",this.selectItem,e)},e.prototype.initTreeData=function(t){t&&(this.treeData=t,this.treeData.length&&"virtual_root_directory"===this.treeData[0].id&&this.onToggleExpand(this.treeData[0]),this.renderData=this.treeData.map((function(t){return t})))},e.prototype.watchTaskID=function(t){if(t){var e=V.treeNodeFatherArray(this.treeData,t);if(e.length>0)for(var n=0;n<e.length;n++)n===e.length-1?this.onLocationSelect(e[n],!1):(e[n].expand=!0,this.onToggleExpand(e[n]));this.$nextTick((function(){for(var t=document.getElementsByClassName("ivu-tree-title-selected"),n=null,i=0;i<t.length;i++)if(e.length&&t[i].innerText===e[e.length-1].name){n=t[i];break}t.length&&setTimeout((function(){n.scrollIntoView({behavior:"smooth",block:"center"})}),200)}))}},e.prototype.renderContent=function(t,e){var n=this,i=(e.root,e.node,e.data),r=!!i.children;return this.$set(i,"selected",this.selectItem.id===i.id),t("div",{class:"common-tree-node"},[t("i",r?{class:this.isTreeList?"iconfont icon-mulushu":"iconfont icon-bumenkaohe",on:{click:function(t){r?n.clickParentNode(t,i):n.clickLeafNode(t,i)}}}:{class:"iconfont icon-file",on:{click:function(t){r?n.clickParentNode(t,i):n.clickLeafNode(t,i)}}}),t("p",{on:{click:function(t){r?n.clickParentNode(t,i):n.clickLeafNode(t,i)}}},i.title)])},e.prototype.onToggleExpand=function(t){t.expand?this.expandNodeSet.add(t.id):this.expandNodeSet.delete(t.id)},e.prototype.initSelectItemChange=function(){this.selectItem=this.initSelectItem,this.$forceUpdate()},d([Object(y["config"])({default:null})],e.prototype,"propData",void 0),d([Object(y["config"])({default:function(){return{}}})],e.prototype,"initSelectItem",void 0),d([Object(y["config"])({default:!1})],e.prototype,"isTreeList",void 0),d([Object(y["config"])({default:""})],e.prototype,"commonTaskCategoryID",void 0),d([Object(y["watch"])("data",{immediate:!0,deep:!1}),Object(y["watch"])("propData",{immediate:!0,deep:!1})],e.prototype,"initTreeData",null),d([Object(y["watch"])("commonTaskCategoryID",{immediate:!1})],e.prototype,"watchTaskID",null),d([Object(y["watch"])("initSelectItem")],e.prototype,"initSelectItemChange",null),e=d([Object(y["component"])({template:n("6d46"),components:{}})],e),e}(y["Component"]),H=U,G=(n("58d2"),n("b61c"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.onClickNode=function(t){this.data.children&&!this.canChooseFolder&&(this.$set(this.data,"expand",!this.data.expand),t.stopPropagation()),this.data.selected&&t.stopPropagation()},d([Object(y["config"])({default:function(){return{}}})],e.prototype,"data",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"canChooseFolder",void 0),e=d([Object(y["component"])({template:n("d30a")})],e),e}(y["Component"])),K=G,Q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.tree=[],e.inputValue="",e.visible=!1,e.current={},e}return u(e,t),e.prototype.onValueChange=function(t){if(!t)return this.inputValue="",void(this.current={});var e=this.getNodeById(this.value,this.tree)||{};this.current=e,this.inputValue=V.treeNodeDirectory(this.tree,this.value)||""},e.prototype.renderContent=function(t,e){e.root,e.node;var n=e.data;return this.$set(n,"selected",this.current.id===n.id),t(K,{props:{data:n,canChooseFolder:this.canChooseFolder}})},e.prototype.onTreeDataChange=function(){this.tree=V.handlerTreeData(this.treeData.$clone(),"name",this.leafName,void 0,this.filterEmpty),this.tree&&1===this.tree.length&&"virtual_root_directory"===this.tree[0].id&&(this.tree[0].expand=!0),this.onValueChange(this.value)},e.prototype.getNodeById=function(t,e){for(var n=void 0,i=0,r=e;i<r.length;i++){var o=r[i];if(o.id===t)return o;if(o.children&&o.children.length&&(n=this.getNodeById(t,o.children),n))return n}},e.prototype.onInputChange=function(){this.visible=!0},e.prototype.onSelectChange=function(t,e){this.$emit("input",e.id),this.$emit("on-select",e),this.visible=!1},e.prototype.onClear=function(){this.$emit("input",""),this.$emit("on-select",{})},d([Object(y["config"])({type:String,default:""})],e.prototype,"value",void 0),d([Object(y["config"])({type:Array,default:function(){return[]}})],e.prototype,"treeData",void 0),d([Object(y["config"])({default:"请输入"})],e.prototype,"placeholder",void 0),d([Object(y["config"])({default:"children"})],e.prototype,"leafName",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"filterEmpty",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"readonly",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"canChooseFolder",void 0),d([Object(y["watch"])("value",{immediate:!0})],e.prototype,"onValueChange",null),d([Object(y["watch"])("treeData",{deep:!1,immediate:!0})],e.prototype,"onTreeDataChange",null),e=d([Object(y["component"])({template:n("a1f0"),components:{}})],e),e}(y["Component"]),J=Q,W=(n("9fb0"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.saveNode=function(t){return t.id?this._put("/unity/category",t):this._post("/unity/category",t)},e.prototype.deleteTreeNodeById=function(t){return this._delete("/unity/combine-info/category/".concat(t))},e.prototype.exportModel=function(t){return L.a.post(this.url("/unity/combine-info/export"),t,{headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/json; charset=UTF-8","Access-Control-Allow-Origin":"*"},responseType:"arraybuffer"}).then((function(t){var e=new Blob([t.data],{type:"application/json"}),n=URL.createObjectURL(e),i=document.createElement("a");i.href=n,i.download=decodeURI("data-model.json"),i.style.display="none",document.body.appendChild(i),i.target="_blank",i.click(),i.parentNode.removeChild(i),window.URL.revokeObjectURL(n)}))},e.prototype.isCanExportModel=function(t){return this._post("/unity/combine-info/export",t)},e.prototype.confirmImport=function(t){return this._post("/unity/combine-info/import/confirm?key=".concat(t))},e.prototype.cancelImport=function(t){return this._post("/unity/combine-info/import/cancel?key=".concat(t))},d([O("save",{title:"保存",showTip:!1})],e.prototype,"saveNode",null),d([O("delete",{title:"删除",showTip:!1})],e.prototype,"deleteTreeNodeById",null),d([O("save",{title:"导入接口数据",showTip:!0,showErrorMsg:!0})],e.prototype,"confirmImport",null),e}(F)),Y=W,X=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.categoryData={},e.rules={name:[{required:!0,message:"请输入分组名称",trigger:"blur,change"}]},e}return u(e,t),Object.defineProperty(e.prototype,"show",{get:function(){return this.value},set:function(t){this.$emit("input",t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEdit",{get:function(){return this.data.id},enumerable:!1,configurable:!0}),e.prototype.onValueChange=function(t){t||this.$refs.addForm.resetFields()},e.prototype.modalShow=function(t){!1===t?this.categoryData={}:this.categoryData.id=this.data.parentId},e.prototype.selectCategory=function(t){this.categoryData=t,this.data.parentId="virtual_root_directory"===this.categoryData.id?"":this.categoryData.id},e.prototype.onCancel=function(){this.show=!1},e.prototype.onSave=function(){var t=this;this.$refs.addForm.validate((function(e){e&&t.doSave()}))},e.prototype.doSave=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.isEdit&&this.data.id===this.data.parentId?[2,this.$message.warning("所属分组不能选中自身")]:("virtual_root_directory"===this.data.parentId&&(this.data.parentId=""),[4,this.service.saveNode(this.data)]);case 1:return t=e.sent(),t&&!t.hasError&&(this.onCancel(),this.$emit("on-refresh")),[2]}}))}))},d([T(Y)],e.prototype,"service",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"value",void 0),d([Object(y["config"])({type:Array,default:[]})],e.prototype,"categories",void 0),d([Object(y["config"])({default:function(){return{name:"",type:"api_combine",parentId:null}}})],e.prototype,"data",void 0),d([Object(y["watch"])("value")],e.prototype,"onValueChange",null),d([Object(y["watch"])("show")],e.prototype,"modalShow",null),e=d([Object(y["component"])({template:n("3b85"),components:{"u-tree-selector":J}})],e),e}(y["Component"]),Z=X,tt=(n("de03"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.actions=[{name:"add",text:"新增",icon:"add-folder"},{name:"edit",text:"编辑"},{name:"delete",text:"删除"},{name:"import",text:"导入",icon:"import"},{name:"export",text:"导出",icon:"export"}],e}return u(e,t),e.prototype.onClick=function(t){this.$emit("on-click",t,this.data)},e.prototype.onClickNode=function(t){this.$set(this.data,"expand",!this.data.expand),this.$emit("on-expand",this.data),this.$emit("on-select",this.data),this.data.selected&&t.stopPropagation()},Object.defineProperty(e.prototype,"uploadAction",{get:function(){return A.baseUrl+"/unity/combine-info/import"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uploadParams",{get:function(){return{categoryId:this.data.id}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){var t=S().headers;return t},enumerable:!1,configurable:!0}),e.prototype.onSuccess=function(t,e){this.$emit("on-import-success",t,e)},e.prototype.onBeforeUpload=function(t){return-1!==t.name.indexOf(" ")?(this.$Message.warning("文件名不能包含空格"),!1):-1===t.name.indexOf("%")||(this.$Message.warning("文件名不能包含符号%"),!1)},e.prototype.onFormatError=function(t){this.$Message.warning("文件".concat(t.name,"格式错误"))},d([Object(y["config"])({default:function(){return Object.create(null)}})],e.prototype,"data",void 0),d([Object(y["config"])({default:""})],e.prototype,"importUrl",void 0),e=d([Object(y["component"])({template:n("07ab")})],e),e}(y["Component"])),et=tt,nt=(n("44c1"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.childService=new z,e.showAddTreeNodeModal=!1,e.type="api_combine",e.tempNode={name:"",type:e.type,parentId:null},e.tempData=[],e.showImportModal=!1,e.importResult={},e.columns=[{type:"index",title:"序号",align:"left",width:80},{title:"名称",align:"left",key:"name",tooltip:!0},{title:"编码",align:"left",key:"code",tooltip:!0},{title:"说明",align:"left",key:"remark",tooltip:!0}],e}return u(e,t),Object.defineProperty(e.prototype,"uploadAction",{get:function(){return A.baseUrl+"/unity/combine-info/import"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){var t=S().headers;return t},enumerable:!1,configurable:!0}),e.prototype.onImportConfirm=function(){return h(this,void 0,void 0,(function(){var t,e;return f(this,(function(n){switch(n.label){case 0:return this.importResult.total!==this.importResult.duplicateNum?[3,2]:[4,this.service.cancelImport(this.importResult.id)];case 1:return t=n.sent(),t&&!t.hasError?(this.$message.success("导入接口数据成功!"),this.showImportModal=!1,[2]):(this.$Message.error(t.message||"导入接口数据失败!"),[2]);case 2:return[4,this.service.confirmImport(this.importResult.id)];case 3:return e=n.sent(),e&&!e.hasError?(this.showImportModal=!1,this.queryTreeData(),[2]):[2]}}))}))},e.prototype.onImportCancel=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.cancelImport(this.importResult.id)];case 1:return t=e.sent(),t&&!t.hasError?(this.$message.success("取消成功"),this.showImportModal=!1,[2]):(this.$Message.error(t.message||"取消异常"),[2])}}))}))},e.prototype.onSuccess=function(t,e){if(t&&!t.hasError)return t.result?(this.showImportModal=!0,void(this.importResult=t.result)):(this.$Message.success("导入成功"),void this.queryTreeData());this.$Message.error(t.message||"导入出错,请稍后再试")},e.prototype.onBeforeUpload=function(t){return-1!==t.name.indexOf(" ")?(this.$Message.warning("文件名不能包含空格"),!1):-1===t.name.indexOf("%")||(this.$Message.warning("文件名不能包含符号%"),!1)},e.prototype.onFormatError=function(t){this.$Message.warning("文件".concat(t.name,"格式错误"))},e.prototype.onModelExport=function(t){return h(this,void 0,void 0,(function(){var e,n;return f(this,(function(i){switch(i.label){case 0:return 0===this.data.length?[2]:(e=Object.create(null),e={categoryId:t||null},[4,this.service.isCanExportModel(e)]);case 1:return n=i.sent(),!n||n.hasError?[3,3]:[4,this.service.exportModel(e)];case 2:return i.sent(),[3,4];case 3:n&&n.hasError&&this.$message.error(n.message),i.label=4;case 4:return[2]}}))}))},e.prototype.renderContent=function(t,e){var n=this,i=(e.root,e.node,e.data);return this.$set(i,"selected",this.selectItem.id===i.id),this.$set(i,"expand",this.expandNodeSet.has(i.id)),t(et,{props:{data:i},on:{"on-click":function(t,e){n.handleNodeOprate(t,e)},"on-select":function(t){n.onSelect(t)},"on-import-success":function(t,e){n.onSuccess(t,e)},"on-expand":function(t){n.onToggleExpand(t)}}})},e.prototype.handleNodeOprate=function(t,e){switch(t){case"add":this.onAddChildNode(e);break;case"edit":this.onEditNode(e);break;case"delete":this.onDeleteNode(e);break;case"export":this.onModelExport(e.id);break}},e.prototype.onSelect=function(t,e){void 0===e&&(e=!0),this.selectItem=t,this.$emit("on-select",this.selectItem,e)},e.prototype.initSelectItemChange=function(){this.selectItem=this.initSelectItem,this.selectItem.id&&this.onSelect(this.selectItem)},e.prototype.watchTaskID=function(t){if(t){var e=V.treeNodeFatherArray(this.data,t);if(e.length>0)for(var n=0;n<e.length;n++)n===e.length-1?this.onSelect(e[n],!1):(e[n].expand=!0,this.onToggleExpand(e[n]));this.$nextTick((function(){var t=document.getElementsByClassName("ivu-tree-title-selected");t.length&&setTimeout((function(){t[0].scrollIntoView({behavior:"smooth",block:"center"})}),200)}))}},e.prototype.onAddTreeNode=function(){this.tempNode={name:"",type:this.type},this.showAddTreeNodeModal=!0},e.prototype.onAddChildNode=function(t){this.tempNode={parentId:t.id,name:"",type:this.type},this.showAddTreeNodeModal=!0},e.prototype.onEditNode=function(t){this.tempNode=p({},t),this.showAddTreeNodeModal=!0},e.prototype.onDeleteNode=function(t){return h(this,void 0,void 0,(function(){var e,n=this;return f(this,(function(i){switch(i.label){case 0:return t.children&&t.children.length?[2,this.$message.warning("无法删除非空文件夹!")]:[4,this.getChildren(t)];case 1:return e=i.sent(),e?[2,this.$message.warning("无法删除非空文件夹!")]:(this.$Modal.confirm({title:"确定要删除【".concat(t.name,"】吗?"),onOk:function(){return h(n,void 0,void 0,(function(){return f(this,(function(e){switch(e.label){case 0:return[4,this.service.deleteTreeNodeById(t.id)];case 1:return e.sent(),this.queryTreeData(),[2]}}))}))}}),[2])}}))}))},e.prototype.getChildren=function(t){return h(this,void 0,void 0,(function(){var e,n;return f(this,(function(i){switch(i.label){case 0:return e={condition:{categoryId:t.id}},[4,this.childService.page(e)];case 1:return n=i.sent(),[2,Promise.resolve(n&&!n.hasError&&n.totalCount>0)]}}))}))},e.prototype.queryTreeData=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getCategoryTree(this.type)];case 1:return t=e.sent(),t&&!t.hasError&&(this.tempData=t.result||[],this.tempData.length>0?(this.tempData.forEach((function(t){t.parentId||(t.parentId="virtual_root_directory")})),this.data=[p(p({},this.tempData[0]),{id:"virtual_root_directory",children:this.tempData,jobs:[],name:"全部",expand:!0,parentId:null,parentName:null})],this.onToggleExpand(this.data[0])):(this.data=[{id:"virtual_root_directory",children:this.tempData,jobs:[],name:"全部",expand:!0,parentId:null,parentName:null}],this.onToggleExpand(this.data[0])),this.$emit("on-tree-data",this.tempData)),!this.initSelectItem.id&&this.data.length&&(this.$set(this.data[0],"selected",!0),this.onSelect(this.data[0])),[2]}}))}))},e.prototype.mounted=function(){this.queryTreeData()},d([T(Y)],e.prototype,"service",void 0),d([Object(y["config"])({default:""})],e.prototype,"taskCategoryID",void 0),d([Object(y["watch"])("initSelectItem",{immediate:!0})],e.prototype,"initSelectItemChange",null),d([Object(y["watch"])("taskCategoryID",{immediate:!1})],e.prototype,"watchTaskID",null),e=d([Object(y["component"])({template:n("46d3"),components:{"u-add-node":Z}})],e),e}(H)),it=nt,rt=n("a93c"),ot=(n("3497"),n("9b65"),'<style>body { font-family: Arial, sans-serif; line-height: 1.6;margin: 20px;color: #333;background-color: #fff;} h1, h2, h3, h4,h5,h6 { font-weight: bold; margin-bottom: 20px; color: #333; border-bottom: 2px solid #ddd; padding-bottom: 10px;} h1 { font-size: 2.5em;} h2 { font-size: 2em; } h3 {font-size: 1.75em;} h4 {font-size: 1.5em;} h5 {font-size: 1.25em;} h6 {font-size: 1em;} p { margin-bottom: 1em;} ul, ol { margin-bottom: 1em; padding-left: 40px;} li {margin-bottom: 0.5em;} a { color: #0366d6; text-decoration: none;} a:hover {text-decoration: underline;} pre, code { background-color: #f0f0f0; padding: 5px; font-family: Consolas, "Courier New", monospace;} pre { padding: 10px; overflow-x: auto;} blockquote { border-left: 4px solid #dfe2e5; padding: 10px 20px; margin: 20px 0; background-color: #f9f9f9; color: #555;} table { width: 100%; border-collapse: collapse; margin-bottom: 20px;} th,td { border: 1px solid #ddd; padding: 8px; text-align: left;} th { background-color: #f3f3f3; font-weight: bold;} tr:nth-child(even) { background-color: #f9f9f9;} img { max-width: 100%; height: auto; display: block; margin: 20px 0;} @media print { body {font-size: 12pt;} table { border: 1px solid black;} th, td {border: 1px solid black; } pre,code { background-color: #f0f0f0;} a { color: black; text-decoration: none;} h1, h2, h3, h4, h5, h6 { color: black; border: none;} }</style>'),at=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.markdownOption={},e.render="",e.toolbars={},e}return u(e,t),Object.defineProperty(e.prototype,"show",{get:function(){return this.value},set:function(t){this.$emit("input",t)},enumerable:!1,configurable:!0}),e.prototype.onSave=function(t,e){var n=document.getElementById("printf");n.contentDocument.write(e),n.contentDocument.close(),n.contentWindow.print()},e.prototype.onChange=function(t,e){this.render=ot+e},e.prototype.onMenuClick=function(t){"pdf"===t?this.onSavePdf():this.onSaveHtml()},e.prototype.onSavePdf=function(){var t=document.getElementById("printf");t.contentDocument.write(this.render),t.contentDocument.close(),t.contentWindow.print()},e.prototype.onSaveHtml=function(){var t="接口文档";try{var e=this.doc.indexOf("#"),n=this.doc.indexOf("\n");t=this.doc.substring(e,n)}catch(o){}var i=document.createElement("a");i.download="".concat(t,".html"),i.style.display="none";var r=new Blob([this.render],{type:"text/html"});i.href=window.URL.createObjectURL(r),document.body.appendChild(i),i.click(),document.body.removeChild(i)},e.prototype.onOk=function(){this.show=!1},d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"value",void 0),d([Object(y["config"])({type:String})],e.prototype,"doc",void 0),e=d([Object(y["component"])({name:"data-model-doc",template:n("45bb"),components:{"mavon-editor":rt["mavonEditor"]}})],e),e}(y["View"]),st=at,ct=(n("da9a"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.split=.2,e.initNode={},e.currentNode=Object.create(null),e.treeData=[],e.showCopyModal=!1,e.copyData={},e.categoryData={},e.list=[],e.selection=[],e.isContainsPublished=!1,e.columns=[{type:"selection",align:"center",width:80*window.pageRatio},{title:"名称",key:"name",align:"left",class:"STRING",ellipsis:!0,tooltip:!0,width:225*window.pageRatio,resizable:!0},{title:"编码",key:"code",align:"left",class:"STRING",ellipsis:!0,tooltip:!0,width:225*window.pageRatio,resizable:!0},{title:"描述",key:"description",align:"left",class:"STRING",ellipsis:!0,tooltip:!0,width:225*window.pageRatio,resizable:!0},{title:"是否需要认证",align:"left",slot:"authFlag",width:160*window.pageRatio,resizable:!0},{title:"发布状态",align:"left",slot:"status",width:180*window.pageRatio,resizable:!0},{title:"接口文档",align:"left",slot:"doc",width:120*window.pageRatio,resizable:!0},{title:"操作",align:"left",slot:"operates",width:180*window.pageRatio}],e.paging={pageIndex:1,pageSize:10,totalCount:0},e.loading=!1,e.doc="",e.docShow=!1,e.formData={name:void 0,code:void 0},e.taskCategoryID="",e}return u(e,t),Object.defineProperty(e.prototype,"form",{get:function(){return this.$refs["searchForm"]},enumerable:!1,configurable:!0}),e.prototype.mounted=function(){var t=this.$route.query.categoryId;t&&(this.initNode={id:t})},e.prototype.onNodeSelect=function(t,e){e&&(this.taskCategoryID="",this.currentNode=t,this.onQuery())},e.prototype.onReset=function(){this.form.resetFields(),this.onQuery()},e.prototype.onQuery=function(){this.$set(this.paging,"pageIndex",1),this.doQuery()},e.prototype.doQuery=function(){var t,e,n,i;return h(this,void 0,void 0,(function(){var r,o;return f(this,(function(a){switch(a.label){case 0:if(!(null===(t=this.currentNode)||void 0===t?void 0:t.id))return[2];a.label=1;case 1:return a.trys.push([1,,3,4]),this.loading=!0,r=Object.create(null),r.condition=p(p({},this.formData),{categoryId:"virtual_root_directory"===(null===(e=this.currentNode)||void 0===e?void 0:e.id)?"":this.currentNode.id}),r.paging=this.paging,[4,this.service.page(r)];case 2:return o=a.sent(),((null===o||void 0===o?void 0:o.result)||[]).forEach((function(t){t._disabled="PUBLISHED"===t.status})),this.list=null!==(n=o&&o.result)&&void 0!==n?n:[],this.paging.totalCount=null!==(i=o&&o.totalCount)&&void 0!==i?i:0,[3,4];case 3:return this.loading=!1,[7];case 4:return[2]}}))}))},e.prototype.onPageIndexChange=function(t){this.$set(this.paging,"pageIndex",t),this.doQuery()},e.prototype.onPageSizeChange=function(t){this.$set(this.paging,"pageIndex",1),this.$set(this.paging,"pageSize",t),this.doQuery()},e.prototype.onDetail=function(t){var e=null!==t&&void 0!==t?t:{},n=e.id,i=e.categoryId;this.onAdd(n,i,!1)},e.prototype.onEdit=function(t){var e=null!==t&&void 0!==t?t:{},n=e.id,i=e.categoryId;this.onAdd(n,i,!0)},e.prototype.onAdd=function(t,e,n){var i;return void 0===n&&(n=!0),h(this,void 0,void 0,(function(){var r;return f(this,(function(o){return"virtual_root_directory"!==(null===(i=this.currentNode)||void 0===i?void 0:i.id)||t?(this.$router.push({replace:!0,name:"combine-add",query:(r={isEdit:n?"1":"0",id:null!==t&&void 0!==t?t:"",categoryId:e||this.currentNode.id},r["_".concat(t?"edit":"add")]=Date.now().toString(),r)}),[2]):[2]}))}))},e.prototype.onDelete=function(t){return h(this,void 0,void 0,(function(){var e,n;return f(this,(function(i){switch(i.label){case 0:return e=t.id,e?[4,this.service.batchDelete([e])]:[2];case 1:return n=i.sent(),n&&!n.hasError&&this.onQuery(),[2]}}))}))},e.prototype.onBatchDelete=function(){var t=this,e=this.selection.map((function(t){return t.id}));e.length&&!this.isContainsPublished&&this.$modal.confirm({title:"将批量删除所选内容,是否继续?",onOk:function(){return h(t,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.batchDelete(e)];case 1:return t=n.sent(),t&&!t.hasError&&(this.onQuery(),this.selection=[]),[2]}}))}))}})},e.prototype.onCopy=function(t){var e=t.$clone();this.copyData={id:e.id,code:e.code,name:e.name,categoryId:e.categoryId},this.categoryData.id=e.categoryId,this.copyData.name+="_copy",this.copyData.code+="_copy",this.showCopyModal=!0},e.prototype.onCopyConfirm=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.copyData.name?this.copyData.code?this.copyData.categoryId?[4,this.service.copyApi(this.copyData)]:[2,this.$message.warning("请选择分组")]:[2,this.$message.warning("请填写接口编码")]:[2,this.$message.warning("请填写接口名称")];case 1:if(t=e.sent(),t&&!t.hasError)this.copyData={},this.categoryData={},this.showCopyModal=!1,this.doQuery();else if(t&&t.hasError&&t.message)return[2,this.$message.error(t.message)];return[2]}}))}))},e.prototype.onCopyCancel=function(){this.copyData={},this.categoryData={},this.showCopyModal=!1},e.prototype.onTreeData=function(t){this.treeData=t.$clone()},e.prototype.selectCategory=function(t){this.categoryData=t,this.copyData.categoryId=t.id},e.prototype.onAuthFlagChange=function(t,e,n){return h(this,void 0,void 0,(function(){var n,i;return f(this,(function(r){switch(r.label){case 0:return n=e.id,n?[4,this.service.changeAuthFlag(n,t?1:0)]:[2];case 1:return i=r.sent(),(null===i||void 0===i?void 0:i.hasError)||(e.authFlag=t?1:0),[2]}}))}))},e.prototype.onStatusChange=function(t,e,n){return h(this,void 0,void 0,(function(){var n,i;return f(this,(function(r){switch(r.label){case 0:return n=e.id,n?[4,this.service.changeStatus(n,t?1:0)]:[2];case 1:return i=r.sent(),(null===i||void 0===i?void 0:i.hasError)||(e.status=t?"PUBLISHED":"NOT_PUBLISHED"),[2]}}))}))},e.prototype.onSelectChange=function(t){this.selection=t,this.isContainsPublished=!!this.selection.find((function(t){return"PUBLISHED"===t.status}))},e.prototype.onOpenDoc=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return(null===t||void 0===t?void 0:t.id)?[4,this.service.getDoc(t.id)]:[3,2];case 1:e=n.sent(),(null===e||void 0===e?void 0:e.hasError)||(this.doc=e.result,this.docShow=!0),n.label=2;case 2:return[2]}}))}))},e.prototype.activated=function(){this.currentNode&&this.onQuery()},e.prototype.onRowClick=function(t,e){"virtual_root_directory"===this.currentNode.id&&(this.taskCategoryID=t.categoryId)},d([T(z)],e.prototype,"service",void 0),e=d([Object(y["component"])({name:"ProjectCombineManage",template:n("ccf6"),components:{"u-type-tree":it,"u-data-model-doc":st,"u-tree-selector":J}})],e),e}(y["View"])),lt=ct,ut=(n("2380"),n("ce8f")),pt=n("01a6"),dt=n("8380"),ht=n.n(dt),ft=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.option={showPrintMargin:!1,enableEmmet:!0,enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,showFoldWidgets:!1,wrap:!0,fontSize:16,fixedWidthGutter:!0},e}return u(e,t),e.prototype.editorInit=function(t){n("1cdf"),n("9842"),n("5217"),n("8214"),n("64d5");var e=this,i=n("92ad"),r=i.acequire("ace/ext/language_tools");r.addCompleter({getCompletions:function(t,n,i,r,o){e.setCompletions(t,n,i,r,o)}}),this.$emit("inited",t)},e.prototype.setCompletions=function(t,e,n,i,r){return 0===i.length?r(null,[]):r(null,this.diyKeywordList)},d([Object(pt["PropSync"])("model",{default:""})],e.prototype,"code",void 0),d([Object(ut["config"])({default:"groovy"})],e.prototype,"lang",void 0),d([Object(ut["config"])({type:Array,default:function(){return[]}})],e.prototype,"diyKeywordList",void 0),e=d([Object(ut["component"])({template:n("9915"),components:{editor:ht.a}})],e),e}(ut["Component"]),mt=ft,yt=(n("ca1f"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.editor={},e}return u(e,t),e.prototype.onEditorInited=function(t){this.editor=t,this.editor.setReadOnly(this.readOnly)},e.prototype.onReadOnlyChange=function(){this.editor.setReadOnly(this.readOnly)},d([Object(y["propSync"])("data")],e.prototype,"script",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"readOnly",void 0),d([Object(y["watch"])("readOnly")],e.prototype,"onReadOnlyChange",null),e=d([Object(y["component"])({template:n("e718"),components:{"u-editor":mt}})],e),e}(y["Component"])),vt=yt,gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.dataModel=function(t){return this._post("/unity/data-model/page",t)},e.prototype.getMavonDoc=function(t){return this._get("/unity/data-model/".concat(t,"/render"))},e.prototype.getDataModelTree=function(){return this._get("/unity/data-model/tree")},d([O("post",{title:"分页查询数据模型"})],e.prototype,"dataModel",null),d([O("get",{title:"获取文档"})],e.prototype,"getMavonDoc",null),d([O("query",{title:"查询分类树"})],e.prototype,"getDataModelTree",null),e}(F),bt=gt,wt=(n("e6c9"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.condition={code:"",name:""},e.columns=[{type:"selection",title:"全选",align:"center",width:60},{title:"名称",align:"left",key:"name",tooltip:!0},{title:"编码",align:"left",key:"code",tooltip:!0},{title:"数据源",align:"left",key:"sourceName",tooltip:!0},{title:"是否开启缓存",align:"left",slot:"enableCache",width:135},{title:"过期时间(s)",align:"left",key:"expireSeconds",width:135},{title:"描述",align:"left",key:"description",tooltip:!0},{title:"接口文档",align:"left",slot:"doc",width:110}],e.doc="",e.docShow=!1,e}return u(e,t),e.prototype.mounted=function(){},e.prototype.init=function(){},e.prototype.onSearch=function(){this.$emit("on-search",this.condition)},e.prototype.onEmpty=function(){this.condition.code="",this.condition.name="",this.$emit("on-search",this.condition)},e.prototype.onSelected=function(t){this.$emit("on-selection-change",t)},e.prototype.onPageIndexChange=function(t){this.$emit("on-page-index-change",t)},e.prototype.onPageSizeChange=function(t){this.$emit("on-page-size-change",t)},e.prototype.onOpenDoc=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return(null===t||void 0===t?void 0:t.typeId)?[4,this.service.getMavonDoc(t.typeId)]:[3,2];case 1:e=n.sent(),(null===e||void 0===e?void 0:e.hasError)||(this.doc=e.result,this.docShow=!0),n.label=2;case 2:return[2]}}))}))},e.prototype.onRowClick=function(t,e){this.$emit("on-row-click",t.categoryId)},d([T(bt)],e.prototype,"service",void 0),d([Object(y["config"])({default:function(){return[]}})],e.prototype,"data",void 0),d([Object(pt["PropSync"])("paging",{default:function(){return null}})],e.prototype,"page",void 0),e=d([Object(y["component"])({template:n("82af"),components:{"u-data-model-doc":st}})],e),e}(y["View"])),xt=wt,St=(n("a121"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.splitHorizontal=.25,e.splitVertical=.6,e.isLoading=!1,e.taskCategoryID="",e.treeData=[],e.tempData=[],e.currentNode={},e.initNode={},e.condition={categoryId:"",code:"",name:""},e.paging={totalCount:0,pageIndex:1,pageSize:10},e.tableData=[],e.collapse=!1,e.checkedData=[],e.lastCheckedData=[],e.columns=[{title:"编码",align:"left",key:"code",class:"STRING",ellipsis:!0,tooltip:!0},{title:"名称",align:"left",key:"name",class:"STRING",ellipsis:!0,tooltip:!0},{title:"描述",align:"left",key:"description",class:"STRING",ellipsis:!0,tooltip:!0},{title:"操作",key:"operates",slot:"operates",align:"left",width:80}],e}return u(e,t),Object.defineProperty(e.prototype,"checkedLength",{get:function(){return this.checkedData.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this.value},set:function(t){this.$emit("input",t)},enumerable:!1,configurable:!0}),e.prototype.onShowChange=function(t){if(!this.show)return this.tableData=[],void(this.checkedData=[]);var e=this.data.$clone();this.checkedData=e.map((function(t){return p(p({},t),{code:t.typeCode,description:t.typeDescription})})),this.init()},e.prototype.init=function(){this.getTreeData()},e.prototype.getTreeData=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.isLoading=!0,[4,this.service.getDataModelTree()];case 1:return t=e.sent(),this.isLoading=!1,t&&!t.hasError&&(this.tempData=V.handlerTreeData(t.result||[],"name"),this.tempData.length>0?(this.tempData.forEach((function(t){t.parentId||(t.parentId="virtual_root_directory")})),this.treeData=[p(p({},this.tempData[0]),{id:"virtual_root_directory",children:this.tempData,jobs:[],name:"全部",title:"全部",expand:!0,parentId:null,parentName:null})]):this.treeData=[{id:"virtual_root_directory",children:this.tempData,jobs:[],name:"全部",title:"全部",expand:!0,parentId:null,parentName:null}],this.treeData.length&&(this.initNode=this.treeData[0],this.onSelect(this.treeData[0]))),[2]}}))}))},e.prototype.onSelect=function(t,e){void 0===e&&(e=!0),e&&(this.taskCategoryID="",this.currentNode=t,this.condition.categoryId="virtual_root_directory"===this.currentNode.id?"":this.currentNode.id,this.getTableData())},e.prototype.onSearch=function(t){this.condition=t,this.condition.categoryId="virtual_root_directory"===this.currentNode.id?"":this.currentNode.id,this.paging.pageIndex=1,this.getTableData()},e.prototype.getTableData=function(){return h(this,void 0,void 0,(function(){var t,e,n=this;return f(this,(function(i){switch(i.label){case 0:return t=Object.create(null),t.condition=this.condition,t.paging=this.paging,[4,this.service.dataModel(t)];case 1:return e=i.sent(),e&&!e.hasError&&(this.tableData=(e.result||[]).map((function(t){return p(p({},t),{id:void 0,type:"MODEL",typeId:t.id,_checked:n.checkedData.findIndex((function(e){return e.typeId===t.id}))>-1})})),this.lastCheckedData=this.checkedData.filter((function(t){return-1===n.tableData.findIndex((function(e){return e.typeId===t.typeId}))})),this.paging.totalCount=e.totalCount),[2]}}))}))},e.prototype.onPageIndexChange=function(t){this.paging.pageIndex=t,this.getTableData()},e.prototype.onPageSizeChange=function(t){this.paging.pageSize=t,this.getTableData()},e.prototype.onSelectionChange=function(t){t.forEach((function(t){return t._checked=!0})),this.tableData.forEach((function(e){for(var n=0,i=t;n<i.length;n++){var r=i[n];if(e.typeId===r.typeId)return e._checked=!0}return e._checked=!1})),this.checkedData=m(m([],this.lastCheckedData,!0),t,!0)},e.prototype.onBatchDelete=function(){this.checkedData=[],this.lastCheckedData=[],this.tableData=this.tableData.map((function(t){return p(p({},t),{_checked:!1})}))},e.prototype.onDelete=function(t){this.checkedData=this.checkedData.filter((function(e){return e.typeId!==t.typeId})),this.lastCheckedData=this.lastCheckedData.filter((function(e){return e.typeId!==t.typeId})),this.tableData.forEach((function(e){e.typeId===t.typeId&&(e._checked=!1)}))},e.prototype.onClickCollapse=function(){this.collapse=!this.collapse,this.splitVertical=this.collapse?"".concat(.7*window.innerHeight-40*window.pageRatio-1,"px"):.6},e.prototype.onCancel=function(){this.show=!1},e.prototype.onSave=function(){var t=this,e=this.checkedData.filter((function(e){return-1===t.data.findIndex((function(t){return t.typeId===e.typeId}))})),n=this.data.filter((function(e){return-1===t.checkedData.findIndex((function(t){return t.typeId===e.typeId}))}));this.$emit("save","MODEL",e,n)},e.prototype.onRowClick=function(t){"virtual_root_directory"===this.currentNode.id&&(this.taskCategoryID=t)},d([T(bt)],e.prototype,"service",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"value",void 0),d([Object(y["config"])({type:Array,default:[]})],e.prototype,"data",void 0),d([Object(y["watch"])("show")],e.prototype,"onShowChange",null),e=d([Object(y["component"])({template:n("4935"),components:{"u-tree":H,"u-data-model-list":xt}})],e),e}(y["View"])),It=St,kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.getCategoryTree=function(t){return this._get("/unity/api/category/project/tree?type=".concat(t))},e.prototype.apiProject=function(t){return this._post("/unity/api/info/page",t)},e.prototype.getApiDetail=function(t){return this._get("/unity/api-market/".concat(t,"/detail"))},d([O("query",{title:"查询分类树"})],e.prototype,"getCategoryTree",null),d([O("post",{title:"分页查询数据模型"})],e.prototype,"apiProject",null),d([O("query",{title:"查询详情"})],e.prototype,"getApiDetail",null),e}(F),Ct=kt,jt=(n("7359"),n("2364")),Dt=n.n(jt),Tt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=[],e.paramColumns=[{slot:"selection",width:60,align:"center",title:" "},{title:"参数名",key:"name",align:"left"},{title:"参数值",key:"valueContent",align:"left"},{title:"备注",key:"text",align:"left"}],e.queryDataList=[],e.typeMap={Form:"FormData",X_www_form_urlencoded:"FormUrlEncoded"},e}return u(e,t),e.prototype.getExpand=function(t){return this.value.includes(t)},e.prototype.init=function(){var t,e;(null===(e=null===(t=this.model)||void 0===t?void 0:t.info)||void 0===e?void 0:e.id)&&(this.queryDataList=this.model.queryParams)},Object.defineProperty(e.prototype,"bodyDataList",{get:function(){var t=this.typeMap[this.bodyType];return this.model.formParams.filter((function(e){return e.type===t}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bodyType",{get:function(){var t,e;return(null===(e=null===(t=this.model)||void 0===t?void 0:t.info)||void 0===e?void 0:e.requestBodyType)||"Form"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFormData",{get:function(){return"Form"===this.bodyType||"X_www_form_urlencoded"===this.bodyType},enumerable:!1,configurable:!0}),d([Object(y["config"])({default:function(){return{}}})],e.prototype,"model",void 0),d([T(z)],e.prototype,"service",void 0),d([Object(y["watch"])("model",{immediate:!0})],e.prototype,"init",null),e=d([Object(y["component"])({template:n("3a71"),components:{"json-viewer":Dt.a}})],e),e}(y["Component"]),Ot=Tt,Et=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.columns=[{title:"参数名称",key:"name"},{title:"参数类型",slot:"type"},{title:"是否必须",slot:"required"},{title:"参数说明",key:"description"}],e}return u(e,t),Object.defineProperty(e.prototype,"dataList",{get:function(){return this.model.items},enumerable:!1,configurable:!0}),d([Object(y["config"])({default:function(){return{}}})],e.prototype,"model",void 0),e=d([Object(y["component"])({template:n("37f5"),components:{}})],e),e}(y["Component"]),Pt=Et,Lt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.columns=[{title:"参数名称",key:"name"},{title:"参数类型",slot:"type"},{title:"是否必须",slot:"required"},{title:"默认值",key:"defaultValue"},{title:"参数说明",key:"description"}],e}return u(e,t),Object.defineProperty(e.prototype,"dataList",{get:function(){return this.model.requestParams},enumerable:!1,configurable:!0}),d([Object(y["config"])({default:function(){return{}}})],e.prototype,"model",void 0),e=d([Object(y["component"])({template:n("a0f2"),components:{}})],e),e}(y["Component"]),Mt=Lt,At=(n("45e3"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),Object.defineProperty(e.prototype,"params",{get:function(){var t,e;return null===(e=null===(t=this.model)||void 0===t?void 0:t.type)||void 0===e?void 0:e.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"action",{get:function(){return this.model.action||{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detail",{get:function(){return this.model.detail||{}},enumerable:!1,configurable:!0}),e.prototype.onClose=function(){this.show=!1},d([Object(pt["PropSync"])("visiable",{default:!1})],e.prototype,"show",void 0),d([Object(y["config"])({default:function(){return{}}})],e.prototype,"model",void 0),e=d([Object(y["component"])({template:n("ab68"),components:{api:Ot,catalog:Pt,ddcat:Mt}})],e),e}(y["Component"])),Nt=At,qt=(n("bcb8"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.condition={name:"",url:""},e.columns=[{type:"selection",title:"全选",align:"center",width:60},{title:"名称",align:"left",key:"name",class:"STRING",ellipsis:!0,tooltip:!0,width:300},{title:"地址",align:"left",key:"url",class:"STRING",ellipsis:!0,tooltip:!0},{title:"查看详情",align:"left",slot:"detail",width:105}],e.detail="",e.detailShow=!1,e}return u(e,t),e.prototype.mounted=function(){},e.prototype.init=function(){},e.prototype.onSearch=function(){this.$emit("on-search",this.condition)},e.prototype.onEmpty=function(){this.condition.name="",this.condition.url="",this.$emit("on-search",this.condition)},e.prototype.onSelected=function(t){this.$emit("on-selection-change",t)},e.prototype.onPageIndexChange=function(t){this.$emit("on-page-index-change",t)},e.prototype.onPageSizeChange=function(t){this.$emit("on-page-size-change",t)},e.prototype.onDetail=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return(null===t||void 0===t?void 0:t.typeId)?[4,this.service.getApiDetail(t.typeId)]:[3,2];case 1:e=n.sent(),(null===e||void 0===e?void 0:e.hasError)||(this.detail=e.result||{},this.detailShow=!0),n.label=2;case 2:return[2]}}))}))},e.prototype.onRowClick=function(t,e){this.$emit("on-row-click",t.categoryId)},d([T(Ct)],e.prototype,"service",void 0),d([Object(y["config"])({default:function(){return[]}})],e.prototype,"data",void 0),d([Object(pt["PropSync"])("paging",{default:function(){return null}})],e.prototype,"page",void 0),e=d([Object(y["component"])({template:n("981a"),components:{"u-api-project-detail":Nt}})],e),e}(y["View"])),$t=qt,Rt=(n("eb57"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.splitHorizontal=.25,e.splitVertical=.6,e.isLoading=!1,e.taskCategoryID="",e.treeData=[],e.tempData=[],e.currentNode={},e.initNode={},e.condition={categoryId:"",code:"",name:""},e.paging={totalCount:0,pageIndex:1,pageSize:10},e.tableData=[],e.collapse=!1,e.checkedData=[],e.lastCheckedData=[],e.columns=[{title:"名称",align:"left",key:"name",class:"STRING",ellipsis:!0,tooltip:!0,width:300},{title:"地址",align:"left",key:"url",class:"STRING",ellipsis:!0,tooltip:!0},{title:"操作",key:"operates",slot:"operates",align:"left",width:80}],e}return u(e,t),Object.defineProperty(e.prototype,"checkedLength",{get:function(){return this.checkedData.length},enumerable:!1,configurable:!0}),e.prototype.onDataChange=function(t){this.checkedData=t},Object.defineProperty(e.prototype,"show",{get:function(){return this.value},set:function(t){this.$emit("input",t)},enumerable:!1,configurable:!0}),e.prototype.onShowChange=function(t){if(!this.show)return this.tableData=[],void(this.checkedData=[]);var e=this.data.$clone();this.checkedData=e.map((function(t){return p(p({},t),{url:t.typeCode})})),this.init()},e.prototype.init=function(){this.getTreeData()},e.prototype.getTreeData=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.isLoading=!0,[4,this.service.getCategoryTree("api")];case 1:return t=e.sent(),this.isLoading=!1,t&&!t.hasError&&(this.tempData=V.handlerTreeData(t.result||[],"name"),this.tempData.length>0?(this.tempData.forEach((function(t){t.parentId||(t.parentId="virtual_root_directory")})),this.treeData=[p(p({},this.tempData[0]),{id:"virtual_root_directory",children:this.tempData,jobs:[],name:"全部",title:"全部",expand:!0,parentId:null,parentName:null})]):this.treeData=[{id:"virtual_root_directory",children:this.tempData,jobs:[],name:"全部",title:"全部",expand:!0,parentId:null,parentName:null}],this.treeData.length&&(this.initNode=this.treeData[0],this.onSelect(this.treeData[0]))),[2]}}))}))},e.prototype.onSelect=function(t,e){void 0===e&&(e=!0),e&&(this.taskCategoryID="",this.currentNode=t,this.condition.categoryId="virtual_root_directory"===this.currentNode.id?"":this.currentNode.id,this.getTableData())},e.prototype.onSearch=function(t){this.condition=t,this.condition.categoryId="virtual_root_directory"===this.currentNode.id?"":this.currentNode.id,this.paging.pageIndex=1,this.getTableData()},e.prototype.getTableData=function(){return h(this,void 0,void 0,(function(){var t,e,n=this;return f(this,(function(i){switch(i.label){case 0:return t=Object.create(null),t.condition=this.condition,t.paging=this.paging,[4,this.service.apiProject(t)];case 1:return e=i.sent(),e&&!e.hasError&&(this.tableData=(e.result||[]).map((function(t){return p(p({},t),{id:void 0,type:"API",typeId:t.id,_checked:n.checkedData.findIndex((function(e){return e.typeId===t.id}))>-1})})),this.lastCheckedData=this.checkedData.filter((function(t){return-1===n.tableData.findIndex((function(e){return e.typeId===t.typeId}))})),this.paging.totalCount=e.totalCount),[2]}}))}))},e.prototype.onPageIndexChange=function(t){this.paging.pageIndex=t,this.getTableData()},e.prototype.onPageSizeChange=function(t){this.paging.pageSize=t,this.getTableData()},e.prototype.onSelectionChange=function(t){t.forEach((function(t){return t._checked=!0})),this.tableData.forEach((function(e){for(var n=0,i=t;n<i.length;n++){var r=i[n];if(e.typeId===r.typeId)return e._checked=!0}return e._checked=!1})),this.checkedData=m(m([],this.lastCheckedData,!0),t,!0)},e.prototype.onBatchDelete=function(){this.checkedData=[],this.lastCheckedData=[],this.tableData=this.tableData.map((function(t){return p(p({},t),{_checked:!1})}))},e.prototype.onDelete=function(t){this.checkedData=this.checkedData.filter((function(e){return e.typeId!==t.typeId})),this.lastCheckedData=this.lastCheckedData.filter((function(e){return e.typeId!==t.typeId})),this.tableData.forEach((function(e){e.typeId===t.typeId&&(e._checked=!1)}))},e.prototype.onClickCollapse=function(){this.collapse=!this.collapse,this.splitVertical=this.collapse?"".concat(.7*window.innerHeight-40*window.pageRatio-1,"px"):.6},e.prototype.onCancel=function(){this.show=!1},e.prototype.onSave=function(){var t=this,e=this.checkedData.filter((function(e){return-1===t.data.findIndex((function(t){return t.typeId===e.typeId}))})),n=this.data.filter((function(e){return-1===t.checkedData.findIndex((function(t){return t.typeId===e.typeId}))}));this.$emit("save","API",e,n)},e.prototype.onRowClick=function(t){"virtual_root_directory"===this.currentNode.id&&(this.taskCategoryID=t)},d([T(Ct)],e.prototype,"service",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"value",void 0),d([Object(y["config"])({type:Array,default:[]})],e.prototype,"data",void 0),d([Object(y["watch"])("data")],e.prototype,"onDataChange",null),d([Object(y["watch"])("show")],e.prototype,"onShowChange",null),e=d([Object(y["component"])({template:n("0941"),components:{"u-tree":H,"u-api-project-list":$t}})],e),e}(y["View"])),_t=Rt,Ft=(n("9e10"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.columns=[{type:"selection",align:"center",width:60},{title:"参数名",align:"left",slot:"name",class:"STRING",ellipsis:!0,tooltip:!0},{title:"类型",align:"left",slot:"type",width:130,class:"STRING",ellipsis:!0,tooltip:!0},{title:"是否必传",align:"left",slot:"required",width:120},{title:"默认值",align:"left",slot:"defaultValue",class:"STRING",ellipsis:!0,tooltip:!0},{title:"描述",align:"left",slot:"description",class:"STRING",ellipsis:!0,tooltip:!0},{title:"操作",align:"left",slot:"actions"}],e.typeList=[],e.selections=[],e.booleanObj={false:0,true:1},e}return u(e,t),e.prototype.mounted=function(){this.getTypeList()},e.prototype.onEdit=function(t){this.$set(t,"isEdit",!0)},e.prototype.onCancel=function(t){this.data.splice(t,1)},e.prototype.onDelete=function(t,e){this.data.splice(e,1)},e.prototype.onBatchDelete=function(){var t=this;this.selections.length&&this.$modal.confirm({title:"将批量删除所选内容,是否继续?",onOk:function(){t.selections.forEach((function(e){var n=t.data.findIndex((function(t){return t.id===e.id}));n>-1&&t.data.splice(n,1)})),t.selections=[]}})},e.prototype.onAdd=function(){this.data.push({isEdit:!0,id:Math.random().toString(36).slice(-8).toString(),required:!1,type:"STRING"})},e.prototype.onConfirm=function(t,e){""===t.name&&this.$message.warning("请输入参数名"),""===t.type&&this.$message.warning("请选择类型"),""!==t.name&&""!==t.type&&(t.isEdit=!1,this.data.splice(e,1,t))},e.prototype.getTypeList=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getItemListByType("param-type")];case 1:return t=e.sent(),this.typeList=t.result||[],[2]}}))}))},e.prototype.getTypeText=function(t){return(this.typeList.find((function(e){return e.name===t}))||{text:""}).text},e.prototype.onChangeRequired=function(t,e){e.required=!!t},e.prototype.onSelectionChange=function(t){this.selections=t},d([Object(y["config"])({default:function(){return[]}})],e.prototype,"data",void 0),d([Object(y["config"])({default:!0})],e.prototype,"isEdit",void 0),d([T(z)],e.prototype,"service",void 0),e=d([Object(y["component"])({template:n("d8b4")})],e),e}(y["View"])),Bt=Ft,zt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.columns=[{type:"selection",align:"center",width:60},{title:"参数名",align:"left",slot:"name",class:"STRING",ellipsis:!0,tooltip:!0},{title:"类型",align:"left",slot:"type",class:"STRING",ellipsis:!0,tooltip:!0},{title:"操作",align:"left",slot:"actions"}],e}return u(e,t),e}(Bt),Vt=zt,Ut=(n("cfde"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.context="",e.error=!1,e.result="",e.output="",e}return u(e,t),e.prototype.onShowChange=function(){this.show||(this.context="",this.error=!1,this.result="",this.output=""),this.context=this.defalutContext},e.prototype.onDataChange=function(){var t,e,n,i;(null===(t=this.data)||void 0===t?void 0:t.error)?(this.error=!0,this.result=this.getJsonString(null===(e=this.data)||void 0===e?void 0:e.error)):this.result=this.getJsonString(null===(n=this.data)||void 0===n?void 0:n.result),this.output=this.getJsonString(null===(i=this.data)||void 0===i?void 0:i.output)},e.prototype.getJsonString=function(t){var e="";try{e="object"===typeof t?JSON.stringify(t,null,4):t.toString()}catch(n){}return e},Object.defineProperty(e.prototype,"defalutContext",{get:function(){var t={};return this.params.forEach((function(e){t[e.name]=""})),this.getJsonString(t)},enumerable:!1,configurable:!0}),e.prototype.onProcess=function(){try{var t=JSON.parse(this.context);this.$emit("on-run",t)}catch(e){this.$message.error("请输入正确的 Json 脚本")}},e.prototype.onReset=function(){this.context=this.defalutContext},e.prototype.onOk=function(){this.show=!1},e.prototype.onCancel=function(){this.show=!1},d([Object(y["config"])({default:function(){return[]}})],e.prototype,"params",void 0),d([Object(y["config"])({default:{}})],e.prototype,"data",void 0),d([Object(pt["PropSync"])("visible",{default:!1})],e.prototype,"show",void 0),d([Object(y["watch"])("show")],e.prototype,"onShowChange",null),d([Object(y["watch"])("data")],e.prototype,"onDataChange",null),e=d([Object(y["component"])({template:n("086a"),components:{"u-base-editor":vt}})],e),e}(y["View"])),Ht=Ut,Gt=(n("2e28"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.model={authFlag:1,type:"SCRIPT",status:"NOT_PUBLISHED",relations:[],reqParams:[],respParams:[]},e.title="合并模型",e.id="",e.categoryId="",e.saveing=!1,e.isEdit=!1,e.isAdd=!1,e.rules={name:[{required:!0,message:"请输入名称",trigger:"blur"}],code:[{required:!0,message:"请输入编码",trigger:"blur"}]},e.relationColumns=[{title:"类型",align:"left",key:"type",slot:"type",width:280},{title:"名称",align:"left",key:"name",class:"STRING",ellipsis:!0,tooltip:!0},{title:"编码或地址",align:"left",key:"typeCode",class:"STRING",ellipsis:!0,tooltip:!0},{title:"操作",key:"operates",slot:"operates",align:"left",width:100}],e.testShow=!1,e.testResult={},e.dataModelShow=!1,e.apiProjectShow=!1,e.dataModelDoc="",e.dataModelDocShow=!1,e.apiProjectDetail="",e.apiProjectDetailShow=!1,e.doc="",e.docShow=!1,e}return u(e,t),Object.defineProperty(e.prototype,"dataModelRelations",{get:function(){var t,e;return null!==(e=null===(t=this.model.relations)||void 0===t?void 0:t.filter((function(t){return"MODEL"===t.type})))&&void 0!==e?e:[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"apiProjectRelations",{get:function(){var t,e;return null!==(e=null===(t=this.model.relations)||void 0===t?void 0:t.filter((function(t){return"API"===t.type})))&&void 0!==e?e:[]},enumerable:!1,configurable:!0}),e.prototype.onBack=function(){this.$router.push({name:"combine"}),this.$store.commit("tag/closeCurrent",this.$route)},e.prototype.mounted=function(){this.init()},e.prototype.activated=function(){this.init()},e.prototype.init=function(){var t=this.$route.query||{},e=t.isEdit,n=t.id,i=void 0===n?"":n,r=t.categoryId,o=void 0===r?"":r;this.isEdit=1===Number(e),this.isAdd=this.isEdit&&!i,this.categoryId=o,this.title=this.isEdit?this.isAdd?"新增合并模型":"编辑合并模型":"合并模型详情",i!==this.id&&(this.id=i,this.getById())},e.prototype.getById=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.id?[4,this.service.getById(this.id)]:[3,2];case 1:t=e.sent(),(null===t||void 0===t?void 0:t.hasError)||(this.model=t.result,this.model.authFlag||(this.model.authFlag=0)),e.label=2;case 2:return[2,Promise.resolve()]}}))}))},e.prototype.onValidate=function(){var t=this;return new Promise((function(e,n){for(var i,r,o,a,s=new Set,c=0;c<(null===(i=t.model.reqParams)||void 0===i?void 0:i.length);c++){var l=t.model.reqParams[c];if(!(null===(r=l.name)||void 0===r?void 0:r.length))return t.$message.error("请求参数名称不能为空!"),n();if(s.has(l.name))return t.$message.error("请求参数有重名!"),n();s.add(l.name)}if(!(null===(o=t.model.relations)||void 0===o?void 0:o.length))return t.$message.error("合并列表不能为空!"),n();if(!(null===(a=t.model.content)||void 0===a?void 0:a.length))return t.$message.error("执行脚本不能为空!"),n();var u=t.$refs.form;null===u||void 0===u||u.validate((function(t){return e(t)}))}))},e.prototype.onSave=function(t){var e=this;return new Promise((function(n,i){return h(e,void 0,void 0,(function(){var e;return f(this,(function(r){switch(r.label){case 0:if(this.saveing)return[2,i()];this.saveing=!0,r.label=1;case 1:return r.trys.push([1,7,8,9]),[4,this.onValidate()];case 2:return r.sent(),this.$set(this.model,"categoryId",this.categoryId),[4,this.service.save(this.model)];case 3:return e=r.sent(),(null===e||void 0===e?void 0:e.hasError)?[3,6]:e.result?(this.id=e.result,[4,this.getById()]):[3,5];case 4:r.sent(),r.label=5;case 5:t&&(this.$message.success("保存数据成功!"),this.onBack()),r.label=6;case 6:return[2,n(!0)];case 7:return r.sent(),[3,9];case 8:return this.saveing=!1,[7];case 9:return[2]}}))}))}))},e.prototype.onAddDataModel=function(){this.dataModelShow=!0},e.prototype.onAddApiProject=function(){this.apiProjectShow=!0},e.prototype.onRelationsSave=function(t,e,n){return h(this,void 0,void 0,(function(){var i,r,o,a,s;return f(this,(function(c){switch(c.label){case 0:return"MODEL"===t?this.dataModelShow=!1:"API"===t&&(this.apiProjectShow=!1),i=n.map((function(t){return t.typeId})),i.length>0&&(this.model.relations=this.model.relations.filter((function(t){return!i.includes(t.typeId)})),this.model.reqParams=this.model.reqParams.filter((function(t){return!i.includes(t.relationTypeId)}))),r=e.map((function(t){return t.typeId})),r.length>0?(o=[],a=[],"MODEL"!==t?[3,2]:(o=e.map((function(e){return p(p({},e),{type:t,typeCode:e.code})})),[4,this.service.dataModelParams(r)])):[3,5];case 1:return s=c.sent(),a=((null===s||void 0===s?void 0:s.result)||[]).map((function(e){return p(p({},e),{relationType:t,relationTypeId:e.modelId})})),[3,4];case 2:return"API"!==t?[3,4]:(o=e.map((function(e){return p(p({},e),{type:t,typeCode:e.url})})),[4,this.service.apiProjectParams(r)]);case 3:s=c.sent(),a=((null===s||void 0===s?void 0:s.result)||[]).map((function(e){return p(p({},e),{relationType:t,relationTypeId:e.apiId,required:!1,type:"STRING"})})),c.label=4;case 4:this.model.relations=m(m([],this.model.relations,!0),o,!0),this.model.reqParams=m(m([],this.model.reqParams,!0),a,!0),c.label=5;case 5:return[2]}}))}))},e.prototype.onRelationDelete=function(t){this.model.relations=this.model.relations.filter((function(e){return e.typeId!==t.typeId})),this.model.reqParams=this.model.reqParams.filter((function(e){return e.relationTypeId!==t.typeId}))},e.prototype.onDetail=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return"MODEL"!==(null===t||void 0===t?void 0:t.type)?[3,3]:(null===t||void 0===t?void 0:t.typeId)?[4,this.dataModelService.getMavonDoc(t.typeId)]:[3,2];case 1:e=n.sent(),(null===e||void 0===e?void 0:e.hasError)||(this.dataModelDoc=e.result,this.dataModelDocShow=!0),n.label=2;case 2:return[3,5];case 3:return"API"!==(null===t||void 0===t?void 0:t.type)?[3,5]:(null===t||void 0===t?void 0:t.typeId)?[4,this.apiProjectService.getApiDetail(t.typeId)]:[3,5];case 4:e=n.sent(),(null===e||void 0===e?void 0:e.hasError)||(this.apiProjectDetail=e.result||{},this.apiProjectDetailShow=!0),n.label=5;case 5:return[2]}}))}))},e.prototype.onOpenTest=function(){return h(this,void 0,void 0,(function(){return f(this,(function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),this.isEdit?[4,this.onSave(!1)]:[3,2];case 1:t.sent(),t.label=2;case 2:return this.testShow=!0,[3,4];case 3:return t.sent(),[3,4];case 4:return[2]}}))}))},e.prototype.onTestRun=function(t){var e,n;return h(this,void 0,void 0,(function(){var i;return f(this,(function(r){switch(r.label){case 0:return[4,this.service.testRun(p(p({},this.model),{context:t}))];case 1:return i=r.sent(),(null===i||void 0===i?void 0:i.hasError)||(this.$message.success("运行成功"),this.testResult=null!==(e=i.result)&&void 0!==e?e:{},this.model.respParams=null!==(n=i.result.respParams)&&void 0!==n?n:[]),[2]}}))}))},e.prototype.onOpenDoc=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.geHelpDoc()];case 1:return t=e.sent(),t?(this.doc=t,this.docShow=!0):this.$message.error("获取帮助文档失败"),[2]}}))}))},d([T(z)],e.prototype,"service",void 0),d([T(bt)],e.prototype,"dataModelService",void 0),d([T(Ct)],e.prototype,"apiProjectService",void 0),e=d([Object(y["component"])({name:"ProjectCombineModel",template:n("d8e7"),components:{"u-base-editor":vt,"u-data-model-modal":It,"u-data-model-doc-modal":st,"u-api-project-modal":_t,"u-api-project-detail-modal":Nt,"u-request-parameter-list":Bt,"u-response-parameter-list":Vt,"u-test-run-modal":Ht,"u-data-model-doc":st}})],e),e}(y["View"])),Kt=Gt,Qt=(n("1aea"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),d([Object(pt["PropSync"])("visiable",{default:!1})],e.prototype,"value",void 0),d([Object(y["config"])({default:function(){return new Object}})],e.prototype,"data",void 0),e=d([Object(y["component"])({template:n("6255")})],e),e}(y["Component"])),Jt=Qt,Wt=(n("e9fa"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=!1,e}return u(e,t),e.prototype.onOpenConfirm=function(){this.value=!0},e.prototype.onCancel=function(){this.value=!1,this.$emit("on-cancel")},e.prototype.onOk=function(){this.value=!1,this.$emit("on-ok")},d([Object(y["config"])({default:"系统提示"})],e.prototype,"title",void 0),d([Object(y["config"])({default:""})],e.prototype,"message",void 0),e=d([Object(y["component"])({template:n("bc13")})],e),e}(y["Component"])),Yt=Wt,Xt=(n("270f"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.onDelete=function(){this.$emit("on-delete",this.data)},e.prototype.onDetail=function(){this.$emit("on-detail",this.data)},e.prototype.onEdit=function(){this.$emit("on-edit",this.data)},e.prototype.onClick=function(t){this.$emit("on-"+t,this.data)},d([Object(y["config"])({default:function(){return new Object}})],e.prototype,"data",void 0),e=d([Object(y["component"])({template:n("ef27"),components:{"u-confirm":Yt}})],e),e}(y["Component"])),Zt=Xt,te=(n("17fe"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.getProjectList=function(t){return void 0===t&&(t={}),this._post("/unity/api/project/list",t)},e.prototype.saveProject=function(t){return t.id?this._put("/unity/api/project",t):this._post("/unity/api/project",t)},e.prototype.deleteProject=function(t){return this._delete("/unity/api/project/".concat(t))},e.prototype.exportProject=function(t){return L.a.post(this.url("/unity/api/info/export"),t,{headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/json; charset=UTF-8","Access-Control-Allow-Origin":"*"},responseType:"arraybuffer"}).then((function(t){var e=new Blob([t.data],{type:"application/json"}),n=URL.createObjectURL(e),i=document.createElement("a");i.href=n,i.download=decodeURI("data-model.json"),i.style.display="none",document.body.appendChild(i),i.target="_blank",i.click(),i.parentNode.removeChild(i),window.URL.revokeObjectURL(n)}))},d([O("query",{title:"获取所有项目"})],e.prototype,"getProjectList",null),d([O("save",{title:"保存项目",showTip:!0,showErrorMsg:!0})],e.prototype,"saveProject",null),d([O("save",{title:"删除项目",showTip:!0,showErrorMsg:!0})],e.prototype,"deleteProject",null),e}(F)),ee=te,ne=n("a2c5"),ie=n.n(ne);function re(t){return t instanceof Element?"element":Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function oe(t){return t.replace(/([^:]|^)\/{2,}/g,"$1/")}n("2597"),n("e459"),n("eab2"),n("6bf0"),n("46df"),n("e40c"),n("39d5");var ae=function(){function t(){}return t.prototype.random=function(){return.001*window.crypto.getRandomValues(new Uint8Array(1))[0]},t.prototype.randomStr=function(t){var e=Math.ceil(t/2),n=new Uint8Array(e);window.crypto.getRandomValues(n);var i=Array.from(n).map((function(t){return t.toString(16).padStart(2,"0")})),r=i.join("").substr(0,t);return r},t.prototype.randomNumberStr=function(t){var e=Math.ceil(t/2),n=new Uint8Array(e);window.crypto.getRandomValues(n);for(var i="",r=0;r<e;r++)i+=n[r].toString().padStart(2,"0");return i.slice(0,t)},t}(),se=new ae,ce=se;function le(t){return null===t||void 0===t}function ue(t){for(var e,n,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];if(!i.length)return t;var o=i.shift();if(pe(t)&&pe(o))for(var a in o)pe(o[a])?(t[a]||Object.assign(t,(e={},e[a]={},e)),ue(t[a],o[a])):Object.assign(t,(n={},n[a]=o[a],n));return ue.apply(void 0,m([t],i,!1))}function pe(t){return t&&"object"===typeof t&&!Array.isArray(t)}function de(t){var e=new URLSearchParams;for(var n in t)t.hasOwnProperty(n)&&e.append(n,t[n]);return e.toString()}function he(t){var e=new URLSearchParams(t),n={};return e.forEach((function(t,e){n[e]=t})),n}var fe,me,ye,ve,ge,be=function(){function t(t){this._appIdCode=t,this.noncePrefix=this.generateRandomString()}return Object.defineProperty(t.prototype,"appIdCode",{get:function(){return this._appIdCode},enumerable:!1,configurable:!0}),t.prototype.generateRandomString=function(){return ce.randomStr(8)},t.prototype.generateSignatureOption=function(){return{nonce:"".concat(this.noncePrefix,"_").concat(this.generateRandomString()),timestamp:Date.now().toString().substring(0,10)}},t.prototype.stringToUTF8ByteSize=function(t){var e=(new TextEncoder).encode(t);return e.length},t.prototype.isStringOverKB=function(t,e){var n=this.stringToUTF8ByteSize(t);return n>1024*e},t.prototype.removeNilValue=function(t){if("object"===re(t))for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var n=t[e],i=re(n);"object"===i?this.removeNilValue(n):"null"!==i&&"undefined"!==i&&"function"!==i||delete t[e]}},t.prototype.formatEncodeValue=function(t){var e=re(t),n="null"===e||"undefined"===e||"function"===e,i=n?"":t;return encodeURIComponent(i).replace(/%2B/g,"+").replace(/%20/g,"+").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27").replace(/!/g,"%21").replace(/~/g,"%7E")},t.prototype.formatEncodeParam=function(t,e,n){var i=this,r=re(n);if("object"===r){var o=Object.keys(n).sort();0===o.length?t.push("".concat(e,"={}")):o.forEach((function(r){i.formatEncodeParam(t,""===e?"".concat(r):"".concat(e,"[").concat(r,"]"),n[r])}))}else"array"===r?0===n.length?t.push("".concat(e,"=[]")):n.forEach((function(n){i.formatEncodeParam(t,"".concat(e,"[]"),n)})):t.push("".concat(e,"=").concat(this.formatEncodeValue(n)))},t.prototype.sortParamByKey=function(t){void 0===t&&(t={});var e=[];return this.formatEncodeParam(e,"",t),e.join("&")},t.prototype.cryptoHash=function(t){return"Base64"===window.commonSetting.signatureEncodeType?ie.a.HmacSHA1(t,this._appIdCode.code).toString(ie.a.enc.Base64):ie.a.HmacSHA1(t,this._appIdCode.code).toString(ie.a.enc.Hex).toUpperCase()},t.prototype.urlSearchParams=function(t){var e;return t&&t.indexOf("?")>-1?he(null!==(e=t.split("?").pop())&&void 0!==e?e:""):{}},t.prototype.signatureHref=function(t){try{var e=new URL(t,window.location.origin).pathname,n=this.urlSearchParams(t),i=this.generateSignatureOption();ue(n,i);var r=this.sortParamByKey(n),o=oe("/".concat(e)),a="".concat(o,"?").concat(r),s=this.cryptoHash(a);t="".concat(a,"&signature=").concat(s)}catch(c){console.error("签名失败,请使用有效的链接",t)}return t},t.prototype.signatureConfig=function(t){var e,n,i,r,a;try{var s=null===(e=t.method)||void 0===e?void 0:e.toUpperCase(),c="GET"===s,l=Object(o["toRaw"])(t.data),u=null!==l&&"object"===typeof l,p=(null===(i=null===(n=t.headers)||void 0===n?void 0:n["Content-Type"])||void 0===i?void 0:i.toString())||"",d=p.includes("multipart/form-data"),h=p.includes("application/json");c||p||!u||(h=!0),ue(t,{headers:{"App-Id":this._appIdCode.id}});var f={},m=this.urlSearchParams(t.url);if(ue(f,m),!le(t.params)){var y=Object(o["toRaw"])(t.params);this.removeNilValue(y),t.params=y,ue(f,he(de(y)))}!le(l)&&u&&(d||h||ue(f,l));var v=this.generateSignatureOption();ue(f,v);var g=this.sortParamByKey(f);if(h){var b=JSON.stringify(l),w=this.isStringOverKB(b,128);w||(g+=u?this.formatEncodeValue(b):this.formatEncodeValue(l))}var x="";x=(null===(r=t.url)||void 0===r?void 0:r.startsWith("http"))?t.url:(null===(a=t.url)||void 0===a?void 0:a.startsWith("/"))?"".concat(t.baseURL||"").concat(t.url||""):"".concat(t.baseURL||"","/").concat(t.url||"");var S=new URL(x,window.location.origin).pathname,I=oe("/".concat(S)),k="".concat(I,"?").concat(g);v.signature=this.cryptoHash(k),t.params=ue({},t.params,v)}catch(C){console.error("签名失败",C)}},t}(),we={id:"dex",code:"bb0a92a340ae4f5d936a9e6b010cb127"},xe=new be(we),Se=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="card",e.condition={},e.dataList=[],e.showAddModal=!1,e.loading=!1,e.columns=[{title:"项目名称",key:"name",align:"left",tooltip:!0},{title:"项目描述",key:"description",align:"left",tooltip:!0},{title:"创建时间",key:"createTime",align:"left",tooltip:!0},{title:"操作",slot:"action",align:"left"}],e.current={},e}return u(e,t),Object.defineProperty(e.prototype,"uploadAction",{get:function(){return xe.signatureHref(A.baseUrl+"/unity/api/info/import")},enumerable:!1,configurable:!0}),e.prototype.onCheckType=function(t){this.type=t},e.prototype.onAdd=function(){this.current={},this.showAddModal=!0},e.prototype.onDelete=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.deleteProject(t.id)];case 1:return e=n.sent(),e&&!e.hasError&&this.onQuery(),[2]}}))}))},e.prototype.onDetail=function(t){this.$router.push({name:"project-detail",params:{id:t.id},query:{name:t.name}})},e.prototype.onEdit=function(t){this.current=t,this.showAddModal=!0},e.prototype.onExport=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return e=Object.create(null),e={projectId:t.id},this.loading=!0,[4,this.service.exportProject(e)];case 1:return n.sent(),this.loading=!1,[2]}}))}))},e.prototype.onComment=function(){this.$router.push({name:"project-comment"})},e.prototype.onQuery=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.loading=!0,[4,this.service.getProjectList(this.condition)];case 1:return t=e.sent(),this.dataList=(null===t||void 0===t?void 0:t.result)||[],this.loading=!1,[2]}}))}))},e.prototype.mounted=function(){this.onQuery()},e.prototype.onSave=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.saveProject(this.current)];case 1:return t=e.sent(),t&&!t.hasError&&(this.showAddModal=!1,this.onQuery()),[2]}}))}))},Object.defineProperty(e.prototype,"headers",{get:function(){var t=S().headers;return p(p({},t),{"App-Id":xe.appIdCode.id})},enumerable:!1,configurable:!0}),e.prototype.onSuccess=function(t,e){if(t&&!t.hasError)return this.$Message.success("导入成功"),this.onQuery(),void(this.loading=!1);this.loading=!1,this.$Message.error(t.message||"导入出错,请稍后再试")},e.prototype.onBeforeUpload=function(t){return this.loading=!0,-1!==t.name.indexOf(" ")?(this.$Message.warning("文件名不能包含空格"),this.loading=!1,!1):-1===t.name.indexOf("%")||(this.$Message.warning("文件名不能包含符号%"),this.loading=!1,!1)},e.prototype.onFormatError=function(t){this.loading=!1,this.$Message.warning("文件".concat(t.name,"格式错误"))},d([T(ee)],e.prototype,"service",void 0),e=d([Object(y["component"])({name:"ApiProjectList",template:n("cfb3"),components:{"u-card":Zt,"u-add-modal":Jt,"u-confirm":Yt}})],e),e}(y["View"]),Ie=Se,ke=(n("65e5"),n("7af4")),Ce=n.n(ke),je=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.getApiTree=function(t){return this._get("/unity/api/info/tree/".concat(t))},e.prototype.deleteApi=function(t){return this._delete("/unity/api/info/".concat(t))},e.prototype.deleteCategory=function(t){return this._delete("/unity/api/category/".concat(t))},e.prototype.saveCategory=function(t){return t.id?this._put("/unity/api/category",t):this._post("/unity/api/category",t)},e.prototype.checkCategory=function(t){return this._post("/unity/api/category/update/check",t)},e.prototype.updateMoveCategory=function(t,e){return this._post("/unity/api/category/updateWithEnv?copyEnvFlag=".concat(e),t)},e.prototype.saveApi=function(t){return t.id?this._put("/unity/api/info",t):this._post("/unity/api/info",t)},e.prototype.checkApi=function(t){return this._post("/unity/api/info/update/check",t)},e.prototype.updateMoveApi=function(t,e){return this._post("/unity/api/info/updateWithEnv?copyEnvFlag=".concat(e),t)},e.prototype.copyApi=function(t,e,n,i){return this._post("/unity/api/info/copy?id=".concat(t,"&name=").concat(e,"&projectId=").concat(n,"&categoryId=").concat(i))},e.prototype.apiInfo=function(t){return this._get("/unity/api/info/".concat(t,"/whole"))},e.prototype.run=function(t,e){return this._post("/unity/api/run/".concat(t,"/web"),e)},e.prototype.runWithFile=function(t,e){return this._post("/unity/api/run/".concat(t,"/exec"),e)},e.prototype.saveApiInfo=function(t){return this._post("/unity/api/info/save/whole",t)},e.prototype.parseResponse2Fields=function(t,e,n){return void 0===e&&(e=""),void 0===n&&(n=!0),this._post("/unity/api/field-mapping/parse/model",{originalJson:t,convertRoot:e,collapse:n})},e.prototype.preScript=function(){return this._get("/api-help/preScript.json")},e.prototype.postScript=function(){return this._get("/api-help/postScript.json")},e.prototype.projectInfo=function(t){return this._get("/unity/api/project/".concat(t))},e.prototype.getSecurityList=function(t){return this._post("/unity/api/authentication/list",t)},e.prototype.deleteSecurityItem=function(t){return this._delete("/unity/api/authentication/".concat(t))},e.prototype.addSecurityItem=function(t){return this._post("/unity/api/authentication",t)},e.prototype.updateSecurityItem=function(t){return this._put("/unity/api/authentication",t)},e.prototype.getVariableList=function(t){return this._post("/unity/api/environment-param/list",t)},e.prototype.saveVariable=function(t){return(null===t||void 0===t?void 0:t.id)?this._put("/unity/api/environment-param",t):this._post("/unity/api/environment-param",t)},e.prototype.deleteVariable=function(t){return this._delete("/unity/api/environment-param/".concat(t))},e.prototype.onBatchEnv=function(t){return this._post("/unity/api/info/env",t)},e.prototype.onBatchAuth=function(t){return this._post("/unity/api/info/auth",t)},e.prototype.getScriptDoc1=function(){return this._get("/api-help/apiParam.md")},e.prototype.getScriptDoc=function(){return this._get("/api-help/authScript.md")},e.prototype.onImportAvr=function(t){return this._post("/unity/api/info/import-model",t)},e.prototype.onValidateImport=function(t){return this._post("/unity/api/info/check-name",t)},e.prototype.getEgovaApiTree=function(){return this._get("/unity/wizdom-api/tree")},e.prototype.getProjectList=function(t){return void 0===t&&(t={}),this._post("/unity/api/project/list",t)},e.prototype.getApiRequestParams=function(t){return this._get("/unity/api/request-param/apiId/".concat(t))},e.prototype.getCategoryList=function(){return this._get("/unity/proxy/tree")},e.prototype.getProxyNameList=function(t){return this._get("/unity/proxy/getbyapi?apiId=".concat(t))},e.prototype.save=function(t){return t.id?this._put("/unity/proxy",t):this._post("/unity/proxy",t)},d([O("query",{title:"获取接口树"})],e.prototype,"getApiTree",null),d([O("save",{title:"删除接口",showErrorMsg:!0,showTip:!0})],e.prototype,"deleteApi",null),d([O("save",{title:"删除分组",showTip:!0,showErrorMsg:!0})],e.prototype,"deleteCategory",null),d([O("save",{title:"保存分组",showTip:!0,showErrorMsg:!0})],e.prototype,"saveCategory",null),d([O("save",{title:"保存分组",showTip:!1,showErrorMsg:!0})],e.prototype,"checkCategory",null),d([O("save",{title:"保存分组",showTip:!0,showErrorMsg:!0})],e.prototype,"updateMoveCategory",null),d([O("save",{title:"保存接口",showErrorMsg:!0,showTip:!0})],e.prototype,"saveApi",null),d([O("save",{title:"保存接口",showErrorMsg:!0,showTip:!1})],e.prototype,"checkApi",null),d([O("save",{title:"保存接口",showTip:!0,showErrorMsg:!0})],e.prototype,"updateMoveApi",null),d([O("save",{title:"复制接口",showErrorMsg:!1,showTip:!1})],e.prototype,"copyApi",null),d([O("query",{title:"接口详情"})],e.prototype,"apiInfo",null),d([O("query",{title:"在线测试"})],e.prototype,"run",null),d([O("query",{title:"在线测试"})],e.prototype,"runWithFile",null),d([O("save",{title:"保存接口详情",showErrorMsg:!0,showTip:!0})],e.prototype,"saveApiInfo",null),d([O("query",{title:"提取json的节点数据"})],e.prototype,"parseResponse2Fields",null),d([O("query",{title:"前置脚本"})],e.prototype,"preScript",null),d([O("query",{title:"后置脚本"})],e.prototype,"postScript",null),d([O("query",{title:"项目详情"})],e.prototype,"projectInfo",null),d([O("query",{title:"授权认证列表查询"})],e.prototype,"getSecurityList",null),d([O("save",{title:"删除授权认证",showTip:!0,showErrorMsg:!0})],e.prototype,"deleteSecurityItem",null),d([O("save",{title:"新增授权认证",showTip:!0,showErrorMsg:!0})],e.prototype,"addSecurityItem",null),d([O("save",{title:"更新授权认证",showTip:!0,showErrorMsg:!0})],e.prototype,"updateSecurityItem",null),d([O("query",{title:"环境变量详情",showErrorMsg:!0})],e.prototype,"getVariableList",null),d([O("save",{title:"保存环境变量",showErrorMsg:!0})],e.prototype,"saveVariable",null),d([O("query",{title:"删除环境变量",showErrorMsg:!0})],e.prototype,"deleteVariable",null),d([O("query",{title:"批量修改环境变量",showErrorMsg:!0})],e.prototype,"onBatchEnv",null),d([O("query",{title:"批量修改授权设置",showErrorMsg:!0})],e.prototype,"onBatchAuth",null),d([O("query",{title:"单接口详情导入",showErrorMsg:!0})],e.prototype,"onImportAvr",null),d([O("query",{title:"单接口详情导入",showErrorMsg:!0})],e.prototype,"onValidateImport",null),d([O("query",{title:"获取egova接口树"})],e.prototype,"getEgovaApiTree",null),d([O("query",{title:"获取API项目列表"})],e.prototype,"getProjectList",null),d([O("query",{title:"获取API参数列表"})],e.prototype,"getApiRequestParams",null),d([O("query",{title:"查询分类树"})],e.prototype,"getCategoryList",null),d([O("query",{title:"查询代理详情"})],e.prototype,"getProxyNameList",null),d([O("save",{title:"保存接口配置",showTip:!0,showErrorMsg:!0})],e.prototype,"save",null),e}(F),De=je,Te=(n("ca38"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.onMore=function(){this.source.func&&this.source.func()},e.prototype.onToApi=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.apiInfo(this.source.apiId)];case 1:return t=e.sent(),t.hasError?[2,this.$message.error("接口不存在")]:(this.$router.push({name:"project-detail",params:{id:this.source.projectId},query:{apiId:this.source.apiId,apiName:this.source.apiName}}),[2])}}))}))},d([Object(y["config"])({type:Object,default:function(){return Object.create(null)}})],e.prototype,"source",void 0),d([Object(y["config"])({type:Number,default:function(){return 0}})],e.prototype,"index",void 0),d([T(De)],e.prototype,"service",void 0),e=d([Object(y["component"])({template:n("9b44"),components:{}})],e),e}(y["Component"])),Oe=Te,Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.page=function(t){return this._post("/unity/api/trends/page",t)},d([O("query",{title:"分页查询表单动态"})],e.prototype,"page",null),e}(F),Pe=Ee,Le=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.list=[],e.itemComponent=Oe,e.condition={endCreateTime:new Date},e.paging={pageIndex:0,pageSize:10,totalCount:0},e}return u(e,t),e.prototype.mounted=function(){this.onQuery()},e.prototype.onMore=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.paging.pageIndex++,this.list.length>0&&this.list.pop(),[4,this.query()];case 1:return t=e.sent(),this.list=this.list.concat(t),this.paging.pageIndex*this.paging.pageSize<this.paging.totalCount&&this.list.push({id:this.paging.pageIndex,type:"more",func:this.onMore}),[2]}}))}))},e.prototype.query=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.page({condition:this.condition,paging:this.paging})];case 1:return t=e.sent(),this.paging.totalCount=t.totalCount,[2,Promise.resolve(t.result||[])]}}))}))},e.prototype.onQuery=function(){this.paging.pageIndex=0,this.list=[],this.onMore()},d([T(Pe)],e.prototype,"service",void 0),e=d([Object(y["component"])({name:"ApiProjectComment",template:n("b769"),components:{VirtualList:Ce.a}})],e),e}(y["View"]),Me=Le,Ae=(n("8b9b"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),d([Object(pt["PropSync"])("visiable",{default:!1})],e.prototype,"value",void 0),e=d([Object(y["component"])({template:n("10cf")})],e),e}(y["Component"])),Ne=Ae,qe=(n("713b"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.typeList=[{title:"Body参数",name:"body"},{title:"Query参数",name:"query"},{title:"Header参数",name:"header"}],e.active=e.typeList[0],e.columns=[{title:"参数名",slot:"name",align:"left"},{title:"参数值",slot:"value",align:"left"},{title:"备注",slot:"remark",align:"left"},{title:"操作",slot:"action",align:"left",width:300}],e.dataList=new Array(20).fill({}),e}return u(e,t),e.prototype.onCheckTpye=function(t){this.active=t},e.prototype.onDelete=function(t,e){t.splice(e,1)},e.prototype.onUp=function(t,e){if(0!==e){var n=t.splice(e,1);t.splice(e-1,0,n[0])}},e.prototype.onDown=function(t,e){if(e!==t.length-1){var n=t.splice(e,1);t.splice(e+1,0,n[0])}},e.prototype.onTop=function(t,e){var n=t.splice(e,1);t.unshift(n[0])},e.prototype.onBottom=function(t,e){var n=t.splice(e,1);t.push(n[0])},d([Object(pt["PropSync"])("visiable",{default:!1})],e.prototype,"value",void 0),e=d([Object(y["component"])({template:n("470f")})],e),e}(y["Component"])),$e=qe,Re=(n("eaed"),n("4387")),_e=n.n(Re),Fe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isAddOnce=!1,e.exitAddItem=!1,e.varList=[],e.keyword="",e.currentItem={},e.isEmpty=!0,e.formData={name:"",remark:"",type:"http",address:""},e.rules={name:[{required:!0,message:"请输入环境名称",trigger:"blur"}],address:[{required:!0,message:"请输入域名",trigger:"blur"}]},e.onFilter=_e()((function(){e.getVariableList()}),300),e}return u(e,t),e.prototype.onShowChange=function(t){return h(this,void 0,void 0,(function(){return f(this,(function(e){return t&&(this.isAddOnce=this.isAdd,this.getVariableList()),[2]}))}))},e.prototype.onEmpty=function(t){this.isEmpty=!!t},e.prototype.getVariableList=function(){return h(this,void 0,void 0,(function(){var t,e,n=this;return f(this,(function(i){switch(i.label){case 0:return[4,this.service.getVariableList({name:this.keyword,projectId:this.projectId})];case 1:return t=i.sent(),(null===t||void 0===t?void 0:t.hasError)||(this.varList=t.result||[],(this.isAddOnce||this.exitAddItem)&&(this.onAddItem(),this.isAddOnce=!1,this.exitAddItem=!1),this.currentItem&&this.currentItem.id?(e=this.varList.filter((function(t){return t.id===n.currentItem.id})),this.onSelectItem(e[0]||this.varList[0])):this.varList.length&&this.onSelectItem(this.varList[0])),[2]}}))}))},e.prototype.onSelectItem=function(t){this.currentItem=t.$clone(),this.formData.name=this.currentItem.name,this.currentItem.value.indexOf("https")>-1?(this.formData.type="https",this.formData.address=this.currentItem.value.replace("https://","")):(this.formData.type="http",this.formData.address=this.currentItem.value.replace("http://","")),this.formData.remark=this.currentItem.remark},e.prototype.onDelete=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return t.id?(this.varList.find((function(t){return!t.id}))&&(this.exitAddItem=!0),[4,this.service.deleteVariable(t.id)]):[3,2];case 1:return e=n.sent(),(null===e||void 0===e?void 0:e.hasError)||(this.getVariableList(),this.$emit("on-refresh")),[3,3];case 2:this.varList.shift(),this.varList.length&&this.onSelectItem(this.varList[0]),n.label=3;case 3:return[2]}}))}))},e.prototype.onAddItem=function(){if(!(this.varList.length>0)||this.varList[0].id){var t={name:"",value:"",remark:"",projectId:this.projectId};this.varList.unshift(t),this.onSelectItem(this.varList[0])}},e.prototype.onCancel=function(){this.value=!1,this.keyword="",this.currentItem={}},e.prototype.onSave=function(){var t,e;return h(this,void 0,void 0,(function(){var n,i,r;return f(this,(function(o){switch(o.label){case 0:return[4,this.$refs["variable-content-form"].validate()];case 1:return n=o.sent(),n?(i={name:this.formData.name,value:"".concat(this.formData.type,"://").concat(this.formData.address),remark:this.formData.remark,projectId:this.projectId},(null===(t=this.currentItem)||void 0===t?void 0:t.id)&&(i.id=null===(e=this.currentItem)||void 0===e?void 0:e.id,i.createTime=this.currentItem.createTime),[4,this.service.saveVariable(i)]):[2];case 2:return r=o.sent(),r&&!r.hasError&&(this.$message.success("保存成功!"),this.getVariableList(),this.$emit("on-refresh")),[2]}}))}))},d([T(De)],e.prototype,"service",void 0),d([Object(pt["PropSync"])("visiable",{default:!1})],e.prototype,"value",void 0),d([Object(y["config"])({type:String,default:""})],e.prototype,"projectId",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"isAdd",void 0),d([Object(y["watch"])("value")],e.prototype,"onShowChange",null),d([Object(y["watch"])("varList.length",{immediate:!0})],e.prototype,"onEmpty",null),e=d([Object(y["component"])({template:n("8962"),components:{}})],e),e}(y["Component"]),Be=Fe,ze=(n("fe54"),n("0ddb"),function(){function t(){this.info={},this.json="",this.queryParams=[],this.formParams=[],this.requestHeaders=[],this.preScripts=[],this.postScripts=[],this.eventScripts=[],this.convertConfig=new Ue,this.fieldMappings=[],this.authentication=new Ve}return t}()),Ve=function(){function t(){this.type="OAuth2",this.content="",this.location="",this.locationKey="",this.id=""}return t}(),Ue=function(){function t(){this.convertRoot="",this.successCodePath="",this.successCode=""}return t}(),He=function(){function t(){this.id="",this.paramPath="",this.originalParamPath="",this.name="",this.valueType="",this.checked=!1}return t}(),Ge=function(){function t(){this.id="",this.projectId="",this.apiId="",this.eventType="Previous",this.type="Groovy",this.content=""}return t}(),Ke=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventType="Post",e}return u(e,t),e}(Ge),Qe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.editor={},e}return u(e,t),e.prototype.onEditorInited=function(t){this.editor=t},e.prototype.resizeEditor=function(){this.editor.resize&&this.editor.resize()},d([Object(y["config"])({default:!0})],e.prototype,"lengthwise",void 0),d([Object(y["watch"])("lengthwise")],e.prototype,"resizeEditor",null),e=d([Object(y["component"])({})],e),e}(y["Component"]),Je=Qe,We=(n("d928"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.scriptData={},e.tempScriptData={},e.viewMax=!1,e.model=new Ge,e.key="preScripts",e.diyKeywordList=[],e.refreshEditor=!0,e.keyword="",e.errorMap=new Map,e.onFilter=_e()((function(){e.filterTypeList()}),300),e}return u(e,t),e.prototype.mounted=function(){var t=this;this.getScript(),this.$subscribe("api://project-detail-max",(function(){t.refreshEditor=!t.refreshEditor,t.refreshEditor&&setTimeout((function(){t.displayError(t.errorLine)}),5)}));var e=document.getElementsByClassName("ace_scrollbar")[0];e.addEventListener("scroll",(function(){t.displayError(t.errorLine)}))},e.prototype.handleError=function(t){var e=this;setTimeout((function(){e.displayError(t)}),5)},e.prototype.displayError=function(t){var e=this,n=document.getElementsByClassName("ace_gutter-cell");this.errorMap.forEach((function(t,e){var i,r=null===(i=n[t])||void 0===i?void 0:i.firstElementChild;r&&n[t].removeChild(r)})),this.errorMap.clear(),(null===t||void 0===t?void 0:t.length)&&t.forEach((function(t){null===n||void 0===n||n.forEach((function(n,i){if((null===n||void 0===n?void 0:n.innerHTML)===t+""){var r=n,o=document.createElement("i");o.className="iconfont icon-a-cuowutishi1",r.insertBefore(o,r.firstChild),e.errorMap.set(t,i)}}))}))},e.prototype.getScript=function(){var t,e;return h(this,void 0,void 0,(function(){var n,i;return f(this,(function(r){switch(r.label){case 0:return[4,this.service.preScript()];case 1:return n=r.sent(),this.scriptData=n||{},this.scriptData.group=null===(t=this.scriptData.group)||void 0===t?void 0:t.map((function(t){return p(p({},t),{expand:!0})})),this.tempScriptData=this.scriptData.$clone(),i=[],null===(e=this.scriptData)||void 0===e||e.group.forEach((function(t){"业务案例"!==t.name&&t.list.forEach((function(e){i.push({meta:t.name,caption:e.code,value:e.code,score:1})}))})),this.diyKeywordList=i,[2]}}))}))},e.prototype.onClickItem=function(t){this.editor.insert(t.code),this.editor.focus()},Object.defineProperty(e.prototype,"script",{get:function(){return this.interfaceModel[this.key][0]||this.interfaceModel[this.key].push(this.model),this.interfaceModel[this.key][0].content},set:function(t){this.interfaceModel[this.key][0].content=t},enumerable:!1,configurable:!0}),e.prototype.filterTypeList=function(){var t=this;if(this.keyword){var e=this.scriptData.group.map((function(e){return p(p({},e),{list:e.list.filter((function(e){return-1!==e.name.indexOf(t.keyword)}))})}));this.tempScriptData.group=e.filter((function(t){return t.list.length}))}else this.tempScriptData=this.scriptData.$clone()},e.prototype.onQuickGroupClick=function(t){var e,n;null===(e=this.scriptData.group)||void 0===e||e.forEach((function(e){t.name===e.name&&(e.expand=!e.expand)})),null===(n=this.tempScriptData.group)||void 0===n||n.forEach((function(e){t.name===e.name&&(e.expand=!e.expand)}))},e.prototype.onRun=function(){this.$emit("on-script-run")},e.prototype.onSearch=function(){this.editor&&this.editor.execCommand("find")},e.prototype.onSave=function(){this.$emit("on-script-save")},e.prototype.onViewMax=function(){this.viewMax=!this.viewMax,this.$emit("on-script-max",this.viewMax)},d([Object(y["config"])({default:function(){return new ze}})],e.prototype,"interfaceModel",void 0),d([T(De)],e.prototype,"service",void 0),d([Object(y["config"])({default:null})],e.prototype,"errorLine",void 0),d([Object(y["watch"])("errorLine",{immediate:!0})],e.prototype,"handleError",null),e=d([Object(y["component"])({template:n("8ab8"),components:{"u-editor":mt}})],e),e}(Je)),Ye=We,Xe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.key="postScripts",e.model=new Ke,e}return u(e,t),e.prototype.getScript=function(){var t;return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.postScript()];case 1:return e=n.sent(),this.scriptData=e||{},this.scriptData.group=null===(t=this.scriptData.group)||void 0===t?void 0:t.map((function(t){return p(p({},t),{expand:!0})})),this.tempScriptData=this.scriptData.$clone(),[2]}}))}))},e=d([Object(y["component"])({})],e),e}(Ye),Ze=Xe,tn=(n("a6c3"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.option={showPrintMargin:!1,wrap:"free",fontSize:15},e}return u(e,t),e.prototype.editorInit=function(t){n("1cdf"),n("9842"),n("0e0c"),n("1e82"),n("c889"),n("64d5"),n("91e1"),n("3fb3"),n("8214"),this.$emit("inited",t)},d([Object(pt["PropSync"])("value")],e.prototype,"code",void 0),d([Object(ut["config"])({default:"json"})],e.prototype,"lang",void 0),e=d([Object(ut["component"])({template:n("35e3"),components:{editor:ht.a}})],e),e}(ut["Component"])),en=tn,nn=(n("aba0"),function(){function t(){this.content="",this.originalContent="",this.requestHeaders={},this.responseHeaders={},this.cookies={},this.errorMessage="",this.output=""}return t}()),rn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.responseSettingTypeList=[{name:"content",title:"响应"},{name:"responseHeaders",title:"响应头",num:0},{name:"requestHeaders",title:"请求头",num:0},{name:"cookies",title:"Cookies",num:0},{name:"output",title:"输出",num:0}],e.lang="json",e.contentType="originalContent",e.expand=!0,e.headerColumns=[{title:"Key(键名)",key:"key"},{title:"Value(键值)",key:"value"}],e.active=e.responseSettingTypeList[0],e}return u(e,t),e.prototype.onClickResponseSettingTpye=function(t){this.active=t},Object.defineProperty(e.prototype,"content",{get:function(){if(this.response.errorMessage)return this.response.errorMessage;if(!this.response.originalContent)return"";var t="";try{t=JSON.stringify(JSON.parse(this.response[this.contentType]),null,4)}catch(e){return console.log(e),this.response[this.contentType]}return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"output",{get:function(){return this.response.output||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responseHeaders",{get:function(){var t=this;return Object.keys(this.response.responseHeaders).map((function(e){return{key:e,value:t.response.responseHeaders[e]}}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requestHeaders",{get:function(){var t=this;return Object.keys(this.response.requestHeaders).map((function(e){return{key:e,value:t.response.requestHeaders[e]}}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cookies",{get:function(){var t=this.response.responseHeaders["Set-Cookie"]||"";return t.$isArray()?t.map((function(t,e){return{key:e,value:t}})):(null===t||void 0===t?void 0:t.length)>0?t.split(";").map((function(t){var e=t.split("="),n=e[0],i=e[1];return{key:n,value:i}})):void 0},enumerable:!1,configurable:!0}),e.prototype.onChangeLang=function(t){this.lang=t},e.prototype.init=function(){var t=this;this.expand=!0,this.responseSettingTypeList.forEach((function(e){var n;if("content"!==e.name){var i=t.response[e.name]||{};e.num=i.$isArray()?i.length:Object.keys(i).length,"cookies"===e.name&&(e.num=null===(n=t.cookies)||void 0===n?void 0:n.length)}})),this.response.code&&200!==this.response.code&&(this.active=this.responseSettingTypeList[4]),this.response.code&&200===this.response.code&&(this.active=this.responseSettingTypeList[0])},e.prototype.onClickCollapse=function(){var t=this;this.$publish("api://project-detail-max"),this.expand=!this.expand,setTimeout((function(){t.$publish("api://project-detail-max")}),5)},d([Object(y["config"])({default:function(){return new nn}})],e.prototype,"response",void 0),d([Object(y["watch"])("response",{immediate:!0,deep:!1})],e.prototype,"init",null),e=d([Object(y["component"])({template:n("2c48"),components:{"u-editor":en}})],e),e}(Je),on=rn,an=(n("8a77"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.loading=!1,e.selections=[],e.debounceUpdateFieldMappings=_e()(e.updateFieldMappings,500),e.columns=[{type:"selection",width:60,align:"center"},{title:"读取字段的JSON路径",maxWidth:350,minWidth:120,align:"left",slot:"path"},{title:"输出字段命名和类型",minWidth:300,align:"left",slot:"name"},{title:"操作",width:80,align:"left",slot:"action"}],e.valueTypeList=[],e.dataList=[],e.lastDataList=[],e}return u(e,t),e.prototype.mounted=function(){return h(this,void 0,void 0,(function(){return f(this,(function(t){return this.interfaceModel.convertConfig=this.interfaceModel.convertConfig||new Ue,this.getValueTypeList(),this.initDataList(),[2]}))}))},e.prototype.getValueTypeList=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getEnumByType("dataType")];case 1:return t=e.sent(),this.valueTypeList=(null===t||void 0===t?void 0:t.result)||[],[2]}}))}))},e.prototype.initDataList=function(){var t,e=this;(null===(t=this.interfaceModel.fieldMappings)||void 0===t?void 0:t.length)&&(this.dataList=this.interfaceModel.fieldMappings.sort((function(t,e){var n;return null===(n=t.paramPath)||void 0===n?void 0:n.localeCompare(e.paramPath)})),this.lastDataList=this.dataList.$clone()),this.$subscribe("api://project-detail-save",(function(){e.lastDataList=e.dataList.$clone()}))},e.prototype.onParse=function(){var t,e;return h(this,void 0,void 0,(function(){var n,i,r,o;return f(this,(function(a){switch(a.label){case 0:return this.response.originalContent?(this.loading=!0,[4,this.service.parseResponse2Fields(this.response.originalContent,null===(t=this.interfaceModel.convertConfig)||void 0===t?void 0:t.convertRoot)]):(this.$Message.error("请先获取转换前参数!"),[2]);case 1:return n=a.sent(),(null===n||void 0===n?void 0:n.hasError)?[2]:(i=(null===(e=null===n||void 0===n?void 0:n.result)||void 0===e?void 0:e.fieldMappings)||[],r=this.interfaceModel.fieldMappings,o=new Set(r.map((function(t){return t.originalParamPath}))),i.forEach((function(t){if(o.has(t.originalParamPath)){var e=r.find((function(e){return e.originalParamPath===t.originalParamPath}));Object.assign(t,e)}})),this.dataList=i,this.debounceUpdateFieldMappings(),this.loading=!1,[2])}}))}))},e.prototype.onChangeChecked=function(t){this.selections=t,this.debounceUpdateFieldMappings()},e.prototype.batchDelete=function(){var t=this;this.selections.length&&(this.selections.map((function(e){var n=t.dataList.findIndex((function(t){return t.name===e.name}));n>-1&&t.dataList.splice(n,1)})),this.selections=[],this.debounceUpdateFieldMappings())},e.prototype.onAdd=function(){this.dataList.unshift(new He),this.debounceUpdateFieldMappings()},e.prototype.onDelete=function(t){this.dataList.splice(t,1),this.debounceUpdateFieldMappings()},e.prototype.onReset=function(){this.dataList=this.lastDataList.$clone(),this.debounceUpdateFieldMappings()},e.prototype.updateFieldMappings=function(){this.interfaceModel.fieldMappings=this.dataList},d([T(De)],e.prototype,"service",void 0),d([Object(y["config"])({default:function(){return new ze}})],e.prototype,"interfaceModel",void 0),d([Object(y["config"])({default:function(){return new nn}})],e.prototype,"response",void 0),e=d([Object(y["component"])({template:n("236b"),components:{}})],e),e}(y["Component"])),sn=an,cn=(n("bff7"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.columns=[{title:" ",slot:"selection",width:60,align:"center"},{title:"参数名",align:"left",slot:"name"},{title:"参数值",align:"left",slot:"value"},{title:"备注",align:"left",slot:"text"},{title:"操作",align:"left",slot:"action"}],e}return u(e,t),e.prototype.onDelete=function(t){this.interfaceModel.requestHeaders.splice(t,1)},e.prototype.onAdd=function(){this.interfaceModel.requestHeaders.push({name:"",value:"",text:"",disabled:!1})},e.prototype.onChangeDisabled=function(t,e){e.disabled=!t},d([Object(y["config"])({default:function(){return new ze}})],e.prototype,"interfaceModel",void 0),e=d([Object(y["component"])({template:n("22e8"),components:{}})],e),e}(y["Component"])),ln=cn,un=(n("3ad3"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.showValue=0,e}return u(e,t),e.prototype.watchValue=function(){this.showValue=this.value||this.midState?1:0},e.prototype.onChange=function(){this.$emit("onChange")},d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"value",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"midState",void 0),d([Object(y["watch"])("value",{immediate:!0}),Object(y["watch"])("midState",{immediate:!0})],e.prototype,"watchValue",null),e=d([Object(y["component"])({template:n("f9a4"),components:{}})],e),e}(y["Component"])),pn=un,dn=(n("8137"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=[],e.scriptDocShow=!1,e.scriptDoc="",e.commonColuns=[{title:"参数名",slot:"name",align:"left"},{title:"参数值",slot:"valueContent",align:"left"},{title:"必填",slot:"required",width:95,align:"left",renderHeader:function(t,e){return t("div",{class:"th-tip"},[t("i-poptip",{props:{trigger:"hover",content:"参数启用同时非必填时,若调用方未传具体参数值,将使用当前定义的参数值。",placement:"top",transfer:!0,"word-wrap":!0}},[t("i-icon",{props:{type:"ios-information-circle-outline"}})]),t("span","必填")])}},{title:"备注",slot:"text",align:"left"},{title:"操作",slot:"action",align:"left",width:300}],e.queryDataList=[],e.requestBodyTypeList=[],e.hasQueryChecked=!1,e.hasQueryMidChecked=!1,e.hasBodyChecked=!1,e.hasBodyMidChecked=!1,e.typeMap={Form:"FormData",X_www_form_urlencoded:"FormUrlEncoded"},e.formParamTypeList=[{name:"String",text:"Text"},{name:"FILE",text:"File"}],e.formParamsIndex=0,e.currentFormParamRow={},e}return u(e,t),Object.defineProperty(e.prototype,"paramColumns",{get:function(){var t=this;return m([{slot:"selection",width:100,align:"center",title:"启用",renderHeader:function(e,n){return e(pn,{props:{value:t.hasQueryChecked,midState:t.hasQueryMidChecked},on:{onChange:t.onQueryChange}})}}],this.commonColuns,!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bodyColumns",{get:function(){var t=this;return m([{slot:"selection",width:100,align:"center",title:"启用",renderHeader:function(e,n){return e(pn,{props:{value:t.hasBodyChecked,midState:t.hasBodyMidChecked},on:{onChange:t.onBodyChange}})}}],this.commonColuns,!0)},enumerable:!1,configurable:!0}),e.prototype.getExpand=function(t){return this.value.includes(t)},e.prototype.onDelete=function(t,e){var n=t.findIndex((function(t){return t.indexFlag===e}));t.splice(n,1),this.buildQueryCheckedState()},e.prototype.buildQueryCheckedState=function(){for(var t=0,e=0,n=this.queryDataList;e<n.length;e++){var i=n[e];i.disabled||(t+=1)}t>0&&t!==this.queryDataList.length?(this.hasQueryChecked=!0,this.hasQueryMidChecked=!0):(this.hasQueryChecked=t>0,this.hasQueryMidChecked=!1)},e.prototype.buildBodyCheckedState=function(){for(var t=0,e=0,n=this.bodyDataList;e<n.length;e++){var i=n[e];i.disabled||(t+=1)}t>0&&t!==this.bodyDataList.length?(this.hasBodyChecked=!0,this.hasBodyMidChecked=!0):(this.hasBodyChecked=t>0,this.hasBodyMidChecked=!1)},e.prototype.onUp=function(t,e){if(0!==e){var n=t.splice(e,1);t.splice(e-1,0,n[0])}},e.prototype.onDown=function(t,e){if(e!==t.length-1){var n=t.splice(e,1);t.splice(e+1,0,n[0])}},e.prototype.onTop=function(t,e){var n=t.splice(e,1);t.unshift(n[0])},e.prototype.onBottom=function(t,e){var n=t.splice(e,1);t.push(n[0])},e.prototype.onDeleteBodyParam=function(t,e){var n=t.findIndex((function(t){return t.indexFlag===e}));t.splice(n,1),this.buildBodyCheckedState()},e.prototype.onUpBodyParam=function(t,e){var n=t.findIndex((function(t){return t.id===e}));if(0!==n){var i=t.splice(n,1);t.splice(n-1,0,i[0])}},e.prototype.onDownBodyParam=function(t,e){var n=t.findIndex((function(t){return t.id===e}));if(n!==t.length-1){var i=t.splice(n,1);t.splice(n+1,0,i[0])}},e.prototype.onTopBodyParam=function(t,e){var n=t.findIndex((function(t){return t.id===e})),i=t.splice(n,1);t.unshift(i[0])},e.prototype.onBottomBodyParam=function(t,e){var n=t.findIndex((function(t){return t.id===e})),i=t.splice(n,1);t.push(i[0])},e.prototype.onChangeDisabled=function(t,e,n){e.disabled=!t,"query"===n?this.buildQueryCheckedState():this.buildBodyCheckedState()},e.prototype.init=function(){var t,e,n=this;(null===(e=null===(t=this.interfaceModel)||void 0===t?void 0:t.info)||void 0===e?void 0:e.id)&&(this.interfaceModel.queryParams.forEach((function(t){t.indexFlag||(t.indexFlag=n.formParamsIndex+++"_"+n.interfaceModel.info.id),t._checked=!t.disabled})),this.queryDataList=this.interfaceModel.queryParams,this.interfaceModel.formParams.forEach((function(t){t.indexFlag||(t.indexFlag=n.formParamsIndex+++"_"+n.interfaceModel.info.id),t._checked=!t.disabled})),this.buildQueryCheckedState(),this.buildBodyCheckedState())},Object.defineProperty(e.prototype,"bodyDataList",{get:function(){var t=this.typeMap[this.bodyType];return this.interfaceModel.formParams.filter((function(e){return e.type===t}))},set:function(t){this.interfaceModel.formParams=t},enumerable:!1,configurable:!0}),e.prototype.onAddRequestParam=function(){this.queryDataList.push({indexFlag:this.formParamsIndex+++"_"+this.interfaceModel.info.id,name:"",text:"",type:"QueryString",valueContent:"",requireFlag:0,disabled:!1,_checked:!0}),this.buildQueryCheckedState()},e.prototype.onAddBodyParam=function(){this.interfaceModel.formParams.push({indexFlag:this.formParamsIndex+++"_"+this.interfaceModel.info.id,fileName:"",name:"",text:"",type:this.typeMap[this.bodyType],valueContent:"",requireFlag:0,_checked:!0,disabled:!1,valueType:"String"}),this.buildBodyCheckedState()},Object.defineProperty(e.prototype,"bodyType",{get:function(){var t,e;return(null===(e=null===(t=this.interfaceModel)||void 0===t?void 0:t.info)||void 0===e?void 0:e.requestBodyType)||"Form"},set:function(t){this.interfaceModel.info.requestBodyType=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFormData",{get:function(){return"Form"===this.bodyType||"X_www_form_urlencoded"===this.bodyType},enumerable:!1,configurable:!0}),e.prototype.onBeautify=function(){this.interfaceModel.json&&(this.interfaceModel.json=JSON.stringify(JSON.parse(this.interfaceModel.json),null,4))},e.prototype.mounted=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getEnumByType("requestBodyType")];case 1:return t=e.sent(),this.requestBodyTypeList=(null===t||void 0===t?void 0:t.result)||[],this.interfaceModel&&this.interfaceModel.info&&(this.interfaceModel.info.requestBodyType=this.interfaceModel.info.requestBodyType||(this.requestBodyTypeList.length?this.requestBodyTypeList[0].name:"Form")),[2]}}))}))},e.prototype.onChangeFormParamType=function(t,e){this.interfaceModel.formParams.forEach((function(t){if(t.indexFlag===e.indexFlag)return t.valueType=e.valueType}))},e.prototype.onClickRow=function(t){this.currentFormParamRow=t},e.prototype.onImport=function(t){return h(this,void 0,void 0,(function(){var e=this;return f(this,(function(n){return this.formData.append(this.currentFormParamRow.indexFlag,t),this.bodyDataList=this.interfaceModel.formParams.map((function(n){return n.indexFlag===e.currentFormParamRow.indexFlag&&(n.fileName=t.name,n.valueContent=null),p({},n)})),[2,Promise.reject(!1)]}))}))},e.prototype.onClearFile=function(t){this.formData.delete(t.indexFlag),this.bodyDataList=this.interfaceModel.formParams.map((function(e){return e.indexFlag===t.indexFlag&&(e.fileName=""),p({},e)}))},e.prototype.onQuerySelectionChange=function(t){var e=this;this.queryDataList.forEach((function(n){e.isInArray(t,n.indexFlag)?(e.$set(n,"disabled",!1),e.$set(n,"_checked",!0)):(e.$set(n,"disabled",!0),e.$set(n,"_checked",!1))}))},e.prototype.onQueryChange=function(){var t=this;this.hasQueryMidChecked||this.hasQueryChecked?this.queryDataList.forEach((function(e){t.$set(e,"disabled",!0),t.$set(e,"_checked",!1)})):this.queryDataList.forEach((function(e){t.$set(e,"disabled",!1),t.$set(e,"_checked",!0)})),this.buildQueryCheckedState()},e.prototype.onBodyChange=function(){var t=this;this.hasBodyMidChecked||this.hasBodyChecked?this.bodyDataList.forEach((function(e){t.$set(e,"disabled",!0),t.$set(e,"_checked",!1)})):this.bodyDataList.forEach((function(e){t.$set(e,"disabled",!1),t.$set(e,"_checked",!0)})),this.buildBodyCheckedState()},e.prototype.onBodySelectionChange=function(t){var e=this;this.bodyDataList.forEach((function(n){e.isInArray(t,n.indexFlag)?(e.$set(n,"disabled",!1),e.$set(n,"_checked",!0)):(e.$set(n,"disabled",!0),e.$set(n,"_checked",!1))}))},e.prototype.isInArray=function(t,e){for(var n=!1,i=0,r=t;i<r.length;i++){var o=r[i];if(o.indexFlag===e){n=!0;break}}return n},e.prototype.showScriptDoc=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getScriptDoc1()];case 1:return t=e.sent(),t?(this.scriptDoc=t,this.scriptDocShow=!0):this.$message.error("获取说明文档失败"),[2]}}))}))},d([Object(y["config"])({default:function(){return new ze}})],e.prototype,"interfaceModel",void 0),d([Object(y["config"])({default:function(){return new FormData}})],e.prototype,"formData",void 0),d([T(De)],e.prototype,"service",void 0),d([Object(y["watch"])("interfaceModel",{immediate:!0})],e.prototype,"init",null),e=d([Object(y["component"])({template:n("7640"),components:{"u-editor":en,"u-doc-modal":st}})],e),e}(Je)),hn=dn,fn=(n("2a79"),n("b156"),n("61ef"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),d([Object(y["config"])({default:""})],e.prototype,"tips",void 0),d([Object(y["config"])({default:""})],e.prototype,"labelTitle",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"labelColon",void 0),e=d([Object(y["component"])({template:n("2f53")})],e),e}(y["Component"])),mn=fn,yn=(n("1a93"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.securityList=[],e.keyword="",e.currentSecurityItem={},e.securityTypeList=[],e.grantTypeList=[],e.tokenLocationTypeList=[],e.isAddOnce=!1,e.exitAddItem=!1,e.scriptDocShow=!1,e.scriptDoc="",e.diyKeywordList=[],e.isEmpty=!0,e.onFilter=_e()((function(){e.getSecurityList()}),300),e}return u(e,t),Object.defineProperty(e.prototype,"show",{get:function(){return this.value},set:function(t){this.$emit("input",t)},enumerable:!1,configurable:!0}),e.prototype.onShowChange=function(t){return h(this,void 0,void 0,(function(){return f(this,(function(e){return t?(this.isAddOnce=this.isAdd,this.getSecurityTypeList(),this.getSecurityList(),this.getTokenLocationTypeList(),this.getGrantTypeList(),this.queryDiyKeyword()):(this.keyword="",this.currentSecurityItem={}),[2]}))}))},e.prototype.queryDiyKeyword=function(){return h(this,void 0,void 0,(function(){var t,e,n;return f(this,(function(i){switch(i.label){case 0:return[4,this.service.preScript()];case 1:return t=i.sent(),e=t||{},n=[],null===e||void 0===e||e.group.forEach((function(t){"业务案例"!==t.name&&t.list.forEach((function(e){n.push({meta:t.name,caption:e.code,value:e.code,score:1})}))})),this.diyKeywordList=n,[2]}}))}))},e.prototype.getSecurityTypeList=function(){return h(this,void 0,void 0,(function(){var t,e;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.getEnumByType("authenticationType")];case 1:return t=n.sent(),e=(null===t||void 0===t?void 0:t.result)||[],this.securityTypeList=e.filter((function(t){return"None"!==t.name})),[2]}}))}))},e.prototype.getTokenLocationTypeList=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getEnumByType("tokenLocationType")];case 1:return t=e.sent(),this.tokenLocationTypeList=(null===t||void 0===t?void 0:t.result)||[],[2]}}))}))},e.prototype.getGrantTypeList=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getEnumByType("grantType")];case 1:return t=e.sent(),this.grantTypeList=(null===t||void 0===t?void 0:t.result)||[],[2]}}))}))},e.prototype.getSecurityList=function(){return h(this,void 0,void 0,(function(){var t,e,n,i=this;return f(this,(function(r){switch(r.label){case 0:return[4,this.service.getSecurityList({name:this.keyword,projectId:this.projectID})];case 1:return t=r.sent(),(null===t||void 0===t?void 0:t.hasError)||(e=t.result||[],this.securityList=e.map((function(t){return"GROOVY_SCRIPT"!==t.type?t.content=JSON.parse(t.content):(t.scriptContent=t.content,t.content={}),t})),(this.isAddOnce||this.exitAddItem)&&(this.onAddItem(),this.isAddOnce=!1,this.exitAddItem=!1),this.currentSecurityItem&&this.currentSecurityItem.id?(n=this.securityList.filter((function(t){return t.id===i.currentSecurityItem.id})),this.onSelectSecurityItem(n[0]||this.securityList[0])):this.securityList.length&&this.onSelectSecurityItem(this.securityList[0])),[2]}}))}))},e.prototype.onSelectSecurityItem=function(t){this.currentSecurityItem=t.$clone()},e.prototype.onEmpty=function(t){this.isEmpty=!!t},e.prototype.onDelete=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return t.id?(this.securityList.find((function(t){return!t.id}))&&(this.exitAddItem=!0),[4,this.service.deleteSecurityItem(t.id)]):[3,2];case 1:return e=n.sent(),(null===e||void 0===e?void 0:e.hasError)||this.getSecurityList(),[3,3];case 2:this.securityList.shift(),n.label=3;case 3:return this.securityList.length&&this.onSelectSecurityItem(this.securityList[0]),this.$publish("api://security-list-refresh"),[2]}}))}))},e.prototype.onAddItem=function(){if(!(this.securityList.length>0)||this.securityList[0].id){var t={name:"",type:"GROOVY_SCRIPT",content:{},scriptContent:""};this.securityList.unshift(t),this.currentSecurityItem=this.securityList[0].$clone()}},e.prototype.onCancel=function(){this.show=!1,this.keyword="",this.currentSecurityItem={}},e.prototype.onSave=function(){return h(this,void 0,void 0,(function(){var t,e;return f(this,(function(n){switch(n.label){case 0:return t={projectId:this.projectID,name:this.currentSecurityItem.name,type:this.currentSecurityItem.type},"GROOVY_SCRIPT"===this.currentSecurityItem.type?(t.location=null,t.locationKey=null,t.content=this.currentSecurityItem.scriptContent):(t.location=this.currentSecurityItem.location,t.locationKey=this.currentSecurityItem.locationKey,t.content={},"Api_Key"===this.currentSecurityItem.type?t.content.key=this.currentSecurityItem.content.key:"Base_Auth"===this.currentSecurityItem.type?(t.content.username=this.currentSecurityItem.content.username,t.content.password=this.currentSecurityItem.content.password):"OAuth2"===this.currentSecurityItem.type&&(t=p(p({},t),this.currentSecurityItem),"password"!==this.currentSecurityItem.content.grantType&&(delete t.content.password,delete t.content.username)),t.content=JSON.stringify(t.content)),t.name?t.type?(e=null,this.currentSecurityItem.id?(t.id=this.currentSecurityItem.id,t.createTime=this.currentSecurityItem.createTime,[4,this.service.updateSecurityItem(t)]):[3,2]):[2,this.$message.warning("请选择授权类型!")]:[2,this.$message.warning("请填写授权名称!")];case 1:return e=n.sent(),[3,4];case 2:return[4,this.service.addSecurityItem(t)];case 3:e=n.sent(),n.label=4;case 4:return(null===e||void 0===e?void 0:e.hasError)||(this.getSecurityList(),this.$publish("api://security-list-refresh")),[2]}}))}))},e.prototype.showScriptDoc=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getScriptDoc()];case 1:return t=e.sent(),t?(this.scriptDoc=t,this.scriptDocShow=!0):this.$message.error("获取帮助文档失败"),[2]}}))}))},d([T(De)],e.prototype,"service",void 0),d([Object(y["config"])({type:Boolean,default:!0})],e.prototype,"value",void 0),d([Object(y["config"])({type:String,default:""})],e.prototype,"projectID",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"isAdd",void 0),d([Object(y["watch"])("show")],e.prototype,"onShowChange",null),d([Object(y["watch"])("securityList.length",{immediate:!0})],e.prototype,"onEmpty",null),e=d([Object(y["component"])({template:n("3bf8"),components:{"u-tips-form-label":mn,"u-doc-modal":st,"u-editor":mt}})],e),e}(y["Component"])),vn=yn,gn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.securityList=[],e.currentSecurityItem={},e.currentSecurityItemId="",e.showSecurity=!1,e.isAdd=!0,e.grantTypeList=[],e}return u(e,t),e.prototype.mounted=function(){var t;return h(this,void 0,void 0,(function(){var e=this;return f(this,(function(n){switch(n.label){case 0:return this.getGrantTypeList(),[4,this.getSecurityList()];case 1:return n.sent(),this.currentSecurityID?this.currentSecurityItemId=this.currentSecurityID:(null===(t=this.interfaceModel.authentication)||void 0===t?void 0:t.id)&&(this.currentSecurityItemId=this.interfaceModel.authentication.id),this.currentSecurityItem=this.securityList.find((function(t){return t.id===e.currentSecurityItemId}))||{},[2]}}))}))},e.prototype.getGrantTypeList=function(){return h(this,void 0,void 0,(function(){var t,e=this;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.getEnumByType("grantType")];case 1:return t=n.sent(),this.grantTypeList=(null===t||void 0===t?void 0:t.result)||[],this.$subscribe("api://security-list-refresh",(function(t){return h(e,void 0,void 0,(function(){var e,n,i,r=this;return f(this,(function(o){switch(o.label){case 0:return e=t.get("isBatchRefresh")||!1,[4,this.getSecurityList()];case 1:return o.sent(),this.currentSecurityID?this.currentSecurityItemId=this.currentSecurityID:(null===(n=this.interfaceModel.authentication)||void 0===n?void 0:n.id)&&(this.currentSecurityItemId=this.interfaceModel.authentication.id),(null===(i=this.interfaceModel.authentication)||void 0===i?void 0:i.id)&&e&&(this.currentSecurityItemId=this.interfaceModel.authentication.id),this.currentSecurityItem=this.securityList.find((function(t){return t.id===r.currentSecurityItemId}))||{},this.onChangeSecurityItem(this.currentSecurityItemId),[2]}}))}))})),[2]}}))}))},e.prototype.findGrantTypeText=function(t){var e=this.grantTypeList.find((function(e){return e.name===t}));return e?e.text:""},e.prototype.getSecurityList=function(){return h(this,void 0,void 0,(function(){var t,e;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.getSecurityList({projectId:this.projectID})];case 1:return t=n.sent(),(null===t||void 0===t?void 0:t.hasError)||(e=t.result||[],this.securityList=e.map((function(t){return"GROOVY_SCRIPT"!==t.type?t.content=JSON.parse(t.content):(t.scriptContent=t.content,t.content={}),t}))),[2]}}))}))},e.prototype.onChangeSecurityItem=function(t){this.$emit("on-current-id",t),t?(this.currentSecurityItem=this.securityList.find((function(e){return e.id===t})),this.interfaceModel.authentication=this.interfaceModel.authentication||new Ve,this.interfaceModel.authentication.type=this.currentSecurityItem.type,this.interfaceModel.authentication.location=this.currentSecurityItem.location,this.interfaceModel.authentication.locationKey=this.currentSecurityItem.locationKey,"GROOVY_SCRIPT"===this.currentSecurityItem.type?this.interfaceModel.authentication.content=this.currentSecurityItem.scriptContent:this.interfaceModel.authentication.content=JSON.stringify(this.currentSecurityItem.content)):this.interfaceModel.authentication={type:"",location:"",locationKey:"",content:"",id:""},this.interfaceModel.info.authId=this.currentSecurityItem.id},e.prototype.onAddSecurityItem=function(){this.$refs.addSecuritySelect.visible=!1,this.showSecurity=!0},e.prototype.onClear=function(){this.currentSecurityItem={}},d([T(De)],e.prototype,"service",void 0),d([Object(y["config"])({default:function(){return new ze}})],e.prototype,"interfaceModel",void 0),d([Object(y["config"])({type:String,default:""})],e.prototype,"projectID",void 0),d([Object(y["config"])({type:String,default:""})],e.prototype,"currentSecurityID",void 0),e=d([Object(y["component"])({template:n("3de4"),components:{"u-tips-form-label":mn,"u-security-modal":vn}})],e),e}(y["Component"]),bn=gn,wn=(n("8b65"),n("0a2e"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.columns=[{title:"次数",key:"header",width:"100"},{title:"5",key:"five"},{title:"6",key:"six"},{title:"7",key:"seven"},{title:"8",key:"eight"},{title:"9",key:"nine"},{title:"10",key:"ten"}],e.data=[{header:"覆盖范围",five:"1h",six:"2h",seven:"4h",eight:"8h",nine:"16h",ten:"32h"}],e}return u(e,t),d([Object(y["config"])({default:""})],e.prototype,"tips",void 0),d([Object(y["config"])({default:""})],e.prototype,"labelTitle",void 0),d([Object(y["config"])({default:520})],e.prototype,"width",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"labelColon",void 0),e=d([Object(y["component"])({template:n("dc41")})],e),e}(y["Component"])),xn=wn;(function(t){t["Private"]="0",t["Public"]="1",t["Protected"]="2"})(fe||(fe={})),function(t){t["PlateForm"]="1",t["Email"]="2",t["CopyDisk"]="3",t["MediumExchange"]="4"}(me||(me={})),function(t){t["ElectronicFile"]="1",t["ElectronicExcel"]="2",t["Database"]="3",t["GraphicImage"]="4",t["StreamingMedia"]="5"}(ye||(ye={})),function(t){t["Realtime"]="1",t["Daily"]="2",t["Weekly"]="3",t["Monthly"]="4",t["Quarterly"]="5",t["Annually"]="6",t["Irregular"]="7",t["Other"]="8"}(ve||(ve={})),function(t){t["Unreleased"]="0",t["Released"]="1"}(ge||(ge={}));var Sn=[{value:0,name:"否"},{value:1,name:"是"}],In=[{value:6,name:"成功请求"},{value:2,name:"失败请求"},{value:5,name:"请求耗时"}];n("06a8");function kn(t){var e=Cn();return"".concat(e,"/api/exchange/").concat(t)}function Cn(){var t=window.commonSetting.baseUrl||"",e="";return e=t&&t.startsWith("https://")||t.startsWith("http://")?"".concat(t):t&&t.startsWith("/")?"".concat(window.location.origin).concat(t):t?"".concat(window.location.origin,"/").concat(t):"".concat(window.location.origin),e}var jn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.egovaApiTree=[],e.projectList=[],e.model={name:"",code:"",categoryId:"",retryTimes:"",description:"",enableRetry:"false",authFlag:1,logSavingEnabled:2},e.apiModel={},e.apiTree=[],e.apiColumns=[{title:"参数名称",key:"name",align:"left",ellipsis:!0,tooltip:!0},{title:"参数值",key:"valueContent",align:"left",ellipsis:!0,tooltip:!0}],e.apiParamList=[],e.isRetryList=[{name:"是",value:"true"},{name:"否",value:"false"}],e.statusCodeList=[{name:"默认(502,504)",value:"1"},{name:"自定义",value:"2"}],e.statusCode="1",e.authFlag=Sn,e.loginLevelFlag=In,e.isResourceCodeEnabled=!1,e.rulesValidate={},e.isNameValid=!1,e.isCategoryIdValid=!1,e.isCodeValid=!1,e.isDesValid=!1,e.isRetryTimesValid=!1,e.isRetryCodeValid=!1,e.isRetryTimesReadonly=!1,e.isDeatilPage=!1,e.readonly=!1,e.formTitle="流程配置详情",e.categoryList=[],e.isAdding=!1,e.proxyName="",e.proxyList=[],e.isSlowLogThresholdValid=!0,e}return u(e,t),Object.defineProperty(e.prototype,"slowLogThreshold",{get:function(){return this.readonly||!this.logSavingEnabledList.includes(5)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"logSavingEnabledList",{get:function(){var t=this.model.logSavingEnabled||0;switch(t){case 0:return[];case 1:return[6,2];case 2:return[2];case 3:return[5,6];case 4:return[2,5];case 5:return[5];case 6:return[6];case 7:return[5,2,6];default:return[2]}},set:function(t){var e,n=0;switch(e=t.reduce((function(t,e){return t+e}),0),e){case 0:case 2:case 5:case 6:n=e;break;case 8:n=1;break;case 11:n=3;break;case 7:n=4;break;case 13:n=7;break;default:n=2;break}this.model.logSavingEnabled=n,t.includes(5)?this.model.slowLogThreshold=500:(this.model.slowLogThreshold="",this.isSlowLogThresholdValid=!0)},enumerable:!1,configurable:!0}),e.prototype.onStatusCodeChange=function(t){var e=this;"2"!==t&&(this.model.retryCode="",this.isRetryCodeValid=!0,this.$nextTick((function(){e.$refs.configform&&e.$refs.configform.validateField("retryCode",(function(){}))}))),"2"===t&&this.$nextTick((function(){e.$refs.configform&&e.$refs.configform.validateField("retryCode")}))},e.prototype.changeInputStatus=function(){this.isResourceCodeEnabled=Boolean(this.model.authFlag)},Object.defineProperty(e.prototype,"url",{get:function(){return kn(this.model.code||"")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this.value},set:function(t){this.$emit("input",t)},enumerable:!1,configurable:!0}),e.prototype.onSave=function(){var t,e=this;this.model.logSavingEnabled&&"false"!==this.model.enableRetry||(this.isRetryTimesValid=!0),null===(t=this.$refs.configform)||void 0===t||t.validate((function(t){return h(e,void 0,void 0,(function(){var e;return f(this,(function(n){return t?(e=p(p({},this.model),this.apiModel),this.$emit("on-save",e),[2]):[2,this.$message.warning("请完善配置信息")]}))}))}))},e.prototype.onCancel=function(){this.show=!1},e.prototype.mounted=function(){return h(this,void 0,void 0,(function(){return f(this,(function(t){return this.getEgovaApiTree(),this.getProjectList(),this.getCategoryList(),this.apiModel.projectId=this.info.projectId,this.apiModel.type="API",this.rulesValidate={categoryId:[{validator:this.validateCategoryId,trigger:"blur,change"}],name:[{validator:this.validateName,required:!1,trigger:"blur,change"}],code:[{validator:this.validateCode,required:!1,trigger:"blur,change"}],description:[{validator:this.validateDescription,required:!1,trigger:"blur,change"}],retryTimes:[{validator:this.validateRetryTimes,trigger:"blur,change"}],retryCode:[{validator:this.validateRetryCode,trigger:"blur,change"}],slowLogThreshold:[{validator:this.validateSlowLogThreshold,required:!1,trigger:"blur,change"}]},[2]}))}))},e.prototype.validateSlowLogThreshold=function(t,e,n){if(this.slowLogThreshold)return this.isSlowLogThresholdValid=!0,void n();var i=Number(e);isNaN(i)||i<500?(this.isSlowLogThresholdValid=!1,n(new Error("最小为500毫秒"))):(this.isSlowLogThresholdValid=!0,n())},e.prototype.validateCategoryId=function(t,e,n){e?(this.isCategoryIdValid=!0,n()):(this.isCategoryIdValid=!1,n(new Error("请选择所属分类")))},e.prototype.validateName=function(t,e,n){var i=String(e||"").trim();i?i.length>50?(this.isNameValid=!1,n(new Error("代理名称长度不能超过50"))):(this.isNameValid=!0,n()):(this.isNameValid=!1,n(new Error("请填写代理名称,不能为空")))},e.prototype.validateCode=function(t,e,n){var i=String(e||"").trim();i?i.length>80?(this.isCodeValid=!1,n(new Error("接口编码长度不能超过80"))):(this.isCodeValid=!0,n()):(this.isCodeValid=!1,n(new Error("请填写接口编码,不能为空")))},e.prototype.validateDescription=function(t,e,n){e&&e.length>150?(this.isDesValid=!1,n(new Error("描述长度不能超过150"))):(this.isDesValid=!0,n())},e.prototype.validateRetryTimes=function(t,e,n){if("false"===this.model.enableRetry)return this.isRetryTimesValid=!0,void n();var i=/(^[1-9]\d*$)/;i.test(e)?(this.isRetryTimesValid=!0,n()):(this.isRetryTimesValid=!1,n(new Error("请输入正整数")))},e.prototype.validateRetryCode=function(t,e,n){if("2"===this.statusCode)if(e&&""!==e.trim()){var i=e.split(",").map((function(t){return t.trim()})),r=i.every((function(t){return/^\d+$/.test(t)}));r?(this.isRetryCodeValid=!0,n()):(this.isRetryCodeValid=!1,n(new Error("格式不正确,为数字或英文逗号分隔的数字")))}else this.isRetryCodeValid=!1,n(new Error("请输入状态码"));else this.isRetryCodeValid=!0,n()},e.prototype.onLogSavingEnabledChange=function(t){this.model.logSavingEnabled=t},e.prototype.getCategoryList=function(){return h(this,void 0,void 0,(function(){var t,e;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.getCategoryList()];case 1:return t=n.sent(),t&&!t.hasError&&(e=(null===t||void 0===t?void 0:t.result)||[],e.length>0?(e.forEach((function(t){t.parentId||(t.parentId="virtual_root_directory")})),this.categoryList=[p(p({},e[0]),{id:"virtual_root_directory",children:e,name:"全部",expand:!0,parentId:null,parentName:null})]):this.categoryList=[{id:"virtual_root_directory",children:e,name:"全部",expand:!0,parentId:null,parentName:null}]),[2]}}))}))},e.prototype.getEgovaApiTree=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getEgovaApiTree()];case 1:return t=e.sent(),this.egovaApiTree=(null===t||void 0===t?void 0:t.result)||[],[2]}}))}))},e.prototype.getProjectList=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getProjectList()];case 1:return t=e.sent(),this.projectList=(null===t||void 0===t?void 0:t.result)||[],[2]}}))}))},e.prototype.freshApiTree=function(){var t,e;return h(this,void 0,void 0,(function(){var n,i;return f(this,(function(r){switch(r.label){case 0:if(!this.proxyName){try{null===(e=null===(t=this.$refs.configform)||void 0===t?void 0:t.resetFields)||void 0===e||e.call(t)}catch(o){console.warn("resetFields 执行失败:",o)}this.resetForm()}return this.show?this.apiModel.projectId&&this.show?(this.apiTree=this.projectTree||[],this.apiModel.typeId=this.info.id,this.onApiTreeSelect(this.info),[4,this.service.getApiRequestParams(this.apiModel.typeId)]):[2]:(this.readonly=!1,this.isAdding=!1,this.formTitle="流程配置详情",this.proxyName="",[2]);case 1:return n=r.sent(),this.apiParamList=(null===n||void 0===n?void 0:n.result.filter((function(t){return!t.disabled})))||[],[4,this.service.getProxyNameList(this.info.id)];case 2:return i=r.sent(),this.proxyList=(null===i||void 0===i?void 0:i.result)||[],[2]}}))}))},e.prototype.onSlowLogThresholdChange=function(t){this.$refs.configform.validateField("slowLogThreshold")},e.prototype.enableRetryChange=function(t,e){var n,i;"false"===t?(null===(n=this.$refs.configform)||void 0===n||n.validateField("retryTimes"),this.isRetryTimesReadonly=!0,this.model.retryTimes=void 0):"null"===t?(this.model.enableRetry="false",this.model.retryTimes=void 0,null===(i=this.$refs.configform)||void 0===i||i.validateField("retryTimes"),this.isRetryTimesReadonly=!0):this.isRetryTimesReadonly=!1},e.prototype.resetFields=function(){var t,e;if(this.proxyName||this.isAdding){try{null===(e=null===(t=this.$refs.configform)||void 0===t?void 0:t.resetFields)||void 0===e||e.call(t)}catch(n){}this.isAdding&&this.resetForm()}},e.prototype.onApiTreeSelect=function(t){var e;this.apiModel.path=(null!==(e=null===t||void 0===t?void 0:t.path)&&void 0!==e?e:null===t||void 0===t?void 0:t.url)||""},e.prototype.selectProxyName=function(t){this.formTitle="流程配置详情";var e=this.proxyList.filter((function(e){return e.id===t.value}))[0];this.model=p({},e),this.statusCode=this.model.retryCode?"2":"1",!0===this.model.enableRetry?this.model.enableRetry="true":!1===this.model.enableRetry&&(this.model.enableRetry="false"),this.isAdding=!1},e.prototype.selectCategory=function(t){this.model.categoryId=t.id},e.prototype.onCopy=function(t){var e=document.createElement("textarea");try{e.value=t,document.body.appendChild(e),e.select(),document.execCommand("Copy"),this.$message.success("复制成功")}catch(n){}finally{e.remove()}},e.prototype.resetForm=function(){this.model={name:this.info.name,code:"",categoryId:"",description:"",retryTimes:"",enableRetry:"false",authFlag:1,logSavingEnabled:2}},e.prototype.onAdd=function(){this.isAdding=!0,this.statusCode="1",this.proxyName="",this.formTitle="新增流程配置"},d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"value",void 0),d([Object(y["autowired"])(De)],e.prototype,"service",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"loading",void 0),d([Object(y["config"])({type:Object,default:{}})],e.prototype,"info",void 0),d([Object(y["config"])({type:Array,default:[]})],e.prototype,"projectTree",void 0),d([Object(y["watch"])("statusCode",{immediate:!0})],e.prototype,"onStatusCodeChange",null),d([Object(y["watch"])("model.authFlag",{immediate:!0})],e.prototype,"changeInputStatus",null),d([Object(y["watch"])("show")],e.prototype,"freshApiTree",null),d([Object(y["watch"])("slowLogThreshold",{immediate:!0})],e.prototype,"onSlowLogThresholdChange",null),d([Object(y["watch"])("model.enableRetry",{immediate:!0})],e.prototype,"enableRetryChange",null),d([Object(y["watch"])("isAdding",{immediate:!0})],e.prototype,"resetFields",null),e=d([Object(y["component"])({template:n("40aa"),components:{"u-tree-selector":J,"tips-table-label":xn}})],e),e}(y["Component"]),Dn=jn,Tn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.response=new nn,e.responseCache=new Map,e.loading=!1,e.showEnvironmentModal=!1,e.currentId="",e.paramList=[],e.errorLine=null,e.scriptView=!1,e.originId="",e.apiForm={envName:null,authName:null},e.showImportModal=!1,e.importObj={},e.showDrawer=!1,e.typeList=[{value:"GET",text:"GET"},{value:"POST",text:"POST"},{value:"PUT",text:"PUT"},{value:"DELETE",text:"DELETE"}],e.requertSettingTypeList=[{title:"参数",name:"params"},{title:"Headers",name:"headers"},{title:"授权管理",name:"v2security"},{title:"前置脚本",name:"pre-execution"},{title:"后置转换",name:"after-execution-transfer"},{title:"后置脚本",name:"after-execution-script"}],e.rules={envName:[{required:!1,validator:e.validateEnvName,trigger:"blur"}],authName:[{required:!1,validator:e.validateAuthName,trigger:"blur"}]},e.currentRequestSettingType=e.requertSettingTypeList[0],e.formData=new FormData,e}return u(e,t),e.prototype.mounted=function(){this.getEnvironmentParamList()},e.prototype.onClickRequertSettingTpye=function(t){this.currentRequestSettingType=t},e.prototype.onClickRequertSettingSubTpye=function(t,e){this.currentRequestSettingType=t.children.find((function(t){return t.name===e}))},e.prototype.onRun=function(){var t,e,n,i,r,o;return h(this,void 0,void 0,(function(){var a,s,c,l,u,d,h,m=this;return f(this,(function(f){switch(f.label){case 0:return this.loading=!0,a=[],s=[],(null===(t=this.interfaceModel.formParams)||void 0===t?void 0:t.length)>0&&(a=this.interfaceModel.formParams.filter((function(t){return!t.disabled}))),(null===(e=this.interfaceModel.requestHeaders)||void 0===e?void 0:e.length)>0&&(s=this.interfaceModel.requestHeaders.filter((function(t){return!t.disabled}))),(null===(n=this.interfaceModel.environmentParam)||void 0===n?void 0:n.length)||(c=this.paramList.findIndex((function(t){return t.id===m.interfaceModel.info.envId})),this.interfaceModel.environmentParam=c>-1?this.paramList[c]:null),l=null,u=a.filter((function(t){return"FILE"===t.valueType})),u.length?(d=p(p({},this.interfaceModel),{formParams:a,requestHeaders:s}),h=new FormData,u.forEach((function(t){h.append(t.name,m.formData.get(t.indexFlag))})),h.append("_model",JSON.stringify(d)),[4,this.service.runWithFile(this.interfaceModel.info.id,h)]):[3,2];case 1:return l=f.sent(),[3,4];case 2:return[4,this.service.run(this.interfaceModel.info.id,p(p({},this.interfaceModel),{formParams:a,requestHeaders:s}))];case 3:l=f.sent(),f.label=4;case 4:return this.loading=!1,this.response=(null===l||void 0===l?void 0:l.result)||new nn,l.hasError&&(this.response.code=400,this.response.errorMessage=l.message),this.responseCache.set(this.interfaceModel.info.id,this.response),(null===(i=this.response.errorLineNumbers)||void 0===i?void 0:i.length)?this.errorLine=this.response.errorLineNumbers:this.errorLine=null,this.originId=(null===(o=null===(r=this.interfaceModel)||void 0===r?void 0:r.info)||void 0===o?void 0:o.id)||"",[2]}}))}))},e.prototype.onProcessSave=function(t){return h(this,void 0,void 0,(function(){return f(this,(function(e){switch(e.label){case 0:return this.loading=!0,[4,this.service.save(t)];case 1:return e.sent(),this.loading=!1,this.showDrawer=!1,[2]}}))}))},e.prototype.onSave=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.loading=!0,t=this.interfaceModel.$clone(),t.name&&t.name!==t.info.name&&(t.info.name=t.name),[4,this.service.saveApiInfo(t)];case 1:return e.sent(),this.$publish("api://project-detail-save"),this.loading=!1,[2]}}))}))},e.prototype.interfaceModelChange=function(){this.response=this.responseCache.get(this.interfaceModel.info.id)||new nn},e.prototype.showImportModalChange=function(t){t||this.$refs.import.resetFields()},e.prototype.onImport=function(t){return h(this,void 0,void 0,(function(){var e,n=this;return f(this,(function(i){return e=new FileReader,e.readAsText(t,"UTF-8"),e.onload=function(t){return h(n,void 0,void 0,(function(){var e,n,i,r,o,a,s,c;return f(this,(function(l){e=t.target.result,n=null;try{n=JSON.parse(e),this.importObj=n}catch(u){return this.$message.error("JSON格式有误"),[2,!1]}return(null===(i=null===n||void 0===n?void 0:n.authentication)||void 0===i?void 0:i.name)||(null===(r=null===n||void 0===n?void 0:n.environmentParam)||void 0===r?void 0:r.name)?(this.apiForm.envName=(null===(o=null===n||void 0===n?void 0:n.environmentParam)||void 0===o?void 0:o.name)?null===(a=null===n||void 0===n?void 0:n.environmentParam)||void 0===a?void 0:a.name:null,this.apiForm.authName=(null===(s=null===n||void 0===n?void 0:n.authentication)||void 0===s?void 0:s.name)?null===(c=null===n||void 0===n?void 0:n.authentication)||void 0===c?void 0:c.name:null,this.showImportModal=!0):this.saveImportData(n),[2]}))}))},[2,!1]}))}))},e.prototype.saveImportData=function(t){var e,n;return h(this,void 0,void 0,(function(){var i,r,o;return f(this,(function(a){switch(a.label){case 0:return(null===(e=null===t||void 0===t?void 0:t.authentication)||void 0===e?void 0:e.name)||(null===(n=null===t||void 0===t?void 0:t.environmentParam)||void 0===n?void 0:n.name)?[4,this.$refs.import.validate()]:[3,2];case 1:if(i=a.sent(),!i)return this.$message.warning("验证不通过"),[2];a.label=2;case 2:return r=this.interfaceModel.info.id,t.id=r,t.info.id=r,t.info.name=this.interfaceModel.info.name,t.info.projectId=this.projectId,t.info.categoryId=this.interfaceModel.info.categoryId,t.authentication&&(t.authentication.projectId=this.projectId),t.authentication&&(t.authentication.name=this.apiForm.authName),t.environmentParam&&(t.environmentParam.projectId=this.projectId),t.environmentParam&&(t.environmentParam.name=this.apiForm.envName),t.convertConfig&&(t.convertConfig.apiId=r),["fieldMappings","postScripts","preScripts","queryParams","formParams"].forEach((function(e){null===t||void 0===t||t[e].forEach((function(t){t.apiId=r}))})),null===t||void 0===t||t.requestHeaders.forEach((function(t){t.belongId=r})),[4,this.service.onImportAvr(t)];case 3:return o=a.sent(),(null===o||void 0===o?void 0:o.hasError)?[2]:(this.showImportModal=!1,this.getEnvironmentParamList(),this.$publish("api://project-detail-save-import"),[2])}}))}))},e.prototype.onExport=function(){var t=JSON.stringify(this.interfaceModel,null,4),e=window.URL||window.webkitURL||window,n=new Blob([t]),i=document.createElement("a");i.href=e.createObjectURL(n),i.download=this.interfaceModel.info.name,i.click()},e.prototype.validateEnvName=function(t,e,n){var i,r,o,a,s;return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.onValidateImport({projectId:this.projectId,envName:(null===(i=this.apiForm)||void 0===i?void 0:i.envName)?null===(r=this.apiForm)||void 0===r?void 0:r.envName:null,authName:(null===(o=this.apiForm)||void 0===o?void 0:o.authName)?null===(a=this.apiForm)||void 0===a?void 0:a.authName:null})];case 1:return t=e.sent(),(null===t||void 0===t?void 0:t.hasError)||(null===(s=null===t||void 0===t?void 0:t.result)||void 0===s?void 0:s.envNameRepeat)?n(new Error("环境变量名重复")):n(),[2]}}))}))},e.prototype.validateAuthName=function(t,e,n){var i,r,o,a,s;return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.onValidateImport({projectId:this.projectId,envName:(null===(i=this.apiForm)||void 0===i?void 0:i.envName)?null===(r=this.apiForm)||void 0===r?void 0:r.envName:null,authName:(null===(o=this.apiForm)||void 0===o?void 0:o.authName)?null===(a=this.apiForm)||void 0===a?void 0:a.authName:null})];case 1:return t=e.sent(),(null===t||void 0===t?void 0:t.hasError)||(null===(s=null===t||void 0===t?void 0:t.result)||void 0===s?void 0:s.authNameRepeat)?n(new Error("授权名重复")):n(),[2]}}))}))},e.prototype.cancleModify=function(){this.$refs.import.resetFields(),this.showImportModal=!1},e.prototype.onVersion=function(){var t=(this.interfaceModel.info||{}).id;t?this.$router.push({name:"project-version",query:{id:t}}):this.$message.info("尚未保存,无历史版本")},e.prototype.onCurrentId=function(t){this.currentId=t},e.prototype.getEnvironmentParamList=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getVariableList({projectId:this.projectId})];case 1:return t=e.sent(),(null===t||void 0===t?void 0:t.hasError)||(this.paramList=t.result),[2]}}))}))},e.prototype.onAddEnvParam=function(){this.$refs.addEnvParamSelect.visible=!1,this.showEnvironmentModal=!0},e.prototype.onScriptRun=function(){return h(this,void 0,void 0,(function(){return f(this,(function(t){switch(t.label){case 0:return[4,this.onRun()];case 1:return t.sent(),[2]}}))}))},e.prototype.onScriptMax=function(t){this.scriptView=t},e.prototype.onProcess=function(){this.showDrawer=!0},d([T(De)],e.prototype,"service",void 0),d([Object(y["config"])({default:function(){return new ze}})],e.prototype,"interfaceModel",void 0),d([Object(y["config"])({default:!0})],e.prototype,"lengthwise",void 0),d([Object(y["config"])({default:""})],e.prototype,"projectId",void 0),d([Object(y["config"])({default:{}})],e.prototype,"projectTree",void 0),d([Object(y["watch"])("interfaceModel",{immediate:!0})],e.prototype,"interfaceModelChange",null),d([Object(y["watch"])("showImportModal")],e.prototype,"showImportModalChange",null),e=d([Object(y["component"])({template:n("f40e"),components:{response:on,params:hn,headers:ln,"pre-execution":Ye,"after-execution-transfer":sn,"after-execution-script":Ze,v2security:bn,"u-environment-modal":Be,"u-process-drawer":Dn}})],e),e}(y["Component"]),On=Tn,En=(n("948e"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.visible=!1,e}return u(e,t),e.prototype.onSelect=function(t,e){this.$emit("on-select",e),this.visible=!1},e.prototype.onClear=function(){this.onSelect([],{})},e.prototype.renderContent=function(t,e){e.root,e.node;var n=e.data;return t("div",{class:"group-select-tree-node"},[t("i",{attrs:{class:"api-icon icon-interface"}}),t("p",{attrs:{title:n.title,class:"api-group-select-tree-node-title"}},n.title)])},d([Object(y["config"])({default:function(){return[]}})],e.prototype,"data",void 0),d([Object(y["config"])({default:function(){return new Object}})],e.prototype,"current",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"isSelector",void 0),e=d([Object(y["component"])({template:n("c01f"),components:{}})],e),e}(y["Component"])),Pn=En,Ln=(n("8ea2"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.keyword="",e.apiList=[],e.isEmpty=!0,e.allSelect=!1,e.variableList=[],e.securityList=[],e.set=new Set,e.type="env",e.formData={envId:"",authId:""},e}return u(e,t),Object.defineProperty(e.prototype,"rules",{get:function(){return"env"===this.type?{envId:[{required:!0,message:"请选择",trigger:"change"}]}:"auth"===this.type?{authId:[{required:!0,message:"请选择",trigger:"change"}]}:{envId:[{required:!0,message:"请选择",trigger:"change"}],authId:[{required:!0,message:"请选择",trigger:"change"}]}},enumerable:!1,configurable:!0}),e.prototype.onFilter=function(t){var e=this;this.apiList=this.data.$clone().filter((function(t){if(t.name.indexOf(e.keyword)>-1)return t})),this.apiList.forEach((function(t){e.set.has(t.id)&&(t.selected=!0)}))},e.prototype.onShowChange=function(t){return h(this,void 0,void 0,(function(){return f(this,(function(e){return t?(this.getVariableList(),this.apiList=this.data.$clone()):(this.allSelect=!1,this.set.clear(),this.$refs["batch-api-form"].resetFields()),[2]}))}))},e.prototype.onEmpty=function(t){this.isEmpty=!!t},e.prototype.getVariableList=function(){return h(this,void 0,void 0,(function(){var t,e;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.getVariableList({projectId:this.projectId})];case 1:return t=n.sent(),[4,this.service.getSecurityList({projectId:this.projectId})];case 2:return e=n.sent(),(null===t||void 0===t?void 0:t.hasError)||(this.variableList=t.result||[]),(null===e||void 0===e?void 0:e.hasError)||(this.securityList=e.result||[]),[2]}}))}))},e.prototype.onSelect=function(t,e){t?this.set.add(e.id):this.set.delete(e.id)},e.prototype.onAllSelect=function(t){var e=this;t?this.apiList.forEach((function(t){t.selected=!0,e.set.add(t.id)})):this.apiList.forEach((function(t){t.selected=!1,e.set.delete(t.id)}))},e.prototype.onCancel=function(){this.keyword="",this.value=!1},e.prototype.onSave=function(){return h(this,void 0,void 0,(function(){var t,e,n,i;return f(this,(function(r){switch(r.label){case 0:return this.set.size?[4,this.$refs["batch-api-form"].validate()]:[2,this.$message.warning("请选择api")];case 1:return t=r.sent(),t?(e={ids:Array.from(this.set)},"env"!==this.type?[3,3]:(e.envId="empty"===this.formData.envId?"":this.formData.envId,[4,this.service.onBatchEnv(e)])):[2];case 2:return n=r.sent(),n&&!n.hasError&&(this.$message.success("保存成功!"),this.$emit("on-success",!0),this.$publish("api://batch-api-refresh",e),this.onCancel()),[2];case 3:return"auth"!==this.type?[3,5]:(e.authId="empty"===this.formData.authId?"":this.formData.authId,[4,this.service.onBatchAuth(e)]);case 4:return n=r.sent(),n&&!n.hasError&&(this.$message.success("保存成功!"),this.$publish("api://batch-api-refresh",p(p({},e),{isEnvAndAuth:!0})),this.onCancel()),[2];case 5:return[4,this.service.onBatchEnv(p(p({},e),{envId:"empty"===this.formData.envId?"":this.formData.envId}))];case 6:return n=r.sent(),[4,this.service.onBatchAuth(p(p({},e),{authId:"empty"===this.formData.authId?"":this.formData.authId}))];case 7:return i=r.sent(),(null===n||void 0===n?void 0:n.hasError)||(null===i||void 0===i?void 0:i.hasError)||(this.$message.success("保存成功!"),this.$emit("on-success",!0),this.$publish("api://batch-api-refresh",p(p({},e),{isEnvAndAuth:!0})),this.onCancel()),[2]}}))}))},d([T(De)],e.prototype,"service",void 0),d([Object(pt["PropSync"])("visiable",{default:!1})],e.prototype,"value",void 0),d([Object(y["config"])({default:[]})],e.prototype,"data",void 0),d([Object(y["config"])({default:function(){return[]}})],e.prototype,"projectId",void 0),d([Object(y["watch"])("value")],e.prototype,"onShowChange",null),d([Object(y["watch"])("data.length",{immediate:!0})],e.prototype,"onEmpty",null),e=d([Object(y["component"])({template:n("88af"),components:{}})],e),e}(y["Component"])),Mn=Ln,An=(n("688a"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.onClick=function(){if(this.data.children)return this.data.expand=!this.data.expand;this.$emit("on-click-interface",this.data)},Object.defineProperty(e.prototype,"isLeaf",{get:function(){return!this.data.children},enumerable:!1,configurable:!0}),e.prototype.onClickAction=function(t){t&&this.$emit("on-"+t,this.data)},e.prototype.onDelete=function(t){this.$emit("on-"+t,this.data)},d([Object(y["config"])({default:function(){return new Object}})],e.prototype,"data",void 0),e=d([Object(y["component"])({template:n("d953"),components:{"u-confirm":Yt}})],e),e}(y["Component"])),Nn=An,qn=(n("9355"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.projectList=[],e.data=[],e.groupTree=[],e.parent={},e.renderData=[],e.keyword="",e.type="all",e.moveType="group",e.MOVE_RESULT={BIND_JOB:"更新失败,API已被任务绑定,不允许变更项目信息",BIND_ENV:"更新失败,API存在关联环境变量,请确认变更项目信息时是否复制环境变量",BIND_NONE:"API未被任务绑定,且API不存在关联环境变量,更新成功",NOT_UPDATED_PROJECT:"API项目信息未改变,更新成功"},e.typeList=[{value:"GET",text:"GET"},{value:"POST",text:"POST"},{value:"PUT",text:"PUT"},{value:"DELETE",text:"DELETE"}],e.showInterfaceModal=!1,e.showGroupModal=!1,e.showBatchModal=!1,e.categoryApiList=[],e.interfaceModel={method:"GET",authFlag:1},e.showCopyModal=!1,e.copyName="",e.group={},e.showMoveModal=!1,e}return u(e,t),e.prototype.mounted=function(){var t=this;this.loadProjectList(),this.$subscribe("api://project-detail-save",(function(){t.init()}))},e.prototype.renderContent=function(t,e){e.root,e.node;var n=e.data;return t(Nn,{props:{data:n},on:{"on-edit-interface":this.onEditInterface,"on-delete-interface":this.onDeleteClick,"on-edit-attribute":this.onBatchEdit,"on-copy-interface":this.onCopyInterface,"on-add-interface":this.onAddInterface,"on-delete-group":this.onDeleteGroup,"on-edit-group":this.onEditGroup,"on-click-interface":this.onCheckInterface}})},e.prototype.onCheckInterface=function(t){this.$emit("on-check-interface",t)},e.prototype.onEditInterface=function(t){this.parent={id:t.parentId,name:t.parentName},this.interfaceModel=t.$clone(),this.moveType="interface",this.showInterfaceModal=!0,this.onChangeProject(!1)},e.prototype.getApis=function(t){var e,n=this;if(null===(e=null===t||void 0===t?void 0:t.apis)||void 0===e||e.forEach((function(t){n.categoryApiList.push(t)})),null===t||void 0===t?void 0:t.children)for(var i=0,r=null===t||void 0===t?void 0:t.children;i<r.length;i++){var o=r[i];this.getApis(o)}},e.prototype.onBatchEdit=function(t){var e,n;if(this.categoryApiList=[],this.getApis(t.$clone()),!(null===(e=this.categoryApiList)||void 0===e?void 0:e.length))return this.$Message.warning("该文件夹下无接口信息,无法批量修改!");null===(n=this.categoryApiList)||void 0===n||n.map((function(t){return t.selected=!1,t})),this.showBatchModal=!0},e.prototype.onDeleteInterface=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.deleteApi(t.id)];case 1:return e=n.sent(),e&&!e.hasError&&(this.init(),this.$emit("on-delete-interface",t)),[2]}}))}))},e.prototype.onDeleteClick=function(t){var e=this;this.$modal.confirm({title:"确定要删除【".concat(t.name,"】吗?"),onOk:function(){return h(e,void 0,void 0,(function(){return f(this,(function(e){return this.onDeleteInterface(t),[2]}))}))}})},e.prototype.onCopyInterface=function(t){this.parent={},this.interfaceModel=t,this.copyName=this.interfaceModel.name+"_copy",this.parent.id=this.interfaceModel.categoryId,this.parent.name=this.interfaceModel.parentName,this.showCopyModal=!0},e.prototype.onCopy=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.copyName?this.parent.name?[4,this.service.copyApi(this.interfaceModel.id,this.copyName,this.interfaceModel.projectId,this.parent.id)]:[2,this.$message.warning("请选择分组")]:[2,this.$message.warning("请填写接口名称")];case 1:if(t=e.sent(),t&&!t.hasError)this.showCopyModal=!1,this.init();else if(t&&t.hasError&&t.message)return[2,this.$message.error(t.message)];return this.interfaceModel={},this.copyName="",this.parent={},[2]}}))}))},e.prototype.onCopyCancel=function(){this.interfaceModel={},this.copyName="",this.parent={},this.showCopyModal=!1},e.prototype.onMoveCancel=function(){this.parent={},this.interfaceModel={},this.group={},this.showMoveModal=!1},e.prototype.onAddInterface=function(t){this.interfaceModel={method:"GET",authFlag:1,categoryId:t.id,projectId:this.projectId},this.parent=t,this.showInterfaceModal=!0,this.onChangeProject(!1)},e.prototype.onSaveInterface=function(){return h(this,void 0,void 0,(function(){var t,e,n;return f(this,(function(i){switch(i.label){case 0:return this.interfaceModel.categoryId=this.parent.id,this.interfaceModel.name?this.interfaceModel.categoryId?this.interfaceModel.name&&this.interfaceModel.name.length>50?(this.$message.error("接口名称长度不能超过50"),this.showInterfaceModal=!0,[2]):this.interfaceModel.id?[4,this.service.checkApi(this.interfaceModel)]:[3,2]:(this.$message.error("接口位置不能为空"),[2]):(this.$message.error("接口名称不能为空"),[2]);case 1:return t=i.sent(),t&&!t.hasError&&(e=t.result,this.showInterfaceModal=!1,["BIND_NONE","NOT_UPDATED_PROJECT"].includes(e)?(this.$message.success("保存接口成功"),this.$emit("on-reset"),this.$publish("api://project-detail-save")):"BIND_JOB"===e?this.$message.error(this.MOVE_RESULT.BIND_JOB):"BIND_ENV"===e&&(this.showMoveModal=!0)),[3,4];case 2:return[4,this.service.saveApi(this.interfaceModel)];case 3:n=i.sent(),n&&!n.hasError&&(this.showInterfaceModal=!1,this.$emit("on-edit-interface-success",this.interfaceModel),this.init()),i.label=4;case 4:return[2]}}))}))},e.prototype.onGourpCancel=function(){this.showGroupModal=!1},e.prototype.onInterfaceCancel=function(){this.showInterfaceModal=!1},e.prototype.onDeleteGroup=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.deleteCategory(t.id)];case 1:return e=n.sent(),e&&!e.hasError&&this.init(),[2]}}))}))},e.prototype.onEditGroup=function(t){this.parent={id:t.parentId,name:t.parentName},this.group=t.$clone(),this.moveType="group",this.showGroupModal=!0,this.onChangeProject(!0)},e.prototype.onAddGroup=function(){this.group={projectId:this.projectId},this.showGroupModal=!0,this.onChangeProject(!0)},e.prototype.onFilter=function(){this.keyword||"all"!==this.type?this.renderData=this.filterData(this.data.$clone()):this.renderData=this.data.$clone()},e.prototype.match=function(t){var e=!this.keyword||-1!==(t.title||t.name).indexOf(this.keyword),n="all"===this.type||!t.method||this.type===t.method,i=e&&n,r=!1;if(t.children&&t.children.length>0)for(var o=0,a=t.children;o<a.length;o++){var s=a[o],c=this.match(s);if(c.matched||c.childrenMatched){r=!0;break}}var l=i||r;return{matched:l,childrenMatched:r}},e.prototype.filterData=function(t){var e=this;return t&&Array.isArray(t)?t.map((function(t){var n=t.$clone?t.$clone():p({},t),i=e.match(t);return i.matched?(n.children&&n.children.length>0&&(n.expand=!0,n.children=e.filterData(n.children)),n):i.childrenMatched?(n.expand=!0,n.children&&n.children.length>0&&(n.children=e.filterData(n.children)),n):null})).filter((function(t){return null!==t})):t},e.prototype.onSelectParent=function(t){this.parent=t},e.prototype.onSaveGroup=function(){return h(this,void 0,void 0,(function(){var t,e,n,i;return f(this,(function(r){switch(r.label){case 0:return this.group.parentId=this.parent.id,this.group.parentName=this.parent.name,this.group.type="api",this.group.name?this.group.id&&this.group.id===this.group.parentId?(this.$message.warning("所属分组不能选中自身"),[2]):(t=this.isChildNode(this.group,this.group.parentId),t?(this.$message.warning("所属分组不能选中自身的子节点"),[2]):this.group.id?[4,this.service.checkCategory(this.group)]:[3,2]):(this.$message.warning("请填写分组名称"),[2]);case 1:return e=r.sent(),e&&!e.hasError&&(n=e.result,this.showGroupModal=!1,["BIND_NONE","NOT_UPDATED_PROJECT"].includes(n)?(this.$message.success("保存分组成功"),"BIND_NONE"===n&&this.$emit("on-reset"),this.$publish("api://project-detail-save")):"BIND_JOB"===n?this.$message.error(this.MOVE_RESULT.BIND_JOB):"BIND_ENV"===n&&(this.showMoveModal=!0)),[3,4];case 2:return[4,this.service.saveCategory(this.group)];case 3:i=r.sent(),i&&!i.hasError&&(this.showGroupModal=!1,this.init()),r.label=4;case 4:return[2]}}))}))},e.prototype.init=function(){return h(this,void 0,void 0,(function(){var t,e,n;return f(this,(function(i){switch(i.label){case 0:return this.projectId?[4,this.service.getApiTree(this.projectId)]:[2];case 1:return t=i.sent(),this.data=(null===t||void 0===t?void 0:t.result)||[],e=this.data.$clone(),this.$emit("tree-data",e),V.handlerTreeData2(e,"name"),this.groupTree=e,e=this.data.$clone(),n=this.renderData,V.handlerTreeData2(this.data,"name","apis"),n&&n.length>0&&this.data.forEach((function(t){n.forEach((function(e){if(t.id===e.id)return t.expand=e.expand}))})),this.renderData=this.data.$clone(),[2]}}))}))},e.prototype.onBatchSuccess=function(t){this.$emit("on-success",t)},e.prototype.isChildNode=function(t,e){if(!t.children||0===t.children.length)return!1;for(var n=0,i=t.children;n<i.length;n++){var r=i[n];if(r.id===e)return!0;if(this.isChildNode(r,e))return!0}return!1},e.prototype.loadProjectList=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.projectService.getProjectList({})];case 1:return t=e.sent(),this.projectList=(null===t||void 0===t?void 0:t.result)||[],[2]}}))}))},e.prototype.onChangeProject=function(t,e){return void 0===e&&(e=!1),h(this,void 0,void 0,(function(){var n,i;return f(this,(function(r){switch(r.label){case 0:return e&&(this.parent={id:null,name:null}),t?(this.group.parentId=null,this.group.parentName=null,[4,this.service.getApiTree(this.group.projectId)]):[3,2];case 1:return n=r.sent(),[3,4];case 2:return this.interfaceModel.categoryId=null,[4,this.service.getApiTree(this.interfaceModel.projectId)];case 3:n=r.sent(),r.label=4;case 4:return i=(null===n||void 0===n?void 0:n.result)||[],V.handlerTreeData2(i,"name"),this.groupTree=i,[2]}}))}))},e.prototype.onMoveOk=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return this.showMoveModal=!1,"group"!==this.moveType?[3,2]:[4,this.service.updateMoveCategory(this.group,t)];case 1:return e=n.sent(),[3,4];case 2:return"interface"!==this.moveType?[3,4]:[4,this.service.updateMoveApi(this.interfaceModel,t)];case 3:e=n.sent(),n.label=4;case 4:return e&&!e.hasError&&(this.$publish("api://project-detail-save"),this.$emit("on-reset")),[2]}}))}))},d([Object(y["config"])({default:function(){return[]}})],e.prototype,"projectId",void 0),d([T(De)],e.prototype,"service",void 0),d([T(ee)],e.prototype,"projectService",void 0),d([Object(y["watch"])("projectId",{immediate:!0})],e.prototype,"init",null),e=d([Object(y["component"])({template:n("193e"),components:{"u-group-select":Pn,"u-batch-modal":Mn}})],e),e}(y["Component"])),$n=qn,Rn=n("ed38"),_n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.openInterfaceList=[],e.active={},e.lengthwise=!0,e.showGlobalModal=!1,e.showCurrentModal=!1,e.showSecurity=!1,e.showEnvironmentModal=!1,e.projectId="",e.projectName="",e.split="340px",e.loading=!1,e.swiperOption={slidesPerView:"auto",spaceBetween:0},e.current={},e.projectTree=[],e}return u(e,t),e.prototype.onClickSlide=function(t){this.swiper.slideTo(t,1e3,!1),this.onClickTag(this.openInterfaceList[t])},e.prototype.onSwiperReadied=function(t){this.swiper=t},e.prototype.getProjectInfo=function(){var t,e;return h(this,void 0,void 0,(function(){var n;return f(this,(function(i){switch(i.label){case 0:return this.projectId=null===(t=this.$route.params)||void 0===t?void 0:t.id,this.projectId?[4,this.service.projectInfo(this.projectId)]:[3,2];case 1:n=i.sent(),this.projectName=(null===(e=null===n||void 0===n?void 0:n.result)||void 0===e?void 0:e.name)||"",i.label=2;case 2:return[2]}}))}))},e.prototype.onCheckInterface=function(t,e){return h(this,void 0,void 0,(function(){var n,i,r,o,a,s,c=this;return f(this,(function(l){switch(l.label){case 0:if(this.current=t,n={},e){try{i=window.sessionStorage.getItem("api_project_".concat(t.id)),i&&(n=JSON.parse(i))}catch(u){}n=p(p({},n),{name:t.name,id:t.id}),!n.fieldMappings&&(n.fieldMappings=[]),!n.pathParams&&(n.pathParams=[]),!n.queryParams&&(n.queryParams=[]),!n.formParams&&(n.formParams=[]),!n.preScripts&&(n.preScripts=[]),!n.postScripts&&(n.postScripts=[]),!n.requestHeaders&&(n.requestHeaders=[]),!n.responseParams&&(n.responseParams=[])}return r=new Set(this.openInterfaceList.map((function(t){return t.id}))),r.has(t.id)?[3,4]:(this.loading=!0,o=void 0,e?(o=n,[3,3]):[3,1]);case 1:return[4,this.service.apiInfo(t.id)];case 2:a=l.sent(),o=p(p({},a.result||{}),{name:t.name,id:t.id}),l.label=3;case 3:this.openInterfaceList.push(o),this.loading=!1,l.label=4;case 4:return s=this.openInterfaceList.findIndex((function(e){return e.id===t.id})),e&&this.openInterfaceList.splice(s,1,n),this.active=this.openInterfaceList[s],this.$nextTick((function(){c.swiper.slideTo(s,1e3,!1)})),[2]}}))}))},e.prototype.onEditInterfaceSuccess=function(t){var e=this.openInterfaceList.findIndex((function(e){return e.id===t.id}));e>-1&&(this.openInterfaceList[e].name=t.name)},e.prototype.onDeleteInterface=function(t){var e=this.openInterfaceList.findIndex((function(e){return e.id===t.id}));e>-1&&this.onClose(e)},e.prototype.onClose=function(t){this.openInterfaceList.splice(t,1),0===this.openInterfaceList.length?this.active={}:t>0?(this.active=this.openInterfaceList[t-1],this.swiper.slideTo(t-1,1e3,!1)):(this.active=this.openInterfaceList[0],this.swiper.slideTo(0,1e3,!1))},e.prototype.onReset=function(){this.openInterfaceList.splice(0),this.active={}},e.prototype.onClickTag=function(t){this.active=t},e.prototype.onToggleLayout=function(){this.lengthwise=!this.lengthwise},e.prototype.onSecurity=function(){this.showSecurity=!0},e.prototype.onOpenGlobalModal=function(){this.showGlobalModal=!0},e.prototype.onOpenCurrentModal=function(){this.showCurrentModal=!0},e.prototype.onOpenEnvModal=function(){this.showEnvironmentModal=!0},e.prototype.mounted=function(){var t=this;this.getProjectInfo();var e=this.$route.query,n=e.apiId,i=e.apiName,r=e.resume;n&&this.onCheckInterface({id:n,name:i},"true"===r),this.$subscribe("api://project-detail-save-import",(function(){return h(t,void 0,void 0,(function(){var t,e,n=this;return f(this,(function(i){switch(i.label){case 0:return[4,this.service.apiInfo(this.current.id)];case 1:return t=i.sent(),e=p(p({},t.result||{}),{name:this.current.name,id:this.current.id}),this.active=e,this.openInterfaceList[this.openInterfaceList.findIndex((function(t){return t.id===n.current.id}))]=e,[2]}}))}))})),this.$subscribe("api://batch-api-refresh",(function(e){return h(t,void 0,void 0,(function(){var t,n,i,r,o,a,s,c,l=this;return f(this,(function(u){switch(u.label){case 0:if(t=e.get("ids"),n=e.get("isEnvAndAuth")||!1,i=[],this.openInterfaceList.forEach((function(e){t.includes(e.id)&&i.push({id:e.id,name:e.name})})),!i.length)return[3,5];r=function(t){var e,n,i;return f(this,(function(r){switch(r.label){case 0:return[4,o.service.apiInfo(t.id)];case 1:return e=r.sent(),n=p(p({},e.result||{}),{name:t.name,id:t.id}),i=o.openInterfaceList.findIndex((function(e){return e.id===t.id})),o.openInterfaceList.splice(i,1,n),[2]}}))},o=this,a=0,s=i,u.label=1;case 1:return a<s.length?(c=s[a],[5,r(c)]):[3,4];case 2:u.sent(),u.label=3;case 3:return a++,[3,1];case 4:this.active=this.openInterfaceList[this.openInterfaceList.findIndex((function(t){return t.id===l.current.id}))],n&&this.$publish("api://security-list-refresh",{isBatchRefresh:!0}),u.label=5;case 5:return[2]}}))}))}))},e.prototype.activated=function(){var t=this.$route.query,e=t.apiId,n=t.apiName,i=t.resume;"true"===i&&this.onCheckInterface({id:e,name:n},"true"===i)},e.prototype.onBack=function(){this.$router.push({name:"project-list"})},e.prototype.onBatchSuccess=function(t){t&&this.getProjectInfo()},e.prototype.onEnvironmentRefresh=function(){this.$refs["interface-settings"]&&this.$refs["interface-settings"].getEnvironmentParamList()},e.prototype.getTreeData=function(t){this.projectTree=t},d([T(De)],e.prototype,"service",void 0),e=d([Object(y["component"])({name:"ApiProjectDetail",template:n("d63e"),components:{"u-tree":$n,"u-settings":On,"u-global-modal":$e,"u-current-modal":Ne,"u-environment-modal":Be,Swiper:Rn["Swiper"],SwiperSlide:Rn["SwiperSlide"],"u-security-modal":vn},directives:{swiper:Rn["directive"]}})],e),e}(y["View"]),Fn=_n;a.a.use(c.a)},3117:function(t,e,n){"use strict";var i=n("720f"),r=n("d803"),o=n("485f"),a=n("cf8c").indexOf,s=n("929a"),c=i([].push);t.exports=function(t,e){var n,i=o(t),l=0,u=[];for(n in i)!r(s,n)&&r(i,n)&&c(u,n);while(e.length>l)r(i,n=e[l++])&&(~a(u,n)||c(u,n));return u}},"327c":function(t,e,n){"use strict";var i=n("ce97");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},3497:function(t,e,n){},"35e3":function(t,e){t.exports='<editor class="code-edit" v-model="code" :options="option" @init="editorInit" :lang="lang" width="100%" height="100%"></editor>\r\n'},"37f5":function(t,e){t.exports='<article class="catalog-params">\r\n <header>\r\n 请求体为 JSON 数组,每一个 JSON 对象应符合如下的格式:\r\n </header>\r\n <i-table height="200" class="diy-table" :columns="columns" :data="dataList">\r\n <template slot-scope="{ row,index }" slot="type">\r\n {{(row.typeDict || {}).text}}\r\n </template>\r\n <template slot-scope="{ row,index }" slot="required">\r\n {{row.required ? "是": "否"}}\r\n </template>\r\n </i-table>\r\n</article>\r\n'},3955:function(t,e,n){"use strict";var i=n("d803"),r=n("842d"),o=n("a564"),a=n("585e");t.exports=function(t,e,n){for(var s=r(e),c=a.f,l=o.f,u=0;u<s.length;u++){var p=s[u];i(t,p)||n&&i(n,p)||c(t,p,l(e,p))}}},"39d5":function(t,e,n){"use strict";var i=n("b699"),r=n("6a10"),o=n("9195"),a=n("9b7f"),s=n("a68e"),c=r.aTypedArray,l=r.getTypedArrayConstructor,u=r.exportTypedArrayMethod,p=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();u("with",{with:function(t,e){var n=c(this),r=a(t),u=o(n)?s(e):+e;return i(n,l(n),r,u)}}["with"],!p)},"3a71":function(t,e){t.exports='<i-collapse v-model="value" simple class="api-params">\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 <main>\r\n <i-table\r\n height="200"\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 disabled\r\n :value="!queryDataList[index].disabled"\r\n >\r\n </i-checkbox>\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 <main>\r\n <i-table\r\n height="200"\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 disabled\r\n :value="!bodyDataList[index].disabled"\r\n >\r\n </i-checkbox>\r\n </template>\r\n </i-table>\r\n <json-viewer\r\n v-else\r\n :value="model.json"\r\n boxed\r\n :copyable="{copyText: \'复制\', copiedText: \'已复制\'}"\r\n :expanded="true"\r\n :expand-depth="5"\r\n >\r\n </json-viewer>\r\n </main>\r\n </div>\r\n </i-panel>\r\n</i-collapse>\r\n'},"3ad3":function(t,e,n){},"3b85":function(t,e){t.exports='<i-modal :mask-closable="false" draggable sticky reset-drag-position v-model="show" class="diy-modal">\r\n <header slot="header">\r\n {{isEdit ? "编辑分组" : "新增分组"}}\r\n </header>\r\n <main>\r\n <i-form ref="addForm" :model="data" :rules="rules">\r\n <i-form-item prop="name" label="分组名称">\r\n <i-input class="diy-input" v-model="data.name"></i-input>\r\n </i-form-item>\r\n <i-form-item v-if="isEdit" label="所属分组" class="update-category">\r\n <u-tree-selector :treeData="categories" leaf-name="task" :canChooseFolder="true" v-model="categoryData.id" @on-select="selectCategory">\r\n </u-tree-selector>\r\n </i-form-item>\r\n </i-form>\r\n </main>\r\n <footer slot="footer">\r\n <i-button class="diy-btn-primary" type="primary" @click.stop="onSave">确定</i-button>\r\n <i-button class="diy-btn-default" @click.stop="onCancel">取消</i-button>\r\n </footer>\r\n</i-modal>\r\n'},"3bdc":function(t,e,n){"use strict";var i=n("2ece"),r=n("5ee5"),o=n("e614"),a=n("d631"),s=function(t){var e=1===t;return function(n,s,c){var l,u,p=o(n),d=r(p),h=a(d),f=i(s,c);while(h-- >0)if(l=d[h],u=f(l,h,p),u)switch(t){case 0:return l;case 1:return h}return e?-1:void 0}};t.exports={findLast:s(0),findLastIndex:s(1)}},"3bf8":function(t,e){t.exports='<i-modal draggable sticky reset-drag-position :mask-closable="false" v-model="show" width="1000" class="u-security-modal diy-modal" transfer>\r\n <header slot="header">授权认证</header>\r\n <main class="security-content">\r\n <div class="left">\r\n <div class="left-title">\r\n <div class="left-title-text">授权列表</div>\r\n <i class="api-icon icon-add" @click="onAddItem"></i>\r\n </div>\r\n <div class="left-content">\r\n <i-input class="diy-input search-input" v-model="keyword" placeholder="输入关键字查询" @on-change="onFilter">\r\n <template #prefix>\r\n <i-icon type="ios-search"/>\r\n </template>\r\n </i-input>\r\n <div class="security-list">\r\n <div class="security-list-item"\r\n :class="currentSecurityItem.id === item.id ? \'security-list-item-active\' : \'\'"\r\n v-for="(item,index) in securityList"\r\n :key="item.id || index"\r\n @click="onSelectSecurityItem(item)"\r\n >\r\n <div class="security-list-item-name">\r\n <i class="iconfont icon-shouquan1"></i>\r\n <div class="security-list-item-text" :class="currentSecurityItem.id === item.id ? \'security-list-item-text-active\' : \'\'">{{ item.name || "新授权" }}</div>\r\n </div>\r\n <i-poptip confirm title="确认删除这条数据吗?" transfer placement="top-end" @on-ok="onDelete(item)">\r\n <i class="iconfont icon-delete"></i>\r\n </i-poptip>\r\n\x3c!-- <i class="iconfont icon-delete" @click.stop="onDelete(item)"></i>--\x3e\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="right">\r\n <div class="right-title">授权内容</div>\r\n <div class="right-content">\r\n <i-form class="security-content-form" label-colon v-if="isEmpty" :model="currentSecurityItem">\r\n <template v-if="currentSecurityItem.type">\r\n <i-form-item class="security-content-form-item" :class="currentSecurityItem.type === \'OAuth2\' ? \'oauth2-form-item\' : \'\'" label="授权名称" required>\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.name"></i-input>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item" :class="currentSecurityItem.type === \'OAuth2\' ? \'oauth2-form-item\' : \'\'" label="授权类型" required>\r\n <i-select class="diy-select" v-model="currentSecurityItem.type">\r\n <i-option v-for="(item,index) in securityTypeList" :value="item.name" :key="index">{{ item.text }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </template>\r\n <template v-if="currentSecurityItem.type && currentSecurityItem.type !== \'GROOVY_SCRIPT\'">\r\n <i-form-item class="security-content-form-item" :class="currentSecurityItem.type === \'OAuth2\' ? \'oauth2-form-item\' : \'\'" label="存储位置">\r\n <i-select class="diy-select" v-model="currentSecurityItem.location">\r\n <i-option v-for="(item,index) in tokenLocationTypeList" :value="item.name" :key="item.name">{{ item.text }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item" :class="currentSecurityItem.type === \'OAuth2\' ? \'oauth2-form-item\' : \'\'" label="存储键值">\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.locationKey"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if="currentSecurityItem.type === \'Api_Key\'">\r\n <i-form-item class="security-content-form-item" label="key">\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.key"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if="currentSecurityItem.type === \'Base_Auth\'">\r\n <i-form-item class="security-content-form-item" label="username">\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.username"></i-input>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item" label="password">\r\n <i-input class="diy-password-input diy-input" placeholder="请输入" v-model="currentSecurityItem.content.password" type="password" password></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if="currentSecurityItem.type === \'OAuth2\'">\r\n <i-form-item class="security-content-form-item oauth2-form-item">\r\n <u-tips-form-label slot="label" :labelTitle="\'Header Prefix\'" tips="token前缀 例如 Bearer" label-colon></u-tips-form-label>\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.headerPrefix"></i-input>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item oauth2-form-item grant-type-item">\r\n <u-tips-form-label slot="label" :labelTitle="\'Grant Type\'" tips="认证类型" label-colon></u-tips-form-label>\r\n <i-select v-model="currentSecurityItem.content.grantType" class="diy-select">\r\n <i-option v-for="item in grantTypeList" :key="item.name" :value="item.name"> {{item.text}} </i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item oauth2-form-item">\r\n <u-tips-form-label slot="label" :labelTitle="\'Access Token Url\'" tips="获取token的httpurl" label-colon></u-tips-form-label>\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.tokenUrl"></i-input>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item oauth2-form-item">\r\n <u-tips-form-label slot="label" :labelTitle="\'TokenPath\'" tips="获取响应结果的token路径" label-colon></u-tips-form-label>\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.tokenPath"></i-input>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item oauth2-form-item" label="Client ID">\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.clientId"></i-input>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item oauth2-form-item" label="Client Secret">\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.clientSecret"></i-input>\r\n </i-form-item>\r\n <template v-if="currentSecurityItem.content.grantType === \'password\'">\r\n <i-form-item class="security-content-form-item oauth2-form-item" label="username">\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.username"></i-input>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item oauth2-form-item" label="password">\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.password" type="password" password></i-input>\r\n </i-form-item>\r\n </template>\r\n <i-form-item class="security-content-form-item oauth2-form-item">\r\n <u-tips-form-label slot="label" :labelTitle="\'Scope\'" tips="访问请求的范围,它可能有多个空格分隔的值" label-colon></u-tips-form-label>\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.scope"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if="currentSecurityItem.type === \'GROOVY_SCRIPT\'">\r\n <i-form-item class="security-content-form-item script-area-item" label="授权脚本">\r\n <div class="script-label" slot="label">\r\n <i-icon class="help-icon" type="md-alert" @click="showScriptDoc" title="帮助文档"> </i-icon>\r\n <span>授权脚本:</span>\r\n </div>\r\n <u-editor\r\n class="editor"\r\n :model.sync="currentSecurityItem.scriptContent"\r\n :diyKeywordList="diyKeywordList"\r\n lang="groovy"\r\n >\r\n </u-editor>\r\n </i-form-item>\r\n </template>\r\n </i-form>\r\n </div>\r\n </div>\r\n </main>\r\n\r\n <footer slot="footer">\r\n <template>\r\n <i-button class="diy-btn-default" @click="onCancel">取消</i-button>\r\n <i-button type="primary" class="diy-btn-primary" @click="onSave">保存</i-button>\r\n </template>\r\n </footer>\r\n <u-doc-modal class="script-doc-modal" v-model="scriptDocShow" :doc="scriptDoc"></u-doc-modal>\r\n</i-modal>\r\n'},"3d77":function(t,e,n){"use strict";var i=n("2385"),r=n("a047"),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},"3de4":function(t,e){t.exports='<article class="security-setting-v2">\r\n <div class="left">\r\n <i-form class="type-form diy-form" label-colon>\r\n <i-form-item label="选择授权">\r\n <i-select ref="addSecuritySelect" class="diy-select add-security-select" v-model="currentSecurityItemId" @on-change="onChangeSecurityItem($event)" @on-clear="onClear" clearable>\r\n <i-option v-for="item in securityList" :key="item.id" :value="item.id">{{ item.name }}</i-option>\r\n <i-option class="add-security-item" value="\'\'">\r\n <div class="add-security-item-content" @click.stop="onAddSecurityItem">\r\n <i class="api-icon icon-add"></i>\r\n <span>新建授权</span>\r\n </div>\r\n </i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item label="授权类型">\r\n <span class="security-type">{{ currentSecurityItem._type? currentSecurityItem._type.text : "暂无" }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class="right">\r\n <div class="right-title">授权详情</div>\r\n <div class="right-content">\r\n <div class="no-data" v-if="!currentSecurityItem.type">\r\n <div class="no-data-bg"></div>\r\n <div class="no-data-text">请在左侧下拉框中选择已建立授权</div>\r\n </div>\r\n <div class="script" v-if="currentSecurityItem.type === \'GROOVY_SCRIPT\'">\r\n <i-input class="diy-input script-area" type="textarea" v-model="currentSecurityItem.scriptContent" :readonly="true"></i-input>\r\n </div>\r\n <div class="api-key" v-if="currentSecurityItem.type === \'Api_Key\'">\r\n <i-form class="oauth-2-form diy-form" label-colon>\r\n <i-form-item label="存储位置">\r\n <span class="form-item-text">{{ currentSecurityItem._location ? currentSecurityItem._location.text : ""}}</span>\r\n </i-form-item>\r\n <i-form-item label="存储键值">\r\n <span class="form-item-text">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item label="key">\r\n <span class="form-item-text">{{ currentSecurityItem.content.key }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class="base-auth" v-if="currentSecurityItem.type === \'Base_Auth\'">\r\n <i-form class="oauth-2-form diy-form" label-colon>\r\n <i-form-item label="存储位置">\r\n <span class="form-item-text">{{ currentSecurityItem._location ? currentSecurityItem._location.text : "" }}</span>\r\n </i-form-item>\r\n <i-form-item label="存储键值">\r\n <span class="form-item-text">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item label="username">\r\n <span class="form-item-text">{{ currentSecurityItem.content.username }}</span>\r\n </i-form-item>\r\n <i-form-item label="password">\r\n \x3c!-- <span class="form-item-text">{{ "·" }}</span>--\x3e\r\n \x3c!-- <i-input class="diy-input" v-model="model.password" type="password" password placeholder="请输入"> </i-input>--\x3e\r\n <i-input class="diy-password-input diy-input" :value="currentSecurityItem.content.password" type="password"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class="oauth-2" v-if="currentSecurityItem.type === \'OAuth2\'">\r\n <i-form class="oauth-2-form diy-form" label-colon>\r\n <i-form-item label="存储位置">\r\n <span class="form-item-text">{{ currentSecurityItem._location ? currentSecurityItem._location.text : "" }}</span>\r\n </i-form-item>\r\n <i-form-item label="存储键值">\r\n <span class="form-item-text">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot="label" :labelTitle="\'Header Prefix\'" tips="token前缀 例如 Bearer" label-colon></u-tips-form-label>\r\n <span class="form-item-text">{{ currentSecurityItem.content.headerPrefix }}</span>\r\n </i-form-item>\r\n <i-form-item class="grant-type-item">\r\n <u-tips-form-label slot="label" :labelTitle="\'Grant Type\'" tips="认证类型" label-colon></u-tips-form-label>\r\n <span class="form-item-text">{{ findGrantTypeText(currentSecurityItem.content.grantType) }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot="label" :labelTitle="\'Access Token Url\'" tips="获取token的httpUrl" label-colon></u-tips-form-label>\r\n <span class="form-item-text">{{ currentSecurityItem.content.tokenUrl }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot="label" :labelTitle="\'TokenPath\'" tips="获取响应结果的token路径" label-colon></u-tips-form-label>\r\n <span class="form-item-text">{{ currentSecurityItem.content.tokenPath }}</span>\r\n </i-form-item>\r\n <i-form-item label="Client ID">\r\n <span class="form-item-text">{{ currentSecurityItem.content.clientId }}</span>\r\n </i-form-item>\r\n <i-form-item label="Client Secret">\r\n <span class="form-item-text">{{ currentSecurityItem.content.clientSecret }}</span>\r\n </i-form-item>\r\n <template v-if="currentSecurityItem.content.grantType === \'password\'">\r\n <i-form-item class="security-content-form-item" label="username">\r\n <span class="form-item-text">{{ currentSecurityItem.content.username }}</span>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item" label="password">\r\n <i-input class="diy-password-input diy-input" :value="currentSecurityItem.content.password" type="password"></i-input>\r\n </i-form-item>\r\n </template>\r\n <i-form-item label="Scope">\r\n <u-tips-form-label slot="label" :labelTitle="\'Scope\'" tips="访问请求的范围,它可能有多个空格分隔的值" label-colon></u-tips-form-label>\r\n <span class="form-item-text">{{ currentSecurityItem.content.scope }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n </div>\r\n </div>\r\n <u-security-modal v-model="showSecurity" :projectID="projectID" :isAdd="isAdd"></u-security-modal>\r\n</article>\r\n'},"3fb3":function(t,e){t.exports=o},"40aa":function(t,e){t.exports='<!DOCTYPE html>\r\n<i-drawer\r\n width="700"\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model="show"\r\n class="interface-modal diy-modal"\r\n transfer\r\n title="已关联流程配置"\r\n :mask-closable="false"\r\n @on-cancel="onCancel"\r\n>\r\n <div class="header">\r\n <i-select v-model="proxyName" :placeholder="proxyList?.length ? `已有${proxyList?.length}个代理服务`:\'暂无数据\'" @on-select="selectProxyName">\r\n <i-option v-for="item in proxyList" :value="item.id" :key="item.id"> {{item.name}} </i-option>\r\n </i-select>\r\n <i-button class="diy-btn-primary" type="primary" @click="onAdd">新增配置</i-button>\r\n </div>\r\n\r\n <template>\r\n <i-form v-show="proxyName || isAdding " ref="configform" label-position="left" :label-width="125" label-colon :rules="rulesValidate" :model="model">\r\n <div class="form-title">{{formTitle}}</div>\r\n <i-form-item v-show="isAdding" label="所属分类" prop="categoryId" class="proxy-category-validate" required>\r\n <u-tree-selector\r\n :treeData="categoryList"\r\n :canChooseFolder="true"\r\n v-model="model.categoryId"\r\n @on-select="selectCategory"\r\n placeholder="请选择所属分类"\r\n ></u-tree-selector>\r\n </i-form-item>\r\n <i-form-item label="代理名称" prop="name" class="proxy-name-validate" required>\r\n <i-input class="diy-input" v-model="model.name" placeholder="请输入代理名称"></i-input>\r\n </i-form-item>\r\n <i-form-item class="proxy-name-validate" prop="code" label="接口编码" required>\r\n <i-input class="diy-input" v-model="model.code" placeholder="请输入接口编码"></i-input>\r\n </i-form-item>\r\n <i-form-item class="un-required-item copy-item" label="接口地址">\r\n <i-input class="diy-input" disabled :value="url"></i-input>\r\n <div class="set-btn" @click="onCopy(url)">复制</div>\r\n </i-form-item>\r\n <i-form-item label="描述" prop="description" class="proxy-description-validate un-required-item">\r\n <i-input type="textarea" v-model="model.description" placeholder="请输入描述" :rows="2"></i-input>\r\n </i-form-item>\r\n <i-row class="retry-wrap" style="padding-top: 8px">\r\n <i-col span="24">\r\n <i-form-item class="un-required-item copy-item">\r\n <template #label>\r\n <i-poptip slot="label" trigger="hover" word-wrap transfer>\r\n <icon style="cursor: help; font-size: 0.16rem" type="ios-information-circle-outline" />\r\n <div slot="content" style="width: 3rem">\r\n <span style="font-size: 0.14rem"\r\n >在右侧勾选日志记录的请求类型。需记录慢接口时,可以设置最小耗时阈值(大于该值将记录日志),不勾选时则不记录。日志表会记录请求头、请求参数和响应体,如果内容较多时建议关闭,请求次数频繁比较占数据库资源。选项【失败】仅记录调用失败的日志</span\r\n >\r\n </div>\r\n </i-poptip>\r\n <span>记录日志:</span>\r\n </template>\r\n <i-checkboxGroup class="diy-checkbox" v-model="logSavingEnabledList">\r\n <i-checkbox v-for="item in loginLevelFlag" :disabled="readonly" :label="item.value">{{ item.name }}</i-checkbox>\r\n </i-checkboxGroup>\r\n <i-form-item class="slow-log-threshold" prop="slowLogThreshold">\r\n >\r\n <i-input class="diy-input" type="number" :disabled="slowLogThreshold" v-model="model.slowLogThreshold"> </i-input>\r\n 毫秒\r\n </i-form-item>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <template v-if="model.logSavingEnabled">\r\n <i-row class="retry-wrap">\r\n <i-col span="11">\r\n <i-form-item label="开启重推" required>\r\n <i-select class="diy-select" v-model="model.enableRetry">\r\n <i-option v-for="(item,index) in isRetryList" :value="item.value" :key="index">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-col>\r\n <i-col span="11">\r\n <i-form-item class="un-required-item" label="重推次数" prop="retryTimes">\r\n <tips-table-label class="data-type-tips" slot="label" label-colon labelTitle="重推次数"></tips-table-label>\r\n <i-input class="diy-input" type="number" :disabled="isRetryTimesReadonly" v-model="model.retryTimes" placeholder="请输入重推次数"></i-input>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <i-row v-show="model.enableRetry === \'true\' ">\r\n <i-col span="11">\r\n <i-form-item class="un-required-item status-code">\r\n <template #label>\r\n <i-poptip slot="label" trigger="hover" content="当接口状态码和配置项相同时,才触发重推;多个自定义状态码以英文逗号分隔" word-wrap transfer>\r\n <icon style="cursor: help; font-size: 0.16rem" type="ios-information-circle-outline" />\r\n </i-poptip>\r\n <span>重推接口状态码:</span>\r\n </template>\r\n <i-form-item>\r\n <i-select v-model="statusCode" class="diy-select code-select" @on-change="onStatusCodeChange">\r\n <i-option v-for="item in statusCodeList" :value="item.value" :key="item.value">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item prop="retryCode">\r\n <i-input v-show="statusCode === \'2\'" class="diy-input" v-model="model.retryCode" placeholder="请输入状态码"></i-input>\r\n </i-form-item>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n </template>\r\n\r\n <i-row class="retry-wrap">\r\n <i-col span="11">\r\n <i-form-item label="需要认证" class="un-required-item copy-item">\r\n <i-select class="diy-select" style="margin-top: 6px" v-model="model.authFlag">\r\n <i-option v-for="item in authFlag" :value="item.value" :key="item.value">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-col>\r\n <i-col span="11">\r\n <i-form-item class="un-required-item copy-item">\r\n <template #label>\r\n <i-poptip slot="label" trigger="hover" content="使用用户中心token访问该接口时,将校验登陆是否拥有该资源代码的权限" word-wrap transfer>\r\n <icon style="cursor: help; font-size: 0.16rem" type="ios-information-circle-outline" />\r\n </i-poptip>\r\n <span>用户中心资源代码:</span>\r\n </template>\r\n <i-input\r\n class="diy-input"\r\n style="margin-top: 6px"\r\n v-model="model.resourceCode"\r\n :disabled="!isResourceCodeEnabled"\r\n placeholder="请输入用户中心资源代码"\r\n ></i-input>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <template>\r\n <i-row class="retry-wrap">\r\n <i-col span="11">\r\n <i-form-item label="代理类型">\r\n <i-input class="diy-input" value="外部接口" disabled></i-input>\r\n </i-form-item>\r\n </i-col>\r\n <i-col span="11">\r\n <i-form-item label="API项目">\r\n <i-select disabled class="diy-select" v-model="apiModel.projectId">\r\n <i-option v-for="(item,index) in projectList" :value="item.id" :key="item.id">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <i-form-item label="API接口">\r\n <u-tree-selector\r\n readonly\r\n :treeData="apiTree"\r\n leaf-name="apis"\r\n v-model="apiModel.typeId"\r\n placeholder="请选择API接口"\r\n @on-select="onApiTreeSelect"\r\n ></u-tree-selector>\r\n </i-form-item>\r\n <i-form-item label="接口路径">\r\n <i-input class="diy-input" :readonly="true" v-model="apiModel.path" :rows="4"></i-input>\r\n </i-form-item>\r\n </template>\r\n </i-form>\r\n </template>\r\n <i-table v-if="proxyName || isAdding" class="diy-table" height="200" :columns="apiColumns" :data="apiParamList"> </i-table>\r\n <div v-if="!proxyName && !isAdding " class="no-data">暂无数据</div>\r\n <div class="footer">\r\n <i-button class="diy-btn-primary" type="primary" :loading="loading" @click.stop="onSave">保存</i-button>\r\n <i-button class="diy-btn-default" @click.stop="onCancel">取消</i-button>\r\n </div>\r\n</i-drawer>\r\n'},"42a3":function(t,e,n){"use strict";var i=n("9e90"),r=TypeError;t.exports=function(t){if(i(t))throw new r("Can't call method on "+t);return t}},4387:function(t,e){t.exports=a},"44c1":function(t,e,n){},"45bb":function(t,e){t.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 \x3c!-- startprint --\x3e\r\n <mavon-editor :subfield="false" :toolbars="toolbars" :value="doc" defaultOpen="preview" @change="onChange">\r\n <template slot="left-toolbar-before">\r\n <i-dropdown placement="right-start" @on-click="onMenuClick">\r\n <span class="op-icon fa fa-mavon-floppy-o"></span>\r\n <i-dropdown-menu slot="list">\r\n <i-dropdown-item name="pdf">保存为pdf</i-dropdown-item>\r\n <i-dropdown-item name="html">保存为html</i-dropdown-item>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n </template>\r\n </mavon-editor>\r\n \x3c!-- endprint --\x3e\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'},"45e3":function(t,e,n){},"46d3":function(t,e){t.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(null)"\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" :placeholder="placeholder" @on-change="onFilter" v-model="keyword" >\r\n <i class="iconfont icon-chaxun" slot="prefix"></i>\r\n </i-input>\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 <i-modal draggable sticky reset-drag-position v-model="showImportModal" class="diy-modal duplicate-import-modal" width="800" :mask-closable="false" title="导入已合并接口">\r\n <div class="import-title">上传成功</div>\r\n <div class="import-label">{{ `上传共${importResult.total}条合并接口数据,其中${importResult.total - importResult.duplicateNum}条可成功导入。` }}</div>\r\n <div class="import-label">{{ `发现以下${importResult.duplicateNum}条接口数据存在编码重复(编码已存在),将不会被导入。` }}</div>\r\n <i-table class="diy-table import-modal-table" :columns="columns" :data="importResult.items">\r\n </i-table>\r\n <footer slot="footer">\r\n <i-button class="diy-btn-primary" type="primary" @click="onImportConfirm">确定</i-button>\r\n <i-button class="diy-btn-default" @click="onImportCancel">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n</article>\r\n'},"46df":function(t,e,n){"use strict";var i=n("9417"),r=n("6a10"),o=r.aTypedArray,a=r.exportTypedArrayMethod,s=r.getTypedArrayConstructor;a("toReversed",(function(){return i(o(this),s(this))}))},"470f":function(t,e){t.exports='<i-modal draggable sticky reset-drag-position v-model="value" class="diy-modal global-variable-modal" :mask-closable="false" title="全局参数设置">\r\n <header class="types">\r\n <div class="tag" @click="onCheckTpye(item)" :class="{\'active\': item.name === active.name}" v-for="(item,index) in typeList" :key="item.name">\r\n <span>{{item.title }}</span>\r\n </div>\r\n </header>\r\n <main class="content">\r\n <i-button type="primary" ghost class="diy-btn-primary"> <i class="api-icon icon-add"></i>新增参数</i-button>\r\n <i-table :columns="columns" :data="dataList" class="diy-table" height="400">\r\n <template slot-scope="{ row,index }" slot="name">\r\n <i-input class="diy-input" placeholder="输入参数名称" v-model="dataList[index].name"></i-input>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="value">\r\n <i-input class="diy-input" placeholder="输入参数值" v-model="dataList[index].value"></i-input>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="required">\r\n <i-switch v-model="dataList[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="remark">\r\n <i-input class="diy-input" placeholder="输入备注" v-model="dataList[index].remark"></i-input>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="action">\r\n <span class="action-btn delete" @click="onDelete(dataList,index)">删除</span>\r\n <span class="action-btn" @click="onUp(dataList,index)">上移</span>\r\n <span class="action-btn" @click="onDown(dataList,index)">下移</span>\r\n <span v-if="index !== 0" class="action-btn" @click="onTop(dataList,index)">置顶</span>\r\n <span v-if="index < dataList.length - 1" class="action-btn" @click="onBottom(dataList,index)">置底</span>\r\n </template>\r\n </i-table>\r\n </main>\r\n <slot slot="footer" name="footer"> </slot>\r\n</i-modal>\r\n'},"485f":function(t,e,n){"use strict";var i=n("5ee5"),r=n("42a3");t.exports=function(t){return i(r(t))}},4869:function(t,e,n){"use strict";var i=n("e900"),r=n("10a7"),o=n("815c");t.exports=!i&&!r((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},4935:function(t,e){t.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 :commonTaskCategoryID="taskCategoryID" :initSelectItem="initNode" :prop-data="treeData" :isTreeList="true" @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 @on-row-click="onRowClick"\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="ivu-icon ivu-icon-ios-arrow-forward" :class="{\'icon-arrow-collapse\':collapse}"></i>\r\n </span>\r\n </span>\r\n </div>\r\n <div class="card-panel-main">\r\n <template v-if="checkedData&&checkedData.length">\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 </template>\r\n <template v-else>\r\n <div class="table-no-data">\r\n <div class="table-no-data-bg"></div>\r\n <div class="table-no-data-text">暂无数据</div>\r\n </div>\r\n </template>\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'},"4cad":function(t,e,n){"use strict";var i=n("720f");t.exports=i({}.isPrototypeOf)},5217:function(t,e){t.exports=s},"554d":function(t,e){t.exports=c},"575c":function(t,e,n){"use strict";var i=n("9b7f"),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},"585e":function(t,e,n){"use strict";var i=n("e900"),r=n("4869"),o=n("ca33"),a=n("a079"),s=n("aee9"),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",d="configurable",h="writable";e.f=i?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&h in n&&!n[h]){var i=u(t,e);i&&i[h]&&(t[e]=n.value,n={configurable:d in n?n[d]:i[d],enumerable:p in n?n[p]:i[p],writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(a(t),e=s(e),a(n),r)try{return l(t,e,n)}catch(i){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"58d2":function(t,e,n){},"5afa":function(t,e,n){"use strict";var i=n("3117"),r=n("e1e9"),o=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},"5ee5":function(t,e,n){"use strict";var i=n("720f"),r=n("10a7"),o=n("0d9b"),a=Object,s=i("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},"61ef":function(t,e,n){},6255:function(t,e){t.exports='<i-modal\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model="value"\r\n class="diy-modal"\r\n :mask-closable="false"\r\n :title="data.id ? \'编辑项目\': \'新建项目\'"\r\n>\r\n <i-form :label-width="95" class="diy-form" label-colon>\r\n <i-form-item label="项目名称" required>\r\n <i-input\r\n v-model.trim="data.name"\r\n class="diy-input"\r\n placeholder="请输入项目名称"\r\n ></i-input>\r\n </i-form-item>\r\n <i-form-item label="项目描述">\r\n <i-input\r\n class="diy-input"\r\n type="textarea"\r\n :rows="4"\r\n v-model="data.description"\r\n placeholder="请输入项目描述"\r\n ></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <slot slot="footer" name="footer"> </slot>\r\n</i-modal>\r\n'},6296:function(t,e,n){"use strict";var i=n("8785");t.exports=function(t){return i(t)||null===t}},6397:function(t,e){t.exports=l},"64d5":function(t,e){t.exports=u},"65e5":function(t,e,n){},"688a":function(t,e,n){},"68b7":function(t,e,n){"use strict";var i=n("92d6"),r=n("720f"),o=n("ce97"),a=n("96e5"),s=URLSearchParams,c=s.prototype,l=r(c.append),u=r(c["delete"]),p=r(c.forEach),d=r([].push),h=new s("a=1&a=2&b=3");h["delete"]("a",1),h["delete"]("b",void 0),h+""!=="a=2"&&i(c,"delete",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var i=[];p(this,(function(t,e){d(i,{key:e,value:t})})),a(e,1);var r,s=o(t),c=o(n),h=0,f=0,m=!1,y=i.length;while(h<y)r=i[h++],m||r.key===s?(m=!0,u(this,r.key)):f++;while(f<y)r=i[f++],r.key===s&&r.value===c||l(this,r.key,r.value)}),{enumerable:!0,unsafe:!0})},"6a10":function(t,e,n){"use strict";var i,r,o,a=n("f764"),s=n("e900"),c=n("bc85"),l=n("ec2f"),u=n("8785"),p=n("d803"),d=n("aaa6"),h=n("1d6e"),f=n("9822"),m=n("92d6"),y=n("889b"),v=n("4cad"),g=n("a54a"),b=n("a2df"),w=n("fff8"),x=n("a047"),S=n("fcc0"),I=S.enforce,k=S.get,C=c.Int8Array,j=C&&C.prototype,D=c.Uint8ClampedArray,T=D&&D.prototype,O=C&&g(C),E=j&&g(j),P=Object.prototype,L=c.TypeError,M=w("toStringTag"),A=x("TYPED_ARRAY_TAG"),N="TypedArrayConstructor",q=a&&!!b&&"Opera"!==d(c.opera),$=!1,R={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},_={BigInt64Array:8,BigUint64Array:8},F=function(t){if(!u(t))return!1;var e=d(t);return"DataView"===e||p(R,e)||p(_,e)},B=function(t){var e=g(t);if(u(e)){var n=k(e);return n&&p(n,N)?n[N]:B(e)}},z=function(t){if(!u(t))return!1;var e=d(t);return p(R,e)||p(_,e)},V=function(t){if(z(t))return t;throw new L("Target is not a typed array")},U=function(t){if(l(t)&&(!b||v(O,t)))return t;throw new L(h(t)+" is not a typed array constructor")},H=function(t,e,n,i){if(s){if(n)for(var r in R){var o=c[r];if(o&&p(o.prototype,t))try{delete o.prototype[t]}catch(a){try{o.prototype[t]=e}catch(l){}}}E[t]&&!n||m(E,t,n?e:q&&j[t]||e,i)}},G=function(t,e,n){var i,r;if(s){if(b){if(n)for(i in R)if(r=c[i],r&&p(r,t))try{delete r[t]}catch(o){}if(O[t]&&!n)return;try{return m(O,t,n?e:q&&O[t]||e)}catch(o){}}for(i in R)r=c[i],!r||r[t]&&!n||m(r,t,e)}};for(i in R)r=c[i],o=r&&r.prototype,o?I(o)[N]=r:q=!1;for(i in _)r=c[i],o=r&&r.prototype,o&&(I(o)[N]=r);if((!q||!l(O)||O===Function.prototype)&&(O=function(){throw new L("Incorrect invocation")},q))for(i in R)c[i]&&b(c[i],O);if((!q||!E||E===P)&&(E=O.prototype,q))for(i in R)c[i]&&b(c[i].prototype,E);if(q&&g(T)!==E&&b(T,E),s&&!p(E,M))for(i in $=!0,y(E,M,{configurable:!0,get:function(){return u(this)?this[A]:void 0}}),R)c[i]&&f(c[i],A,i);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:q,TYPED_ARRAY_TAG:$&&A,aTypedArray:V,aTypedArrayConstructor:U,exportTypedArrayMethod:H,exportTypedArrayStaticMethod:G,getTypedArrayConstructor:B,isView:F,isTypedArray:z,TypedArray:O,TypedArrayPrototype:E}},"6a6c":function(t,e,n){"use strict";var i=n("fff8"),r=i("toStringTag"),o={};o[r]="z",t.exports="[object z]"===String(o)},"6bf0":function(t,e,n){"use strict";var i=n("bc85"),r=n("a95a"),o=n("6a10"),a=n("d631"),s=n("16bf"),c=n("e614"),l=n("10a7"),u=i.RangeError,p=i.Int8Array,d=p&&p.prototype,h=d&&d.set,f=o.aTypedArray,m=o.exportTypedArrayMethod,y=!l((function(){var t=new Uint8ClampedArray(2);return r(h,t,{length:1,0:3},1),3!==t[1]})),v=y&&o.NATIVE_ARRAY_BUFFER_VIEWS&&l((function(){var t=new p(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));m("set",(function(t){f(this);var e=s(arguments.length>1?arguments[1]:void 0,1),n=c(t);if(y)return r(h,this,n,e);var i=this.length,o=a(n),l=0;if(o+e>i)throw new u("Wrong length");while(l<o)this[e+l]=n[l++]}),!y||v)},"6d46":function(t,e){t.exports='<article class="u-common-tree" :class="className.join(\' \')">\r\n <slot name="header"></slot>\r\n <section class="content">\r\n <i-input\r\n class="search-input"\r\n suffix="ios-search"\r\n :placeholder="placeholder"\r\n @on-change="onFilter"\r\n v-model="keyword"\r\n >\r\n <i class="iconfont icon-chaxun" slot="prefix"></i>\r\n </i-input>\r\n <i-tree\r\n :data="renderData"\r\n :render="renderContent"\r\n @on-toggle-expand="onToggleExpand"\r\n ></i-tree>\r\n </section>\r\n</article>\r\n'},"6d6e":function(t,e,n){"use strict";var i=n("bd74"),r=n("d803"),o=n("9822"),a=n("4cad"),s=n("a2df"),c=n("3955"),l=n("862c"),u=n("998d"),p=n("327c"),d=n("8c3a"),h=n("17f8"),f=n("e900"),m=n("7e75");t.exports=function(t,e,n,y){var v="stackTraceLimit",g=y?2:1,b=t.split("."),w=b[b.length-1],x=i.apply(null,b);if(x){var S=x.prototype;if(!m&&r(S,"cause")&&delete S.cause,!n)return x;var I=i("Error"),k=e((function(t,e){var n=p(y?e:t,void 0),i=y?new x(t):new x;return void 0!==n&&o(i,"message",n),h(i,k,i.stack,2),this&&a(S,this)&&u(i,this,k),arguments.length>g&&d(i,arguments[g]),i}));if(k.prototype=S,"Error"!==w?s?s(k,I):c(k,I,{name:!0}):f&&v in x&&(l(k,x,v),l(k,x,"prepareStackTrace")),c(k,x),!m)try{S.name!==w&&o(S,"name",w),S.constructor=k}catch(C){}return k}}},"713b":function(t,e,n){},"720f":function(t,e,n){"use strict";var i=n("12f2"),r=Function.prototype,o=r.call,a=i&&r.bind.bind(o,o);t.exports=i?a:function(t){return function(){return o.apply(t,arguments)}}},7359:function(t,e,n){},7640:function(t,e){t.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 <i-icon class="help-icon" type="md-alert" @click.stop="showScriptDoc" title="说明文档"> </i-icon>\r\n <span class="status">{{getExpand(\'1\') ? "收起" : "展开"}}</span>\r\n <div slot="content" class="setting-content">\r\n <header>\r\n <i-button type="primary" ghost class="diy-btn-primary" @click="onAddRequestParam"> <i class="api-icon icon-add"></i>新增参数 </i-button>\r\n </header>\r\n <main>\r\n <i-table class="diy-table" @on-selection-change="onQuerySelectionChange" :columns="paramColumns" :data="queryDataList">\r\n <template slot-scope="{ row,index }" slot="selection">\r\n <i-switch size="large" :value="!queryDataList[index].disabled" @on-change="onChangeDisabled($event,queryDataList[index],\'query\')">\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="name">\r\n <i-input class="diy-input" placeholder="输入参数名称" v-model="queryDataList[index].name"></i-input>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="valueContent">\r\n <i-input class="diy-input" placeholder="输入参数值" v-model="queryDataList[index].valueContent"></i-input>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="required">\r\n <i-switch v-model="queryDataList[index].requireFlag" :disabled="queryDataList[index].disabled" :true-value="1" :false-value="0">\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 class="diy-input" placeholder="输入备注" v-model="queryDataList[index].text"></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,row.indexFlag,\'query\')" transfer>\r\n <i class="iconfont icon-delete" title="删除"></i>\r\n </i-poptip>\r\n <span>\r\n <i v-if="index>0" class="iconfont icon-up" @click="onUp(queryDataList,index)" title="上移"></i>\r\n <i v-if="index>0" class="iconfont icon-top" title="置顶" @click="onTop(queryDataList,index)"></i>\r\n <i v-if="index < queryDataList.length - 1" @click="onDown(queryDataList,index)" class="iconfont icon-down" title="下移"></i>\r\n <i v-if="index < queryDataList.length - 1" @click="onBottom(queryDataList,index)" class="iconfont icon-bottom" title="置底"></i>\r\n </span>\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 v-if="isFormData" type="primary" ghost class="diy-btn-primary" @click="onAddBodyParam"> <i class="api-icon icon-add"></i>新增参数 </i-button>\r\n <i-button v-else type="primary" ghost class="diy-btn-primary" @click="onBeautify"> <i class="api-icon icon-view"></i>格式化 </i-button>\r\n <i-select transfer v-model="interfaceModel.info.requestBodyType" class="diy-select">\r\n <i-option v-for="item in requestBodyTypeList" :value="item.name" :key="item.name">{{item.text}}</i-option>\r\n </i-select>\r\n </header>\r\n <main>\r\n <i-table\r\n class="diy-table"\r\n @on-selection-change="onBodySelectionChange"\r\n :columns="bodyColumns"\r\n :data="bodyDataList"\r\n v-if="isFormData"\r\n >\r\n <template slot-scope="{ row,index }" slot="selection">\r\n <i-switch size="large" :value="!bodyDataList[index].disabled" @on-change="onChangeDisabled($event,bodyDataList[index],\'body\')">\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="name">\r\n <div class="body-name-row">\r\n <i-input class="diy-input" placeholder="输入参数名称" v-model="bodyDataList[index].name"></i-input>\r\n <i-select class="diy-select" v-if="bodyType === \'Form\'" v-model="row.valueType" @on-change="onChangeFormParamType(index, row)" transfer>\r\n <i-option v-for="item in formParamTypeList" :value="item.name" :key="item.name">{{item.text}}</i-option>\r\n </i-select>\r\n </div>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="valueContent">\r\n <i-input v-if="row.valueType !== \'FILE\'" class="diy-input" placeholder="输入参数值" v-model="bodyDataList[index].valueContent"></i-input>\r\n <i-upload v-if="row.valueType === \'FILE\' && !row.fileName" action="" :before-upload="onImport" :show-upload-list="false">\r\n <i-button class="file-btn" icon="ios-cloud-upload-outline" @click="onClickRow(row)">选择文件</i-button>\r\n </i-upload>\r\n <div class="file-wrap" v-if="row.valueType === \'FILE\' && row.fileName">\r\n <div class="file-name" :title="row.fileName">{{ row.fileName }}</div>\r\n <i-icon type="ios-close" @click="onClearFile(row)" />\r\n </div>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="required">\r\n <i-switch v-model="bodyDataList[index].requireFlag" :disabled="bodyDataList[index].disabled" :true-value="1" :false-value="0">\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 class="diy-input" placeholder="输入备注" v-model="bodyDataList[index].remark"></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="onDeleteBodyParam(interfaceModel.formParams,row.indexFlag,\'body\')" transfer>\r\n <i class="iconfont icon-delete" title="删除"></i>\r\n </i-poptip>\r\n <span>\r\n <i v-if="index > 0" class="iconfont icon-up" @click="onUpBodyParam(interfaceModel.formParams,row.id)" title="上移"></i>\r\n <i v-if="index > 0" class="iconfont icon-top" @click="onTopBodyParam(interfaceModel.formParams,row.id)" title="置顶"></i>\r\n <i v-if="index < bodyDataList.length - 1" @click="onDownBodyParam(interfaceModel.formParams,row.id)" class="iconfont icon-down" title="下移"></i>\r\n <i\r\n v-if="index < bodyDataList.length - 1"\r\n @click="onBottomBodyParam(interfaceModel.formParams,row.id)"\r\n class="iconfont icon-bottom"\r\n title="置底"\r\n ></i>\r\n </span>\r\n </template>\r\n </i-table>\r\n <u-editor v-else :value.sync="interfaceModel.json" lang="json" @inited="onEditorInited"></u-editor>\r\n </main>\r\n </div>\r\n </i-panel>\r\n </i-collapse>\r\n <u-doc-modal class="script-doc-modal" v-model="scriptDocShow" :doc="scriptDoc"></u-doc-modal>\r\n</article>\r\n'},"767a":function(t,e,n){"use strict";var i=n("ad8b"),r=n("10a7"),o=n("bc85"),a=o.String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},7801:function(t,e,n){"use strict";var i=n("ec2f"),r=n("1d6e"),o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not a function")}},"7af4":function(t,e,n){
1
+ (function(t,e){"object"===typeof exports&&"object"===typeof module?module.exports=e(require("vue-property-decorator"),require("brace/mode/json"),require("brace/mode/groovy"),require("brace/mode/xml"),require("vue-json-viewer"),require("brace/snippets/json"),require("lodash.debounce"),require("brace/ext/searchbox"),require("@egova/flagwind-core"),require("@egova/flagwind-web"),require("brace/theme/chrome"),require("brace/ext/language_tools"),require("vue2-ace-editor"),require("vue"),require("brace/snippets/javascript"),require("brace"),require("halo-math"),require("brace/snippets/groovy"),require("jsencrypt"),require("crypto-js"),require("mavon-editor"),require("js-cookie"),require("brace/mode/javascript"),require("@egova/flagwind-web/dist/flagwind-web.umd.js"),require("axios"),require("swiper")):"function"===typeof define&&define.amd?define(["vue-property-decorator","brace/mode/json","brace/mode/groovy","brace/mode/xml","vue-json-viewer","brace/snippets/json","lodash.debounce","brace/ext/searchbox","@egova/flagwind-core","@egova/flagwind-web","brace/theme/chrome","brace/ext/language_tools","vue2-ace-editor","vue","brace/snippets/javascript","brace","halo-math","brace/snippets/groovy","jsencrypt","crypto-js","mavon-editor","js-cookie","brace/mode/javascript","@egova/flagwind-web/dist/flagwind-web.umd.js","axios","swiper"],e):"object"===typeof exports?exports["index"]=e(require("vue-property-decorator"),require("brace/mode/json"),require("brace/mode/groovy"),require("brace/mode/xml"),require("vue-json-viewer"),require("brace/snippets/json"),require("lodash.debounce"),require("brace/ext/searchbox"),require("@egova/flagwind-core"),require("@egova/flagwind-web"),require("brace/theme/chrome"),require("brace/ext/language_tools"),require("vue2-ace-editor"),require("vue"),require("brace/snippets/javascript"),require("brace"),require("halo-math"),require("brace/snippets/groovy"),require("jsencrypt"),require("crypto-js"),require("mavon-editor"),require("js-cookie"),require("brace/mode/javascript"),require("@egova/flagwind-web/dist/flagwind-web.umd.js"),require("axios"),require("swiper")):t["index"]=e(t["vue-property-decorator"],t["brace/mode/json"],t["brace/mode/groovy"],t["brace/mode/xml"],t["vue-json-viewer"],t["brace/snippets/json"],t["lodash.debounce"],t["brace/ext/searchbox"],t["@egova/flagwind-core"],t["@egova/flagwind-web"],t["brace/theme/chrome"],t["brace/ext/language_tools"],t["vue2-ace-editor"],t["vue"],t["brace/snippets/javascript"],t["brace"],t["halo-math"],t["brace/snippets/groovy"],t["jsencrypt"],t["crypto-js"],t["mavon-editor"],t["js-cookie"],t["brace/mode/javascript"],t["@egova/flagwind-web/dist/flagwind-web.umd.js"],t["axios"],t["swiper"])})("undefined"!==typeof self?self:this,(function(t,e,n,i,r,o,a,s,c,l,u,p,d,h,f,m,y,v,g,b,w,x,S,I,k,C){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var r=e[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"===typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(i,r,function(e){return t[e]}.bind(null,r));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="d345")}({"00fe":function(t,e,n){"use strict";var i=n("d631");t.exports=function(t,e,n){var r=0,o=arguments.length>2?n:i(e),a=new t(o);while(o>r)a[r]=e[r++];return a}},"01a6":function(e,n){e.exports=t},"04ca":function(t,e,n){"use strict";var i=n("10a7"),r=n("ec2f"),o=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n===u||n!==l&&(r(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},"06a8":function(t,e,n){},"07ab":function(t,e){t.exports='<div class="u-tree-node">\r\n\x3c!-- <i class="iconfont" :class="data.expand? \'icon-expand\': \'icon-unexpand\'"></i>--\x3e\r\n <i class="iconfont icon-mulushu" @click="onClickNode"></i>\r\n <div class="name" @click="onClickNode">{{data.name}}</div>\r\n <i-dropdown @on-click="onClick" transfer transfer-class-name="node-oprate" v-if="data.id !== \'virtual_root_directory\'">\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'},"086a":function(t,e){t.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'},"0888":function(t,e,n){"use strict";var i=n("bc85"),r=n("9afe"),o="__core-js_shared__",a=i[o]||r(o,{});t.exports=a},"0941":function(t,e){t.exports='<i-modal draggable sticky transfer reset-drag-position :mask-closable="false" v-model="show" width="1280" class="u-api-project-modal diy-modal">\r\n <header slot="header">添加API</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 :commonTaskCategoryID="taskCategoryID" :initSelectItem="initNode" :prop-data="treeData" :isTreeList="true" @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-api-project-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 @on-row-click="onRowClick"\r\n >\r\n </u-api-project-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="ivu-icon ivu-icon-ios-arrow-forward" :class="{\'icon-arrow-collapse\':collapse}"></i>\r\n </span>\r\n </span>\r\n </div>\r\n <div class="card-panel-main">\r\n <template v-if="checkedData&&checkedData.length">\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 </template>\r\n <template v-else>\r\n <div class="table-no-data">\r\n <div class="table-no-data-bg"></div>\r\n <div class="table-no-data-text">暂无数据</div>\r\n </div>\r\n </template>\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'},"0a2e":function(t,e,n){},"0d9b":function(t,e,n){"use strict";var i=n("720f"),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},"0ddb":function(t,e,n){"use strict";var i=n("82ef"),r=n("bc85"),o=n("ff99"),a=n("6d6e"),s="WebAssembly",c=r[s],l=7!==new Error("e",{cause:7}).cause,u=function(t,e){var n={};n[t]=a(t,e,l),i({global:!0,constructor:!0,arity:1,forced:l},n)},p=function(t,e){if(c&&c[t]){var n={};n[t]=a(s+"."+t,e,l),i({target:s,stat:!0,constructor:!0,arity:1,forced:l},n)}};u("Error",(function(t){return function(e){return o(t,this,arguments)}})),u("EvalError",(function(t){return function(e){return o(t,this,arguments)}})),u("RangeError",(function(t){return function(e){return o(t,this,arguments)}})),u("ReferenceError",(function(t){return function(e){return o(t,this,arguments)}})),u("SyntaxError",(function(t){return function(e){return o(t,this,arguments)}})),u("TypeError",(function(t){return function(e){return o(t,this,arguments)}})),u("URIError",(function(t){return function(e){return o(t,this,arguments)}})),p("CompileError",(function(t){return function(e){return o(t,this,arguments)}})),p("LinkError",(function(t){return function(e){return o(t,this,arguments)}})),p("RuntimeError",(function(t){return function(e){return o(t,this,arguments)}}))},"0e0c":function(t,n){t.exports=e},"10a7":function(t,e,n){"use strict";t.exports=function(t){try{return!!t()}catch(e){return!0}}},"10cf":function(t,e){t.exports='<i-modal\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model="value"\r\n class="diy-modal current-variable-modal"\r\n :mask-closable="false"\r\n footer-hide\r\n title="查看当前变量"\r\n>\r\n <i-form\r\n :label-width="95"\r\n class="diy-form"\r\n label-colon\r\n label-position="left"\r\n >\r\n <i-form-item label="环境名称">\r\n <i-input class="diy-input" placeholder="请输入环境名称"></i-input>\r\n </i-form-item>\r\n <i-form-item label="环境域名" class="realm-name">\r\n <i-input class="diy-input" placeholder="请输入环境域名">\r\n <i-select slot="prepend" class="diy-select"> </i-select>\r\n </i-input>\r\n </i-form-item>\r\n <i-form-item label="Header" class="name-value-item">\r\n <i-input class="diy-input"></i-input>\r\n <i-input class="diy-input"></i-input>\r\n </i-form-item>\r\n <i-form-item label="Cookie" class="name-value-item">\r\n <i-input class="diy-input"></i-input>\r\n <i-input class="diy-input"></i-input>\r\n </i-form-item>\r\n <i-form-item label="Global" class="name-value-item">\r\n <i-input class="diy-input"></i-input>\r\n <i-input class="diy-input"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n</i-modal>\r\n'},1215:function(t,e,n){"use strict";e.f=Object.getOwnPropertySymbols},"12f2":function(t,e,n){"use strict";var i=n("10a7");t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},"16bf":function(t,e,n){"use strict";var i=n("ead7"),r=RangeError;t.exports=function(t,e){var n=i(t);if(n%e)throw new r("Wrong offset");return n}},"17f8":function(t,e,n){"use strict";var i=n("9822"),r=n("dd76"),o=n("d5e3"),a=Error.captureStackTrace;t.exports=function(t,e,n,s){o&&(a?a(t,e):i(t,"stack",r(n,s)))}},"17fe":function(t,e,n){},"193e":function(t,e){t.exports='<article class="project-tree">\r\n <header>\r\n <div class="tree-api">\r\n <div class="title-g">API列表</div>\r\n <div class="add" @click="onAddGroup">\r\n <i class="iconfont icon-xinjianwenjianjia" title="新增分组"></i>\r\n </div>\r\n </div>\r\n <div class="tree-search">\r\n <i-select class="diy-select" transfer v-model="type" @on-change="onFilter">\r\n <i-option v-for="item in typeList" :key="item.value" :value="item.value">{{item.text}}</i-option>\r\n </i-select>\r\n <i-input class="diy-input" v-model="keyword" @on-change="onFilter" placeholder="输入关键字查询">\r\n <i class="iconfont icon-chaxun" slot="prefix"></i>\r\n </i-input>\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 :title="group.id ? \'修改分组\': \'新增分组\'"\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 class="diy-input" v-model="group.name"></i-input>\r\n </i-form-item>\r\n <i-form-item v-if="group.id" label="所属项目" required>\r\n <i-select class="diy-select" v-model="group.projectId" transfer filterable @on-change="onChangeProject(true,true)">\r\n <i-option v-for="item in projectList" :value="item.id" :key="item.id">{{item.name}}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item label="分组位置">\r\n <u-group-select :data="groupTree" :current="parent" @on-select="onSelectParent"></u-group-select>\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.stop="onSaveGroup">确定</i-button>\r\n <i-button class="diy-btn-default" @click.stop="onGourpCancel">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n <i-modal draggable sticky reset-drag-position v-model="showInterfaceModal" class="diy-modal" :mask-closable="false" :title="interfaceModel.id ? \'修改接口\': \'新增接口\'">\r\n <i-form :label-width="100" class="diy-form" label-colon>\r\n <i-form-item label="接口名称" required>\r\n <i-input class="diy-input" v-model="interfaceModel.name"></i-input>\r\n </i-form-item>\r\n\r\n <i-form-item v-if="interfaceModel.id" label="所属项目" required>\r\n <i-select class="diy-select" v-model="interfaceModel.projectId" transfer filterable @on-change="onChangeProject(false,true)">\r\n <i-option v-for="item in projectList" :value="item.id" :key="item.id">{{item.name}}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n\r\n <i-form-item label="接口位置" required>\r\n <u-group-select :data="groupTree" :current="parent" @on-select="onSelectParent"></u-group-select>\r\n </i-form-item>\r\n <i-form-item label="接口类型" required>\r\n <i-select v-model="interfaceModel.method" class="diy-select" transfer>\r\n <i-option v-for="item in typeList" v-if="item.value" :key="item.value" :value="item.value">{{item.text}}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item label="需要认证" required>\r\n <i-select v-model="interfaceModel.authFlag" class="diy-select" transfer>\r\n <i-option :key="0" :value="0">否</i-option>\r\n <i-option :key="1" :value="1">是</i-option>\r\n </i-select>\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="onSaveInterface">确定</i-button>\r\n <i-button class="diy-btn-default" @click="onInterfaceCancel">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n <i-modal draggable sticky reset-drag-position v-model="showCopyModal" class="diy-modal" :mask-closable="false" title="复制接口">\r\n <i-form :label-width="100" class="diy-form" label-colon>\r\n <i-form-item label="接口名称" required>\r\n <i-input class="diy-input" v-model="copyName"></i-input>\r\n </i-form-item>\r\n <i-form-item label="选择分组" required>\r\n <u-group-select :isSelector="true" :data="groupTree" :current="parent" @on-select="onSelectParent"></u-group-select>\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="onCopy">确定</i-button>\r\n <i-button class="diy-btn-default" @click="onCopyCancel">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n\r\n <i-modal width="730" draggable sticky reset-drag-position v-model="showMoveModal" class="diy-modal" :mask-closable="false" :title="moveType===\'group\' ? \'分组移动提示\': \'接口移动提示\'">\r\n <div class="api-move-project-body">\r\n <span class="warn-title">\r\n <i-icon type="ios-help-circle" />\r\n 检测到被移动{{moveType===\'group\'?"分组":"接口"}}中存在已关联的授权/环境变量,是否在新项目中新建?\r\n </span>\r\n <span class="second-title">新建授权/环境变量:将在目标项目中新建{{moveType===\'group\'?"分组":"接口"}}绑定的授权/环境变量</span>\r\n <span class="second-title">不新建:将原有的授权/环境变量置为空,仅移动接口</span>\r\n <span class="second-title">取消:取消本次操作</span>\r\n </div>\r\n <footer slot="footer">\r\n <i-button class="diy-btn-primary api-move-ok-btn" type="primary" @click="onMoveOk(true)">新建授权/环境变量</i-button>\r\n <i-button class="diy-btn-default" @click="onMoveOk(false)">不新建</i-button>\r\n <i-button class="diy-btn-default api-move-cancel-btn" @click="onMoveCancel">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n <u-batch-modal :visiable.sync="showBatchModal" :data="categoryApiList" :projectId="projectId" @on-success="onBatchSuccess"></u-batch-modal>\r\n</article>\r\n'},"1a93":function(t,e,n){},"1aea":function(t,e,n){},"1b9a":function(t,e,n){"use strict";var i=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw i("Maximum allowed index exceeded");return t}},"1cdf":function(t,e){t.exports=n},"1d6e":function(t,e,n){"use strict";var i=String;t.exports=function(t){try{return i(t)}catch(e){return"Object"}}},"1e82":function(t,e){t.exports=i},"22e8":function(t,e){t.exports='<article class="headers-setting">\r\n <header>\r\n <i-button type="primary" ghost class="diy-btn-primary" @click="onAdd">\r\n <i class="api-icon icon-add"></i>新增\r\n </i-button>\r\n \x3c!-- <i-button type="primary" ghost class="diy-btn-primary">\r\n <i class="api-icon icon-import"></i>导入参数\r\n </i-button>\r\n <i-button type="primary" ghost class="diy-btn-primary">\r\n <i class="api-icon icon-export"></i>导出参数\r\n </i-button> --\x3e\r\n </header>\r\n <i-table\r\n class="diy-table"\r\n :columns="columns"\r\n :data="interfaceModel.requestHeaders"\r\n >\r\n <template slot-scope="{ row,index }" slot="selection">\r\n <i-checkbox\r\n :value="!interfaceModel.requestHeaders[index].disabled"\r\n @on-change="onChangeDisabled($event,interfaceModel.requestHeaders[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="interfaceModel.requestHeaders[index].name"\r\n >\r\n </i-input>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="value">\r\n <i-input\r\n class="diy-input"\r\n placeholder="输入参数值"\r\n v-model="interfaceModel.requestHeaders[index].value"\r\n >\r\n </i-input>\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="interfaceModel.requestHeaders[index].text"\r\n >\r\n </i-input>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="action">\r\n <i-poptip title="确认删除这条数据吗?" confirm @on-ok="onDelete(index)" transfer>\r\n <i class="iconfont icon-delete" title="删除"></i>\r\n </i-poptip>\r\n </template>\r\n </i-table>\r\n</article>\r\n'},"234b":function(t,e,n){"use strict";var i=n("0d9b");t.exports=Array.isArray||function(t){return"Array"===i(t)}},2364:function(t,e){t.exports=r},"236b":function(t,e){t.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 <div class="transfer-actions-title">\r\n <span>配置输出字段</span>\r\n <i-poptip class="action" trigger="hover" content="当前页面的勾选框仅对批量删除有效,实际输出字段为下方列表内的所有内容。" width="300" word-wrap transfer>\r\n <i class="iconfont icon-xinxi"> </i>\r\n </i-poptip>\r\n </div>\r\n <div class="actions-wrapper">\r\n <i-poptip class="action" confirm title="将自动解析转换前结果json至配置输出字段,是否继续?" width="300" @on-ok="onParse" transfer>\r\n <div class="action-item action-text">\r\n <i class="iconfont icon-jiexi-copy"></i>\r\n 解析\r\n </div>\r\n </i-poptip>\r\n <i-poptip class="action" confirm title="将重置当前所有输出字段为上次保存内容,是否确认一键重置?" width="300" @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 action" @click="onAdd">\r\n <i class="iconfont icon-add"></i>\r\n 新增\r\n </div>\r\n <i-poptip class="action" confirm title="将批量删除勾选字段,是否确认?" @on-ok="batchDelete" transfer>\r\n <div class="action-item action-text action-text-delete" :class="selections.length > 0 ? \'\' : \'icon-button-disabled\'">\r\n <i class="iconfont icon-delete"></i>\r\n 批量删除\r\n </div>\r\n </i-poptip>\r\n </div>\r\n </i-row>\r\n <i-table :columns="columns" :data="dataList" class="diy-table" @on-selection-change="onChangeChecked">\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 <span @click="onDelete(index)">\r\n <i title="删除" class="iconfont icon-delete"></i>\r\n </span>\r\n </template>\r\n </i-table>\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'},2380:function(t,e,n){},2385:function(t,e,n){"use strict";var i=n("7e75"),r=n("0888");(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.35.0",mode:i?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.0/LICENSE",source:"https://github.com/zloirock/core-js"})},"23c0":function(t,e,n){"use strict";var i={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,o=r&&!i.call({1:2},1);e.f=o?function(t){var e=r(this,t);return!!e&&e.enumerable}:i},2597:function(t,e,n){"use strict";var i=n("6a10"),r=n("d631"),o=n("9b7f"),a=i.aTypedArray,s=i.exportTypedArrayMethod;s("at",(function(t){var e=a(this),n=r(e),i=o(t),s=i>=0?i:n+i;return s<0||s>=n?void 0:e[s]}))},2606:function(t,e,n){"use strict";var i=n("e900"),r=n("d803"),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),c=s&&"something"===function(){}.name,l=s&&(!i||i&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},"270f":function(t,e,n){},2720:function(t,e,n){"use strict";var i=n("0d9b"),r=n("720f");t.exports=function(t){if("Function"===i(t))return r(t)}},"2a79":function(t,e,n){},"2c48":function(t,e){t.exports='<article class="response" :class="{\'response-expand\':expand}">\r\n <header :class="{\'status-success\': response.code === 200, \'status-fail\': response.code && response.code!==200}">\r\n <span class="title">响应</span>\r\n <span class="collapse-text" @click="onClickCollapse">\r\n <i class="ivu-icon ivu-icon-ios-arrow-forward" :class="{\'icon-arrow-collapse\':expand}"></i>\r\n <span>{{expand ? "收起" : "展开"}}</span>\r\n </span>\r\n <div class="items-div">\r\n <span class="item-name">响应码:</span>\r\n <span class="item-value">{{response.code}}</span>\r\n <span class="item-name">时间:</span>\r\n <span class="item-value">{{response.time}}ms</span>\r\n <span class="item-name">大小:</span>\r\n <span class="item-value">{{response.size}}B</span>\r\n </div>\r\n </header>\r\n <main v-show="expand">\r\n <div class="response-bar">\r\n <div\r\n class="tag"\r\n @click="onClickResponseSettingTpye(item)"\r\n :class="{\'active\': item.name === active.name}"\r\n v-for="(item,index) in responseSettingTypeList"\r\n :key="item.name"\r\n >\r\n <span>{{item.title + (item.num > 0 ? \'(\' + item.num + \')\': "")}}</span>\r\n </div>\r\n </div>\r\n <div class="response-content">\r\n <template v-if="active.name === \'content\'">\r\n <header>\r\n <i-radio-group type="button" class="diy-radio-group-button response-content-radio-group" v-model="contentType">\r\n <i-radio label="originalContent">转换前</i-radio>\r\n <i-radio label="content">转换后</i-radio>\r\n </i-radio-group>\r\n <i-dropdown class="diy-dropdown response-content-dropdown" @on-click="onChangeLang">\r\n <i-button ghost type="primary" class="diy-btn-primary">\r\n <span class="lang">{{lang.toUpperCase()}}</span>\r\n <i class="api-icon icon-select"></i>\r\n </i-button>\r\n <i-dropdown-menu slot="list">\r\n <i-dropdown-item name="json">JSON</i-dropdown-item>\r\n <i-dropdown-item name="xml">XML</i-dropdown-item>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n </header>\r\n <u-editor :value="content" :lang="lang" @inited="onEditorInited"></u-editor>\r\n </template>\r\n <div v-if="active.name === \'responseHeaders\'">\r\n <i-table :columns="headerColumns" :data="responseHeaders" class="diy-table"> </i-table>\r\n </div>\r\n <template v-if="active.name === \'requestHeaders\'">\r\n <i-table :columns="headerColumns" :data="requestHeaders" class="diy-table"> </i-table>\r\n </template>\r\n <template v-if="active.name === \'cookies\'">\r\n <i-table :columns="headerColumns" :data="cookies" class="diy-table"> </i-table>\r\n </template>\r\n <template v-if="active.name===\'output\'">\r\n <span class="output">{{output}}</span>\r\n </template>\r\n </div>\r\n </main>\r\n</article>\r\n'},"2e28":function(t,e,n){},"2ece":function(t,e,n){"use strict";var i=n("2720"),r=n("7801"),o=n("12f2"),a=i(i.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},"2f53":function(t,e){t.exports='<span class="wrap">\r\n <i-poptip trigger="hover" :content="tips">\r\n\x3c!-- <div class="diy-info-icon">i</div>--\x3e\r\n <i-icon type="ios-information-circle-outline"></i-icon>\r\n </i-poptip>\r\n <span class="title">{{labelTitle}}</span>\r\n <span v-if="labelColon">:</span>\r\n</span>\r\n'},3117:function(t,e,n){"use strict";var i=n("720f"),r=n("d803"),o=n("485f"),a=n("cf8c").indexOf,s=n("929a"),c=i([].push);t.exports=function(t,e){var n,i=o(t),l=0,u=[];for(n in i)!r(s,n)&&r(i,n)&&c(u,n);while(e.length>l)r(i,n=e[l++])&&(~a(u,n)||c(u,n));return u}},"327c":function(t,e,n){"use strict";var i=n("ce97");t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},3497:function(t,e,n){},"35e3":function(t,e){t.exports='<editor class="code-edit" v-model="code" :options="option" @init="editorInit" :lang="lang" width="100%" height="100%"></editor>\r\n'},"37f5":function(t,e){t.exports='<article class="catalog-params">\r\n <header>\r\n 请求体为 JSON 数组,每一个 JSON 对象应符合如下的格式:\r\n </header>\r\n <i-table height="200" class="diy-table" :columns="columns" :data="dataList">\r\n <template slot-scope="{ row,index }" slot="type">\r\n {{(row.typeDict || {}).text}}\r\n </template>\r\n <template slot-scope="{ row,index }" slot="required">\r\n {{row.required ? "是": "否"}}\r\n </template>\r\n </i-table>\r\n</article>\r\n'},3955:function(t,e,n){"use strict";var i=n("d803"),r=n("842d"),o=n("a564"),a=n("585e");t.exports=function(t,e,n){for(var s=r(e),c=a.f,l=o.f,u=0;u<s.length;u++){var p=s[u];i(t,p)||n&&i(n,p)||c(t,p,l(e,p))}}},"39d5":function(t,e,n){"use strict";var i=n("b699"),r=n("6a10"),o=n("9195"),a=n("9b7f"),s=n("a68e"),c=r.aTypedArray,l=r.getTypedArrayConstructor,u=r.exportTypedArrayMethod,p=!!function(){try{new Int8Array(1)["with"](2,{valueOf:function(){throw 8}})}catch(t){return 8===t}}();u("with",{with:function(t,e){var n=c(this),r=a(t),u=o(n)?s(e):+e;return i(n,l(n),r,u)}}["with"],!p)},"3a71":function(t,e){t.exports='<i-collapse v-model="value" simple class="api-params">\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 <main>\r\n <i-table\r\n height="200"\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 disabled\r\n :value="!queryDataList[index].disabled"\r\n >\r\n </i-checkbox>\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 <main>\r\n <i-table\r\n height="200"\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 disabled\r\n :value="!bodyDataList[index].disabled"\r\n >\r\n </i-checkbox>\r\n </template>\r\n </i-table>\r\n <json-viewer\r\n v-else\r\n :value="model.json"\r\n boxed\r\n :copyable="{copyText: \'复制\', copiedText: \'已复制\'}"\r\n :expanded="true"\r\n :expand-depth="5"\r\n >\r\n </json-viewer>\r\n </main>\r\n </div>\r\n </i-panel>\r\n</i-collapse>\r\n'},"3ad3":function(t,e,n){},"3b85":function(t,e){t.exports='<i-modal :mask-closable="false" draggable sticky reset-drag-position v-model="show" class="diy-modal">\r\n <header slot="header">\r\n {{isEdit ? "编辑分组" : "新增分组"}}\r\n </header>\r\n <main>\r\n <i-form ref="addForm" :model="data" :rules="rules">\r\n <i-form-item prop="name" label="分组名称">\r\n <i-input class="diy-input" v-model="data.name"></i-input>\r\n </i-form-item>\r\n <i-form-item v-if="isEdit" label="所属分组" class="update-category">\r\n <u-tree-selector :treeData="categories" leaf-name="task" :canChooseFolder="true" v-model="categoryData.id" @on-select="selectCategory">\r\n </u-tree-selector>\r\n </i-form-item>\r\n </i-form>\r\n </main>\r\n <footer slot="footer">\r\n <i-button class="diy-btn-primary" type="primary" @click.stop="onSave">确定</i-button>\r\n <i-button class="diy-btn-default" @click.stop="onCancel">取消</i-button>\r\n </footer>\r\n</i-modal>\r\n'},"3bdc":function(t,e,n){"use strict";var i=n("2ece"),r=n("5ee5"),o=n("e614"),a=n("d631"),s=function(t){var e=1===t;return function(n,s,c){var l,u,p=o(n),d=r(p),h=a(d),f=i(s,c);while(h-- >0)if(l=d[h],u=f(l,h,p),u)switch(t){case 0:return l;case 1:return h}return e?-1:void 0}};t.exports={findLast:s(0),findLastIndex:s(1)}},"3bf8":function(t,e){t.exports='<i-modal draggable sticky reset-drag-position :mask-closable="false" v-model="show" width="1000" class="u-security-modal diy-modal" transfer>\r\n <header slot="header">授权认证</header>\r\n <main class="security-content">\r\n <div class="left">\r\n <div class="left-title">\r\n <div class="left-title-text">授权列表</div>\r\n <i class="api-icon icon-add" @click="onAddItem"></i>\r\n </div>\r\n <div class="left-content">\r\n <i-input class="diy-input search-input" v-model="keyword" placeholder="输入关键字查询" @on-change="onFilter">\r\n <template #prefix>\r\n <i-icon type="ios-search"/>\r\n </template>\r\n </i-input>\r\n <div class="security-list">\r\n <div class="security-list-item"\r\n :class="currentSecurityItem.id === item.id ? \'security-list-item-active\' : \'\'"\r\n v-for="(item,index) in securityList"\r\n :key="item.id || index"\r\n @click="onSelectSecurityItem(item)"\r\n >\r\n <div class="security-list-item-name">\r\n <i class="iconfont icon-shouquan1"></i>\r\n <div class="security-list-item-text" :class="currentSecurityItem.id === item.id ? \'security-list-item-text-active\' : \'\'">{{ item.name || "新授权" }}</div>\r\n </div>\r\n <i-poptip confirm title="确认删除这条数据吗?" transfer placement="top-end" @on-ok="onDelete(item)">\r\n <i class="iconfont icon-delete"></i>\r\n </i-poptip>\r\n\x3c!-- <i class="iconfont icon-delete" @click.stop="onDelete(item)"></i>--\x3e\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="right">\r\n <div class="right-title">授权内容</div>\r\n <div class="right-content">\r\n <i-form class="security-content-form" label-colon v-if="isEmpty" :model="currentSecurityItem">\r\n <template v-if="currentSecurityItem.type">\r\n <i-form-item class="security-content-form-item" :class="currentSecurityItem.type === \'OAuth2\' ? \'oauth2-form-item\' : \'\'" label="授权名称" required>\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.name"></i-input>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item" :class="currentSecurityItem.type === \'OAuth2\' ? \'oauth2-form-item\' : \'\'" label="授权类型" required>\r\n <i-select class="diy-select" v-model="currentSecurityItem.type">\r\n <i-option v-for="(item,index) in securityTypeList" :value="item.name" :key="index">{{ item.text }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </template>\r\n <template v-if="currentSecurityItem.type && currentSecurityItem.type !== \'GROOVY_SCRIPT\'">\r\n <i-form-item class="security-content-form-item" :class="currentSecurityItem.type === \'OAuth2\' ? \'oauth2-form-item\' : \'\'" label="存储位置">\r\n <i-select class="diy-select" v-model="currentSecurityItem.location">\r\n <i-option v-for="(item,index) in tokenLocationTypeList" :value="item.name" :key="item.name">{{ item.text }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item" :class="currentSecurityItem.type === \'OAuth2\' ? \'oauth2-form-item\' : \'\'" label="存储键值">\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.locationKey"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if="currentSecurityItem.type === \'Api_Key\'">\r\n <i-form-item class="security-content-form-item" label="key">\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.key"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if="currentSecurityItem.type === \'Base_Auth\'">\r\n <i-form-item class="security-content-form-item" label="username">\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.username"></i-input>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item" label="password">\r\n <i-input class="diy-password-input diy-input" placeholder="请输入" v-model="currentSecurityItem.content.password" type="password" password></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if="currentSecurityItem.type === \'OAuth2\'">\r\n <i-form-item class="security-content-form-item oauth2-form-item">\r\n <u-tips-form-label slot="label" :labelTitle="\'Header Prefix\'" tips="token前缀 例如 Bearer" label-colon></u-tips-form-label>\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.headerPrefix"></i-input>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item oauth2-form-item grant-type-item">\r\n <u-tips-form-label slot="label" :labelTitle="\'Grant Type\'" tips="认证类型" label-colon></u-tips-form-label>\r\n <i-select v-model="currentSecurityItem.content.grantType" class="diy-select">\r\n <i-option v-for="item in grantTypeList" :key="item.name" :value="item.name"> {{item.text}} </i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item oauth2-form-item">\r\n <u-tips-form-label slot="label" :labelTitle="\'Access Token Url\'" tips="获取token的httpurl" label-colon></u-tips-form-label>\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.tokenUrl"></i-input>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item oauth2-form-item">\r\n <u-tips-form-label slot="label" :labelTitle="\'TokenPath\'" tips="获取响应结果的token路径" label-colon></u-tips-form-label>\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.tokenPath"></i-input>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item oauth2-form-item" label="Client ID">\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.clientId"></i-input>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item oauth2-form-item" label="Client Secret">\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.clientSecret"></i-input>\r\n </i-form-item>\r\n <template v-if="currentSecurityItem.content.grantType === \'password\'">\r\n <i-form-item class="security-content-form-item oauth2-form-item" label="username">\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.username"></i-input>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item oauth2-form-item" label="password">\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.password" type="password" password></i-input>\r\n </i-form-item>\r\n </template>\r\n <i-form-item class="security-content-form-item oauth2-form-item">\r\n <u-tips-form-label slot="label" :labelTitle="\'Scope\'" tips="访问请求的范围,它可能有多个空格分隔的值" label-colon></u-tips-form-label>\r\n <i-input class="diy-input" placeholder="请输入" v-model="currentSecurityItem.content.scope"></i-input>\r\n </i-form-item>\r\n </template>\r\n <template v-if="currentSecurityItem.type === \'GROOVY_SCRIPT\'">\r\n <i-form-item class="security-content-form-item script-area-item" label="授权脚本">\r\n <div class="script-label" slot="label">\r\n <i-icon class="help-icon" type="md-alert" @click="showScriptDoc" title="帮助文档"> </i-icon>\r\n <span>授权脚本:</span>\r\n </div>\r\n <u-editor\r\n class="editor"\r\n :model.sync="currentSecurityItem.scriptContent"\r\n :diyKeywordList="diyKeywordList"\r\n lang="groovy"\r\n >\r\n </u-editor>\r\n </i-form-item>\r\n </template>\r\n </i-form>\r\n </div>\r\n </div>\r\n </main>\r\n\r\n <footer slot="footer">\r\n <template>\r\n <i-button class="diy-btn-default" @click="onCancel">取消</i-button>\r\n <i-button type="primary" class="diy-btn-primary" @click="onSave">保存</i-button>\r\n </template>\r\n </footer>\r\n <u-doc-modal class="script-doc-modal" v-model="scriptDocShow" :doc="scriptDoc"></u-doc-modal>\r\n</i-modal>\r\n'},"3d77":function(t,e,n){"use strict";var i=n("2385"),r=n("a047"),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},"3de4":function(t,e){t.exports='<article class="security-setting-v2">\r\n <div class="left">\r\n <i-form class="type-form diy-form" label-colon>\r\n <i-form-item label="选择授权">\r\n <i-select ref="addSecuritySelect" class="diy-select add-security-select" v-model="currentSecurityItemId" @on-change="onChangeSecurityItem($event)" @on-clear="onClear" clearable>\r\n <i-option v-for="item in securityList" :key="item.id" :value="item.id">{{ item.name }}</i-option>\r\n <i-option class="add-security-item" value="\'\'">\r\n <div class="add-security-item-content" @click.stop="onAddSecurityItem">\r\n <i class="api-icon icon-add"></i>\r\n <span>新建授权</span>\r\n </div>\r\n </i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item label="授权类型">\r\n <span class="security-type">{{ currentSecurityItem._type? currentSecurityItem._type.text : "暂无" }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class="right">\r\n <div class="right-title">授权详情</div>\r\n <div class="right-content">\r\n <div class="no-data" v-if="!currentSecurityItem.type">\r\n <div class="no-data-bg"></div>\r\n <div class="no-data-text">请在左侧下拉框中选择已建立授权</div>\r\n </div>\r\n <div class="script" v-if="currentSecurityItem.type === \'GROOVY_SCRIPT\'">\r\n <i-input class="diy-input script-area" type="textarea" v-model="currentSecurityItem.scriptContent" :readonly="true"></i-input>\r\n </div>\r\n <div class="api-key" v-if="currentSecurityItem.type === \'Api_Key\'">\r\n <i-form class="oauth-2-form diy-form" label-colon>\r\n <i-form-item label="存储位置">\r\n <span class="form-item-text">{{ currentSecurityItem._location ? currentSecurityItem._location.text : ""}}</span>\r\n </i-form-item>\r\n <i-form-item label="存储键值">\r\n <span class="form-item-text">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item label="key">\r\n <span class="form-item-text">{{ currentSecurityItem.content.key }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class="base-auth" v-if="currentSecurityItem.type === \'Base_Auth\'">\r\n <i-form class="oauth-2-form diy-form" label-colon>\r\n <i-form-item label="存储位置">\r\n <span class="form-item-text">{{ currentSecurityItem._location ? currentSecurityItem._location.text : "" }}</span>\r\n </i-form-item>\r\n <i-form-item label="存储键值">\r\n <span class="form-item-text">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item label="username">\r\n <span class="form-item-text">{{ currentSecurityItem.content.username }}</span>\r\n </i-form-item>\r\n <i-form-item label="password">\r\n \x3c!-- <span class="form-item-text">{{ "·" }}</span>--\x3e\r\n \x3c!-- <i-input class="diy-input" v-model="model.password" type="password" password placeholder="请输入"> </i-input>--\x3e\r\n <i-input class="diy-password-input diy-input" :value="currentSecurityItem.content.password" type="password"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n <div class="oauth-2" v-if="currentSecurityItem.type === \'OAuth2\'">\r\n <i-form class="oauth-2-form diy-form" label-colon>\r\n <i-form-item label="存储位置">\r\n <span class="form-item-text">{{ currentSecurityItem._location ? currentSecurityItem._location.text : "" }}</span>\r\n </i-form-item>\r\n <i-form-item label="存储键值">\r\n <span class="form-item-text">{{ currentSecurityItem.locationKey }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot="label" :labelTitle="\'Header Prefix\'" tips="token前缀 例如 Bearer" label-colon></u-tips-form-label>\r\n <span class="form-item-text">{{ currentSecurityItem.content.headerPrefix }}</span>\r\n </i-form-item>\r\n <i-form-item class="grant-type-item">\r\n <u-tips-form-label slot="label" :labelTitle="\'Grant Type\'" tips="认证类型" label-colon></u-tips-form-label>\r\n <span class="form-item-text">{{ findGrantTypeText(currentSecurityItem.content.grantType) }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot="label" :labelTitle="\'Access Token Url\'" tips="获取token的httpUrl" label-colon></u-tips-form-label>\r\n <span class="form-item-text">{{ currentSecurityItem.content.tokenUrl }}</span>\r\n </i-form-item>\r\n <i-form-item>\r\n <u-tips-form-label slot="label" :labelTitle="\'TokenPath\'" tips="获取响应结果的token路径" label-colon></u-tips-form-label>\r\n <span class="form-item-text">{{ currentSecurityItem.content.tokenPath }}</span>\r\n </i-form-item>\r\n <i-form-item label="Client ID">\r\n <span class="form-item-text">{{ currentSecurityItem.content.clientId }}</span>\r\n </i-form-item>\r\n <i-form-item label="Client Secret">\r\n <span class="form-item-text">{{ currentSecurityItem.content.clientSecret }}</span>\r\n </i-form-item>\r\n <template v-if="currentSecurityItem.content.grantType === \'password\'">\r\n <i-form-item class="security-content-form-item" label="username">\r\n <span class="form-item-text">{{ currentSecurityItem.content.username }}</span>\r\n </i-form-item>\r\n <i-form-item class="security-content-form-item" label="password">\r\n <i-input class="diy-password-input diy-input" :value="currentSecurityItem.content.password" type="password"></i-input>\r\n </i-form-item>\r\n </template>\r\n <i-form-item label="Scope">\r\n <u-tips-form-label slot="label" :labelTitle="\'Scope\'" tips="访问请求的范围,它可能有多个空格分隔的值" label-colon></u-tips-form-label>\r\n <span class="form-item-text">{{ currentSecurityItem.content.scope }}</span>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n </div>\r\n </div>\r\n <u-security-modal v-model="showSecurity" :projectID="projectID" :isAdd="isAdd"></u-security-modal>\r\n</article>\r\n'},"3fb3":function(t,e){t.exports=o},"40aa":function(t,e){t.exports='<!DOCTYPE html>\r\n<i-drawer\r\n width="700"\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model="show"\r\n class="interface-modal diy-modal"\r\n transfer\r\n title="已关联流程配置"\r\n :mask-closable="false"\r\n @on-cancel="onCancel"\r\n>\r\n <div class="header">\r\n <i-select v-model="proxyName" :placeholder="proxyList?.length ? `已有${proxyList?.length}个代理服务`:\'暂无数据\'" @on-select="selectProxyName">\r\n <i-option v-for="item in proxyList" :value="item.id" :key="item.id"> {{item.name}} </i-option>\r\n </i-select>\r\n <i-button class="diy-btn-primary" type="primary" @click="onAdd">新增配置</i-button>\r\n </div>\r\n\r\n <template>\r\n <i-form v-show="proxyName || isAdding " ref="configform" label-position="left" :label-width="125" label-colon :rules="rulesValidate" :model="model">\r\n <div class="form-title">{{formTitle}}</div>\r\n <i-form-item v-show="isAdding" label="所属分类" prop="categoryId" class="proxy-category-validate" required>\r\n <u-tree-selector\r\n :treeData="categoryList"\r\n :canChooseFolder="true"\r\n v-model="model.categoryId"\r\n @on-select="selectCategory"\r\n placeholder="请选择所属分类"\r\n ></u-tree-selector>\r\n </i-form-item>\r\n <i-form-item label="代理名称" prop="name" class="proxy-name-validate" required>\r\n <i-input class="diy-input" v-model="model.name" placeholder="请输入代理名称"></i-input>\r\n </i-form-item>\r\n <i-form-item class="proxy-name-validate" prop="code" label="接口编码" required>\r\n <i-input class="diy-input" v-model="model.code" placeholder="请输入接口编码"></i-input>\r\n </i-form-item>\r\n <i-form-item class="un-required-item copy-item" label="接口地址">\r\n <i-input class="diy-input" disabled :value="url"></i-input>\r\n <div class="set-btn" @click="onCopy(url)">复制</div>\r\n </i-form-item>\r\n <i-form-item label="描述" prop="description" class="proxy-description-validate un-required-item">\r\n <i-input type="textarea" v-model="model.description" placeholder="请输入描述" :rows="2"></i-input>\r\n </i-form-item>\r\n <i-row class="retry-wrap" style="padding-top: 8px">\r\n <i-col span="24">\r\n <i-form-item class="un-required-item copy-item">\r\n <template #label>\r\n <i-poptip slot="label" trigger="hover" word-wrap transfer>\r\n <icon style="cursor: help; font-size: 0.16rem" type="ios-information-circle-outline" />\r\n <div slot="content" style="width: 3rem">\r\n <span style="font-size: 0.14rem"\r\n >在右侧勾选日志记录的请求类型。需记录慢接口时,可以设置最小耗时阈值(大于该值将记录日志),不勾选时则不记录。日志表会记录请求头、请求参数和响应体,如果内容较多时建议关闭,请求次数频繁比较占数据库资源。选项【失败】仅记录调用失败的日志</span\r\n >\r\n </div>\r\n </i-poptip>\r\n <span>记录日志:</span>\r\n </template>\r\n <i-checkboxGroup class="diy-checkbox" v-model="logSavingEnabledList">\r\n <i-checkbox v-for="item in loginLevelFlag" :disabled="readonly" :label="item.value">{{ item.name }}</i-checkbox>\r\n </i-checkboxGroup>\r\n <i-form-item class="slow-log-threshold" prop="slowLogThreshold">\r\n >\r\n <i-input class="diy-input" type="number" :disabled="slowLogThreshold" v-model="model.slowLogThreshold"> </i-input>\r\n 毫秒\r\n </i-form-item>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <template v-if="model.logSavingEnabled">\r\n <i-row class="retry-wrap">\r\n <i-col span="11">\r\n <i-form-item label="开启重推" required>\r\n <i-select class="diy-select" v-model="model.enableRetry">\r\n <i-option v-for="(item,index) in isRetryList" :value="item.value" :key="index">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-col>\r\n <i-col span="11">\r\n <i-form-item class="un-required-item" label="重推次数" prop="retryTimes">\r\n <tips-table-label class="data-type-tips" slot="label" label-colon labelTitle="重推次数"></tips-table-label>\r\n <i-input class="diy-input" type="number" :disabled="isRetryTimesReadonly" v-model="model.retryTimes" placeholder="请输入重推次数"></i-input>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <i-row v-show="model.enableRetry === \'true\' ">\r\n <i-col span="11">\r\n <i-form-item class="un-required-item status-code">\r\n <template #label>\r\n <i-poptip slot="label" trigger="hover" content="当接口状态码和配置项相同时,才触发重推;多个自定义状态码以英文逗号分隔" word-wrap transfer>\r\n <icon style="cursor: help; font-size: 0.16rem" type="ios-information-circle-outline" />\r\n </i-poptip>\r\n <span>重推接口状态码:</span>\r\n </template>\r\n <i-form-item>\r\n <i-select v-model="statusCode" class="diy-select code-select" @on-change="onStatusCodeChange">\r\n <i-option v-for="item in statusCodeList" :value="item.value" :key="item.value">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item prop="retryCode">\r\n <i-input v-show="statusCode === \'2\'" class="diy-input" v-model="model.retryCode" placeholder="请输入状态码"></i-input>\r\n </i-form-item>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n </template>\r\n\r\n <i-row class="retry-wrap">\r\n <i-col span="11">\r\n <i-form-item label="需要认证" class="un-required-item copy-item">\r\n <i-select class="diy-select" style="margin-top: 6px" v-model="model.authFlag">\r\n <i-option v-for="item in authFlag" :value="item.value" :key="item.value">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-col>\r\n <i-col span="11">\r\n <i-form-item class="un-required-item copy-item">\r\n <template #label>\r\n <i-poptip slot="label" trigger="hover" content="使用用户中心token访问该接口时,将校验登陆是否拥有该资源代码的权限" word-wrap transfer>\r\n <icon style="cursor: help; font-size: 0.16rem" type="ios-information-circle-outline" />\r\n </i-poptip>\r\n <span>用户中心资源代码:</span>\r\n </template>\r\n <i-input\r\n class="diy-input"\r\n style="margin-top: 6px"\r\n v-model="model.resourceCode"\r\n :disabled="!isResourceCodeEnabled"\r\n placeholder="请输入用户中心资源代码"\r\n ></i-input>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <template>\r\n <i-row class="retry-wrap">\r\n <i-col span="11">\r\n <i-form-item label="代理类型">\r\n <i-input class="diy-input" value="外部接口" disabled></i-input>\r\n </i-form-item>\r\n </i-col>\r\n <i-col span="11">\r\n <i-form-item label="API项目">\r\n <i-select disabled class="diy-select" v-model="apiModel.projectId">\r\n <i-option v-for="(item,index) in projectList" :value="item.id" :key="item.id">{{ item.name }}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-col>\r\n </i-row>\r\n <i-form-item label="API接口">\r\n <u-tree-selector\r\n readonly\r\n :treeData="apiTree"\r\n leaf-name="apis"\r\n v-model="apiModel.typeId"\r\n placeholder="请选择API接口"\r\n @on-select="onApiTreeSelect"\r\n ></u-tree-selector>\r\n </i-form-item>\r\n <i-form-item label="接口路径">\r\n <i-input class="diy-input" :readonly="true" v-model="apiModel.path" :rows="4"></i-input>\r\n </i-form-item>\r\n </template>\r\n </i-form>\r\n </template>\r\n <i-table v-if="proxyName || isAdding" class="diy-table" height="200" :columns="apiColumns" :data="apiParamList"> </i-table>\r\n <div v-if="!proxyName && !isAdding " class="no-data">暂无数据</div>\r\n <div class="footer">\r\n <i-button class="diy-btn-primary" type="primary" :loading="loading" @click.stop="onSave">保存</i-button>\r\n <i-button class="diy-btn-default" @click.stop="onCancel">取消</i-button>\r\n </div>\r\n</i-drawer>\r\n'},"42a3":function(t,e,n){"use strict";var i=n("9e90"),r=TypeError;t.exports=function(t){if(i(t))throw new r("Can't call method on "+t);return t}},4387:function(t,e){t.exports=a},"44c1":function(t,e,n){},"45bb":function(t,e){t.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 \x3c!-- startprint --\x3e\r\n <mavon-editor :subfield="false" :toolbars="toolbars" :value="doc" defaultOpen="preview" @change="onChange">\r\n <template slot="left-toolbar-before">\r\n <i-dropdown placement="right-start" @on-click="onMenuClick">\r\n <span class="op-icon fa fa-mavon-floppy-o"></span>\r\n <i-dropdown-menu slot="list">\r\n <i-dropdown-item name="pdf">保存为pdf</i-dropdown-item>\r\n <i-dropdown-item name="html">保存为html</i-dropdown-item>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n </template>\r\n </mavon-editor>\r\n \x3c!-- endprint --\x3e\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'},"45e3":function(t,e,n){},"46d3":function(t,e){t.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(null)"\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" :placeholder="placeholder" @on-change="onFilter" v-model="keyword" >\r\n <i class="iconfont icon-chaxun" slot="prefix"></i>\r\n </i-input>\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 <i-modal draggable sticky reset-drag-position v-model="showImportModal" class="diy-modal duplicate-import-modal" width="800" :mask-closable="false" title="导入已合并接口">\r\n <div class="import-title">上传成功</div>\r\n <div class="import-label">{{ `上传共${importResult.total}条合并接口数据,其中${importResult.total - importResult.duplicateNum}条可成功导入。` }}</div>\r\n <div class="import-label">{{ `发现以下${importResult.duplicateNum}条接口数据存在编码重复(编码已存在),将不会被导入。` }}</div>\r\n <i-table class="diy-table import-modal-table" :columns="columns" :data="importResult.items">\r\n </i-table>\r\n <footer slot="footer">\r\n <i-button class="diy-btn-primary" type="primary" @click="onImportConfirm">确定</i-button>\r\n <i-button class="diy-btn-default" @click="onImportCancel">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n</article>\r\n'},"46df":function(t,e,n){"use strict";var i=n("9417"),r=n("6a10"),o=r.aTypedArray,a=r.exportTypedArrayMethod,s=r.getTypedArrayConstructor;a("toReversed",(function(){return i(o(this),s(this))}))},"470f":function(t,e){t.exports='<i-modal draggable sticky reset-drag-position v-model="value" class="diy-modal global-variable-modal" :mask-closable="false" title="全局参数设置">\r\n <header class="types">\r\n <div class="tag" @click="onCheckTpye(item)" :class="{\'active\': item.name === active.name}" v-for="(item,index) in typeList" :key="item.name">\r\n <span>{{item.title }}</span>\r\n </div>\r\n </header>\r\n <main class="content">\r\n <i-button type="primary" ghost class="diy-btn-primary"> <i class="api-icon icon-add"></i>新增参数</i-button>\r\n <i-table :columns="columns" :data="dataList" class="diy-table" height="400">\r\n <template slot-scope="{ row,index }" slot="name">\r\n <i-input class="diy-input" placeholder="输入参数名称" v-model="dataList[index].name"></i-input>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="value">\r\n <i-input class="diy-input" placeholder="输入参数值" v-model="dataList[index].value"></i-input>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="required">\r\n <i-switch v-model="dataList[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="remark">\r\n <i-input class="diy-input" placeholder="输入备注" v-model="dataList[index].remark"></i-input>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="action">\r\n <span class="action-btn delete" @click="onDelete(dataList,index)">删除</span>\r\n <span class="action-btn" @click="onUp(dataList,index)">上移</span>\r\n <span class="action-btn" @click="onDown(dataList,index)">下移</span>\r\n <span v-if="index !== 0" class="action-btn" @click="onTop(dataList,index)">置顶</span>\r\n <span v-if="index < dataList.length - 1" class="action-btn" @click="onBottom(dataList,index)">置底</span>\r\n </template>\r\n </i-table>\r\n </main>\r\n <slot slot="footer" name="footer"> </slot>\r\n</i-modal>\r\n'},"485f":function(t,e,n){"use strict";var i=n("5ee5"),r=n("42a3");t.exports=function(t){return i(r(t))}},4869:function(t,e,n){"use strict";var i=n("e900"),r=n("10a7"),o=n("815c");t.exports=!i&&!r((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},4935:function(t,e){t.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 :commonTaskCategoryID="taskCategoryID" :initSelectItem="initNode" :prop-data="treeData" :isTreeList="true" @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 @on-row-click="onRowClick"\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="ivu-icon ivu-icon-ios-arrow-forward" :class="{\'icon-arrow-collapse\':collapse}"></i>\r\n </span>\r\n </span>\r\n </div>\r\n <div class="card-panel-main">\r\n <template v-if="checkedData&&checkedData.length">\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 </template>\r\n <template v-else>\r\n <div class="table-no-data">\r\n <div class="table-no-data-bg"></div>\r\n <div class="table-no-data-text">暂无数据</div>\r\n </div>\r\n </template>\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'},"4cad":function(t,e,n){"use strict";var i=n("720f");t.exports=i({}.isPrototypeOf)},5217:function(t,e){t.exports=s},"554d":function(t,e){t.exports=c},"575c":function(t,e,n){"use strict";var i=n("9b7f"),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},"585e":function(t,e,n){"use strict";var i=n("e900"),r=n("4869"),o=n("ca33"),a=n("a079"),s=n("aee9"),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",d="configurable",h="writable";e.f=i?o?function(t,e,n){if(a(t),e=s(e),a(n),"function"===typeof t&&"prototype"===e&&"value"in n&&h in n&&!n[h]){var i=u(t,e);i&&i[h]&&(t[e]=n.value,n={configurable:d in n?n[d]:i[d],enumerable:p in n?n[p]:i[p],writable:!1})}return l(t,e,n)}:l:function(t,e,n){if(a(t),e=s(e),a(n),r)try{return l(t,e,n)}catch(i){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},"58d2":function(t,e,n){},"5afa":function(t,e,n){"use strict";var i=n("3117"),r=n("e1e9"),o=r.concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},"5ee5":function(t,e,n){"use strict";var i=n("720f"),r=n("10a7"),o=n("0d9b"),a=Object,s=i("".split);t.exports=r((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"===o(t)?s(t,""):a(t)}:a},"61ef":function(t,e,n){},6255:function(t,e){t.exports='<i-modal\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model="value"\r\n class="diy-modal"\r\n :mask-closable="false"\r\n :title="data.id ? \'编辑项目\': \'新建项目\'"\r\n>\r\n <i-form :label-width="95" class="diy-form" label-colon>\r\n <i-form-item label="项目名称" required>\r\n <i-input\r\n v-model.trim="data.name"\r\n class="diy-input"\r\n placeholder="请输入项目名称"\r\n ></i-input>\r\n </i-form-item>\r\n <i-form-item label="项目描述">\r\n <i-input\r\n class="diy-input"\r\n type="textarea"\r\n :rows="4"\r\n v-model="data.description"\r\n placeholder="请输入项目描述"\r\n ></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <slot slot="footer" name="footer"> </slot>\r\n</i-modal>\r\n'},6296:function(t,e,n){"use strict";var i=n("8785");t.exports=function(t){return i(t)||null===t}},6397:function(t,e){t.exports=l},"64d5":function(t,e){t.exports=u},"65e5":function(t,e,n){},"688a":function(t,e,n){},"68b7":function(t,e,n){"use strict";var i=n("92d6"),r=n("720f"),o=n("ce97"),a=n("96e5"),s=URLSearchParams,c=s.prototype,l=r(c.append),u=r(c["delete"]),p=r(c.forEach),d=r([].push),h=new s("a=1&a=2&b=3");h["delete"]("a",1),h["delete"]("b",void 0),h+""!=="a=2"&&i(c,"delete",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var i=[];p(this,(function(t,e){d(i,{key:e,value:t})})),a(e,1);var r,s=o(t),c=o(n),h=0,f=0,m=!1,y=i.length;while(h<y)r=i[h++],m||r.key===s?(m=!0,u(this,r.key)):f++;while(f<y)r=i[f++],r.key===s&&r.value===c||l(this,r.key,r.value)}),{enumerable:!0,unsafe:!0})},"6a10":function(t,e,n){"use strict";var i,r,o,a=n("f764"),s=n("e900"),c=n("bc85"),l=n("ec2f"),u=n("8785"),p=n("d803"),d=n("aaa6"),h=n("1d6e"),f=n("9822"),m=n("92d6"),y=n("889b"),v=n("4cad"),g=n("a54a"),b=n("a2df"),w=n("fff8"),x=n("a047"),S=n("fcc0"),I=S.enforce,k=S.get,C=c.Int8Array,j=C&&C.prototype,D=c.Uint8ClampedArray,T=D&&D.prototype,O=C&&g(C),E=j&&g(j),P=Object.prototype,L=c.TypeError,M=w("toStringTag"),A=x("TYPED_ARRAY_TAG"),N="TypedArrayConstructor",q=a&&!!b&&"Opera"!==d(c.opera),$=!1,R={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},_={BigInt64Array:8,BigUint64Array:8},F=function(t){if(!u(t))return!1;var e=d(t);return"DataView"===e||p(R,e)||p(_,e)},B=function(t){var e=g(t);if(u(e)){var n=k(e);return n&&p(n,N)?n[N]:B(e)}},z=function(t){if(!u(t))return!1;var e=d(t);return p(R,e)||p(_,e)},V=function(t){if(z(t))return t;throw new L("Target is not a typed array")},U=function(t){if(l(t)&&(!b||v(O,t)))return t;throw new L(h(t)+" is not a typed array constructor")},H=function(t,e,n,i){if(s){if(n)for(var r in R){var o=c[r];if(o&&p(o.prototype,t))try{delete o.prototype[t]}catch(a){try{o.prototype[t]=e}catch(l){}}}E[t]&&!n||m(E,t,n?e:q&&j[t]||e,i)}},G=function(t,e,n){var i,r;if(s){if(b){if(n)for(i in R)if(r=c[i],r&&p(r,t))try{delete r[t]}catch(o){}if(O[t]&&!n)return;try{return m(O,t,n?e:q&&O[t]||e)}catch(o){}}for(i in R)r=c[i],!r||r[t]&&!n||m(r,t,e)}};for(i in R)r=c[i],o=r&&r.prototype,o?I(o)[N]=r:q=!1;for(i in _)r=c[i],o=r&&r.prototype,o&&(I(o)[N]=r);if((!q||!l(O)||O===Function.prototype)&&(O=function(){throw new L("Incorrect invocation")},q))for(i in R)c[i]&&b(c[i],O);if((!q||!E||E===P)&&(E=O.prototype,q))for(i in R)c[i]&&b(c[i].prototype,E);if(q&&g(T)!==E&&b(T,E),s&&!p(E,M))for(i in $=!0,y(E,M,{configurable:!0,get:function(){return u(this)?this[A]:void 0}}),R)c[i]&&f(c[i],A,i);t.exports={NATIVE_ARRAY_BUFFER_VIEWS:q,TYPED_ARRAY_TAG:$&&A,aTypedArray:V,aTypedArrayConstructor:U,exportTypedArrayMethod:H,exportTypedArrayStaticMethod:G,getTypedArrayConstructor:B,isView:F,isTypedArray:z,TypedArray:O,TypedArrayPrototype:E}},"6a6c":function(t,e,n){"use strict";var i=n("fff8"),r=i("toStringTag"),o={};o[r]="z",t.exports="[object z]"===String(o)},"6bf0":function(t,e,n){"use strict";var i=n("bc85"),r=n("a95a"),o=n("6a10"),a=n("d631"),s=n("16bf"),c=n("e614"),l=n("10a7"),u=i.RangeError,p=i.Int8Array,d=p&&p.prototype,h=d&&d.set,f=o.aTypedArray,m=o.exportTypedArrayMethod,y=!l((function(){var t=new Uint8ClampedArray(2);return r(h,t,{length:1,0:3},1),3!==t[1]})),v=y&&o.NATIVE_ARRAY_BUFFER_VIEWS&&l((function(){var t=new p(2);return t.set(1),t.set("2",1),0!==t[0]||2!==t[1]}));m("set",(function(t){f(this);var e=s(arguments.length>1?arguments[1]:void 0,1),n=c(t);if(y)return r(h,this,n,e);var i=this.length,o=a(n),l=0;if(o+e>i)throw new u("Wrong length");while(l<o)this[e+l]=n[l++]}),!y||v)},"6d46":function(t,e){t.exports='<article class="u-common-tree" :class="className.join(\' \')">\r\n <slot name="header"></slot>\r\n <section class="content">\r\n <i-input\r\n class="search-input"\r\n suffix="ios-search"\r\n :placeholder="placeholder"\r\n @on-change="onFilter"\r\n v-model="keyword"\r\n >\r\n <i class="iconfont icon-chaxun" slot="prefix"></i>\r\n </i-input>\r\n <i-tree\r\n :data="renderData"\r\n :render="renderContent"\r\n @on-toggle-expand="onToggleExpand"\r\n ></i-tree>\r\n </section>\r\n</article>\r\n'},"6d6e":function(t,e,n){"use strict";var i=n("bd74"),r=n("d803"),o=n("9822"),a=n("4cad"),s=n("a2df"),c=n("3955"),l=n("862c"),u=n("998d"),p=n("327c"),d=n("8c3a"),h=n("17f8"),f=n("e900"),m=n("7e75");t.exports=function(t,e,n,y){var v="stackTraceLimit",g=y?2:1,b=t.split("."),w=b[b.length-1],x=i.apply(null,b);if(x){var S=x.prototype;if(!m&&r(S,"cause")&&delete S.cause,!n)return x;var I=i("Error"),k=e((function(t,e){var n=p(y?e:t,void 0),i=y?new x(t):new x;return void 0!==n&&o(i,"message",n),h(i,k,i.stack,2),this&&a(S,this)&&u(i,this,k),arguments.length>g&&d(i,arguments[g]),i}));if(k.prototype=S,"Error"!==w?s?s(k,I):c(k,I,{name:!0}):f&&v in x&&(l(k,x,v),l(k,x,"prepareStackTrace")),c(k,x),!m)try{S.name!==w&&o(S,"name",w),S.constructor=k}catch(C){}return k}}},"713b":function(t,e,n){},"720f":function(t,e,n){"use strict";var i=n("12f2"),r=Function.prototype,o=r.call,a=i&&r.bind.bind(o,o);t.exports=i?a:function(t){return function(){return o.apply(t,arguments)}}},7359:function(t,e,n){},7640:function(t,e){t.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 <i-icon class="help-icon" type="md-alert" @click.stop="showScriptDoc" title="说明文档"> </i-icon>\r\n <span class="status">{{getExpand(\'1\') ? "收起" : "展开"}}</span>\r\n <div slot="content" class="setting-content">\r\n <header>\r\n <i-button type="primary" ghost class="diy-btn-primary" @click="onAddRequestParam"> <i class="api-icon icon-add"></i>新增参数 </i-button>\r\n </header>\r\n <main>\r\n <i-table class="diy-table" @on-selection-change="onQuerySelectionChange" :columns="paramColumns" :data="queryDataList">\r\n <template slot-scope="{ row,index }" slot="selection">\r\n <i-switch size="large" :value="!queryDataList[index].disabled" @on-change="onChangeDisabled($event,queryDataList[index],\'query\')">\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="name">\r\n <i-input class="diy-input" placeholder="输入参数名称" v-model="queryDataList[index].name"></i-input>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="valueContent">\r\n <i-input class="diy-input" placeholder="输入参数值" v-model="queryDataList[index].valueContent"></i-input>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="required">\r\n <i-switch v-model="queryDataList[index].requireFlag" :disabled="queryDataList[index].disabled" :true-value="1" :false-value="0">\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 class="diy-input" placeholder="输入备注" v-model="queryDataList[index].text"></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,row.indexFlag,\'query\')" transfer>\r\n <i class="iconfont icon-delete" title="删除"></i>\r\n </i-poptip>\r\n <span>\r\n <i v-if="index>0" class="iconfont icon-up" @click="onUp(queryDataList,index)" title="上移"></i>\r\n <i v-if="index>0" class="iconfont icon-top" title="置顶" @click="onTop(queryDataList,index)"></i>\r\n <i v-if="index < queryDataList.length - 1" @click="onDown(queryDataList,index)" class="iconfont icon-down" title="下移"></i>\r\n <i v-if="index < queryDataList.length - 1" @click="onBottom(queryDataList,index)" class="iconfont icon-bottom" title="置底"></i>\r\n </span>\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 v-if="isFormData" type="primary" ghost class="diy-btn-primary" @click="onAddBodyParam"> <i class="api-icon icon-add"></i>新增参数 </i-button>\r\n <i-button v-else type="primary" ghost class="diy-btn-primary" @click="onBeautify"> <i class="api-icon icon-view"></i>格式化 </i-button>\r\n <i-select transfer v-model="interfaceModel.info.requestBodyType" class="diy-select">\r\n <i-option v-for="item in requestBodyTypeList" :value="item.name" :key="item.name">{{item.text}}</i-option>\r\n </i-select>\r\n </header>\r\n <main>\r\n <i-table\r\n class="diy-table"\r\n @on-selection-change="onBodySelectionChange"\r\n :columns="bodyColumns"\r\n :data="bodyDataList"\r\n v-if="isFormData"\r\n >\r\n <template slot-scope="{ row,index }" slot="selection">\r\n <i-switch size="large" :value="!bodyDataList[index].disabled" @on-change="onChangeDisabled($event,bodyDataList[index],\'body\')">\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="name">\r\n <div class="body-name-row">\r\n <i-input class="diy-input" placeholder="输入参数名称" v-model="bodyDataList[index].name"></i-input>\r\n <i-select class="diy-select" v-if="bodyType === \'Form\'" v-model="row.valueType" @on-change="onChangeFormParamType(index, row)" transfer>\r\n <i-option v-for="item in formParamTypeList" :value="item.name" :key="item.name">{{item.text}}</i-option>\r\n </i-select>\r\n </div>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="valueContent">\r\n <i-input v-if="row.valueType !== \'FILE\'" class="diy-input" placeholder="输入参数值" v-model="bodyDataList[index].valueContent"></i-input>\r\n <i-upload v-if="row.valueType === \'FILE\' && !row.fileName" action="" :before-upload="onImport" :show-upload-list="false">\r\n <i-button class="file-btn" icon="ios-cloud-upload-outline" @click="onClickRow(row)">选择文件</i-button>\r\n </i-upload>\r\n <div class="file-wrap" v-if="row.valueType === \'FILE\' && row.fileName">\r\n <div class="file-name" :title="row.fileName">{{ row.fileName }}</div>\r\n <i-icon type="ios-close" @click="onClearFile(row)" />\r\n </div>\r\n </template>\r\n <template slot-scope="{ row,index }" slot="required">\r\n <i-switch v-model="bodyDataList[index].requireFlag" :disabled="bodyDataList[index].disabled" :true-value="1" :false-value="0">\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 class="diy-input" placeholder="输入备注" v-model="bodyDataList[index].remark"></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="onDeleteBodyParam(interfaceModel.formParams,row.indexFlag,\'body\')" transfer>\r\n <i class="iconfont icon-delete" title="删除"></i>\r\n </i-poptip>\r\n <span>\r\n <i v-if="index > 0" class="iconfont icon-up" @click="onUpBodyParam(interfaceModel.formParams,row.id)" title="上移"></i>\r\n <i v-if="index > 0" class="iconfont icon-top" @click="onTopBodyParam(interfaceModel.formParams,row.id)" title="置顶"></i>\r\n <i v-if="index < bodyDataList.length - 1" @click="onDownBodyParam(interfaceModel.formParams,row.id)" class="iconfont icon-down" title="下移"></i>\r\n <i\r\n v-if="index < bodyDataList.length - 1"\r\n @click="onBottomBodyParam(interfaceModel.formParams,row.id)"\r\n class="iconfont icon-bottom"\r\n title="置底"\r\n ></i>\r\n </span>\r\n </template>\r\n </i-table>\r\n <u-editor v-else :value.sync="interfaceModel.json" lang="json" @inited="onEditorInited"></u-editor>\r\n </main>\r\n </div>\r\n </i-panel>\r\n </i-collapse>\r\n <u-doc-modal class="script-doc-modal" v-model="scriptDocShow" :doc="scriptDoc"></u-doc-modal>\r\n</article>\r\n'},"767a":function(t,e,n){"use strict";var i=n("ad8b"),r=n("10a7"),o=n("bc85"),a=o.String;t.exports=!!Object.getOwnPropertySymbols&&!r((function(){var t=Symbol("symbol detection");return!a(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},7801:function(t,e,n){"use strict";var i=n("ec2f"),r=n("1d6e"),o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not a function")}},"7af4":function(t,e,n){
2
2
  /*!
3
3
  * vue-virtual-scroll-list v2.3.4
4
4
  * open source under the MIT license
5
5
  * https://github.com/tangbc/vue-virtual-scroll-list#readme
6
6
  */
7
- (function(e,i){t.exports=i(n("8bbf"))})(0,(function(t){"use strict";function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function n(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){return c(t)||l(t)||u(t)||d()}function c(t){if(Array.isArray(t))return p(t)}function l(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function u(t,e){if(t){if("string"===typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t;var h={FRONT:"FRONT",BEHIND:"BEHIND"},f={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},m=0,y=function(){function t(e,n){i(this,t),this.init(e,n)}return o(t,[{key:"init",value:function(t,e){this.param=t,this.callUpdate=e,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.fixedSizeValue=0,this.calcType=f.INIT,this.offset=0,this.direction="",this.range=Object.create(null),t&&this.checkRange(0,t.keeps-1)}},{key:"destroy",value:function(){this.init(null,null)}},{key:"getRange",value:function(){var t=Object.create(null);return t.start=this.range.start,t.end=this.range.end,t.padFront=this.range.padFront,t.padBehind=this.range.padBehind,t}},{key:"isBehind",value:function(){return this.direction===h.BEHIND}},{key:"isFront",value:function(){return this.direction===h.FRONT}},{key:"getOffset",value:function(t){return(t<1?0:this.getIndexOffset(t))+this.param.slotHeaderSize}},{key:"updateParam",value:function(t,e){var n=this;this.param&&t in this.param&&("uniqueIds"===t&&this.sizes.forEach((function(t,i){e.includes(i)||n.sizes["delete"](i)})),this.param[t]=e)}},{key:"saveSize",value:function(t,e){this.sizes.set(t,e),this.calcType===f.INIT?(this.fixedSizeValue=e,this.calcType=f.FIXED):this.calcType===f.FIXED&&this.fixedSizeValue!==e&&(this.calcType=f.DYNAMIC,delete this.fixedSizeValue),this.calcType!==f.FIXED&&"undefined"!==typeof this.firstRangeTotalSize&&(this.sizes.size<Math.min(this.param.keeps,this.param.uniqueIds.length)?(this.firstRangeTotalSize=s(this.sizes.values()).reduce((function(t,e){return t+e}),0),this.firstRangeAverageSize=Math.round(this.firstRangeTotalSize/this.sizes.size)):delete this.firstRangeTotalSize)}},{key:"handleDataSourcesChange",value:function(){var t=this.range.start;this.isFront()?t-=m:this.isBehind()&&(t+=m),t=Math.max(t,0),this.updateRange(this.range.start,this.getEndByStart(t))}},{key:"handleSlotSizeChange",value:function(){this.handleDataSourcesChange()}},{key:"handleScroll",value:function(t){this.direction=t<this.offset||0===t?h.FRONT:h.BEHIND,this.offset=t,this.param&&(this.direction===h.FRONT?this.handleFront():this.direction===h.BEHIND&&this.handleBehind())}},{key:"handleFront",value:function(){var t=this.getScrollOvers();if(!(t>this.range.start)){var e=Math.max(t-this.param.buffer,0);this.checkRange(e,this.getEndByStart(e))}}},{key:"handleBehind",value:function(){var t=this.getScrollOvers();t<this.range.start+this.param.buffer||this.checkRange(t,this.getEndByStart(t))}},{key:"getScrollOvers",value:function(){var t=this.offset-this.param.slotHeaderSize;if(t<=0)return 0;if(this.isFixedType())return Math.floor(t/this.fixedSizeValue);var e=0,n=0,i=0,r=this.param.uniqueIds.length;while(e<=r){if(n=e+Math.floor((r-e)/2),i=this.getIndexOffset(n),i===t)return n;i<t?e=n+1:i>t&&(r=n-1)}return e>0?--e:0}},{key:"getIndexOffset",value:function(t){if(!t)return 0;for(var e=0,n=0,i=0;i<t;i++)n=this.sizes.get(this.param.uniqueIds[i]),e+="number"===typeof n?n:this.getEstimateSize();return e}},{key:"isFixedType",value:function(){return this.calcType===f.FIXED}},{key:"getLastIndex",value:function(){return this.param.uniqueIds.length-1}},{key:"checkRange",value:function(t,e){var n=this.param.keeps,i=this.param.uniqueIds.length;i<=n?(t=0,e=this.getLastIndex()):e-t<n-1&&(t=e-n+1),this.range.start!==t&&this.updateRange(t,e)}},{key:"updateRange",value:function(t,e){this.range.start=t,this.range.end=e,this.range.padFront=this.getPadFront(),this.range.padBehind=this.getPadBehind(),this.callUpdate(this.getRange())}},{key:"getEndByStart",value:function(t){var e=t+this.param.keeps-1,n=Math.min(e,this.getLastIndex());return n}},{key:"getPadFront",value:function(){return this.isFixedType()?this.fixedSizeValue*this.range.start:this.getIndexOffset(this.range.start)}},{key:"getPadBehind",value:function(){var t=this.range.end,e=this.getLastIndex();return this.isFixedType()?(e-t)*this.fixedSizeValue:(e-t)*this.getEstimateSize()}},{key:"getEstimateSize",value:function(){return this.isFixedType()?this.fixedSizeValue:this.firstRangeAverageSize||this.param.estimateSize}}]),t}(),v={dataKey:{type:[String,Function],required:!0},dataSources:{type:Array,required:!0},dataComponent:{type:[Object,Function],required:!0},keeps:{type:Number,default:30},extraProps:{type:Object},estimateSize:{type:Number,default:50},direction:{type:String,default:"vertical"},start:{type:Number,default:0},offset:{type:Number,default:0},topThreshold:{type:Number,default:0},bottomThreshold:{type:Number,default:0},pageMode:{type:Boolean,default:!1},rootTag:{type:String,default:"div"},wrapTag:{type:String,default:"div"},wrapClass:{type:String,default:""},wrapStyle:{type:Object},itemTag:{type:String,default:"div"},itemClass:{type:String,default:""},itemClassAdd:{type:Function},itemStyle:{type:Object},headerTag:{type:String,default:"div"},headerClass:{type:String,default:""},headerStyle:{type:Object},footerTag:{type:String,default:"div"},footerClass:{type:String,default:""},footerStyle:{type:Object},itemScopedSlots:{type:Object}},g={index:{type:Number},event:{type:String},tag:{type:String},horizontal:{type:Boolean},source:{type:Object},component:{type:[Object,Function]},slotComponent:{type:Function},uniqueKey:{type:[String,Number]},extraProps:{type:Object},scopedSlots:{type:Object}},b={event:{type:String},uniqueKey:{type:String},tag:{type:String},horizontal:{type:Boolean}},w={created:function(){this.shapeKey=this.horizontal?"offsetWidth":"offsetHeight"},mounted:function(){var t=this;"undefined"!==typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(){t.dispatchSizeChange()})),this.resizeObserver.observe(this.$el))},updated:function(){this.resizeObserver.observe(this.$el)},beforeDestroy:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},methods:{getCurrentSize:function(){return this.$el?this.$el[this.shapeKey]:0},dispatchSizeChange:function(){this.$parent.$emit(this.event,this.uniqueKey,this.getCurrentSize(),this.hasInitial)}}},x=t.component("virtual-list-item",{mixins:[w],props:g,render:function(t){var e=this.tag,i=this.component,r=this.extraProps,o=void 0===r?{}:r,a=this.index,s=this.source,c=this.scopedSlots,l=void 0===c?{}:c,u=this.uniqueKey,p=this.slotComponent,d=n(n({},o),{},{source:s,index:a});return t(e,{key:u,attrs:{role:"listitem"}},[p?p({item:s,index:a,scope:d}):t(i,{props:d,scopedSlots:l})])}}),S=t.component("virtual-list-slot",{mixins:[w],props:b,render:function(t){var e=this.tag,n=this.uniqueKey;return t(e,{key:n,attrs:{role:n}},this.$slots["default"])}}),I={ITEM:"item_resize",SLOT:"slot_resize"},k={HEADER:"thead",FOOTER:"tfoot"},C=t.component("virtual-list",{props:v,data:function(){return{range:null}},watch:{"dataSources.length":function(){this.virtual.updateParam("uniqueIds",this.getUniqueIdFromDataSources()),this.virtual.handleDataSourcesChange()},keeps:function(t){this.virtual.updateParam("keeps",t),this.virtual.handleSlotSizeChange()},start:function(t){this.scrollToIndex(t)},offset:function(t){this.scrollToOffset(t)}},created:function(){this.isHorizontal="horizontal"===this.direction,this.directionKey=this.isHorizontal?"scrollLeft":"scrollTop",this.installVirtual(),this.$on(I.ITEM,this.onItemResized),(this.$slots.header||this.$slots.footer)&&this.$on(I.SLOT,this.onSlotResized)},activated:function(){this.scrollToOffset(this.virtual.offset),this.pageMode&&document.addEventListener("scroll",this.onScroll,{passive:!1})},deactivated:function(){this.pageMode&&document.removeEventListener("scroll",this.onScroll)},mounted:function(){this.start?this.scrollToIndex(this.start):this.offset&&this.scrollToOffset(this.offset),this.pageMode&&(this.updatePageModeFront(),document.addEventListener("scroll",this.onScroll,{passive:!1}))},beforeDestroy:function(){this.virtual.destroy(),this.pageMode&&document.removeEventListener("scroll",this.onScroll)},methods:{getSize:function(t){return this.virtual.sizes.get(t)},getSizes:function(){return this.virtual.sizes.size},getOffset:function(){if(this.pageMode)return document.documentElement[this.directionKey]||document.body[this.directionKey];var t=this.$refs.root;return t?Math.ceil(t[this.directionKey]):0},getClientSize:function(){var t=this.isHorizontal?"clientWidth":"clientHeight";if(this.pageMode)return document.documentElement[t]||document.body[t];var e=this.$refs.root;return e?Math.ceil(e[t]):0},getScrollSize:function(){var t=this.isHorizontal?"scrollWidth":"scrollHeight";if(this.pageMode)return document.documentElement[t]||document.body[t];var e=this.$refs.root;return e?Math.ceil(e[t]):0},scrollToOffset:function(t){if(this.pageMode)document.body[this.directionKey]=t,document.documentElement[this.directionKey]=t;else{var e=this.$refs.root;e&&(e[this.directionKey]=t)}},scrollToIndex:function(t){if(t>=this.dataSources.length-1)this.scrollToBottom();else{var e=this.virtual.getOffset(t);this.scrollToOffset(e)}},scrollToBottom:function(){var t=this,e=this.$refs.shepherd;if(e){var n=e[this.isHorizontal?"offsetLeft":"offsetTop"];this.scrollToOffset(n),setTimeout((function(){t.getOffset()+t.getClientSize()+1<t.getScrollSize()&&t.scrollToBottom()}),3)}},updatePageModeFront:function(){var t=this.$refs.root;if(t){var e=t.getBoundingClientRect(),n=t.ownerDocument.defaultView,i=this.isHorizontal?e.left+n.pageXOffset:e.top+n.pageYOffset;this.virtual.updateParam("slotHeaderSize",i)}},reset:function(){this.virtual.destroy(),this.scrollToOffset(0),this.installVirtual()},installVirtual:function(){this.virtual=new y({slotHeaderSize:0,slotFooterSize:0,keeps:this.keeps,estimateSize:this.estimateSize,buffer:Math.round(this.keeps/3),uniqueIds:this.getUniqueIdFromDataSources()},this.onRangeChanged),this.range=this.virtual.getRange()},getUniqueIdFromDataSources:function(){var t=this.dataKey;return this.dataSources.map((function(e){return"function"===typeof t?t(e):e[t]}))},onItemResized:function(t,e){this.virtual.saveSize(t,e),this.$emit("resized",t,e)},onSlotResized:function(t,e,n){t===k.HEADER?this.virtual.updateParam("slotHeaderSize",e):t===k.FOOTER&&this.virtual.updateParam("slotFooterSize",e),n&&this.virtual.handleSlotSizeChange()},onRangeChanged:function(t){this.range=t},onScroll:function(t){var e=this.getOffset(),n=this.getClientSize(),i=this.getScrollSize();e<0||e+n>i+1||!i||(this.virtual.handleScroll(e),this.emitEvent(e,n,i,t))},emitEvent:function(t,e,n,i){this.$emit("scroll",i,this.virtual.getRange()),this.virtual.isFront()&&this.dataSources.length&&t-this.topThreshold<=0?this.$emit("totop"):this.virtual.isBehind()&&t+e+this.bottomThreshold>=n&&this.$emit("tobottom")},getRenderSlots:function(t){for(var e=[],n=this.range,i=n.start,r=n.end,o=this.dataSources,a=this.dataKey,s=this.itemClass,c=this.itemTag,l=this.itemStyle,u=this.isHorizontal,p=this.extraProps,d=this.dataComponent,h=this.itemScopedSlots,f=this.$scopedSlots&&this.$scopedSlots.item,m=i;m<=r;m++){var y=o[m];if(y){var v="function"===typeof a?a(y):y[a];"string"===typeof v||"number"===typeof v?e.push(t(x,{props:{index:m,tag:c,event:I.ITEM,horizontal:u,uniqueKey:v,source:y,extraProps:p,component:d,slotComponent:f,scopedSlots:h},style:l,class:"".concat(s).concat(this.itemClassAdd?" "+this.itemClassAdd(m):"")})):console.warn("Cannot get the data-key '".concat(a,"' from data-sources."))}else console.warn("Cannot get the index '".concat(m,"' from data-sources."))}return e}},render:function(t){var e=this.$slots,n=e.header,i=e.footer,r=this.range,o=r.padFront,a=r.padBehind,s=this.isHorizontal,c=this.pageMode,l=this.rootTag,u=this.wrapTag,p=this.wrapClass,d=this.wrapStyle,h=this.headerTag,f=this.headerClass,m=this.headerStyle,y=this.footerTag,v=this.footerClass,g=this.footerStyle,b={padding:s?"0px ".concat(a,"px 0px ").concat(o,"px"):"".concat(o,"px 0px ").concat(a,"px")},w=d?Object.assign({},d,b):b;return t(l,{ref:"root",on:{"&scroll":!c&&this.onScroll}},[n?t(S,{class:f,style:m,props:{tag:h,event:I.SLOT,uniqueKey:k.HEADER}},n):null,t(u,{class:p,attrs:{role:"group"},style:w},this.getRenderSlots(t)),i?t(S,{class:v,style:g,props:{tag:y,event:I.SLOT,uniqueKey:k.FOOTER}},i):null,t("div",{ref:"shepherd",style:{width:s?"0px":"100%",height:s?"100%":"0px"}})])}});return C}))},"7c6e":function(t,e,n){"use strict";var i=n("720f"),r=n("ec2f"),o=n("0888"),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},"7c77":function(t,e,n){"use strict";var i=n("6296"),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o("Can't set "+r(t)+" as a prototype")}},"7ddf":function(t,e,n){"use strict";var i=n("bc85"),r=n("ec2f"),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},"7e75":function(t,e,n){"use strict";t.exports=!1},8137:function(t,e,n){},"815c":function(t,e,n){"use strict";var i=n("bc85"),r=n("8785"),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},8214:function(t,e){t.exports=p},"82af":function(t,e){t.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 <template v-if="data&&data.length">\r\n <i-table class="diy-table" :columns="columns" :data="data" @on-selection-change="onSelected" @on-row-click="onRowClick">\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 </template>\r\n <template v-else>\r\n <div class="table-no-data">\r\n <div class="table-no-data-bg"></div>\r\n <div class="table-no-data-text">暂无数据</div>\r\n </div>\r\n </template>\r\n </main>\r\n <div class="pagination" v-if="data&&data.length">\r\n <i-page class="diy-page" :total="page.totalCount" @on-change="onPageIndexChange" @on-page-size-change="onPageSizeChange" placement="top" 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'},"82ef":function(t,e,n){"use strict";var i=n("bc85"),r=n("a564").f,o=n("9822"),a=n("92d6"),s=n("9afe"),c=n("3955"),l=n("04ca");t.exports=function(t,e){var n,u,p,d,h,f,m=t.target,y=t.global,v=t.stat;if(u=y?i:v?i[m]||s(m,{}):(i[m]||{}).prototype,u)for(p in e){if(h=e[p],t.dontCallGetSet?(f=r(u,p),d=f&&f.value):d=u[p],n=l(y?p:m+(v?".":"#")+p,t.forced),!n&&void 0!==d){if(typeof h==typeof d)continue;c(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),a(u,p,h,t)}}},8380:function(t,e){t.exports=d},"842d":function(t,e,n){"use strict";var i=n("bd74"),r=n("720f"),o=n("5afa"),a=n("1215"),s=n("a079"),c=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?c(e,n(t)):e}},"862c":function(t,e,n){"use strict";var i=n("585e").f;t.exports=function(t,e,n){n in t||i(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},8785:function(t,e,n){"use strict";var i=n("ec2f");t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},"889b":function(t,e,n){"use strict";var i=n("95e7"),r=n("585e");t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),r.f(t,e,n)}},"88af":function(t,e){t.exports='<i-modal draggable sticky reset-drag-position :mask-closable="false" v-model="value" width="800" class="u-variable-modal diy-modal" transfer>\r\n <header slot="header">批量修改环境变量与授权</header>\r\n <main class="variable-content">\r\n <div class="left">\r\n <div class="left-title">\r\n <div class="left-title-text">选择API</div>\r\n </div>\r\n <div class="left-content">\r\n <i-input class="diy-input search-input" v-model="keyword" placeholder="输入关键字查询" @on-change="onFilter">\r\n <template #prefix>\r\n <i-icon type="ios-search"/>\r\n </template>\r\n </i-input>\r\n <div class="security-list">\r\n <i-checkbox class="security-list-item-checkbox" v-model="allSelect" @on-change="onAllSelect">全选</i-checkbox>\r\n <div class="security-list-item"\r\n v-for="(item,index) in apiList"\r\n :key="item.id || index"\r\n >\r\n <div class="security-list-item-name">\r\n <i-checkbox v-model="item.selected" @on-change="onSelect($event,item)"></i-checkbox>\r\n <i class="iconfont icon-API"></i>\r\n <div class="security-list-item-text" :title="item.name">{{ item.name }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="right">\r\n <div class="right-title">环境与授权</div>\r\n <div class="right-content">\r\n <i-form ref="batch-api-form" class="variable-content-form" label-colon label-position="left" v-if="isEmpty" :rules="rules" :label-width="100" :model="formData">\r\n <i-form-item class="content-form-item un-required-item" label="选择属性">\r\n <i-select class="diy-select" placeholder="请输入" clearable v-model="type">\r\n <i-option value="env">环境变量</i-option>\r\n <i-option value="auth">授权设置</i-option>\r\n <i-option value="both">环境变量和授权设置</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class="content-form-item" v-if="type !== \'auth\'" label="环境变量" prop="envId">\r\n <i-select class="diy-select diy-batch-select diy-batch-variable-select" placeholder="请选择" clearable v-model="formData.envId">\r\n <i-option value="empty">清空所有已设置环境变量</i-option>\r\n <i-option v-for="item in variableList" :key="item.name" :value="item.id" :title="item.name + \':\' + item.value">{{item.name + ":" + item.value}}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class="content-form-item" label="授权设置" v-if="type !== \'env\'" prop="authId">\r\n <i-select class="diy-select diy-batch-select" placeholder="请选择" clearable v-model="formData.authId">\r\n <i-option value="empty">清空所有已设置授权</i-option>\r\n <i-option v-for="item in securityList" :key="item.name" :value="item.id">{{item.name}} </i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n </div>\r\n </main>\r\n\r\n <footer slot="footer">\r\n <template>\r\n <i-button class="diy-btn-default" @click="onCancel">取消</i-button>\r\n <i-button type="primary" class="diy-btn-primary" @click="onSave">保存</i-button>\r\n </template>\r\n </footer>\r\n</i-modal>\r\n'},"88bc":function(t,e,n){"use strict";var i=n("e900"),r=n("234b"),o=TypeError,a=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!a(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},8962:function(t,e){t.exports='<i-modal draggable sticky reset-drag-position :mask-closable="false" v-model="value" width="800" class="u-variable-modal diy-modal" transfer>\r\n <header slot="header">环境变量</header>\r\n <main class="variable-content">\r\n <div class="left">\r\n <div class="left-title">\r\n <div class="left-title-text">环境列表</div>\r\n <i class="api-icon icon-add" @click="onAddItem"></i>\r\n </div>\r\n <div class="left-content">\r\n <i-input class="diy-input search-input" v-model="keyword" placeholder="输入关键字查询" @on-change="onFilter">\r\n <template #prefix>\r\n <i-icon type="ios-search"/>\r\n </template>\r\n </i-input>\r\n <div class="security-list">\r\n <div class="security-list-item"\r\n :class="currentItem.id === item.id ? \'security-list-item-active\' : \'\'"\r\n v-for="(item,index) in varList"\r\n :key="item.id || index"\r\n @click="onSelectItem(item)"\r\n >\r\n <div class="security-list-item-name">\r\n <i class="iconfont icon-huanjing"></i>\r\n <div class="security-list-item-text" :class="currentItem.id === item.id ? \'security-list-item-text-active\' : \'\'">{{ item.name || "新环境" }}</div>\r\n </div>\r\n <i-poptip confirm title="确认删除这条数据吗?" transfer placement="top-end" @on-ok="onDelete(item)">\r\n <i class="iconfont icon-delete"></i>\r\n </i-poptip>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="right">\r\n <div class="right-title">环境内容</div>\r\n <div class="right-content">\r\n <i-form class="variable-content-form" ref="variable-content-form" label-colon label-position="left" v-if="isEmpty" :rules="rules" :label-width="100" :model="formData">\r\n <i-form-item class="content-form-item" label="环境名称" prop="name">\r\n <i-input class="diy-input" placeholder="请输入" v-model="formData.name"></i-input>\r\n </i-form-item>\r\n <i-form-item class="content-form-item" label="域名" prop="address">\r\n <i-input class="diy-input" placeholder="请输入" v-model="formData.address">\r\n <i-select class="diy-select" v-model="formData.type" slot="prepend" style="width: 100px">\r\n <i-option value="http">http://</i-option>\r\n <i-option value="https">https://</i-option>\r\n </i-select>\r\n </i-input>\r\n </i-form-item>\r\n <i-form-item label="描述" class="content-form-item item-remark" prop="remark">\r\n <i-input class="diy-input remark-textarea" placeholder="请输入" type="textarea" v-model="formData.remark"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n </div>\r\n </main>\r\n\r\n <footer slot="footer">\r\n <template>\r\n <i-button class="diy-btn-default" @click="onCancel">取消</i-button>\r\n <i-button type="primary" class="diy-btn-primary" @click="onSave">保存</i-button>\r\n </template>\r\n </footer>\r\n</i-modal>\r\n'},"8a14":function(t,e,n){"use strict";var i=n("bd74"),r=n("ec2f"),o=n("4cad"),a=n("ecb9"),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,s(t))}},"8a77":function(t,e,n){},"8a91":function(t,e,n){"use strict";var i=n("9b7f"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"8ab8":function(t,e){t.exports='<article class="pre-execution-setting">\r\n <section class="script">\r\n <div class="script-title">\r\n <div class="empty"></div>\r\n <div class="script-btns">\r\n <span @click="onViewMax"><i class="iconfont icon-zuidahua1"></i>{{viewMax ? "还原显示" : "最大化"}}</span>\r\n <span @click="onSave"><i class="iconfont icon-baocun1"></i>保存</span>\r\n <span @click="onRun"><i class="iconfont icon-run1"></i>RUN</span>\r\n <span @click="onSearch"><i class="iconfont icon-search"></i>搜索</span>\r\n </div>\r\n </div>\r\n <u-editor\r\n v-if="refreshEditor"\r\n class="editor"\r\n :model.sync="script"\r\n :diyKeywordList="diyKeywordList"\r\n lang="groovy"\r\n @inited="onEditorInited"\r\n >\r\n </u-editor>\r\n </section>\r\n <section class="quick-input">\r\n <div class="info">\r\n <p>{{scriptData.description}}</p>\r\n \x3c!-- <ul>\r\n <li>request: 请求</li>\r\n </ul> --\x3e\r\n </div>\r\n <i-input class="diy-input" v-model="keyword" @on-change="onFilter" placeholder="输入关键字查询">\r\n <i class="iconfont icon-chaxun" slot="prefix"></i>\r\n </i-input>\r\n <div class="quick-list">\r\n <div v-for="type in tempScriptData.group" class="quick-type">\r\n <div class="quick-type-name" @click="onQuickGroupClick(type)">\r\n <i-icon type="md-arrow-dropright" :class="type.expand ? \'expand\' : \'\'"/>\r\n <p>{{type.name}}</p>\r\n </div>\r\n <div\r\n v-show="type.expand"\r\n v-for="item in type.list"\r\n :key="item.name"\r\n class="quick-item"\r\n @click="onClickItem(item)"\r\n >\r\n <i class="api-icon icon-item"></i> {{item.name}}\r\n </div>\r\n </div>\r\n </div>\r\n </section>\r\n</article>\r\n'},"8ad0":function(t,e,n){"use strict";var i=n("7801"),r=n("e614"),o=n("5ee5"),a=n("d631"),s=TypeError,c=function(t){return function(e,n,c,l){var u=r(e),p=o(u),d=a(u);i(n);var h=t?d-1:0,f=t?-1:1;if(c<2)while(1){if(h in p){l=p[h],h+=f;break}if(h+=f,t?h<0:d<=h)throw new s("Reduce of empty array with no initial value")}for(;t?h>=0:d>h;h+=f)h in p&&(l=n(l,p[h],h,u));return l}};t.exports={left:c(!1),right:c(!0)}},"8b65":function(t,e,n){"use strict";var i=n("82ef"),r=n("8ad0").left,o=n("d631e"),a=n("ad8b"),s=n("f511"),c=!s&&a>79&&a<83,l=c||!o("reduce");i({target:"Array",proto:!0,forced:l},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})},"8b9b":function(t,e,n){},"8bbf":function(t,e){t.exports=h},"8c3a":function(t,e,n){"use strict";var i=n("8785"),r=n("9822");t.exports=function(t,e){i(e)&&"cause"in e&&r(t,"cause",e.cause)}},"8ea2":function(t,e,n){},"8f6e":function(t,e,n){"use strict";var i=n("10a7");t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},9195:function(t,e,n){"use strict";var i=n("aaa6");t.exports=function(t){var e=i(t);return"BigInt64Array"===e||"BigUint64Array"===e}},"91e1":function(t,e){t.exports=f},"929a":function(t,e,n){"use strict";t.exports={}},"92ad":function(t,e){t.exports=m},"92d1":function(t,e,n){},"92d6":function(t,e,n){"use strict";var i=n("ec2f"),r=n("585e"),o=n("95e7"),a=n("9afe");t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,l=void 0!==s.name?s.name:e;if(i(n)&&o(n,l,s),s.global)c?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(u){}c?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},9355:function(t,e,n){},9417:function(t,e,n){"use strict";var i=n("d631");t.exports=function(t,e){for(var n=i(t),r=new e(n),o=0;o<n;o++)r[o]=t[n-o-1];return r}},"948e":function(t,e,n){},"95e7":function(t,e,n){"use strict";var i=n("720f"),r=n("10a7"),o=n("ec2f"),a=n("d803"),s=n("e900"),c=n("2606").CONFIGURABLE,l=n("7c6e"),u=n("fcc0"),p=u.enforce,d=u.get,h=String,f=Object.defineProperty,m=i("".slice),y=i("".replace),v=i([].join),g=s&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===m(h(e),0,7)&&(e="["+y(h(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(s?f(t,"name",{value:e,configurable:!0}):t.name=e),g&&n&&a(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(r){}var i=p(t);return a(i,"source")||(i.source=v(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return o(this)&&d(this).source||l(this)}),"toString")},"96e5":function(t,e,n){"use strict";var i=TypeError;t.exports=function(t,e){if(t<e)throw new i("Not enough arguments");return t}},"981a":function(t,e){t.exports='<div class="v-api-project-list-container">\r\n <header>\r\n <div class="condition">\r\n <div class="input-item">\r\n <span>名称:</span>\r\n <i-input class="diy-input" placeholder="请输入名称" v-model="condition.name" @on-enter="onSearch"></i-input>\r\n </div>\r\n <div class="input-item">\r\n <span>地址:</span>\r\n <i-input class="diy-input" placeholder="请输入地址" v-model="condition.url" @on-enter="onSearch"></i-input>\r\n </div>\r\n <div class="search-btn">\r\n <i-button class="diy-btn-primary" type="primary" @click="onSearch">查询</i-button>\r\n <i-button class="diy-btn-default" @click="onEmpty">重置</i-button>\r\n </div>\r\n </div>\r\n </header>\r\n <main>\r\n <template v-if="data&&data.length">\r\n <i-table class="diy-table" :columns="columns" :data="data" @on-selection-change="onSelected" @on-row-click="onRowClick">\r\n <template slot="detail" slot-scope="{row}">\r\n <a @click="onDetail(row)">查看</a>\r\n </template>\r\n </i-table>\r\n </template>\r\n <template v-else>\r\n <div class="table-no-data">\r\n <div class="table-no-data-bg"></div>\r\n <div class="table-no-data-text">暂无数据</div>\r\n </div>\r\n </template>\r\n </main>\r\n <div class="pagination" v-if="data&&data.length">\r\n <i-page class="diy-page" :total="page.totalCount" @on-change="onPageIndexChange" @on-page-size-change="onPageSizeChange" placement="top" show-elevator show-total show-sizer> </i-page>\r\n </div>\r\n <u-api-project-detail :visiable.sync="detailShow" :model="detail"></u-api-project-detail>\r\n</div>\r\n'},9822:function(t,e,n){"use strict";var i=n("e900"),r=n("585e"),o=n("f2e2");t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9839:function(t,e){t.exports=y},9842:function(t,e){t.exports=v},"98f0":function(t,e){t.exports=g},"98f4":function(t,e,n){},9915:function(t,e){t.exports='<editor\r\n id="editor"\r\n class="code-edit"\r\n v-model="code"\r\n theme="chrome"\r\n :options="option"\r\n @init="editorInit"\r\n :lang="lang"\r\n width="100%"\r\n height="100%"\r\n></editor>'},"998d":function(t,e,n){"use strict";var i=n("ec2f"),r=n("8785"),o=n("a2df");t.exports=function(t,e,n){var a,s;return o&&i(a=e.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},"9afe":function(t,e,n){"use strict";var i=n("bc85"),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},"9b44":function(t,e){t.exports='<i-timeline-item v-if="source.type===\'more\'" class="trends-item">\r\n <i slot="dot"></i>\r\n <div class="item-more" @click="onMore">查看更多</div>\r\n</i-timeline-item>\r\n<i-timeline-item v-else class="trends-item">\r\n <i-avatar size="large" :class="source.operateType" slot="dot"></i-avatar>\r\n <div class="item-body">\r\n <i-time class="time" :time="source.createTime" />\r\n <div class="title">\r\n <span>{{source.projectName}}</span>\r\n <span class="create-time">{{source.createTime}}</span>\r\n </div>\r\n <div class="content">\r\n <span class="name">{{source.creatorName || source.creator}}</span>\r\n <span>{{source._operateType && source._operateType.text}}</span>\r\n <span class="name">{{source.categoryName}}</span>\r\n <span v-if="source.categoryName">分组下的</span>\r\n <span class="name api-name" @click="onToApi">{{source.apiName}}</span>\r\n <span>接口</span>\r\n </div>\r\n </div>\r\n</i-timeline-item>\r\n'},"9b65":function(t,e,n){},"9b7f":function(t,e,n){"use strict";var i=n("cd69");t.exports=function(t){var e=+t;return e!==e||0===e?0:i(e)}},"9c4a":function(t,e,n){"use strict";var i=n("7801"),r=n("9e90");t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},"9e10":function(t,e,n){},"9e90":function(t,e,n){"use strict";t.exports=function(t){return null===t||void 0===t}},"9fb0":function(t,e,n){},a047:function(t,e,n){"use strict";var i=n("720f"),r=0,o=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},a079:function(t,e,n){"use strict";var i=n("8785"),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not an object")}},a0f2:function(t,e){t.exports='<article class="catalog-params">\r\n <i-table height="200" class="diy-table" :columns="columns" :data="dataList">\r\n <template slot-scope="{ row,index }" slot="type">\r\n {{(row._type || {}).text}}\r\n </template>\r\n <template slot-scope="{ row,index }" slot="required">\r\n {{row.required ? "是": "否"}}\r\n </template>\r\n </i-table>\r\n</article>\r\n'},a121:function(t,e,n){},a1f0:function(t,e){t.exports='<i-poptip\r\n transfer\r\n class="u-tree-selector"\r\n transfer-class-name="u-tree-selector"\r\n trigger="click"\r\n content="content"\r\n placement="bottom"\r\n :disabled="readonly"\r\n v-model="visible"\r\n>\r\n <i-input\r\n class="diy-input"\r\n :value="inputValue"\r\n @on-change="onInputChange"\r\n :placeholder="placeholder"\r\n readonly\r\n />\r\n <i-icon\r\n v-if="inputValue && !readonly"\r\n class="icon-clear-value"\r\n type="ios-close-circle"\r\n @click.stop="onClear"\r\n />\r\n <i-tree\r\n slot="content"\r\n :data="tree"\r\n :render="renderContent"\r\n @on-select-change="onSelectChange"\r\n ></i-tree>\r\n</i-poptip>\r\n'},a2c5:function(t,e){t.exports=b},a2df:function(t,e,n){"use strict";var i=n("ec75"),r=n("a079"),o=n("7c77");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=i(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(a){}return function(n,i){return r(n),o(i),e?t(n,i):n.__proto__=i,n}}():void 0)},a4d2:function(t,e,n){"use strict";var i=n("92d6"),r=n("720f"),o=n("ce97"),a=n("96e5"),s=URLSearchParams,c=s.prototype,l=r(c.getAll),u=r(c.has),p=new s("a=1");!p.has("a",2)&&p.has("a",void 0)||i(c,"has",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var i=l(this,t);a(e,1);var r=o(n),s=0;while(s<i.length)if(i[s++]===r)return!0;return!1}),{enumerable:!0,unsafe:!0})},a54a:function(t,e,n){"use strict";var i=n("d803"),r=n("ec2f"),o=n("e614"),a=n("3d77"),s=n("8f6e"),c=a("IE_PROTO"),l=Object,u=l.prototype;t.exports=s?l.getPrototypeOf:function(t){var e=o(t);if(i(e,c))return e[c];var n=e.constructor;return r(n)&&e instanceof n?n.prototype:e instanceof l?u:null}},a564:function(t,e,n){"use strict";var i=n("e900"),r=n("a95a"),o=n("23c0"),a=n("f2e2"),s=n("485f"),c=n("aee9"),l=n("d803"),u=n("4869"),p=Object.getOwnPropertyDescriptor;e.f=i?p:function(t,e){if(t=s(t),e=c(e),u)try{return p(t,e)}catch(n){}if(l(t,e))return a(!r(o.f,t,e),t[e])}},a68e:function(t,e,n){"use strict";var i=n("e086"),r=TypeError;t.exports=function(t){var e=i(t,"number");if("number"==typeof e)throw new r("Can't convert number to bigint");return BigInt(e)}},a6c3:function(t,e,n){},a93c:function(t,e){t.exports=w},a95a:function(t,e,n){"use strict";var i=n("12f2"),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},aaa6:function(t,e,n){"use strict";var i=n("6a6c"),r=n("ec2f"),o=n("0d9b"),a=n("fff8"),s=a("toStringTag"),c=Object,l="Arguments"===o(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=c(t),s))?n:l?o(e):"Object"===(i=o(e))&&r(e.callee)?"Arguments":i}},ab68:function(t,e){t.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>{{detail.info?detail.info.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'},aba0:function(t,e,n){},ad8b:function(t,e,n){"use strict";var i,r,o=n("bc85"),a=n("c469"),s=o.process,c=o.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(i=u.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),t.exports=r},aee9:function(t,e,n){"use strict";var i=n("e086"),r=n("8a14");t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},b061:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},b156:function(t,e,n){},b61c:function(t,e,n){},b699:function(t,e,n){"use strict";var i=n("d631"),r=n("9b7f"),o=RangeError;t.exports=function(t,e,n,a){var s=i(t),c=r(n),l=c<0?s+c:c;if(l>=s||l<0)throw new o("Incorrect index");for(var u=new e(s),p=0;p<s;p++)u[p]=p===l?a:t[p];return u}},b769:function(t,e){t.exports='<article class="project-comment">\r\n <header>\r\n <i-input\r\n class="diy-input"\r\n prefix="ios-search"\r\n search\r\n @on-search="onQuery"\r\n placeholder="输入关键字检索"\r\n v-model="condition.apiName"\r\n ></i-input>\r\n </header>\r\n\r\n <main>\r\n <header class="tool-bar">\r\n <span>项目动态</span>\r\n </header>\r\n <main>\r\n <i-timeline :pending="false">\r\n <virtual-list\r\n class="scroll-list"\r\n data-key="id"\r\n :data-sources="list"\r\n :data-component="itemComponent"\r\n >\r\n </virtual-list>\r\n </i-timeline>\r\n </main>\r\n </main>\r\n</article>\r\n'},bc13:function(t,e){t.exports='<div class="confirm">\r\n <div @click.stop="onOpenConfirm">\r\n <slot></slot>\r\n </div>\r\n <i-modal\r\n width=400\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model="value"\r\n class="diy-modal confirm-modal"\r\n :mask-closable="false"\r\n :title="title"\r\n >\r\n <div>\r\n <i class="api-icon icon-warning"></i>\r\n </div>\r\n <p>\r\n {{message}}\r\n </p>\r\n <footer slot="footer">\r\n <i-button type="primary" class="diy-btn-primary " @click="onOk"\r\n >确定</i-button\r\n >\r\n <i-button @click="onCancel">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n</div>\r\n'},bc85:function(t,e,n){"use strict";(function(e){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n("b061"))},bcb8:function(t,e,n){},bd74:function(t,e,n){"use strict";var i=n("bc85"),r=n("ec2f"),o=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(i[t]):i[t]&&i[t][e]}},be65:function(t,e){t.exports=x},bff7:function(t,e,n){},c01f:function(t,e){t.exports='<article class="group-select">\r\n <i-poptip\r\n trigger="click"\r\n transfer\r\n :transfer-class-name="isSelector? \'group-select-transfer group-select-poptip\':\'group-select-transfer\'"\r\n placement="bottom-start"\r\n v-model="visible"\r\n >\r\n <i-input\r\n readonly\r\n class="diy-input"\r\n :value="current.name"\r\n clearable\r\n @on-clear="onClear"\r\n ></i-input>\r\n <template slot="content">\r\n <i-tree\r\n :data="data"\r\n @on-select-change="onSelect"\r\n :render="renderContent"\r\n ></i-tree>\r\n </template>\r\n </i-poptip>\r\n</article>\r\n'},c469:function(t,e,n){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},c889:function(t,e){t.exports=S},ca1f:function(t,e,n){},ca33:function(t,e,n){"use strict";var i=n("e900"),r=n("10a7");t.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},ca38:function(t,e,n){},ccf6:function(t,e){t.exports='<!DOCTYPE html>\r\n<article class="v-api-combine-wrapper">\r\n <i-split v-model="split" min="200px" max="1100px">\r\n \x3c!-- 左侧内容 --\x3e\r\n <section slot="left" class="left-split-pane">\r\n <u-type-tree :taskCategoryID="taskCategoryID" :initSelectItem="initNode" @on-import-success="onQuery" @on-select="onNodeSelect" @on-tree-data="onTreeData">\r\n </u-type-tree>\r\n </section>\r\n \x3c!-- 分割线 --\x3e\r\n <section class="trigger" slot="trigger"></section>\r\n \x3c!-- 右侧内容 --\x3e\r\n <section slot="right" class="right-split-pane">\r\n <section class="search-wrapper">\r\n <i-form class="diy-search-form" ref="searchForm" :model="formData" label-position="left" label-colon>\r\n <i-form-item label="名称" prop="name">\r\n <i-input class="diy-input" v-model="formData.name"></i-input>\r\n </i-form-item>\r\n <i-form-item label="编码" prop="code">\r\n <i-input class="diy-input" v-model="formData.code"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <div class="btns">\r\n <i-button class="diy-btn-primary" type="primary" @click="onQuery">查询</i-button>\r\n <i-button class="diy-btn-default" @click="onReset">重置</i-button>\r\n </div>\r\n </section>\r\n <section class="actions-wrapper">\r\n <div class="action-item action-text" @click="onAdd()" :class="currentNode.id === \'virtual_root_directory\' ? \'icon-button-disabled\' : \'\'">\r\n <i class="iconfont icon-add"></i>\r\n <div>新增</div>\r\n </div>\r\n <div class="action-item action-text" :class="(selection.length && !isContainsPublished) ? \'\' : \'icon-button-disabled\'" @click="onBatchDelete">\r\n <i class="iconfont icon-delete"></i>\r\n <span>批量删除</span>\r\n </div>\r\n </section>\r\n <section class="main-wrapper">\r\n <template v-if="list&&list.length">\r\n <i-table class="diy-table diy-table-scorll" :columns="columns" :data="list" @on-selection-change="onSelectChange" @on-row-click="onRowClick">\r\n <template slot="status" slot-scope="{row,index}">\r\n <i-switch class="diy-switch" :value="row.status===\'PUBLISHED\'" @on-change="onStatusChange($event, row, index)"></i-switch>\r\n <span>{{row.status==="PUBLISHED" ? "已发布" : "未发布"}}</span>\r\n </template>\r\n <template slot="authFlag" slot-scope="{row,index}">\r\n <i-switch class="diy-switch" :value="row.authFlag" :true-value="1" :false-value="0" @on-change="onAuthFlagChange($event, row, index)">\r\n <span slot="open">是</span>\r\n <span slot="close">否</span>\r\n </i-switch>\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="onDetail(row)" title="查看" class="iconfont icon-a-xinzengzhibiaobeifen9"></i>\r\n <i @click="onCopy(row)" title="复制" class="iconfont icon-fuzhi1"> </i>\r\n <template v-if="row.status!==\'PUBLISHED\'">\r\n <i @click="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 </template>\r\n <template v-else>\r\n <div class="table-no-data">\r\n <div class="table-no-data-bg"></div>\r\n <div class="table-no-data-text">暂无数据</div>\r\n </div>\r\n </template>\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'},cd69:function(t,e,n){"use strict";var i=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:i)(e)}},ce8f:function(t,e){t.exports=I},ce97:function(t,e,n){"use strict";var i=n("aaa6"),r=String;t.exports=function(t){if("Symbol"===i(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)}},cebe:function(t,e){t.exports=k},cf8c:function(t,e,n){"use strict";var i=n("485f"),r=n("575c"),o=n("d631"),a=function(t){return function(e,n,a){var s,c=i(e),l=o(c),u=r(a,l);if(t&&n!==n){while(l>u)if(s=c[u++],s!==s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},cfb3:function(t,e){t.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'},cfde:function(t,e,n){},d30a:function(t,e){t.exports='<div class="u-selector-tree-node" @click="onClickNode">\r\n <i-icon v-if="!data.children" type="ios-bookmark-outline" />\r\n <template v-else>\r\n\x3c!-- <i--\x3e\r\n\x3c!-- class="iconfont"--\x3e\r\n\x3c!-- :class="data.expand? \'icon-expand\': \'icon-unexpand\'"--\x3e\r\n\x3c!-- ></i>--\x3e\r\n <i class="iconfont icon-bumenkaohe"></i>\r\n </template>\r\n <span>{{data.title}}</span>\r\n</div>\r\n'},d371:function(t,e,n){"use strict";var i=n("e900"),r=n("720f"),o=n("889b"),a=URLSearchParams.prototype,s=r(a.forEach);i&&!("size"in a)&&o(a,"size",{get:function(){var t=0;return s(this,(function(){t++})),t},configurable:!0,enumerable:!0})},d5e3:function(t,e,n){"use strict";var i=n("10a7"),r=n("f2e2");t.exports=!i((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},d631:function(t,e,n){"use strict";var i=n("8a91");t.exports=function(t){return i(t.length)}},d631e:function(t,e,n){"use strict";var i=n("10a7");t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){return 1},1)}))}},d63e:function(t,e){t.exports='<article class="project-detail">\r\n <header>\r\n <div class="environment">\r\n <i class="iconfont icon-zhankai" @click="onBack"></i>\r\n <p>{{projectName}}</p>\r\n \x3c!-- <span>环境变量:</span> --\x3e\r\n \x3c!-- <i-select class="diy-select"></i-select> --\x3e\r\n </div>\r\n <div class="btns">\r\n \x3c!-- <i-button type="primary" ghost class="diy-btn-primary" @click="onOpenGlobalModal"> <i class="api-icon icon-setting"></i>全局参数设置</i-button> --\x3e\r\n \x3c!-- <i-button type="success" ghost class="diy-btn-success" @click="onOpenCurrentModal"><i class="api-icon icon-view"></i>查看当前变量</i-button> --\x3e\r\n <i-button v-if="projectId && projectName" type="primary" class="diy-btn-primary security-btn" ghost @click="onSecurity"><i class="iconfont icon-xinzengzhibiao"></i>授权认证</i-button>\r\n <i-button v-if="projectId && projectName" type="primary" class="diy-btn-primary" ghost @click="onOpenEnvModal"><i class="iconfont icon-bianliang"></i>环境变量</i-button>\r\n <i-button v-show="active.id" type="primary" class="diy-btn-primary" ghost @click="onToggleLayout"><i class="api-icon icon-switch"></i>切换布局</i-button>\r\n </div>\r\n </header>\r\n \x3c!-- <main> --\x3e\r\n <i-split v-model="split" min="200px" max="900px">\r\n <u-tree slot="left" @on-check-interface="onCheckInterface" @on-edit-interface-success="onEditInterfaceSuccess" :project-id="projectId" @on-success="onBatchSuccess" @on-delete-interface="onDeleteInterface" @on-reset="onReset" @tree-data="getTreeData"></u-tree>\r\n <section slot="right" class="interface-box">\r\n <header class="interface-bar">\r\n <swiper class="swiper" :options="swiperOption" @click-slide="onClickSlide" @ready="onSwiperReadied">\r\n <swiper-slide class="tag" @click="onClickTag(item)" :class="{\'active\': item.id === active.id}" v-for="(item,index) in openInterfaceList" :key="item.id"\r\n ><span>{{item.name}}</span> <i-icon type="md-close" @click.stop="onClose(index)"></i-icon\r\n ></swiper-slide>\r\n </swiper>\r\n \x3c!-- <div class="tag" @click="onClickTag(item)" :class="{\'active\': item.id === active.id}" v-for="(item,index) in openInterfaceList" :key="item.id">\r\n <span>{{item.name}}</span>\r\n <i-icon type="md-close" @click.stop="onClose(index)"></i-icon>\r\n </div> --\x3e\r\n </header>\r\n <u-settings ref="interface-settings" :interface-model.sync="active" :project-id="projectId" v-if="active.id" :lengthwise="lengthwise" :projectTree="projectTree"></u-settings>\r\n </section>\r\n </i-split>\r\n <i-spin fix v-show="loading">\r\n <i class="spin-icon-load ivu-icon"></i>\r\n </i-spin>\r\n \x3c!-- </main> --\x3e\r\n <u-global-modal :visiable.sync="showGlobalModal">\r\n <footer slot="footer">\r\n <i-button @click="showGlobalModal = false">取消</i-button>\r\n <i-button type="primary" class="diy-btn-primary">确定</i-button>\r\n </footer>\r\n </u-global-modal>\r\n <u-current-modal :visiable.sync="showCurrentModal"> </u-current-modal>\r\n <u-security-modal v-model="showSecurity" :projectID="projectId"></u-security-modal>\r\n <u-environment-modal :visiable.sync="showEnvironmentModal" :projectId="projectId" @on-refresh="onEnvironmentRefresh"></u-environment-modal>\r\n</article>\r\n'},d670:function(t,e){t.exports=C},d803:function(t,e,n){"use strict";var i=n("720f"),r=n("e614"),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},d8b4:function(t,e){t.exports='<div class="v-parameter-list-container">\r\n <main>\r\n <div class="parameter-table-btns" v-if="isEdit">\r\n <span class="table-btns table-btns-add" @click="onAdd">\r\n <i class="iconfont icon-add"></i>\r\n <span class="table-btns-text">新增</span>\r\n </span>\r\n <span class="table-btns table-btns-delete" :class="selections.length ? \'\' : \'icon-button-disabled\'" @click="onBatchDelete">\r\n <i class="iconfont icon-delete"></i>\r\n <span class="table-btns-text">批量删除</span>\r\n </span>\r\n </div>\r\n <template v-if="data&&data.length">\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 </template>\r\n <template v-else>\r\n <div class="table-no-data-wrap">\r\n <div class="table-no-data">\r\n <div class="table-no-data-bg"></div>\r\n <div class="table-no-data-text">暂无数据</div>\r\n </div>\r\n </div>\r\n </template>\r\n </main>\r\n</div>\r\n'},d8e7:function(t,e){t.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 label="是否需要认证:" prop="authFlag">\r\n <i-switch class="diy-switch" :disabled="!isEdit" :true-value="1" :false-value="0" v-model="model.authFlag">\r\n <span slot="open">是</span>\r\n <span slot="close">否</span>\r\n </i-switch>\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 <template v-if="model.relations&&model.relations.length">\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-rizhichakan" @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 </template>\r\n <template v-else>\r\n <div class="table-no-data">\r\n <div class="table-no-data-bg"></div>\r\n <div class="table-no-data-text">暂无数据</div>\r\n </div>\r\n </template>\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 <div>\r\n <span>执行脚本</span>\r\n <i-icon class="help-icon" type="md-alert" @click="onOpenDoc" title="帮助文档"> </i-icon>\r\n </div>\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 <u-data-model-doc v-model="docShow" :doc="doc"></u-data-model-doc>\r\n</article>\r\n'},d928:function(t,e,n){},d953:function(t,e){t.exports='<div class="interface-tree-node">\r\n <span v-if="isLeaf && data.method" class="method" :class="data.method.toLowerCase() " @click="onClick"\r\n >{{data.method}}</span\r\n >\r\n <i :class="isLeaf ? \'iconfont icon-API\' : \'iconfont icon-APIfenzu2\'" @click="onClick"></i>\r\n <span class="interface-tree-node-name" :title="data.title" @click="onClick">{{data.title}}</span>\r\n <i-dropdown\r\n transfer\r\n stop-propagation\r\n class="diy-dropdown"\r\n transfer-class-name="diy-transfer-dropdown"\r\n @on-click="onClickAction"\r\n >\r\n <i class="api-icon icon-more"></i>\r\n <i-dropdown-menu slot="list">\r\n <template v-if="isLeaf">\r\n <i-dropdown-item name="edit-interface">修改</i-dropdown-item>\r\n <i-dropdown-item name="delete-interface">删除</i-dropdown-item>\r\n <i-dropdown-item name="copy-interface">复制</i-dropdown-item>\r\n </template>\r\n <template v-else>\r\n <i-dropdown-item name="edit-group">修改分组</i-dropdown-item>\r\n <i-dropdown-item name="add-interface">新增接口</i-dropdown-item>\r\n <i-dropdown-item name="edit-attribute">批量修改属性</i-dropdown-item>\r\n <u-confirm\r\n title="删除分组"\r\n @on-ok="onDelete(\'delete-group\')"\r\n message="分组内的接口一并删除, 是否确认执行?"\r\n >\r\n <i-dropdown-item>删除</i-dropdown-item>\r\n </u-confirm>\r\n </template>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n</div>\r\n'},da9a:function(t,e,n){},dc41:function(t,e){t.exports='<span>\r\n <i-poptip trigger="hover" :content="tips" word-wrap :width="width" transfer>\r\n <icon\r\n style="cursor: help;font-size: 0.16rem;"\r\n type="ios-information-circle-outline"\r\n />\r\n <div class="tips-tabel-label" slot="content">\r\n <div class="tips-tabel-label-text">\r\n <span>重推次数设定规则:</span>\r\n <span>min(当前时间 - 日志创建时间) >= 2 ^ 重推次数</span>\r\n <span>小于10次时间隔设定为:</span>\r\n <span>第 1 次需间隔 2 ^ 1 = 2 分钟</span>\r\n <span>第 2 次需间隔 2 ^ 2 = 4 分钟</span>\r\n <span>第 3 次需间隔 2 ^ 3 = 8 分钟</span>\r\n <span>第 4 次需间隔 2 ^ 4 = 16 分钟</span>\r\n <span>第 5 次需间隔 2 ^ 5 = 32 分钟</span>\r\n <span>第 6 次需间隔 2 ^ 6 = 64 分钟 1 小时</span>\r\n <span>第 7 次需间隔 2 ^ 7 = 128 分钟 2 小时</span>\r\n <span>第 8 次需间隔 2 ^ 8 = 256 分钟 4.2 小时</span>\r\n <span>第 9 次需间隔 2 ^ 9 = 512 分钟 8.5 小时</span>\r\n <span>第 10 次需间隔 2 ^ 10 = 1024 分钟 17 小时</span>\r\n <span>重推次数大于10次,从第11次开始,每次间隔24h</span>\r\n <span>设定重推次数覆盖范围:</span>\r\n </div>\r\n <i-table class="diy-table" :data="data" :columns="columns"></i-table>\r\n </div>\r\n </i-poptip>\r\n <span>{{labelTitle}}<span v-if="labelColon">:</span></span>\r\n</span>\r\n'},dd76:function(t,e,n){"use strict";var i=n("720f"),r=Error,o=i("".replace),a=function(t){return String(new r(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);t.exports=function(t,e){if(c&&"string"==typeof t&&!r.prepareStackTrace)while(e--)t=o(t,s,"");return t}},de03:function(t,e,n){},e02e:function(t,e,n){"use strict";var i=n("82ef"),r=n("e614"),o=n("d631"),a=n("88bc"),s=n("1b9a"),c=n("10a7"),l=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},p=l||!u();i({target:"Array",proto:!0,arity:1,forced:p},{push:function(t){var e=r(this),n=o(e),i=arguments.length;s(n+i);for(var c=0;c<i;c++)e[n]=arguments[c],n++;return a(e,n),n}})},e086:function(t,e,n){"use strict";var i=n("a95a"),r=n("8785"),o=n("8a14"),a=n("9c4a"),s=n("fef4"),c=n("fff8"),l=TypeError,u=c("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,c=a(t,u);if(c){if(void 0===e&&(e="default"),n=i(c,t,e),!r(n)||o(n))return n;throw new l("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},e1e9:function(t,e,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},e40c:function(t,e,n){"use strict";var i=n("6a10"),r=n("720f"),o=n("7801"),a=n("00fe"),s=i.aTypedArray,c=i.getTypedArrayConstructor,l=i.exportTypedArrayMethod,u=r(i.TypedArrayPrototype.sort);l("toSorted",(function(t){void 0!==t&&o(t);var e=s(this),n=a(c(e),e);return u(n,t)}))},e459:function(t,e,n){"use strict";var i=n("6a10"),r=n("3bdc").findLast,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("findLast",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},e614:function(t,e,n){"use strict";var i=n("42a3"),r=Object;t.exports=function(t){return r(i(t))}},e6c9:function(t,e,n){},e718:function(t,e){t.exports='<section class="v-base-editor-container">\r\n <u-editor @inited="onEditorInited" :model.sync="script" lang="groovy"></u-editor>\r\n</section>\r\n'},e900:function(t,e,n){"use strict";var i=n("10a7");t.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},e9fa:function(t,e,n){},eab2:function(t,e,n){"use strict";var i=n("6a10"),r=n("3bdc").findLastIndex,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("findLastIndex",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},ead7:function(t,e,n){"use strict";var i=n("9b7f"),r=RangeError;t.exports=function(t){var e=i(t);if(e<0)throw new r("The argument can't be less than 0");return e}},eaed:function(t,e,n){},eb57:function(t,e,n){},ec2f:function(t,e,n){"use strict";var i="object"==typeof document&&document.all;t.exports="undefined"==typeof i&&void 0!==i?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},ec75:function(t,e,n){"use strict";var i=n("720f"),r=n("7801");t.exports=function(t,e,n){try{return i(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(o){}}},ecb9:function(t,e,n){"use strict";var i=n("767a");t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},ed38:function(t,e,n){
7
+ (function(e,i){t.exports=i(n("8bbf"))})(0,(function(t){"use strict";function e(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function n(t){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{};n%2?e(Object(i),!0).forEach((function(e){a(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):e(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function o(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function s(t){return c(t)||l(t)||u(t)||d()}function c(t){if(Array.isArray(t))return p(t)}function l(t){if("undefined"!==typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function u(t,e){if(t){if("string"===typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function d(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}t=t&&Object.prototype.hasOwnProperty.call(t,"default")?t["default"]:t;var h={FRONT:"FRONT",BEHIND:"BEHIND"},f={INIT:"INIT",FIXED:"FIXED",DYNAMIC:"DYNAMIC"},m=0,y=function(){function t(e,n){i(this,t),this.init(e,n)}return o(t,[{key:"init",value:function(t,e){this.param=t,this.callUpdate=e,this.sizes=new Map,this.firstRangeTotalSize=0,this.firstRangeAverageSize=0,this.fixedSizeValue=0,this.calcType=f.INIT,this.offset=0,this.direction="",this.range=Object.create(null),t&&this.checkRange(0,t.keeps-1)}},{key:"destroy",value:function(){this.init(null,null)}},{key:"getRange",value:function(){var t=Object.create(null);return t.start=this.range.start,t.end=this.range.end,t.padFront=this.range.padFront,t.padBehind=this.range.padBehind,t}},{key:"isBehind",value:function(){return this.direction===h.BEHIND}},{key:"isFront",value:function(){return this.direction===h.FRONT}},{key:"getOffset",value:function(t){return(t<1?0:this.getIndexOffset(t))+this.param.slotHeaderSize}},{key:"updateParam",value:function(t,e){var n=this;this.param&&t in this.param&&("uniqueIds"===t&&this.sizes.forEach((function(t,i){e.includes(i)||n.sizes["delete"](i)})),this.param[t]=e)}},{key:"saveSize",value:function(t,e){this.sizes.set(t,e),this.calcType===f.INIT?(this.fixedSizeValue=e,this.calcType=f.FIXED):this.calcType===f.FIXED&&this.fixedSizeValue!==e&&(this.calcType=f.DYNAMIC,delete this.fixedSizeValue),this.calcType!==f.FIXED&&"undefined"!==typeof this.firstRangeTotalSize&&(this.sizes.size<Math.min(this.param.keeps,this.param.uniqueIds.length)?(this.firstRangeTotalSize=s(this.sizes.values()).reduce((function(t,e){return t+e}),0),this.firstRangeAverageSize=Math.round(this.firstRangeTotalSize/this.sizes.size)):delete this.firstRangeTotalSize)}},{key:"handleDataSourcesChange",value:function(){var t=this.range.start;this.isFront()?t-=m:this.isBehind()&&(t+=m),t=Math.max(t,0),this.updateRange(this.range.start,this.getEndByStart(t))}},{key:"handleSlotSizeChange",value:function(){this.handleDataSourcesChange()}},{key:"handleScroll",value:function(t){this.direction=t<this.offset||0===t?h.FRONT:h.BEHIND,this.offset=t,this.param&&(this.direction===h.FRONT?this.handleFront():this.direction===h.BEHIND&&this.handleBehind())}},{key:"handleFront",value:function(){var t=this.getScrollOvers();if(!(t>this.range.start)){var e=Math.max(t-this.param.buffer,0);this.checkRange(e,this.getEndByStart(e))}}},{key:"handleBehind",value:function(){var t=this.getScrollOvers();t<this.range.start+this.param.buffer||this.checkRange(t,this.getEndByStart(t))}},{key:"getScrollOvers",value:function(){var t=this.offset-this.param.slotHeaderSize;if(t<=0)return 0;if(this.isFixedType())return Math.floor(t/this.fixedSizeValue);var e=0,n=0,i=0,r=this.param.uniqueIds.length;while(e<=r){if(n=e+Math.floor((r-e)/2),i=this.getIndexOffset(n),i===t)return n;i<t?e=n+1:i>t&&(r=n-1)}return e>0?--e:0}},{key:"getIndexOffset",value:function(t){if(!t)return 0;for(var e=0,n=0,i=0;i<t;i++)n=this.sizes.get(this.param.uniqueIds[i]),e+="number"===typeof n?n:this.getEstimateSize();return e}},{key:"isFixedType",value:function(){return this.calcType===f.FIXED}},{key:"getLastIndex",value:function(){return this.param.uniqueIds.length-1}},{key:"checkRange",value:function(t,e){var n=this.param.keeps,i=this.param.uniqueIds.length;i<=n?(t=0,e=this.getLastIndex()):e-t<n-1&&(t=e-n+1),this.range.start!==t&&this.updateRange(t,e)}},{key:"updateRange",value:function(t,e){this.range.start=t,this.range.end=e,this.range.padFront=this.getPadFront(),this.range.padBehind=this.getPadBehind(),this.callUpdate(this.getRange())}},{key:"getEndByStart",value:function(t){var e=t+this.param.keeps-1,n=Math.min(e,this.getLastIndex());return n}},{key:"getPadFront",value:function(){return this.isFixedType()?this.fixedSizeValue*this.range.start:this.getIndexOffset(this.range.start)}},{key:"getPadBehind",value:function(){var t=this.range.end,e=this.getLastIndex();return this.isFixedType()?(e-t)*this.fixedSizeValue:(e-t)*this.getEstimateSize()}},{key:"getEstimateSize",value:function(){return this.isFixedType()?this.fixedSizeValue:this.firstRangeAverageSize||this.param.estimateSize}}]),t}(),v={dataKey:{type:[String,Function],required:!0},dataSources:{type:Array,required:!0},dataComponent:{type:[Object,Function],required:!0},keeps:{type:Number,default:30},extraProps:{type:Object},estimateSize:{type:Number,default:50},direction:{type:String,default:"vertical"},start:{type:Number,default:0},offset:{type:Number,default:0},topThreshold:{type:Number,default:0},bottomThreshold:{type:Number,default:0},pageMode:{type:Boolean,default:!1},rootTag:{type:String,default:"div"},wrapTag:{type:String,default:"div"},wrapClass:{type:String,default:""},wrapStyle:{type:Object},itemTag:{type:String,default:"div"},itemClass:{type:String,default:""},itemClassAdd:{type:Function},itemStyle:{type:Object},headerTag:{type:String,default:"div"},headerClass:{type:String,default:""},headerStyle:{type:Object},footerTag:{type:String,default:"div"},footerClass:{type:String,default:""},footerStyle:{type:Object},itemScopedSlots:{type:Object}},g={index:{type:Number},event:{type:String},tag:{type:String},horizontal:{type:Boolean},source:{type:Object},component:{type:[Object,Function]},slotComponent:{type:Function},uniqueKey:{type:[String,Number]},extraProps:{type:Object},scopedSlots:{type:Object}},b={event:{type:String},uniqueKey:{type:String},tag:{type:String},horizontal:{type:Boolean}},w={created:function(){this.shapeKey=this.horizontal?"offsetWidth":"offsetHeight"},mounted:function(){var t=this;"undefined"!==typeof ResizeObserver&&(this.resizeObserver=new ResizeObserver((function(){t.dispatchSizeChange()})),this.resizeObserver.observe(this.$el))},updated:function(){this.resizeObserver.observe(this.$el)},beforeDestroy:function(){this.resizeObserver&&(this.resizeObserver.disconnect(),this.resizeObserver=null)},methods:{getCurrentSize:function(){return this.$el?this.$el[this.shapeKey]:0},dispatchSizeChange:function(){this.$parent.$emit(this.event,this.uniqueKey,this.getCurrentSize(),this.hasInitial)}}},x=t.component("virtual-list-item",{mixins:[w],props:g,render:function(t){var e=this.tag,i=this.component,r=this.extraProps,o=void 0===r?{}:r,a=this.index,s=this.source,c=this.scopedSlots,l=void 0===c?{}:c,u=this.uniqueKey,p=this.slotComponent,d=n(n({},o),{},{source:s,index:a});return t(e,{key:u,attrs:{role:"listitem"}},[p?p({item:s,index:a,scope:d}):t(i,{props:d,scopedSlots:l})])}}),S=t.component("virtual-list-slot",{mixins:[w],props:b,render:function(t){var e=this.tag,n=this.uniqueKey;return t(e,{key:n,attrs:{role:n}},this.$slots["default"])}}),I={ITEM:"item_resize",SLOT:"slot_resize"},k={HEADER:"thead",FOOTER:"tfoot"},C=t.component("virtual-list",{props:v,data:function(){return{range:null}},watch:{"dataSources.length":function(){this.virtual.updateParam("uniqueIds",this.getUniqueIdFromDataSources()),this.virtual.handleDataSourcesChange()},keeps:function(t){this.virtual.updateParam("keeps",t),this.virtual.handleSlotSizeChange()},start:function(t){this.scrollToIndex(t)},offset:function(t){this.scrollToOffset(t)}},created:function(){this.isHorizontal="horizontal"===this.direction,this.directionKey=this.isHorizontal?"scrollLeft":"scrollTop",this.installVirtual(),this.$on(I.ITEM,this.onItemResized),(this.$slots.header||this.$slots.footer)&&this.$on(I.SLOT,this.onSlotResized)},activated:function(){this.scrollToOffset(this.virtual.offset),this.pageMode&&document.addEventListener("scroll",this.onScroll,{passive:!1})},deactivated:function(){this.pageMode&&document.removeEventListener("scroll",this.onScroll)},mounted:function(){this.start?this.scrollToIndex(this.start):this.offset&&this.scrollToOffset(this.offset),this.pageMode&&(this.updatePageModeFront(),document.addEventListener("scroll",this.onScroll,{passive:!1}))},beforeDestroy:function(){this.virtual.destroy(),this.pageMode&&document.removeEventListener("scroll",this.onScroll)},methods:{getSize:function(t){return this.virtual.sizes.get(t)},getSizes:function(){return this.virtual.sizes.size},getOffset:function(){if(this.pageMode)return document.documentElement[this.directionKey]||document.body[this.directionKey];var t=this.$refs.root;return t?Math.ceil(t[this.directionKey]):0},getClientSize:function(){var t=this.isHorizontal?"clientWidth":"clientHeight";if(this.pageMode)return document.documentElement[t]||document.body[t];var e=this.$refs.root;return e?Math.ceil(e[t]):0},getScrollSize:function(){var t=this.isHorizontal?"scrollWidth":"scrollHeight";if(this.pageMode)return document.documentElement[t]||document.body[t];var e=this.$refs.root;return e?Math.ceil(e[t]):0},scrollToOffset:function(t){if(this.pageMode)document.body[this.directionKey]=t,document.documentElement[this.directionKey]=t;else{var e=this.$refs.root;e&&(e[this.directionKey]=t)}},scrollToIndex:function(t){if(t>=this.dataSources.length-1)this.scrollToBottom();else{var e=this.virtual.getOffset(t);this.scrollToOffset(e)}},scrollToBottom:function(){var t=this,e=this.$refs.shepherd;if(e){var n=e[this.isHorizontal?"offsetLeft":"offsetTop"];this.scrollToOffset(n),setTimeout((function(){t.getOffset()+t.getClientSize()+1<t.getScrollSize()&&t.scrollToBottom()}),3)}},updatePageModeFront:function(){var t=this.$refs.root;if(t){var e=t.getBoundingClientRect(),n=t.ownerDocument.defaultView,i=this.isHorizontal?e.left+n.pageXOffset:e.top+n.pageYOffset;this.virtual.updateParam("slotHeaderSize",i)}},reset:function(){this.virtual.destroy(),this.scrollToOffset(0),this.installVirtual()},installVirtual:function(){this.virtual=new y({slotHeaderSize:0,slotFooterSize:0,keeps:this.keeps,estimateSize:this.estimateSize,buffer:Math.round(this.keeps/3),uniqueIds:this.getUniqueIdFromDataSources()},this.onRangeChanged),this.range=this.virtual.getRange()},getUniqueIdFromDataSources:function(){var t=this.dataKey;return this.dataSources.map((function(e){return"function"===typeof t?t(e):e[t]}))},onItemResized:function(t,e){this.virtual.saveSize(t,e),this.$emit("resized",t,e)},onSlotResized:function(t,e,n){t===k.HEADER?this.virtual.updateParam("slotHeaderSize",e):t===k.FOOTER&&this.virtual.updateParam("slotFooterSize",e),n&&this.virtual.handleSlotSizeChange()},onRangeChanged:function(t){this.range=t},onScroll:function(t){var e=this.getOffset(),n=this.getClientSize(),i=this.getScrollSize();e<0||e+n>i+1||!i||(this.virtual.handleScroll(e),this.emitEvent(e,n,i,t))},emitEvent:function(t,e,n,i){this.$emit("scroll",i,this.virtual.getRange()),this.virtual.isFront()&&this.dataSources.length&&t-this.topThreshold<=0?this.$emit("totop"):this.virtual.isBehind()&&t+e+this.bottomThreshold>=n&&this.$emit("tobottom")},getRenderSlots:function(t){for(var e=[],n=this.range,i=n.start,r=n.end,o=this.dataSources,a=this.dataKey,s=this.itemClass,c=this.itemTag,l=this.itemStyle,u=this.isHorizontal,p=this.extraProps,d=this.dataComponent,h=this.itemScopedSlots,f=this.$scopedSlots&&this.$scopedSlots.item,m=i;m<=r;m++){var y=o[m];if(y){var v="function"===typeof a?a(y):y[a];"string"===typeof v||"number"===typeof v?e.push(t(x,{props:{index:m,tag:c,event:I.ITEM,horizontal:u,uniqueKey:v,source:y,extraProps:p,component:d,slotComponent:f,scopedSlots:h},style:l,class:"".concat(s).concat(this.itemClassAdd?" "+this.itemClassAdd(m):"")})):console.warn("Cannot get the data-key '".concat(a,"' from data-sources."))}else console.warn("Cannot get the index '".concat(m,"' from data-sources."))}return e}},render:function(t){var e=this.$slots,n=e.header,i=e.footer,r=this.range,o=r.padFront,a=r.padBehind,s=this.isHorizontal,c=this.pageMode,l=this.rootTag,u=this.wrapTag,p=this.wrapClass,d=this.wrapStyle,h=this.headerTag,f=this.headerClass,m=this.headerStyle,y=this.footerTag,v=this.footerClass,g=this.footerStyle,b={padding:s?"0px ".concat(a,"px 0px ").concat(o,"px"):"".concat(o,"px 0px ").concat(a,"px")},w=d?Object.assign({},d,b):b;return t(l,{ref:"root",on:{"&scroll":!c&&this.onScroll}},[n?t(S,{class:f,style:m,props:{tag:h,event:I.SLOT,uniqueKey:k.HEADER}},n):null,t(u,{class:p,attrs:{role:"group"},style:w},this.getRenderSlots(t)),i?t(S,{class:v,style:g,props:{tag:y,event:I.SLOT,uniqueKey:k.FOOTER}},i):null,t("div",{ref:"shepherd",style:{width:s?"0px":"100%",height:s?"100%":"0px"}})])}});return C}))},"7c6e":function(t,e,n){"use strict";var i=n("720f"),r=n("ec2f"),o=n("0888"),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},"7c77":function(t,e,n){"use strict";var i=n("6296"),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o("Can't set "+r(t)+" as a prototype")}},"7ddf":function(t,e,n){"use strict";var i=n("bc85"),r=n("ec2f"),o=i.WeakMap;t.exports=r(o)&&/native code/.test(String(o))},"7e75":function(t,e,n){"use strict";t.exports=!1},8137:function(t,e,n){},"815c":function(t,e,n){"use strict";var i=n("bc85"),r=n("8785"),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},8214:function(t,e){t.exports=p},"82af":function(t,e){t.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 <template v-if="data&&data.length">\r\n <i-table class="diy-table" :columns="columns" :data="data" @on-selection-change="onSelected" @on-row-click="onRowClick">\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 </template>\r\n <template v-else>\r\n <div class="table-no-data">\r\n <div class="table-no-data-bg"></div>\r\n <div class="table-no-data-text">暂无数据</div>\r\n </div>\r\n </template>\r\n </main>\r\n <div class="pagination" v-if="data&&data.length">\r\n <i-page class="diy-page" :total="page.totalCount" @on-change="onPageIndexChange" @on-page-size-change="onPageSizeChange" placement="top" 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'},"82ef":function(t,e,n){"use strict";var i=n("bc85"),r=n("a564").f,o=n("9822"),a=n("92d6"),s=n("9afe"),c=n("3955"),l=n("04ca");t.exports=function(t,e){var n,u,p,d,h,f,m=t.target,y=t.global,v=t.stat;if(u=y?i:v?i[m]||s(m,{}):(i[m]||{}).prototype,u)for(p in e){if(h=e[p],t.dontCallGetSet?(f=r(u,p),d=f&&f.value):d=u[p],n=l(y?p:m+(v?".":"#")+p,t.forced),!n&&void 0!==d){if(typeof h==typeof d)continue;c(h,d)}(t.sham||d&&d.sham)&&o(h,"sham",!0),a(u,p,h,t)}}},8380:function(t,e){t.exports=d},"842d":function(t,e,n){"use strict";var i=n("bd74"),r=n("720f"),o=n("5afa"),a=n("1215"),s=n("a079"),c=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?c(e,n(t)):e}},"862c":function(t,e,n){"use strict";var i=n("585e").f;t.exports=function(t,e,n){n in t||i(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},8785:function(t,e,n){"use strict";var i=n("ec2f");t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},"889b":function(t,e,n){"use strict";var i=n("95e7"),r=n("585e");t.exports=function(t,e,n){return n.get&&i(n.get,e,{getter:!0}),n.set&&i(n.set,e,{setter:!0}),r.f(t,e,n)}},"88af":function(t,e){t.exports='<i-modal draggable sticky reset-drag-position :mask-closable="false" v-model="value" width="800" class="u-variable-modal diy-modal" transfer>\r\n <header slot="header">批量修改环境变量与授权</header>\r\n <main class="variable-content">\r\n <div class="left">\r\n <div class="left-title">\r\n <div class="left-title-text">选择API</div>\r\n </div>\r\n <div class="left-content">\r\n <i-input class="diy-input search-input" v-model="keyword" placeholder="输入关键字查询" @on-change="onFilter">\r\n <template #prefix>\r\n <i-icon type="ios-search"/>\r\n </template>\r\n </i-input>\r\n <div class="security-list">\r\n <i-checkbox class="security-list-item-checkbox" v-model="allSelect" @on-change="onAllSelect">全选</i-checkbox>\r\n <div class="security-list-item"\r\n v-for="(item,index) in apiList"\r\n :key="item.id || index"\r\n >\r\n <div class="security-list-item-name">\r\n <i-checkbox v-model="item.selected" @on-change="onSelect($event,item)"></i-checkbox>\r\n <i class="iconfont icon-API"></i>\r\n <div class="security-list-item-text" :title="item.name">{{ item.name }}</div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="right">\r\n <div class="right-title">环境与授权</div>\r\n <div class="right-content">\r\n <i-form ref="batch-api-form" class="variable-content-form" label-colon label-position="left" v-if="isEmpty" :rules="rules" :label-width="100" :model="formData">\r\n <i-form-item class="content-form-item un-required-item" label="选择属性">\r\n <i-select class="diy-select" placeholder="请输入" clearable v-model="type">\r\n <i-option value="env">环境变量</i-option>\r\n <i-option value="auth">授权设置</i-option>\r\n <i-option value="both">环境变量和授权设置</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class="content-form-item" v-if="type !== \'auth\'" label="环境变量" prop="envId">\r\n <i-select class="diy-select diy-batch-select diy-batch-variable-select" placeholder="请选择" clearable v-model="formData.envId">\r\n <i-option value="empty">清空所有已设置环境变量</i-option>\r\n <i-option v-for="item in variableList" :key="item.name" :value="item.id" :title="item.name + \':\' + item.value">{{item.name + ":" + item.value}}</i-option>\r\n </i-select>\r\n </i-form-item>\r\n <i-form-item class="content-form-item" label="授权设置" v-if="type !== \'env\'" prop="authId">\r\n <i-select class="diy-select diy-batch-select" placeholder="请选择" clearable v-model="formData.authId">\r\n <i-option value="empty">清空所有已设置授权</i-option>\r\n <i-option v-for="item in securityList" :key="item.name" :value="item.id">{{item.name}} </i-option>\r\n </i-select>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n </div>\r\n </main>\r\n\r\n <footer slot="footer">\r\n <template>\r\n <i-button class="diy-btn-default" @click="onCancel">取消</i-button>\r\n <i-button type="primary" class="diy-btn-primary" @click="onSave">保存</i-button>\r\n </template>\r\n </footer>\r\n</i-modal>\r\n'},"88bc":function(t,e,n){"use strict";var i=n("e900"),r=n("234b"),o=TypeError,a=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(r(t)&&!a(t,"length").writable)throw new o("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},8962:function(t,e){t.exports='<i-modal draggable sticky reset-drag-position :mask-closable="false" v-model="value" width="800" class="u-variable-modal diy-modal" transfer>\r\n <header slot="header">环境变量</header>\r\n <main class="variable-content">\r\n <div class="left">\r\n <div class="left-title">\r\n <div class="left-title-text">环境列表</div>\r\n <i class="api-icon icon-add" @click="onAddItem"></i>\r\n </div>\r\n <div class="left-content">\r\n <i-input class="diy-input search-input" v-model="keyword" placeholder="输入关键字查询" @on-change="onFilter">\r\n <template #prefix>\r\n <i-icon type="ios-search"/>\r\n </template>\r\n </i-input>\r\n <div class="security-list">\r\n <div class="security-list-item"\r\n :class="currentItem.id === item.id ? \'security-list-item-active\' : \'\'"\r\n v-for="(item,index) in varList"\r\n :key="item.id || index"\r\n @click="onSelectItem(item)"\r\n >\r\n <div class="security-list-item-name">\r\n <i class="iconfont icon-huanjing"></i>\r\n <div class="security-list-item-text" :class="currentItem.id === item.id ? \'security-list-item-text-active\' : \'\'">{{ item.name || "新环境" }}</div>\r\n </div>\r\n <i-poptip confirm title="确认删除这条数据吗?" transfer placement="top-end" @on-ok="onDelete(item)">\r\n <i class="iconfont icon-delete"></i>\r\n </i-poptip>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class="right">\r\n <div class="right-title">环境内容</div>\r\n <div class="right-content">\r\n <i-form class="variable-content-form" ref="variable-content-form" label-colon label-position="left" v-if="isEmpty" :rules="rules" :label-width="100" :model="formData">\r\n <i-form-item class="content-form-item" label="环境名称" prop="name">\r\n <i-input class="diy-input" placeholder="请输入" v-model="formData.name"></i-input>\r\n </i-form-item>\r\n <i-form-item class="content-form-item" label="域名" prop="address">\r\n <i-input class="diy-input" placeholder="请输入" v-model="formData.address">\r\n <i-select class="diy-select" v-model="formData.type" slot="prepend" style="width: 100px">\r\n <i-option value="http">http://</i-option>\r\n <i-option value="https">https://</i-option>\r\n </i-select>\r\n </i-input>\r\n </i-form-item>\r\n <i-form-item label="描述" class="content-form-item item-remark" prop="remark">\r\n <i-input class="diy-input remark-textarea" placeholder="请输入" type="textarea" v-model="formData.remark"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n </div>\r\n </div>\r\n </main>\r\n\r\n <footer slot="footer">\r\n <template>\r\n <i-button class="diy-btn-default" @click="onCancel">取消</i-button>\r\n <i-button type="primary" class="diy-btn-primary" @click="onSave">保存</i-button>\r\n </template>\r\n </footer>\r\n</i-modal>\r\n'},"8a14":function(t,e,n){"use strict";var i=n("bd74"),r=n("ec2f"),o=n("4cad"),a=n("ecb9"),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return r(e)&&o(e.prototype,s(t))}},"8a77":function(t,e,n){},"8a91":function(t,e,n){"use strict";var i=n("9b7f"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"8ab8":function(t,e){t.exports='<article class="pre-execution-setting">\r\n <section class="script">\r\n <div class="script-title">\r\n <div class="empty"></div>\r\n <div class="script-btns">\r\n <span @click="onViewMax"><i class="iconfont icon-zuidahua1"></i>{{viewMax ? "还原显示" : "最大化"}}</span>\r\n <span @click="onSave"><i class="iconfont icon-baocun1"></i>保存</span>\r\n <span @click="onRun"><i class="iconfont icon-run1"></i>RUN</span>\r\n <span @click="onSearch"><i class="iconfont icon-search"></i>搜索</span>\r\n </div>\r\n </div>\r\n <u-editor\r\n v-if="refreshEditor"\r\n class="editor"\r\n :model.sync="script"\r\n :diyKeywordList="diyKeywordList"\r\n lang="groovy"\r\n @inited="onEditorInited"\r\n >\r\n </u-editor>\r\n </section>\r\n <section class="quick-input">\r\n <div class="info">\r\n <p>{{scriptData.description}}</p>\r\n \x3c!-- <ul>\r\n <li>request: 请求</li>\r\n </ul> --\x3e\r\n </div>\r\n <i-input class="diy-input" v-model="keyword" @on-change="onFilter" placeholder="输入关键字查询">\r\n <i class="iconfont icon-chaxun" slot="prefix"></i>\r\n </i-input>\r\n <div class="quick-list">\r\n <div v-for="type in tempScriptData.group" class="quick-type">\r\n <div class="quick-type-name" @click="onQuickGroupClick(type)">\r\n <i-icon type="md-arrow-dropright" :class="type.expand ? \'expand\' : \'\'"/>\r\n <p>{{type.name}}</p>\r\n </div>\r\n <div\r\n v-show="type.expand"\r\n v-for="item in type.list"\r\n :key="item.name"\r\n class="quick-item"\r\n @click="onClickItem(item)"\r\n >\r\n <i class="api-icon icon-item"></i> {{item.name}}\r\n </div>\r\n </div>\r\n </div>\r\n </section>\r\n</article>\r\n'},"8ad0":function(t,e,n){"use strict";var i=n("7801"),r=n("e614"),o=n("5ee5"),a=n("d631"),s=TypeError,c=function(t){return function(e,n,c,l){var u=r(e),p=o(u),d=a(u);i(n);var h=t?d-1:0,f=t?-1:1;if(c<2)while(1){if(h in p){l=p[h],h+=f;break}if(h+=f,t?h<0:d<=h)throw new s("Reduce of empty array with no initial value")}for(;t?h>=0:d>h;h+=f)h in p&&(l=n(l,p[h],h,u));return l}};t.exports={left:c(!1),right:c(!0)}},"8b65":function(t,e,n){"use strict";var i=n("82ef"),r=n("8ad0").left,o=n("d631e"),a=n("ad8b"),s=n("f511"),c=!s&&a>79&&a<83,l=c||!o("reduce");i({target:"Array",proto:!0,forced:l},{reduce:function(t){var e=arguments.length;return r(this,t,e,e>1?arguments[1]:void 0)}})},"8b9b":function(t,e,n){},"8bbf":function(t,e){t.exports=h},"8c3a":function(t,e,n){"use strict";var i=n("8785"),r=n("9822");t.exports=function(t,e){i(e)&&"cause"in e&&r(t,"cause",e.cause)}},"8ea2":function(t,e,n){},"8f6e":function(t,e,n){"use strict";var i=n("10a7");t.exports=!i((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},9195:function(t,e,n){"use strict";var i=n("aaa6");t.exports=function(t){var e=i(t);return"BigInt64Array"===e||"BigUint64Array"===e}},"91e1":function(t,e){t.exports=f},"929a":function(t,e,n){"use strict";t.exports={}},"92ad":function(t,e){t.exports=m},"92d1":function(t,e,n){},"92d6":function(t,e,n){"use strict";var i=n("ec2f"),r=n("585e"),o=n("95e7"),a=n("9afe");t.exports=function(t,e,n,s){s||(s={});var c=s.enumerable,l=void 0!==s.name?s.name:e;if(i(n)&&o(n,l,s),s.global)c?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(c=!0):delete t[e]}catch(u){}c?t[e]=n:r.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},9355:function(t,e,n){},9417:function(t,e,n){"use strict";var i=n("d631");t.exports=function(t,e){for(var n=i(t),r=new e(n),o=0;o<n;o++)r[o]=t[n-o-1];return r}},"948e":function(t,e,n){},"95e7":function(t,e,n){"use strict";var i=n("720f"),r=n("10a7"),o=n("ec2f"),a=n("d803"),s=n("e900"),c=n("2606").CONFIGURABLE,l=n("7c6e"),u=n("fcc0"),p=u.enforce,d=u.get,h=String,f=Object.defineProperty,m=i("".slice),y=i("".replace),v=i([].join),g=s&&!r((function(){return 8!==f((function(){}),"length",{value:8}).length})),b=String(String).split("String"),w=t.exports=function(t,e,n){"Symbol("===m(h(e),0,7)&&(e="["+y(h(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!a(t,"name")||c&&t.name!==e)&&(s?f(t,"name",{value:e,configurable:!0}):t.name=e),g&&n&&a(n,"arity")&&t.length!==n.arity&&f(t,"length",{value:n.arity});try{n&&a(n,"constructor")&&n.constructor?s&&f(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(r){}var i=p(t);return a(i,"source")||(i.source=v(b,"string"==typeof e?e:"")),t};Function.prototype.toString=w((function(){return o(this)&&d(this).source||l(this)}),"toString")},"96e5":function(t,e,n){"use strict";var i=TypeError;t.exports=function(t,e){if(t<e)throw new i("Not enough arguments");return t}},"981a":function(t,e){t.exports='<div class="v-api-project-list-container">\r\n <header>\r\n <div class="condition">\r\n <div class="input-item">\r\n <span>名称:</span>\r\n <i-input class="diy-input" placeholder="请输入名称" v-model="condition.name" @on-enter="onSearch"></i-input>\r\n </div>\r\n <div class="input-item">\r\n <span>地址:</span>\r\n <i-input class="diy-input" placeholder="请输入地址" v-model="condition.url" @on-enter="onSearch"></i-input>\r\n </div>\r\n <div class="search-btn">\r\n <i-button class="diy-btn-primary" type="primary" @click="onSearch">查询</i-button>\r\n <i-button class="diy-btn-default" @click="onEmpty">重置</i-button>\r\n </div>\r\n </div>\r\n </header>\r\n <main>\r\n <template v-if="data&&data.length">\r\n <i-table class="diy-table" :columns="columns" :data="data" @on-selection-change="onSelected" @on-row-click="onRowClick">\r\n <template slot="detail" slot-scope="{row}">\r\n <a @click="onDetail(row)">查看</a>\r\n </template>\r\n </i-table>\r\n </template>\r\n <template v-else>\r\n <div class="table-no-data">\r\n <div class="table-no-data-bg"></div>\r\n <div class="table-no-data-text">暂无数据</div>\r\n </div>\r\n </template>\r\n </main>\r\n <div class="pagination" v-if="data&&data.length">\r\n <i-page class="diy-page" :total="page.totalCount" @on-change="onPageIndexChange" @on-page-size-change="onPageSizeChange" placement="top" show-elevator show-total show-sizer> </i-page>\r\n </div>\r\n <u-api-project-detail :visiable.sync="detailShow" :model="detail"></u-api-project-detail>\r\n</div>\r\n'},9822:function(t,e,n){"use strict";var i=n("e900"),r=n("585e"),o=n("f2e2");t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},9839:function(t,e){t.exports=y},9842:function(t,e){t.exports=v},"98f0":function(t,e){t.exports=g},"98f4":function(t,e,n){},9915:function(t,e){t.exports='<editor\r\n id="editor"\r\n class="code-edit"\r\n v-model="code"\r\n theme="chrome"\r\n :options="option"\r\n @init="editorInit"\r\n :lang="lang"\r\n width="100%"\r\n height="100%"\r\n></editor>'},"998d":function(t,e,n){"use strict";var i=n("ec2f"),r=n("8785"),o=n("a2df");t.exports=function(t,e,n){var a,s;return o&&i(a=e.constructor)&&a!==n&&r(s=a.prototype)&&s!==n.prototype&&o(t,s),t}},"9afe":function(t,e,n){"use strict";var i=n("bc85"),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},"9b44":function(t,e){t.exports='<i-timeline-item v-if="source.type===\'more\'" class="trends-item">\r\n <i slot="dot"></i>\r\n <div class="item-more" @click="onMore">查看更多</div>\r\n</i-timeline-item>\r\n<i-timeline-item v-else class="trends-item">\r\n <i-avatar size="large" :class="source.operateType" slot="dot"></i-avatar>\r\n <div class="item-body">\r\n <i-time class="time" :time="source.createTime" />\r\n <div class="title">\r\n <span>{{source.projectName}}</span>\r\n <span class="create-time">{{source.createTime}}</span>\r\n </div>\r\n <div class="content">\r\n <span class="name">{{source.creatorName || source.creator}}</span>\r\n <span>{{source._operateType && source._operateType.text}}</span>\r\n <span class="name">{{source.categoryName}}</span>\r\n <span v-if="source.categoryName">分组下的</span>\r\n <span class="name api-name" @click="onToApi">{{source.apiName}}</span>\r\n <span>接口</span>\r\n </div>\r\n </div>\r\n</i-timeline-item>\r\n'},"9b65":function(t,e,n){},"9b7f":function(t,e,n){"use strict";var i=n("cd69");t.exports=function(t){var e=+t;return e!==e||0===e?0:i(e)}},"9c4a":function(t,e,n){"use strict";var i=n("7801"),r=n("9e90");t.exports=function(t,e){var n=t[e];return r(n)?void 0:i(n)}},"9e10":function(t,e,n){},"9e90":function(t,e,n){"use strict";t.exports=function(t){return null===t||void 0===t}},"9fb0":function(t,e,n){},a047:function(t,e,n){"use strict";var i=n("720f"),r=0,o=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},a079:function(t,e,n){"use strict";var i=n("8785"),r=String,o=TypeError;t.exports=function(t){if(i(t))return t;throw new o(r(t)+" is not an object")}},a0f2:function(t,e){t.exports='<article class="catalog-params">\r\n <i-table height="200" class="diy-table" :columns="columns" :data="dataList">\r\n <template slot-scope="{ row,index }" slot="type">\r\n {{(row._type || {}).text}}\r\n </template>\r\n <template slot-scope="{ row,index }" slot="required">\r\n {{row.required ? "是": "否"}}\r\n </template>\r\n </i-table>\r\n</article>\r\n'},a121:function(t,e,n){},a1f0:function(t,e){t.exports='<i-poptip\r\n transfer\r\n class="u-tree-selector"\r\n transfer-class-name="u-tree-selector"\r\n trigger="click"\r\n content="content"\r\n placement="bottom"\r\n :disabled="readonly"\r\n v-model="visible"\r\n>\r\n <i-input\r\n class="diy-input"\r\n :value="inputValue"\r\n @on-change="onInputChange"\r\n :placeholder="placeholder"\r\n readonly\r\n />\r\n <i-icon\r\n v-if="inputValue && !readonly"\r\n class="icon-clear-value"\r\n type="ios-close-circle"\r\n @click.stop="onClear"\r\n />\r\n <i-tree\r\n slot="content"\r\n :data="tree"\r\n :render="renderContent"\r\n @on-select-change="onSelectChange"\r\n ></i-tree>\r\n</i-poptip>\r\n'},a2c5:function(t,e){t.exports=b},a2df:function(t,e,n){"use strict";var i=n("ec75"),r=n("a079"),o=n("7c77");t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{t=i(Object.prototype,"__proto__","set"),t(n,[]),e=n instanceof Array}catch(a){}return function(n,i){return r(n),o(i),e?t(n,i):n.__proto__=i,n}}():void 0)},a4d2:function(t,e,n){"use strict";var i=n("92d6"),r=n("720f"),o=n("ce97"),a=n("96e5"),s=URLSearchParams,c=s.prototype,l=r(c.getAll),u=r(c.has),p=new s("a=1");!p.has("a",2)&&p.has("a",void 0)||i(c,"has",(function(t){var e=arguments.length,n=e<2?void 0:arguments[1];if(e&&void 0===n)return u(this,t);var i=l(this,t);a(e,1);var r=o(n),s=0;while(s<i.length)if(i[s++]===r)return!0;return!1}),{enumerable:!0,unsafe:!0})},a54a:function(t,e,n){"use strict";var i=n("d803"),r=n("ec2f"),o=n("e614"),a=n("3d77"),s=n("8f6e"),c=a("IE_PROTO"),l=Object,u=l.prototype;t.exports=s?l.getPrototypeOf:function(t){var e=o(t);if(i(e,c))return e[c];var n=e.constructor;return r(n)&&e instanceof n?n.prototype:e instanceof l?u:null}},a564:function(t,e,n){"use strict";var i=n("e900"),r=n("a95a"),o=n("23c0"),a=n("f2e2"),s=n("485f"),c=n("aee9"),l=n("d803"),u=n("4869"),p=Object.getOwnPropertyDescriptor;e.f=i?p:function(t,e){if(t=s(t),e=c(e),u)try{return p(t,e)}catch(n){}if(l(t,e))return a(!r(o.f,t,e),t[e])}},a68e:function(t,e,n){"use strict";var i=n("e086"),r=TypeError;t.exports=function(t){var e=i(t,"number");if("number"==typeof e)throw new r("Can't convert number to bigint");return BigInt(e)}},a6c3:function(t,e,n){},a93c:function(t,e){t.exports=w},a95a:function(t,e,n){"use strict";var i=n("12f2"),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},aaa6:function(t,e,n){"use strict";var i=n("6a6c"),r=n("ec2f"),o=n("0d9b"),a=n("fff8"),s=a("toStringTag"),c=Object,l="Arguments"===o(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(n){}};t.exports=i?o:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=c(t),s))?n:l?o(e):"Object"===(i=o(e))&&r(e.callee)?"Arguments":i}},ab68:function(t,e){t.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>{{detail.info?detail.info.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'},aba0:function(t,e,n){},ad8b:function(t,e,n){"use strict";var i,r,o=n("bc85"),a=n("c469"),s=o.process,c=o.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(i=u.split("."),r=i[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(i=a.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/),i&&(r=+i[1]))),t.exports=r},aee9:function(t,e,n){"use strict";var i=n("e086"),r=n("8a14");t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},b042:function(t,e,n){
8
8
  /*!
9
9
  * vue-awesome-swiper v4.1.1
10
10
  * Copyright (c) Surmon. All rights reserved.
@@ -25,4 +25,4 @@ MERCHANTABLITY OR NON-INFRINGEMENT.
25
25
 
26
26
  See the Apache Version 2.0 License for specific language governing permissions
27
27
  and limitations under the License.
28
- ***************************************************************************** */function c(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}var l,u=function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()},p=function(t,e,n){var i,o,a;if(t&&!t.destroyed){var s=(null===(i=e.composedPath)||void 0===i?void 0:i.call(e))||e.path;if((null===e||void 0===e?void 0:e.target)&&s){var c=Array.from(t.slides),l=Array.from(s);if(c.includes(e.target)||l.some((function(t){return c.includes(t)}))){var p=t.clickedIndex,d=Number(null===(a=null===(o=t.clickedSlide)||void 0===o?void 0:o.dataset)||void 0===a?void 0:a.swiperSlideIndex),h=Number.isInteger(d)?d:null;n(r.ClickSlide,p,h),n(u(r.ClickSlide),p,h)}}}},d=function(t,e){s.forEach((function(n){t.on(n,(function(){for(var t=arguments,i=[],r=0;r<arguments.length;r++)i[r]=t[r];e.apply(void 0,c([n],i));var o=u(n);o!==n&&e.apply(void 0,c([o],i))}))}))},h="instanceName";function f(t,e){var n=function(t,e){var n,i,r,o,a=null===(i=null===(n=t.data)||void 0===n?void 0:n.attrs)||void 0===i?void 0:i[e];return void 0!==a?a:null===(o=null===(r=t.data)||void 0===r?void 0:r.attrs)||void 0===o?void 0:o[u(e)]},s=function(t,e,r){return e.arg||n(r,h)||t.id||i.SwiperInstance},c=function(t,e,n){var i=s(t,e,n);return n.context[i]||null},l=function(t){return t.value||e},f=function(t){return[!0,void 0,null,""].includes(t)},m=function(t){var e,n,i=(null===(e=t.data)||void 0===e?void 0:e.on)||(null===(n=t.componentOptions)||void 0===n?void 0:n.listeners);return function(t){for(var e,n=arguments,r=[],o=1;o<arguments.length;o++)r[o-1]=n[o];var a=null===(e=i)||void 0===e?void 0:e[t];a&&a.fns.apply(a,r)}};return{bind:function(t,e,n){-1===t.className.indexOf(a.containerClass)&&(t.className+=(t.className?" ":"")+a.containerClass),t.addEventListener("click",(function(i){var r=m(n),o=c(t,e,n);p(o,i,r)}))},inserted:function(e,n,i){var o=i.context,a=l(n),c=s(e,n,i),u=m(i),p=o,h=null===p||void 0===p?void 0:p[c];h&&!h.destroyed||(h=new t(e,a),p[c]=h,d(h,u),u(r.Ready,h))},componentUpdated:function(t,e,i){var r,a,s,u,p,d,h,m,y,v,g,b,w=n(i,o.AutoUpdate);if(f(w)){var x=c(t,e,i);if(x){var S=l(e),I=S.loop;I&&(null===(a=null===(r=x)||void 0===r?void 0:r.loopDestroy)||void 0===a||a.call(r)),null===(s=null===x||void 0===x?void 0:x.update)||void 0===s||s.call(x),null===(p=null===(u=x.navigation)||void 0===u?void 0:u.update)||void 0===p||p.call(u),null===(h=null===(d=x.pagination)||void 0===d?void 0:d.render)||void 0===h||h.call(d),null===(y=null===(m=x.pagination)||void 0===m?void 0:m.update)||void 0===y||y.call(m),I&&(null===(g=null===(v=x)||void 0===v?void 0:v.loopCreate)||void 0===g||g.call(v),null===(b=null===x||void 0===x?void 0:x.update)||void 0===b||b.call(x))}}},unbind:function(t,e,i){var r,a=n(i,o.AutoDestroy);if(f(a)){var s=c(t,e,i);s&&s.initialized&&(null===(r=null===s||void 0===s?void 0:s.destroy)||void 0===r||r.call(s,f(n(i,o.DeleteInstanceOnDestroy)),f(n(i,o.CleanupStylesOnDestroy))))}}}}function m(t){var e;return n.extend({name:i.SwiperComponent,props:(e={defaultOptions:{type:Object,required:!1,default:function(){return{}}},options:{type:Object,required:!1}},e[o.AutoUpdate]={type:Boolean,default:!0},e[o.AutoDestroy]={type:Boolean,default:!0},e[o.DeleteInstanceOnDestroy]={type:Boolean,required:!1,default:!0},e[o.CleanupStylesOnDestroy]={type:Boolean,required:!1,default:!0},e),data:function(){var t;return t={},t[i.SwiperInstance]=null,t},computed:{swiperInstance:{cache:!1,set:function(t){this[i.SwiperInstance]=t},get:function(){return this[i.SwiperInstance]}},swiperOptions:function(){return this.options||this.defaultOptions},wrapperClass:function(){return this.swiperOptions.wrapperClass||a.wrapperClass}},methods:{handleSwiperClick:function(t){p(this.swiperInstance,t,this.$emit.bind(this))},autoReLoopSwiper:function(){var t,e;if(this.swiperInstance&&this.swiperOptions.loop){var n=this.swiperInstance;null===(t=null===n||void 0===n?void 0:n.loopDestroy)||void 0===t||t.call(n),null===(e=null===n||void 0===n?void 0:n.loopCreate)||void 0===e||e.call(n)}},updateSwiper:function(){var t,e,n,i,r,a,s,c;this[o.AutoUpdate]&&this.swiperInstance&&(this.autoReLoopSwiper(),null===(e=null===(t=this.swiperInstance)||void 0===t?void 0:t.update)||void 0===e||e.call(t),null===(i=null===(n=this.swiperInstance.navigation)||void 0===n?void 0:n.update)||void 0===i||i.call(n),null===(a=null===(r=this.swiperInstance.pagination)||void 0===r?void 0:r.render)||void 0===a||a.call(r),null===(c=null===(s=this.swiperInstance.pagination)||void 0===s?void 0:s.update)||void 0===c||c.call(s))},destroySwiper:function(){var t,e;this[o.AutoDestroy]&&this.swiperInstance&&this.swiperInstance.initialized&&(null===(e=null===(t=this.swiperInstance)||void 0===t?void 0:t.destroy)||void 0===e||e.call(t,this[o.DeleteInstanceOnDestroy],this[o.CleanupStylesOnDestroy]))},initSwiper:function(){this.swiperInstance=new t(this.$el,this.swiperOptions),d(this.swiperInstance,this.$emit.bind(this)),this.$emit(r.Ready,this.swiperInstance)}},mounted:function(){this.swiperInstance||this.initSwiper()},activated:function(){this.updateSwiper()},updated:function(){this.updateSwiper()},beforeDestroy:function(){this.$nextTick(this.destroySwiper)},render:function(t){return t("div",{staticClass:a.containerClass,on:{click:this.handleSwiperClick}},[this.$slots[l.ParallaxBg],t("div",{class:this.wrapperClass},this.$slots.default),this.$slots[l.Pagination],this.$slots[l.PrevButton],this.$slots[l.NextButton],this.$slots[l.Scrollbar]])}})}(function(t){t["ParallaxBg"]="parallax-bg",t["Pagination"]="pagination",t["Scrollbar"]="scrollbar",t["PrevButton"]="button-prev",t["NextButton"]="button-next"})(l||(l={}));var y=n.extend({name:i.SwiperSlideComponent,computed:{slideClass:function(){var t,e;return(null===(e=null===(t=this.$parent)||void 0===t?void 0:t.swiperOptions)||void 0===e?void 0:e.slideClass)||a.slideClass}},methods:{update:function(){var t,e=this.$parent;e[o.AutoUpdate]&&(null===(t=null===e||void 0===e?void 0:e.swiperInstance)||void 0===t||t.update())}},mounted:function(){this.update()},updated:function(){this.update()},render:function(t){return t("div",{class:this.slideClass},this.$slots.default)}}),v=function(t){var e=function(n,r){if(!e.installed){var o=m(t);r&&(o.options.props.defaultOptions.default=function(){return r}),n.component(i.SwiperComponent,o),n.component(i.SwiperSlideComponent,y),n.directive(i.SwiperDirective,f(t,r)),e.installed=!0}};return e};function g(t){var e;return e={version:"4.1.1",install:v(t),directive:f(t)},e[i.SwiperComponent]=m(t),e[i.SwiperSlideComponent]=y,e}var b=g(e),w=b.version,x=b.install,S=b.directive,I=b.Swiper,k=b.SwiperSlide;t.Swiper=I,t.SwiperSlide=k,t.default=b,t.directive=S,t.install=x,t.version=w,Object.defineProperty(t,"__esModule",{value:!0})}))},ef27:function(t,e){t.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'},f2e2:function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},f40e:function(t,e){t.exports='<article class="interface-settings" :class="{\'script-max\': scriptView}">\r\n <header v-show="!scriptView">\r\n \x3c!-- <i-input class="diy-input" v-model="interfaceModel.info.url">--\x3e\r\n \x3c!-- <i-select transfer slot="prepend" class="diy-select" v-model="interfaceModel.info.method">--\x3e\r\n \x3c!-- <i-option v-for="item in typeList" :key="item.value" :value="item.value">{{item.text}}</i-option>--\x3e\r\n \x3c!-- </i-select>--\x3e\r\n \x3c!-- </i-input>--\x3e\r\n <i-select class="diy-select method-select" v-model="interfaceModel.info.method">\r\n <i-option v-for="item in typeList" :key="item.value" :value="item.value">{{item.text}}</i-option>\r\n </i-select>\r\n <i-select ref="addEnvParamSelect" class="diy-select env-select" v-model="interfaceModel.info.envId" placeholder="请选择环境变量" clearable>\r\n <i-option v-for="item in paramList" :key="item.id" :value="item.id">{{item.name + ":" + item.value}}</i-option>\r\n <i-option class="add-security-item" value="\'\'">\r\n <div class="add-security-item-content" @click.stop="onAddEnvParam">\r\n <i class="api-icon icon-add"></i>\r\n <span>新增环境变量</span>\r\n </div>\r\n </i-option>\r\n </i-select>\r\n <i-poptip class="url-poptip" v-if="interfaceModel.info.url" trigger="hover" :content="interfaceModel.info.url" transfer>\r\n <i-input class="diy-input url-input" v-model="interfaceModel.info.url"></i-input>\r\n </i-poptip>\r\n <i-input v-else class="diy-input url-input" v-model="interfaceModel.info.url"></i-input>\r\n\r\n <i-button type="primary" class="diy-btn-primary submit-btn" @click="onRun">发送</i-button>\r\n <i-button type="primary" class="diy-btn-primary" @click="onSave" ghost>保存</i-button>\r\n <i-button type="primary" class="diy-btn-primary process-btn" @click="onProcess" ghost>流程配置</i-button>\r\n <i-button type="primary" class="diy-btn-primary his-btn" @click="onVersion" ghost>查看历史版本</i-button>\r\n <i class="export iconfont icon-xiazai" title="导出" type="md-download" @click="onExport"></i>\r\n <i-upload action="" :before-upload="onImport" :show-upload-list="false">\r\n <i class="import iconfont icon-shangchuan" title="导入" type="md-cloud-upload"></i>\r\n </i-upload>\r\n </header>\r\n <main :class="{\'transverse\': !lengthwise}">\r\n <section class="request">\r\n <div v-show="!scriptView" class="request-bar">\r\n <div\r\n class="tag"\r\n :class="{\'active\': currentRequestSettingType.name.indexOf(item.name) === 0}"\r\n v-for="(item,index) in requertSettingTypeList"\r\n :key="item.name"\r\n @click="onClickRequertSettingTpye(item)"\r\n >\r\n <span>{{item.title}}</span>\r\n </div>\r\n </div>\r\n <div class="request-content">\r\n <component\r\n :is="currentRequestSettingType.name"\r\n :lengthwise="lengthwise"\r\n :interface-model="interfaceModel"\r\n :response="response"\r\n :key="interfaceModel.info.id + currentRequestSettingType.name"\r\n :projectID="projectId"\r\n :currentSecurityID="currentId"\r\n :errorLine="!originId || originId === interfaceModel.info.id ? errorLine : []"\r\n :formData="formData"\r\n @on-current-id="onCurrentId"\r\n @on-script-run="onScriptRun"\r\n @on-script-save="onSave"\r\n @on-script-max="onScriptMax"\r\n ></component>\r\n </div>\r\n </section>\r\n <response :key="interfaceModel.info.id + \'response\'" :lengthwise="lengthwise" :response="response"></response>\r\n </main>\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-environment-modal :visiable.sync="showEnvironmentModal" :projectId="projectId" @on-refresh="getEnvironmentParamList" :isAdd="true"></u-environment-modal>\r\n <i-modal class="diy-modal edit-import-name" v-model="showImportModal" :mask-closable="false">\r\n <p slot="header">编辑名称</p>\r\n <i-form ref="import" :model="apiForm" :rules="rules">\r\n <i-form-item label="环境变量:" prop="envName">\r\n <i-input v-model="apiForm.envName"></i-input>\r\n </i-form-item>\r\n\r\n <i-form-item label="授权:" prop="authName">\r\n <i-input v-model="apiForm.authName"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <div class="handle-btn" slot="footer">\r\n <i-button class="diy-btn-primary" type="primary" @click.stop="saveImportData(importObj)">确定</i-button>\r\n <i-button class="diy-btn-text" @click.stop="cancleModify">取消</i-button>\r\n </div>\r\n </i-modal>\r\n <u-process-drawer v-model="showDrawer" :projectTree="projectTree" :info="interfaceModel.info" @on-save="onProcessSave"></u-process-drawer>\r\n</article>\r\n'},f511:function(t,e,n){"use strict";var i=n("bc85"),r=n("0d9b");t.exports="process"===r(i.process)},f764:function(t,e,n){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},f9a4:function(t,e){t.exports='<i-switch :class="{ \'mid-style\': midState }" :value="showValue" size="large" :true-value="1" :false-value="0" @on-change="onChange" >\r\n <span slot="open">启用</span>\r\n <span slot="close">禁用</span>\r\n</i-switch>'},fcc0:function(t,e,n){"use strict";var i,r,o,a=n("7ddf"),s=n("bc85"),c=n("8785"),l=n("9822"),u=n("d803"),p=n("0888"),d=n("3d77"),h=n("929a"),f="Object already initialized",m=s.TypeError,y=s.WeakMap,v=function(t){return o(t)?r(t):i(t,{})},g=function(t){return function(e){var n;if(!c(e)||(n=r(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return n}};if(a||p.state){var b=p.state||(p.state=new y);b.get=b.get,b.has=b.has,b.set=b.set,i=function(t,e){if(b.has(t))throw new m(f);return e.facade=t,b.set(t,e),e},r=function(t){return b.get(t)||{}},o=function(t){return b.has(t)}}else{var w=d("state");h[w]=!0,i=function(t,e){if(u(t,w))throw new m(f);return e.facade=t,l(t,w,e),e},r=function(t){return u(t,w)?t[w]:{}},o=function(t){return u(t,w)}}t.exports={set:i,get:r,has:o,enforce:v,getterFor:g}},fe54:function(t,e,n){},fef4:function(t,e,n){"use strict";var i=n("a95a"),r=n("ec2f"),o=n("8785"),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!o(s=i(n,t)))return s;if(r(n=t.valueOf)&&!o(s=i(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!o(s=i(n,t)))return s;throw new a("Can't convert object to primitive value")}},ff99:function(t,e,n){"use strict";var i=n("12f2"),r=Function.prototype,o=r.apply,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(o):function(){return a.apply(o,arguments)})},fff8:function(t,e,n){"use strict";var i=n("bc85"),r=n("2385"),o=n("d803"),a=n("a047"),s=n("767a"),c=n("ecb9"),l=i.Symbol,u=r("wks"),p=c?l["for"]||l:l&&l.withoutSetter||a;t.exports=function(t){return o(u,t)||(u[t]=s&&o(l,t)?l[t]:p("Symbol."+t)),u[t]}}})}));
28
+ ***************************************************************************** */function c(){for(var t=0,e=0,n=arguments.length;e<n;e++)t+=arguments[e].length;var i=Array(t),r=0;for(e=0;e<n;e++)for(var o=arguments[e],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}var l,u=function(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/\s+/g,"-").toLowerCase()},p=function(t,e,n){var i,o,a;if(t&&!t.destroyed){var s=(null===(i=e.composedPath)||void 0===i?void 0:i.call(e))||e.path;if((null===e||void 0===e?void 0:e.target)&&s){var c=Array.from(t.slides),l=Array.from(s);if(c.includes(e.target)||l.some((function(t){return c.includes(t)}))){var p=t.clickedIndex,d=Number(null===(a=null===(o=t.clickedSlide)||void 0===o?void 0:o.dataset)||void 0===a?void 0:a.swiperSlideIndex),h=Number.isInteger(d)?d:null;n(r.ClickSlide,p,h),n(u(r.ClickSlide),p,h)}}}},d=function(t,e){s.forEach((function(n){t.on(n,(function(){for(var t=arguments,i=[],r=0;r<arguments.length;r++)i[r]=t[r];e.apply(void 0,c([n],i));var o=u(n);o!==n&&e.apply(void 0,c([o],i))}))}))},h="instanceName";function f(t,e){var n=function(t,e){var n,i,r,o,a=null===(i=null===(n=t.data)||void 0===n?void 0:n.attrs)||void 0===i?void 0:i[e];return void 0!==a?a:null===(o=null===(r=t.data)||void 0===r?void 0:r.attrs)||void 0===o?void 0:o[u(e)]},s=function(t,e,r){return e.arg||n(r,h)||t.id||i.SwiperInstance},c=function(t,e,n){var i=s(t,e,n);return n.context[i]||null},l=function(t){return t.value||e},f=function(t){return[!0,void 0,null,""].includes(t)},m=function(t){var e,n,i=(null===(e=t.data)||void 0===e?void 0:e.on)||(null===(n=t.componentOptions)||void 0===n?void 0:n.listeners);return function(t){for(var e,n=arguments,r=[],o=1;o<arguments.length;o++)r[o-1]=n[o];var a=null===(e=i)||void 0===e?void 0:e[t];a&&a.fns.apply(a,r)}};return{bind:function(t,e,n){-1===t.className.indexOf(a.containerClass)&&(t.className+=(t.className?" ":"")+a.containerClass),t.addEventListener("click",(function(i){var r=m(n),o=c(t,e,n);p(o,i,r)}))},inserted:function(e,n,i){var o=i.context,a=l(n),c=s(e,n,i),u=m(i),p=o,h=null===p||void 0===p?void 0:p[c];h&&!h.destroyed||(h=new t(e,a),p[c]=h,d(h,u),u(r.Ready,h))},componentUpdated:function(t,e,i){var r,a,s,u,p,d,h,m,y,v,g,b,w=n(i,o.AutoUpdate);if(f(w)){var x=c(t,e,i);if(x){var S=l(e),I=S.loop;I&&(null===(a=null===(r=x)||void 0===r?void 0:r.loopDestroy)||void 0===a||a.call(r)),null===(s=null===x||void 0===x?void 0:x.update)||void 0===s||s.call(x),null===(p=null===(u=x.navigation)||void 0===u?void 0:u.update)||void 0===p||p.call(u),null===(h=null===(d=x.pagination)||void 0===d?void 0:d.render)||void 0===h||h.call(d),null===(y=null===(m=x.pagination)||void 0===m?void 0:m.update)||void 0===y||y.call(m),I&&(null===(g=null===(v=x)||void 0===v?void 0:v.loopCreate)||void 0===g||g.call(v),null===(b=null===x||void 0===x?void 0:x.update)||void 0===b||b.call(x))}}},unbind:function(t,e,i){var r,a=n(i,o.AutoDestroy);if(f(a)){var s=c(t,e,i);s&&s.initialized&&(null===(r=null===s||void 0===s?void 0:s.destroy)||void 0===r||r.call(s,f(n(i,o.DeleteInstanceOnDestroy)),f(n(i,o.CleanupStylesOnDestroy))))}}}}function m(t){var e;return n.extend({name:i.SwiperComponent,props:(e={defaultOptions:{type:Object,required:!1,default:function(){return{}}},options:{type:Object,required:!1}},e[o.AutoUpdate]={type:Boolean,default:!0},e[o.AutoDestroy]={type:Boolean,default:!0},e[o.DeleteInstanceOnDestroy]={type:Boolean,required:!1,default:!0},e[o.CleanupStylesOnDestroy]={type:Boolean,required:!1,default:!0},e),data:function(){var t;return t={},t[i.SwiperInstance]=null,t},computed:{swiperInstance:{cache:!1,set:function(t){this[i.SwiperInstance]=t},get:function(){return this[i.SwiperInstance]}},swiperOptions:function(){return this.options||this.defaultOptions},wrapperClass:function(){return this.swiperOptions.wrapperClass||a.wrapperClass}},methods:{handleSwiperClick:function(t){p(this.swiperInstance,t,this.$emit.bind(this))},autoReLoopSwiper:function(){var t,e;if(this.swiperInstance&&this.swiperOptions.loop){var n=this.swiperInstance;null===(t=null===n||void 0===n?void 0:n.loopDestroy)||void 0===t||t.call(n),null===(e=null===n||void 0===n?void 0:n.loopCreate)||void 0===e||e.call(n)}},updateSwiper:function(){var t,e,n,i,r,a,s,c;this[o.AutoUpdate]&&this.swiperInstance&&(this.autoReLoopSwiper(),null===(e=null===(t=this.swiperInstance)||void 0===t?void 0:t.update)||void 0===e||e.call(t),null===(i=null===(n=this.swiperInstance.navigation)||void 0===n?void 0:n.update)||void 0===i||i.call(n),null===(a=null===(r=this.swiperInstance.pagination)||void 0===r?void 0:r.render)||void 0===a||a.call(r),null===(c=null===(s=this.swiperInstance.pagination)||void 0===s?void 0:s.update)||void 0===c||c.call(s))},destroySwiper:function(){var t,e;this[o.AutoDestroy]&&this.swiperInstance&&this.swiperInstance.initialized&&(null===(e=null===(t=this.swiperInstance)||void 0===t?void 0:t.destroy)||void 0===e||e.call(t,this[o.DeleteInstanceOnDestroy],this[o.CleanupStylesOnDestroy]))},initSwiper:function(){this.swiperInstance=new t(this.$el,this.swiperOptions),d(this.swiperInstance,this.$emit.bind(this)),this.$emit(r.Ready,this.swiperInstance)}},mounted:function(){this.swiperInstance||this.initSwiper()},activated:function(){this.updateSwiper()},updated:function(){this.updateSwiper()},beforeDestroy:function(){this.$nextTick(this.destroySwiper)},render:function(t){return t("div",{staticClass:a.containerClass,on:{click:this.handleSwiperClick}},[this.$slots[l.ParallaxBg],t("div",{class:this.wrapperClass},this.$slots.default),this.$slots[l.Pagination],this.$slots[l.PrevButton],this.$slots[l.NextButton],this.$slots[l.Scrollbar]])}})}(function(t){t["ParallaxBg"]="parallax-bg",t["Pagination"]="pagination",t["Scrollbar"]="scrollbar",t["PrevButton"]="button-prev",t["NextButton"]="button-next"})(l||(l={}));var y=n.extend({name:i.SwiperSlideComponent,computed:{slideClass:function(){var t,e;return(null===(e=null===(t=this.$parent)||void 0===t?void 0:t.swiperOptions)||void 0===e?void 0:e.slideClass)||a.slideClass}},methods:{update:function(){var t,e=this.$parent;e[o.AutoUpdate]&&(null===(t=null===e||void 0===e?void 0:e.swiperInstance)||void 0===t||t.update())}},mounted:function(){this.update()},updated:function(){this.update()},render:function(t){return t("div",{class:this.slideClass},this.$slots.default)}}),v=function(t){var e=function(n,r){if(!e.installed){var o=m(t);r&&(o.options.props.defaultOptions.default=function(){return r}),n.component(i.SwiperComponent,o),n.component(i.SwiperSlideComponent,y),n.directive(i.SwiperDirective,f(t,r)),e.installed=!0}};return e};function g(t){var e;return e={version:"4.1.1",install:v(t),directive:f(t)},e[i.SwiperComponent]=m(t),e[i.SwiperSlideComponent]=y,e}var b=g(e),w=b.version,x=b.install,S=b.directive,I=b.Swiper,k=b.SwiperSlide;t.Swiper=I,t.SwiperSlide=k,t.default=b,t.directive=S,t.install=x,t.version=w,Object.defineProperty(t,"__esModule",{value:!0})}))},b061:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(i){"object"===typeof window&&(n=window)}t.exports=n},b156:function(t,e,n){},b61c:function(t,e,n){},b699:function(t,e,n){"use strict";var i=n("d631"),r=n("9b7f"),o=RangeError;t.exports=function(t,e,n,a){var s=i(t),c=r(n),l=c<0?s+c:c;if(l>=s||l<0)throw new o("Incorrect index");for(var u=new e(s),p=0;p<s;p++)u[p]=p===l?a:t[p];return u}},b769:function(t,e){t.exports='<article class="project-comment">\r\n <header>\r\n <i-input\r\n class="diy-input"\r\n prefix="ios-search"\r\n search\r\n @on-search="onQuery"\r\n placeholder="输入关键字检索"\r\n v-model="condition.apiName"\r\n ></i-input>\r\n </header>\r\n\r\n <main>\r\n <header class="tool-bar">\r\n <span>项目动态</span>\r\n </header>\r\n <main>\r\n <i-timeline :pending="false">\r\n <virtual-list\r\n class="scroll-list"\r\n data-key="id"\r\n :data-sources="list"\r\n :data-component="itemComponent"\r\n >\r\n </virtual-list>\r\n </i-timeline>\r\n </main>\r\n </main>\r\n</article>\r\n'},bc13:function(t,e){t.exports='<div class="confirm">\r\n <div @click.stop="onOpenConfirm">\r\n <slot></slot>\r\n </div>\r\n <i-modal\r\n width=400\r\n draggable\r\n sticky\r\n reset-drag-position\r\n v-model="value"\r\n class="diy-modal confirm-modal"\r\n :mask-closable="false"\r\n :title="title"\r\n >\r\n <div>\r\n <i class="api-icon icon-warning"></i>\r\n </div>\r\n <p>\r\n {{message}}\r\n </p>\r\n <footer slot="footer">\r\n <i-button type="primary" class="diy-btn-primary " @click="onOk"\r\n >确定</i-button\r\n >\r\n <i-button @click="onCancel">取消</i-button>\r\n </footer>\r\n </i-modal>\r\n</div>\r\n'},bc85:function(t,e,n){"use strict";(function(e){var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()}).call(this,n("b061"))},bcb8:function(t,e,n){},bd74:function(t,e,n){"use strict";var i=n("bc85"),r=n("ec2f"),o=function(t){return r(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(i[t]):i[t]&&i[t][e]}},be65:function(t,e){t.exports=x},bff7:function(t,e,n){},c01f:function(t,e){t.exports='<article class="group-select">\r\n <i-poptip\r\n trigger="click"\r\n transfer\r\n :transfer-class-name="isSelector? \'group-select-transfer group-select-poptip\':\'group-select-transfer\'"\r\n placement="bottom-start"\r\n v-model="visible"\r\n >\r\n <i-input\r\n readonly\r\n class="diy-input"\r\n :value="current.name"\r\n clearable\r\n @on-clear="onClear"\r\n ></i-input>\r\n <template slot="content">\r\n <i-tree\r\n :data="data"\r\n @on-select-change="onSelect"\r\n :render="renderContent"\r\n ></i-tree>\r\n </template>\r\n </i-poptip>\r\n</article>\r\n'},c469:function(t,e,n){"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},c889:function(t,e){t.exports=S},ca1f:function(t,e,n){},ca33:function(t,e,n){"use strict";var i=n("e900"),r=n("10a7");t.exports=i&&r((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},ca38:function(t,e,n){},ccf6:function(t,e){t.exports='<!DOCTYPE html>\r\n<article class="v-api-combine-wrapper">\r\n <i-split v-model="split" min="200px" max="1100px">\r\n \x3c!-- 左侧内容 --\x3e\r\n <section slot="left" class="left-split-pane">\r\n <u-type-tree :taskCategoryID="taskCategoryID" :initSelectItem="initNode" @on-import-success="onQuery" @on-select="onNodeSelect" @on-tree-data="onTreeData">\r\n </u-type-tree>\r\n </section>\r\n \x3c!-- 分割线 --\x3e\r\n <section class="trigger" slot="trigger"></section>\r\n \x3c!-- 右侧内容 --\x3e\r\n <section slot="right" class="right-split-pane">\r\n <section class="search-wrapper">\r\n <i-form class="diy-search-form" ref="searchForm" :model="formData" label-position="left" label-colon>\r\n <i-form-item label="名称" prop="name">\r\n <i-input class="diy-input" v-model="formData.name"></i-input>\r\n </i-form-item>\r\n <i-form-item label="编码" prop="code">\r\n <i-input class="diy-input" v-model="formData.code"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <div class="btns">\r\n <i-button class="diy-btn-primary" type="primary" @click="onQuery">查询</i-button>\r\n <i-button class="diy-btn-default" @click="onReset">重置</i-button>\r\n </div>\r\n </section>\r\n <section class="actions-wrapper">\r\n <div class="action-item action-text" @click="onAdd()" :class="currentNode.id === \'virtual_root_directory\' ? \'icon-button-disabled\' : \'\'">\r\n <i class="iconfont icon-add"></i>\r\n <div>新增</div>\r\n </div>\r\n <div class="action-item action-text" :class="(selection.length && !isContainsPublished) ? \'\' : \'icon-button-disabled\'" @click="onBatchDelete">\r\n <i class="iconfont icon-delete"></i>\r\n <span>批量删除</span>\r\n </div>\r\n </section>\r\n <section class="main-wrapper">\r\n <template v-if="list&&list.length">\r\n <i-table class="diy-table diy-table-scorll" :columns="columns" :data="list" @on-selection-change="onSelectChange" @on-row-click="onRowClick">\r\n <template slot="status" slot-scope="{row,index}">\r\n <i-switch class="diy-switch" :value="row.status===\'PUBLISHED\'" @on-change="onStatusChange($event, row, index)"></i-switch>\r\n <span>{{row.status==="PUBLISHED" ? "已发布" : "未发布"}}</span>\r\n </template>\r\n <template slot="authFlag" slot-scope="{row,index}">\r\n <i-switch class="diy-switch" :value="row.authFlag" :true-value="1" :false-value="0" @on-change="onAuthFlagChange($event, row, index)">\r\n <span slot="open">是</span>\r\n <span slot="close">否</span>\r\n </i-switch>\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="onDetail(row)" title="查看" class="iconfont icon-a-xinzengzhibiaobeifen9"></i>\r\n <i @click="onCopy(row)" title="复制" class="iconfont icon-fuzhi1"> </i>\r\n <template v-if="row.status!==\'PUBLISHED\'">\r\n <i @click="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 </template>\r\n <template v-else>\r\n <div class="table-no-data">\r\n <div class="table-no-data-bg"></div>\r\n <div class="table-no-data-text">暂无数据</div>\r\n </div>\r\n </template>\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'},cd69:function(t,e,n){"use strict";var i=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?r:i)(e)}},ce8f:function(t,e){t.exports=I},ce97:function(t,e,n){"use strict";var i=n("aaa6"),r=String;t.exports=function(t){if("Symbol"===i(t))throw new TypeError("Cannot convert a Symbol value to a string");return r(t)}},cebe:function(t,e){t.exports=k},cf8c:function(t,e,n){"use strict";var i=n("485f"),r=n("575c"),o=n("d631"),a=function(t){return function(e,n,a){var s,c=i(e),l=o(c),u=r(a,l);if(t&&n!==n){while(l>u)if(s=c[u++],s!==s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},cfb3:function(t,e){t.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'},cfde:function(t,e,n){},d30a:function(t,e){t.exports='<div class="u-selector-tree-node" @click="onClickNode">\r\n <i-icon v-if="!data.children" type="ios-bookmark-outline" />\r\n <template v-else>\r\n\x3c!-- <i--\x3e\r\n\x3c!-- class="iconfont"--\x3e\r\n\x3c!-- :class="data.expand? \'icon-expand\': \'icon-unexpand\'"--\x3e\r\n\x3c!-- ></i>--\x3e\r\n <i class="iconfont icon-bumenkaohe"></i>\r\n </template>\r\n <span>{{data.title}}</span>\r\n</div>\r\n'},d345:function(t,e,n){"use strict";if(n.r(e),n.d(e,"ProjectCombineManage",(function(){return lt})),n.d(e,"ProjectCombineModel",(function(){return Kt})),n.d(e,"ProjectComment",(function(){return Me})),n.d(e,"ProjectDetail",(function(){return Fn})),n.d(e,"ProjectList",(function(){return Ie})),n.d(e,"injectEnableUserCenterCookie",(function(){return k})),"undefined"!==typeof window){var i=window.document.currentScript,r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}var o=n("8bbf"),a=n.n(o),s=n("9839"),c=n.n(s),l=(n("92d1"),n("e02e"),function(t,e){return l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},l(t,e)});function u(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var p=function(){return p=Object.assign||function(t){for(var e,n=1,i=arguments.length;n<i;n++)for(var r in e=arguments[n],e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t},p.apply(this,arguments)};function d(t,e,n,i){var r,o=arguments.length,a=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"===typeof Reflect&&"function"===typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(r=t[s])&&(a=(o<3?r(a):o>3?r(e,n,a):r(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function h(t,e,n,i){function r(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,o){function a(t){try{c(i.next(t))}catch(e){o(e)}}function s(t){try{c(i["throw"](t))}catch(e){o(e)}}function c(t){t.done?n(t.value):r(t.value).then(a,s)}c((i=i.apply(t,e||[])).next())}))}function f(t,e){var n,i,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return c([t,e])}}function c(s){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(a=0)),a)try{if(n=1,i&&(r=2&s[0]?i["return"]:s[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,i=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(r=a.trys,!(r=r.length>0&&r[r.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]<r[3])){a.label=s[1];break}if(6===s[0]&&a.label<r[1]){a.label=r[1],r=s;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(s);break}r[2]&&a.ops.pop(),a.trys.pop();continue}s=e.call(t,a)}catch(c){s=[6,c],i=0}finally{n=r=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}Object.create;function m(t,e,n){if(n||2===arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))}Object.create;"function"===typeof SuppressedError&&SuppressedError;var y=n("6397"),v=n("be65"),g=n.n(v),b=["dex-web:access_token","bigdata-web:access_token","access_token"],w=["admin_sso_token"];function x(t){return g.a.get(t)||localStorage.getItem(t)||void 0}function S(){var t,e=w.map(x).find(Boolean),n=I()&&!!e,i=n?e:null!==(t=b.map(x).find(Boolean))&&void 0!==t?t:"",r=n?{"X-Authorization":"Bearer ".concat(i)}:{Authorization:"Bearer ".concat(i)};return{token:i,isUserCenter:n,headers:r}}var I=function(){return!1};function k(t){I=t}(function(){function t(){}t.isLogin=function(){return void 0!==S()},t.getRemeberLoginName=function(){var t=g.a.get("remember_login_name");return t},t.setRemeberLoginName=function(t){t?g.a.set("remember_login_name",t):g.a.remove("remember_login_name")}})();var C=n("554d"),j=n.n(C),D=function(){function t(){}return t.get=function(t){return this.maps.get(t)},t.set=function(t,e){this.maps.set(t,e)},t.has=function(t){return this.maps.has(t)},t.match=function(t){var e=new Array;return this.maps.forEach((function(n,i){i.startsWith(t)&&e.push(n)})),e},t.create=function(t){for(var e,n=[],i=1;i<arguments.length;i++)n[i-1]=arguments[i];return(e=j.a.Activator).createInstance.apply(e,m([t],n,!1))},t.maps=new Map,t}();function T(t){return function(e,n){var i=t;i&&!D.has(i)&&D.set(i,D.create(t)),Object.defineProperty(e,n,{get:function(){return D.get(i)}})}}function O(t,e){return function(n,i){var r=n[i],o="query"===t?E.queryHandler:E.saveHandler,a=n.constructor,s=D.has(a)?D.get(a):D.create(n.constructor);Object.defineProperty(s,i,{get:function(){return o(s,r,e)}}),D.set(a,s)}}var E=function(){function t(){}return t.queryHandler=function(e,n,i){var r=this;return function(){for(var o=[],a=0;a<arguments.length;a++)o[a]=arguments[a];return h(r,void 0,void 0,(function(){var r,a,s,c,l,u,p,d,h,m,y,v,g;return f(this,(function(f){switch(f.label){case 0:r=i,a=r.title,s=void 0===a?"":a,c=r.dataName,l=void 0===c?"":c,u=r.showTip,p=void 0!==u&&u,d=r.showErrorMsg,h=void 0===d||d,f.label=1;case 1:return f.trys.push([1,3,,4]),[4,n.apply(e,o)];case 2:return m=f.sent(),y=void 0,m.hasError?(y=s?"".concat(s,"出错!"):"请求服务失败",y=h?m.message:y,(p||h)&&t.message.error(y),console.error(y),[2,m]):(v=(l?m[l]:m)||"",(!v||v.$isObject()&&v.$isEmpty()||v.$isArray()&&v.$isEmpty()||""===l&&(m.result||[]).$isEmpty())&&(y="".concat(s,"无结果!"),p&&t.message.warning(y),console.warn(y)),[2,v]);case 3:return g=f.sent(),t.catchError(g,s,p,h),[3,4];case 4:return[2]}}))}))}},t.saveHandler=function(e,n,i){var r=this,o=i,a=o.title,s=void 0===a?"":a,c=o.dataName,l=void 0===c?"":c,u=o.showTip,p=void 0!==u&&u,d=o.showErrorMsg,m=void 0===d||d;return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return h(r,void 0,void 0,(function(){var r,o,a,c;return f(this,(function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,n.apply(this||e,i)];case 1:return r=u.sent(),o=void 0,r.hasError?(o=s?"".concat(s,"出错!"):"请求服务失败",o=m?r.message:o,(p||m)&&t.message.error(o),console.error(o),[2,r]):(o=s?"".concat(s,"成功!"):"请求服务成功",p&&t.message.success(o),a=l?r[l]:r,[2,a]);case 2:return c=u.sent(),t.catchError(c,s,p,m),[3,3];case 3:return[2]}}))}))}},t.catchError=function(e,n,i,r){var o,a,s=n?"".concat(n,"出错!"):"请求服务失败";s="ECONNABORTED"===e.code||"ETIMEDOUT"===e.code?n?"".concat(n,"超时!"):"服务请求超时":r&&(null===(a=null===(o=e.response)||void 0===o?void 0:o.data)||void 0===a?void 0:a.message)||s,(i||r)&&t.message.error(s),console.error(s,e)},Object.defineProperty(t,"message",{get:function(){return a.a.prototype.$Message},enumerable:!1,configurable:!0}),t}(),P=(n("68b7"),n("a4d2"),n("d371"),n("cebe")),L=n.n(P),M=window,A=p({},M.commonSetting),N=function(){function t(){this.securityServer=A.securityServer||"",this.adminServer=A.adminServer||""}return t.prototype.url=function(t){return A.baseUrl+t},Object.defineProperty(t.prototype,"config",{get:function(){return{timeout:6e4}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"applicationContext",{get:function(){return j.a.Application.context},enumerable:!1,configurable:!0}),t.prototype._post=function(t,e){return L.a.post(this.url(t),e,this.config).then((function(t){return t.data}))},t.prototype._get=function(t){return L.a.get(this.url(t),this.config).then((function(t){return t.data}))},t.prototype._put=function(t,e){return L.a.put(this.url(t),e,this.config).then((function(t){return t.data}))},t.prototype._delete=function(t){return L.a.delete(this.url(t),this.config).then((function(t){return t.data}))},t.prototype._export=function(t,e){return L.a.post(this.url(t),e,p(p({},this.config),{headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/json; charset=UTF-8","Access-Control-Allow-Origin":"*"},responseType:"arraybuffer"})).then((function(t){var e=new Blob([t.data],{type:"application/vnd.ms-excel"}),n=URL.createObjectURL(e);window.location.href=n}))},t}(),q=N,$=n("98f0"),R=n.n($),_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.getPublicKey=function(){return h(this,void 0,Promise,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this._get("".concat(this.securityServer,"/oauth/extras/public-key"))];case 1:return t=e.sent(),g.a.set("public-key",t.result||"none"),[2,t]}}))}))},e.prototype.login=function(t,e){return h(this,void 0,Promise,(function(){return f(this,(function(n){return[2,this._post("".concat(this.securityServer,"/oauth/extras/token"),{client_id:"unity-client",client_secret:"unity",grant_type:"password",password:this.getEncryptPassword(e),username:t})]}))}))},e.prototype.getEncryptPassword=function(t){var e=g.a.get("public-key");if("none"===e||!e)return t;var n=new R.a;return n.setPublicKey(e),n.encrypt(t)},e.prototype.saveCategory=function(t){return t.id?this._put("/unity/api/category",t):this._post("/unity/api/category",t)},e.prototype.deleteCategory=function(t){return this._delete("/unity/api/category/".concat(t))},e.prototype.getCategoryTree=function(t){return this._get("/unity/category/tree?type=".concat(t))},e.prototype.getEnumByType=function(t){return this._get("/free/display/".concat(t))},e.prototype.getItemListByType=function(t){return this._get("/free/display/".concat(t))},d([O("query",{title:"获取加密需要的公钥"})],e.prototype,"getPublicKey",null),d([O("save",{title:"保存分组",showTip:!0,showErrorMsg:!0})],e.prototype,"saveCategory",null),d([O("save",{title:"删除分组",showTip:!0,showErrorMsg:!0})],e.prototype,"deleteCategory",null),d([O("query",{title:"查询分类树"})],e.prototype,"getCategoryTree",null),d([O("query",{title:"查询枚举数据",showTip:!0,showErrorMsg:!0})],e.prototype,"getEnumByType",null),d([O("query")],e.prototype,"getItemListByType",null),e}(q),F=_,B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.page=function(t){return h(this,void 0,Promise,(function(){return f(this,(function(e){return[2,this._post("/unity/combine-info/page",t)]}))}))},e.prototype.getById=function(t){return h(this,void 0,Promise,(function(){return f(this,(function(e){return[2,this._get("/unity/combine-info/".concat(t))]}))}))},e.prototype.save=function(t){return h(this,void 0,Promise,(function(){return f(this,(function(e){return t.id?[2,this._put("/unity/combine-info",t)]:[2,this._post("/unity/combine-info",t)]}))}))},e.prototype.batchDelete=function(t){return h(this,void 0,Promise,(function(){return f(this,(function(e){return[2,this._post("/unity/combine-info/batch?@state=delete",t)]}))}))},e.prototype.dataModelParams=function(t){return h(this,void 0,Promise,(function(){return f(this,(function(e){return[2,this._post("/unity/data-model/list-request-params",t)]}))}))},e.prototype.apiProjectParams=function(t){return h(this,void 0,Promise,(function(){return f(this,(function(e){return[2,this._post("/unity/api/info/list-request-params",t)]}))}))},e.prototype.testRun=function(t){return h(this,void 0,Promise,(function(){return f(this,(function(e){return[2,this._post("/unity/combine-info/test",t)]}))}))},e.prototype.getDoc=function(t){return this._get("/unity/combine-info/".concat(t,"/doc"))},e.prototype.changeAuthFlag=function(t,e){return h(this,void 0,Promise,(function(){return f(this,(function(n){return[2,this._post("/unity/combine-info/requireauth/changestatus?id=".concat(t,"&authFlag=").concat(e))]}))}))},e.prototype.changeStatus=function(t,e){return h(this,void 0,Promise,(function(){return f(this,(function(n){return[2,this._put("/unity/combine-info/".concat(t,"/change-status?status=").concat(e))]}))}))},e.prototype.copyApi=function(t){return this._post("/unity/combine-info/copy",t)},e.prototype.geHelpDoc=function(){return this._get("/combine-api-help/help.md")},d([O("query",{title:"分页查询数据"})],e.prototype,"page",null),d([O("query",{title:"通过id获取数据详情"})],e.prototype,"getById",null),d([O("save",{title:"保存数据"})],e.prototype,"save",null),d([O("query",{title:"批量删除"})],e.prototype,"batchDelete",null),d([O("query",{title:"批量查询模型请求参数"})],e.prototype,"dataModelParams",null),d([O("query",{title:"批量查询API请求参数"})],e.prototype,"apiProjectParams",null),d([O("query",{title:"接口测试",showTip:!0})],e.prototype,"testRun",null),d([O("get",{title:"获取文档"})],e.prototype,"getDoc",null),d([O("save",{title:"保存数据"})],e.prototype,"changeAuthFlag",null),d([O("save",{title:"保存数据"})],e.prototype,"changeStatus",null),d([O("save",{title:"复制接口"})],e.prototype,"copyApi",null),e}(F),z=B,V=(n("98f4"),function(){function t(){}return t.handlerTreeData=function(e,n,i,r,o){void 0===e&&(e=[]),void 0===i&&(i=""),void 0===r&&(r=n),void 0===o&&(o=!1);var a=[];return e&&e.forEach((function(e){if(e.title=e[n],e.checked=!1,e.selected=!1,e.indeterminate=!1,e.expand=!1,e.children=t.handlerTreeData(e.children,n,i,r),i){var s=e[i];s&&(s=s.map((function(t){return t.title=t[r],t.checked=!1,t.selected=!1,t.indeterminate=!1,t.parentId=e.id,t.parentName=e.title,t})),e.children=(e.children||[]).concat(s))}o&&!e.children.length||a.push(e)})),a},t.handlerTreeData2=function(e,n,i,r,o,a,s){void 0===e&&(e=[]),void 0===i&&(i=""),void 0===r&&(r=n),void 0===o&&(o=!1),void 0===a&&(a=""),void 0===s&&(s="");var c=[];return e&&e.forEach((function(e){if(e.title=e[n],e.checked=!1,e.selected=!1,e.indeterminate=!1,e.expand=!1,e.parentId=e.parentId||a,e.parentName=e.parentName||s,e.children=t.handlerTreeData2(e.children,n,i,r,!1,e.id,e.title),i){var l=e[i];l&&(l=l.map((function(t){return t.title=t[r],t.checked=!1,t.selected=!1,t.indeterminate=!1,t.parentId=e.id,t.parentName=e.title,t})),e.children=(e.children||[]).concat(l))}o&&!e.children.length||c.push(e)})),c},t.treeNodeDirectory=function(e,n){void 0===e&&(e=[]);for(var i="",r=0,o=e;r<o.length;r++){var a=o[r];if(a.id===n)return i=a.name,i;if(a.children&&a.children.length&&(i=t.treeNodeDirectory(a.children,n),i))return a.name+"/"+i}return""},t.treeNodeFatherArray=function(e,n){void 0===e&&(e=[]);for(var i=[],r=0,o=e;r<o.length;r++){var a=o[r];if(a.id===n)return i.push(a),i;if(a.children&&a.children.length&&(i=t.treeNodeFatherArray(a.children,n),i.length>0))return i.unshift(a),i}return[]},t}()),U=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.data=[],e.className=[],e.placeholder="输入关键字查询",e.treeData=[],e.renderData=[],e.keyword="",e.selectItem={},e.expandNodeSet=new Set,e}return u(e,t),e.prototype.onFilter=function(){this.keyword?(this.renderData=this.filterData(this.treeData.$clone()),this.renderData=this.renderData.map((function(t){return t}))):this.renderData=this.treeData.map((function(t){return t}))},e.prototype.match=function(t){var e=this,n=-1!==(t.title||t.name).indexOf(this.keyword),i=!1;return!n&&t.children&&t.children.forEach((function(t){i=e.match(t).matched||e.match(t).childrenMatched||i})),{matched:n,childrenMatched:i}},e.prototype.filterData=function(t){var e=this;if(!t||!Array.isArray(t))return t;var n=t.filter((function(t){return e.match(t).childrenMatched}));return n=n.map((function(t){return t.children&&(t.children=e.filterData(t.children)),t})),n=n.concat(t.filter((function(t){return e.match(t).matched}))),n},e.prototype.clickLeafNode=function(t,e){this.selectItem=e,this.$emit("on-select",this.selectItem)},e.prototype.clickParentNode=function(t,e){this.$set(e,"expand",!e.expand),this.onToggleExpand(e),this.selectItem=e,this.$emit("on-select",this.selectItem)},e.prototype.onLocationSelect=function(t,e){void 0===e&&(e=!0),this.selectItem=t,this.$emit("on-select",this.selectItem,e)},e.prototype.initTreeData=function(t){t&&(this.treeData=t,this.treeData.length&&"virtual_root_directory"===this.treeData[0].id&&this.onToggleExpand(this.treeData[0]),this.renderData=this.treeData.map((function(t){return t})))},e.prototype.watchTaskID=function(t){if(t){var e=V.treeNodeFatherArray(this.treeData,t);if(e.length>0)for(var n=0;n<e.length;n++)n===e.length-1?this.onLocationSelect(e[n],!1):(e[n].expand=!0,this.onToggleExpand(e[n]));this.$nextTick((function(){for(var t=document.getElementsByClassName("ivu-tree-title-selected"),n=null,i=0;i<t.length;i++)if(e.length&&t[i].innerText===e[e.length-1].name){n=t[i];break}t.length&&setTimeout((function(){n.scrollIntoView({behavior:"smooth",block:"center"})}),200)}))}},e.prototype.renderContent=function(t,e){var n=this,i=(e.root,e.node,e.data),r=!!i.children;return this.$set(i,"selected",this.selectItem.id===i.id),t("div",{class:"common-tree-node"},[t("i",r?{class:this.isTreeList?"iconfont icon-mulushu":"iconfont icon-bumenkaohe",on:{click:function(t){r?n.clickParentNode(t,i):n.clickLeafNode(t,i)}}}:{class:"iconfont icon-file",on:{click:function(t){r?n.clickParentNode(t,i):n.clickLeafNode(t,i)}}}),t("p",{on:{click:function(t){r?n.clickParentNode(t,i):n.clickLeafNode(t,i)}}},i.title)])},e.prototype.onToggleExpand=function(t){t.expand?this.expandNodeSet.add(t.id):this.expandNodeSet.delete(t.id)},e.prototype.initSelectItemChange=function(){this.selectItem=this.initSelectItem,this.$forceUpdate()},d([Object(y["config"])({default:null})],e.prototype,"propData",void 0),d([Object(y["config"])({default:function(){return{}}})],e.prototype,"initSelectItem",void 0),d([Object(y["config"])({default:!1})],e.prototype,"isTreeList",void 0),d([Object(y["config"])({default:""})],e.prototype,"commonTaskCategoryID",void 0),d([Object(y["watch"])("data",{immediate:!0,deep:!1}),Object(y["watch"])("propData",{immediate:!0,deep:!1})],e.prototype,"initTreeData",null),d([Object(y["watch"])("commonTaskCategoryID",{immediate:!1})],e.prototype,"watchTaskID",null),d([Object(y["watch"])("initSelectItem")],e.prototype,"initSelectItemChange",null),e=d([Object(y["component"])({template:n("6d46"),components:{}})],e),e}(y["Component"]),H=U,G=(n("58d2"),n("b61c"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.onClickNode=function(t){this.data.children&&!this.canChooseFolder&&(this.$set(this.data,"expand",!this.data.expand),t.stopPropagation()),this.data.selected&&t.stopPropagation()},d([Object(y["config"])({default:function(){return{}}})],e.prototype,"data",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"canChooseFolder",void 0),e=d([Object(y["component"])({template:n("d30a")})],e),e}(y["Component"])),K=G,Q=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.tree=[],e.inputValue="",e.visible=!1,e.current={},e}return u(e,t),e.prototype.onValueChange=function(t){if(!t)return this.inputValue="",void(this.current={});var e=this.getNodeById(this.value,this.tree)||{};this.current=e,this.inputValue=V.treeNodeDirectory(this.tree,this.value)||""},e.prototype.renderContent=function(t,e){e.root,e.node;var n=e.data;return this.$set(n,"selected",this.current.id===n.id),t(K,{props:{data:n,canChooseFolder:this.canChooseFolder}})},e.prototype.onTreeDataChange=function(){this.tree=V.handlerTreeData(this.treeData.$clone(),"name",this.leafName,void 0,this.filterEmpty),this.tree&&1===this.tree.length&&"virtual_root_directory"===this.tree[0].id&&(this.tree[0].expand=!0),this.onValueChange(this.value)},e.prototype.getNodeById=function(t,e){for(var n=void 0,i=0,r=e;i<r.length;i++){var o=r[i];if(o.id===t)return o;if(o.children&&o.children.length&&(n=this.getNodeById(t,o.children),n))return n}},e.prototype.onInputChange=function(){this.visible=!0},e.prototype.onSelectChange=function(t,e){this.$emit("input",e.id),this.$emit("on-select",e),this.visible=!1},e.prototype.onClear=function(){this.$emit("input",""),this.$emit("on-select",{})},d([Object(y["config"])({type:String,default:""})],e.prototype,"value",void 0),d([Object(y["config"])({type:Array,default:function(){return[]}})],e.prototype,"treeData",void 0),d([Object(y["config"])({default:"请输入"})],e.prototype,"placeholder",void 0),d([Object(y["config"])({default:"children"})],e.prototype,"leafName",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"filterEmpty",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"readonly",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"canChooseFolder",void 0),d([Object(y["watch"])("value",{immediate:!0})],e.prototype,"onValueChange",null),d([Object(y["watch"])("treeData",{deep:!1,immediate:!0})],e.prototype,"onTreeDataChange",null),e=d([Object(y["component"])({template:n("a1f0"),components:{}})],e),e}(y["Component"]),J=Q,W=(n("9fb0"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.saveNode=function(t){return t.id?this._put("/unity/category",t):this._post("/unity/category",t)},e.prototype.deleteTreeNodeById=function(t){return this._delete("/unity/combine-info/category/".concat(t))},e.prototype.exportModel=function(t){return L.a.post(this.url("/unity/combine-info/export"),t,{headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/json; charset=UTF-8","Access-Control-Allow-Origin":"*"},responseType:"arraybuffer"}).then((function(t){var e=new Blob([t.data],{type:"application/json"}),n=URL.createObjectURL(e),i=document.createElement("a");i.href=n,i.download=decodeURI("data-model.json"),i.style.display="none",document.body.appendChild(i),i.target="_blank",i.click(),i.parentNode.removeChild(i),window.URL.revokeObjectURL(n)}))},e.prototype.isCanExportModel=function(t){return this._post("/unity/combine-info/export",t)},e.prototype.confirmImport=function(t){return this._post("/unity/combine-info/import/confirm?key=".concat(t))},e.prototype.cancelImport=function(t){return this._post("/unity/combine-info/import/cancel?key=".concat(t))},d([O("save",{title:"保存",showTip:!1})],e.prototype,"saveNode",null),d([O("delete",{title:"删除",showTip:!1})],e.prototype,"deleteTreeNodeById",null),d([O("save",{title:"导入接口数据",showTip:!0,showErrorMsg:!0})],e.prototype,"confirmImport",null),e}(F)),Y=W,X=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.categoryData={},e.rules={name:[{required:!0,message:"请输入分组名称",trigger:"blur,change"}]},e}return u(e,t),Object.defineProperty(e.prototype,"show",{get:function(){return this.value},set:function(t){this.$emit("input",t)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isEdit",{get:function(){return this.data.id},enumerable:!1,configurable:!0}),e.prototype.onValueChange=function(t){t||this.$refs.addForm.resetFields()},e.prototype.modalShow=function(t){!1===t?this.categoryData={}:this.categoryData.id=this.data.parentId},e.prototype.selectCategory=function(t){this.categoryData=t,this.data.parentId="virtual_root_directory"===this.categoryData.id?"":this.categoryData.id},e.prototype.onCancel=function(){this.show=!1},e.prototype.onSave=function(){var t=this;this.$refs.addForm.validate((function(e){e&&t.doSave()}))},e.prototype.doSave=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.isEdit&&this.data.id===this.data.parentId?[2,this.$message.warning("所属分组不能选中自身")]:("virtual_root_directory"===this.data.parentId&&(this.data.parentId=""),[4,this.service.saveNode(this.data)]);case 1:return t=e.sent(),t&&!t.hasError&&(this.onCancel(),this.$emit("on-refresh")),[2]}}))}))},d([T(Y)],e.prototype,"service",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"value",void 0),d([Object(y["config"])({type:Array,default:[]})],e.prototype,"categories",void 0),d([Object(y["config"])({default:function(){return{name:"",type:"api_combine",parentId:null}}})],e.prototype,"data",void 0),d([Object(y["watch"])("value")],e.prototype,"onValueChange",null),d([Object(y["watch"])("show")],e.prototype,"modalShow",null),e=d([Object(y["component"])({template:n("3b85"),components:{"u-tree-selector":J}})],e),e}(y["Component"]),Z=X,tt=(n("de03"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.actions=[{name:"add",text:"新增",icon:"add-folder"},{name:"edit",text:"编辑"},{name:"delete",text:"删除"},{name:"import",text:"导入",icon:"import"},{name:"export",text:"导出",icon:"export"}],e}return u(e,t),e.prototype.onClick=function(t){this.$emit("on-click",t,this.data)},e.prototype.onClickNode=function(t){this.$set(this.data,"expand",!this.data.expand),this.$emit("on-expand",this.data),this.$emit("on-select",this.data),this.data.selected&&t.stopPropagation()},Object.defineProperty(e.prototype,"uploadAction",{get:function(){return A.baseUrl+"/unity/combine-info/import"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uploadParams",{get:function(){return{categoryId:this.data.id}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){var t=S().headers;return t},enumerable:!1,configurable:!0}),e.prototype.onSuccess=function(t,e){this.$emit("on-import-success",t,e)},e.prototype.onBeforeUpload=function(t){return-1!==t.name.indexOf(" ")?(this.$Message.warning("文件名不能包含空格"),!1):-1===t.name.indexOf("%")||(this.$Message.warning("文件名不能包含符号%"),!1)},e.prototype.onFormatError=function(t){this.$Message.warning("文件".concat(t.name,"格式错误"))},d([Object(y["config"])({default:function(){return Object.create(null)}})],e.prototype,"data",void 0),d([Object(y["config"])({default:""})],e.prototype,"importUrl",void 0),e=d([Object(y["component"])({template:n("07ab")})],e),e}(y["Component"])),et=tt,nt=(n("44c1"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.childService=new z,e.showAddTreeNodeModal=!1,e.type="api_combine",e.tempNode={name:"",type:e.type,parentId:null},e.tempData=[],e.showImportModal=!1,e.importResult={},e.columns=[{type:"index",title:"序号",align:"left",width:80},{title:"名称",align:"left",key:"name",tooltip:!0},{title:"编码",align:"left",key:"code",tooltip:!0},{title:"说明",align:"left",key:"remark",tooltip:!0}],e}return u(e,t),Object.defineProperty(e.prototype,"uploadAction",{get:function(){return A.baseUrl+"/unity/combine-info/import"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){var t=S().headers;return t},enumerable:!1,configurable:!0}),e.prototype.onImportConfirm=function(){return h(this,void 0,void 0,(function(){var t,e;return f(this,(function(n){switch(n.label){case 0:return this.importResult.total!==this.importResult.duplicateNum?[3,2]:[4,this.service.cancelImport(this.importResult.id)];case 1:return t=n.sent(),t&&!t.hasError?(this.$message.success("导入接口数据成功!"),this.showImportModal=!1,[2]):(this.$Message.error(t.message||"导入接口数据失败!"),[2]);case 2:return[4,this.service.confirmImport(this.importResult.id)];case 3:return e=n.sent(),e&&!e.hasError?(this.showImportModal=!1,this.queryTreeData(),[2]):[2]}}))}))},e.prototype.onImportCancel=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.cancelImport(this.importResult.id)];case 1:return t=e.sent(),t&&!t.hasError?(this.$message.success("取消成功"),this.showImportModal=!1,[2]):(this.$Message.error(t.message||"取消异常"),[2])}}))}))},e.prototype.onSuccess=function(t,e){if(t&&!t.hasError)return t.result?(this.showImportModal=!0,void(this.importResult=t.result)):(this.$Message.success("导入成功"),void this.queryTreeData());this.$Message.error(t.message||"导入出错,请稍后再试")},e.prototype.onBeforeUpload=function(t){return-1!==t.name.indexOf(" ")?(this.$Message.warning("文件名不能包含空格"),!1):-1===t.name.indexOf("%")||(this.$Message.warning("文件名不能包含符号%"),!1)},e.prototype.onFormatError=function(t){this.$Message.warning("文件".concat(t.name,"格式错误"))},e.prototype.onModelExport=function(t){return h(this,void 0,void 0,(function(){var e,n;return f(this,(function(i){switch(i.label){case 0:return 0===this.data.length?[2]:(e=Object.create(null),e={categoryId:t||null},[4,this.service.isCanExportModel(e)]);case 1:return n=i.sent(),!n||n.hasError?[3,3]:[4,this.service.exportModel(e)];case 2:return i.sent(),[3,4];case 3:n&&n.hasError&&this.$message.error(n.message),i.label=4;case 4:return[2]}}))}))},e.prototype.renderContent=function(t,e){var n=this,i=(e.root,e.node,e.data);return this.$set(i,"selected",this.selectItem.id===i.id),this.$set(i,"expand",this.expandNodeSet.has(i.id)),t(et,{props:{data:i},on:{"on-click":function(t,e){n.handleNodeOprate(t,e)},"on-select":function(t){n.onSelect(t)},"on-import-success":function(t,e){n.onSuccess(t,e)},"on-expand":function(t){n.onToggleExpand(t)}}})},e.prototype.handleNodeOprate=function(t,e){switch(t){case"add":this.onAddChildNode(e);break;case"edit":this.onEditNode(e);break;case"delete":this.onDeleteNode(e);break;case"export":this.onModelExport(e.id);break}},e.prototype.onSelect=function(t,e){void 0===e&&(e=!0),this.selectItem=t,this.$emit("on-select",this.selectItem,e)},e.prototype.initSelectItemChange=function(){this.selectItem=this.initSelectItem,this.selectItem.id&&this.onSelect(this.selectItem)},e.prototype.watchTaskID=function(t){if(t){var e=V.treeNodeFatherArray(this.data,t);if(e.length>0)for(var n=0;n<e.length;n++)n===e.length-1?this.onSelect(e[n],!1):(e[n].expand=!0,this.onToggleExpand(e[n]));this.$nextTick((function(){var t=document.getElementsByClassName("ivu-tree-title-selected");t.length&&setTimeout((function(){t[0].scrollIntoView({behavior:"smooth",block:"center"})}),200)}))}},e.prototype.onAddTreeNode=function(){this.tempNode={name:"",type:this.type},this.showAddTreeNodeModal=!0},e.prototype.onAddChildNode=function(t){this.tempNode={parentId:t.id,name:"",type:this.type},this.showAddTreeNodeModal=!0},e.prototype.onEditNode=function(t){this.tempNode=p({},t),this.showAddTreeNodeModal=!0},e.prototype.onDeleteNode=function(t){return h(this,void 0,void 0,(function(){var e,n=this;return f(this,(function(i){switch(i.label){case 0:return t.children&&t.children.length?[2,this.$message.warning("无法删除非空文件夹!")]:[4,this.getChildren(t)];case 1:return e=i.sent(),e?[2,this.$message.warning("无法删除非空文件夹!")]:(this.$Modal.confirm({title:"确定要删除【".concat(t.name,"】吗?"),onOk:function(){return h(n,void 0,void 0,(function(){return f(this,(function(e){switch(e.label){case 0:return[4,this.service.deleteTreeNodeById(t.id)];case 1:return e.sent(),this.queryTreeData(),[2]}}))}))}}),[2])}}))}))},e.prototype.getChildren=function(t){return h(this,void 0,void 0,(function(){var e,n;return f(this,(function(i){switch(i.label){case 0:return e={condition:{categoryId:t.id}},[4,this.childService.page(e)];case 1:return n=i.sent(),[2,Promise.resolve(n&&!n.hasError&&n.totalCount>0)]}}))}))},e.prototype.queryTreeData=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getCategoryTree(this.type)];case 1:return t=e.sent(),t&&!t.hasError&&(this.tempData=t.result||[],this.tempData.length>0?(this.tempData.forEach((function(t){t.parentId||(t.parentId="virtual_root_directory")})),this.data=[p(p({},this.tempData[0]),{id:"virtual_root_directory",children:this.tempData,jobs:[],name:"全部",expand:!0,parentId:null,parentName:null})],this.onToggleExpand(this.data[0])):(this.data=[{id:"virtual_root_directory",children:this.tempData,jobs:[],name:"全部",expand:!0,parentId:null,parentName:null}],this.onToggleExpand(this.data[0])),this.$emit("on-tree-data",this.tempData)),!this.initSelectItem.id&&this.data.length&&(this.$set(this.data[0],"selected",!0),this.onSelect(this.data[0])),[2]}}))}))},e.prototype.mounted=function(){this.queryTreeData()},d([T(Y)],e.prototype,"service",void 0),d([Object(y["config"])({default:""})],e.prototype,"taskCategoryID",void 0),d([Object(y["watch"])("initSelectItem",{immediate:!0})],e.prototype,"initSelectItemChange",null),d([Object(y["watch"])("taskCategoryID",{immediate:!1})],e.prototype,"watchTaskID",null),e=d([Object(y["component"])({template:n("46d3"),components:{"u-add-node":Z}})],e),e}(H)),it=nt,rt=n("a93c"),ot=(n("3497"),n("9b65"),'<style>body { font-family: Arial, sans-serif; line-height: 1.6;margin: 20px;color: #333;background-color: #fff;} h1, h2, h3, h4,h5,h6 { font-weight: bold; margin-bottom: 20px; color: #333; border-bottom: 2px solid #ddd; padding-bottom: 10px;} h1 { font-size: 2.5em;} h2 { font-size: 2em; } h3 {font-size: 1.75em;} h4 {font-size: 1.5em;} h5 {font-size: 1.25em;} h6 {font-size: 1em;} p { margin-bottom: 1em;} ul, ol { margin-bottom: 1em; padding-left: 40px;} li {margin-bottom: 0.5em;} a { color: #0366d6; text-decoration: none;} a:hover {text-decoration: underline;} pre, code { background-color: #f0f0f0; padding: 5px; font-family: Consolas, "Courier New", monospace;} pre { padding: 10px; overflow-x: auto;} blockquote { border-left: 4px solid #dfe2e5; padding: 10px 20px; margin: 20px 0; background-color: #f9f9f9; color: #555;} table { width: 100%; border-collapse: collapse; margin-bottom: 20px;} th,td { border: 1px solid #ddd; padding: 8px; text-align: left;} th { background-color: #f3f3f3; font-weight: bold;} tr:nth-child(even) { background-color: #f9f9f9;} img { max-width: 100%; height: auto; display: block; margin: 20px 0;} @media print { body {font-size: 12pt;} table { border: 1px solid black;} th, td {border: 1px solid black; } pre,code { background-color: #f0f0f0;} a { color: black; text-decoration: none;} h1, h2, h3, h4, h5, h6 { color: black; border: none;} }</style>'),at=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.markdownOption={},e.render="",e.toolbars={},e}return u(e,t),Object.defineProperty(e.prototype,"show",{get:function(){return this.value},set:function(t){this.$emit("input",t)},enumerable:!1,configurable:!0}),e.prototype.onSave=function(t,e){var n=document.getElementById("printf");n.contentDocument.write(e),n.contentDocument.close(),n.contentWindow.print()},e.prototype.onChange=function(t,e){this.render=ot+e},e.prototype.onMenuClick=function(t){"pdf"===t?this.onSavePdf():this.onSaveHtml()},e.prototype.onSavePdf=function(){var t=document.getElementById("printf");t.contentDocument.write(this.render),t.contentDocument.close(),t.contentWindow.print()},e.prototype.onSaveHtml=function(){var t="接口文档";try{var e=this.doc.indexOf("#"),n=this.doc.indexOf("\n");t=this.doc.substring(e,n)}catch(o){}var i=document.createElement("a");i.download="".concat(t,".html"),i.style.display="none";var r=new Blob([this.render],{type:"text/html"});i.href=window.URL.createObjectURL(r),document.body.appendChild(i),i.click(),document.body.removeChild(i)},e.prototype.onOk=function(){this.show=!1},d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"value",void 0),d([Object(y["config"])({type:String})],e.prototype,"doc",void 0),e=d([Object(y["component"])({name:"data-model-doc",template:n("45bb"),components:{"mavon-editor":rt["mavonEditor"]}})],e),e}(y["View"]),st=at,ct=(n("da9a"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.split=.2,e.initNode={},e.currentNode=Object.create(null),e.treeData=[],e.showCopyModal=!1,e.copyData={},e.categoryData={},e.list=[],e.selection=[],e.isContainsPublished=!1,e.columns=[{type:"selection",align:"center",width:80*window.pageRatio},{title:"名称",key:"name",align:"left",class:"STRING",ellipsis:!0,tooltip:!0,width:225*window.pageRatio,resizable:!0},{title:"编码",key:"code",align:"left",class:"STRING",ellipsis:!0,tooltip:!0,width:225*window.pageRatio,resizable:!0},{title:"描述",key:"description",align:"left",class:"STRING",ellipsis:!0,tooltip:!0,width:225*window.pageRatio,resizable:!0},{title:"是否需要认证",align:"left",slot:"authFlag",width:160*window.pageRatio,resizable:!0},{title:"发布状态",align:"left",slot:"status",width:180*window.pageRatio,resizable:!0},{title:"接口文档",align:"left",slot:"doc",width:120*window.pageRatio,resizable:!0},{title:"操作",align:"left",slot:"operates",width:180*window.pageRatio}],e.paging={pageIndex:1,pageSize:10,totalCount:0},e.loading=!1,e.doc="",e.docShow=!1,e.formData={name:void 0,code:void 0},e.taskCategoryID="",e}return u(e,t),Object.defineProperty(e.prototype,"form",{get:function(){return this.$refs["searchForm"]},enumerable:!1,configurable:!0}),e.prototype.mounted=function(){var t=this.$route.query.categoryId;t&&(this.initNode={id:t})},e.prototype.onNodeSelect=function(t,e){e&&(this.taskCategoryID="",this.currentNode=t,this.onQuery())},e.prototype.onReset=function(){this.form.resetFields(),this.onQuery()},e.prototype.onQuery=function(){this.$set(this.paging,"pageIndex",1),this.doQuery()},e.prototype.doQuery=function(){var t,e,n,i;return h(this,void 0,void 0,(function(){var r,o;return f(this,(function(a){switch(a.label){case 0:if(!(null===(t=this.currentNode)||void 0===t?void 0:t.id))return[2];a.label=1;case 1:return a.trys.push([1,,3,4]),this.loading=!0,r=Object.create(null),r.condition=p(p({},this.formData),{categoryId:"virtual_root_directory"===(null===(e=this.currentNode)||void 0===e?void 0:e.id)?"":this.currentNode.id}),r.paging=this.paging,[4,this.service.page(r)];case 2:return o=a.sent(),((null===o||void 0===o?void 0:o.result)||[]).forEach((function(t){t._disabled="PUBLISHED"===t.status})),this.list=null!==(n=o&&o.result)&&void 0!==n?n:[],this.paging.totalCount=null!==(i=o&&o.totalCount)&&void 0!==i?i:0,[3,4];case 3:return this.loading=!1,[7];case 4:return[2]}}))}))},e.prototype.onPageIndexChange=function(t){this.$set(this.paging,"pageIndex",t),this.doQuery()},e.prototype.onPageSizeChange=function(t){this.$set(this.paging,"pageIndex",1),this.$set(this.paging,"pageSize",t),this.doQuery()},e.prototype.onDetail=function(t){var e=null!==t&&void 0!==t?t:{},n=e.id,i=e.categoryId;this.onAdd(n,i,!1)},e.prototype.onEdit=function(t){var e=null!==t&&void 0!==t?t:{},n=e.id,i=e.categoryId;this.onAdd(n,i,!0)},e.prototype.onAdd=function(t,e,n){var i;return void 0===n&&(n=!0),h(this,void 0,void 0,(function(){var r;return f(this,(function(o){return"virtual_root_directory"!==(null===(i=this.currentNode)||void 0===i?void 0:i.id)||t?(this.$router.push({replace:!0,name:"combine-add",query:(r={isEdit:n?"1":"0",id:null!==t&&void 0!==t?t:"",categoryId:e||this.currentNode.id},r["_".concat(t?"edit":"add")]=Date.now().toString(),r)}),[2]):[2]}))}))},e.prototype.onDelete=function(t){return h(this,void 0,void 0,(function(){var e,n;return f(this,(function(i){switch(i.label){case 0:return e=t.id,e?[4,this.service.batchDelete([e])]:[2];case 1:return n=i.sent(),n&&!n.hasError&&this.onQuery(),[2]}}))}))},e.prototype.onBatchDelete=function(){var t=this,e=this.selection.map((function(t){return t.id}));e.length&&!this.isContainsPublished&&this.$modal.confirm({title:"将批量删除所选内容,是否继续?",onOk:function(){return h(t,void 0,void 0,(function(){var t;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.batchDelete(e)];case 1:return t=n.sent(),t&&!t.hasError&&(this.onQuery(),this.selection=[]),[2]}}))}))}})},e.prototype.onCopy=function(t){var e=t.$clone();this.copyData={id:e.id,code:e.code,name:e.name,categoryId:e.categoryId},this.categoryData.id=e.categoryId,this.copyData.name+="_copy",this.copyData.code+="_copy",this.showCopyModal=!0},e.prototype.onCopyConfirm=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.copyData.name?this.copyData.code?this.copyData.categoryId?[4,this.service.copyApi(this.copyData)]:[2,this.$message.warning("请选择分组")]:[2,this.$message.warning("请填写接口编码")]:[2,this.$message.warning("请填写接口名称")];case 1:if(t=e.sent(),t&&!t.hasError)this.copyData={},this.categoryData={},this.showCopyModal=!1,this.doQuery();else if(t&&t.hasError&&t.message)return[2,this.$message.error(t.message)];return[2]}}))}))},e.prototype.onCopyCancel=function(){this.copyData={},this.categoryData={},this.showCopyModal=!1},e.prototype.onTreeData=function(t){this.treeData=t.$clone()},e.prototype.selectCategory=function(t){this.categoryData=t,this.copyData.categoryId=t.id},e.prototype.onAuthFlagChange=function(t,e,n){return h(this,void 0,void 0,(function(){var n,i;return f(this,(function(r){switch(r.label){case 0:return n=e.id,n?[4,this.service.changeAuthFlag(n,t?1:0)]:[2];case 1:return i=r.sent(),(null===i||void 0===i?void 0:i.hasError)||(e.authFlag=t?1:0),[2]}}))}))},e.prototype.onStatusChange=function(t,e,n){return h(this,void 0,void 0,(function(){var n,i;return f(this,(function(r){switch(r.label){case 0:return n=e.id,n?[4,this.service.changeStatus(n,t?1:0)]:[2];case 1:return i=r.sent(),(null===i||void 0===i?void 0:i.hasError)||(e.status=t?"PUBLISHED":"NOT_PUBLISHED"),[2]}}))}))},e.prototype.onSelectChange=function(t){this.selection=t,this.isContainsPublished=!!this.selection.find((function(t){return"PUBLISHED"===t.status}))},e.prototype.onOpenDoc=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return(null===t||void 0===t?void 0:t.id)?[4,this.service.getDoc(t.id)]:[3,2];case 1:e=n.sent(),(null===e||void 0===e?void 0:e.hasError)||(this.doc=e.result,this.docShow=!0),n.label=2;case 2:return[2]}}))}))},e.prototype.activated=function(){this.currentNode&&this.onQuery()},e.prototype.onRowClick=function(t,e){"virtual_root_directory"===this.currentNode.id&&(this.taskCategoryID=t.categoryId)},d([T(z)],e.prototype,"service",void 0),e=d([Object(y["component"])({name:"ProjectCombineManage",template:n("ccf6"),components:{"u-type-tree":it,"u-data-model-doc":st,"u-tree-selector":J}})],e),e}(y["View"])),lt=ct,ut=(n("2380"),n("ce8f")),pt=n("01a6"),dt=n("8380"),ht=n.n(dt),ft=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.option={showPrintMargin:!1,enableEmmet:!0,enableBasicAutocompletion:!0,enableSnippets:!0,enableLiveAutocompletion:!0,showFoldWidgets:!1,wrap:!0,fontSize:16,fixedWidthGutter:!0},e}return u(e,t),e.prototype.editorInit=function(t){n("1cdf"),n("9842"),n("5217"),n("8214"),n("64d5");var e=this,i=n("92ad"),r=i.acequire("ace/ext/language_tools");r.addCompleter({getCompletions:function(t,n,i,r,o){e.setCompletions(t,n,i,r,o)}}),this.$emit("inited",t)},e.prototype.setCompletions=function(t,e,n,i,r){return 0===i.length?r(null,[]):r(null,this.diyKeywordList)},d([Object(pt["PropSync"])("model",{default:""})],e.prototype,"code",void 0),d([Object(ut["config"])({default:"groovy"})],e.prototype,"lang",void 0),d([Object(ut["config"])({type:Array,default:function(){return[]}})],e.prototype,"diyKeywordList",void 0),e=d([Object(ut["component"])({template:n("9915"),components:{editor:ht.a}})],e),e}(ut["Component"]),mt=ft,yt=(n("ca1f"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.editor={},e}return u(e,t),e.prototype.onEditorInited=function(t){this.editor=t,this.editor.setReadOnly(this.readOnly)},e.prototype.onReadOnlyChange=function(){this.editor.setReadOnly(this.readOnly)},d([Object(y["propSync"])("data")],e.prototype,"script",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"readOnly",void 0),d([Object(y["watch"])("readOnly")],e.prototype,"onReadOnlyChange",null),e=d([Object(y["component"])({template:n("e718"),components:{"u-editor":mt}})],e),e}(y["Component"])),vt=yt,gt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.dataModel=function(t){return this._post("/unity/data-model/page",t)},e.prototype.getMavonDoc=function(t){return this._get("/unity/data-model/".concat(t,"/render"))},e.prototype.getDataModelTree=function(){return this._get("/unity/data-model/tree")},d([O("post",{title:"分页查询数据模型"})],e.prototype,"dataModel",null),d([O("get",{title:"获取文档"})],e.prototype,"getMavonDoc",null),d([O("query",{title:"查询分类树"})],e.prototype,"getDataModelTree",null),e}(F),bt=gt,wt=(n("e6c9"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.condition={code:"",name:""},e.columns=[{type:"selection",title:"全选",align:"center",width:60},{title:"名称",align:"left",key:"name",tooltip:!0},{title:"编码",align:"left",key:"code",tooltip:!0},{title:"数据源",align:"left",key:"sourceName",tooltip:!0},{title:"是否开启缓存",align:"left",slot:"enableCache",width:135},{title:"过期时间(s)",align:"left",key:"expireSeconds",width:135},{title:"描述",align:"left",key:"description",tooltip:!0},{title:"接口文档",align:"left",slot:"doc",width:110}],e.doc="",e.docShow=!1,e}return u(e,t),e.prototype.mounted=function(){},e.prototype.init=function(){},e.prototype.onSearch=function(){this.$emit("on-search",this.condition)},e.prototype.onEmpty=function(){this.condition.code="",this.condition.name="",this.$emit("on-search",this.condition)},e.prototype.onSelected=function(t){this.$emit("on-selection-change",t)},e.prototype.onPageIndexChange=function(t){this.$emit("on-page-index-change",t)},e.prototype.onPageSizeChange=function(t){this.$emit("on-page-size-change",t)},e.prototype.onOpenDoc=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return(null===t||void 0===t?void 0:t.typeId)?[4,this.service.getMavonDoc(t.typeId)]:[3,2];case 1:e=n.sent(),(null===e||void 0===e?void 0:e.hasError)||(this.doc=e.result,this.docShow=!0),n.label=2;case 2:return[2]}}))}))},e.prototype.onRowClick=function(t,e){this.$emit("on-row-click",t.categoryId)},d([T(bt)],e.prototype,"service",void 0),d([Object(y["config"])({default:function(){return[]}})],e.prototype,"data",void 0),d([Object(pt["PropSync"])("paging",{default:function(){return null}})],e.prototype,"page",void 0),e=d([Object(y["component"])({template:n("82af"),components:{"u-data-model-doc":st}})],e),e}(y["View"])),xt=wt,St=(n("a121"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.splitHorizontal=.25,e.splitVertical=.6,e.isLoading=!1,e.taskCategoryID="",e.treeData=[],e.tempData=[],e.currentNode={},e.initNode={},e.condition={categoryId:"",code:"",name:""},e.paging={totalCount:0,pageIndex:1,pageSize:10},e.tableData=[],e.collapse=!1,e.checkedData=[],e.lastCheckedData=[],e.columns=[{title:"编码",align:"left",key:"code",class:"STRING",ellipsis:!0,tooltip:!0},{title:"名称",align:"left",key:"name",class:"STRING",ellipsis:!0,tooltip:!0},{title:"描述",align:"left",key:"description",class:"STRING",ellipsis:!0,tooltip:!0},{title:"操作",key:"operates",slot:"operates",align:"left",width:80}],e}return u(e,t),Object.defineProperty(e.prototype,"checkedLength",{get:function(){return this.checkedData.length},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this.value},set:function(t){this.$emit("input",t)},enumerable:!1,configurable:!0}),e.prototype.onShowChange=function(t){if(!this.show)return this.tableData=[],void(this.checkedData=[]);var e=this.data.$clone();this.checkedData=e.map((function(t){return p(p({},t),{code:t.typeCode,description:t.typeDescription})})),this.init()},e.prototype.init=function(){this.getTreeData()},e.prototype.getTreeData=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.isLoading=!0,[4,this.service.getDataModelTree()];case 1:return t=e.sent(),this.isLoading=!1,t&&!t.hasError&&(this.tempData=V.handlerTreeData(t.result||[],"name"),this.tempData.length>0?(this.tempData.forEach((function(t){t.parentId||(t.parentId="virtual_root_directory")})),this.treeData=[p(p({},this.tempData[0]),{id:"virtual_root_directory",children:this.tempData,jobs:[],name:"全部",title:"全部",expand:!0,parentId:null,parentName:null})]):this.treeData=[{id:"virtual_root_directory",children:this.tempData,jobs:[],name:"全部",title:"全部",expand:!0,parentId:null,parentName:null}],this.treeData.length&&(this.initNode=this.treeData[0],this.onSelect(this.treeData[0]))),[2]}}))}))},e.prototype.onSelect=function(t,e){void 0===e&&(e=!0),e&&(this.taskCategoryID="",this.currentNode=t,this.condition.categoryId="virtual_root_directory"===this.currentNode.id?"":this.currentNode.id,this.getTableData())},e.prototype.onSearch=function(t){this.condition=t,this.condition.categoryId="virtual_root_directory"===this.currentNode.id?"":this.currentNode.id,this.paging.pageIndex=1,this.getTableData()},e.prototype.getTableData=function(){return h(this,void 0,void 0,(function(){var t,e,n=this;return f(this,(function(i){switch(i.label){case 0:return t=Object.create(null),t.condition=this.condition,t.paging=this.paging,[4,this.service.dataModel(t)];case 1:return e=i.sent(),e&&!e.hasError&&(this.tableData=(e.result||[]).map((function(t){return p(p({},t),{id:void 0,type:"MODEL",typeId:t.id,_checked:n.checkedData.findIndex((function(e){return e.typeId===t.id}))>-1})})),this.lastCheckedData=this.checkedData.filter((function(t){return-1===n.tableData.findIndex((function(e){return e.typeId===t.typeId}))})),this.paging.totalCount=e.totalCount),[2]}}))}))},e.prototype.onPageIndexChange=function(t){this.paging.pageIndex=t,this.getTableData()},e.prototype.onPageSizeChange=function(t){this.paging.pageSize=t,this.getTableData()},e.prototype.onSelectionChange=function(t){t.forEach((function(t){return t._checked=!0})),this.tableData.forEach((function(e){for(var n=0,i=t;n<i.length;n++){var r=i[n];if(e.typeId===r.typeId)return e._checked=!0}return e._checked=!1})),this.checkedData=m(m([],this.lastCheckedData,!0),t,!0)},e.prototype.onBatchDelete=function(){this.checkedData=[],this.lastCheckedData=[],this.tableData=this.tableData.map((function(t){return p(p({},t),{_checked:!1})}))},e.prototype.onDelete=function(t){this.checkedData=this.checkedData.filter((function(e){return e.typeId!==t.typeId})),this.lastCheckedData=this.lastCheckedData.filter((function(e){return e.typeId!==t.typeId})),this.tableData.forEach((function(e){e.typeId===t.typeId&&(e._checked=!1)}))},e.prototype.onClickCollapse=function(){this.collapse=!this.collapse,this.splitVertical=this.collapse?"".concat(.7*window.innerHeight-40*window.pageRatio-1,"px"):.6},e.prototype.onCancel=function(){this.show=!1},e.prototype.onSave=function(){var t=this,e=this.checkedData.filter((function(e){return-1===t.data.findIndex((function(t){return t.typeId===e.typeId}))})),n=this.data.filter((function(e){return-1===t.checkedData.findIndex((function(t){return t.typeId===e.typeId}))}));this.$emit("save","MODEL",e,n)},e.prototype.onRowClick=function(t){"virtual_root_directory"===this.currentNode.id&&(this.taskCategoryID=t)},d([T(bt)],e.prototype,"service",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"value",void 0),d([Object(y["config"])({type:Array,default:[]})],e.prototype,"data",void 0),d([Object(y["watch"])("show")],e.prototype,"onShowChange",null),e=d([Object(y["component"])({template:n("4935"),components:{"u-tree":H,"u-data-model-list":xt}})],e),e}(y["View"])),It=St,kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.getCategoryTree=function(t){return this._get("/unity/api/category/project/tree?type=".concat(t))},e.prototype.apiProject=function(t){return this._post("/unity/api/info/page",t)},e.prototype.getApiDetail=function(t){return this._get("/unity/api-market/".concat(t,"/detail"))},d([O("query",{title:"查询分类树"})],e.prototype,"getCategoryTree",null),d([O("post",{title:"分页查询数据模型"})],e.prototype,"apiProject",null),d([O("query",{title:"查询详情"})],e.prototype,"getApiDetail",null),e}(F),Ct=kt,jt=(n("7359"),n("2364")),Dt=n.n(jt),Tt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=[],e.paramColumns=[{slot:"selection",width:60,align:"center",title:" "},{title:"参数名",key:"name",align:"left"},{title:"参数值",key:"valueContent",align:"left"},{title:"备注",key:"text",align:"left"}],e.queryDataList=[],e.typeMap={Form:"FormData",X_www_form_urlencoded:"FormUrlEncoded"},e}return u(e,t),e.prototype.getExpand=function(t){return this.value.includes(t)},e.prototype.init=function(){var t,e;(null===(e=null===(t=this.model)||void 0===t?void 0:t.info)||void 0===e?void 0:e.id)&&(this.queryDataList=this.model.queryParams)},Object.defineProperty(e.prototype,"bodyDataList",{get:function(){var t=this.typeMap[this.bodyType];return this.model.formParams.filter((function(e){return e.type===t}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bodyType",{get:function(){var t,e;return(null===(e=null===(t=this.model)||void 0===t?void 0:t.info)||void 0===e?void 0:e.requestBodyType)||"Form"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFormData",{get:function(){return"Form"===this.bodyType||"X_www_form_urlencoded"===this.bodyType},enumerable:!1,configurable:!0}),d([Object(y["config"])({default:function(){return{}}})],e.prototype,"model",void 0),d([T(z)],e.prototype,"service",void 0),d([Object(y["watch"])("model",{immediate:!0})],e.prototype,"init",null),e=d([Object(y["component"])({template:n("3a71"),components:{"json-viewer":Dt.a}})],e),e}(y["Component"]),Ot=Tt,Et=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.columns=[{title:"参数名称",key:"name"},{title:"参数类型",slot:"type"},{title:"是否必须",slot:"required"},{title:"参数说明",key:"description"}],e}return u(e,t),Object.defineProperty(e.prototype,"dataList",{get:function(){return this.model.items},enumerable:!1,configurable:!0}),d([Object(y["config"])({default:function(){return{}}})],e.prototype,"model",void 0),e=d([Object(y["component"])({template:n("37f5"),components:{}})],e),e}(y["Component"]),Pt=Et,Lt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.columns=[{title:"参数名称",key:"name"},{title:"参数类型",slot:"type"},{title:"是否必须",slot:"required"},{title:"默认值",key:"defaultValue"},{title:"参数说明",key:"description"}],e}return u(e,t),Object.defineProperty(e.prototype,"dataList",{get:function(){return this.model.requestParams},enumerable:!1,configurable:!0}),d([Object(y["config"])({default:function(){return{}}})],e.prototype,"model",void 0),e=d([Object(y["component"])({template:n("a0f2"),components:{}})],e),e}(y["Component"]),Mt=Lt,At=(n("45e3"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),Object.defineProperty(e.prototype,"params",{get:function(){var t,e;return null===(e=null===(t=this.model)||void 0===t?void 0:t.type)||void 0===e?void 0:e.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"action",{get:function(){return this.model.action||{}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"detail",{get:function(){return this.model.detail||{}},enumerable:!1,configurable:!0}),e.prototype.onClose=function(){this.show=!1},d([Object(pt["PropSync"])("visiable",{default:!1})],e.prototype,"show",void 0),d([Object(y["config"])({default:function(){return{}}})],e.prototype,"model",void 0),e=d([Object(y["component"])({template:n("ab68"),components:{api:Ot,catalog:Pt,ddcat:Mt}})],e),e}(y["Component"])),Nt=At,qt=(n("bcb8"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.condition={name:"",url:""},e.columns=[{type:"selection",title:"全选",align:"center",width:60},{title:"名称",align:"left",key:"name",class:"STRING",ellipsis:!0,tooltip:!0,width:300},{title:"地址",align:"left",key:"url",class:"STRING",ellipsis:!0,tooltip:!0},{title:"查看详情",align:"left",slot:"detail",width:105}],e.detail="",e.detailShow=!1,e}return u(e,t),e.prototype.mounted=function(){},e.prototype.init=function(){},e.prototype.onSearch=function(){this.$emit("on-search",this.condition)},e.prototype.onEmpty=function(){this.condition.name="",this.condition.url="",this.$emit("on-search",this.condition)},e.prototype.onSelected=function(t){this.$emit("on-selection-change",t)},e.prototype.onPageIndexChange=function(t){this.$emit("on-page-index-change",t)},e.prototype.onPageSizeChange=function(t){this.$emit("on-page-size-change",t)},e.prototype.onDetail=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return(null===t||void 0===t?void 0:t.typeId)?[4,this.service.getApiDetail(t.typeId)]:[3,2];case 1:e=n.sent(),(null===e||void 0===e?void 0:e.hasError)||(this.detail=e.result||{},this.detailShow=!0),n.label=2;case 2:return[2]}}))}))},e.prototype.onRowClick=function(t,e){this.$emit("on-row-click",t.categoryId)},d([T(Ct)],e.prototype,"service",void 0),d([Object(y["config"])({default:function(){return[]}})],e.prototype,"data",void 0),d([Object(pt["PropSync"])("paging",{default:function(){return null}})],e.prototype,"page",void 0),e=d([Object(y["component"])({template:n("981a"),components:{"u-api-project-detail":Nt}})],e),e}(y["View"])),$t=qt,Rt=(n("eb57"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.splitHorizontal=.25,e.splitVertical=.6,e.isLoading=!1,e.taskCategoryID="",e.treeData=[],e.tempData=[],e.currentNode={},e.initNode={},e.condition={categoryId:"",code:"",name:""},e.paging={totalCount:0,pageIndex:1,pageSize:10},e.tableData=[],e.collapse=!1,e.checkedData=[],e.lastCheckedData=[],e.columns=[{title:"名称",align:"left",key:"name",class:"STRING",ellipsis:!0,tooltip:!0,width:300},{title:"地址",align:"left",key:"url",class:"STRING",ellipsis:!0,tooltip:!0},{title:"操作",key:"operates",slot:"operates",align:"left",width:80}],e}return u(e,t),Object.defineProperty(e.prototype,"checkedLength",{get:function(){return this.checkedData.length},enumerable:!1,configurable:!0}),e.prototype.onDataChange=function(t){this.checkedData=t},Object.defineProperty(e.prototype,"show",{get:function(){return this.value},set:function(t){this.$emit("input",t)},enumerable:!1,configurable:!0}),e.prototype.onShowChange=function(t){if(!this.show)return this.tableData=[],void(this.checkedData=[]);var e=this.data.$clone();this.checkedData=e.map((function(t){return p(p({},t),{url:t.typeCode})})),this.init()},e.prototype.init=function(){this.getTreeData()},e.prototype.getTreeData=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.isLoading=!0,[4,this.service.getCategoryTree("api")];case 1:return t=e.sent(),this.isLoading=!1,t&&!t.hasError&&(this.tempData=V.handlerTreeData(t.result||[],"name"),this.tempData.length>0?(this.tempData.forEach((function(t){t.parentId||(t.parentId="virtual_root_directory")})),this.treeData=[p(p({},this.tempData[0]),{id:"virtual_root_directory",children:this.tempData,jobs:[],name:"全部",title:"全部",expand:!0,parentId:null,parentName:null})]):this.treeData=[{id:"virtual_root_directory",children:this.tempData,jobs:[],name:"全部",title:"全部",expand:!0,parentId:null,parentName:null}],this.treeData.length&&(this.initNode=this.treeData[0],this.onSelect(this.treeData[0]))),[2]}}))}))},e.prototype.onSelect=function(t,e){void 0===e&&(e=!0),e&&(this.taskCategoryID="",this.currentNode=t,this.condition.categoryId="virtual_root_directory"===this.currentNode.id?"":this.currentNode.id,this.getTableData())},e.prototype.onSearch=function(t){this.condition=t,this.condition.categoryId="virtual_root_directory"===this.currentNode.id?"":this.currentNode.id,this.paging.pageIndex=1,this.getTableData()},e.prototype.getTableData=function(){return h(this,void 0,void 0,(function(){var t,e,n=this;return f(this,(function(i){switch(i.label){case 0:return t=Object.create(null),t.condition=this.condition,t.paging=this.paging,[4,this.service.apiProject(t)];case 1:return e=i.sent(),e&&!e.hasError&&(this.tableData=(e.result||[]).map((function(t){return p(p({},t),{id:void 0,type:"API",typeId:t.id,_checked:n.checkedData.findIndex((function(e){return e.typeId===t.id}))>-1})})),this.lastCheckedData=this.checkedData.filter((function(t){return-1===n.tableData.findIndex((function(e){return e.typeId===t.typeId}))})),this.paging.totalCount=e.totalCount),[2]}}))}))},e.prototype.onPageIndexChange=function(t){this.paging.pageIndex=t,this.getTableData()},e.prototype.onPageSizeChange=function(t){this.paging.pageSize=t,this.getTableData()},e.prototype.onSelectionChange=function(t){t.forEach((function(t){return t._checked=!0})),this.tableData.forEach((function(e){for(var n=0,i=t;n<i.length;n++){var r=i[n];if(e.typeId===r.typeId)return e._checked=!0}return e._checked=!1})),this.checkedData=m(m([],this.lastCheckedData,!0),t,!0)},e.prototype.onBatchDelete=function(){this.checkedData=[],this.lastCheckedData=[],this.tableData=this.tableData.map((function(t){return p(p({},t),{_checked:!1})}))},e.prototype.onDelete=function(t){this.checkedData=this.checkedData.filter((function(e){return e.typeId!==t.typeId})),this.lastCheckedData=this.lastCheckedData.filter((function(e){return e.typeId!==t.typeId})),this.tableData.forEach((function(e){e.typeId===t.typeId&&(e._checked=!1)}))},e.prototype.onClickCollapse=function(){this.collapse=!this.collapse,this.splitVertical=this.collapse?"".concat(.7*window.innerHeight-40*window.pageRatio-1,"px"):.6},e.prototype.onCancel=function(){this.show=!1},e.prototype.onSave=function(){var t=this,e=this.checkedData.filter((function(e){return-1===t.data.findIndex((function(t){return t.typeId===e.typeId}))})),n=this.data.filter((function(e){return-1===t.checkedData.findIndex((function(t){return t.typeId===e.typeId}))}));this.$emit("save","API",e,n)},e.prototype.onRowClick=function(t){"virtual_root_directory"===this.currentNode.id&&(this.taskCategoryID=t)},d([T(Ct)],e.prototype,"service",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"value",void 0),d([Object(y["config"])({type:Array,default:[]})],e.prototype,"data",void 0),d([Object(y["watch"])("data")],e.prototype,"onDataChange",null),d([Object(y["watch"])("show")],e.prototype,"onShowChange",null),e=d([Object(y["component"])({template:n("0941"),components:{"u-tree":H,"u-api-project-list":$t}})],e),e}(y["View"])),_t=Rt,Ft=(n("9e10"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.columns=[{type:"selection",align:"center",width:60},{title:"参数名",align:"left",slot:"name",class:"STRING",ellipsis:!0,tooltip:!0},{title:"类型",align:"left",slot:"type",width:130,class:"STRING",ellipsis:!0,tooltip:!0},{title:"是否必传",align:"left",slot:"required",width:120},{title:"默认值",align:"left",slot:"defaultValue",class:"STRING",ellipsis:!0,tooltip:!0},{title:"描述",align:"left",slot:"description",class:"STRING",ellipsis:!0,tooltip:!0},{title:"操作",align:"left",slot:"actions"}],e.typeList=[],e.selections=[],e.booleanObj={false:0,true:1},e}return u(e,t),e.prototype.mounted=function(){this.getTypeList()},e.prototype.onEdit=function(t){this.$set(t,"isEdit",!0)},e.prototype.onCancel=function(t){this.data.splice(t,1)},e.prototype.onDelete=function(t,e){this.data.splice(e,1)},e.prototype.onBatchDelete=function(){var t=this;this.selections.length&&this.$modal.confirm({title:"将批量删除所选内容,是否继续?",onOk:function(){t.selections.forEach((function(e){var n=t.data.findIndex((function(t){return t.id===e.id}));n>-1&&t.data.splice(n,1)})),t.selections=[]}})},e.prototype.onAdd=function(){this.data.push({isEdit:!0,id:Math.random().toString(36).slice(-8).toString(),required:!1,type:"STRING"})},e.prototype.onConfirm=function(t,e){""===t.name&&this.$message.warning("请输入参数名"),""===t.type&&this.$message.warning("请选择类型"),""!==t.name&&""!==t.type&&(t.isEdit=!1,this.data.splice(e,1,t))},e.prototype.getTypeList=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getItemListByType("param-type")];case 1:return t=e.sent(),this.typeList=t.result||[],[2]}}))}))},e.prototype.getTypeText=function(t){return(this.typeList.find((function(e){return e.name===t}))||{text:""}).text},e.prototype.onChangeRequired=function(t,e){e.required=!!t},e.prototype.onSelectionChange=function(t){this.selections=t},d([Object(y["config"])({default:function(){return[]}})],e.prototype,"data",void 0),d([Object(y["config"])({default:!0})],e.prototype,"isEdit",void 0),d([T(z)],e.prototype,"service",void 0),e=d([Object(y["component"])({template:n("d8b4")})],e),e}(y["View"])),Bt=Ft,zt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.columns=[{type:"selection",align:"center",width:60},{title:"参数名",align:"left",slot:"name",class:"STRING",ellipsis:!0,tooltip:!0},{title:"类型",align:"left",slot:"type",class:"STRING",ellipsis:!0,tooltip:!0},{title:"操作",align:"left",slot:"actions"}],e}return u(e,t),e}(Bt),Vt=zt,Ut=(n("cfde"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.context="",e.error=!1,e.result="",e.output="",e}return u(e,t),e.prototype.onShowChange=function(){this.show||(this.context="",this.error=!1,this.result="",this.output=""),this.context=this.defalutContext},e.prototype.onDataChange=function(){var t,e,n,i;(null===(t=this.data)||void 0===t?void 0:t.error)?(this.error=!0,this.result=this.getJsonString(null===(e=this.data)||void 0===e?void 0:e.error)):this.result=this.getJsonString(null===(n=this.data)||void 0===n?void 0:n.result),this.output=this.getJsonString(null===(i=this.data)||void 0===i?void 0:i.output)},e.prototype.getJsonString=function(t){var e="";try{e="object"===typeof t?JSON.stringify(t,null,4):t.toString()}catch(n){}return e},Object.defineProperty(e.prototype,"defalutContext",{get:function(){var t={};return this.params.forEach((function(e){t[e.name]=""})),this.getJsonString(t)},enumerable:!1,configurable:!0}),e.prototype.onProcess=function(){try{var t=JSON.parse(this.context);this.$emit("on-run",t)}catch(e){this.$message.error("请输入正确的 Json 脚本")}},e.prototype.onReset=function(){this.context=this.defalutContext},e.prototype.onOk=function(){this.show=!1},e.prototype.onCancel=function(){this.show=!1},d([Object(y["config"])({default:function(){return[]}})],e.prototype,"params",void 0),d([Object(y["config"])({default:{}})],e.prototype,"data",void 0),d([Object(pt["PropSync"])("visible",{default:!1})],e.prototype,"show",void 0),d([Object(y["watch"])("show")],e.prototype,"onShowChange",null),d([Object(y["watch"])("data")],e.prototype,"onDataChange",null),e=d([Object(y["component"])({template:n("086a"),components:{"u-base-editor":vt}})],e),e}(y["View"])),Ht=Ut,Gt=(n("2e28"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.model={authFlag:1,type:"SCRIPT",status:"NOT_PUBLISHED",relations:[],reqParams:[],respParams:[]},e.title="合并模型",e.id="",e.categoryId="",e.saveing=!1,e.isEdit=!1,e.isAdd=!1,e.rules={name:[{required:!0,message:"请输入名称",trigger:"blur"}],code:[{required:!0,message:"请输入编码",trigger:"blur"}]},e.relationColumns=[{title:"类型",align:"left",key:"type",slot:"type",width:280},{title:"名称",align:"left",key:"name",class:"STRING",ellipsis:!0,tooltip:!0},{title:"编码或地址",align:"left",key:"typeCode",class:"STRING",ellipsis:!0,tooltip:!0},{title:"操作",key:"operates",slot:"operates",align:"left",width:100}],e.testShow=!1,e.testResult={},e.dataModelShow=!1,e.apiProjectShow=!1,e.dataModelDoc="",e.dataModelDocShow=!1,e.apiProjectDetail="",e.apiProjectDetailShow=!1,e.doc="",e.docShow=!1,e}return u(e,t),Object.defineProperty(e.prototype,"dataModelRelations",{get:function(){var t,e;return null!==(e=null===(t=this.model.relations)||void 0===t?void 0:t.filter((function(t){return"MODEL"===t.type})))&&void 0!==e?e:[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"apiProjectRelations",{get:function(){var t,e;return null!==(e=null===(t=this.model.relations)||void 0===t?void 0:t.filter((function(t){return"API"===t.type})))&&void 0!==e?e:[]},enumerable:!1,configurable:!0}),e.prototype.onBack=function(){this.$router.push({name:"combine"}),this.$store.commit("tag/closeCurrent",this.$route)},e.prototype.mounted=function(){this.init()},e.prototype.activated=function(){this.init()},e.prototype.init=function(){var t=this.$route.query||{},e=t.isEdit,n=t.id,i=void 0===n?"":n,r=t.categoryId,o=void 0===r?"":r;this.isEdit=1===Number(e),this.isAdd=this.isEdit&&!i,this.categoryId=o,this.title=this.isEdit?this.isAdd?"新增合并模型":"编辑合并模型":"合并模型详情",i!==this.id&&(this.id=i,this.getById())},e.prototype.getById=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.id?[4,this.service.getById(this.id)]:[3,2];case 1:t=e.sent(),(null===t||void 0===t?void 0:t.hasError)||(this.model=t.result,this.model.authFlag||(this.model.authFlag=0)),e.label=2;case 2:return[2,Promise.resolve()]}}))}))},e.prototype.onValidate=function(){var t=this;return new Promise((function(e,n){for(var i,r,o,a,s=new Set,c=0;c<(null===(i=t.model.reqParams)||void 0===i?void 0:i.length);c++){var l=t.model.reqParams[c];if(!(null===(r=l.name)||void 0===r?void 0:r.length))return t.$message.error("请求参数名称不能为空!"),n();if(s.has(l.name))return t.$message.error("请求参数有重名!"),n();s.add(l.name)}if(!(null===(o=t.model.relations)||void 0===o?void 0:o.length))return t.$message.error("合并列表不能为空!"),n();if(!(null===(a=t.model.content)||void 0===a?void 0:a.length))return t.$message.error("执行脚本不能为空!"),n();var u=t.$refs.form;null===u||void 0===u||u.validate((function(t){return e(t)}))}))},e.prototype.onSave=function(t){var e=this;return new Promise((function(n,i){return h(e,void 0,void 0,(function(){var e;return f(this,(function(r){switch(r.label){case 0:if(this.saveing)return[2,i()];this.saveing=!0,r.label=1;case 1:return r.trys.push([1,7,8,9]),[4,this.onValidate()];case 2:return r.sent(),this.$set(this.model,"categoryId",this.categoryId),[4,this.service.save(this.model)];case 3:return e=r.sent(),(null===e||void 0===e?void 0:e.hasError)?[3,6]:e.result?(this.id=e.result,[4,this.getById()]):[3,5];case 4:r.sent(),r.label=5;case 5:t&&(this.$message.success("保存数据成功!"),this.onBack()),r.label=6;case 6:return[2,n(!0)];case 7:return r.sent(),[3,9];case 8:return this.saveing=!1,[7];case 9:return[2]}}))}))}))},e.prototype.onAddDataModel=function(){this.dataModelShow=!0},e.prototype.onAddApiProject=function(){this.apiProjectShow=!0},e.prototype.onRelationsSave=function(t,e,n){return h(this,void 0,void 0,(function(){var i,r,o,a,s;return f(this,(function(c){switch(c.label){case 0:return"MODEL"===t?this.dataModelShow=!1:"API"===t&&(this.apiProjectShow=!1),i=n.map((function(t){return t.typeId})),i.length>0&&(this.model.relations=this.model.relations.filter((function(t){return!i.includes(t.typeId)})),this.model.reqParams=this.model.reqParams.filter((function(t){return!i.includes(t.relationTypeId)}))),r=e.map((function(t){return t.typeId})),r.length>0?(o=[],a=[],"MODEL"!==t?[3,2]:(o=e.map((function(e){return p(p({},e),{type:t,typeCode:e.code})})),[4,this.service.dataModelParams(r)])):[3,5];case 1:return s=c.sent(),a=((null===s||void 0===s?void 0:s.result)||[]).map((function(e){return p(p({},e),{relationType:t,relationTypeId:e.modelId})})),[3,4];case 2:return"API"!==t?[3,4]:(o=e.map((function(e){return p(p({},e),{type:t,typeCode:e.url})})),[4,this.service.apiProjectParams(r)]);case 3:s=c.sent(),a=((null===s||void 0===s?void 0:s.result)||[]).map((function(e){return p(p({},e),{relationType:t,relationTypeId:e.apiId,required:!1,type:"STRING"})})),c.label=4;case 4:this.model.relations=m(m([],this.model.relations,!0),o,!0),this.model.reqParams=m(m([],this.model.reqParams,!0),a,!0),c.label=5;case 5:return[2]}}))}))},e.prototype.onRelationDelete=function(t){this.model.relations=this.model.relations.filter((function(e){return e.typeId!==t.typeId})),this.model.reqParams=this.model.reqParams.filter((function(e){return e.relationTypeId!==t.typeId}))},e.prototype.onDetail=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return"MODEL"!==(null===t||void 0===t?void 0:t.type)?[3,3]:(null===t||void 0===t?void 0:t.typeId)?[4,this.dataModelService.getMavonDoc(t.typeId)]:[3,2];case 1:e=n.sent(),(null===e||void 0===e?void 0:e.hasError)||(this.dataModelDoc=e.result,this.dataModelDocShow=!0),n.label=2;case 2:return[3,5];case 3:return"API"!==(null===t||void 0===t?void 0:t.type)?[3,5]:(null===t||void 0===t?void 0:t.typeId)?[4,this.apiProjectService.getApiDetail(t.typeId)]:[3,5];case 4:e=n.sent(),(null===e||void 0===e?void 0:e.hasError)||(this.apiProjectDetail=e.result||{},this.apiProjectDetailShow=!0),n.label=5;case 5:return[2]}}))}))},e.prototype.onOpenTest=function(){return h(this,void 0,void 0,(function(){return f(this,(function(t){switch(t.label){case 0:return t.trys.push([0,3,,4]),this.isEdit?[4,this.onSave(!1)]:[3,2];case 1:t.sent(),t.label=2;case 2:return this.testShow=!0,[3,4];case 3:return t.sent(),[3,4];case 4:return[2]}}))}))},e.prototype.onTestRun=function(t){var e,n;return h(this,void 0,void 0,(function(){var i;return f(this,(function(r){switch(r.label){case 0:return[4,this.service.testRun(p(p({},this.model),{context:t}))];case 1:return i=r.sent(),(null===i||void 0===i?void 0:i.hasError)||(this.$message.success("运行成功"),this.testResult=null!==(e=i.result)&&void 0!==e?e:{},this.model.respParams=null!==(n=i.result.respParams)&&void 0!==n?n:[]),[2]}}))}))},e.prototype.onOpenDoc=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.geHelpDoc()];case 1:return t=e.sent(),t?(this.doc=t,this.docShow=!0):this.$message.error("获取帮助文档失败"),[2]}}))}))},d([T(z)],e.prototype,"service",void 0),d([T(bt)],e.prototype,"dataModelService",void 0),d([T(Ct)],e.prototype,"apiProjectService",void 0),e=d([Object(y["component"])({name:"ProjectCombineModel",template:n("d8e7"),components:{"u-base-editor":vt,"u-data-model-modal":It,"u-data-model-doc-modal":st,"u-api-project-modal":_t,"u-api-project-detail-modal":Nt,"u-request-parameter-list":Bt,"u-response-parameter-list":Vt,"u-test-run-modal":Ht,"u-data-model-doc":st}})],e),e}(y["View"])),Kt=Gt,Qt=(n("1aea"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),d([Object(pt["PropSync"])("visiable",{default:!1})],e.prototype,"value",void 0),d([Object(y["config"])({default:function(){return new Object}})],e.prototype,"data",void 0),e=d([Object(y["component"])({template:n("6255")})],e),e}(y["Component"])),Jt=Qt,Wt=(n("e9fa"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=!1,e}return u(e,t),e.prototype.onOpenConfirm=function(){this.value=!0},e.prototype.onCancel=function(){this.value=!1,this.$emit("on-cancel")},e.prototype.onOk=function(){this.value=!1,this.$emit("on-ok")},d([Object(y["config"])({default:"系统提示"})],e.prototype,"title",void 0),d([Object(y["config"])({default:""})],e.prototype,"message",void 0),e=d([Object(y["component"])({template:n("bc13")})],e),e}(y["Component"])),Yt=Wt,Xt=(n("270f"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.onDelete=function(){this.$emit("on-delete",this.data)},e.prototype.onDetail=function(){this.$emit("on-detail",this.data)},e.prototype.onEdit=function(){this.$emit("on-edit",this.data)},e.prototype.onClick=function(t){this.$emit("on-"+t,this.data)},d([Object(y["config"])({default:function(){return new Object}})],e.prototype,"data",void 0),e=d([Object(y["component"])({template:n("ef27"),components:{"u-confirm":Yt}})],e),e}(y["Component"])),Zt=Xt,te=(n("17fe"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.getProjectList=function(t){return void 0===t&&(t={}),this._post("/unity/api/project/list",t)},e.prototype.saveProject=function(t){return t.id?this._put("/unity/api/project",t):this._post("/unity/api/project",t)},e.prototype.deleteProject=function(t){return this._delete("/unity/api/project/".concat(t))},e.prototype.exportProject=function(t){return L.a.post(this.url("/unity/api/info/export"),t,{headers:{"X-Requested-With":"XMLHttpRequest","Content-Type":"application/json; charset=UTF-8","Access-Control-Allow-Origin":"*"},responseType:"arraybuffer"}).then((function(t){var e=new Blob([t.data],{type:"application/json"}),n=URL.createObjectURL(e),i=document.createElement("a");i.href=n,i.download=decodeURI("data-model.json"),i.style.display="none",document.body.appendChild(i),i.target="_blank",i.click(),i.parentNode.removeChild(i),window.URL.revokeObjectURL(n)}))},d([O("query",{title:"获取所有项目"})],e.prototype,"getProjectList",null),d([O("save",{title:"保存项目",showTip:!0,showErrorMsg:!0})],e.prototype,"saveProject",null),d([O("save",{title:"删除项目",showTip:!0,showErrorMsg:!0})],e.prototype,"deleteProject",null),e}(F)),ee=te,ne=n("a2c5"),ie=n.n(ne);function re(t){return t instanceof Element?"element":Object.prototype.toString.call(t).slice(8,-1).toLowerCase()}function oe(t){return t.replace(/([^:]|^)\/{2,}/g,"$1/")}n("2597"),n("e459"),n("eab2"),n("6bf0"),n("46df"),n("e40c"),n("39d5");var ae=function(){function t(){}return t.prototype.random=function(){return.001*window.crypto.getRandomValues(new Uint8Array(1))[0]},t.prototype.randomStr=function(t){var e=Math.ceil(t/2),n=new Uint8Array(e);window.crypto.getRandomValues(n);var i=Array.from(n).map((function(t){return t.toString(16).padStart(2,"0")})),r=i.join("").substr(0,t);return r},t.prototype.randomNumberStr=function(t){var e=Math.ceil(t/2),n=new Uint8Array(e);window.crypto.getRandomValues(n);for(var i="",r=0;r<e;r++)i+=n[r].toString().padStart(2,"0");return i.slice(0,t)},t}(),se=new ae,ce=se;function le(t){return null===t||void 0===t}function ue(t){for(var e,n,i=[],r=1;r<arguments.length;r++)i[r-1]=arguments[r];if(!i.length)return t;var o=i.shift();if(pe(t)&&pe(o))for(var a in o)pe(o[a])?(t[a]||Object.assign(t,(e={},e[a]={},e)),ue(t[a],o[a])):Object.assign(t,(n={},n[a]=o[a],n));return ue.apply(void 0,m([t],i,!1))}function pe(t){return t&&"object"===typeof t&&!Array.isArray(t)}function de(t){var e=new URLSearchParams;for(var n in t)t.hasOwnProperty(n)&&e.append(n,t[n]);return e.toString()}function he(t){var e=new URLSearchParams(t),n={};return e.forEach((function(t,e){n[e]=t})),n}var fe,me,ye,ve,ge,be=function(){function t(t){this._appIdCode=t,this.noncePrefix=this.generateRandomString()}return Object.defineProperty(t.prototype,"appIdCode",{get:function(){return this._appIdCode},enumerable:!1,configurable:!0}),t.prototype.generateRandomString=function(){return ce.randomStr(8)},t.prototype.generateSignatureOption=function(){return{nonce:"".concat(this.noncePrefix,"_").concat(this.generateRandomString()),timestamp:Date.now().toString().substring(0,10)}},t.prototype.stringToUTF8ByteSize=function(t){var e=(new TextEncoder).encode(t);return e.length},t.prototype.isStringOverKB=function(t,e){var n=this.stringToUTF8ByteSize(t);return n>1024*e},t.prototype.removeNilValue=function(t){if("object"===re(t))for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var n=t[e],i=re(n);"object"===i?this.removeNilValue(n):"null"!==i&&"undefined"!==i&&"function"!==i||delete t[e]}},t.prototype.formatEncodeValue=function(t){var e=re(t),n="null"===e||"undefined"===e||"function"===e,i=n?"":t;return encodeURIComponent(i).replace(/%2B/g,"+").replace(/%20/g,"+").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27").replace(/!/g,"%21").replace(/~/g,"%7E")},t.prototype.formatEncodeParam=function(t,e,n){var i=this,r=re(n);if("object"===r){var o=Object.keys(n).sort();0===o.length?t.push("".concat(e,"={}")):o.forEach((function(r){i.formatEncodeParam(t,""===e?"".concat(r):"".concat(e,"[").concat(r,"]"),n[r])}))}else"array"===r?0===n.length?t.push("".concat(e,"=[]")):n.forEach((function(n){i.formatEncodeParam(t,"".concat(e,"[]"),n)})):t.push("".concat(e,"=").concat(this.formatEncodeValue(n)))},t.prototype.sortParamByKey=function(t){void 0===t&&(t={});var e=[];return this.formatEncodeParam(e,"",t),e.join("&")},t.prototype.cryptoHash=function(t){return"Base64"===window.commonSetting.signatureEncodeType?ie.a.HmacSHA1(t,this._appIdCode.code).toString(ie.a.enc.Base64):ie.a.HmacSHA1(t,this._appIdCode.code).toString(ie.a.enc.Hex).toUpperCase()},t.prototype.urlSearchParams=function(t){var e;return t&&t.indexOf("?")>-1?he(null!==(e=t.split("?").pop())&&void 0!==e?e:""):{}},t.prototype.signatureHref=function(t){try{var e=new URL(t,window.location.origin).pathname,n=this.urlSearchParams(t),i=this.generateSignatureOption();ue(n,i);var r=this.sortParamByKey(n),o=oe("/".concat(e)),a="".concat(o,"?").concat(r),s=this.cryptoHash(a);t="".concat(a,"&signature=").concat(s)}catch(c){console.error("签名失败,请使用有效的链接",t)}return t},t.prototype.signatureConfig=function(t){var e,n,i,r,a;try{var s=null===(e=t.method)||void 0===e?void 0:e.toUpperCase(),c="GET"===s,l=Object(o["toRaw"])(t.data),u=null!==l&&"object"===typeof l,p=(null===(i=null===(n=t.headers)||void 0===n?void 0:n["Content-Type"])||void 0===i?void 0:i.toString())||"",d=p.includes("multipart/form-data"),h=p.includes("application/json");c||p||!u||(h=!0),ue(t,{headers:{"App-Id":this._appIdCode.id}});var f={},m=this.urlSearchParams(t.url);if(ue(f,m),!le(t.params)){var y=Object(o["toRaw"])(t.params);this.removeNilValue(y),t.params=y,ue(f,he(de(y)))}!le(l)&&u&&(d||h||ue(f,l));var v=this.generateSignatureOption();ue(f,v);var g=this.sortParamByKey(f);if(h){var b=JSON.stringify(l),w=this.isStringOverKB(b,128);w||(g+=u?this.formatEncodeValue(b):this.formatEncodeValue(l))}var x="";x=(null===(r=t.url)||void 0===r?void 0:r.startsWith("http"))?t.url:(null===(a=t.url)||void 0===a?void 0:a.startsWith("/"))?"".concat(t.baseURL||"").concat(t.url||""):"".concat(t.baseURL||"","/").concat(t.url||"");var S=new URL(x,window.location.origin).pathname,I=oe("/".concat(S)),k="".concat(I,"?").concat(g);v.signature=this.cryptoHash(k),t.params=ue({},t.params,v)}catch(C){console.error("签名失败",C)}},t}(),we={id:"dex",code:"bb0a92a340ae4f5d936a9e6b010cb127"},xe=new be(we),Se=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.type="card",e.condition={},e.dataList=[],e.showAddModal=!1,e.loading=!1,e.columns=[{title:"项目名称",key:"name",align:"left",tooltip:!0},{title:"项目描述",key:"description",align:"left",tooltip:!0},{title:"创建时间",key:"createTime",align:"left",tooltip:!0},{title:"操作",slot:"action",align:"left"}],e.current={},e}return u(e,t),Object.defineProperty(e.prototype,"uploadAction",{get:function(){return xe.signatureHref(A.baseUrl+"/unity/api/info/import")},enumerable:!1,configurable:!0}),e.prototype.onCheckType=function(t){this.type=t},e.prototype.onAdd=function(){this.current={},this.showAddModal=!0},e.prototype.onDelete=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.deleteProject(t.id)];case 1:return e=n.sent(),e&&!e.hasError&&this.onQuery(),[2]}}))}))},e.prototype.onDetail=function(t){this.$router.push({name:"project-detail",params:{id:t.id},query:{name:t.name}})},e.prototype.onEdit=function(t){this.current=t,this.showAddModal=!0},e.prototype.onExport=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return e=Object.create(null),e={projectId:t.id},this.loading=!0,[4,this.service.exportProject(e)];case 1:return n.sent(),this.loading=!1,[2]}}))}))},e.prototype.onComment=function(){this.$router.push({name:"project-comment"})},e.prototype.onQuery=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.loading=!0,[4,this.service.getProjectList(this.condition)];case 1:return t=e.sent(),this.dataList=(null===t||void 0===t?void 0:t.result)||[],this.loading=!1,[2]}}))}))},e.prototype.mounted=function(){this.onQuery()},e.prototype.onSave=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.saveProject(this.current)];case 1:return t=e.sent(),t&&!t.hasError&&(this.showAddModal=!1,this.onQuery()),[2]}}))}))},Object.defineProperty(e.prototype,"headers",{get:function(){var t=S().headers;return p(p({},t),{"App-Id":xe.appIdCode.id})},enumerable:!1,configurable:!0}),e.prototype.onSuccess=function(t,e){if(t&&!t.hasError)return this.$Message.success("导入成功"),this.onQuery(),void(this.loading=!1);this.loading=!1,this.$Message.error(t.message||"导入出错,请稍后再试")},e.prototype.onBeforeUpload=function(t){return this.loading=!0,-1!==t.name.indexOf(" ")?(this.$Message.warning("文件名不能包含空格"),this.loading=!1,!1):-1===t.name.indexOf("%")||(this.$Message.warning("文件名不能包含符号%"),this.loading=!1,!1)},e.prototype.onFormatError=function(t){this.loading=!1,this.$Message.warning("文件".concat(t.name,"格式错误"))},d([T(ee)],e.prototype,"service",void 0),e=d([Object(y["component"])({name:"ApiProjectList",template:n("cfb3"),components:{"u-card":Zt,"u-add-modal":Jt,"u-confirm":Yt}})],e),e}(y["View"]),Ie=Se,ke=(n("65e5"),n("7af4")),Ce=n.n(ke),je=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.getApiTree=function(t){return this._get("/unity/api/info/tree/".concat(t))},e.prototype.deleteApi=function(t){return this._delete("/unity/api/info/".concat(t))},e.prototype.deleteCategory=function(t){return this._delete("/unity/api/category/".concat(t))},e.prototype.saveCategory=function(t){return t.id?this._put("/unity/api/category",t):this._post("/unity/api/category",t)},e.prototype.checkCategory=function(t){return this._post("/unity/api/category/update/check",t)},e.prototype.updateMoveCategory=function(t,e){return this._post("/unity/api/category/updateWithEnv?copyEnvFlag=".concat(e),t)},e.prototype.saveApi=function(t){return t.id?this._put("/unity/api/info",t):this._post("/unity/api/info",t)},e.prototype.checkApi=function(t){return this._post("/unity/api/info/update/check",t)},e.prototype.updateMoveApi=function(t,e){return this._post("/unity/api/info/updateWithEnv?copyEnvFlag=".concat(e),t)},e.prototype.copyApi=function(t,e,n,i){return this._post("/unity/api/info/copy?id=".concat(t,"&name=").concat(e,"&projectId=").concat(n,"&categoryId=").concat(i))},e.prototype.apiInfo=function(t){return this._get("/unity/api/info/".concat(t,"/whole"))},e.prototype.run=function(t,e){return this._post("/unity/api/run/".concat(t,"/web"),e)},e.prototype.runWithFile=function(t,e){return this._post("/unity/api/run/".concat(t,"/exec"),e)},e.prototype.saveApiInfo=function(t){return this._post("/unity/api/info/save/whole",t)},e.prototype.parseResponse2Fields=function(t,e,n){return void 0===e&&(e=""),void 0===n&&(n=!0),this._post("/unity/api/field-mapping/parse/model",{originalJson:t,convertRoot:e,collapse:n})},e.prototype.preScript=function(){return this._get("/api-help/preScript.json")},e.prototype.postScript=function(){return this._get("/api-help/postScript.json")},e.prototype.projectInfo=function(t){return this._get("/unity/api/project/".concat(t))},e.prototype.getSecurityList=function(t){return this._post("/unity/api/authentication/list",t)},e.prototype.deleteSecurityItem=function(t){return this._delete("/unity/api/authentication/".concat(t))},e.prototype.addSecurityItem=function(t){return this._post("/unity/api/authentication",t)},e.prototype.updateSecurityItem=function(t){return this._put("/unity/api/authentication",t)},e.prototype.getVariableList=function(t){return this._post("/unity/api/environment-param/list",t)},e.prototype.saveVariable=function(t){return(null===t||void 0===t?void 0:t.id)?this._put("/unity/api/environment-param",t):this._post("/unity/api/environment-param",t)},e.prototype.deleteVariable=function(t){return this._delete("/unity/api/environment-param/".concat(t))},e.prototype.onBatchEnv=function(t){return this._post("/unity/api/info/env",t)},e.prototype.onBatchAuth=function(t){return this._post("/unity/api/info/auth",t)},e.prototype.getScriptDoc1=function(){return this._get("/api-help/apiParam.md")},e.prototype.getScriptDoc=function(){return this._get("/api-help/authScript.md")},e.prototype.onImportAvr=function(t){return this._post("/unity/api/info/import-model",t)},e.prototype.onValidateImport=function(t){return this._post("/unity/api/info/check-name",t)},e.prototype.getEgovaApiTree=function(){return this._get("/unity/wizdom-api/tree")},e.prototype.getProjectList=function(t){return void 0===t&&(t={}),this._post("/unity/api/project/list",t)},e.prototype.getApiRequestParams=function(t){return this._get("/unity/api/request-param/apiId/".concat(t))},e.prototype.getCategoryList=function(){return this._get("/unity/proxy/tree")},e.prototype.getProxyNameList=function(t){return this._get("/unity/proxy/getbyapi?apiId=".concat(t))},e.prototype.save=function(t){return t.id?this._put("/unity/proxy",t):this._post("/unity/proxy",t)},d([O("query",{title:"获取接口树"})],e.prototype,"getApiTree",null),d([O("save",{title:"删除接口",showErrorMsg:!0,showTip:!0})],e.prototype,"deleteApi",null),d([O("save",{title:"删除分组",showTip:!0,showErrorMsg:!0})],e.prototype,"deleteCategory",null),d([O("save",{title:"保存分组",showTip:!0,showErrorMsg:!0})],e.prototype,"saveCategory",null),d([O("save",{title:"保存分组",showTip:!1,showErrorMsg:!0})],e.prototype,"checkCategory",null),d([O("save",{title:"保存分组",showTip:!0,showErrorMsg:!0})],e.prototype,"updateMoveCategory",null),d([O("save",{title:"保存接口",showErrorMsg:!0,showTip:!0})],e.prototype,"saveApi",null),d([O("save",{title:"保存接口",showErrorMsg:!0,showTip:!1})],e.prototype,"checkApi",null),d([O("save",{title:"保存接口",showTip:!0,showErrorMsg:!0})],e.prototype,"updateMoveApi",null),d([O("save",{title:"复制接口",showErrorMsg:!1,showTip:!1})],e.prototype,"copyApi",null),d([O("query",{title:"接口详情"})],e.prototype,"apiInfo",null),d([O("query",{title:"在线测试"})],e.prototype,"run",null),d([O("query",{title:"在线测试"})],e.prototype,"runWithFile",null),d([O("save",{title:"保存接口详情",showErrorMsg:!0,showTip:!0})],e.prototype,"saveApiInfo",null),d([O("query",{title:"提取json的节点数据"})],e.prototype,"parseResponse2Fields",null),d([O("query",{title:"前置脚本"})],e.prototype,"preScript",null),d([O("query",{title:"后置脚本"})],e.prototype,"postScript",null),d([O("query",{title:"项目详情"})],e.prototype,"projectInfo",null),d([O("query",{title:"授权认证列表查询"})],e.prototype,"getSecurityList",null),d([O("save",{title:"删除授权认证",showTip:!0,showErrorMsg:!0})],e.prototype,"deleteSecurityItem",null),d([O("save",{title:"新增授权认证",showTip:!0,showErrorMsg:!0})],e.prototype,"addSecurityItem",null),d([O("save",{title:"更新授权认证",showTip:!0,showErrorMsg:!0})],e.prototype,"updateSecurityItem",null),d([O("query",{title:"环境变量详情",showErrorMsg:!0})],e.prototype,"getVariableList",null),d([O("save",{title:"保存环境变量",showErrorMsg:!0})],e.prototype,"saveVariable",null),d([O("query",{title:"删除环境变量",showErrorMsg:!0})],e.prototype,"deleteVariable",null),d([O("query",{title:"批量修改环境变量",showErrorMsg:!0})],e.prototype,"onBatchEnv",null),d([O("query",{title:"批量修改授权设置",showErrorMsg:!0})],e.prototype,"onBatchAuth",null),d([O("query",{title:"单接口详情导入",showErrorMsg:!0})],e.prototype,"onImportAvr",null),d([O("query",{title:"单接口详情导入",showErrorMsg:!0})],e.prototype,"onValidateImport",null),d([O("query",{title:"获取egova接口树"})],e.prototype,"getEgovaApiTree",null),d([O("query",{title:"获取API项目列表"})],e.prototype,"getProjectList",null),d([O("query",{title:"获取API参数列表"})],e.prototype,"getApiRequestParams",null),d([O("query",{title:"查询分类树"})],e.prototype,"getCategoryList",null),d([O("query",{title:"查询代理详情"})],e.prototype,"getProxyNameList",null),d([O("save",{title:"保存接口配置",showTip:!0,showErrorMsg:!0})],e.prototype,"save",null),e}(F),De=je,Te=(n("ca38"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.onMore=function(){this.source.func&&this.source.func()},e.prototype.onToApi=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.apiInfo(this.source.apiId)];case 1:return t=e.sent(),t.hasError?[2,this.$message.error("接口不存在")]:(this.$router.push({name:"project-detail",params:{id:this.source.projectId},query:{apiId:this.source.apiId,apiName:this.source.apiName}}),[2])}}))}))},d([Object(y["config"])({type:Object,default:function(){return Object.create(null)}})],e.prototype,"source",void 0),d([Object(y["config"])({type:Number,default:function(){return 0}})],e.prototype,"index",void 0),d([T(De)],e.prototype,"service",void 0),e=d([Object(y["component"])({template:n("9b44"),components:{}})],e),e}(y["Component"])),Oe=Te,Ee=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.page=function(t){return this._post("/unity/api/trends/page",t)},d([O("query",{title:"分页查询表单动态"})],e.prototype,"page",null),e}(F),Pe=Ee,Le=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.list=[],e.itemComponent=Oe,e.condition={endCreateTime:new Date},e.paging={pageIndex:0,pageSize:10,totalCount:0},e}return u(e,t),e.prototype.mounted=function(){this.onQuery()},e.prototype.onMore=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.paging.pageIndex++,this.list.length>0&&this.list.pop(),[4,this.query()];case 1:return t=e.sent(),this.list=this.list.concat(t),this.paging.pageIndex*this.paging.pageSize<this.paging.totalCount&&this.list.push({id:this.paging.pageIndex,type:"more",func:this.onMore}),[2]}}))}))},e.prototype.query=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.page({condition:this.condition,paging:this.paging})];case 1:return t=e.sent(),this.paging.totalCount=t.totalCount,[2,Promise.resolve(t.result||[])]}}))}))},e.prototype.onQuery=function(){this.paging.pageIndex=0,this.list=[],this.onMore()},d([T(Pe)],e.prototype,"service",void 0),e=d([Object(y["component"])({name:"ApiProjectComment",template:n("b769"),components:{VirtualList:Ce.a}})],e),e}(y["View"]),Me=Le,Ae=(n("8b9b"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),d([Object(pt["PropSync"])("visiable",{default:!1})],e.prototype,"value",void 0),e=d([Object(y["component"])({template:n("10cf")})],e),e}(y["Component"])),Ne=Ae,qe=(n("713b"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.typeList=[{title:"Body参数",name:"body"},{title:"Query参数",name:"query"},{title:"Header参数",name:"header"}],e.active=e.typeList[0],e.columns=[{title:"参数名",slot:"name",align:"left"},{title:"参数值",slot:"value",align:"left"},{title:"备注",slot:"remark",align:"left"},{title:"操作",slot:"action",align:"left",width:300}],e.dataList=new Array(20).fill({}),e}return u(e,t),e.prototype.onCheckTpye=function(t){this.active=t},e.prototype.onDelete=function(t,e){t.splice(e,1)},e.prototype.onUp=function(t,e){if(0!==e){var n=t.splice(e,1);t.splice(e-1,0,n[0])}},e.prototype.onDown=function(t,e){if(e!==t.length-1){var n=t.splice(e,1);t.splice(e+1,0,n[0])}},e.prototype.onTop=function(t,e){var n=t.splice(e,1);t.unshift(n[0])},e.prototype.onBottom=function(t,e){var n=t.splice(e,1);t.push(n[0])},d([Object(pt["PropSync"])("visiable",{default:!1})],e.prototype,"value",void 0),e=d([Object(y["component"])({template:n("470f")})],e),e}(y["Component"])),$e=qe,Re=(n("eaed"),n("4387")),_e=n.n(Re),Fe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.isAddOnce=!1,e.exitAddItem=!1,e.varList=[],e.keyword="",e.currentItem={},e.isEmpty=!0,e.formData={name:"",remark:"",type:"http",address:""},e.rules={name:[{required:!0,message:"请输入环境名称",trigger:"blur"}],address:[{required:!0,message:"请输入域名",trigger:"blur"}]},e.onFilter=_e()((function(){e.getVariableList()}),300),e}return u(e,t),e.prototype.onShowChange=function(t){return h(this,void 0,void 0,(function(){return f(this,(function(e){return t&&(this.isAddOnce=this.isAdd,this.getVariableList()),[2]}))}))},e.prototype.onEmpty=function(t){this.isEmpty=!!t},e.prototype.getVariableList=function(){return h(this,void 0,void 0,(function(){var t,e,n=this;return f(this,(function(i){switch(i.label){case 0:return[4,this.service.getVariableList({name:this.keyword,projectId:this.projectId})];case 1:return t=i.sent(),(null===t||void 0===t?void 0:t.hasError)||(this.varList=t.result||[],(this.isAddOnce||this.exitAddItem)&&(this.onAddItem(),this.isAddOnce=!1,this.exitAddItem=!1),this.currentItem&&this.currentItem.id?(e=this.varList.filter((function(t){return t.id===n.currentItem.id})),this.onSelectItem(e[0]||this.varList[0])):this.varList.length&&this.onSelectItem(this.varList[0])),[2]}}))}))},e.prototype.onSelectItem=function(t){this.currentItem=t.$clone(),this.formData.name=this.currentItem.name,this.currentItem.value.indexOf("https")>-1?(this.formData.type="https",this.formData.address=this.currentItem.value.replace("https://","")):(this.formData.type="http",this.formData.address=this.currentItem.value.replace("http://","")),this.formData.remark=this.currentItem.remark},e.prototype.onDelete=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return t.id?(this.varList.find((function(t){return!t.id}))&&(this.exitAddItem=!0),[4,this.service.deleteVariable(t.id)]):[3,2];case 1:return e=n.sent(),(null===e||void 0===e?void 0:e.hasError)||(this.getVariableList(),this.$emit("on-refresh")),[3,3];case 2:this.varList.shift(),this.varList.length&&this.onSelectItem(this.varList[0]),n.label=3;case 3:return[2]}}))}))},e.prototype.onAddItem=function(){if(!(this.varList.length>0)||this.varList[0].id){var t={name:"",value:"",remark:"",projectId:this.projectId};this.varList.unshift(t),this.onSelectItem(this.varList[0])}},e.prototype.onCancel=function(){this.value=!1,this.keyword="",this.currentItem={}},e.prototype.onSave=function(){var t,e;return h(this,void 0,void 0,(function(){var n,i,r;return f(this,(function(o){switch(o.label){case 0:return[4,this.$refs["variable-content-form"].validate()];case 1:return n=o.sent(),n?(i={name:this.formData.name,value:"".concat(this.formData.type,"://").concat(this.formData.address),remark:this.formData.remark,projectId:this.projectId},(null===(t=this.currentItem)||void 0===t?void 0:t.id)&&(i.id=null===(e=this.currentItem)||void 0===e?void 0:e.id,i.createTime=this.currentItem.createTime),[4,this.service.saveVariable(i)]):[2];case 2:return r=o.sent(),r&&!r.hasError&&(this.$message.success("保存成功!"),this.getVariableList(),this.$emit("on-refresh")),[2]}}))}))},d([T(De)],e.prototype,"service",void 0),d([Object(pt["PropSync"])("visiable",{default:!1})],e.prototype,"value",void 0),d([Object(y["config"])({type:String,default:""})],e.prototype,"projectId",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"isAdd",void 0),d([Object(y["watch"])("value")],e.prototype,"onShowChange",null),d([Object(y["watch"])("varList.length",{immediate:!0})],e.prototype,"onEmpty",null),e=d([Object(y["component"])({template:n("8962"),components:{}})],e),e}(y["Component"]),Be=Fe,ze=(n("fe54"),n("0ddb"),function(){function t(){this.info={},this.json="",this.queryParams=[],this.formParams=[],this.requestHeaders=[],this.preScripts=[],this.postScripts=[],this.eventScripts=[],this.convertConfig=new Ue,this.fieldMappings=[],this.authentication=new Ve}return t}()),Ve=function(){function t(){this.type="OAuth2",this.content="",this.location="",this.locationKey="",this.id=""}return t}(),Ue=function(){function t(){this.convertRoot="",this.successCodePath="",this.successCode=""}return t}(),He=function(){function t(){this.id="",this.paramPath="",this.originalParamPath="",this.name="",this.valueType="",this.checked=!1}return t}(),Ge=function(){function t(){this.id="",this.projectId="",this.apiId="",this.eventType="Previous",this.type="Groovy",this.content=""}return t}(),Ke=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.eventType="Post",e}return u(e,t),e}(Ge),Qe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.editor={},e}return u(e,t),e.prototype.onEditorInited=function(t){this.editor=t},e.prototype.resizeEditor=function(){this.editor.resize&&this.editor.resize()},d([Object(y["config"])({default:!0})],e.prototype,"lengthwise",void 0),d([Object(y["watch"])("lengthwise")],e.prototype,"resizeEditor",null),e=d([Object(y["component"])({})],e),e}(y["Component"]),Je=Qe,We=(n("d928"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.scriptData={},e.tempScriptData={},e.viewMax=!1,e.model=new Ge,e.key="preScripts",e.diyKeywordList=[],e.refreshEditor=!0,e.keyword="",e.errorMap=new Map,e.onFilter=_e()((function(){e.filterTypeList()}),300),e}return u(e,t),e.prototype.mounted=function(){var t=this;this.getScript(),this.$subscribe("api://project-detail-max",(function(){t.refreshEditor=!t.refreshEditor,t.refreshEditor&&setTimeout((function(){t.displayError(t.errorLine)}),5)}));var e=document.getElementsByClassName("ace_scrollbar")[0];e.addEventListener("scroll",(function(){t.displayError(t.errorLine)}))},e.prototype.handleError=function(t){var e=this;setTimeout((function(){e.displayError(t)}),5)},e.prototype.displayError=function(t){var e=this,n=document.getElementsByClassName("ace_gutter-cell");this.errorMap.forEach((function(t,e){var i,r=null===(i=n[t])||void 0===i?void 0:i.firstElementChild;r&&n[t].removeChild(r)})),this.errorMap.clear(),(null===t||void 0===t?void 0:t.length)&&t.forEach((function(t){null===n||void 0===n||n.forEach((function(n,i){if((null===n||void 0===n?void 0:n.innerHTML)===t+""){var r=n,o=document.createElement("i");o.className="iconfont icon-a-cuowutishi1",r.insertBefore(o,r.firstChild),e.errorMap.set(t,i)}}))}))},e.prototype.getScript=function(){var t,e;return h(this,void 0,void 0,(function(){var n,i;return f(this,(function(r){switch(r.label){case 0:return[4,this.service.preScript()];case 1:return n=r.sent(),this.scriptData=n||{},this.scriptData.group=null===(t=this.scriptData.group)||void 0===t?void 0:t.map((function(t){return p(p({},t),{expand:!0})})),this.tempScriptData=this.scriptData.$clone(),i=[],null===(e=this.scriptData)||void 0===e||e.group.forEach((function(t){"业务案例"!==t.name&&t.list.forEach((function(e){i.push({meta:t.name,caption:e.code,value:e.code,score:1})}))})),this.diyKeywordList=i,[2]}}))}))},e.prototype.onClickItem=function(t){this.editor.insert(t.code),this.editor.focus()},Object.defineProperty(e.prototype,"script",{get:function(){return this.interfaceModel[this.key][0]||this.interfaceModel[this.key].push(this.model),this.interfaceModel[this.key][0].content},set:function(t){this.interfaceModel[this.key][0].content=t},enumerable:!1,configurable:!0}),e.prototype.filterTypeList=function(){var t=this;if(this.keyword){var e=this.scriptData.group.map((function(e){return p(p({},e),{list:e.list.filter((function(e){return-1!==e.name.indexOf(t.keyword)}))})}));this.tempScriptData.group=e.filter((function(t){return t.list.length}))}else this.tempScriptData=this.scriptData.$clone()},e.prototype.onQuickGroupClick=function(t){var e,n;null===(e=this.scriptData.group)||void 0===e||e.forEach((function(e){t.name===e.name&&(e.expand=!e.expand)})),null===(n=this.tempScriptData.group)||void 0===n||n.forEach((function(e){t.name===e.name&&(e.expand=!e.expand)}))},e.prototype.onRun=function(){this.$emit("on-script-run")},e.prototype.onSearch=function(){this.editor&&this.editor.execCommand("find")},e.prototype.onSave=function(){this.$emit("on-script-save")},e.prototype.onViewMax=function(){this.viewMax=!this.viewMax,this.$emit("on-script-max",this.viewMax)},d([Object(y["config"])({default:function(){return new ze}})],e.prototype,"interfaceModel",void 0),d([T(De)],e.prototype,"service",void 0),d([Object(y["config"])({default:null})],e.prototype,"errorLine",void 0),d([Object(y["watch"])("errorLine",{immediate:!0})],e.prototype,"handleError",null),e=d([Object(y["component"])({template:n("8ab8"),components:{"u-editor":mt}})],e),e}(Je)),Ye=We,Xe=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.key="postScripts",e.model=new Ke,e}return u(e,t),e.prototype.getScript=function(){var t;return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.postScript()];case 1:return e=n.sent(),this.scriptData=e||{},this.scriptData.group=null===(t=this.scriptData.group)||void 0===t?void 0:t.map((function(t){return p(p({},t),{expand:!0})})),this.tempScriptData=this.scriptData.$clone(),[2]}}))}))},e=d([Object(y["component"])({})],e),e}(Ye),Ze=Xe,tn=(n("a6c3"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.option={showPrintMargin:!1,wrap:"free",fontSize:15},e}return u(e,t),e.prototype.editorInit=function(t){n("1cdf"),n("9842"),n("0e0c"),n("1e82"),n("c889"),n("64d5"),n("91e1"),n("3fb3"),n("8214"),this.$emit("inited",t)},d([Object(pt["PropSync"])("value")],e.prototype,"code",void 0),d([Object(ut["config"])({default:"json"})],e.prototype,"lang",void 0),e=d([Object(ut["component"])({template:n("35e3"),components:{editor:ht.a}})],e),e}(ut["Component"])),en=tn,nn=(n("aba0"),function(){function t(){this.content="",this.originalContent="",this.requestHeaders={},this.responseHeaders={},this.cookies={},this.errorMessage="",this.output=""}return t}()),rn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.responseSettingTypeList=[{name:"content",title:"响应"},{name:"responseHeaders",title:"响应头",num:0},{name:"requestHeaders",title:"请求头",num:0},{name:"cookies",title:"Cookies",num:0},{name:"output",title:"输出",num:0}],e.lang="json",e.contentType="originalContent",e.expand=!0,e.headerColumns=[{title:"Key(键名)",key:"key"},{title:"Value(键值)",key:"value"}],e.active=e.responseSettingTypeList[0],e}return u(e,t),e.prototype.onClickResponseSettingTpye=function(t){this.active=t},Object.defineProperty(e.prototype,"content",{get:function(){if(this.response.errorMessage)return this.response.errorMessage;if(!this.response.originalContent)return"";var t="";try{t=JSON.stringify(JSON.parse(this.response[this.contentType]),null,4)}catch(e){return console.log(e),this.response[this.contentType]}return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"output",{get:function(){return this.response.output||""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"responseHeaders",{get:function(){var t=this;return Object.keys(this.response.responseHeaders).map((function(e){return{key:e,value:t.response.responseHeaders[e]}}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"requestHeaders",{get:function(){var t=this;return Object.keys(this.response.requestHeaders).map((function(e){return{key:e,value:t.response.requestHeaders[e]}}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cookies",{get:function(){var t=this.response.responseHeaders["Set-Cookie"]||"";return t.$isArray()?t.map((function(t,e){return{key:e,value:t}})):(null===t||void 0===t?void 0:t.length)>0?t.split(";").map((function(t){var e=t.split("="),n=e[0],i=e[1];return{key:n,value:i}})):void 0},enumerable:!1,configurable:!0}),e.prototype.onChangeLang=function(t){this.lang=t},e.prototype.init=function(){var t=this;this.expand=!0,this.responseSettingTypeList.forEach((function(e){var n;if("content"!==e.name){var i=t.response[e.name]||{};e.num=i.$isArray()?i.length:Object.keys(i).length,"cookies"===e.name&&(e.num=null===(n=t.cookies)||void 0===n?void 0:n.length)}})),this.response.code&&200!==this.response.code&&(this.active=this.responseSettingTypeList[4]),this.response.code&&200===this.response.code&&(this.active=this.responseSettingTypeList[0])},e.prototype.onClickCollapse=function(){var t=this;this.$publish("api://project-detail-max"),this.expand=!this.expand,setTimeout((function(){t.$publish("api://project-detail-max")}),5)},d([Object(y["config"])({default:function(){return new nn}})],e.prototype,"response",void 0),d([Object(y["watch"])("response",{immediate:!0,deep:!1})],e.prototype,"init",null),e=d([Object(y["component"])({template:n("2c48"),components:{"u-editor":en}})],e),e}(Je),on=rn,an=(n("8a77"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.loading=!1,e.selections=[],e.debounceUpdateFieldMappings=_e()(e.updateFieldMappings,500),e.columns=[{type:"selection",width:60,align:"center"},{title:"读取字段的JSON路径",maxWidth:350,minWidth:120,align:"left",slot:"path"},{title:"输出字段命名和类型",minWidth:300,align:"left",slot:"name"},{title:"操作",width:80,align:"left",slot:"action"}],e.valueTypeList=[],e.dataList=[],e.lastDataList=[],e}return u(e,t),e.prototype.mounted=function(){return h(this,void 0,void 0,(function(){return f(this,(function(t){return this.interfaceModel.convertConfig=this.interfaceModel.convertConfig||new Ue,this.getValueTypeList(),this.initDataList(),[2]}))}))},e.prototype.getValueTypeList=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getEnumByType("dataType")];case 1:return t=e.sent(),this.valueTypeList=(null===t||void 0===t?void 0:t.result)||[],[2]}}))}))},e.prototype.initDataList=function(){var t,e=this;(null===(t=this.interfaceModel.fieldMappings)||void 0===t?void 0:t.length)&&(this.dataList=this.interfaceModel.fieldMappings.sort((function(t,e){var n;return null===(n=t.paramPath)||void 0===n?void 0:n.localeCompare(e.paramPath)})),this.lastDataList=this.dataList.$clone()),this.$subscribe("api://project-detail-save",(function(){e.lastDataList=e.dataList.$clone()}))},e.prototype.onParse=function(){var t,e;return h(this,void 0,void 0,(function(){var n,i,r,o;return f(this,(function(a){switch(a.label){case 0:return this.response.originalContent?(this.loading=!0,[4,this.service.parseResponse2Fields(this.response.originalContent,null===(t=this.interfaceModel.convertConfig)||void 0===t?void 0:t.convertRoot)]):(this.$Message.error("请先获取转换前参数!"),[2]);case 1:return n=a.sent(),(null===n||void 0===n?void 0:n.hasError)?[2]:(i=(null===(e=null===n||void 0===n?void 0:n.result)||void 0===e?void 0:e.fieldMappings)||[],r=this.interfaceModel.fieldMappings,o=new Set(r.map((function(t){return t.originalParamPath}))),i.forEach((function(t){if(o.has(t.originalParamPath)){var e=r.find((function(e){return e.originalParamPath===t.originalParamPath}));Object.assign(t,e)}})),this.dataList=i,this.debounceUpdateFieldMappings(),this.loading=!1,[2])}}))}))},e.prototype.onChangeChecked=function(t){this.selections=t,this.debounceUpdateFieldMappings()},e.prototype.batchDelete=function(){var t=this;this.selections.length&&(this.selections.map((function(e){var n=t.dataList.findIndex((function(t){return t.name===e.name}));n>-1&&t.dataList.splice(n,1)})),this.selections=[],this.debounceUpdateFieldMappings())},e.prototype.onAdd=function(){this.dataList.unshift(new He),this.debounceUpdateFieldMappings()},e.prototype.onDelete=function(t){this.dataList.splice(t,1),this.debounceUpdateFieldMappings()},e.prototype.onReset=function(){this.dataList=this.lastDataList.$clone(),this.debounceUpdateFieldMappings()},e.prototype.updateFieldMappings=function(){this.interfaceModel.fieldMappings=this.dataList},d([T(De)],e.prototype,"service",void 0),d([Object(y["config"])({default:function(){return new ze}})],e.prototype,"interfaceModel",void 0),d([Object(y["config"])({default:function(){return new nn}})],e.prototype,"response",void 0),e=d([Object(y["component"])({template:n("236b"),components:{}})],e),e}(y["Component"])),sn=an,cn=(n("bff7"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.columns=[{title:" ",slot:"selection",width:60,align:"center"},{title:"参数名",align:"left",slot:"name"},{title:"参数值",align:"left",slot:"value"},{title:"备注",align:"left",slot:"text"},{title:"操作",align:"left",slot:"action"}],e}return u(e,t),e.prototype.onDelete=function(t){this.interfaceModel.requestHeaders.splice(t,1)},e.prototype.onAdd=function(){this.interfaceModel.requestHeaders.push({name:"",value:"",text:"",disabled:!1})},e.prototype.onChangeDisabled=function(t,e){e.disabled=!t},d([Object(y["config"])({default:function(){return new ze}})],e.prototype,"interfaceModel",void 0),e=d([Object(y["component"])({template:n("22e8"),components:{}})],e),e}(y["Component"])),ln=cn,un=(n("3ad3"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.showValue=0,e}return u(e,t),e.prototype.watchValue=function(){this.showValue=this.value||this.midState?1:0},e.prototype.onChange=function(){this.$emit("onChange")},d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"value",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"midState",void 0),d([Object(y["watch"])("value",{immediate:!0}),Object(y["watch"])("midState",{immediate:!0})],e.prototype,"watchValue",null),e=d([Object(y["component"])({template:n("f9a4"),components:{}})],e),e}(y["Component"])),pn=un,dn=(n("8137"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=[],e.scriptDocShow=!1,e.scriptDoc="",e.commonColuns=[{title:"参数名",slot:"name",align:"left"},{title:"参数值",slot:"valueContent",align:"left"},{title:"必填",slot:"required",width:95,align:"left",renderHeader:function(t,e){return t("div",{class:"th-tip"},[t("i-poptip",{props:{trigger:"hover",content:"参数启用同时非必填时,若调用方未传具体参数值,将使用当前定义的参数值。",placement:"top",transfer:!0,"word-wrap":!0}},[t("i-icon",{props:{type:"ios-information-circle-outline"}})]),t("span","必填")])}},{title:"备注",slot:"text",align:"left"},{title:"操作",slot:"action",align:"left",width:300}],e.queryDataList=[],e.requestBodyTypeList=[],e.hasQueryChecked=!1,e.hasQueryMidChecked=!1,e.hasBodyChecked=!1,e.hasBodyMidChecked=!1,e.typeMap={Form:"FormData",X_www_form_urlencoded:"FormUrlEncoded"},e.formParamTypeList=[{name:"String",text:"Text"},{name:"FILE",text:"File"}],e.formParamsIndex=0,e.currentFormParamRow={},e}return u(e,t),Object.defineProperty(e.prototype,"paramColumns",{get:function(){var t=this;return m([{slot:"selection",width:100,align:"center",title:"启用",renderHeader:function(e,n){return e(pn,{props:{value:t.hasQueryChecked,midState:t.hasQueryMidChecked},on:{onChange:t.onQueryChange}})}}],this.commonColuns,!0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bodyColumns",{get:function(){var t=this;return m([{slot:"selection",width:100,align:"center",title:"启用",renderHeader:function(e,n){return e(pn,{props:{value:t.hasBodyChecked,midState:t.hasBodyMidChecked},on:{onChange:t.onBodyChange}})}}],this.commonColuns,!0)},enumerable:!1,configurable:!0}),e.prototype.getExpand=function(t){return this.value.includes(t)},e.prototype.onDelete=function(t,e){var n=t.findIndex((function(t){return t.indexFlag===e}));t.splice(n,1),this.buildQueryCheckedState()},e.prototype.buildQueryCheckedState=function(){for(var t=0,e=0,n=this.queryDataList;e<n.length;e++){var i=n[e];i.disabled||(t+=1)}t>0&&t!==this.queryDataList.length?(this.hasQueryChecked=!0,this.hasQueryMidChecked=!0):(this.hasQueryChecked=t>0,this.hasQueryMidChecked=!1)},e.prototype.buildBodyCheckedState=function(){for(var t=0,e=0,n=this.bodyDataList;e<n.length;e++){var i=n[e];i.disabled||(t+=1)}t>0&&t!==this.bodyDataList.length?(this.hasBodyChecked=!0,this.hasBodyMidChecked=!0):(this.hasBodyChecked=t>0,this.hasBodyMidChecked=!1)},e.prototype.onUp=function(t,e){if(0!==e){var n=t.splice(e,1);t.splice(e-1,0,n[0])}},e.prototype.onDown=function(t,e){if(e!==t.length-1){var n=t.splice(e,1);t.splice(e+1,0,n[0])}},e.prototype.onTop=function(t,e){var n=t.splice(e,1);t.unshift(n[0])},e.prototype.onBottom=function(t,e){var n=t.splice(e,1);t.push(n[0])},e.prototype.onDeleteBodyParam=function(t,e){var n=t.findIndex((function(t){return t.indexFlag===e}));t.splice(n,1),this.buildBodyCheckedState()},e.prototype.onUpBodyParam=function(t,e){var n=t.findIndex((function(t){return t.id===e}));if(0!==n){var i=t.splice(n,1);t.splice(n-1,0,i[0])}},e.prototype.onDownBodyParam=function(t,e){var n=t.findIndex((function(t){return t.id===e}));if(n!==t.length-1){var i=t.splice(n,1);t.splice(n+1,0,i[0])}},e.prototype.onTopBodyParam=function(t,e){var n=t.findIndex((function(t){return t.id===e})),i=t.splice(n,1);t.unshift(i[0])},e.prototype.onBottomBodyParam=function(t,e){var n=t.findIndex((function(t){return t.id===e})),i=t.splice(n,1);t.push(i[0])},e.prototype.onChangeDisabled=function(t,e,n){e.disabled=!t,"query"===n?this.buildQueryCheckedState():this.buildBodyCheckedState()},e.prototype.init=function(){var t,e,n=this;(null===(e=null===(t=this.interfaceModel)||void 0===t?void 0:t.info)||void 0===e?void 0:e.id)&&(this.interfaceModel.queryParams.forEach((function(t){t.indexFlag||(t.indexFlag=n.formParamsIndex+++"_"+n.interfaceModel.info.id),t._checked=!t.disabled})),this.queryDataList=this.interfaceModel.queryParams,this.interfaceModel.formParams.forEach((function(t){t.indexFlag||(t.indexFlag=n.formParamsIndex+++"_"+n.interfaceModel.info.id),t._checked=!t.disabled})),this.buildQueryCheckedState(),this.buildBodyCheckedState())},Object.defineProperty(e.prototype,"bodyDataList",{get:function(){var t=this.typeMap[this.bodyType];return this.interfaceModel.formParams.filter((function(e){return e.type===t}))},set:function(t){this.interfaceModel.formParams=t},enumerable:!1,configurable:!0}),e.prototype.onAddRequestParam=function(){this.queryDataList.push({indexFlag:this.formParamsIndex+++"_"+this.interfaceModel.info.id,name:"",text:"",type:"QueryString",valueContent:"",requireFlag:0,disabled:!1,_checked:!0}),this.buildQueryCheckedState()},e.prototype.onAddBodyParam=function(){this.interfaceModel.formParams.push({indexFlag:this.formParamsIndex+++"_"+this.interfaceModel.info.id,fileName:"",name:"",text:"",type:this.typeMap[this.bodyType],valueContent:"",requireFlag:0,_checked:!0,disabled:!1,valueType:"String"}),this.buildBodyCheckedState()},Object.defineProperty(e.prototype,"bodyType",{get:function(){var t,e;return(null===(e=null===(t=this.interfaceModel)||void 0===t?void 0:t.info)||void 0===e?void 0:e.requestBodyType)||"Form"},set:function(t){this.interfaceModel.info.requestBodyType=t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFormData",{get:function(){return"Form"===this.bodyType||"X_www_form_urlencoded"===this.bodyType},enumerable:!1,configurable:!0}),e.prototype.onBeautify=function(){this.interfaceModel.json&&(this.interfaceModel.json=JSON.stringify(JSON.parse(this.interfaceModel.json),null,4))},e.prototype.mounted=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getEnumByType("requestBodyType")];case 1:return t=e.sent(),this.requestBodyTypeList=(null===t||void 0===t?void 0:t.result)||[],this.interfaceModel&&this.interfaceModel.info&&(this.interfaceModel.info.requestBodyType=this.interfaceModel.info.requestBodyType||(this.requestBodyTypeList.length?this.requestBodyTypeList[0].name:"Form")),[2]}}))}))},e.prototype.onChangeFormParamType=function(t,e){this.interfaceModel.formParams.forEach((function(t){if(t.indexFlag===e.indexFlag)return t.valueType=e.valueType}))},e.prototype.onClickRow=function(t){this.currentFormParamRow=t},e.prototype.onImport=function(t){return h(this,void 0,void 0,(function(){var e=this;return f(this,(function(n){return this.formData.append(this.currentFormParamRow.indexFlag,t),this.bodyDataList=this.interfaceModel.formParams.map((function(n){return n.indexFlag===e.currentFormParamRow.indexFlag&&(n.fileName=t.name,n.valueContent=null),p({},n)})),[2,Promise.reject(!1)]}))}))},e.prototype.onClearFile=function(t){this.formData.delete(t.indexFlag),this.bodyDataList=this.interfaceModel.formParams.map((function(e){return e.indexFlag===t.indexFlag&&(e.fileName=""),p({},e)}))},e.prototype.onQuerySelectionChange=function(t){var e=this;this.queryDataList.forEach((function(n){e.isInArray(t,n.indexFlag)?(e.$set(n,"disabled",!1),e.$set(n,"_checked",!0)):(e.$set(n,"disabled",!0),e.$set(n,"_checked",!1))}))},e.prototype.onQueryChange=function(){var t=this;this.hasQueryMidChecked||this.hasQueryChecked?this.queryDataList.forEach((function(e){t.$set(e,"disabled",!0),t.$set(e,"_checked",!1)})):this.queryDataList.forEach((function(e){t.$set(e,"disabled",!1),t.$set(e,"_checked",!0)})),this.buildQueryCheckedState()},e.prototype.onBodyChange=function(){var t=this;this.hasBodyMidChecked||this.hasBodyChecked?this.bodyDataList.forEach((function(e){t.$set(e,"disabled",!0),t.$set(e,"_checked",!1)})):this.bodyDataList.forEach((function(e){t.$set(e,"disabled",!1),t.$set(e,"_checked",!0)})),this.buildBodyCheckedState()},e.prototype.onBodySelectionChange=function(t){var e=this;this.bodyDataList.forEach((function(n){e.isInArray(t,n.indexFlag)?(e.$set(n,"disabled",!1),e.$set(n,"_checked",!0)):(e.$set(n,"disabled",!0),e.$set(n,"_checked",!1))}))},e.prototype.isInArray=function(t,e){for(var n=!1,i=0,r=t;i<r.length;i++){var o=r[i];if(o.indexFlag===e){n=!0;break}}return n},e.prototype.showScriptDoc=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getScriptDoc1()];case 1:return t=e.sent(),t?(this.scriptDoc=t,this.scriptDocShow=!0):this.$message.error("获取说明文档失败"),[2]}}))}))},d([Object(y["config"])({default:function(){return new ze}})],e.prototype,"interfaceModel",void 0),d([Object(y["config"])({default:function(){return new FormData}})],e.prototype,"formData",void 0),d([T(De)],e.prototype,"service",void 0),d([Object(y["watch"])("interfaceModel",{immediate:!0})],e.prototype,"init",null),e=d([Object(y["component"])({template:n("7640"),components:{"u-editor":en,"u-doc-modal":st}})],e),e}(Je)),hn=dn,fn=(n("2a79"),n("b156"),n("61ef"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),d([Object(y["config"])({default:""})],e.prototype,"tips",void 0),d([Object(y["config"])({default:""})],e.prototype,"labelTitle",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"labelColon",void 0),e=d([Object(y["component"])({template:n("2f53")})],e),e}(y["Component"])),mn=fn,yn=(n("1a93"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.securityList=[],e.keyword="",e.currentSecurityItem={},e.securityTypeList=[],e.grantTypeList=[],e.tokenLocationTypeList=[],e.isAddOnce=!1,e.exitAddItem=!1,e.scriptDocShow=!1,e.scriptDoc="",e.diyKeywordList=[],e.isEmpty=!0,e.onFilter=_e()((function(){e.getSecurityList()}),300),e}return u(e,t),Object.defineProperty(e.prototype,"show",{get:function(){return this.value},set:function(t){this.$emit("input",t)},enumerable:!1,configurable:!0}),e.prototype.onShowChange=function(t){return h(this,void 0,void 0,(function(){return f(this,(function(e){return t?(this.isAddOnce=this.isAdd,this.getSecurityTypeList(),this.getSecurityList(),this.getTokenLocationTypeList(),this.getGrantTypeList(),this.queryDiyKeyword()):(this.keyword="",this.currentSecurityItem={}),[2]}))}))},e.prototype.queryDiyKeyword=function(){return h(this,void 0,void 0,(function(){var t,e,n;return f(this,(function(i){switch(i.label){case 0:return[4,this.service.preScript()];case 1:return t=i.sent(),e=t||{},n=[],null===e||void 0===e||e.group.forEach((function(t){"业务案例"!==t.name&&t.list.forEach((function(e){n.push({meta:t.name,caption:e.code,value:e.code,score:1})}))})),this.diyKeywordList=n,[2]}}))}))},e.prototype.getSecurityTypeList=function(){return h(this,void 0,void 0,(function(){var t,e;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.getEnumByType("authenticationType")];case 1:return t=n.sent(),e=(null===t||void 0===t?void 0:t.result)||[],this.securityTypeList=e.filter((function(t){return"None"!==t.name})),[2]}}))}))},e.prototype.getTokenLocationTypeList=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getEnumByType("tokenLocationType")];case 1:return t=e.sent(),this.tokenLocationTypeList=(null===t||void 0===t?void 0:t.result)||[],[2]}}))}))},e.prototype.getGrantTypeList=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getEnumByType("grantType")];case 1:return t=e.sent(),this.grantTypeList=(null===t||void 0===t?void 0:t.result)||[],[2]}}))}))},e.prototype.getSecurityList=function(){return h(this,void 0,void 0,(function(){var t,e,n,i=this;return f(this,(function(r){switch(r.label){case 0:return[4,this.service.getSecurityList({name:this.keyword,projectId:this.projectID})];case 1:return t=r.sent(),(null===t||void 0===t?void 0:t.hasError)||(e=t.result||[],this.securityList=e.map((function(t){return"GROOVY_SCRIPT"!==t.type?t.content=JSON.parse(t.content):(t.scriptContent=t.content,t.content={}),t})),(this.isAddOnce||this.exitAddItem)&&(this.onAddItem(),this.isAddOnce=!1,this.exitAddItem=!1),this.currentSecurityItem&&this.currentSecurityItem.id?(n=this.securityList.filter((function(t){return t.id===i.currentSecurityItem.id})),this.onSelectSecurityItem(n[0]||this.securityList[0])):this.securityList.length&&this.onSelectSecurityItem(this.securityList[0])),[2]}}))}))},e.prototype.onSelectSecurityItem=function(t){this.currentSecurityItem=t.$clone()},e.prototype.onEmpty=function(t){this.isEmpty=!!t},e.prototype.onDelete=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return t.id?(this.securityList.find((function(t){return!t.id}))&&(this.exitAddItem=!0),[4,this.service.deleteSecurityItem(t.id)]):[3,2];case 1:return e=n.sent(),(null===e||void 0===e?void 0:e.hasError)||this.getSecurityList(),[3,3];case 2:this.securityList.shift(),n.label=3;case 3:return this.securityList.length&&this.onSelectSecurityItem(this.securityList[0]),this.$publish("api://security-list-refresh"),[2]}}))}))},e.prototype.onAddItem=function(){if(!(this.securityList.length>0)||this.securityList[0].id){var t={name:"",type:"GROOVY_SCRIPT",content:{},scriptContent:""};this.securityList.unshift(t),this.currentSecurityItem=this.securityList[0].$clone()}},e.prototype.onCancel=function(){this.show=!1,this.keyword="",this.currentSecurityItem={}},e.prototype.onSave=function(){return h(this,void 0,void 0,(function(){var t,e;return f(this,(function(n){switch(n.label){case 0:return t={projectId:this.projectID,name:this.currentSecurityItem.name,type:this.currentSecurityItem.type},"GROOVY_SCRIPT"===this.currentSecurityItem.type?(t.location=null,t.locationKey=null,t.content=this.currentSecurityItem.scriptContent):(t.location=this.currentSecurityItem.location,t.locationKey=this.currentSecurityItem.locationKey,t.content={},"Api_Key"===this.currentSecurityItem.type?t.content.key=this.currentSecurityItem.content.key:"Base_Auth"===this.currentSecurityItem.type?(t.content.username=this.currentSecurityItem.content.username,t.content.password=this.currentSecurityItem.content.password):"OAuth2"===this.currentSecurityItem.type&&(t=p(p({},t),this.currentSecurityItem),"password"!==this.currentSecurityItem.content.grantType&&(delete t.content.password,delete t.content.username)),t.content=JSON.stringify(t.content)),t.name?t.type?(e=null,this.currentSecurityItem.id?(t.id=this.currentSecurityItem.id,t.createTime=this.currentSecurityItem.createTime,[4,this.service.updateSecurityItem(t)]):[3,2]):[2,this.$message.warning("请选择授权类型!")]:[2,this.$message.warning("请填写授权名称!")];case 1:return e=n.sent(),[3,4];case 2:return[4,this.service.addSecurityItem(t)];case 3:e=n.sent(),n.label=4;case 4:return(null===e||void 0===e?void 0:e.hasError)||(this.getSecurityList(),this.$publish("api://security-list-refresh")),[2]}}))}))},e.prototype.showScriptDoc=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getScriptDoc()];case 1:return t=e.sent(),t?(this.scriptDoc=t,this.scriptDocShow=!0):this.$message.error("获取帮助文档失败"),[2]}}))}))},d([T(De)],e.prototype,"service",void 0),d([Object(y["config"])({type:Boolean,default:!0})],e.prototype,"value",void 0),d([Object(y["config"])({type:String,default:""})],e.prototype,"projectID",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"isAdd",void 0),d([Object(y["watch"])("show")],e.prototype,"onShowChange",null),d([Object(y["watch"])("securityList.length",{immediate:!0})],e.prototype,"onEmpty",null),e=d([Object(y["component"])({template:n("3bf8"),components:{"u-tips-form-label":mn,"u-doc-modal":st,"u-editor":mt}})],e),e}(y["Component"])),vn=yn,gn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.securityList=[],e.currentSecurityItem={},e.currentSecurityItemId="",e.showSecurity=!1,e.isAdd=!0,e.grantTypeList=[],e}return u(e,t),e.prototype.mounted=function(){var t;return h(this,void 0,void 0,(function(){var e=this;return f(this,(function(n){switch(n.label){case 0:return this.getGrantTypeList(),[4,this.getSecurityList()];case 1:return n.sent(),this.currentSecurityID?this.currentSecurityItemId=this.currentSecurityID:(null===(t=this.interfaceModel.authentication)||void 0===t?void 0:t.id)&&(this.currentSecurityItemId=this.interfaceModel.authentication.id),this.currentSecurityItem=this.securityList.find((function(t){return t.id===e.currentSecurityItemId}))||{},[2]}}))}))},e.prototype.getGrantTypeList=function(){return h(this,void 0,void 0,(function(){var t,e=this;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.getEnumByType("grantType")];case 1:return t=n.sent(),this.grantTypeList=(null===t||void 0===t?void 0:t.result)||[],this.$subscribe("api://security-list-refresh",(function(t){return h(e,void 0,void 0,(function(){var e,n,i,r=this;return f(this,(function(o){switch(o.label){case 0:return e=t.get("isBatchRefresh")||!1,[4,this.getSecurityList()];case 1:return o.sent(),this.currentSecurityID?this.currentSecurityItemId=this.currentSecurityID:(null===(n=this.interfaceModel.authentication)||void 0===n?void 0:n.id)&&(this.currentSecurityItemId=this.interfaceModel.authentication.id),(null===(i=this.interfaceModel.authentication)||void 0===i?void 0:i.id)&&e&&(this.currentSecurityItemId=this.interfaceModel.authentication.id),this.currentSecurityItem=this.securityList.find((function(t){return t.id===r.currentSecurityItemId}))||{},this.onChangeSecurityItem(this.currentSecurityItemId),[2]}}))}))})),[2]}}))}))},e.prototype.findGrantTypeText=function(t){var e=this.grantTypeList.find((function(e){return e.name===t}));return e?e.text:""},e.prototype.getSecurityList=function(){return h(this,void 0,void 0,(function(){var t,e;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.getSecurityList({projectId:this.projectID})];case 1:return t=n.sent(),(null===t||void 0===t?void 0:t.hasError)||(e=t.result||[],this.securityList=e.map((function(t){return"GROOVY_SCRIPT"!==t.type?t.content=JSON.parse(t.content):(t.scriptContent=t.content,t.content={}),t}))),[2]}}))}))},e.prototype.onChangeSecurityItem=function(t){this.$emit("on-current-id",t),t?(this.currentSecurityItem=this.securityList.find((function(e){return e.id===t})),this.interfaceModel.authentication=this.interfaceModel.authentication||new Ve,this.interfaceModel.authentication.type=this.currentSecurityItem.type,this.interfaceModel.authentication.location=this.currentSecurityItem.location,this.interfaceModel.authentication.locationKey=this.currentSecurityItem.locationKey,"GROOVY_SCRIPT"===this.currentSecurityItem.type?this.interfaceModel.authentication.content=this.currentSecurityItem.scriptContent:this.interfaceModel.authentication.content=JSON.stringify(this.currentSecurityItem.content)):this.interfaceModel.authentication={type:"",location:"",locationKey:"",content:"",id:""},this.interfaceModel.info.authId=this.currentSecurityItem.id},e.prototype.onAddSecurityItem=function(){this.$refs.addSecuritySelect.visible=!1,this.showSecurity=!0},e.prototype.onClear=function(){this.currentSecurityItem={}},d([T(De)],e.prototype,"service",void 0),d([Object(y["config"])({default:function(){return new ze}})],e.prototype,"interfaceModel",void 0),d([Object(y["config"])({type:String,default:""})],e.prototype,"projectID",void 0),d([Object(y["config"])({type:String,default:""})],e.prototype,"currentSecurityID",void 0),e=d([Object(y["component"])({template:n("3de4"),components:{"u-tips-form-label":mn,"u-security-modal":vn}})],e),e}(y["Component"]),bn=gn,wn=(n("8b65"),n("0a2e"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.columns=[{title:"次数",key:"header",width:"100"},{title:"5",key:"five"},{title:"6",key:"six"},{title:"7",key:"seven"},{title:"8",key:"eight"},{title:"9",key:"nine"},{title:"10",key:"ten"}],e.data=[{header:"覆盖范围",five:"1h",six:"2h",seven:"4h",eight:"8h",nine:"16h",ten:"32h"}],e}return u(e,t),d([Object(y["config"])({default:""})],e.prototype,"tips",void 0),d([Object(y["config"])({default:""})],e.prototype,"labelTitle",void 0),d([Object(y["config"])({default:520})],e.prototype,"width",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"labelColon",void 0),e=d([Object(y["component"])({template:n("dc41")})],e),e}(y["Component"])),xn=wn;(function(t){t["Private"]="0",t["Public"]="1",t["Protected"]="2"})(fe||(fe={})),function(t){t["PlateForm"]="1",t["Email"]="2",t["CopyDisk"]="3",t["MediumExchange"]="4"}(me||(me={})),function(t){t["ElectronicFile"]="1",t["ElectronicExcel"]="2",t["Database"]="3",t["GraphicImage"]="4",t["StreamingMedia"]="5"}(ye||(ye={})),function(t){t["Realtime"]="1",t["Daily"]="2",t["Weekly"]="3",t["Monthly"]="4",t["Quarterly"]="5",t["Annually"]="6",t["Irregular"]="7",t["Other"]="8"}(ve||(ve={})),function(t){t["Unreleased"]="0",t["Released"]="1"}(ge||(ge={}));var Sn=[{value:0,name:"否"},{value:1,name:"是"}],In=[{value:6,name:"成功请求"},{value:2,name:"失败请求"},{value:5,name:"请求耗时"}];n("06a8");function kn(t){var e=Cn();return"".concat(e,"/api/exchange/").concat(t)}function Cn(){var t=window.commonSetting.baseUrl||"",e="";return e=t&&t.startsWith("https://")||t.startsWith("http://")?"".concat(t):t&&t.startsWith("/")?"".concat(window.location.origin).concat(t):t?"".concat(window.location.origin,"/").concat(t):"".concat(window.location.origin),e}var jn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.egovaApiTree=[],e.projectList=[],e.model={name:"",code:"",categoryId:"",retryTimes:"",description:"",enableRetry:"false",authFlag:1,logSavingEnabled:2},e.apiModel={},e.apiTree=[],e.apiColumns=[{title:"参数名称",key:"name",align:"left",ellipsis:!0,tooltip:!0},{title:"参数值",key:"valueContent",align:"left",ellipsis:!0,tooltip:!0}],e.apiParamList=[],e.isRetryList=[{name:"是",value:"true"},{name:"否",value:"false"}],e.statusCodeList=[{name:"默认(502,504)",value:"1"},{name:"自定义",value:"2"}],e.statusCode="1",e.authFlag=Sn,e.loginLevelFlag=In,e.isResourceCodeEnabled=!1,e.rulesValidate={},e.isNameValid=!1,e.isCategoryIdValid=!1,e.isCodeValid=!1,e.isDesValid=!1,e.isRetryTimesValid=!1,e.isRetryCodeValid=!1,e.isRetryTimesReadonly=!1,e.isDeatilPage=!1,e.readonly=!1,e.formTitle="流程配置详情",e.categoryList=[],e.isAdding=!1,e.proxyName="",e.proxyList=[],e.isSlowLogThresholdValid=!0,e}return u(e,t),Object.defineProperty(e.prototype,"slowLogThreshold",{get:function(){return this.readonly||!this.logSavingEnabledList.includes(5)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"logSavingEnabledList",{get:function(){var t=this.model.logSavingEnabled||0;switch(t){case 0:return[];case 1:return[6,2];case 2:return[2];case 3:return[5,6];case 4:return[2,5];case 5:return[5];case 6:return[6];case 7:return[5,2,6];default:return[2]}},set:function(t){var e,n=0;switch(e=t.reduce((function(t,e){return t+e}),0),e){case 0:case 2:case 5:case 6:n=e;break;case 8:n=1;break;case 11:n=3;break;case 7:n=4;break;case 13:n=7;break;default:n=2;break}this.model.logSavingEnabled=n,t.includes(5)?this.model.slowLogThreshold=500:(this.model.slowLogThreshold="",this.isSlowLogThresholdValid=!0)},enumerable:!1,configurable:!0}),e.prototype.onStatusCodeChange=function(t){var e=this;"2"!==t&&(this.model.retryCode="",this.isRetryCodeValid=!0,this.$nextTick((function(){e.$refs.configform&&e.$refs.configform.validateField("retryCode",(function(){}))}))),"2"===t&&this.$nextTick((function(){e.$refs.configform&&e.$refs.configform.validateField("retryCode")}))},e.prototype.changeInputStatus=function(){this.isResourceCodeEnabled=Boolean(this.model.authFlag)},Object.defineProperty(e.prototype,"url",{get:function(){return kn(this.model.code||"")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"show",{get:function(){return this.value},set:function(t){this.$emit("input",t)},enumerable:!1,configurable:!0}),e.prototype.onSave=function(){var t,e=this;this.model.logSavingEnabled&&"false"!==this.model.enableRetry||(this.isRetryTimesValid=!0),null===(t=this.$refs.configform)||void 0===t||t.validate((function(t){return h(e,void 0,void 0,(function(){var e;return f(this,(function(n){return t?(e=p(p({},this.model),this.apiModel),this.$emit("on-save",e),[2]):[2,this.$message.warning("请完善配置信息")]}))}))}))},e.prototype.onCancel=function(){this.show=!1},e.prototype.mounted=function(){return h(this,void 0,void 0,(function(){return f(this,(function(t){return this.getEgovaApiTree(),this.getProjectList(),this.getCategoryList(),this.apiModel.projectId=this.info.projectId,this.apiModel.type="API",this.rulesValidate={categoryId:[{validator:this.validateCategoryId,trigger:"blur,change"}],name:[{validator:this.validateName,required:!1,trigger:"blur,change"}],code:[{validator:this.validateCode,required:!1,trigger:"blur,change"}],description:[{validator:this.validateDescription,required:!1,trigger:"blur,change"}],retryTimes:[{validator:this.validateRetryTimes,trigger:"blur,change"}],retryCode:[{validator:this.validateRetryCode,trigger:"blur,change"}],slowLogThreshold:[{validator:this.validateSlowLogThreshold,required:!1,trigger:"blur,change"}]},[2]}))}))},e.prototype.validateSlowLogThreshold=function(t,e,n){if(this.slowLogThreshold)return this.isSlowLogThresholdValid=!0,void n();var i=Number(e);isNaN(i)||i<500?(this.isSlowLogThresholdValid=!1,n(new Error("最小为500毫秒"))):(this.isSlowLogThresholdValid=!0,n())},e.prototype.validateCategoryId=function(t,e,n){e?(this.isCategoryIdValid=!0,n()):(this.isCategoryIdValid=!1,n(new Error("请选择所属分类")))},e.prototype.validateName=function(t,e,n){var i=String(e||"").trim();i?i.length>50?(this.isNameValid=!1,n(new Error("代理名称长度不能超过50"))):(this.isNameValid=!0,n()):(this.isNameValid=!1,n(new Error("请填写代理名称,不能为空")))},e.prototype.validateCode=function(t,e,n){var i=String(e||"").trim();i?i.length>80?(this.isCodeValid=!1,n(new Error("接口编码长度不能超过80"))):(this.isCodeValid=!0,n()):(this.isCodeValid=!1,n(new Error("请填写接口编码,不能为空")))},e.prototype.validateDescription=function(t,e,n){e&&e.length>150?(this.isDesValid=!1,n(new Error("描述长度不能超过150"))):(this.isDesValid=!0,n())},e.prototype.validateRetryTimes=function(t,e,n){if("false"===this.model.enableRetry)return this.isRetryTimesValid=!0,void n();var i=/(^[1-9]\d*$)/;i.test(e)?(this.isRetryTimesValid=!0,n()):(this.isRetryTimesValid=!1,n(new Error("请输入正整数")))},e.prototype.validateRetryCode=function(t,e,n){if("2"===this.statusCode)if(e&&""!==e.trim()){var i=e.split(",").map((function(t){return t.trim()})),r=i.every((function(t){return/^\d+$/.test(t)}));r?(this.isRetryCodeValid=!0,n()):(this.isRetryCodeValid=!1,n(new Error("格式不正确,为数字或英文逗号分隔的数字")))}else this.isRetryCodeValid=!1,n(new Error("请输入状态码"));else this.isRetryCodeValid=!0,n()},e.prototype.onLogSavingEnabledChange=function(t){this.model.logSavingEnabled=t},e.prototype.getCategoryList=function(){return h(this,void 0,void 0,(function(){var t,e;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.getCategoryList()];case 1:return t=n.sent(),t&&!t.hasError&&(e=(null===t||void 0===t?void 0:t.result)||[],e.length>0?(e.forEach((function(t){t.parentId||(t.parentId="virtual_root_directory")})),this.categoryList=[p(p({},e[0]),{id:"virtual_root_directory",children:e,name:"全部",expand:!0,parentId:null,parentName:null})]):this.categoryList=[{id:"virtual_root_directory",children:e,name:"全部",expand:!0,parentId:null,parentName:null}]),[2]}}))}))},e.prototype.getEgovaApiTree=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getEgovaApiTree()];case 1:return t=e.sent(),this.egovaApiTree=(null===t||void 0===t?void 0:t.result)||[],[2]}}))}))},e.prototype.getProjectList=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getProjectList()];case 1:return t=e.sent(),this.projectList=(null===t||void 0===t?void 0:t.result)||[],[2]}}))}))},e.prototype.freshApiTree=function(){var t,e;return h(this,void 0,void 0,(function(){var n,i;return f(this,(function(r){switch(r.label){case 0:if(!this.proxyName){try{null===(e=null===(t=this.$refs.configform)||void 0===t?void 0:t.resetFields)||void 0===e||e.call(t)}catch(o){console.warn("resetFields 执行失败:",o)}this.resetForm()}return this.show?this.apiModel.projectId&&this.show?(this.apiTree=this.projectTree||[],this.apiModel.typeId=this.info.id,this.onApiTreeSelect(this.info),[4,this.service.getApiRequestParams(this.apiModel.typeId)]):[2]:(this.readonly=!1,this.isAdding=!1,this.formTitle="流程配置详情",this.proxyName="",[2]);case 1:return n=r.sent(),this.apiParamList=(null===n||void 0===n?void 0:n.result.filter((function(t){return!t.disabled})))||[],[4,this.service.getProxyNameList(this.info.id)];case 2:return i=r.sent(),this.proxyList=(null===i||void 0===i?void 0:i.result)||[],[2]}}))}))},e.prototype.onSlowLogThresholdChange=function(t){this.$refs.configform.validateField("slowLogThreshold")},e.prototype.enableRetryChange=function(t,e){var n,i;"false"===t?(null===(n=this.$refs.configform)||void 0===n||n.validateField("retryTimes"),this.isRetryTimesReadonly=!0,this.model.retryTimes=void 0):"null"===t?(this.model.enableRetry="false",this.model.retryTimes=void 0,null===(i=this.$refs.configform)||void 0===i||i.validateField("retryTimes"),this.isRetryTimesReadonly=!0):this.isRetryTimesReadonly=!1},e.prototype.resetFields=function(){var t,e;if(this.proxyName||this.isAdding){try{null===(e=null===(t=this.$refs.configform)||void 0===t?void 0:t.resetFields)||void 0===e||e.call(t)}catch(n){}this.isAdding&&this.resetForm()}},e.prototype.onApiTreeSelect=function(t){var e;this.apiModel.path=(null!==(e=null===t||void 0===t?void 0:t.path)&&void 0!==e?e:null===t||void 0===t?void 0:t.url)||""},e.prototype.selectProxyName=function(t){this.formTitle="流程配置详情";var e=this.proxyList.filter((function(e){return e.id===t.value}))[0];this.model=p({},e),this.statusCode=this.model.retryCode?"2":"1",!0===this.model.enableRetry?this.model.enableRetry="true":!1===this.model.enableRetry&&(this.model.enableRetry="false"),this.isAdding=!1},e.prototype.selectCategory=function(t){this.model.categoryId=t.id},e.prototype.onCopy=function(t){var e=document.createElement("textarea");try{e.value=t,document.body.appendChild(e),e.select(),document.execCommand("Copy"),this.$message.success("复制成功")}catch(n){}finally{e.remove()}},e.prototype.resetForm=function(){this.model={name:this.info.name,code:"",categoryId:"",description:"",retryTimes:"",enableRetry:"false",authFlag:1,logSavingEnabled:2}},e.prototype.onAdd=function(){this.isAdding=!0,this.statusCode="1",this.proxyName="",this.formTitle="新增流程配置"},d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"value",void 0),d([Object(y["autowired"])(De)],e.prototype,"service",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"loading",void 0),d([Object(y["config"])({type:Object,default:{}})],e.prototype,"info",void 0),d([Object(y["config"])({type:Array,default:[]})],e.prototype,"projectTree",void 0),d([Object(y["watch"])("statusCode",{immediate:!0})],e.prototype,"onStatusCodeChange",null),d([Object(y["watch"])("model.authFlag",{immediate:!0})],e.prototype,"changeInputStatus",null),d([Object(y["watch"])("show")],e.prototype,"freshApiTree",null),d([Object(y["watch"])("slowLogThreshold",{immediate:!0})],e.prototype,"onSlowLogThresholdChange",null),d([Object(y["watch"])("model.enableRetry",{immediate:!0})],e.prototype,"enableRetryChange",null),d([Object(y["watch"])("isAdding",{immediate:!0})],e.prototype,"resetFields",null),e=d([Object(y["component"])({template:n("40aa"),components:{"u-tree-selector":J,"tips-table-label":xn}})],e),e}(y["Component"]),Dn=jn,Tn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.response=new nn,e.responseCache=new Map,e.loading=!1,e.showEnvironmentModal=!1,e.currentId="",e.paramList=[],e.errorLine=null,e.scriptView=!1,e.originId="",e.apiForm={envName:null,authName:null},e.showImportModal=!1,e.importObj={},e.showDrawer=!1,e.typeList=[{value:"GET",text:"GET"},{value:"POST",text:"POST"},{value:"PUT",text:"PUT"},{value:"DELETE",text:"DELETE"}],e.requertSettingTypeList=[{title:"参数",name:"params"},{title:"Headers",name:"headers"},{title:"授权管理",name:"v2security"},{title:"前置脚本",name:"pre-execution"},{title:"后置转换",name:"after-execution-transfer"},{title:"后置脚本",name:"after-execution-script"}],e.rules={envName:[{required:!1,validator:e.validateEnvName,trigger:"blur"}],authName:[{required:!1,validator:e.validateAuthName,trigger:"blur"}]},e.currentRequestSettingType=e.requertSettingTypeList[0],e.formData=new FormData,e}return u(e,t),e.prototype.mounted=function(){this.getEnvironmentParamList()},e.prototype.onClickRequertSettingTpye=function(t){this.currentRequestSettingType=t},e.prototype.onClickRequertSettingSubTpye=function(t,e){this.currentRequestSettingType=t.children.find((function(t){return t.name===e}))},e.prototype.onRun=function(){var t,e,n,i,r,o;return h(this,void 0,void 0,(function(){var a,s,c,l,u,d,h,m=this;return f(this,(function(f){switch(f.label){case 0:return this.loading=!0,a=[],s=[],(null===(t=this.interfaceModel.formParams)||void 0===t?void 0:t.length)>0&&(a=this.interfaceModel.formParams.filter((function(t){return!t.disabled}))),(null===(e=this.interfaceModel.requestHeaders)||void 0===e?void 0:e.length)>0&&(s=this.interfaceModel.requestHeaders.filter((function(t){return!t.disabled}))),(null===(n=this.interfaceModel.environmentParam)||void 0===n?void 0:n.length)||(c=this.paramList.findIndex((function(t){return t.id===m.interfaceModel.info.envId})),this.interfaceModel.environmentParam=c>-1?this.paramList[c]:null),l=null,u=a.filter((function(t){return"FILE"===t.valueType})),u.length?(d=p(p({},this.interfaceModel),{formParams:a,requestHeaders:s}),h=new FormData,u.forEach((function(t){h.append(t.name,m.formData.get(t.indexFlag))})),h.append("_model",JSON.stringify(d)),[4,this.service.runWithFile(this.interfaceModel.info.id,h)]):[3,2];case 1:return l=f.sent(),[3,4];case 2:return[4,this.service.run(this.interfaceModel.info.id,p(p({},this.interfaceModel),{formParams:a,requestHeaders:s}))];case 3:l=f.sent(),f.label=4;case 4:return this.loading=!1,this.response=(null===l||void 0===l?void 0:l.result)||new nn,l.hasError&&(this.response.code=400,this.response.errorMessage=l.message),this.responseCache.set(this.interfaceModel.info.id,this.response),(null===(i=this.response.errorLineNumbers)||void 0===i?void 0:i.length)?this.errorLine=this.response.errorLineNumbers:this.errorLine=null,this.originId=(null===(o=null===(r=this.interfaceModel)||void 0===r?void 0:r.info)||void 0===o?void 0:o.id)||"",[2]}}))}))},e.prototype.onProcessSave=function(t){return h(this,void 0,void 0,(function(){return f(this,(function(e){switch(e.label){case 0:return this.loading=!0,[4,this.service.save(t)];case 1:return e.sent(),this.loading=!1,this.showDrawer=!1,[2]}}))}))},e.prototype.onSave=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.loading=!0,t=this.interfaceModel.$clone(),t.name&&t.name!==t.info.name&&(t.info.name=t.name),[4,this.service.saveApiInfo(t)];case 1:return e.sent(),this.$publish("api://project-detail-save"),this.loading=!1,[2]}}))}))},e.prototype.interfaceModelChange=function(){this.response=this.responseCache.get(this.interfaceModel.info.id)||new nn},e.prototype.showImportModalChange=function(t){t||this.$refs.import.resetFields()},e.prototype.onImport=function(t){return h(this,void 0,void 0,(function(){var e,n=this;return f(this,(function(i){return e=new FileReader,e.readAsText(t,"UTF-8"),e.onload=function(t){return h(n,void 0,void 0,(function(){var e,n,i,r,o,a,s,c;return f(this,(function(l){e=t.target.result,n=null;try{n=JSON.parse(e),this.importObj=n}catch(u){return this.$message.error("JSON格式有误"),[2,!1]}return(null===(i=null===n||void 0===n?void 0:n.authentication)||void 0===i?void 0:i.name)||(null===(r=null===n||void 0===n?void 0:n.environmentParam)||void 0===r?void 0:r.name)?(this.apiForm.envName=(null===(o=null===n||void 0===n?void 0:n.environmentParam)||void 0===o?void 0:o.name)?null===(a=null===n||void 0===n?void 0:n.environmentParam)||void 0===a?void 0:a.name:null,this.apiForm.authName=(null===(s=null===n||void 0===n?void 0:n.authentication)||void 0===s?void 0:s.name)?null===(c=null===n||void 0===n?void 0:n.authentication)||void 0===c?void 0:c.name:null,this.showImportModal=!0):this.saveImportData(n),[2]}))}))},[2,!1]}))}))},e.prototype.saveImportData=function(t){var e,n;return h(this,void 0,void 0,(function(){var i,r,o;return f(this,(function(a){switch(a.label){case 0:return(null===(e=null===t||void 0===t?void 0:t.authentication)||void 0===e?void 0:e.name)||(null===(n=null===t||void 0===t?void 0:t.environmentParam)||void 0===n?void 0:n.name)?[4,this.$refs.import.validate()]:[3,2];case 1:if(i=a.sent(),!i)return this.$message.warning("验证不通过"),[2];a.label=2;case 2:return r=this.interfaceModel.info.id,t.id=r,t.info.id=r,t.info.name=this.interfaceModel.info.name,t.info.projectId=this.projectId,t.info.categoryId=this.interfaceModel.info.categoryId,t.authentication&&(t.authentication.projectId=this.projectId),t.authentication&&(t.authentication.name=this.apiForm.authName),t.environmentParam&&(t.environmentParam.projectId=this.projectId),t.environmentParam&&(t.environmentParam.name=this.apiForm.envName),t.convertConfig&&(t.convertConfig.apiId=r),["fieldMappings","postScripts","preScripts","queryParams","formParams"].forEach((function(e){null===t||void 0===t||t[e].forEach((function(t){t.apiId=r}))})),null===t||void 0===t||t.requestHeaders.forEach((function(t){t.belongId=r})),[4,this.service.onImportAvr(t)];case 3:return o=a.sent(),(null===o||void 0===o?void 0:o.hasError)?[2]:(this.showImportModal=!1,this.getEnvironmentParamList(),this.$publish("api://project-detail-save-import"),[2])}}))}))},e.prototype.onExport=function(){var t=JSON.stringify(this.interfaceModel,null,4),e=window.URL||window.webkitURL||window,n=new Blob([t]),i=document.createElement("a");i.href=e.createObjectURL(n),i.download=this.interfaceModel.info.name,i.click()},e.prototype.validateEnvName=function(t,e,n){var i,r,o,a,s;return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.onValidateImport({projectId:this.projectId,envName:(null===(i=this.apiForm)||void 0===i?void 0:i.envName)?null===(r=this.apiForm)||void 0===r?void 0:r.envName:null,authName:(null===(o=this.apiForm)||void 0===o?void 0:o.authName)?null===(a=this.apiForm)||void 0===a?void 0:a.authName:null})];case 1:return t=e.sent(),(null===t||void 0===t?void 0:t.hasError)||(null===(s=null===t||void 0===t?void 0:t.result)||void 0===s?void 0:s.envNameRepeat)?n(new Error("环境变量名重复")):n(),[2]}}))}))},e.prototype.validateAuthName=function(t,e,n){var i,r,o,a,s;return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.onValidateImport({projectId:this.projectId,envName:(null===(i=this.apiForm)||void 0===i?void 0:i.envName)?null===(r=this.apiForm)||void 0===r?void 0:r.envName:null,authName:(null===(o=this.apiForm)||void 0===o?void 0:o.authName)?null===(a=this.apiForm)||void 0===a?void 0:a.authName:null})];case 1:return t=e.sent(),(null===t||void 0===t?void 0:t.hasError)||(null===(s=null===t||void 0===t?void 0:t.result)||void 0===s?void 0:s.authNameRepeat)?n(new Error("授权名重复")):n(),[2]}}))}))},e.prototype.cancleModify=function(){this.$refs.import.resetFields(),this.showImportModal=!1},e.prototype.onVersion=function(){var t=(this.interfaceModel.info||{}).id;t?this.$router.push({name:"project-version",query:{id:t}}):this.$message.info("尚未保存,无历史版本")},e.prototype.onCurrentId=function(t){this.currentId=t},e.prototype.getEnvironmentParamList=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.service.getVariableList({projectId:this.projectId})];case 1:return t=e.sent(),(null===t||void 0===t?void 0:t.hasError)||(this.paramList=t.result),[2]}}))}))},e.prototype.onAddEnvParam=function(){this.$refs.addEnvParamSelect.visible=!1,this.showEnvironmentModal=!0},e.prototype.onScriptRun=function(){return h(this,void 0,void 0,(function(){return f(this,(function(t){switch(t.label){case 0:return[4,this.onRun()];case 1:return t.sent(),[2]}}))}))},e.prototype.onScriptMax=function(t){this.scriptView=t},e.prototype.onProcess=function(){this.showDrawer=!0},d([T(De)],e.prototype,"service",void 0),d([Object(y["config"])({default:function(){return new ze}})],e.prototype,"interfaceModel",void 0),d([Object(y["config"])({default:!0})],e.prototype,"lengthwise",void 0),d([Object(y["config"])({default:""})],e.prototype,"projectId",void 0),d([Object(y["config"])({default:{}})],e.prototype,"projectTree",void 0),d([Object(y["watch"])("interfaceModel",{immediate:!0})],e.prototype,"interfaceModelChange",null),d([Object(y["watch"])("showImportModal")],e.prototype,"showImportModalChange",null),e=d([Object(y["component"])({template:n("f40e"),components:{response:on,params:hn,headers:ln,"pre-execution":Ye,"after-execution-transfer":sn,"after-execution-script":Ze,v2security:bn,"u-environment-modal":Be,"u-process-drawer":Dn}})],e),e}(y["Component"]),On=Tn,En=(n("948e"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.visible=!1,e}return u(e,t),e.prototype.onSelect=function(t,e){this.$emit("on-select",e),this.visible=!1},e.prototype.onClear=function(){this.onSelect([],{})},e.prototype.renderContent=function(t,e){e.root,e.node;var n=e.data;return t("div",{class:"group-select-tree-node"},[t("i",{attrs:{class:"api-icon icon-interface"}}),t("p",{attrs:{title:n.title,class:"api-group-select-tree-node-title"}},n.title)])},d([Object(y["config"])({default:function(){return[]}})],e.prototype,"data",void 0),d([Object(y["config"])({default:function(){return new Object}})],e.prototype,"current",void 0),d([Object(y["config"])({type:Boolean,default:!1})],e.prototype,"isSelector",void 0),e=d([Object(y["component"])({template:n("c01f"),components:{}})],e),e}(y["Component"])),Pn=En,Ln=(n("8ea2"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.keyword="",e.apiList=[],e.isEmpty=!0,e.allSelect=!1,e.variableList=[],e.securityList=[],e.set=new Set,e.type="env",e.formData={envId:"",authId:""},e}return u(e,t),Object.defineProperty(e.prototype,"rules",{get:function(){return"env"===this.type?{envId:[{required:!0,message:"请选择",trigger:"change"}]}:"auth"===this.type?{authId:[{required:!0,message:"请选择",trigger:"change"}]}:{envId:[{required:!0,message:"请选择",trigger:"change"}],authId:[{required:!0,message:"请选择",trigger:"change"}]}},enumerable:!1,configurable:!0}),e.prototype.onFilter=function(t){var e=this;this.apiList=this.data.$clone().filter((function(t){if(t.name.indexOf(e.keyword)>-1)return t})),this.apiList.forEach((function(t){e.set.has(t.id)&&(t.selected=!0)}))},e.prototype.onShowChange=function(t){return h(this,void 0,void 0,(function(){return f(this,(function(e){return t?(this.getVariableList(),this.apiList=this.data.$clone()):(this.allSelect=!1,this.set.clear(),this.$refs["batch-api-form"].resetFields()),[2]}))}))},e.prototype.onEmpty=function(t){this.isEmpty=!!t},e.prototype.getVariableList=function(){return h(this,void 0,void 0,(function(){var t,e;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.getVariableList({projectId:this.projectId})];case 1:return t=n.sent(),[4,this.service.getSecurityList({projectId:this.projectId})];case 2:return e=n.sent(),(null===t||void 0===t?void 0:t.hasError)||(this.variableList=t.result||[]),(null===e||void 0===e?void 0:e.hasError)||(this.securityList=e.result||[]),[2]}}))}))},e.prototype.onSelect=function(t,e){t?this.set.add(e.id):this.set.delete(e.id)},e.prototype.onAllSelect=function(t){var e=this;t?this.apiList.forEach((function(t){t.selected=!0,e.set.add(t.id)})):this.apiList.forEach((function(t){t.selected=!1,e.set.delete(t.id)}))},e.prototype.onCancel=function(){this.keyword="",this.value=!1},e.prototype.onSave=function(){return h(this,void 0,void 0,(function(){var t,e,n,i;return f(this,(function(r){switch(r.label){case 0:return this.set.size?[4,this.$refs["batch-api-form"].validate()]:[2,this.$message.warning("请选择api")];case 1:return t=r.sent(),t?(e={ids:Array.from(this.set)},"env"!==this.type?[3,3]:(e.envId="empty"===this.formData.envId?"":this.formData.envId,[4,this.service.onBatchEnv(e)])):[2];case 2:return n=r.sent(),n&&!n.hasError&&(this.$message.success("保存成功!"),this.$emit("on-success",!0),this.$publish("api://batch-api-refresh",e),this.onCancel()),[2];case 3:return"auth"!==this.type?[3,5]:(e.authId="empty"===this.formData.authId?"":this.formData.authId,[4,this.service.onBatchAuth(e)]);case 4:return n=r.sent(),n&&!n.hasError&&(this.$message.success("保存成功!"),this.$publish("api://batch-api-refresh",p(p({},e),{isEnvAndAuth:!0})),this.onCancel()),[2];case 5:return[4,this.service.onBatchEnv(p(p({},e),{envId:"empty"===this.formData.envId?"":this.formData.envId}))];case 6:return n=r.sent(),[4,this.service.onBatchAuth(p(p({},e),{authId:"empty"===this.formData.authId?"":this.formData.authId}))];case 7:return i=r.sent(),(null===n||void 0===n?void 0:n.hasError)||(null===i||void 0===i?void 0:i.hasError)||(this.$message.success("保存成功!"),this.$emit("on-success",!0),this.$publish("api://batch-api-refresh",p(p({},e),{isEnvAndAuth:!0})),this.onCancel()),[2]}}))}))},d([T(De)],e.prototype,"service",void 0),d([Object(pt["PropSync"])("visiable",{default:!1})],e.prototype,"value",void 0),d([Object(y["config"])({default:[]})],e.prototype,"data",void 0),d([Object(y["config"])({default:function(){return[]}})],e.prototype,"projectId",void 0),d([Object(y["watch"])("value")],e.prototype,"onShowChange",null),d([Object(y["watch"])("data.length",{immediate:!0})],e.prototype,"onEmpty",null),e=d([Object(y["component"])({template:n("88af"),components:{}})],e),e}(y["Component"])),Mn=Ln,An=(n("688a"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(e,t),e.prototype.onClick=function(){if(this.data.children)return this.data.expand=!this.data.expand;this.$emit("on-click-interface",this.data)},Object.defineProperty(e.prototype,"isLeaf",{get:function(){return!this.data.children},enumerable:!1,configurable:!0}),e.prototype.onClickAction=function(t){t&&this.$emit("on-"+t,this.data)},e.prototype.onDelete=function(t){this.$emit("on-"+t,this.data)},d([Object(y["config"])({default:function(){return new Object}})],e.prototype,"data",void 0),e=d([Object(y["component"])({template:n("d953"),components:{"u-confirm":Yt}})],e),e}(y["Component"])),Nn=An,qn=(n("9355"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.projectList=[],e.data=[],e.groupTree=[],e.parent={},e.renderData=[],e.keyword="",e.type="all",e.moveType="group",e.MOVE_RESULT={BIND_JOB:"更新失败,API已被任务绑定,不允许变更项目信息",BIND_ENV:"更新失败,API存在关联环境变量,请确认变更项目信息时是否复制环境变量",BIND_NONE:"API未被任务绑定,且API不存在关联环境变量,更新成功",NOT_UPDATED_PROJECT:"API项目信息未改变,更新成功"},e.typeList=[{value:"GET",text:"GET"},{value:"POST",text:"POST"},{value:"PUT",text:"PUT"},{value:"DELETE",text:"DELETE"}],e.showInterfaceModal=!1,e.showGroupModal=!1,e.showBatchModal=!1,e.categoryApiList=[],e.interfaceModel={method:"GET",authFlag:1},e.showCopyModal=!1,e.copyName="",e.group={},e.showMoveModal=!1,e}return u(e,t),e.prototype.mounted=function(){var t=this;this.loadProjectList(),this.$subscribe("api://project-detail-save",(function(){t.init()}))},e.prototype.renderContent=function(t,e){e.root,e.node;var n=e.data;return t(Nn,{props:{data:n},on:{"on-edit-interface":this.onEditInterface,"on-delete-interface":this.onDeleteClick,"on-edit-attribute":this.onBatchEdit,"on-copy-interface":this.onCopyInterface,"on-add-interface":this.onAddInterface,"on-delete-group":this.onDeleteGroup,"on-edit-group":this.onEditGroup,"on-click-interface":this.onCheckInterface}})},e.prototype.onCheckInterface=function(t){this.$emit("on-check-interface",t)},e.prototype.onEditInterface=function(t){this.parent={id:t.parentId,name:t.parentName},this.interfaceModel=t.$clone(),this.moveType="interface",this.showInterfaceModal=!0,this.onChangeProject(!1)},e.prototype.getApis=function(t){var e,n=this;if(null===(e=null===t||void 0===t?void 0:t.apis)||void 0===e||e.forEach((function(t){n.categoryApiList.push(t)})),null===t||void 0===t?void 0:t.children)for(var i=0,r=null===t||void 0===t?void 0:t.children;i<r.length;i++){var o=r[i];this.getApis(o)}},e.prototype.onBatchEdit=function(t){var e,n;if(this.categoryApiList=[],this.getApis(t.$clone()),!(null===(e=this.categoryApiList)||void 0===e?void 0:e.length))return this.$Message.warning("该文件夹下无接口信息,无法批量修改!");null===(n=this.categoryApiList)||void 0===n||n.map((function(t){return t.selected=!1,t})),this.showBatchModal=!0},e.prototype.onDeleteInterface=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.deleteApi(t.id)];case 1:return e=n.sent(),e&&!e.hasError&&(this.init(),this.$emit("on-delete-interface",t)),[2]}}))}))},e.prototype.onDeleteClick=function(t){var e=this;this.$modal.confirm({title:"确定要删除【".concat(t.name,"】吗?"),onOk:function(){return h(e,void 0,void 0,(function(){return f(this,(function(e){return this.onDeleteInterface(t),[2]}))}))}})},e.prototype.onCopyInterface=function(t){this.parent={},this.interfaceModel=t,this.copyName=this.interfaceModel.name+"_copy",this.parent.id=this.interfaceModel.categoryId,this.parent.name=this.interfaceModel.parentName,this.showCopyModal=!0},e.prototype.onCopy=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return this.copyName?this.parent.name?[4,this.service.copyApi(this.interfaceModel.id,this.copyName,this.interfaceModel.projectId,this.parent.id)]:[2,this.$message.warning("请选择分组")]:[2,this.$message.warning("请填写接口名称")];case 1:if(t=e.sent(),t&&!t.hasError)this.showCopyModal=!1,this.init();else if(t&&t.hasError&&t.message)return[2,this.$message.error(t.message)];return this.interfaceModel={},this.copyName="",this.parent={},[2]}}))}))},e.prototype.onCopyCancel=function(){this.interfaceModel={},this.copyName="",this.parent={},this.showCopyModal=!1},e.prototype.onMoveCancel=function(){this.parent={},this.interfaceModel={},this.group={},this.showMoveModal=!1},e.prototype.onAddInterface=function(t){this.interfaceModel={method:"GET",authFlag:1,categoryId:t.id,projectId:this.projectId},this.parent=t,this.showInterfaceModal=!0,this.onChangeProject(!1)},e.prototype.onSaveInterface=function(){return h(this,void 0,void 0,(function(){var t,e,n;return f(this,(function(i){switch(i.label){case 0:return this.interfaceModel.categoryId=this.parent.id,this.interfaceModel.name?this.interfaceModel.categoryId?this.interfaceModel.name&&this.interfaceModel.name.length>50?(this.$message.error("接口名称长度不能超过50"),this.showInterfaceModal=!0,[2]):this.interfaceModel.id?[4,this.service.checkApi(this.interfaceModel)]:[3,2]:(this.$message.error("接口位置不能为空"),[2]):(this.$message.error("接口名称不能为空"),[2]);case 1:return t=i.sent(),t&&!t.hasError&&(e=t.result,this.showInterfaceModal=!1,["BIND_NONE","NOT_UPDATED_PROJECT"].includes(e)?(this.$message.success("保存接口成功"),this.$emit("on-reset"),this.$publish("api://project-detail-save")):"BIND_JOB"===e?this.$message.error(this.MOVE_RESULT.BIND_JOB):"BIND_ENV"===e&&(this.showMoveModal=!0)),[3,4];case 2:return[4,this.service.saveApi(this.interfaceModel)];case 3:n=i.sent(),n&&!n.hasError&&(this.showInterfaceModal=!1,this.$emit("on-edit-interface-success",this.interfaceModel),this.init()),i.label=4;case 4:return[2]}}))}))},e.prototype.onGourpCancel=function(){this.showGroupModal=!1},e.prototype.onInterfaceCancel=function(){this.showInterfaceModal=!1},e.prototype.onDeleteGroup=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return[4,this.service.deleteCategory(t.id)];case 1:return e=n.sent(),e&&!e.hasError&&this.init(),[2]}}))}))},e.prototype.onEditGroup=function(t){this.parent={id:t.parentId,name:t.parentName},this.group=t.$clone(),this.moveType="group",this.showGroupModal=!0,this.onChangeProject(!0)},e.prototype.onAddGroup=function(){this.group={projectId:this.projectId},this.showGroupModal=!0,this.onChangeProject(!0)},e.prototype.onFilter=function(){this.keyword||"all"!==this.type?this.renderData=this.filterData(this.data.$clone()):this.renderData=this.data.$clone()},e.prototype.match=function(t){var e=!this.keyword||-1!==(t.title||t.name).indexOf(this.keyword),n="all"===this.type||!t.method||this.type===t.method,i=e&&n,r=!1;if(t.children&&t.children.length>0)for(var o=0,a=t.children;o<a.length;o++){var s=a[o],c=this.match(s);if(c.matched||c.childrenMatched){r=!0;break}}var l=i||r;return{matched:l,childrenMatched:r}},e.prototype.filterData=function(t){var e=this;return t&&Array.isArray(t)?t.map((function(t){var n=t.$clone?t.$clone():p({},t),i=e.match(t);return i.matched?(n.children&&n.children.length>0&&(n.expand=!0,n.children=e.filterData(n.children)),n):i.childrenMatched?(n.expand=!0,n.children&&n.children.length>0&&(n.children=e.filterData(n.children)),n):null})).filter((function(t){return null!==t})):t},e.prototype.onSelectParent=function(t){this.parent=t},e.prototype.onSaveGroup=function(){return h(this,void 0,void 0,(function(){var t,e,n,i;return f(this,(function(r){switch(r.label){case 0:return this.group.parentId=this.parent.id,this.group.parentName=this.parent.name,this.group.type="api",this.group.name?this.group.id&&this.group.id===this.group.parentId?(this.$message.warning("所属分组不能选中自身"),[2]):(t=this.isChildNode(this.group,this.group.parentId),t?(this.$message.warning("所属分组不能选中自身的子节点"),[2]):this.group.id?[4,this.service.checkCategory(this.group)]:[3,2]):(this.$message.warning("请填写分组名称"),[2]);case 1:return e=r.sent(),e&&!e.hasError&&(n=e.result,this.showGroupModal=!1,["BIND_NONE","NOT_UPDATED_PROJECT"].includes(n)?(this.$message.success("保存分组成功"),"BIND_NONE"===n&&this.$emit("on-reset"),this.$publish("api://project-detail-save")):"BIND_JOB"===n?this.$message.error(this.MOVE_RESULT.BIND_JOB):"BIND_ENV"===n&&(this.showMoveModal=!0)),[3,4];case 2:return[4,this.service.saveCategory(this.group)];case 3:i=r.sent(),i&&!i.hasError&&(this.showGroupModal=!1,this.init()),r.label=4;case 4:return[2]}}))}))},e.prototype.init=function(){return h(this,void 0,void 0,(function(){var t,e,n;return f(this,(function(i){switch(i.label){case 0:return this.projectId?[4,this.service.getApiTree(this.projectId)]:[2];case 1:return t=i.sent(),this.data=(null===t||void 0===t?void 0:t.result)||[],e=this.data.$clone(),this.$emit("tree-data",e),V.handlerTreeData2(e,"name"),this.groupTree=e,e=this.data.$clone(),n=this.renderData,V.handlerTreeData2(this.data,"name","apis"),n&&n.length>0&&this.data.forEach((function(t){n.forEach((function(e){if(t.id===e.id)return t.expand=e.expand}))})),this.renderData=this.data.$clone(),[2]}}))}))},e.prototype.onBatchSuccess=function(t){this.$emit("on-success",t)},e.prototype.isChildNode=function(t,e){if(!t.children||0===t.children.length)return!1;for(var n=0,i=t.children;n<i.length;n++){var r=i[n];if(r.id===e)return!0;if(this.isChildNode(r,e))return!0}return!1},e.prototype.loadProjectList=function(){return h(this,void 0,void 0,(function(){var t;return f(this,(function(e){switch(e.label){case 0:return[4,this.projectService.getProjectList({})];case 1:return t=e.sent(),this.projectList=(null===t||void 0===t?void 0:t.result)||[],[2]}}))}))},e.prototype.onChangeProject=function(t,e){return void 0===e&&(e=!1),h(this,void 0,void 0,(function(){var n,i;return f(this,(function(r){switch(r.label){case 0:return e&&(this.parent={id:null,name:null}),t?(this.group.parentId=null,this.group.parentName=null,[4,this.service.getApiTree(this.group.projectId)]):[3,2];case 1:return n=r.sent(),[3,4];case 2:return this.interfaceModel.categoryId=null,[4,this.service.getApiTree(this.interfaceModel.projectId)];case 3:n=r.sent(),r.label=4;case 4:return i=(null===n||void 0===n?void 0:n.result)||[],V.handlerTreeData2(i,"name"),this.groupTree=i,[2]}}))}))},e.prototype.onMoveOk=function(t){return h(this,void 0,void 0,(function(){var e;return f(this,(function(n){switch(n.label){case 0:return this.showMoveModal=!1,"group"!==this.moveType?[3,2]:[4,this.service.updateMoveCategory(this.group,t)];case 1:return e=n.sent(),[3,4];case 2:return"interface"!==this.moveType?[3,4]:[4,this.service.updateMoveApi(this.interfaceModel,t)];case 3:e=n.sent(),n.label=4;case 4:return e&&!e.hasError&&(this.$publish("api://project-detail-save"),this.$emit("on-reset")),[2]}}))}))},d([Object(y["config"])({default:function(){return[]}})],e.prototype,"projectId",void 0),d([T(De)],e.prototype,"service",void 0),d([T(ee)],e.prototype,"projectService",void 0),d([Object(y["watch"])("projectId",{immediate:!0})],e.prototype,"init",null),e=d([Object(y["component"])({template:n("193e"),components:{"u-group-select":Pn,"u-batch-modal":Mn}})],e),e}(y["Component"])),$n=qn,Rn=n("b042"),_n=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.openInterfaceList=[],e.active={},e.lengthwise=!0,e.showGlobalModal=!1,e.showCurrentModal=!1,e.showSecurity=!1,e.showEnvironmentModal=!1,e.projectId="",e.projectName="",e.split="340px",e.loading=!1,e.swiperOption={slidesPerView:"auto",spaceBetween:0},e.current={},e.projectTree=[],e}return u(e,t),e.prototype.onClickSlide=function(t){this.swiper.slideTo(t,1e3,!1),this.onClickTag(this.openInterfaceList[t])},e.prototype.onSwiperReadied=function(t){this.swiper=t},e.prototype.getProjectInfo=function(){var t,e;return h(this,void 0,void 0,(function(){var n;return f(this,(function(i){switch(i.label){case 0:return this.projectId=null===(t=this.$route.params)||void 0===t?void 0:t.id,this.projectId?[4,this.service.projectInfo(this.projectId)]:[3,2];case 1:n=i.sent(),this.projectName=(null===(e=null===n||void 0===n?void 0:n.result)||void 0===e?void 0:e.name)||"",i.label=2;case 2:return[2]}}))}))},e.prototype.onCheckInterface=function(t,e){return h(this,void 0,void 0,(function(){var n,i,r,o,a,s,c=this;return f(this,(function(l){switch(l.label){case 0:if(this.current=t,n={},e){try{i=window.sessionStorage.getItem("api_project_".concat(t.id)),i&&(n=JSON.parse(i))}catch(u){}n=p(p({},n),{name:t.name,id:t.id}),!n.fieldMappings&&(n.fieldMappings=[]),!n.pathParams&&(n.pathParams=[]),!n.queryParams&&(n.queryParams=[]),!n.formParams&&(n.formParams=[]),!n.preScripts&&(n.preScripts=[]),!n.postScripts&&(n.postScripts=[]),!n.requestHeaders&&(n.requestHeaders=[]),!n.responseParams&&(n.responseParams=[])}return r=new Set(this.openInterfaceList.map((function(t){return t.id}))),r.has(t.id)?[3,4]:(this.loading=!0,o=void 0,e?(o=n,[3,3]):[3,1]);case 1:return[4,this.service.apiInfo(t.id)];case 2:a=l.sent(),o=p(p({},a.result||{}),{name:t.name,id:t.id}),l.label=3;case 3:this.openInterfaceList.push(o),this.loading=!1,l.label=4;case 4:return s=this.openInterfaceList.findIndex((function(e){return e.id===t.id})),e&&this.openInterfaceList.splice(s,1,n),this.active=this.openInterfaceList[s],this.$nextTick((function(){c.swiper.slideTo(s,1e3,!1)})),[2]}}))}))},e.prototype.onEditInterfaceSuccess=function(t){var e=this.openInterfaceList.findIndex((function(e){return e.id===t.id}));e>-1&&(this.openInterfaceList[e].name=t.name)},e.prototype.onDeleteInterface=function(t){var e=this.openInterfaceList.findIndex((function(e){return e.id===t.id}));e>-1&&this.onClose(e)},e.prototype.onClose=function(t){this.openInterfaceList.splice(t,1),0===this.openInterfaceList.length?this.active={}:t>0?(this.active=this.openInterfaceList[t-1],this.swiper.slideTo(t-1,1e3,!1)):(this.active=this.openInterfaceList[0],this.swiper.slideTo(0,1e3,!1))},e.prototype.onReset=function(){this.openInterfaceList.splice(0),this.active={}},e.prototype.onClickTag=function(t){this.active=t},e.prototype.onToggleLayout=function(){this.lengthwise=!this.lengthwise},e.prototype.onSecurity=function(){this.showSecurity=!0},e.prototype.onOpenGlobalModal=function(){this.showGlobalModal=!0},e.prototype.onOpenCurrentModal=function(){this.showCurrentModal=!0},e.prototype.onOpenEnvModal=function(){this.showEnvironmentModal=!0},e.prototype.mounted=function(){var t=this;this.getProjectInfo();var e=this.$route.query,n=e.apiId,i=e.apiName,r=e.resume;n&&this.onCheckInterface({id:n,name:i},"true"===r),this.$subscribe("api://project-detail-save-import",(function(){return h(t,void 0,void 0,(function(){var t,e,n=this;return f(this,(function(i){switch(i.label){case 0:return[4,this.service.apiInfo(this.current.id)];case 1:return t=i.sent(),e=p(p({},t.result||{}),{name:this.current.name,id:this.current.id}),this.active=e,this.openInterfaceList[this.openInterfaceList.findIndex((function(t){return t.id===n.current.id}))]=e,[2]}}))}))})),this.$subscribe("api://batch-api-refresh",(function(e){return h(t,void 0,void 0,(function(){var t,n,i,r,o,a,s,c,l=this;return f(this,(function(u){switch(u.label){case 0:if(t=e.get("ids"),n=e.get("isEnvAndAuth")||!1,i=[],this.openInterfaceList.forEach((function(e){t.includes(e.id)&&i.push({id:e.id,name:e.name})})),!i.length)return[3,5];r=function(t){var e,n,i;return f(this,(function(r){switch(r.label){case 0:return[4,o.service.apiInfo(t.id)];case 1:return e=r.sent(),n=p(p({},e.result||{}),{name:t.name,id:t.id}),i=o.openInterfaceList.findIndex((function(e){return e.id===t.id})),o.openInterfaceList.splice(i,1,n),[2]}}))},o=this,a=0,s=i,u.label=1;case 1:return a<s.length?(c=s[a],[5,r(c)]):[3,4];case 2:u.sent(),u.label=3;case 3:return a++,[3,1];case 4:this.active=this.openInterfaceList[this.openInterfaceList.findIndex((function(t){return t.id===l.current.id}))],n&&this.$publish("api://security-list-refresh",{isBatchRefresh:!0}),u.label=5;case 5:return[2]}}))}))}))},e.prototype.activated=function(){var t=this.$route.query,e=t.apiId,n=t.apiName,i=t.resume;"true"===i&&this.onCheckInterface({id:e,name:n},"true"===i)},e.prototype.onBack=function(){this.$router.push({name:"project-list"})},e.prototype.onBatchSuccess=function(t){t&&this.getProjectInfo()},e.prototype.onEnvironmentRefresh=function(){this.$refs["interface-settings"]&&this.$refs["interface-settings"].getEnvironmentParamList()},e.prototype.getTreeData=function(t){this.projectTree=t},d([T(De)],e.prototype,"service",void 0),e=d([Object(y["component"])({name:"ApiProjectDetail",template:n("d63e"),components:{"u-tree":$n,"u-settings":On,"u-global-modal":$e,"u-current-modal":Ne,"u-environment-modal":Be,Swiper:Rn["Swiper"],SwiperSlide:Rn["SwiperSlide"],"u-security-modal":vn},directives:{swiper:Rn["directive"]}})],e),e}(y["View"]),Fn=_n;a.a.use(c.a)},d371:function(t,e,n){"use strict";var i=n("e900"),r=n("720f"),o=n("889b"),a=URLSearchParams.prototype,s=r(a.forEach);i&&!("size"in a)&&o(a,"size",{get:function(){var t=0;return s(this,(function(){t++})),t},configurable:!0,enumerable:!0})},d5e3:function(t,e,n){"use strict";var i=n("10a7"),r=n("f2e2");t.exports=!i((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)}))},d631:function(t,e,n){"use strict";var i=n("8a91");t.exports=function(t){return i(t.length)}},d631e:function(t,e,n){"use strict";var i=n("10a7");t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){return 1},1)}))}},d63e:function(t,e){t.exports='<article class="project-detail">\r\n <header>\r\n <div class="environment">\r\n <i class="iconfont icon-zhankai" @click="onBack"></i>\r\n <p>{{projectName}}</p>\r\n \x3c!-- <span>环境变量:</span> --\x3e\r\n \x3c!-- <i-select class="diy-select"></i-select> --\x3e\r\n </div>\r\n <div class="btns">\r\n \x3c!-- <i-button type="primary" ghost class="diy-btn-primary" @click="onOpenGlobalModal"> <i class="api-icon icon-setting"></i>全局参数设置</i-button> --\x3e\r\n \x3c!-- <i-button type="success" ghost class="diy-btn-success" @click="onOpenCurrentModal"><i class="api-icon icon-view"></i>查看当前变量</i-button> --\x3e\r\n <i-button v-if="projectId && projectName" type="primary" class="diy-btn-primary security-btn" ghost @click="onSecurity"><i class="iconfont icon-xinzengzhibiao"></i>授权认证</i-button>\r\n <i-button v-if="projectId && projectName" type="primary" class="diy-btn-primary" ghost @click="onOpenEnvModal"><i class="iconfont icon-bianliang"></i>环境变量</i-button>\r\n <i-button v-show="active.id" type="primary" class="diy-btn-primary" ghost @click="onToggleLayout"><i class="api-icon icon-switch"></i>切换布局</i-button>\r\n </div>\r\n </header>\r\n \x3c!-- <main> --\x3e\r\n <i-split v-model="split" min="200px" max="900px">\r\n <u-tree slot="left" @on-check-interface="onCheckInterface" @on-edit-interface-success="onEditInterfaceSuccess" :project-id="projectId" @on-success="onBatchSuccess" @on-delete-interface="onDeleteInterface" @on-reset="onReset" @tree-data="getTreeData"></u-tree>\r\n <section slot="right" class="interface-box">\r\n <header class="interface-bar">\r\n <swiper class="swiper" :options="swiperOption" @click-slide="onClickSlide" @ready="onSwiperReadied">\r\n <swiper-slide class="tag" @click="onClickTag(item)" :class="{\'active\': item.id === active.id}" v-for="(item,index) in openInterfaceList" :key="item.id"\r\n ><span>{{item.name}}</span> <i-icon type="md-close" @click.stop="onClose(index)"></i-icon\r\n ></swiper-slide>\r\n </swiper>\r\n \x3c!-- <div class="tag" @click="onClickTag(item)" :class="{\'active\': item.id === active.id}" v-for="(item,index) in openInterfaceList" :key="item.id">\r\n <span>{{item.name}}</span>\r\n <i-icon type="md-close" @click.stop="onClose(index)"></i-icon>\r\n </div> --\x3e\r\n </header>\r\n <u-settings ref="interface-settings" :interface-model.sync="active" :project-id="projectId" v-if="active.id" :lengthwise="lengthwise" :projectTree="projectTree"></u-settings>\r\n </section>\r\n </i-split>\r\n <i-spin fix v-show="loading">\r\n <i class="spin-icon-load ivu-icon"></i>\r\n </i-spin>\r\n \x3c!-- </main> --\x3e\r\n <u-global-modal :visiable.sync="showGlobalModal">\r\n <footer slot="footer">\r\n <i-button @click="showGlobalModal = false">取消</i-button>\r\n <i-button type="primary" class="diy-btn-primary">确定</i-button>\r\n </footer>\r\n </u-global-modal>\r\n <u-current-modal :visiable.sync="showCurrentModal"> </u-current-modal>\r\n <u-security-modal v-model="showSecurity" :projectID="projectId"></u-security-modal>\r\n <u-environment-modal :visiable.sync="showEnvironmentModal" :projectId="projectId" @on-refresh="onEnvironmentRefresh"></u-environment-modal>\r\n</article>\r\n'},d670:function(t,e){t.exports=C},d803:function(t,e,n){"use strict";var i=n("720f"),r=n("e614"),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},d8b4:function(t,e){t.exports='<div class="v-parameter-list-container">\r\n <main>\r\n <div class="parameter-table-btns" v-if="isEdit">\r\n <span class="table-btns table-btns-add" @click="onAdd">\r\n <i class="iconfont icon-add"></i>\r\n <span class="table-btns-text">新增</span>\r\n </span>\r\n <span class="table-btns table-btns-delete" :class="selections.length ? \'\' : \'icon-button-disabled\'" @click="onBatchDelete">\r\n <i class="iconfont icon-delete"></i>\r\n <span class="table-btns-text">批量删除</span>\r\n </span>\r\n </div>\r\n <template v-if="data&&data.length">\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 </template>\r\n <template v-else>\r\n <div class="table-no-data-wrap">\r\n <div class="table-no-data">\r\n <div class="table-no-data-bg"></div>\r\n <div class="table-no-data-text">暂无数据</div>\r\n </div>\r\n </div>\r\n </template>\r\n </main>\r\n</div>\r\n'},d8e7:function(t,e){t.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 label="是否需要认证:" prop="authFlag">\r\n <i-switch class="diy-switch" :disabled="!isEdit" :true-value="1" :false-value="0" v-model="model.authFlag">\r\n <span slot="open">是</span>\r\n <span slot="close">否</span>\r\n </i-switch>\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 <template v-if="model.relations&&model.relations.length">\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-rizhichakan" @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 </template>\r\n <template v-else>\r\n <div class="table-no-data">\r\n <div class="table-no-data-bg"></div>\r\n <div class="table-no-data-text">暂无数据</div>\r\n </div>\r\n </template>\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 <div>\r\n <span>执行脚本</span>\r\n <i-icon class="help-icon" type="md-alert" @click="onOpenDoc" title="帮助文档"> </i-icon>\r\n </div>\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 <u-data-model-doc v-model="docShow" :doc="doc"></u-data-model-doc>\r\n</article>\r\n'},d928:function(t,e,n){},d953:function(t,e){t.exports='<div class="interface-tree-node">\r\n <span v-if="isLeaf && data.method" class="method" :class="data.method.toLowerCase() " @click="onClick"\r\n >{{data.method}}</span\r\n >\r\n <i :class="isLeaf ? \'iconfont icon-API\' : \'iconfont icon-APIfenzu2\'" @click="onClick"></i>\r\n <span class="interface-tree-node-name" :title="data.title" @click="onClick">{{data.title}}</span>\r\n <i-dropdown\r\n transfer\r\n stop-propagation\r\n class="diy-dropdown"\r\n transfer-class-name="diy-transfer-dropdown"\r\n @on-click="onClickAction"\r\n >\r\n <i class="api-icon icon-more"></i>\r\n <i-dropdown-menu slot="list">\r\n <template v-if="isLeaf">\r\n <i-dropdown-item name="edit-interface">修改</i-dropdown-item>\r\n <i-dropdown-item name="delete-interface">删除</i-dropdown-item>\r\n <i-dropdown-item name="copy-interface">复制</i-dropdown-item>\r\n </template>\r\n <template v-else>\r\n <i-dropdown-item name="edit-group">修改分组</i-dropdown-item>\r\n <i-dropdown-item name="add-interface">新增接口</i-dropdown-item>\r\n <i-dropdown-item name="edit-attribute">批量修改属性</i-dropdown-item>\r\n <u-confirm\r\n title="删除分组"\r\n @on-ok="onDelete(\'delete-group\')"\r\n message="分组内的接口一并删除, 是否确认执行?"\r\n >\r\n <i-dropdown-item>删除</i-dropdown-item>\r\n </u-confirm>\r\n </template>\r\n </i-dropdown-menu>\r\n </i-dropdown>\r\n</div>\r\n'},da9a:function(t,e,n){},dc41:function(t,e){t.exports='<span>\r\n <i-poptip trigger="hover" :content="tips" word-wrap :width="width" transfer>\r\n <icon\r\n style="cursor: help;font-size: 0.16rem;"\r\n type="ios-information-circle-outline"\r\n />\r\n <div class="tips-tabel-label" slot="content">\r\n <div class="tips-tabel-label-text">\r\n <span>重推次数设定规则:</span>\r\n <span>min(当前时间 - 日志创建时间) >= 2 ^ 重推次数</span>\r\n <span>小于10次时间隔设定为:</span>\r\n <span>第 1 次需间隔 2 ^ 1 = 2 分钟</span>\r\n <span>第 2 次需间隔 2 ^ 2 = 4 分钟</span>\r\n <span>第 3 次需间隔 2 ^ 3 = 8 分钟</span>\r\n <span>第 4 次需间隔 2 ^ 4 = 16 分钟</span>\r\n <span>第 5 次需间隔 2 ^ 5 = 32 分钟</span>\r\n <span>第 6 次需间隔 2 ^ 6 = 64 分钟 1 小时</span>\r\n <span>第 7 次需间隔 2 ^ 7 = 128 分钟 2 小时</span>\r\n <span>第 8 次需间隔 2 ^ 8 = 256 分钟 4.2 小时</span>\r\n <span>第 9 次需间隔 2 ^ 9 = 512 分钟 8.5 小时</span>\r\n <span>第 10 次需间隔 2 ^ 10 = 1024 分钟 17 小时</span>\r\n <span>重推次数大于10次,从第11次开始,每次间隔24h</span>\r\n <span>设定重推次数覆盖范围:</span>\r\n </div>\r\n <i-table class="diy-table" :data="data" :columns="columns"></i-table>\r\n </div>\r\n </i-poptip>\r\n <span>{{labelTitle}}<span v-if="labelColon">:</span></span>\r\n</span>\r\n'},dd76:function(t,e,n){"use strict";var i=n("720f"),r=Error,o=i("".replace),a=function(t){return String(new r(t).stack)}("zxcasd"),s=/\n\s*at [^:]*:[^\n]*/,c=s.test(a);t.exports=function(t,e){if(c&&"string"==typeof t&&!r.prepareStackTrace)while(e--)t=o(t,s,"");return t}},de03:function(t,e,n){},e02e:function(t,e,n){"use strict";var i=n("82ef"),r=n("e614"),o=n("d631"),a=n("88bc"),s=n("1b9a"),c=n("10a7"),l=c((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},p=l||!u();i({target:"Array",proto:!0,arity:1,forced:p},{push:function(t){var e=r(this),n=o(e),i=arguments.length;s(n+i);for(var c=0;c<i;c++)e[n]=arguments[c],n++;return a(e,n),n}})},e086:function(t,e,n){"use strict";var i=n("a95a"),r=n("8785"),o=n("8a14"),a=n("9c4a"),s=n("fef4"),c=n("fff8"),l=TypeError,u=c("toPrimitive");t.exports=function(t,e){if(!r(t)||o(t))return t;var n,c=a(t,u);if(c){if(void 0===e&&(e="default"),n=i(c,t,e),!r(n)||o(n))return n;throw new l("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},e1e9:function(t,e,n){"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},e40c:function(t,e,n){"use strict";var i=n("6a10"),r=n("720f"),o=n("7801"),a=n("00fe"),s=i.aTypedArray,c=i.getTypedArrayConstructor,l=i.exportTypedArrayMethod,u=r(i.TypedArrayPrototype.sort);l("toSorted",(function(t){void 0!==t&&o(t);var e=s(this),n=a(c(e),e);return u(n,t)}))},e459:function(t,e,n){"use strict";var i=n("6a10"),r=n("3bdc").findLast,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("findLast",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},e614:function(t,e,n){"use strict";var i=n("42a3"),r=Object;t.exports=function(t){return r(i(t))}},e6c9:function(t,e,n){},e718:function(t,e){t.exports='<section class="v-base-editor-container">\r\n <u-editor @inited="onEditorInited" :model.sync="script" lang="groovy"></u-editor>\r\n</section>\r\n'},e900:function(t,e,n){"use strict";var i=n("10a7");t.exports=!i((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},e9fa:function(t,e,n){},eab2:function(t,e,n){"use strict";var i=n("6a10"),r=n("3bdc").findLastIndex,o=i.aTypedArray,a=i.exportTypedArrayMethod;a("findLastIndex",(function(t){return r(o(this),t,arguments.length>1?arguments[1]:void 0)}))},ead7:function(t,e,n){"use strict";var i=n("9b7f"),r=RangeError;t.exports=function(t){var e=i(t);if(e<0)throw new r("The argument can't be less than 0");return e}},eaed:function(t,e,n){},eb57:function(t,e,n){},ec2f:function(t,e,n){"use strict";var i="object"==typeof document&&document.all;t.exports="undefined"==typeof i&&void 0!==i?function(t){return"function"==typeof t||t===i}:function(t){return"function"==typeof t}},ec75:function(t,e,n){"use strict";var i=n("720f"),r=n("7801");t.exports=function(t,e,n){try{return i(r(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(o){}}},ecb9:function(t,e,n){"use strict";var i=n("767a");t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},ef27:function(t,e){t.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'},f2e2:function(t,e,n){"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},f40e:function(t,e){t.exports='<article class="interface-settings" :class="{\'script-max\': scriptView}">\r\n <header v-show="!scriptView">\r\n \x3c!-- <i-input class="diy-input" v-model="interfaceModel.info.url">--\x3e\r\n \x3c!-- <i-select transfer slot="prepend" class="diy-select" v-model="interfaceModel.info.method">--\x3e\r\n \x3c!-- <i-option v-for="item in typeList" :key="item.value" :value="item.value">{{item.text}}</i-option>--\x3e\r\n \x3c!-- </i-select>--\x3e\r\n \x3c!-- </i-input>--\x3e\r\n <i-select class="diy-select method-select" v-model="interfaceModel.info.method">\r\n <i-option v-for="item in typeList" :key="item.value" :value="item.value">{{item.text}}</i-option>\r\n </i-select>\r\n <i-select ref="addEnvParamSelect" class="diy-select env-select" v-model="interfaceModel.info.envId" placeholder="请选择环境变量" clearable>\r\n <i-option v-for="item in paramList" :key="item.id" :value="item.id">{{item.name + ":" + item.value}}</i-option>\r\n <i-option class="add-security-item" value="\'\'">\r\n <div class="add-security-item-content" @click.stop="onAddEnvParam">\r\n <i class="api-icon icon-add"></i>\r\n <span>新增环境变量</span>\r\n </div>\r\n </i-option>\r\n </i-select>\r\n <i-poptip class="url-poptip" v-if="interfaceModel.info.url" trigger="hover" :content="interfaceModel.info.url" transfer>\r\n <i-input class="diy-input url-input" v-model="interfaceModel.info.url"></i-input>\r\n </i-poptip>\r\n <i-input v-else class="diy-input url-input" v-model="interfaceModel.info.url"></i-input>\r\n\r\n <i-button type="primary" class="diy-btn-primary submit-btn" @click="onRun">发送</i-button>\r\n <i-button type="primary" class="diy-btn-primary" @click="onSave" ghost>保存</i-button>\r\n <i-button type="primary" class="diy-btn-primary process-btn" @click="onProcess" ghost>流程配置</i-button>\r\n <i-button type="primary" class="diy-btn-primary his-btn" @click="onVersion" ghost>查看历史版本</i-button>\r\n <i class="export iconfont icon-xiazai" title="导出" type="md-download" @click="onExport"></i>\r\n <i-upload action="" :before-upload="onImport" :show-upload-list="false">\r\n <i class="import iconfont icon-shangchuan" title="导入" type="md-cloud-upload"></i>\r\n </i-upload>\r\n </header>\r\n <main :class="{\'transverse\': !lengthwise}">\r\n <section class="request">\r\n <div v-show="!scriptView" class="request-bar">\r\n <div\r\n class="tag"\r\n :class="{\'active\': currentRequestSettingType.name.indexOf(item.name) === 0}"\r\n v-for="(item,index) in requertSettingTypeList"\r\n :key="item.name"\r\n @click="onClickRequertSettingTpye(item)"\r\n >\r\n <span>{{item.title}}</span>\r\n </div>\r\n </div>\r\n <div class="request-content">\r\n <component\r\n :is="currentRequestSettingType.name"\r\n :lengthwise="lengthwise"\r\n :interface-model="interfaceModel"\r\n :response="response"\r\n :key="interfaceModel.info.id + currentRequestSettingType.name"\r\n :projectID="projectId"\r\n :currentSecurityID="currentId"\r\n :errorLine="!originId || originId === interfaceModel.info.id ? errorLine : []"\r\n :formData="formData"\r\n @on-current-id="onCurrentId"\r\n @on-script-run="onScriptRun"\r\n @on-script-save="onSave"\r\n @on-script-max="onScriptMax"\r\n ></component>\r\n </div>\r\n </section>\r\n <response :key="interfaceModel.info.id + \'response\'" :lengthwise="lengthwise" :response="response"></response>\r\n </main>\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-environment-modal :visiable.sync="showEnvironmentModal" :projectId="projectId" @on-refresh="getEnvironmentParamList" :isAdd="true"></u-environment-modal>\r\n <i-modal class="diy-modal edit-import-name" v-model="showImportModal" :mask-closable="false">\r\n <p slot="header">编辑名称</p>\r\n <i-form ref="import" :model="apiForm" :rules="rules">\r\n <i-form-item label="环境变量:" prop="envName">\r\n <i-input v-model="apiForm.envName"></i-input>\r\n </i-form-item>\r\n\r\n <i-form-item label="授权:" prop="authName">\r\n <i-input v-model="apiForm.authName"></i-input>\r\n </i-form-item>\r\n </i-form>\r\n <div class="handle-btn" slot="footer">\r\n <i-button class="diy-btn-primary" type="primary" @click.stop="saveImportData(importObj)">确定</i-button>\r\n <i-button class="diy-btn-text" @click.stop="cancleModify">取消</i-button>\r\n </div>\r\n </i-modal>\r\n <u-process-drawer v-model="showDrawer" :projectTree="projectTree" :info="interfaceModel.info" @on-save="onProcessSave"></u-process-drawer>\r\n</article>\r\n'},f511:function(t,e,n){"use strict";var i=n("bc85"),r=n("0d9b");t.exports="process"===r(i.process)},f764:function(t,e,n){"use strict";t.exports="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView},f9a4:function(t,e){t.exports='<i-switch :class="{ \'mid-style\': midState }" :value="showValue" size="large" :true-value="1" :false-value="0" @on-change="onChange" >\r\n <span slot="open">启用</span>\r\n <span slot="close">禁用</span>\r\n</i-switch>'},fcc0:function(t,e,n){"use strict";var i,r,o,a=n("7ddf"),s=n("bc85"),c=n("8785"),l=n("9822"),u=n("d803"),p=n("0888"),d=n("3d77"),h=n("929a"),f="Object already initialized",m=s.TypeError,y=s.WeakMap,v=function(t){return o(t)?r(t):i(t,{})},g=function(t){return function(e){var n;if(!c(e)||(n=r(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return n}};if(a||p.state){var b=p.state||(p.state=new y);b.get=b.get,b.has=b.has,b.set=b.set,i=function(t,e){if(b.has(t))throw new m(f);return e.facade=t,b.set(t,e),e},r=function(t){return b.get(t)||{}},o=function(t){return b.has(t)}}else{var w=d("state");h[w]=!0,i=function(t,e){if(u(t,w))throw new m(f);return e.facade=t,l(t,w,e),e},r=function(t){return u(t,w)?t[w]:{}},o=function(t){return u(t,w)}}t.exports={set:i,get:r,has:o,enforce:v,getterFor:g}},fe54:function(t,e,n){},fef4:function(t,e,n){"use strict";var i=n("a95a"),r=n("ec2f"),o=n("8785"),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&r(n=t.toString)&&!o(s=i(n,t)))return s;if(r(n=t.valueOf)&&!o(s=i(n,t)))return s;if("string"!==e&&r(n=t.toString)&&!o(s=i(n,t)))return s;throw new a("Can't convert object to primitive value")}},ff99:function(t,e,n){"use strict";var i=n("12f2"),r=Function.prototype,o=r.apply,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(o):function(){return a.apply(o,arguments)})},fff8:function(t,e,n){"use strict";var i=n("bc85"),r=n("2385"),o=n("d803"),a=n("a047"),s=n("767a"),c=n("ecb9"),l=i.Symbol,u=r("wks"),p=c?l["for"]||l:l&&l.withoutSetter||a;t.exports=function(t){return o(u,t)||(u[t]=s&&o(l,t)?l[t]:p("Symbol."+t)),u[t]}}})}));