@egova/egova-api 1.3.8 → 1.3.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/favicon.ico +0 -0
- package/dist/index.html +26 -0
- package/dist/static/css/app.bc5a3384.css +1 -0
- package/dist/static/css/chunk-053872d1.4a141679.css +1 -0
- package/dist/static/css/chunk-1ab4b9f7.0f241a4e.css +1 -0
- package/dist/static/css/chunk-211c69c2.cc3af54f.css +1 -0
- package/dist/static/css/chunk-21d822fa.489d3c11.css +1 -0
- package/dist/static/css/chunk-2faeecce.814ade88.css +1 -0
- package/dist/static/css/chunk-38af701c.71ff4fd2.css +1 -0
- package/dist/static/css/chunk-443b023b.2e3a4829.css +1 -0
- package/dist/static/css/chunk-56371b4c.2520ecfc.css +1 -0
- package/dist/static/css/chunk-5a57cace.2d18da9b.css +1 -0
- package/dist/static/css/chunk-6710c591.17a5e7db.css +1 -0
- package/dist/static/css/chunk-6cf2028e.a4b6cfe8.css +1 -0
- package/dist/static/css/chunk-7d36da7f.36ef3b85.css +1 -0
- package/dist/static/css/chunk-f710f872.ae524a6d.css +1 -0
- package/dist/static/css/chunk-vendors.da730b12.css +20 -0
- package/dist/static/fonts/ionicons.143146fa.woff2 +0 -0
- package/dist/static/fonts/ionicons.99ac3308.woff +0 -0
- package/dist/static/fonts/ionicons.d535a25a.ttf +0 -0
- package/dist/static/img/ionicons.a2c4a261.svg +870 -0
- package/dist/static/js/app.b6504211.js +1 -0
- package/dist/static/js/chunk-053872d1.65f49d68.js +1 -0
- package/dist/static/js/chunk-1ab4b9f7.14f716ff.js +8 -0
- package/dist/static/js/chunk-211c69c2.dbf8d591.js +1 -0
- package/dist/static/js/chunk-21d822fa.834c0df0.js +22 -0
- package/dist/static/js/chunk-2faeecce.4a94945d.js +1 -0
- package/dist/static/js/chunk-302b8592.613856d1.js +16 -0
- package/dist/static/js/chunk-38af701c.c4a64c82.js +1 -0
- package/dist/static/js/chunk-443b023b.04ccce40.js +7 -0
- package/dist/static/js/chunk-56371b4c.0671a399.js +1 -0
- package/dist/static/js/chunk-5a57cace.3b080319.js +1 -0
- package/dist/static/js/chunk-6710c591.364dcbdc.js +1 -0
- package/dist/static/js/chunk-6cf2028e.95c31efe.js +1 -0
- package/dist/static/js/chunk-7d36da7f.83928752.js +1 -0
- package/dist/static/js/chunk-f710f872.c79f3870.js +1 -0
- package/dist/static/js/chunk-vendors.ed2610de.js +111 -0
- package/dist/static/setting.js +19 -0
- package/package.json +2 -2
- package/dist/demo.html +0 -10
- package/dist/index.common.js +0 -15587
- package/dist/index.css +0 -1
- package/dist/index.umd.js +0 -15597
- package/dist/index.umd.min.js +0 -28
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(e){function t(t){for(var r,o,c=t[0],u=t[1],s=t[2],f=0,l=[];f<c.length;f++)o=c[f],Object.prototype.hasOwnProperty.call(i,o)&&i[o]&&l.push(i[o][0]),i[o]=0;for(r in u)Object.prototype.hasOwnProperty.call(u,r)&&(e[r]=u[r]);p&&p(t);while(l.length)l.shift()();return a.push.apply(a,s||[]),n()}function n(){for(var e,t=0;t<a.length;t++){for(var n=a[t],r=!0,o=1;o<n.length;o++){var c=n[o];0!==i[c]&&(r=!1)}r&&(a.splice(t--,1),e=u(u.s=n[0]))}return e}var r={},o={app:0},i={app:0},a=[];function c(e){return u.p+"static/js/"+({}[e]||e)+"."+{"chunk-211c69c2":"dbf8d591","chunk-302b8592":"613856d1","chunk-2faeecce":"4a94945d","chunk-443b023b":"04ccce40","chunk-5a57cace":"3b080319","chunk-6710c591":"364dcbdc","chunk-053872d1":"65f49d68","chunk-7d36da7f":"83928752","chunk-1ab4b9f7":"14f716ff","chunk-21d822fa":"834c0df0","chunk-38af701c":"c4a64c82","chunk-56371b4c":"0671a399","chunk-6cf2028e":"95c31efe","chunk-f710f872":"c79f3870"}[e]+".js"}function u(t){if(r[t])return r[t].exports;var n=r[t]={i:t,l:!1,exports:{}};return e[t].call(n.exports,n,n.exports,u),n.l=!0,n.exports}u.e=function(e){var t=[],n={"chunk-211c69c2":1,"chunk-2faeecce":1,"chunk-443b023b":1,"chunk-5a57cace":1,"chunk-6710c591":1,"chunk-053872d1":1,"chunk-7d36da7f":1,"chunk-1ab4b9f7":1,"chunk-21d822fa":1,"chunk-38af701c":1,"chunk-56371b4c":1,"chunk-6cf2028e":1,"chunk-f710f872":1};o[e]?t.push(o[e]):0!==o[e]&&n[e]&&t.push(o[e]=new Promise((function(t,n){for(var r="static/css/"+({}[e]||e)+"."+{"chunk-211c69c2":"cc3af54f","chunk-302b8592":"31d6cfe0","chunk-2faeecce":"814ade88","chunk-443b023b":"2e3a4829","chunk-5a57cace":"2d18da9b","chunk-6710c591":"17a5e7db","chunk-053872d1":"4a141679","chunk-7d36da7f":"36ef3b85","chunk-1ab4b9f7":"0f241a4e","chunk-21d822fa":"489d3c11","chunk-38af701c":"71ff4fd2","chunk-56371b4c":"2520ecfc","chunk-6cf2028e":"a4b6cfe8","chunk-f710f872":"ae524a6d"}[e]+".css",i=u.p+r,a=document.getElementsByTagName("link"),c=0;c<a.length;c++){var s=a[c],f=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(f===r||f===i))return t()}var l=document.getElementsByTagName("style");for(c=0;c<l.length;c++){s=l[c],f=s.getAttribute("data-href");if(f===r||f===i)return t()}var p=document.createElement("link");p.rel="stylesheet",p.type="text/css",p.onload=t,p.onerror=function(t){var r=t&&t.target&&t.target.src||i,a=new Error("Loading CSS chunk "+e+" failed.\n("+r+")");a.code="CSS_CHUNK_LOAD_FAILED",a.request=r,delete o[e],p.parentNode.removeChild(p),n(a)},p.href=i;var d=document.getElementsByTagName("head")[0];d.appendChild(p)})).then((function(){o[e]=0})));var r=i[e];if(0!==r)if(r)t.push(r[2]);else{var a=new Promise((function(t,n){r=i[e]=[t,n]}));t.push(r[2]=a);var s,f=document.createElement("script");f.charset="utf-8",f.timeout=120,u.nc&&f.setAttribute("nonce",u.nc),f.src=c(e);var l=new Error;s=function(t){f.onerror=f.onload=null,clearTimeout(p);var n=i[e];if(0!==n){if(n){var r=t&&("load"===t.type?"missing":t.type),o=t&&t.target&&t.target.src;l.message="Loading chunk "+e+" failed.\n("+r+": "+o+")",l.name="ChunkLoadError",l.type=r,l.request=o,n[1](l)}i[e]=void 0}};var p=setTimeout((function(){s({type:"timeout",target:f})}),12e4);f.onerror=f.onload=s,document.head.appendChild(f)}return Promise.all(t)},u.m=e,u.c=r,u.d=function(e,t,n){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(u.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)u.d(n,r,function(t){return e[t]}.bind(null,r));return n},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="",u.oe=function(e){throw console.error(e),e};var s=window["webpackJsonp"]=window["webpackJsonp"]||[],f=s.push.bind(s);s.push=t,s=s.slice();for(var l=0;l<s.length;l++)t(s[l]);var p=f;a.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("cd49")},1:function(e,t){},3699:function(e,t,n){"use strict";n.d(t,"a",(function(){return y}));n("68b7"),n("a4d2"),n("d371"),n("e02e");var r=n("96dc"),o=n("91a4"),i=n.n(o),a=n("a9a8");function c(e){return e instanceof Element?"element":Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}function u(e){return e.replace(/([^:]|^)\/{2,}/g,"$1/")}n("2597"),n("e459"),n("eab2"),n("6bf0"),n("46df"),n("e40c"),n("39d5");var s=function(){function e(){}return e.prototype.random=function(){return.001*window.crypto.getRandomValues(new Uint8Array(1))[0]},e.prototype.randomStr=function(e){var t=Math.ceil(e/2),n=new Uint8Array(t);window.crypto.getRandomValues(n);var r=Array.from(n).map((function(e){return e.toString(16).padStart(2,"0")})),o=r.join("").substr(0,e);return o},e.prototype.randomNumberStr=function(e){var t=Math.ceil(e/2),n=new Uint8Array(t);window.crypto.getRandomValues(n);for(var r="",o=0;o<t;o++)r+=n[o].toString().padStart(2,"0");return r.slice(0,e)},e}(),f=new s,l=f;function p(e){return null===e||void 0===e}function d(e){for(var t,n,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];if(!o.length)return e;var a=o.shift();if(h(e)&&h(a))for(var c in a)h(a[c])?(e[c]||Object.assign(e,(t={},t[c]={},t)),d(e[c],a[c])):Object.assign(e,(n={},n[c]=a[c],n));return d.apply(void 0,Object(r["f"])([e],o,!1))}function h(e){return e&&"object"===typeof e&&!Array.isArray(e)}function m(e){var t=new URLSearchParams;for(var n in e)e.hasOwnProperty(n)&&t.append(n,e[n]);return t.toString()}function b(e){var t=new URLSearchParams(e),n={};return t.forEach((function(e,t){n[t]=e})),n}var v=function(){function e(e){this._appIdCode=e,this.noncePrefix=this.generateRandomString()}return Object.defineProperty(e.prototype,"appIdCode",{get:function(){return this._appIdCode},enumerable:!1,configurable:!0}),e.prototype.generateRandomString=function(){return l.randomStr(8)},e.prototype.generateSignatureOption=function(){return{nonce:"".concat(this.noncePrefix,"_").concat(this.generateRandomString()),timestamp:Date.now().toString().substring(0,10)}},e.prototype.stringToUTF8ByteSize=function(e){var t=(new TextEncoder).encode(e);return t.length},e.prototype.isStringOverKB=function(e,t){var n=this.stringToUTF8ByteSize(e);return n>1024*t},e.prototype.removeNilValue=function(e){if("object"===c(e))for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var n=e[t],r=c(n);"object"===r?this.removeNilValue(n):"null"!==r&&"undefined"!==r&&"function"!==r||delete e[t]}},e.prototype.formatEncodeValue=function(e){var t=c(e),n="null"===t||"undefined"===t||"function"===t,r=n?"":e;return encodeURIComponent(r).replace(/%2B/g,"+").replace(/%20/g,"+").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/'/g,"%27").replace(/!/g,"%21").replace(/~/g,"%7E")},e.prototype.formatEncodeParam=function(e,t,n){var r=this,o=c(n);if("object"===o){var i=Object.keys(n).sort();0===i.length?e.push("".concat(t,"={}")):i.forEach((function(o){r.formatEncodeParam(e,""===t?"".concat(o):"".concat(t,"[").concat(o,"]"),n[o])}))}else"array"===o?0===n.length?e.push("".concat(t,"=[]")):n.forEach((function(n){r.formatEncodeParam(e,"".concat(t,"[]"),n)})):e.push("".concat(t,"=").concat(this.formatEncodeValue(n)))},e.prototype.sortParamByKey=function(e){void 0===e&&(e={});var t=[];return this.formatEncodeParam(t,"",e),t.join("&")},e.prototype.cryptoHash=function(e){return"Base64"===window.commonSetting.signatureEncodeType?i.a.HmacSHA1(e,this._appIdCode.code).toString(i.a.enc.Base64):i.a.HmacSHA1(e,this._appIdCode.code).toString(i.a.enc.Hex).toUpperCase()},e.prototype.urlSearchParams=function(e){var t;return e&&e.indexOf("?")>-1?b(null!==(t=e.split("?").pop())&&void 0!==t?t:""):{}},e.prototype.signatureHref=function(e){try{var t=new URL(e,window.location.origin).pathname,n=this.urlSearchParams(e),r=this.generateSignatureOption();d(n,r);var o=this.sortParamByKey(n),i=u("/".concat(t)),a="".concat(i,"?").concat(o),c=this.cryptoHash(a);e="".concat(a,"&signature=").concat(c)}catch(s){console.error("签名失败,请使用有效的链接",e)}return e},e.prototype.signatureConfig=function(e){var t,n,r,o,i;try{var c=null===(t=e.method)||void 0===t?void 0:t.toUpperCase(),s="GET"===c,f=Object(a["toRaw"])(e.data),l=null!==f&&"object"===typeof f,h=(null===(r=null===(n=e.headers)||void 0===n?void 0:n["Content-Type"])||void 0===r?void 0:r.toString())||"",v=h.includes("multipart/form-data"),g=h.includes("application/json");s||h||!l||(g=!0),d(e,{headers:{"App-Id":this._appIdCode.id}});var y={},k=this.urlSearchParams(e.url);if(d(y,k),!p(e.params)){var w=Object(a["toRaw"])(e.params);this.removeNilValue(w),e.params=w,d(y,b(m(w)))}!p(f)&&l&&(v||g||d(y,f));var O=this.generateSignatureOption();d(y,O);var j=this.sortParamByKey(y);if(g){var S=JSON.stringify(f),P=this.isStringOverKB(S,128);P||(j+=l?this.formatEncodeValue(S):this.formatEncodeValue(f))}var _="";_=(null===(o=e.url)||void 0===o?void 0:o.startsWith("http"))?e.url:(null===(i=e.url)||void 0===i?void 0:i.startsWith("/"))?"".concat(e.baseURL||"").concat(e.url||""):"".concat(e.baseURL||"","/").concat(e.url||"");var C=new URL(_,window.location.origin).pathname,E=u("/".concat(C)),A="".concat(E,"?").concat(j);O.signature=this.cryptoHash(A),e.params=d({},e.params,O)}catch(x){console.error("签名失败",x)}},e}(),g={id:"dex",code:"bb0a92a340ae4f5d936a9e6b010cb127"},y=new v(g)},6861:function(e,t,n){},7579:function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n("91e4"),o=n.n(r),i=n("b5af"),a=function(){return!1};(function(){function e(){}e.isLogin=function(){return void 0!==Object(i["a"])()},e.getRemeberLoginName=function(){var e=o.a.get("remember_login_name");return e},e.setRemeberLoginName=function(e){e?o.a.set("remember_login_name",e):o.a.remove("remember_login_name")}})()},b5af:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var r=n("91e4"),o=n.n(r),i=n("7579"),a=["dex-web:access_token","bigdata-web:access_token","access_token"],c=["admin_sso_token"];function u(e){return o.a.get(e)||localStorage.getItem(e)||void 0}function s(){var e,t=c.map(u).find(Boolean),n=Object(i["a"])()&&!!t,r=n?t:null!==(e=a.map(u).find(Boolean))&&void 0!==e?e:"",o=n?{"X-Authorization":"Bearer ".concat(r)}:{Authorization:"Bearer ".concat(r)};return{token:r,isUserCenter:n,headers:o}}},cd49:function(e,t,n){"use strict";n.r(t);var r=n("135b"),o=n.n(r),i=n("96dc"),a=n("a9a8"),c=function(e){function t(t){var n,r,o=this,i={el:"#app",router:t.applicationContext.router,store:t.applicationContext.store,template:'<div id="app"><router-view /></div>'};return o=e.call(this,i)||this,o.$store.dispatch("menu/save",(null===(r=null===(n=null===i||void 0===i?void 0:i.router)||void 0===n?void 0:n.options)||void 0===r?void 0:r.routes[0])||{}),o._workbench=t,o}return Object(i["d"])(t,e),Object.defineProperty(t.prototype,"workbench",{get:function(){return this._workbench},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"applicationContext",{get:function(){return this.workbench.applicationContext},enumerable:!1,configurable:!0}),t}(a["default"]),u=c,s=n("4ade"),f=n.n(s),l=n("91e4"),p=n.n(l),d=n("b5af"),h=n("614a"),m=n("6eef"),b=n("1935"),v=n.n(b),g=n("59be"),y=n.n(g),k=n("5542"),w=n.n(k),O=(n("6861"),n("3699")),j=o.a.WorkbenchBase,S=function(e){function t(t){return e.call(this,t)||this}return Object(i["d"])(t,e),Object.defineProperty(t.prototype,"workspace",{get:function(){return this._workspace},enumerable:!1,configurable:!0}),t.prototype.onOpen=function(e){return Object(i["b"])(this,void 0,Promise,(function(){var e;return Object(i["e"])(this,(function(t){return e=this.applicationContext,this.initializeComponent(e),this.initializeRouter(e),this.initializeStore(e),this.initializeDirective(e),this.initializeAxios(),this._workspace=this.createWorkspace(),[2]}))}))},t.prototype.initializeAxios=function(){f.a.interceptors.request.use((function(e){var t=Object(d["a"])(),n=t.token,r=t.isUserCenter;return n&&e.url&&(e.url.indexOf("unity")>=0||e.url.indexOf("/token/revoke")>=0)&&(r?e.headers["X-Authorization"]="Bearer "+n:e.headers.Authorization="Bearer "+n),e.url&&e.url.indexOf("/run")>=0&&e.url.indexOf("/exec")>=0&&(e.headers["Content-Type"]="multipart/form-data"),O["a"].signatureConfig(e),e}),(function(e){return console.error(e),Promise.reject(e)})),f.a.interceptors.response.use((function(e){return e}),(function(e){if(e.response&&e.response.data){var t=e.response.data;"invalid_token"!==t.error&&401!==e.response.status||(p.a.remove("username"),p.a.remove("access_token"),window.location.href="index.html#/login")}return Promise.reject(e)}))},t.prototype.createWorkspace=function(){return new u(this)},t.prototype.initializeComponent=function(e){a["default"].use(w.a),a["default"].use(y.a),a["default"].use(v.a)},t.prototype.initializeRouter=function(e){a["default"].use(h["a"]);var t=new h["a"](e.routerOptions);e.router=t},t.prototype.initializeStore=function(e){a["default"].use(m["a"]);var t=new m["a"].Store(e.storeOptions);e.store=t},t.prototype.initializeDirective=function(e){},t}(j),P=S,_=o.a.ApplicationContextBase,C=o.a.InvalidOperationException,E=function(e){function t(t,n){var r=e.call(this,"egova-web-demo")||this;return r.routerOptions={routes:t},r.storeOptions={modules:n},r}return Object(i["d"])(t,e),Object.defineProperty(t.prototype,"router",{get:function(){return this._router},set:function(e){if(!e)throw new C;this._router=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"directives",{get:function(){return this._directives},set:function(e){if(!e)throw new C;this._directives=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"store",{get:function(){return this._store},set:function(e){if(!e)throw new C;this._store=e},enumerable:!1,configurable:!0}),t.prototype.createWorkbench=function(e){return new P(this)},t}(_),A=E,x=n("f1e8"),I=function(){function e(){this.id="",this.name="",this.username="",this.permissions=[],this.detail={},this.photo=""}return e}(),B=I;function R(e,t){e.id=t.user.id,e.name=t.user.name,e.photo=t.user.photo,e.username=t.user.username,e.detail=t.user,e.permissions=t.permissions||[],p.a.set("username",e.username),p.a.set("personId",t.user.personId||""),t.access_token&&p.a.set("access_token",t.access_token)}function L(e){e.id="",e.name="",e.username="",e.photo="",e.detail={},e.permissions=[],p.a.remove("username"),p.a.remove("personId"),p.a.remove("access_token"),sessionStorage.removeItem("currentPath")}function T(e){L(e)}var U={save:R,clear:L,logout:T},z=function(){function e(){this.mutations=U,this.getters=void 0,this.actions=void 0,this.namespaced=!0,this.state=new B}return e}(),V=z,N=o.a.Type,H=function(){function e(){this.items=new Array,this.hide=!1}return e.prototype.findItem=function(e,t){void 0===t&&(t=this.items);for(var n=void 0,r=0,o=t;r<o.length;r++){var i=o[r];if(i.name&&i.name.toLocaleLowerCase()===e.toLocaleLowerCase()){n=i;break}if(N.isArray(i.children)&&(n=this.findItem(e,i.children),n))break}return n},e}(),M=H;function D(e,t){e.items=t}function K(e){e.items=[]}var W={SAVE:D,REMOVE:K};function q(e){return e.items}function F(e){return function(t){return e.findItem(t)}}var J={items:q,item:F};function X(e,t){e.commit("SAVE",t)}function $(e){e.commit("REMOVE")}function G(e){e.commit("HIDE")}var Q={hide:G,save:X,remove:$},Y=function(){function e(){this.mutations=W,this.getters=J,this.actions=Q,this.namespaced=!0,this.state=new M}return e}(),Z=Y,ee={user:new V,menu:new Z},te=ee,ne=new A(x["b"],te);o.a.Application.start(ne)},f1e8:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"b",(function(){return o}));var r={name:"home",path:"/",meta:{title:"API 管理"},redirect:"/project",component:function(){return n.e("chunk-38af701c").then(n.bind(null,"0b9c"))},children:[{name:"project",path:"project",title:"API 注册",component:function(){return n.e("chunk-56371b4c").then(n.bind(null,"556b"))},redirect:"/project/list",children:[{name:"project-list",path:"list",title:"API 注册",component:function(){return Promise.all([n.e("chunk-302b8592"),n.e("chunk-2faeecce")]).then(n.bind(null,"09e1"))}},{name:"project-detail",path:"detail/:id",title:"项目详情",component:function(){return Promise.all([n.e("chunk-302b8592"),n.e("chunk-6710c591"),n.e("chunk-7d36da7f"),n.e("chunk-21d822fa")]).then(n.bind(null,"f8cd"))}},{name:"project-comment",path:"comment",title:"项目动态",component:function(){return Promise.all([n.e("chunk-302b8592"),n.e("chunk-443b023b")]).then(n.bind(null,"625b"))}}]},{name:"combine",path:"combine",title:"接口合并",component:function(){return n.e("chunk-56371b4c").then(n.bind(null,"556b"))},redirect:"/combine/list",children:[{name:"combine-list",path:"list",title:"接口合并",component:function(){return Promise.all([n.e("chunk-302b8592"),n.e("chunk-6710c591"),n.e("chunk-053872d1")]).then(n.bind(null,"7da9"))}},{name:"combine-add",path:"add",title:"合并模型",component:function(){return Promise.all([n.e("chunk-302b8592"),n.e("chunk-6710c591"),n.e("chunk-7d36da7f"),n.e("chunk-1ab4b9f7")]).then(n.bind(null,"0e99"))}}]}]},o=[r,{name:"login",path:"/login",title:"登录",component:function(){return Promise.all([n.e("chunk-302b8592"),n.e("chunk-5a57cace")]).then(n.bind(null,"f083"))}},{name:"500",path:"/500",component:function(){return n.e("chunk-f710f872").then(n.bind(null,"10ac"))}},{name:"403",path:"/403",component:function(){return n.e("chunk-6cf2028e").then(n.bind(null,"b44b"))}},{name:"404",path:"/*",component:function(){return n.e("chunk-211c69c2").then(n.bind(null,"8706"))}}]}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-053872d1"],{"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'},"38ca":function(t,e,n){"use strict";var o=n("96dc"),i=n("76fa"),r=n("b134"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["d"])(e,t),e.prototype.page=function(t){return Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(this,(function(e){return[2,this._post("/unity/combine-info/page",t)]}))}))},e.prototype.getById=function(t){return Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(this,(function(e){return[2,this._get("/unity/combine-info/".concat(t))]}))}))},e.prototype.save=function(t){return Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(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 Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(this,(function(e){return[2,this._post("/unity/combine-info/batch?@state=delete",t)]}))}))},e.prototype.dataModelParams=function(t){return Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(this,(function(e){return[2,this._post("/unity/data-model/list-request-params",t)]}))}))},e.prototype.apiProjectParams=function(t){return Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(this,(function(e){return[2,this._post("/unity/api/info/list-request-params",t)]}))}))},e.prototype.testRun=function(t){return Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(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 Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(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 Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(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")},Object(o["c"])([Object(r["a"])("query",{title:"分页查询数据"})],e.prototype,"page",null),Object(o["c"])([Object(r["a"])("query",{title:"通过id获取数据详情"})],e.prototype,"getById",null),Object(o["c"])([Object(r["a"])("save",{title:"保存数据"})],e.prototype,"save",null),Object(o["c"])([Object(r["a"])("query",{title:"批量删除"})],e.prototype,"batchDelete",null),Object(o["c"])([Object(r["a"])("query",{title:"批量查询模型请求参数"})],e.prototype,"dataModelParams",null),Object(o["c"])([Object(r["a"])("query",{title:"批量查询API请求参数"})],e.prototype,"apiProjectParams",null),Object(o["c"])([Object(r["a"])("query",{title:"接口测试",showTip:!0})],e.prototype,"testRun",null),Object(o["c"])([Object(r["a"])("get",{title:"获取文档"})],e.prototype,"getDoc",null),Object(o["c"])([Object(r["a"])("save",{title:"保存数据"})],e.prototype,"changeAuthFlag",null),Object(o["c"])([Object(r["a"])("save",{title:"保存数据"})],e.prototype,"changeStatus",null),Object(o["c"])([Object(r["a"])("save",{title:"复制接口"})],e.prototype,"copyApi",null),e}(i["a"]);e["a"]=a},"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'},"44c1":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'},"58d2":function(t,e,n){},"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'},"7da9":function(t,e,n){"use strict";n.r(e);n("e02e");var o=n("96dc"),i=n("59be"),r=n("2ad7"),a=n("38ca"),c=n("da89"),s=n("c37e"),l=(n("9fb0"),n("68b7"),n("a4d2"),n("d371"),n("76fa")),d=n("b134"),p=n("4ade"),u=n.n(p),h=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["d"])(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 u.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),o=document.createElement("a");o.href=n,o.download=decodeURI("data-model.json"),o.style.display="none",document.body.appendChild(o),o.target="_blank",o.click(),o.parentNode.removeChild(o),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))},Object(o["c"])([Object(d["a"])("save",{title:"保存",showTip:!1})],e.prototype,"saveNode",null),Object(o["c"])([Object(d["a"])("delete",{title:"删除",showTip:!1})],e.prototype,"deleteTreeNodeById",null),Object(o["c"])([Object(d["a"])("save",{title:"导入接口数据",showTip:!0,showErrorMsg:!0})],e.prototype,"confirmImport",null),e}(l["a"]),m=h,f=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 Object(o["d"])(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 Object(o["b"])(this,void 0,void 0,(function(){var t;return Object(o["e"])(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]}}))}))},Object(o["c"])([Object(r["a"])(m)],e.prototype,"service",void 0),Object(o["c"])([Object(i["config"])({type:Boolean,default:!1})],e.prototype,"value",void 0),Object(o["c"])([Object(i["config"])({type:Array,default:[]})],e.prototype,"categories",void 0),Object(o["c"])([Object(i["config"])({default:function(){return{name:"",type:"api_combine",parentId:null}}})],e.prototype,"data",void 0),Object(o["c"])([Object(i["watch"])("value")],e.prototype,"onValueChange",null),Object(o["c"])([Object(i["watch"])("show")],e.prototype,"modalShow",null),e=Object(o["c"])([Object(i["component"])({template:n("3b85"),components:{"u-tree-selector":s["a"]}})],e),e}(i["Component"]),y=f,b=(n("de03"),n("1d8a")),g=n("b5af"),v=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 Object(o["d"])(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 b["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=Object(g["a"])().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,"格式错误"))},Object(o["c"])([Object(i["config"])({default:function(){return Object.create(null)}})],e.prototype,"data",void 0),Object(o["c"])([Object(i["config"])({default:""})],e.prototype,"importUrl",void 0),e=Object(o["c"])([Object(i["component"])({template:n("07ab")})],e),e}(i["Component"]),O=v,j=(n("98f4"),n("44c1"),n("546b")),w=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.childService=new a["a"],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 Object(o["d"])(e,t),Object.defineProperty(e.prototype,"uploadAction",{get:function(){return b["a"].baseUrl+"/unity/combine-info/import"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"headers",{get:function(){var t=Object(g["a"])().headers;return t},enumerable:!1,configurable:!0}),e.prototype.onImportConfirm=function(){return Object(o["b"])(this,void 0,void 0,(function(){var t,e;return Object(o["e"])(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 Object(o["b"])(this,void 0,void 0,(function(){var t;return Object(o["e"])(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 Object(o["b"])(this,void 0,void 0,(function(){var e,n;return Object(o["e"])(this,(function(o){switch(o.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=o.sent(),!n||n.hasError?[3,3]:[4,this.service.exportModel(e)];case 2:return o.sent(),[3,4];case 3:n&&n.hasError&&this.$message.error(n.message),o.label=4;case 4:return[2]}}))}))},e.prototype.renderContent=function(t,e){var n=this,o=(e.root,e.node,e.data);return this.$set(o,"selected",this.selectItem.id===o.id),this.$set(o,"expand",this.expandNodeSet.has(o.id)),t(O,{props:{data:o},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=j["a"].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=Object(o["a"])({},t),this.showAddTreeNodeModal=!0},e.prototype.onDeleteNode=function(t){return Object(o["b"])(this,void 0,void 0,(function(){var e,n=this;return Object(o["e"])(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 Object(o["b"])(n,void 0,void 0,(function(){return Object(o["e"])(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 Object(o["b"])(this,void 0,void 0,(function(){var e,n;return Object(o["e"])(this,(function(o){switch(o.label){case 0:return e={condition:{categoryId:t.id}},[4,this.childService.page(e)];case 1:return n=o.sent(),[2,Promise.resolve(n&&!n.hasError&&n.totalCount>0)]}}))}))},e.prototype.queryTreeData=function(){return Object(o["b"])(this,void 0,void 0,(function(){var t;return Object(o["e"])(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=[Object(o["a"])(Object(o["a"])({},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()},Object(o["c"])([Object(r["a"])(m)],e.prototype,"service",void 0),Object(o["c"])([Object(i["config"])({default:""})],e.prototype,"taskCategoryID",void 0),Object(o["c"])([Object(i["watch"])("initSelectItem",{immediate:!0})],e.prototype,"initSelectItemChange",null),Object(o["c"])([Object(i["watch"])("taskCategoryID",{immediate:!1})],e.prototype,"watchTaskID",null),e=Object(o["c"])([Object(i["component"])({template:n("46d3"),components:{"u-add-node":y}})],e),e}(c["a"]),D=w,x=n("a9f3"),C=(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 Object(o["d"])(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 Object(o["b"])(this,void 0,void 0,(function(){var r,a;return Object(o["e"])(this,(function(c){switch(c.label){case 0:if(!(null===(t=this.currentNode)||void 0===t?void 0:t.id))return[2];c.label=1;case 1:return c.trys.push([1,,3,4]),this.loading=!0,r=Object.create(null),r.condition=Object(o["a"])(Object(o["a"])({},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 a=c.sent(),((null===a||void 0===a?void 0:a.result)||[]).forEach((function(t){t._disabled="PUBLISHED"===t.status})),this.list=null!==(n=a&&a.result)&&void 0!==n?n:[],this.paging.totalCount=null!==(i=a&&a.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,o=e.categoryId;this.onAdd(n,o,!1)},e.prototype.onEdit=function(t){var e=null!==t&&void 0!==t?t:{},n=e.id,o=e.categoryId;this.onAdd(n,o,!0)},e.prototype.onAdd=function(t,e,n){var i;return void 0===n&&(n=!0),Object(o["b"])(this,void 0,void 0,(function(){var r;return Object(o["e"])(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 Object(o["b"])(this,void 0,void 0,(function(){var e,n;return Object(o["e"])(this,(function(o){switch(o.label){case 0:return e=t.id,e?[4,this.service.batchDelete([e])]:[2];case 1:return n=o.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 Object(o["b"])(t,void 0,void 0,(function(){var t;return Object(o["e"])(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 Object(o["b"])(this,void 0,void 0,(function(){var t;return Object(o["e"])(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 Object(o["b"])(this,void 0,void 0,(function(){var n,i;return Object(o["e"])(this,(function(o){switch(o.label){case 0:return n=e.id,n?[4,this.service.changeAuthFlag(n,t?1:0)]:[2];case 1:return i=o.sent(),(null===i||void 0===i?void 0:i.hasError)||(e.authFlag=t?1:0),[2]}}))}))},e.prototype.onStatusChange=function(t,e,n){return Object(o["b"])(this,void 0,void 0,(function(){var n,i;return Object(o["e"])(this,(function(o){switch(o.label){case 0:return n=e.id,n?[4,this.service.changeStatus(n,t?1:0)]:[2];case 1:return i=o.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 Object(o["b"])(this,void 0,void 0,(function(){var e;return Object(o["e"])(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)},Object(o["c"])([Object(r["a"])(a["a"])],e.prototype,"service",void 0),e=Object(o["c"])([Object(i["component"])({name:"ProjectCombineManage",template:n("ccf6"),components:{"u-type-tree":D,"u-data-model-doc":x["a"],"u-tree-selector":s["a"]}})],e),e}(i["View"]));e["default"]=C},"98f4":function(t,e,n){},"9fb0":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'},b61c:function(t,e,n){},c37e:function(t,e,n){"use strict";var o=n("96dc"),i=n("546b"),r=n("59be"),a=(n("58d2"),n("b61c"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["d"])(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()},Object(o["c"])([Object(r["config"])({default:function(){return{}}})],e.prototype,"data",void 0),Object(o["c"])([Object(r["config"])({type:Boolean,default:!1})],e.prototype,"canChooseFolder",void 0),e=Object(o["c"])([Object(r["component"])({template:n("d30a")})],e),e}(r["Component"])),c=a,s=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 Object(o["d"])(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=i["a"].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(c,{props:{data:n,canChooseFolder:this.canChooseFolder}})},e.prototype.onTreeDataChange=function(){this.tree=i["a"].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,o=0,i=e;o<i.length;o++){var r=i[o];if(r.id===t)return r;if(r.children&&r.children.length&&(n=this.getNodeById(t,r.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",{})},Object(o["c"])([Object(r["config"])({type:String,default:""})],e.prototype,"value",void 0),Object(o["c"])([Object(r["config"])({type:Array,default:function(){return[]}})],e.prototype,"treeData",void 0),Object(o["c"])([Object(r["config"])({default:"请输入"})],e.prototype,"placeholder",void 0),Object(o["c"])([Object(r["config"])({default:"children"})],e.prototype,"leafName",void 0),Object(o["c"])([Object(r["config"])({type:Boolean,default:!1})],e.prototype,"filterEmpty",void 0),Object(o["c"])([Object(r["config"])({type:Boolean,default:!1})],e.prototype,"readonly",void 0),Object(o["c"])([Object(r["config"])({type:Boolean,default:!1})],e.prototype,"canChooseFolder",void 0),Object(o["c"])([Object(r["watch"])("value",{immediate:!0})],e.prototype,"onValueChange",null),Object(o["c"])([Object(r["watch"])("treeData",{deep:!1,immediate:!0})],e.prototype,"onTreeDataChange",null),e=Object(o["c"])([Object(r["component"])({template:n("a1f0"),components:{}})],e),e}(r["Component"]);e["a"]=s},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'},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'},da89:function(t,e,n){"use strict";var o=n("96dc"),i=n("59be"),r=(n("98f4"),n("546b")),a=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 Object(o["d"])(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),o=!1;return!n&&t.children&&t.children.forEach((function(t){o=e.match(t).matched||e.match(t).childrenMatched||o})),{matched:n,childrenMatched:o}},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=r["a"].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,o=0;o<t.length;o++)if(e.length&&t[o].innerText===e[e.length-1].name){n=t[o];break}t.length&&setTimeout((function(){n.scrollIntoView({behavior:"smooth",block:"center"})}),200)}))}},e.prototype.renderContent=function(t,e){var n=this,o=(e.root,e.node,e.data),i=!!o.children;return this.$set(o,"selected",this.selectItem.id===o.id),t("div",{class:"common-tree-node"},[t("i",i?{class:this.isTreeList?"iconfont icon-mulushu":"iconfont icon-bumenkaohe",on:{click:function(t){i?n.clickParentNode(t,o):n.clickLeafNode(t,o)}}}:{class:"iconfont icon-file",on:{click:function(t){i?n.clickParentNode(t,o):n.clickLeafNode(t,o)}}}),t("p",{on:{click:function(t){i?n.clickParentNode(t,o):n.clickLeafNode(t,o)}}},o.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()},Object(o["c"])([Object(i["config"])({default:null})],e.prototype,"propData",void 0),Object(o["c"])([Object(i["config"])({default:function(){return{}}})],e.prototype,"initSelectItem",void 0),Object(o["c"])([Object(i["config"])({default:!1})],e.prototype,"isTreeList",void 0),Object(o["c"])([Object(i["config"])({default:""})],e.prototype,"commonTaskCategoryID",void 0),Object(o["c"])([Object(i["watch"])("data",{immediate:!0,deep:!1}),Object(i["watch"])("propData",{immediate:!0,deep:!1})],e.prototype,"initTreeData",null),Object(o["c"])([Object(i["watch"])("commonTaskCategoryID",{immediate:!1})],e.prototype,"watchTaskID",null),Object(o["c"])([Object(i["watch"])("initSelectItem")],e.prototype,"initSelectItemChange",null),e=Object(o["c"])([Object(i["component"])({template:n("6d46"),components:{}})],e),e}(i["Component"]);e["a"]=a},da9a:function(t,e,n){},de03:function(t,e,n){}}]);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1ab4b9f7"],{"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'},"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'},"0e99":function(t,e,n){"use strict";n.r(e);n("e02e");var o=n("96dc"),i=n("59be"),r=n("2ad7"),a=n("38ca"),s=n("8106"),c=(n("ca1f"),function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.editor={},e}return Object(o["d"])(e,t),e.prototype.onEditorInited=function(t){this.editor=t,this.editor.setReadOnly(this.readOnly)},e.prototype.onReadOnlyChange=function(){this.editor.setReadOnly(this.readOnly)},Object(o["c"])([Object(i["propSync"])("data")],e.prototype,"script",void 0),Object(o["c"])([Object(i["config"])({type:Boolean,default:!1})],e.prototype,"readOnly",void 0),Object(o["c"])([Object(i["watch"])("readOnly")],e.prototype,"onReadOnlyChange",null),e=Object(o["c"])([Object(i["component"])({template:n("e718"),components:{"u-editor":s["a"]}})],e),e}(i["Component"])),l=c,d=n("da89"),u=n("546b"),p=n("d735"),f=n("08ba"),h=n("b134"),v=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["d"])(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")},Object(o["c"])([Object(h["a"])("post",{title:"分页查询数据模型"})],e.prototype,"dataModel",null),Object(o["c"])([Object(h["a"])("get",{title:"获取文档"})],e.prototype,"getMavonDoc",null),Object(o["c"])([Object(h["a"])("query",{title:"查询分类树"})],e.prototype,"getDataModelTree",null),e}(f["a"]),m=v,b=n("a9f3"),y=(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 Object(o["d"])(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 Object(o["b"])(this,void 0,void 0,(function(){var e;return Object(o["e"])(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)},Object(o["c"])([Object(r["a"])(m)],e.prototype,"service",void 0),Object(o["c"])([Object(i["config"])({default:function(){return[]}})],e.prototype,"data",void 0),Object(o["c"])([Object(p["PropSync"])("paging",{default:function(){return null}})],e.prototype,"page",void 0),e=Object(o["c"])([Object(i["component"])({template:n("82af"),components:{"u-data-model-doc":b["a"]}})],e),e}(i["View"])),g=y,j=(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 Object(o["d"])(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 Object(o["a"])(Object(o["a"])({},t),{code:t.typeCode,description:t.typeDescription})})),this.init()},e.prototype.init=function(){this.getTreeData()},e.prototype.getTreeData=function(){return Object(o["b"])(this,void 0,void 0,(function(){var t;return Object(o["e"])(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=u["a"].handlerTreeData(t.result||[],"name"),this.tempData.length>0?(this.tempData.forEach((function(t){t.parentId||(t.parentId="virtual_root_directory")})),this.treeData=[Object(o["a"])(Object(o["a"])({},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 Object(o["b"])(this,void 0,void 0,(function(){var t,e,n=this;return Object(o["e"])(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 Object(o["a"])(Object(o["a"])({},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,o=t;n<o.length;n++){var i=o[n];if(e.typeId===i.typeId)return e._checked=!0}return e._checked=!1})),this.checkedData=Object(o["f"])(Object(o["f"])([],this.lastCheckedData,!0),t,!0)},e.prototype.onBatchDelete=function(){this.checkedData=[],this.lastCheckedData=[],this.tableData=this.tableData.map((function(t){return Object(o["a"])(Object(o["a"])({},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)},Object(o["c"])([Object(r["a"])(m)],e.prototype,"service",void 0),Object(o["c"])([Object(i["config"])({type:Boolean,default:!1})],e.prototype,"value",void 0),Object(o["c"])([Object(i["config"])({type:Array,default:[]})],e.prototype,"data",void 0),Object(o["c"])([Object(i["watch"])("show")],e.prototype,"onShowChange",null),e=Object(o["c"])([Object(i["component"])({template:n("4935"),components:{"u-tree":d["a"],"u-data-model-list":g}})],e),e}(i["View"])),w=j,x=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["d"])(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"))},Object(o["c"])([Object(h["a"])("query",{title:"查询分类树"})],e.prototype,"getCategoryTree",null),Object(o["c"])([Object(h["a"])("post",{title:"分页查询数据模型"})],e.prototype,"apiProject",null),Object(o["c"])([Object(h["a"])("query",{title:"查询详情"})],e.prototype,"getApiDetail",null),e}(f["a"]),O=x,k=(n("7359"),n("d390")),D=n.n(k),S=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 Object(o["d"])(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}),Object(o["c"])([Object(i["config"])({default:function(){return{}}})],e.prototype,"model",void 0),Object(o["c"])([Object(r["a"])(a["a"])],e.prototype,"service",void 0),Object(o["c"])([Object(i["watch"])("model",{immediate:!0})],e.prototype,"init",null),e=Object(o["c"])([Object(i["component"])({template:n("3a71"),components:{"json-viewer":D.a}})],e),e}(i["Component"]),I=S,C=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 Object(o["d"])(e,t),Object.defineProperty(e.prototype,"dataList",{get:function(){return this.model.items},enumerable:!1,configurable:!0}),Object(o["c"])([Object(i["config"])({default:function(){return{}}})],e.prototype,"model",void 0),e=Object(o["c"])([Object(i["component"])({template:n("37f5"),components:{}})],e),e}(i["Component"]),E=C,_=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 Object(o["d"])(e,t),Object.defineProperty(e.prototype,"dataList",{get:function(){return this.model.requestParams},enumerable:!1,configurable:!0}),Object(o["c"])([Object(i["config"])({default:function(){return{}}})],e.prototype,"model",void 0),e=Object(o["c"])([Object(i["component"])({template:n("a0f2"),components:{}})],e),e}(i["Component"]),T=_,P=(n("45e3"),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["d"])(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},Object(o["c"])([Object(p["PropSync"])("visiable",{default:!1})],e.prototype,"show",void 0),Object(o["c"])([Object(i["config"])({default:function(){return{}}})],e.prototype,"model",void 0),e=Object(o["c"])([Object(i["component"])({template:n("ab68"),components:{api:I,catalog:E,ddcat:T}})],e),e}(i["Component"])),M=P,N=(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 Object(o["d"])(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 Object(o["b"])(this,void 0,void 0,(function(){var e;return Object(o["e"])(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)},Object(o["c"])([Object(r["a"])(O)],e.prototype,"service",void 0),Object(o["c"])([Object(i["config"])({default:function(){return[]}})],e.prototype,"data",void 0),Object(o["c"])([Object(p["PropSync"])("paging",{default:function(){return null}})],e.prototype,"page",void 0),e=Object(o["c"])([Object(i["component"])({template:n("981a"),components:{"u-api-project-detail":M}})],e),e}(i["View"])),A=N,R=(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 Object(o["d"])(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 Object(o["a"])(Object(o["a"])({},t),{url:t.typeCode})})),this.init()},e.prototype.init=function(){this.getTreeData()},e.prototype.getTreeData=function(){return Object(o["b"])(this,void 0,void 0,(function(){var t;return Object(o["e"])(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=u["a"].handlerTreeData(t.result||[],"name"),this.tempData.length>0?(this.tempData.forEach((function(t){t.parentId||(t.parentId="virtual_root_directory")})),this.treeData=[Object(o["a"])(Object(o["a"])({},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 Object(o["b"])(this,void 0,void 0,(function(){var t,e,n=this;return Object(o["e"])(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 Object(o["a"])(Object(o["a"])({},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,o=t;n<o.length;n++){var i=o[n];if(e.typeId===i.typeId)return e._checked=!0}return e._checked=!1})),this.checkedData=Object(o["f"])(Object(o["f"])([],this.lastCheckedData,!0),t,!0)},e.prototype.onBatchDelete=function(){this.checkedData=[],this.lastCheckedData=[],this.tableData=this.tableData.map((function(t){return Object(o["a"])(Object(o["a"])({},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)},Object(o["c"])([Object(r["a"])(O)],e.prototype,"service",void 0),Object(o["c"])([Object(i["config"])({type:Boolean,default:!1})],e.prototype,"value",void 0),Object(o["c"])([Object(i["config"])({type:Array,default:[]})],e.prototype,"data",void 0),Object(o["c"])([Object(i["watch"])("data")],e.prototype,"onDataChange",null),Object(o["c"])([Object(i["watch"])("show")],e.prototype,"onShowChange",null),e=Object(o["c"])([Object(i["component"])({template:n("0941"),components:{"u-tree":d["a"],"u-api-project-list":A}})],e),e}(i["View"])),L=R,$=(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 Object(o["d"])(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 Object(o["b"])(this,void 0,void 0,(function(){var t;return Object(o["e"])(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},Object(o["c"])([Object(i["config"])({default:function(){return[]}})],e.prototype,"data",void 0),Object(o["c"])([Object(i["config"])({default:!0})],e.prototype,"isEdit",void 0),Object(o["c"])([Object(r["a"])(a["a"])],e.prototype,"service",void 0),e=Object(o["c"])([Object(i["component"])({template:n("d8b4")})],e),e}(i["View"])),B=$,q=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 Object(o["d"])(e,t),e}(B),z=q,V=(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 Object(o["d"])(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,o;(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===(o=this.data)||void 0===o?void 0:o.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},Object(o["c"])([Object(i["config"])({default:function(){return[]}})],e.prototype,"params",void 0),Object(o["c"])([Object(i["config"])({default:{}})],e.prototype,"data",void 0),Object(o["c"])([Object(p["PropSync"])("visible",{default:!1})],e.prototype,"show",void 0),Object(o["c"])([Object(i["watch"])("show")],e.prototype,"onShowChange",null),Object(o["c"])([Object(i["watch"])("data")],e.prototype,"onDataChange",null),e=Object(o["c"])([Object(i["component"])({template:n("086a"),components:{"u-base-editor":l}})],e),e}(i["View"])),J=V,U=(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 Object(o["d"])(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,o=void 0===n?"":n,i=t.categoryId,r=void 0===i?"":i;this.isEdit=1===Number(e),this.isAdd=this.isEdit&&!o,this.categoryId=r,this.title=this.isEdit?this.isAdd?"新增合并模型":"编辑合并模型":"合并模型详情",o!==this.id&&(this.id=o,this.getById())},e.prototype.getById=function(){return Object(o["b"])(this,void 0,void 0,(function(){var t;return Object(o["e"])(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 o,i,r,a,s=new Set,c=0;c<(null===(o=t.model.reqParams)||void 0===o?void 0:o.length);c++){var l=t.model.reqParams[c];if(!(null===(i=l.name)||void 0===i?void 0:i.length))return t.$message.error("请求参数名称不能为空!"),n();if(s.has(l.name))return t.$message.error("请求参数有重名!"),n();s.add(l.name)}if(!(null===(r=t.model.relations)||void 0===r?void 0:r.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 d=t.$refs.form;null===d||void 0===d||d.validate((function(t){return e(t)}))}))},e.prototype.onSave=function(t){var e=this;return new Promise((function(n,i){return Object(o["b"])(e,void 0,void 0,(function(){var e;return Object(o["e"])(this,(function(o){switch(o.label){case 0:if(this.saveing)return[2,i()];this.saveing=!0,o.label=1;case 1:return o.trys.push([1,7,8,9]),[4,this.onValidate()];case 2:return o.sent(),this.$set(this.model,"categoryId",this.categoryId),[4,this.service.save(this.model)];case 3:return e=o.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:o.sent(),o.label=5;case 5:t&&(this.$message.success("保存数据成功!"),this.onBack()),o.label=6;case 6:return[2,n(!0)];case 7:return o.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 Object(o["b"])(this,void 0,void 0,(function(){var i,r,a,s,c;return Object(o["e"])(this,(function(l){switch(l.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?(a=[],s=[],"MODEL"!==t?[3,2]:(a=e.map((function(e){return Object(o["a"])(Object(o["a"])({},e),{type:t,typeCode:e.code})})),[4,this.service.dataModelParams(r)])):[3,5];case 1:return c=l.sent(),s=((null===c||void 0===c?void 0:c.result)||[]).map((function(e){return Object(o["a"])(Object(o["a"])({},e),{relationType:t,relationTypeId:e.modelId})})),[3,4];case 2:return"API"!==t?[3,4]:(a=e.map((function(e){return Object(o["a"])(Object(o["a"])({},e),{type:t,typeCode:e.url})})),[4,this.service.apiProjectParams(r)]);case 3:c=l.sent(),s=((null===c||void 0===c?void 0:c.result)||[]).map((function(e){return Object(o["a"])(Object(o["a"])({},e),{relationType:t,relationTypeId:e.apiId,required:!1,type:"STRING"})})),l.label=4;case 4:this.model.relations=Object(o["f"])(Object(o["f"])([],this.model.relations,!0),a,!0),this.model.reqParams=Object(o["f"])(Object(o["f"])([],this.model.reqParams,!0),s,!0),l.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 Object(o["b"])(this,void 0,void 0,(function(){var e;return Object(o["e"])(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 Object(o["b"])(this,void 0,void 0,(function(){return Object(o["e"])(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 Object(o["b"])(this,void 0,void 0,(function(){var i;return Object(o["e"])(this,(function(r){switch(r.label){case 0:return[4,this.service.testRun(Object(o["a"])(Object(o["a"])({},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 Object(o["b"])(this,void 0,void 0,(function(){var t;return Object(o["e"])(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]}}))}))},Object(o["c"])([Object(r["a"])(a["a"])],e.prototype,"service",void 0),Object(o["c"])([Object(r["a"])(m)],e.prototype,"dataModelService",void 0),Object(o["c"])([Object(r["a"])(O)],e.prototype,"apiProjectService",void 0),e=Object(o["c"])([Object(i["component"])({name:"ProjectCombineModel",template:n("d8e7"),components:{"u-base-editor":l,"u-data-model-modal":w,"u-data-model-doc-modal":b["a"],"u-api-project-modal":L,"u-api-project-detail-modal":M,"u-request-parameter-list":B,"u-response-parameter-list":z,"u-test-run-modal":J,"u-data-model-doc":b["a"]}})],e),e}(i["View"]));e["default"]=U},"2e28":function(t,e,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'},"38ca":function(t,e,n){"use strict";var o=n("96dc"),i=n("76fa"),r=n("b134"),a=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(o["d"])(e,t),e.prototype.page=function(t){return Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(this,(function(e){return[2,this._post("/unity/combine-info/page",t)]}))}))},e.prototype.getById=function(t){return Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(this,(function(e){return[2,this._get("/unity/combine-info/".concat(t))]}))}))},e.prototype.save=function(t){return Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(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 Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(this,(function(e){return[2,this._post("/unity/combine-info/batch?@state=delete",t)]}))}))},e.prototype.dataModelParams=function(t){return Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(this,(function(e){return[2,this._post("/unity/data-model/list-request-params",t)]}))}))},e.prototype.apiProjectParams=function(t){return Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(this,(function(e){return[2,this._post("/unity/api/info/list-request-params",t)]}))}))},e.prototype.testRun=function(t){return Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(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 Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(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 Object(o["b"])(this,void 0,Promise,(function(){return Object(o["e"])(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")},Object(o["c"])([Object(r["a"])("query",{title:"分页查询数据"})],e.prototype,"page",null),Object(o["c"])([Object(r["a"])("query",{title:"通过id获取数据详情"})],e.prototype,"getById",null),Object(o["c"])([Object(r["a"])("save",{title:"保存数据"})],e.prototype,"save",null),Object(o["c"])([Object(r["a"])("query",{title:"批量删除"})],e.prototype,"batchDelete",null),Object(o["c"])([Object(r["a"])("query",{title:"批量查询模型请求参数"})],e.prototype,"dataModelParams",null),Object(o["c"])([Object(r["a"])("query",{title:"批量查询API请求参数"})],e.prototype,"apiProjectParams",null),Object(o["c"])([Object(r["a"])("query",{title:"接口测试",showTip:!0})],e.prototype,"testRun",null),Object(o["c"])([Object(r["a"])("get",{title:"获取文档"})],e.prototype,"getDoc",null),Object(o["c"])([Object(r["a"])("save",{title:"保存数据"})],e.prototype,"changeAuthFlag",null),Object(o["c"])([Object(r["a"])("save",{title:"保存数据"})],e.prototype,"changeStatus",null),Object(o["c"])([Object(r["a"])("save",{title:"复制接口"})],e.prototype,"copyApi",null),e}(i["a"]);e["a"]=a},"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'},"45e3":function(t,e,n){},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'},"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'},7359:function(t,e,n){},"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'},"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'},"98f4":function(t,e,n){},"9e10":function(t,e,n){},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){},a2ea:function(t,e,n){
|
|
2
|
+
/*!
|
|
3
|
+
* clipboard.js v2.0.11
|
|
4
|
+
* https://clipboardjs.com/
|
|
5
|
+
*
|
|
6
|
+
* Licensed MIT © Zeno Rocha
|
|
7
|
+
*/
|
|
8
|
+
(function(e,n){t.exports=n()})(0,(function(){return function(){var t={686:function(t,e,n){"use strict";n.d(e,{default:function(){return P}});var o=n(279),i=n.n(o),r=n(370),a=n.n(r),s=n(817),c=n.n(s);function l(t){try{return document.execCommand(t)}catch(e){return!1}}var d=function(t){var e=c()(t);return l("cut"),e},u=d;function p(t){var e="rtl"===document.documentElement.getAttribute("dir"),n=document.createElement("textarea");n.style.fontSize="12pt",n.style.border="0",n.style.padding="0",n.style.margin="0",n.style.position="absolute",n.style[e?"right":"left"]="-9999px";var o=window.pageYOffset||document.documentElement.scrollTop;return n.style.top="".concat(o,"px"),n.setAttribute("readonly",""),n.value=t,n}var f=function(t,e){var n=p(t);e.container.appendChild(n);var o=c()(n);return l("copy"),n.remove(),o},h=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body},n="";return"string"===typeof t?n=f(t,e):t instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(null===t||void 0===t?void 0:t.type)?n=f(t.value,e):(n=c()(t),l("copy")),n},v=h;function m(t){return m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},m(t)}var b=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.action,n=void 0===e?"copy":e,o=t.container,i=t.target,r=t.text;if("copy"!==n&&"cut"!==n)throw new Error('Invalid "action" value, use either "copy" or "cut"');if(void 0!==i){if(!i||"object"!==m(i)||1!==i.nodeType)throw new Error('Invalid "target" value, use a valid Element');if("copy"===n&&i.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if("cut"===n&&(i.hasAttribute("readonly")||i.hasAttribute("disabled")))throw new Error('Invalid "target" attribute. You can\'t cut text from elements with "readonly" or "disabled" attributes')}return r?v(r,{container:o}):i?"cut"===n?u(i):v(i,{container:o}):void 0},y=b;function g(t){return g="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"===typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function j(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){for(var n=0;n<e.length;n++){var o=e[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}function x(t,e,n){return e&&w(t.prototype,e),n&&w(t,n),t}function O(t,e){if("function"!==typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&k(t,e)}function k(t,e){return k=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},k(t,e)}function D(t){var e=C();return function(){var n,o=E(t);if(e){var i=E(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return S(this,n)}}function S(t,e){return!e||"object"!==g(e)&&"function"!==typeof e?I(t):e}function I(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function C(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function E(t){return E=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},E(t)}function _(t,e){var n="data-clipboard-".concat(t);if(e.hasAttribute(n))return e.getAttribute(n)}var T=function(t){O(n,t);var e=D(n);function n(t,o){var i;return j(this,n),i=e.call(this),i.resolveOptions(o),i.listenClick(t),i}return x(n,[{key:"resolveOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.action="function"===typeof t.action?t.action:this.defaultAction,this.target="function"===typeof t.target?t.target:this.defaultTarget,this.text="function"===typeof t.text?t.text:this.defaultText,this.container="object"===g(t.container)?t.container:document.body}},{key:"listenClick",value:function(t){var e=this;this.listener=a()(t,"click",(function(t){return e.onClick(t)}))}},{key:"onClick",value:function(t){var e=t.delegateTarget||t.currentTarget,n=this.action(e)||"copy",o=y({action:n,container:this.container,target:this.target(e),text:this.text(e)});this.emit(o?"success":"error",{action:n,text:o,trigger:e,clearSelection:function(){e&&e.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(t){return _("action",t)}},{key:"defaultTarget",value:function(t){var e=_("target",t);if(e)return document.querySelector(e)}},{key:"defaultText",value:function(t){return _("text",t)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{container:document.body};return v(t,e)}},{key:"cut",value:function(t){return u(t)}},{key:"isSupported",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:["copy","cut"],e="string"===typeof t?[t]:t,n=!!document.queryCommandSupported;return e.forEach((function(t){n=n&&!!document.queryCommandSupported(t)})),n}}]),n}(i()),P=T},828:function(t){var e=9;if("undefined"!==typeof Element&&!Element.prototype.matches){var n=Element.prototype;n.matches=n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}function o(t,n){while(t&&t.nodeType!==e){if("function"===typeof t.matches&&t.matches(n))return t;t=t.parentNode}}t.exports=o},438:function(t,e,n){var o=n(828);function i(t,e,n,o,i){var r=a.apply(this,arguments);return t.addEventListener(n,r,i),{destroy:function(){t.removeEventListener(n,r,i)}}}function r(t,e,n,o,r){return"function"===typeof t.addEventListener?i.apply(null,arguments):"function"===typeof n?i.bind(null,document).apply(null,arguments):("string"===typeof t&&(t=document.querySelectorAll(t)),Array.prototype.map.call(t,(function(t){return i(t,e,n,o,r)})))}function a(t,e,n,i){return function(n){n.delegateTarget=o(n.target,e),n.delegateTarget&&i.call(t,n)}}t.exports=r},879:function(t,e){e.node=function(t){return void 0!==t&&t instanceof HTMLElement&&1===t.nodeType},e.nodeList=function(t){var n=Object.prototype.toString.call(t);return void 0!==t&&("[object NodeList]"===n||"[object HTMLCollection]"===n)&&"length"in t&&(0===t.length||e.node(t[0]))},e.string=function(t){return"string"===typeof t||t instanceof String},e.fn=function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e}},370:function(t,e,n){var o=n(879),i=n(438);function r(t,e,n){if(!t&&!e&&!n)throw new Error("Missing required arguments");if(!o.string(e))throw new TypeError("Second argument must be a String");if(!o.fn(n))throw new TypeError("Third argument must be a Function");if(o.node(t))return a(t,e,n);if(o.nodeList(t))return s(t,e,n);if(o.string(t))return c(t,e,n);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function a(t,e,n){return t.addEventListener(e,n),{destroy:function(){t.removeEventListener(e,n)}}}function s(t,e,n){return Array.prototype.forEach.call(t,(function(t){t.addEventListener(e,n)})),{destroy:function(){Array.prototype.forEach.call(t,(function(t){t.removeEventListener(e,n)}))}}}function c(t,e,n){return i(document.body,t,e,n)}t.exports=r},817:function(t){function e(t){var e;if("SELECT"===t.nodeName)t.focus(),e=t.value;else if("INPUT"===t.nodeName||"TEXTAREA"===t.nodeName){var n=t.hasAttribute("readonly");n||t.setAttribute("readonly",""),t.select(),t.setSelectionRange(0,t.value.length),n||t.removeAttribute("readonly"),e=t.value}else{t.hasAttribute("contenteditable")&&t.focus();var o=window.getSelection(),i=document.createRange();i.selectNodeContents(t),o.removeAllRanges(),o.addRange(i),e=o.toString()}return e}t.exports=e},279:function(t){function e(){}e.prototype={on:function(t,e,n){var o=this.e||(this.e={});return(o[t]||(o[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var o=this;function i(){o.off(t,i),e.apply(n,arguments)}return i._=e,this.on(t,i,n)},emit:function(t){var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),o=0,i=n.length;for(o;o<i;o++)n[o].fn.apply(n[o].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),o=n[t],i=[];if(o&&e)for(var r=0,a=o.length;r<a;r++)o[r].fn!==e&&o[r].fn._!==e&&i.push(o[r]);return i.length?n[t]=i:delete n[t],this}},t.exports=e,t.exports.TinyEmitter=e}},e={};function n(o){if(e[o])return e[o].exports;var i=e[o]={exports:{}};return t[o](i,i.exports,n),i.exports}return function(){n.n=function(t){var e=t&&t.__esModule?function(){return t["default"]}:function(){return t};return n.d(e,{a:e}),e}}(),function(){n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})}}(),function(){n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)}}(),n(686)}().default}))},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'},bcb8:function(t,e,n){},ca1f:function(t,e,n){},cfde:function(t,e,n){},d390:function(t,e,n){!function(e,o){t.exports=o(n("a9a8"),n("a2ea"))}(0,(function(t,e){return i={},n.m=o=[function(t,e,n){"use strict";function o(t,e,n,o,i,r,a,s){var c,l,d="function"==typeof t?t.options:t;return e&&(d.render=e,d.staticRenderFns=n,d._compiled=!0),o&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},d._ssrRegister=c):i&&(c=s?function(){i.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:i),c&&(d.functional?(d._injectStyles=c,l=d.render,d.render=function(t,e){return c.call(e),l(t,e)}):(s=d.beforeCreate,d.beforeCreate=s?[].concat(s,c):[c])),{exports:t,options:d}}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";n.r(e);var o,i=n(2),r=n.n(i);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),a(n(29));var o=a(n(21)),i=a(n(41)),r=n(42);function a(t){return t&&t.__esModule?t:{default:t}}e.default={name:"JsonViewer",components:{JsonBox:o.default},props:{value:{type:[Object,Array,String,Number,Boolean,Function],required:!0},expanded:{type:Boolean,default:!1},expandDepth:{type:Number,default:1},copyable:{type:[Boolean,Object],default:!1},sort:{type:Boolean,default:!1},boxed:{type:Boolean,default:!1},theme:{type:String,default:"jv-light"},timeformat:{type:Function,default:function(t){return t.toLocaleString()}},previewMode:{type:Boolean,default:!1},showArrayIndex:{type:Boolean,default:!0},showDoubleQuotes:{type:Boolean,default:!1}},provide:function(){return{expandDepth:this.expandDepth,timeformat:this.timeformat,onKeyclick:this.onKeyclick}},data:function(){return{copied:!1,expandableCode:!1,expandCode:this.expanded}},computed:{jvClass:function(){return"jv-container "+this.theme+(this.boxed?" boxed":"")},copyText:function(){var t=this.copyable;return{copyText:t.copyText||"copy",copiedText:t.copiedText||"copied!",timeout:t.timeout||2e3,align:t.align}}},watch:{value:function(){this.onResized()}},mounted:function(){var t=this;this.debounceResized=(0,r.debounce)(this.debResized.bind(this),200),this.boxed&&this.$refs.jsonBox&&(this.onResized(),this.$refs.jsonBox.$el.addEventListener("resized",this.onResized,!0)),this.copyable&&new i.default(this.$refs.clip,{container:this.$refs.viewer,text:function(){return JSON.stringify(t.value,null,2)}}).on("success",(function(e){t.onCopied(e)}))},methods:{onResized:function(){this.debounceResized()},debResized:function(){var t=this;this.$nextTick((function(){t.$refs.jsonBox&&(250<=t.$refs.jsonBox.$el.clientHeight?t.expandableCode=!0:t.expandableCode=!1)}))},onCopied:function(t){var e=this;this.copied||(this.copied=!0,setTimeout((function(){e.copied=!1}),this.copyText.timeout),this.$emit("copied",t))},toggleExpandCode:function(){this.expandCode=!this.expandCode},onKeyclick:function(t){this.$emit("keyclick",t)}}}},function(t,e,n){"use strict";n.r(e);var o,i=n(4),r=n.n(i);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=p(n(30)),r=p(n(31)),a=p(n(32)),s=p(n(33)),c=p(n(34)),l=p(n(35)),d=p(n(36)),u=p(n(37));function p(t){return t&&t.__esModule?t:{default:t}}e.default={name:"JsonBox",inject:["expandDepth","onKeyclick"],props:{value:{type:[Object,Array,String,Number,Boolean,Function,Date],default:null},keyName:{type:String,default:""},sort:Boolean,depth:{type:Number,default:0},previewMode:Boolean,forceExpand:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:{type:String,default:"$"}},data:function(){return{expand:!0,forceExpandMe:this.forceExpand}},mounted:function(){this.expand=this.previewMode||!(this.depth>=this.expandDepth)||this.forceExpandMe},methods:{toggle:function(){this.expand=!this.expand,this.dispatchEvent()},toggleAll:function(){this.expand=!this.expand,this.forceExpandMe=this.expand,this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch(t){var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}},getPath:function(){for(var t=[this.keyName],e=this.$parent;e.depth;)e.$el.classList.contains("jv-node")&&t.push(e.keyName),e=e.$parent;return t.reverse()}},render:function(t){var e=this,n=[],p=void 0;null===this.value||void 0===this.value?p=r.default:Array.isArray(this.value)?p=l.default:"[object Date]"===Object.prototype.toString.call(this.value)?p=u.default:"object"===o(this.value)?p=c.default:"number"==typeof this.value?p=a.default:"string"==typeof this.value?p=i.default:"boolean"==typeof this.value?p=s.default:"function"==typeof this.value&&(p=d.default);var f=this.keyName&&this.value&&(Array.isArray(this.value)||"object"===o(this.value)&&"[object Date]"!==Object.prototype.toString.call(this.value));return!this.previewMode&&f&&n.push(t("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:function(t){t.altKey?e.toggleAll():e.toggle()}}})),this.keyName&&n.push(t("span",{class:{"jv-key":!0},domProps:{innerText:this.showDoubleQuotes?'"'+this.keyName+'":':this.keyName+":"},on:{click:function(){e.onKeyclick(e.path)}}})),n.push(t(p,{class:{"jv-push":!0},props:{jsonValue:this.value,keyName:this.keyName,sort:this.sort,depth:this.depth,expand:this.expand,previewMode:this.previewMode,forceExpand:this.forceExpandMe,showArrayIndex:this.showArrayIndex,showDoubleQuotes:this.showDoubleQuotes,path:this.path},on:{"update:expand":function(t){e.expand=t},"update:expandAll":function(t){e.expand=t,e.forceExpandMe=e.expand}}})),t("div",{class:{"jv-node":!0,"jv-key-node":Boolean(this.keyName)&&!f,toggle:!this.previewMode&&f}},n)}}},function(t,e,n){"use strict";n.r(e);var o,i=n(6),r=n.n(i);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var o=/^\w+:\/\//;e.default={name:"JsonString",props:{jsonValue:{type:String,required:!0}},data:function(){return{expand:!0,canExtend:!1}},mounted:function(){this.$refs.itemRef.offsetHeight>this.$refs.holderRef.offsetHeight&&(this.canExtend=!0)},methods:{toggle:function(){this.expand=!this.expand}},render:function(t){var e=this.jsonValue,n=o.test(e),i=void 0;return this.expand?(i={class:{"jv-item":!0,"jv-string":!0},ref:"itemRef"}).domProps=n?{innerHTML:'"'+(e='<a href="'+e+'" target="_blank" class="jv-link">'+e+"</a>").toString()+'"'}:{innerText:'"'+e.toString()+'"'}:i={class:{"jv-ellipsis":!0},on:{click:this.toggle},domProps:{innerText:"..."}},t("span",{},[this.canExtend&&t("span",{class:{"jv-toggle":!0,open:this.expand},on:{click:this.toggle}}),t("span",{class:{"jv-holder-node":!0},ref:"holderRef"}),t("span",i)])}}},function(t,e,n){"use strict";n.r(e);var o,i=n(8),r=n.n(i);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"JsonUndefined",functional:!0,props:{jsonValue:{type:Object,default:null}},render:function(t,e){return t("span",{class:{"jv-item":!0,"jv-undefined":!0},domProps:{innerText:null===e.props.jsonValue?"null":"undefined"}})}}},function(t,e,n){"use strict";n.r(e);var o,i=n(10),r=n.n(i);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"JsonNumber",functional:!0,props:{jsonValue:{type:Number,required:!0}},render:function(t,e){var n=e.props;e=Number.isInteger(n.jsonValue);return t("span",{class:{"jv-item":!0,"jv-number":!0,"jv-number-integer":e,"jv-number-float":!e},domProps:{innerText:n.jsonValue.toString()}})}}},function(t,e,n){"use strict";n.r(e);var o,i=n(12),r=n.n(i);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"JsonBoolean",functional:!0,props:{jsonValue:Boolean},render:function(t,e){return t("span",{class:{"jv-item":!0,"jv-boolean":!0},domProps:{innerText:e.props.jsonValue.toString()}})}}},function(t,e,n){"use strict";n.r(e);var o,i=n(14),r=n.n(i);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});n=n(21);var o=(n=n)&&n.__esModule?n:{default:n};e.default={name:"JsonObject",props:{jsonValue:{type:Object,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},expand:Boolean,forceExpand:Boolean,sort:Boolean,previewMode:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:String},data:function(){return{value:{}}},computed:{ordered:function(){var t=this;if(!this.sort)return this.value;var e={};return Object.keys(this.value).sort().forEach((function(n){e[n]=t.value[n]})),e}},watch:{jsonValue:function(t){this.setValue(t)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(t){var e=this;setTimeout((function(){e.value=t}),0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},toggleAll:function(){this.$emit("update:expandAll",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch(t){var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}}},render:function(t){var e,n=this,i=[];if(this.previewMode||this.keyName||i.push(t("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:function(t){t.altKey?n.toggleAll():n.toggle()}}})),i.push(t("span",{class:{"jv-item":!0,"jv-object":!0},domProps:{innerText:"{"}})),this.expand)for(var r in this.ordered)this.ordered.hasOwnProperty(r)&&(e=this.ordered[r],i.push(t(o.default,{key:r,props:{sort:this.sort,keyName:r,depth:this.depth+1,value:e,previewMode:this.previewMode,forceExpand:this.forceExpand,showArrayIndex:this.showArrayIndex,showDoubleQuotes:this.showDoubleQuotes,path:this.path+"."+r}})));return!this.expand&&Object.keys(this.value).length&&i.push(t("span",{class:{"jv-ellipsis":!0},on:{click:function(t){t.altKey?n.toggleAll():n.toggle()}},attrs:{title:"click to reveal object content (keys: "+Object.keys(this.ordered).join(", ")+")"},domProps:{innerText:"..."}})),i.push(t("span",{class:{"jv-item":!0,"jv-object":!0},domProps:{innerText:"}"}})),t("span",i)}}},function(t,e,n){"use strict";n.r(e);var o,i=n(16),r=n.n(i);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});n=n(21);var o=(n=n)&&n.__esModule?n:{default:n};e.default={name:"JsonArray",props:{jsonValue:{type:Array,required:!0},keyName:{type:String,default:""},depth:{type:Number,default:0},sort:Boolean,expand:Boolean,forceExpand:Boolean,previewMode:Boolean,showArrayIndex:Boolean,showDoubleQuotes:Boolean,path:String},data:function(){return{value:[]}},watch:{jsonValue:function(t){this.setValue(t)}},mounted:function(){this.setValue(this.jsonValue)},methods:{setValue:function(t){var e=this,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:0;0===n&&(this.value=[]),setTimeout((function(){t.length>n&&(e.value.push(t[n]),e.setValue(t,n+1))}),0)},toggle:function(){this.$emit("update:expand",!this.expand),this.dispatchEvent()},toggleAll:function(){this.$emit("update:expandAll",!this.expand),this.dispatchEvent()},dispatchEvent:function(){try{this.$el.dispatchEvent(new Event("resized"))}catch(t){var e=document.createEvent("Event");e.initEvent("resized",!0,!1),this.$el.dispatchEvent(e)}}},render:function(t){var e=this,n=[];return this.previewMode||this.keyName||n.push(t("span",{class:{"jv-toggle":!0,open:!!this.expand},on:{click:function(t){t.altKey?e.toggleAll():e.toggle()}}})),n.push(t("span",{class:{"jv-item":!0,"jv-array":!0},domProps:{innerText:"["}})),this.expand&&this.value.forEach((function(i,r){n.push(t(o.default,{key:r,props:{sort:e.sort,keyName:e.showArrayIndex?""+r:"",depth:e.depth+1,value:i,previewMode:e.previewMode,forceExpand:e.forceExpand,showArrayIndex:e.showArrayIndex,showDoubleQuotes:e.showDoubleQuotes,path:e.path+"."+r}}))})),!this.expand&&this.value.length&&n.push(t("span",{class:{"jv-ellipsis":!0},on:{click:function(t){t.altKey?e.toggleAll():e.toggle()}},attrs:{title:"click to reveal "+this.value.length+" hidden items"},domProps:{innerText:"..."}})),n.push(t("span",{class:{"jv-item":!0,"jv-array":!0},domProps:{innerText:"]"}})),t("span",n)}}},function(t,e,n){"use strict";n.r(e);var o,i=n(18),r=n.n(i);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"JsonFunction",functional:!0,props:{jsonValue:{type:Function,required:!0}},render:function(t,e){return t("span",{class:{"jv-item":!0,"jv-function":!0},attrs:{title:e.props.jsonValue.toString()},domProps:{innerHTML:"<function>"}})}}},function(t,e,n){"use strict";n.r(e);var o,i=n(20),r=n.n(i);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);e.default=r.a},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"JsonDate",inject:["timeformat"],functional:!0,props:{jsonValue:{type:Date,required:!0}},render:function(t,e){var n=e.props;e=e.injections,n=n.jsonValue;return t("span",{class:{"jv-item":!0,"jv-string":!0},domProps:{innerText:'"'+(0,e.timeformat)(n)+'"'}})}}},function(t,e,n){"use strict";n.r(e);var o,i=n(3);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);n(38);var r=n(0);r=Object(r.a)(i.default,void 0,void 0,!1,null,null,null);r.options.__file="lib/json-box.vue",e.default=r.exports},function(t,e,n){"use strict";function o(){var t=this,e=t.$createElement;return(e=t._self._c||e)("div",{ref:"viewer",class:t.jvClass},[t.copyable?e("div",{class:"jv-tooltip "+(t.copyText.align||"right")},[e("span",{ref:"clip",staticClass:"jv-button",class:{copied:t.copied}},[t._t("copy",(function(){return[t._v("\n "+t._s(t.copied?t.copyText.copiedText:t.copyText.copyText)+"\n ")]}),{copied:t.copied})],2)]):t._e(),t._v(" "),e("div",{staticClass:"jv-code",class:{open:t.expandCode,boxed:t.boxed}},[e("json-box",{ref:"jsonBox",attrs:{value:t.value,sort:t.sort,"preview-mode":t.previewMode,"show-array-index":t.showArrayIndex,"show-double-quotes":t.showDoubleQuotes},on:{keyclick:t.onKeyclick}})],1),t._v(" "),t.expandableCode&&t.boxed?e("div",{staticClass:"jv-more",on:{click:t.toggleExpandCode}},[e("span",{staticClass:"jv-toggle",class:{open:!!t.expandCode}})]):t._e()])}var i=[];o._withStripped=!0,n.d(e,"a",(function(){return o})),n.d(e,"b",(function(){return i}))},function(t,e,n){var o=n(39);"string"==typeof o&&(o=[[t.i,o,""]]);var i={hmr:!0,transform:void 0};n(25)(o,i),o.locals&&(t.exports=o.locals)},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",o=t[3];return o?e&&"function"==typeof btoa?(t=function(t){return t=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),t="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(t),"/*# ".concat(t," */")}(o),e=o.sources.map((function(t){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(t," */")})),[n].concat(e).concat([t]).join("\n")):[n].join("\n"):n}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,o){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(o)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(i[a]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);o&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},function(t,e,n){var o,i,r,a={},s=(o=function(){return window&&document&&document.all&&!window.atob},function(){return i=void 0===i?o.apply(this,arguments):i}),c=(r={},function(t){if(void 0===r[t]){var e=function(t){return document.querySelector(t)}.call(this,t);if(e instanceof window.HTMLIFrameElement)try{e=e.contentDocument.head}catch(t){e=null}r[t]=e}return r[t]}),l=null,d=0,u=[],p=n(40);function f(t,e){for(var n=0;n<t.length;n++){var o=t[n],i=a[o.id];if(i){i.refs++;for(var r=0;r<i.parts.length;r++)i.parts[r](o.parts[r]);for(;r<o.parts.length;r++)i.parts.push(g(o.parts[r],e))}else{var s=[];for(r=0;r<o.parts.length;r++)s.push(g(o.parts[r],e));a[o.id]={id:o.id,refs:1,parts:s}}}}function h(t,e){for(var n=[],o={},i=0;i<t.length;i++){var r=t[i],a=e.base?r[0]+e.base:r[0];r={css:r[1],media:r[2],sourceMap:r[3]};o[a]?o[a].parts.push(r):n.push(o[a]={id:a,parts:[r]})}return n}function v(t,e){var n=c(t.insertInto);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var o=u[u.length-1];if("top"===t.insertAt)o?o.nextSibling?n.insertBefore(e,o.nextSibling):n.appendChild(e):n.insertBefore(e,n.firstChild),u.push(e);else if("bottom"===t.insertAt)n.appendChild(e);else{if("object"!=typeof t.insertAt||!t.insertAt.before)throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n");t=c(t.insertInto+" "+t.insertAt.before),n.insertBefore(e,t)}}function m(t){null!==t.parentNode&&(t.parentNode.removeChild(t),0<=(t=u.indexOf(t))&&u.splice(t,1))}function b(t){var e=document.createElement("style");return t.attrs.type="text/css",y(e,t.attrs),v(t,e),e}function y(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function g(t,e){var n,o,i,r,a;if(e.transform&&t.css){if(!(r=e.transform(t.css)))return function(){};t.css=r}return i=e.singleton?(a=d++,n=l=l||b(e),o=x.bind(null,n,a,!1),x.bind(null,n,a,!0)):t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(r=e,a=document.createElement("link"),r.attrs.type="text/css",r.attrs.rel="stylesheet",y(a,r.attrs),v(r,a),n=a,o=function(t,e,n){var o=n.css,i=n.sourceMap;n=void 0===e.convertToAbsoluteUrls&&i;(e.convertToAbsoluteUrls||n)&&(o=p(o)),i&&(o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(i))))+" */"),i=new Blob([o],{type:"text/css"}),o=t.href,t.href=URL.createObjectURL(i),o&&URL.revokeObjectURL(o)}.bind(null,n,e),function(){m(n),n.href&&URL.revokeObjectURL(n.href)}):(n=b(e),o=function(t,e){var n=e.css;e=e.media;if(e&&t.setAttribute("media",e),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}.bind(null,n),function(){m(n)}),o(t),function(e){e?e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap||o(t=e):i()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=s()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=h(t,e);return f(n,e),function(t){for(var o=[],i=0;i<n.length;i++){var r=n[i];(s=a[r.id]).refs--,o.push(s)}t&&f(h(t,e),e);var s;for(i=0;i<o.length;i++)if(0===(s=o[i]).refs){for(var c=0;c<s.parts.length;c++)s.parts[c]();delete a[s.id]}}};var j,w=(j=[],function(t,e){return j[t]=e,j.filter(Boolean).join("\n")});function x(t,e,n,o){n=n?"":o.css;t.styleSheet?t.styleSheet.cssText=w(e,n):(o=document.createTextNode(n),(n=t.childNodes)[e]&&t.removeChild(n[e]),n.length?t.insertBefore(o,n[e]):t.appendChild(o))}},function(t,e,n){var o=n(44);"string"==typeof o&&(o=[[t.i,o,""]]);var i={hmr:!0,transform:void 0};n(25)(o,i),o.locals&&(t.exports=o.locals)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});n=n(28);var o=(n=n)&&n.__esModule?n:{default:n};e.default=Object.assign(o.default,{install:function(t){t.component("JsonViewer",o.default)}})},function(t,e,n){"use strict";n.r(e);var o,i=n(22),r=n(1);for(o in r)"default"!==o&&function(t){n.d(e,t,(function(){return r[t]}))}(o);n(43);var a=n(0);i=Object(a.a)(r.default,i.a,i.b,!1,null,null,null);i.options.__file="lib/json-viewer.vue",e.default=i.exports},function(e,n){e.exports=t},function(t,e,n){"use strict";n.r(e);var o,i=n(5);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var r=n(0);r=Object(r.a)(i.default,void 0,void 0,!1,null,null,null);r.options.__file="lib/types/json-string.vue",e.default=r.exports},function(t,e,n){"use strict";n.r(e);var o,i=n(7);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var r=n(0);r=Object(r.a)(i.default,void 0,void 0,!1,null,null,null);r.options.__file="lib/types/json-undefined.vue",e.default=r.exports},function(t,e,n){"use strict";n.r(e);var o,i=n(9);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var r=n(0);r=Object(r.a)(i.default,void 0,void 0,!1,null,null,null);r.options.__file="lib/types/json-number.vue",e.default=r.exports},function(t,e,n){"use strict";n.r(e);var o,i=n(11);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var r=n(0);r=Object(r.a)(i.default,void 0,void 0,!1,null,null,null);r.options.__file="lib/types/json-boolean.vue",e.default=r.exports},function(t,e,n){"use strict";n.r(e);var o,i=n(13);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var r=n(0);r=Object(r.a)(i.default,void 0,void 0,!1,null,null,null);r.options.__file="lib/types/json-object.vue",e.default=r.exports},function(t,e,n){"use strict";n.r(e);var o,i=n(15);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var r=n(0);r=Object(r.a)(i.default,void 0,void 0,!1,null,null,null);r.options.__file="lib/types/json-array.vue",e.default=r.exports},function(t,e,n){"use strict";n.r(e);var o,i=n(17);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var r=n(0);r=Object(r.a)(i.default,void 0,void 0,!1,null,null,null);r.options.__file="lib/types/json-function.vue",e.default=r.exports},function(t,e,n){"use strict";n.r(e);var o,i=n(19);for(o in i)"default"!==o&&function(t){n.d(e,t,(function(){return i[t]}))}(o);var r=n(0);r=Object(r.a)(i.default,void 0,void 0,!1,null,null,null);r.options.__file="lib/types/json-date.vue",e.default=r.exports},function(t,e,n){"use strict";n(23)},function(t,e,n){(e=n(24)(!1)).push([t.i,".jv-node{position:relative}.jv-node:after{content:','}.jv-node:last-of-type:after{content:''}.jv-node.toggle{margin-left:13px !important}.jv-node .jv-node{margin-left:25px}\n",""]),t.exports=e},function(t,e){t.exports=function(t){var e="undefined"!=typeof window&&window.location;if(!e)throw new Error("fixUrls requires window.location");if(!t||"string"!=typeof t)return t;var n=e.protocol+"//"+e.host,o=n+e.pathname.replace(/\/[^\/]*$/,"/");return t.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,(function(t,e){e=e.trim().replace(/^"(.*)"$/,(function(t,e){return e})).replace(/^'(.*)'$/,(function(t,e){return e}));return/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(e)?t:(e=0===e.indexOf("//")?e:0===e.indexOf("/")?n+e:o+e.replace(/^\.\//,""),"url("+JSON.stringify(e)+")")}))}},function(t,n){t.exports=e},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.debounce=function(t,e){var n=Date.now(),o=void 0;return function(){for(var i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];Date.now()-n<e&&o&&clearTimeout(o),o=setTimeout((function(){t.apply(void 0,r)}),e),n=Date.now()}}},function(t,e,n){"use strict";n(26)},function(t,e,n){var o=n(24),i=n(45);n=n(46);e=o(!1),n=i(n),e.push([t.i,".jv-container{box-sizing:border-box;position:relative}.jv-container.boxed{border:1px solid #eee;border-radius:6px}.jv-container.boxed:hover{box-shadow:0 2px 7px rgba(0,0,0,0.15);border-color:transparent;position:relative}.jv-container.jv-light{background:#fff;white-space:nowrap;color:#525252;font-size:14px;font-family:Consolas, Menlo, Courier, monospace}.jv-container.jv-light .jv-ellipsis{color:#999;background-color:#eee;display:inline-block;line-height:0.9;font-size:0.9em;padding:0px 4px 2px 4px;margin:0 4px;border-radius:3px;vertical-align:2px;cursor:pointer;-webkit-user-select:none;user-select:none}.jv-container.jv-light .jv-button{color:#49b3ff}.jv-container.jv-light .jv-key{color:#111111;margin-right:4px}.jv-container.jv-light .jv-item.jv-array{color:#111111}.jv-container.jv-light .jv-item.jv-boolean{color:#fc1e70}.jv-container.jv-light .jv-item.jv-function{color:#067bca}.jv-container.jv-light .jv-item.jv-number{color:#fc1e70}.jv-container.jv-light .jv-item.jv-object{color:#111111}.jv-container.jv-light .jv-item.jv-undefined{color:#e08331}.jv-container.jv-light .jv-item.jv-string{color:#42b983;word-break:break-word;white-space:normal}.jv-container.jv-light .jv-item.jv-string .jv-link{color:#0366d6}.jv-container.jv-light .jv-code .jv-toggle:before{padding:0px 2px;border-radius:2px}.jv-container.jv-light .jv-code .jv-toggle:hover:before{background:#eee}.jv-container .jv-code{overflow:hidden;padding:30px 20px}.jv-container .jv-code.boxed{max-height:300px}.jv-container .jv-code.open{max-height:initial !important;overflow:visible;overflow-x:auto;padding-bottom:45px}.jv-container .jv-toggle{background-image:url("+n+');background-repeat:no-repeat;background-size:contain;background-position:center center;cursor:pointer;width:10px;height:10px;margin-right:2px;display:inline-block;-webkit-transition:-webkit-transform 0.1s;transition:-webkit-transform 0.1s;transition:transform 0.1s;transition:transform 0.1s, -webkit-transform 0.1s}.jv-container .jv-toggle.open{-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jv-container .jv-more{position:absolute;z-index:1;bottom:0;left:0;right:0;height:40px;width:100%;text-align:center;cursor:pointer}.jv-container .jv-more .jv-toggle{position:relative;top:40%;z-index:2;color:#888;-webkit-transition:all 0.1s;transition:all 0.1s;-webkit-transform:rotate(90deg);transform:rotate(90deg)}.jv-container .jv-more .jv-toggle.open{-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.jv-container .jv-more:after{content:"";width:100%;height:100%;position:absolute;bottom:0;left:0;z-index:1;background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);-webkit-transition:all 0.1s;transition:all 0.1s}.jv-container .jv-more:hover .jv-toggle{top:50%;color:#111}.jv-container .jv-more:hover:after{background:-webkit-linear-gradient(top, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%);background:linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(230,230,230,0.3) 100%)}.jv-container .jv-button{position:relative;cursor:pointer;display:inline-block;padding:5px;z-index:5}.jv-container .jv-button.copied{opacity:0.4;cursor:default}.jv-container .jv-tooltip{position:absolute}.jv-container .jv-tooltip.right{right:15px}.jv-container .jv-tooltip.left{left:15px}.jv-container .j-icon{font-size:12px}\n',""]),t.exports=e},function(t,e,n){"use strict";t.exports=function(t,e){return e=e||{},"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},function(t,e){t.exports="data:image/svg+xml;base64,PHN2ZyBoZWlnaHQ9IjE2IiB3aWR0aD0iOCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KIAo8cG9seWdvbiBwb2ludHM9IjAsMCA4LDggMCwxNiIKc3R5bGU9ImZpbGw6IzY2NjtzdHJva2U6cHVycGxlO3N0cm9rZS13aWR0aDowIiAvPgo8L3N2Zz4="}],n.c=i,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},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 o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(o,i,function(e){return t[e]}.bind(null,i));return o},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=27);function n(t){if(i[t])return i[t].exports;var e=i[t]={i:t,l:!1,exports:{}};return o[t].call(e.exports,e,e.exports,n),e.l=!0,e.exports}var o,i}))},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'},da89:function(t,e,n){"use strict";var o=n("96dc"),i=n("59be"),r=(n("98f4"),n("546b")),a=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 Object(o["d"])(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),o=!1;return!n&&t.children&&t.children.forEach((function(t){o=e.match(t).matched||e.match(t).childrenMatched||o})),{matched:n,childrenMatched:o}},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=r["a"].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,o=0;o<t.length;o++)if(e.length&&t[o].innerText===e[e.length-1].name){n=t[o];break}t.length&&setTimeout((function(){n.scrollIntoView({behavior:"smooth",block:"center"})}),200)}))}},e.prototype.renderContent=function(t,e){var n=this,o=(e.root,e.node,e.data),i=!!o.children;return this.$set(o,"selected",this.selectItem.id===o.id),t("div",{class:"common-tree-node"},[t("i",i?{class:this.isTreeList?"iconfont icon-mulushu":"iconfont icon-bumenkaohe",on:{click:function(t){i?n.clickParentNode(t,o):n.clickLeafNode(t,o)}}}:{class:"iconfont icon-file",on:{click:function(t){i?n.clickParentNode(t,o):n.clickLeafNode(t,o)}}}),t("p",{on:{click:function(t){i?n.clickParentNode(t,o):n.clickLeafNode(t,o)}}},o.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()},Object(o["c"])([Object(i["config"])({default:null})],e.prototype,"propData",void 0),Object(o["c"])([Object(i["config"])({default:function(){return{}}})],e.prototype,"initSelectItem",void 0),Object(o["c"])([Object(i["config"])({default:!1})],e.prototype,"isTreeList",void 0),Object(o["c"])([Object(i["config"])({default:""})],e.prototype,"commonTaskCategoryID",void 0),Object(o["c"])([Object(i["watch"])("data",{immediate:!0,deep:!1}),Object(i["watch"])("propData",{immediate:!0,deep:!1})],e.prototype,"initTreeData",null),Object(o["c"])([Object(i["watch"])("commonTaskCategoryID",{immediate:!1})],e.prototype,"watchTaskID",null),Object(o["c"])([Object(i["watch"])("initSelectItem")],e.prototype,"initSelectItemChange",null),e=Object(o["c"])([Object(i["component"])({template:n("6d46"),components:{}})],e),e}(i["Component"]);e["a"]=a},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'},eb57:function(t,e,n){}}]);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-211c69c2"],{8706:function(n,r,t){"use strict";t.r(r);t("e02e");var e=t("96dc"),c=t("59be"),o=(t("b44a"),function(n){function r(){return null!==n&&n.apply(this,arguments)||this}return Object(e["d"])(r,n),r.prototype.onBackHomeClick=function(n){this.$router.push("/")},r.prototype.onBackPrevClick=function(n){this.$router.go(-1)},r=Object(e["c"])([Object(c["component"])({template:t("c5f8")})],r),r}(c["View"]));r["default"]=o},b44a:function(n,r,t){},c5f8:function(n,r){n.exports='<div class="v-error v-error-404">\r\n <div class="v-error-content">\r\n <i-card>\r\n <p class="v-error-content-title">4\r\n <span class="v-error-404-icon">\r\n <i-icon type="ios-navigate-outline"></i-icon>\r\n </span>4</p>\r\n <p class="v-error-content-message">哎呀...您访问的页面不存在</p>\r\n <p class="v-error-button-strip">\r\n <i-button @click="onBackHomeClick" size="large" type="text">返回首页</i-button>\r\n <i-button @click="onBackPrevClick" size="large" type="primary">返回上一页</i-button>\r\n </p>\r\n </i-card>\r\n </div>\r\n</div>\r\n'}}]);
|