提交 af259517 authored 作者: EarsHealth's avatar EarsHealth

12

上级 ac5a2c79
.httpParam[data-v-1ecce398]{width:100%}.header_item[data-v-1ecce398]{width:100%;display:flex;justify-content:space-around;align-items:center;margin-bottom:.052083rem}.header_item>i[data-v-1ecce398]{padding:.026042rem;border:.005208rem solid #333;border-radius:50%;font-size:.09375rem;cursor:pointer;margin-left:.104167rem}.httpParam[data-v-1ecce398] .el-tabs__content{padding:.052083rem .104167rem;box-sizing:border-box}.requestBody[data-v-1ecce398]{text-align:left}.request_item[data-v-1ecce398]{width:100%;padding:.104167rem;box-sizing:border-box}.request_none[data-v-1ecce398]{text-align:center}.fileUpload[data-v-1ecce398]{width:.208333rem;border:.005208rem solid #ccc}.el-dropdown-link[data-v-1ecce398]{cursor:pointer;color:#0265db}.el-icon-arrow-down[data-v-1ecce398]{font-size:.083333rem}.request_binary[data-v-1ecce398]{width:40%}.editorHeight[data-v-1ecce398]{height:1.041667rem}.addDynamicParams[data-v-6c87fadd]{width:100%;height:100%;padding:.104167rem;box-sizing:border-box;overflow-y:auto}.breadcrumb[data-v-6c87fadd]{margin-bottom:.052083rem}.breadcrumb[data-v-6c87fadd] .el-breadcrumb__inner{font-size:.09375rem}.form[data-v-6c87fadd] .el-form-item__label{font-size:.083333rem}.kv_item[data-v-6c87fadd]{width:80%;display:flex;justify-content:space-around;align-items:center;margin-bottom:.104167rem;margin-left:4.16667%;padding-left:80px}.kv_item>i[data-v-6c87fadd]{padding:.026042rem;border:.005208rem solid #333;border-radius:50%;font-size:.09375rem;cursor:pointer;margin-left:.104167rem}.httpParamDiv[data-v-6c87fadd]{border:.005208rem solid #ccc;padding:.026042rem;box-sizing:border-box;border-radius:.026042rem}.editorHeight[data-v-6c87fadd]{height:1.041667rem;border:.005208rem solid #f0f0f0}
\ No newline at end of file
.httpParam[data-v-1ecce398]{width:100%}.header_item[data-v-1ecce398]{width:100%;display:flex;justify-content:space-around;align-items:center;margin-bottom:.052083rem}.header_item>i[data-v-1ecce398]{padding:.026042rem;border:.005208rem solid #333;border-radius:50%;font-size:.09375rem;cursor:pointer;margin-left:.104167rem}.httpParam[data-v-1ecce398] .el-tabs__content{padding:.052083rem .104167rem;box-sizing:border-box}.requestBody[data-v-1ecce398]{text-align:left}.request_item[data-v-1ecce398]{width:100%;padding:.104167rem;box-sizing:border-box}.request_none[data-v-1ecce398]{text-align:center}.fileUpload[data-v-1ecce398]{width:.208333rem;border:.005208rem solid #ccc}.el-dropdown-link[data-v-1ecce398]{cursor:pointer;color:#0265db}.el-icon-arrow-down[data-v-1ecce398]{font-size:.083333rem}.request_binary[data-v-1ecce398]{width:40%}.editorHeight[data-v-1ecce398]{height:1.041667rem}.addDynamicParams[data-v-e8989062]{width:100%;height:100%;padding:.104167rem;box-sizing:border-box;overflow-y:auto}.breadcrumb[data-v-e8989062]{margin-bottom:.052083rem}.breadcrumb[data-v-e8989062] .el-breadcrumb__inner{font-size:.09375rem}.form[data-v-e8989062] .el-form-item__label{font-size:.083333rem}.kv_item[data-v-e8989062]{width:80%;display:flex;justify-content:space-around;align-items:center;margin-bottom:.104167rem;margin-left:4.16667%;padding-left:80px}.kv_item>i[data-v-e8989062]{padding:.026042rem;border:.005208rem solid #333;border-radius:50%;font-size:.09375rem;cursor:pointer;margin-left:.104167rem}.httpParamDiv[data-v-e8989062]{border:.005208rem solid #ccc;padding:.026042rem;box-sizing:border-box;border-radius:.026042rem}.editorHeight[data-v-e8989062]{height:1.041667rem;border:.005208rem solid #f0f0f0}
\ No newline at end of file
.home[data-v-5d37d6bc]{width:100%;height:100%;display:flex}.w0[data-v-5d37d6bc]{width:0!important}.w100[data-v-5d37d6bc]{width:100%!important}.left[data-v-5d37d6bc]{width:2.083333rem;height:100%;padding:.104167rem 0;box-sizing:border-box;position:relative;box-shadow:.041667rem .010417rem .0625rem 0 rgb(0 0 0/10%);transition:all .5s ease}.rigit50[data-v-5d37d6bc]{right:-.260417rem}.iconBtn i[data-v-5d37d6bc]{font-size:.15625rem}.iconBtn[data-v-5d37d6bc]{color:#000;width:.260417rem;height:.260417rem;border-radius:.130208rem;position:absolute;box-shadow:0 .010417rem .0625rem 0 rgb(0 0 0/10%);right:-.197917rem;top:40%;display:flex;justify-content:center;align-items:center;cursor:pointer;user-select:none;font-weight:700}.left_title[data-v-5d37d6bc]{display:flex;overflow:hidden}.first_title[data-v-5d37d6bc],.second_title[data-v-5d37d6bc]{display:flex;justify-content:space-around;align-items:center;margin-bottom:.104167rem;white-space:nowrap;overflow:hidden}.left_title .first_title span[data-v-5d37d6bc],.left_title .second_title span[data-v-5d37d6bc]{font-size:.114583rem;font-weight:700;user-select:none;cursor:pointer;transition:all .5s ease}.left_title .first_title i[data-v-5d37d6bc],.left_title .second_title i[data-v-5d37d6bc]{cursor:pointer}.left_title .first_title img[data-v-5d37d6bc],.left_title .second_title img[data-v-5d37d6bc]{width:.114583rem;cursor:pointer}.active[data-v-5d37d6bc]{background-color:rgba(51,51,51,.4);box-shadow:0 0 .052083rem 0 #ccc;color:#fff}.project_item[data-v-5d37d6bc]{width:100%;padding:.083333rem;box-sizing:border-box;cursor:pointer;overflow:hidden;white-space:nowrap}.project_item>div[data-v-5d37d6bc]{height:.114583rem;display:flex;align-items:center;justify-content:center}.project_item span[data-v-5d37d6bc]{font-size:.114583rem;user-select:none;margin-right:.052083rem}.project_item i[data-v-5d37d6bc]{font-size:.125rem;cursor:pointer;margin-right:.052083rem}.project_item input[data-v-5d37d6bc]{border-radius:.026042rem;width:60%;margin-right:.052083rem}.left_content[data-v-5d37d6bc]{max-height:calc(100% - .1875rem);overflow:auto}.right[data-v-5d37d6bc]{height:100%;width:calc(100% - 2.34375rem);margin:.130208rem;margin-top:0;padding:.104167rem;box-sizing:border-box;box-shadow:0 .010417rem .0625rem 0 rgb(0 0 0/10%);overflow:auto;transition:all .5s ease;transform-origin:left}.ellipsisSpan[data-v-5d37d6bc]{width:1.5625rem;overflow:hidden;white-space:nowrap}.overflowHiding[data-v-5d37d6bc]{display:inline-block;width:.130208rem;height:.130208rem;position:absolute;right:.151042rem;box-shadow:-7px 0 8px 0 #fff;background:#fff}.overflowHidingActive[data-v-5d37d6bc]{box-shadow:-7px 0 8px 0 rgb(173 173 173);background:rgb(173 173 173)}
\ No newline at end of file
.home[data-v-25d6be38]{width:100%;height:100%;display:flex}.w0[data-v-25d6be38]{width:0!important}.w100[data-v-25d6be38]{width:100%!important}.left[data-v-25d6be38]{width:2.083333rem;height:100%;padding:.104167rem 0;box-sizing:border-box;position:relative;box-shadow:.041667rem .010417rem .0625rem 0 rgb(0 0 0/10%);transition:all .5s ease}.rigit50[data-v-25d6be38]{right:-.260417rem}.iconBtn i[data-v-25d6be38]{font-size:.15625rem}.iconBtn[data-v-25d6be38]{color:#000;width:.260417rem;height:.260417rem;border-radius:.130208rem;position:absolute;box-shadow:0 .010417rem .0625rem 0 rgb(0 0 0/10%);right:-.197917rem;top:40%;display:flex;justify-content:center;align-items:center;cursor:pointer;user-select:none;font-weight:700}.left_title[data-v-25d6be38]{display:flex;overflow:hidden}.first_title[data-v-25d6be38],.second_title[data-v-25d6be38]{display:flex;justify-content:space-around;align-items:center;margin-bottom:.104167rem;white-space:nowrap;overflow:hidden}.left_title .first_title span[data-v-25d6be38],.left_title .second_title span[data-v-25d6be38]{font-size:.114583rem;font-weight:700;user-select:none;cursor:pointer;transition:all .5s ease}.left_title .first_title i[data-v-25d6be38],.left_title .second_title i[data-v-25d6be38]{cursor:pointer}.left_title .first_title img[data-v-25d6be38],.left_title .second_title img[data-v-25d6be38]{width:.114583rem;cursor:pointer}.active[data-v-25d6be38]{background-color:rgba(51,51,51,.4);box-shadow:0 0 .052083rem 0 #ccc;color:#fff}.project_item[data-v-25d6be38]{width:100%;padding:.083333rem;box-sizing:border-box;cursor:pointer;overflow:hidden;white-space:nowrap}.project_item>div[data-v-25d6be38]{height:.114583rem;display:flex;align-items:center;justify-content:center}.project_item span[data-v-25d6be38]{font-size:.114583rem;user-select:none;margin-right:.052083rem}.project_item i[data-v-25d6be38]{font-size:.125rem;cursor:pointer;margin-right:.052083rem}.project_item input[data-v-25d6be38]{border-radius:.026042rem;width:60%;margin-right:.052083rem}.left_content[data-v-25d6be38]{max-height:calc(100% - .1875rem);overflow:auto}.right[data-v-25d6be38]{height:100%;width:calc(100% - 2.34375rem);margin:.130208rem;margin-top:0;padding:.104167rem;box-sizing:border-box;box-shadow:0 .010417rem .0625rem 0 rgb(0 0 0/10%);overflow:auto;transition:all .5s ease;transform-origin:left}.ellipsisSpan[data-v-25d6be38]{width:1.5625rem;overflow:hidden;white-space:nowrap}.overflowHiding[data-v-25d6be38]{display:inline-block;width:.130208rem;height:.130208rem;position:absolute;right:.151042rem;box-shadow:-7px 0 8px 0 #fff;background:#fff}.overflowHidingActive[data-v-25d6be38]{box-shadow:-7px 0 8px 0 rgb(173 173 173);background:rgb(173 173 173)}
\ No newline at end of file
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>keystone自动化测试平台</title><link href="css/chunk-06d05c38.697046f1.css" rel="prefetch"><link href="css/chunk-0f6a3514.808d612a.css" rel="prefetch"><link href="css/chunk-13ac8476.5789cbf4.css" rel="prefetch"><link href="css/chunk-1422af70.f01fed2a.css" rel="prefetch"><link href="css/chunk-21e2c124.361b3a0e.css" rel="prefetch"><link href="css/chunk-28edb6c0.1372ffaf.css" rel="prefetch"><link href="css/chunk-297e6053.ff7b3d00.css" rel="prefetch"><link href="css/chunk-29d62752.9ddb146b.css" rel="prefetch"><link href="css/chunk-2f943e56.037c29ae.css" rel="prefetch"><link href="css/chunk-524a889e.0480fb23.css" rel="prefetch"><link href="css/chunk-53477b49.3efb3eb4.css" rel="prefetch"><link href="css/chunk-5e64d548.5f27b71f.css" rel="prefetch"><link href="css/chunk-6b67aa43.dcd9ade0.css" rel="prefetch"><link href="css/chunk-8d3fb520.5abc22e5.css" rel="prefetch"><link href="css/chunk-ab107db4.c18fddcf.css" rel="prefetch"><link href="js/chunk-06d05c38.68d3ac05.js" rel="prefetch"><link href="js/chunk-0f6a3514.fd1addad.js" rel="prefetch"><link href="js/chunk-13ac8476.a4fbaf6f.js" rel="prefetch"><link href="js/chunk-1422af70.ff151d74.js" rel="prefetch"><link href="js/chunk-21e2c124.7ec8ba6c.js" rel="prefetch"><link href="js/chunk-28edb6c0.5a15dfb2.js" rel="prefetch"><link href="js/chunk-297e6053.5ad5e1a0.js" rel="prefetch"><link href="js/chunk-29d62752.236fecc9.js" rel="prefetch"><link href="js/chunk-2d0b6c33.fe39f8dd.js" rel="prefetch"><link href="js/chunk-2d0f0f44.422cd409.js" rel="prefetch"><link href="js/chunk-2f943e56.14eee39f.js" rel="prefetch"><link href="js/chunk-524a889e.30ee566e.js" rel="prefetch"><link href="js/chunk-53477b49.1804c2c8.js" rel="prefetch"><link href="js/chunk-5e64d548.c4050c8f.js" rel="prefetch"><link href="js/chunk-6b67aa43.fa544636.js" rel="prefetch"><link href="js/chunk-8d3fb520.646db3af.js" rel="prefetch"><link href="js/chunk-ab107db4.830f6d2b.js" rel="prefetch"><link href="css/app.407df8db.css" rel="preload" as="style"><link href="css/chunk-vendors.b7d549ec.css" rel="preload" as="style"><link href="js/app.55ec1ed1.js" rel="preload" as="script"><link href="js/chunk-vendors.f09da9e9.js" rel="preload" as="script"><link href="css/chunk-vendors.b7d549ec.css" rel="stylesheet"><link href="css/app.407df8db.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but communication doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="js/chunk-vendors.f09da9e9.js"></script><script src="js/app.55ec1ed1.js"></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html lang=""><head><meta charset="utf-8"><meta http-equiv="X-UA-Compatible" content="IE=edge"><meta name="viewport" content="width=device-width,initial-scale=1"><link rel="icon" href="favicon.ico"><title>keystone自动化测试平台</title><link href="css/chunk-06d05c38.697046f1.css" rel="prefetch"><link href="css/chunk-0f6a3514.808d612a.css" rel="prefetch"><link href="css/chunk-13ac8476.5789cbf4.css" rel="prefetch"><link href="css/chunk-1422af70.f01fed2a.css" rel="prefetch"><link href="css/chunk-21e2c124.361b3a0e.css" rel="prefetch"><link href="css/chunk-28edb6c0.1372ffaf.css" rel="prefetch"><link href="css/chunk-29d62752.9ddb146b.css" rel="prefetch"><link href="css/chunk-2f943e56.037c29ae.css" rel="prefetch"><link href="css/chunk-41220412.41c27296.css" rel="prefetch"><link href="css/chunk-53477b49.3efb3eb4.css" rel="prefetch"><link href="css/chunk-5e64d548.5f27b71f.css" rel="prefetch"><link href="css/chunk-6b67aa43.dcd9ade0.css" rel="prefetch"><link href="css/chunk-7d5da0ec.98710663.css" rel="prefetch"><link href="css/chunk-8d3fb520.5abc22e5.css" rel="prefetch"><link href="css/chunk-ab107db4.c18fddcf.css" rel="prefetch"><link href="js/chunk-06d05c38.68d3ac05.js" rel="prefetch"><link href="js/chunk-0f6a3514.fd1addad.js" rel="prefetch"><link href="js/chunk-13ac8476.a4fbaf6f.js" rel="prefetch"><link href="js/chunk-1422af70.ff151d74.js" rel="prefetch"><link href="js/chunk-21e2c124.7ec8ba6c.js" rel="prefetch"><link href="js/chunk-28edb6c0.5a15dfb2.js" rel="prefetch"><link href="js/chunk-29d62752.236fecc9.js" rel="prefetch"><link href="js/chunk-2d0b6c33.fe39f8dd.js" rel="prefetch"><link href="js/chunk-2d0f0f44.422cd409.js" rel="prefetch"><link href="js/chunk-2f943e56.14eee39f.js" rel="prefetch"><link href="js/chunk-41220412.63b75f12.js" rel="prefetch"><link href="js/chunk-53477b49.1804c2c8.js" rel="prefetch"><link href="js/chunk-5e64d548.c4050c8f.js" rel="prefetch"><link href="js/chunk-6b67aa43.fa544636.js" rel="prefetch"><link href="js/chunk-7d5da0ec.ca7e743e.js" rel="prefetch"><link href="js/chunk-8d3fb520.646db3af.js" rel="prefetch"><link href="js/chunk-ab107db4.830f6d2b.js" rel="prefetch"><link href="css/app.407df8db.css" rel="preload" as="style"><link href="css/chunk-vendors.b7d549ec.css" rel="preload" as="style"><link href="js/app.cfbfb935.js" rel="preload" as="script"><link href="js/chunk-vendors.f09da9e9.js" rel="preload" as="script"><link href="css/chunk-vendors.b7d549ec.css" rel="stylesheet"><link href="css/app.407df8db.css" rel="stylesheet"></head><body><noscript><strong>We're sorry but communication doesn't work properly without JavaScript enabled. Please enable it to continue.</strong></noscript><div id="app"></div><script src="js/chunk-vendors.f09da9e9.js"></script><script src="js/app.cfbfb935.js"></script></body></html>
\ No newline at end of file
(function(e){function t(t){for(var a,c,i=t[0],u=t[1],s=t[2],d=0,h=[];d<i.length;d++)c=i[d],Object.prototype.hasOwnProperty.call(o,c)&&o[c]&&h.push(o[c][0]),o[c]=0;for(a in u)Object.prototype.hasOwnProperty.call(u,a)&&(e[a]=u[a]);m&&m(t);while(h.length)h.shift()();return r.push.apply(r,s||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],a=!0,c=1;c<n.length;c++){var i=n[c];0!==o[i]&&(a=!1)}a&&(r.splice(t--,1),e=u(u.s=n[0]))}return e}var a={},c={app:0},o={app:0},r=[];function i(e){return u.p+"js/"+({}[e]||e)+"."+{"chunk-06d05c38":"68d3ac05","chunk-0f6a3514":"fd1addad","chunk-13ac8476":"a4fbaf6f","chunk-1422af70":"ff151d74","chunk-21e2c124":"7ec8ba6c","chunk-297e6053":"5ad5e1a0","chunk-2d0b6c33":"fe39f8dd","chunk-2d0f0f44":"422cd409","chunk-2f943e56":"14eee39f","chunk-53477b49":"1804c2c8","chunk-28edb6c0":"5a15dfb2","chunk-29d62752":"236fecc9","chunk-524a889e":"30ee566e","chunk-ab107db4":"830f6d2b","chunk-5e64d548":"c4050c8f","chunk-6b67aa43":"fa544636","chunk-8d3fb520":"646db3af"}[e]+".js"}function u(t){if(a[t])return a[t].exports;var n=a[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-06d05c38":1,"chunk-0f6a3514":1,"chunk-13ac8476":1,"chunk-1422af70":1,"chunk-21e2c124":1,"chunk-297e6053":1,"chunk-2f943e56":1,"chunk-53477b49":1,"chunk-28edb6c0":1,"chunk-29d62752":1,"chunk-524a889e":1,"chunk-ab107db4":1,"chunk-5e64d548":1,"chunk-6b67aa43":1,"chunk-8d3fb520":1};c[e]?t.push(c[e]):0!==c[e]&&n[e]&&t.push(c[e]=new Promise((function(t,n){for(var a="css/"+({}[e]||e)+"."+{"chunk-06d05c38":"697046f1","chunk-0f6a3514":"808d612a","chunk-13ac8476":"5789cbf4","chunk-1422af70":"f01fed2a","chunk-21e2c124":"361b3a0e","chunk-297e6053":"ff7b3d00","chunk-2d0b6c33":"31d6cfe0","chunk-2d0f0f44":"31d6cfe0","chunk-2f943e56":"037c29ae","chunk-53477b49":"3efb3eb4","chunk-28edb6c0":"1372ffaf","chunk-29d62752":"9ddb146b","chunk-524a889e":"0480fb23","chunk-ab107db4":"c18fddcf","chunk-5e64d548":"5f27b71f","chunk-6b67aa43":"dcd9ade0","chunk-8d3fb520":"5abc22e5"}[e]+".css",o=u.p+a,r=document.getElementsByTagName("link"),i=0;i<r.length;i++){var s=r[i],d=s.getAttribute("data-href")||s.getAttribute("href");if("stylesheet"===s.rel&&(d===a||d===o))return t()}var h=document.getElementsByTagName("style");for(i=0;i<h.length;i++){s=h[i],d=s.getAttribute("data-href");if(d===a||d===o)return t()}var m=document.createElement("link");m.rel="stylesheet",m.type="text/css",m.onload=t,m.onerror=function(t){var a=t&&t.target&&t.target.src||o,r=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");r.code="CSS_CHUNK_LOAD_FAILED",r.request=a,delete c[e],m.parentNode.removeChild(m),n(r)},m.href=o;var l=document.getElementsByTagName("head")[0];l.appendChild(m)})).then((function(){c[e]=0})));var a=o[e];if(0!==a)if(a)t.push(a[2]);else{var r=new Promise((function(t,n){a=o[e]=[t,n]}));t.push(a[2]=r);var s,d=document.createElement("script");d.charset="utf-8",d.timeout=120,u.nc&&d.setAttribute("nonce",u.nc),d.src=i(e);var h=new Error;s=function(t){d.onerror=d.onload=null,clearTimeout(m);var n=o[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;h.message="Loading chunk "+e+" failed.\n("+a+": "+c+")",h.name="ChunkLoadError",h.type=a,h.request=c,n[1](h)}o[e]=void 0}};var m=setTimeout((function(){s({type:"timeout",target:d})}),12e4);d.onerror=d.onload=s,document.head.appendChild(d)}return Promise.all(t)},u.m=e,u.c=a,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 a in e)u.d(n,a,function(t){return e[t]}.bind(null,a));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"]||[],d=s.push.bind(s);s.push=t,s=s.slice();for(var h=0;h<s.length;h++)t(s[h]);var m=d;r.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"034f":function(e,t,n){"use strict";n("85ec")},"56d7":function(e,t,n){"use strict";n.r(t);var a=n("5530"),c=(n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("d3b7"),n("2b0e")),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},r=[],i=(n("034f"),n("2877")),u={},s=Object(i["a"])(u,o,r,!1,null,null,null),d=s.exports,h=(n("3ca3"),n("ddb0"),n("8c4f"));c["default"].use(h["a"]);var m=[{path:"*",redirect:"/"},{name:"login",path:"/login",component:function(){return n.e("chunk-0f6a3514").then(n.bind(null,"dc3f"))}},{name:"",path:"/",component:function(){return n.e("chunk-2f943e56").then(n.bind(null,"fcfc"))},redirect:"/home",children:[{name:"home",path:"/home",component:function(){return n.e("chunk-297e6053").then(n.bind(null,"77b8"))},meta:{title:"首页"},redirect:"/case",children:[{name:"addDynamicParams",path:"/addDynamicParams",component:function(){return Promise.all([n.e("chunk-53477b49"),n.e("chunk-524a889e")]).then(n.bind(null,"c7fa"))},meta:{title:"新增动参"}},{name:"addBehavior",path:"/addBehavior",component:function(){return Promise.all([n.e("chunk-53477b49"),n.e("chunk-28edb6c0")]).then(n.bind(null,"c67f"))},meta:{title:"新增行为"}},{name:"taskBar",path:"/taskBar",redirect:"/addCase",component:function(){return n.e("chunk-21e2c124").then(n.bind(null,"8e3b"))},children:[{name:"addCase",path:"/addCase",component:function(){return Promise.all([n.e("chunk-53477b49"),n.e("chunk-ab107db4")]).then(n.bind(null,"4d4d"))},meta:{title:"新增接口"}}]},{name:"dynamicParam",path:"/dynamicParam",component:function(){return n.e("chunk-5e64d548").then(n.bind(null,"e306"))},meta:{title:"动参列表"}},{name:"behavior",path:"/behavior",component:function(){return n.e("chunk-8d3fb520").then(n.bind(null,"2b56"))},meta:{title:"行为列表"}},{name:"case",path:"/case",component:function(){return n.e("chunk-06d05c38").then(n.bind(null,"d479"))},meta:{title:"接口列表"}},{name:"environment",path:"/environment",component:function(){return n.e("chunk-1422af70").then(n.bind(null,"f8b9"))},meta:{title:"环境列表"}},{name:"actuator",path:"/actuator",component:function(){return Promise.all([n.e("chunk-53477b49"),n.e("chunk-29d62752")]).then(n.bind(null,"e774"))},meta:{title:"保存测试接口"}},{name:"actuatorList",path:"/actuatorList",component:function(){return n.e("chunk-13ac8476").then(n.bind(null,"1797"))},meta:{title:"执行器列表"}},{name:"statisticalAnalysis",path:"/statisticalAnalysis",component:function(){return n.e("chunk-2d0b6c33").then(n.bind(null,"1f19"))},meta:{title:"统计分析"}},{name:"timingPlan",path:"/timingPlan",component:function(){return n.e("chunk-2d0f0f44").then(n.bind(null,"9f23"))},meta:{title:"定时计划"}},{name:"sqlLink",path:"/sqlLink",component:function(){return n.e("chunk-6b67aa43").then(n.bind(null,"dbaa"))},meta:{title:"数据库链接"}}]}]}],l=new h["a"]({routes:m});l.beforeEach((function(e,t,n){if("/login"===e.path)return n();var a=window.sessionStorage.getItem("token");if(!a)return n("/login");n()}));var f=l,g=n("2f62");c["default"].use(g["a"]);var p=new g["a"].Store({state:{projectId:{},envHint:{},shrinkDiv:null,homePageShrink:!1,selectCaseData:"",newCaseName:"",deleteCase:0,addCaseId:0,allSaveData:{},editData:{},editId:{},allData:{},selectPieStatus:{num:0},selectData:{},addCaseStatus:{num:0},allCaseData:[],addCaseData:{},NowSelectId:null,homeSelectValue:[],homeSelectPath:"",homeToBehaviorData:null,homeToDynamicParamData:null,homeToEnvironmentData:null,homeToSqlLinkData:null,homeToCctuatorListData:null,deleteActuatorBar:{}},mutations:{changeProjectId:function(e,t){e.projectId=t},changeEnvHint:function(e,t){e.envHint=t},changeShrinkDiv:function(e,t){e.shrinkDiv=t},changeHomePageShrink:function(e,t){e.homePageShrink=t},changeSelectCaseData:function(e,t){e.selectCaseData=t},changeNewCaseName:function(e,t){e.newCaseName=t},changeDeleteCase:function(e,t){e.deleteCase=t},changeAddCaseId:function(e,t){e.addCaseId=t},changeAllSaveData:function(e,t){e.allSaveData=t},changeEditData:function(e,t){e.editData=t},changeEditId:function(e,t){e.editId=t},changeSelectPieStatus:function(e,t){e.selectPieStatus=t},changeAllData:function(e,t){e.allData=t},changeSelectData:function(e,t){e.selectData=t},changeAddCaseStatus:function(e,t){e.addCaseStatus=t},changeAllCaseData:function(e,t){e.allCaseData=t},changeAddCaseData:function(e,t){e.addCaseData=t},changeNowSelectId:function(e,t){e.NowSelectId=t},changehomeSelectValue:function(e,t){e.homeSelectValue=t},changehomeSelectPath:function(e,t){e.homeSelectPath=t},changehomeToBehaviorData:function(e,t){e.homeToBehaviorData=t},changehomeToDynamicParamData:function(e,t){e.homeToDynamicParamData=t},changehomeToEnvironmentData:function(e,t){e.homeToEnvironmentData=t},changehomeToSqlLinkData:function(e,t){e.homeToSqlLinkData=t},changehomeToCctuatorListData:function(e,t){e.homeToCctuatorListData=t},changedeleteActuatorBar:function(e,t){e.deleteActuatorBar=t}},actions:{changeProjectIdAct:function(e,t){e.commit("changeProjectId",t)},changeEnvHintAct:function(e,t){e.commit("changeEnvHint",t)},changeShrinkDivAct:function(e,t){e.commit("changeShrinkDiv",t)},changeHomePageShrinkAct:function(e,t){e.commit("changeHomePageShrink",t)},changeSelectCaseDataAct:function(e,t){e.commit("changeSelectCaseData",t)},changeNewCaseNameAct:function(e,t){e.commit("changeNewCaseName",t)},changeDeleteCaseAct:function(e,t){e.commit("changeDeleteCase",t)},changeAddCaseIdAct:function(e,t){e.commit("changeAddCaseId",t)},changeAllSaveDataAct:function(e,t){e.commit("changeAllSaveData",t)},changeEditDataAct:function(e,t){e.commit("changeEditData",t)},changeEditIdAct:function(e,t){e.commit("changeEditId",t)},changeSelectPieStatusAct:function(e,t){e.commit("changeSelectPieStatus",t)},changeAllDataAct:function(e,t){e.commit("changeAllData",t)},changeSelectDataAct:function(e,t){e.commit("changeSelectData",t)},changeAddCaseStatusAct:function(e,t){e.commit("changeAddCaseStatus",t)},changeAllCaseDataAct:function(e,t){e.commit("changeAllCaseData",t)},changeAddCaseDataAct:function(e,t){e.commit("changeAddCaseData",t)},changeNowSelectIdAct:function(e,t){e.commit("changeNowSelectId",t)},changehomeSelectValueAct:function(e,t){e.commit("changehomeSelectValue",t)},changehomeSelectPathAct:function(e,t){e.commit("changehomeSelectPath",t)},changehomeToBehaviorDataAct:function(e,t){e.commit("changehomeToBehaviorData",t)},changehomeToDynamicParamDataAct:function(e,t){e.commit("changehomeToDynamicParamData",t)},changehomeToEnvironmentDataAct:function(e,t){e.commit("changehomeToEnvironmentData",t)},changehomeToSqlLinkDataAct:function(e,t){e.commit("changehomeToSqlLinkData",t)},changehomeToCctuatorListDataAct:function(e,t){e.commit("changehomeToCctuatorListData",t)},changeDeleteActuatorBarAct:function(e,t){e.commit("changedeleteActuatorBar",t)}},modules:{}}),b=(n("5cfb"),n("5c96")),v=n.n(b),k=(n("0fae"),n("bc3a")),D=n.n(k),y=n("a1bc"),C=function(e){return Object(b["Message"])(Object(a["a"])(Object(a["a"])({},e),{},{offset:100}))};["success","warning","info","error"].forEach((function(e){C[e]=function(t){return"string"===typeof t&&(t={message:t,offset:100}),t.type=e,Object(b["Message"])(t)}}));var A=C;D.a.interceptors.request.use((function(e){return e}),(function(e){return Promise.reject(e)})),D.a.interceptors.response.use((function(e){return e}),(function(e){return 0!=e.response.data.indexOf("0 您查询的页码已经超出范围")&&A.error(e.response.data),Promise.reject(e)}));var S=function(e,t){var n=t.method,a=void 0===n?"get":n,c=t.timeout,o=void 0===c?6e4:c,r=t.data,i=void 0===r?{}:r,u=t.params,s=void 0===u?{}:u,d=t.headers,h=void 0===d?{"Content-Type":"application/json"}:d,m=t.dataType,l=void 0===m?"json":m,f={method:a,timeout:o,url:e,baseURL:y["a"].http,data:i,params:s,headers:h,dataType:l};return D()(f)},P={userLogin:function(e){return S("/user/login",{method:"post",data:e})},queryAllProject:function(){return S("/projects",{method:"get"})},changeProjectName:function(e){return S("/projects",{method:"put",data:e})},addProjcet:function(e){return S("/projects",{method:"post",data:e})},deleteProject:function(e){return S("/projects/".concat(e),{method:"delete"})},queryAllActivion:function(e,t){return S("/moves/".concat(e),{method:"get",params:t})},queryMovesCondition:function(e,t){return S("/moves/condition/".concat(e),{method:"get",params:t})},deleteActivion:function(e){return S("/moves/".concat(e),{method:"delete"})},editActivion:function(e){return S("/moves",{method:"put",data:e})},getActivion:function(e){return S("/moves/move/".concat(e),{method:"get"})},addActivion:function(e){return S("/moves",{method:"post",data:e})},queryAllEnvironments:function(e,t){return S("/environments/".concat(e),{method:"get",params:t})},queryEnvironmentsCondition:function(e,t){return S("/environments/condition/".concat(e),{method:"get",params:t})},queryEnvironments:function(e){return S("/environments/".concat(e),{method:"get"})},addEnvironments:function(e){return S("/environments",{method:"post",data:e})},deleteEnvironments:function(e){return S("/environments/".concat(e),{method:"delete"})},editEnvironments:function(e){return S("/environments",{method:"put",data:e})},queryAllConnects:function(e){return S("/connects/".concat(e.projectId),{method:"get",params:e})},queryConnectsCondition:function(e){return S("/connects/condition/".concat(e.projectId),{method:"get",params:e})},queryConnects:function(e){return S("/connects",{method:"post",data:e})},addConnects:function(e){return S("/connects",{method:"post",data:e})},editConnects:function(e){return S("/connects",{method:"put",data:e})},deleteConnects:function(e){return S("/connects/".concat(e),{method:"delete"})},testConnects:function(e){return S("/connects/test",{method:"post",data:e})},queryAllTestCases:function(e,t){return S("/testCases/".concat(e),{method:"get",params:t})},queryTestCasesCondition:function(e,t){return S("/testCases/condition/".concat(e),{method:"get",params:t})},queryTestCases:function(e){return S("/testCases",{method:"post",data:e})},addTestCases:function(e){return S("/testCases",{method:"post",data:e})},editTestCases:function(e){return S("/testCases",{method:"post",data:e})},getCaseById:function(e){return S("/testCases/testCase/".concat(e),{method:"get"})},deleteTestCases:function(e){return S("/testCases/".concat(e),{method:"delete"})},queryAllDynamicVariables:function(e,t){return S("/dynamicVariables/".concat(e),{method:"get",params:t})},queryDynamicVariablesCondition:function(e,t){return S("/dynamicVariables/condition/".concat(e),{method:"get",params:t})},queryDynamicVariables:function(e){return S("/dynamicVariables",{method:"post",data:e})},addDynamicVariables:function(e){return S("/dynamicVariables",{method:"post",data:e})},editDynamicVariables:function(e){return S("/dynamicVariables",{method:"put",data:e})},deleteDynamicVariables:function(e){return S("/dynamicVariables/".concat(e),{method:"delete"})},getVariableByProjectId:function(e){return S("/hints/dynamicVariableName/".concat(e),{method:"get"})},getVariableByEnv:function(e){return S("/hints/variable/".concat(e),{method:"get"})},getDBHints:function(e){return S("/db/hints",{method:"get",params:e})},selectSql:function(e){return S("/db/sql",{method:"get",params:e})},selectRunSql:function(e){return S("/db/runSql",{method:"post",data:e})},sqlTableNames:function(e){return S("/db/tableNames",{method:"get"})},getSwagger:function(e){return S("/swaggers",{method:"get",params:e})},getExecutionHistory:function(e){return S("/executionHistory/executionHistory",{method:"get",params:e})},getExecutionHistoryDetail:function(e){return S("/executionHistory/executionHistoryDetail",{method:"get",params:e})},getLastExecution:function(e){return S("/executionHistory/lastExecution",{method:"get",params:e})},getExecutionRecordsList:function(e){return S("/executionRecords/list",{method:"get",params:e})},getTestJob:function(e){return S("/testJob/page",{method:"get",params:e})},addTestJob:function(e){return S("/testJob",{method:"post",data:e})},changeTestJob:function(e){return S("/testJob",{method:"put",data:e})},deleteTestJob:function(e){return S("/testJob/".concat(e),{method:"delete"})},executionRecordsTree:function(e){return S("/executionRecords/tree",{method:"get",params:e})},testCasesListVo:function(e){return S("/testCases/listVo",{method:"get",params:e})}},T=P;n("b059"),n("77ed");c["default"].prototype.$http=T,c["default"].use(v.a),c["default"].config.productionTip=!1;var j=function(e){return Object(b["Message"])(Object(a["a"])(Object(a["a"])({},e),{},{offset:100}))};["success","warning","info","error"].forEach((function(e){j[e]=function(t){return"string"===typeof t&&(t={message:t,offset:100}),t.type=e,Object(b["Message"])(t)}})),c["default"].prototype.$message=j,new c["default"]({router:f,store:p,render:function(e){return e(d)}}).$mount("#app")},"85ec":function(e,t,n){},a1bc:function(e,t,n){"use strict";var a="192.168.102.233:8765";a="localhost:8765";var c={http:"http://"+a,ws:"ws://"+a};t["a"]=c},b059:function(e,t,n){}});
\ No newline at end of file
(function(e){function t(t){for(var a,c,i=t[0],u=t[1],d=t[2],s=0,h=[];s<i.length;s++)c=i[s],Object.prototype.hasOwnProperty.call(o,c)&&o[c]&&h.push(o[c][0]),o[c]=0;for(a in u)Object.prototype.hasOwnProperty.call(u,a)&&(e[a]=u[a]);m&&m(t);while(h.length)h.shift()();return r.push.apply(r,d||[]),n()}function n(){for(var e,t=0;t<r.length;t++){for(var n=r[t],a=!0,c=1;c<n.length;c++){var i=n[c];0!==o[i]&&(a=!1)}a&&(r.splice(t--,1),e=u(u.s=n[0]))}return e}var a={},c={app:0},o={app:0},r=[];function i(e){return u.p+"js/"+({}[e]||e)+"."+{"chunk-06d05c38":"68d3ac05","chunk-0f6a3514":"fd1addad","chunk-13ac8476":"a4fbaf6f","chunk-1422af70":"ff151d74","chunk-21e2c124":"7ec8ba6c","chunk-2d0b6c33":"fe39f8dd","chunk-2d0f0f44":"422cd409","chunk-2f943e56":"14eee39f","chunk-53477b49":"1804c2c8","chunk-28edb6c0":"5a15dfb2","chunk-29d62752":"236fecc9","chunk-41220412":"63b75f12","chunk-ab107db4":"830f6d2b","chunk-5e64d548":"c4050c8f","chunk-6b67aa43":"fa544636","chunk-7d5da0ec":"ca7e743e","chunk-8d3fb520":"646db3af"}[e]+".js"}function u(t){if(a[t])return a[t].exports;var n=a[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-06d05c38":1,"chunk-0f6a3514":1,"chunk-13ac8476":1,"chunk-1422af70":1,"chunk-21e2c124":1,"chunk-2f943e56":1,"chunk-53477b49":1,"chunk-28edb6c0":1,"chunk-29d62752":1,"chunk-41220412":1,"chunk-ab107db4":1,"chunk-5e64d548":1,"chunk-6b67aa43":1,"chunk-7d5da0ec":1,"chunk-8d3fb520":1};c[e]?t.push(c[e]):0!==c[e]&&n[e]&&t.push(c[e]=new Promise((function(t,n){for(var a="css/"+({}[e]||e)+"."+{"chunk-06d05c38":"697046f1","chunk-0f6a3514":"808d612a","chunk-13ac8476":"5789cbf4","chunk-1422af70":"f01fed2a","chunk-21e2c124":"361b3a0e","chunk-2d0b6c33":"31d6cfe0","chunk-2d0f0f44":"31d6cfe0","chunk-2f943e56":"037c29ae","chunk-53477b49":"3efb3eb4","chunk-28edb6c0":"1372ffaf","chunk-29d62752":"9ddb146b","chunk-41220412":"41c27296","chunk-ab107db4":"c18fddcf","chunk-5e64d548":"5f27b71f","chunk-6b67aa43":"dcd9ade0","chunk-7d5da0ec":"98710663","chunk-8d3fb520":"5abc22e5"}[e]+".css",o=u.p+a,r=document.getElementsByTagName("link"),i=0;i<r.length;i++){var d=r[i],s=d.getAttribute("data-href")||d.getAttribute("href");if("stylesheet"===d.rel&&(s===a||s===o))return t()}var h=document.getElementsByTagName("style");for(i=0;i<h.length;i++){d=h[i],s=d.getAttribute("data-href");if(s===a||s===o)return t()}var m=document.createElement("link");m.rel="stylesheet",m.type="text/css",m.onload=t,m.onerror=function(t){var a=t&&t.target&&t.target.src||o,r=new Error("Loading CSS chunk "+e+" failed.\n("+a+")");r.code="CSS_CHUNK_LOAD_FAILED",r.request=a,delete c[e],m.parentNode.removeChild(m),n(r)},m.href=o;var l=document.getElementsByTagName("head")[0];l.appendChild(m)})).then((function(){c[e]=0})));var a=o[e];if(0!==a)if(a)t.push(a[2]);else{var r=new Promise((function(t,n){a=o[e]=[t,n]}));t.push(a[2]=r);var d,s=document.createElement("script");s.charset="utf-8",s.timeout=120,u.nc&&s.setAttribute("nonce",u.nc),s.src=i(e);var h=new Error;d=function(t){s.onerror=s.onload=null,clearTimeout(m);var n=o[e];if(0!==n){if(n){var a=t&&("load"===t.type?"missing":t.type),c=t&&t.target&&t.target.src;h.message="Loading chunk "+e+" failed.\n("+a+": "+c+")",h.name="ChunkLoadError",h.type=a,h.request=c,n[1](h)}o[e]=void 0}};var m=setTimeout((function(){d({type:"timeout",target:s})}),12e4);s.onerror=s.onload=d,document.head.appendChild(s)}return Promise.all(t)},u.m=e,u.c=a,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 a in e)u.d(n,a,function(t){return e[t]}.bind(null,a));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 d=window["webpackJsonp"]=window["webpackJsonp"]||[],s=d.push.bind(d);d.push=t,d=d.slice();for(var h=0;h<d.length;h++)t(d[h]);var m=s;r.push([0,"chunk-vendors"]),n()})({0:function(e,t,n){e.exports=n("56d7")},"034f":function(e,t,n){"use strict";n("85ec")},"56d7":function(e,t,n){"use strict";n.r(t);var a=n("5530"),c=(n("e260"),n("e6cf"),n("cca6"),n("a79d"),n("d3b7"),n("2b0e")),o=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"app"}},[n("router-view")],1)},r=[],i=(n("034f"),n("2877")),u={},d=Object(i["a"])(u,o,r,!1,null,null,null),s=d.exports,h=(n("3ca3"),n("ddb0"),n("8c4f"));c["default"].use(h["a"]);var m=[{path:"*",redirect:"/"},{name:"login",path:"/login",component:function(){return n.e("chunk-0f6a3514").then(n.bind(null,"dc3f"))}},{name:"",path:"/",component:function(){return n.e("chunk-2f943e56").then(n.bind(null,"fcfc"))},redirect:"/home",children:[{name:"home",path:"/home",component:function(){return n.e("chunk-7d5da0ec").then(n.bind(null,"77b8"))},meta:{title:"首页"},redirect:"/case",children:[{name:"addDynamicParams",path:"/addDynamicParams",component:function(){return Promise.all([n.e("chunk-53477b49"),n.e("chunk-41220412")]).then(n.bind(null,"c7fa"))},meta:{title:"新增动参"}},{name:"addBehavior",path:"/addBehavior",component:function(){return Promise.all([n.e("chunk-53477b49"),n.e("chunk-28edb6c0")]).then(n.bind(null,"c67f"))},meta:{title:"新增行为"}},{name:"taskBar",path:"/taskBar",redirect:"/addCase",component:function(){return n.e("chunk-21e2c124").then(n.bind(null,"8e3b"))},children:[{name:"addCase",path:"/addCase",component:function(){return Promise.all([n.e("chunk-53477b49"),n.e("chunk-ab107db4")]).then(n.bind(null,"4d4d"))},meta:{title:"新增接口"}}]},{name:"dynamicParam",path:"/dynamicParam",component:function(){return n.e("chunk-5e64d548").then(n.bind(null,"e306"))},meta:{title:"动参列表"}},{name:"behavior",path:"/behavior",component:function(){return n.e("chunk-8d3fb520").then(n.bind(null,"2b56"))},meta:{title:"行为列表"}},{name:"case",path:"/case",component:function(){return n.e("chunk-06d05c38").then(n.bind(null,"d479"))},meta:{title:"接口列表"}},{name:"environment",path:"/environment",component:function(){return n.e("chunk-1422af70").then(n.bind(null,"f8b9"))},meta:{title:"环境列表"}},{name:"actuator",path:"/actuator",component:function(){return Promise.all([n.e("chunk-53477b49"),n.e("chunk-29d62752")]).then(n.bind(null,"e774"))},meta:{title:"保存测试接口"}},{name:"actuatorList",path:"/actuatorList",component:function(){return n.e("chunk-13ac8476").then(n.bind(null,"1797"))},meta:{title:"执行器列表"}},{name:"statisticalAnalysis",path:"/statisticalAnalysis",component:function(){return n.e("chunk-2d0b6c33").then(n.bind(null,"1f19"))},meta:{title:"统计分析"}},{name:"timingPlan",path:"/timingPlan",component:function(){return n.e("chunk-2d0f0f44").then(n.bind(null,"9f23"))},meta:{title:"定时计划"}},{name:"sqlLink",path:"/sqlLink",component:function(){return n.e("chunk-6b67aa43").then(n.bind(null,"dbaa"))},meta:{title:"数据库链接"}}]}]}],l=new h["a"]({routes:m});l.beforeEach((function(e,t,n){if("/login"===e.path)return n();var a=window.sessionStorage.getItem("token");if(!a)return n("/login");n()}));var f=l,g=n("2f62");c["default"].use(g["a"]);var p=new g["a"].Store({state:{projectId:{},envHint:{},shrinkDiv:null,homePageShrink:!1,selectCaseData:"",newCaseName:"",deleteCase:0,addCaseId:0,allSaveData:{},editData:{},editId:{},allData:{},selectPieStatus:{num:0},selectData:{},addCaseStatus:{num:0},allCaseData:[],addCaseData:{},NowSelectId:null,homeSelectValue:[],homeSelectPath:"",homeToBehaviorData:null,homeToDynamicParamData:null,homeToEnvironmentData:null,homeToSqlLinkData:null,homeToCctuatorListData:null,deleteActuatorBar:{}},mutations:{changeProjectId:function(e,t){e.projectId=t},changeEnvHint:function(e,t){e.envHint=t},changeShrinkDiv:function(e,t){e.shrinkDiv=t},changeHomePageShrink:function(e,t){e.homePageShrink=t},changeSelectCaseData:function(e,t){e.selectCaseData=t},changeNewCaseName:function(e,t){e.newCaseName=t},changeDeleteCase:function(e,t){e.deleteCase=t},changeAddCaseId:function(e,t){e.addCaseId=t},changeAllSaveData:function(e,t){e.allSaveData=t},changeEditData:function(e,t){e.editData=t},changeEditId:function(e,t){e.editId=t},changeSelectPieStatus:function(e,t){e.selectPieStatus=t},changeAllData:function(e,t){e.allData=t},changeSelectData:function(e,t){e.selectData=t},changeAddCaseStatus:function(e,t){e.addCaseStatus=t},changeAllCaseData:function(e,t){e.allCaseData=t},changeAddCaseData:function(e,t){e.addCaseData=t},changeNowSelectId:function(e,t){e.NowSelectId=t},changehomeSelectValue:function(e,t){e.homeSelectValue=t},changehomeSelectPath:function(e,t){e.homeSelectPath=t},changehomeToBehaviorData:function(e,t){e.homeToBehaviorData=t},changehomeToDynamicParamData:function(e,t){e.homeToDynamicParamData=t},changehomeToEnvironmentData:function(e,t){e.homeToEnvironmentData=t},changehomeToSqlLinkData:function(e,t){e.homeToSqlLinkData=t},changehomeToCctuatorListData:function(e,t){e.homeToCctuatorListData=t},changedeleteActuatorBar:function(e,t){e.deleteActuatorBar=t}},actions:{changeProjectIdAct:function(e,t){e.commit("changeProjectId",t)},changeEnvHintAct:function(e,t){e.commit("changeEnvHint",t)},changeShrinkDivAct:function(e,t){e.commit("changeShrinkDiv",t)},changeHomePageShrinkAct:function(e,t){e.commit("changeHomePageShrink",t)},changeSelectCaseDataAct:function(e,t){e.commit("changeSelectCaseData",t)},changeNewCaseNameAct:function(e,t){e.commit("changeNewCaseName",t)},changeDeleteCaseAct:function(e,t){e.commit("changeDeleteCase",t)},changeAddCaseIdAct:function(e,t){e.commit("changeAddCaseId",t)},changeAllSaveDataAct:function(e,t){e.commit("changeAllSaveData",t)},changeEditDataAct:function(e,t){e.commit("changeEditData",t)},changeEditIdAct:function(e,t){e.commit("changeEditId",t)},changeSelectPieStatusAct:function(e,t){e.commit("changeSelectPieStatus",t)},changeAllDataAct:function(e,t){e.commit("changeAllData",t)},changeSelectDataAct:function(e,t){e.commit("changeSelectData",t)},changeAddCaseStatusAct:function(e,t){e.commit("changeAddCaseStatus",t)},changeAllCaseDataAct:function(e,t){e.commit("changeAllCaseData",t)},changeAddCaseDataAct:function(e,t){e.commit("changeAddCaseData",t)},changeNowSelectIdAct:function(e,t){e.commit("changeNowSelectId",t)},changehomeSelectValueAct:function(e,t){e.commit("changehomeSelectValue",t)},changehomeSelectPathAct:function(e,t){e.commit("changehomeSelectPath",t)},changehomeToBehaviorDataAct:function(e,t){e.commit("changehomeToBehaviorData",t)},changehomeToDynamicParamDataAct:function(e,t){e.commit("changehomeToDynamicParamData",t)},changehomeToEnvironmentDataAct:function(e,t){e.commit("changehomeToEnvironmentData",t)},changehomeToSqlLinkDataAct:function(e,t){e.commit("changehomeToSqlLinkData",t)},changehomeToCctuatorListDataAct:function(e,t){e.commit("changehomeToCctuatorListData",t)},changeDeleteActuatorBarAct:function(e,t){e.commit("changedeleteActuatorBar",t)}},modules:{}}),b=(n("5cfb"),n("5c96")),v=n.n(b),k=(n("0fae"),n("bc3a")),D=n.n(k),y=n("a1bc"),C=function(e){return Object(b["Message"])(Object(a["a"])(Object(a["a"])({},e),{},{offset:100}))};["success","warning","info","error"].forEach((function(e){C[e]=function(t){return"string"===typeof t&&(t={message:t,offset:100}),t.type=e,Object(b["Message"])(t)}}));var A=C;D.a.interceptors.request.use((function(e){return e}),(function(e){return Promise.reject(e)})),D.a.interceptors.response.use((function(e){return e}),(function(e){return 0!=e.response.data.indexOf("0 您查询的页码已经超出范围")&&A.error(e.response.data),Promise.reject(e)}));var S=function(e,t){var n=t.method,a=void 0===n?"get":n,c=t.timeout,o=void 0===c?6e4:c,r=t.data,i=void 0===r?{}:r,u=t.params,d=void 0===u?{}:u,s=t.headers,h=void 0===s?{"Content-Type":"application/json"}:s,m=t.dataType,l=void 0===m?"json":m,f={method:a,timeout:o,url:e,baseURL:y["a"].http,data:i,params:d,headers:h,dataType:l};return D()(f)},P={userLogin:function(e){return S("/user/login",{method:"post",data:e})},queryAllProject:function(){return S("/projects",{method:"get"})},changeProjectName:function(e){return S("/projects",{method:"put",data:e})},addProjcet:function(e){return S("/projects",{method:"post",data:e})},deleteProject:function(e){return S("/projects/".concat(e),{method:"delete"})},queryAllActivion:function(e,t){return S("/moves/".concat(e),{method:"get",params:t})},queryMovesCondition:function(e,t){return S("/moves/condition/".concat(e),{method:"get",params:t})},deleteActivion:function(e){return S("/moves/".concat(e),{method:"delete"})},editActivion:function(e){return S("/moves",{method:"put",data:e})},getActivion:function(e){return S("/moves/move/".concat(e),{method:"get"})},addActivion:function(e){return S("/moves",{method:"post",data:e})},queryAllEnvironments:function(e,t){return S("/environments/".concat(e),{method:"get",params:t})},queryEnvironmentsCondition:function(e,t){return S("/environments/condition/".concat(e),{method:"get",params:t})},queryEnvironments:function(e){return S("/environments/".concat(e),{method:"get"})},addEnvironments:function(e){return S("/environments",{method:"post",data:e})},deleteEnvironments:function(e){return S("/environments/".concat(e),{method:"delete"})},editEnvironments:function(e){return S("/environments",{method:"put",data:e})},queryAllConnects:function(e){return S("/connects/".concat(e.projectId),{method:"get",params:e})},queryConnectsCondition:function(e){return S("/connects/condition/".concat(e.projectId),{method:"get",params:e})},queryConnects:function(e){return S("/connects",{method:"post",data:e})},addConnects:function(e){return S("/connects",{method:"post",data:e})},editConnects:function(e){return S("/connects",{method:"put",data:e})},deleteConnects:function(e){return S("/connects/".concat(e),{method:"delete"})},testConnects:function(e){return S("/connects/test",{method:"post",data:e})},queryAllTestCases:function(e,t){return S("/testCases/".concat(e),{method:"get",params:t})},queryTestCasesCondition:function(e,t){return S("/testCases/condition/".concat(e),{method:"get",params:t})},queryTestCases:function(e){return S("/testCases",{method:"post",data:e})},addTestCases:function(e){return S("/testCases",{method:"post",data:e})},editTestCases:function(e){return S("/testCases",{method:"post",data:e})},getCaseById:function(e){return S("/testCases/testCase/".concat(e),{method:"get"})},deleteTestCases:function(e){return S("/testCases/".concat(e),{method:"delete"})},queryAllDynamicVariables:function(e,t){return S("/dynamicVariables/".concat(e),{method:"get",params:t})},queryDynamicVariablesCondition:function(e,t){return S("/dynamicVariables/condition/".concat(e),{method:"get",params:t})},queryDynamicVariables:function(e){return S("/dynamicVariables",{method:"post",data:e})},addDynamicVariables:function(e){return S("/dynamicVariables",{method:"post",data:e})},editDynamicVariables:function(e){return S("/dynamicVariables",{method:"put",data:e})},deleteDynamicVariables:function(e){return S("/dynamicVariables/".concat(e),{method:"delete"})},getVariableByProjectId:function(e){return S("/hints/dynamicVariableName/".concat(e),{method:"get"})},getVariableByEnv:function(e){return S("/hints/variable/".concat(e),{method:"get"})},getDBHints:function(e){return S("/db/hints",{method:"get",params:e})},selectSql:function(e){return S("/db/sql",{method:"get",params:e})},selectRunSql:function(e){return S("/db/runSql",{method:"post",data:e})},sqlTableNames:function(e){return S("/db/tableNames",{method:"get"})},getSwagger:function(e){return S("/swaggers",{method:"get",params:e})},getExecutionHistory:function(e){return S("/executionHistory/executionHistory",{method:"get",params:e})},getExecutionHistoryDetail:function(e){return S("/executionHistory/executionHistoryDetail",{method:"get",params:e})},getLastExecution:function(e){return S("/executionHistory/lastExecution",{method:"get",params:e})},getExecutionRecordsList:function(e){return S("/executionRecords/list",{method:"get",params:e})},getTestJob:function(e){return S("/testJob/page",{method:"get",params:e})},addTestJob:function(e){return S("/testJob",{method:"post",data:e})},changeTestJob:function(e){return S("/testJob",{method:"put",data:e})},deleteTestJob:function(e){return S("/testJob/".concat(e),{method:"delete"})},executionRecordsTree:function(e){return S("/executionRecords/tree",{method:"get",params:e})},testCasesListVo:function(e){return S("/testCases/listVo",{method:"get",params:e})}},T=P;n("b059"),n("77ed");c["default"].prototype.$http=T,c["default"].use(v.a),c["default"].config.productionTip=!1;var j=function(e){return Object(b["Message"])(Object(a["a"])(Object(a["a"])({},e),{},{offset:100}))};["success","warning","info","error"].forEach((function(e){j[e]=function(t){return"string"===typeof t&&(t={message:t,offset:100}),t.type=e,Object(b["Message"])(t)}})),c["default"].prototype.$message=j,new c["default"]({router:f,store:p,render:function(e){return e(s)}}).$mount("#app")},"85ec":function(e,t,n){},a1bc:function(e,t,n){"use strict";var a="192.168.102.233:8765";a="localhost:8765";var c={http:"http://"+a,ws:"ws://"+a};t["a"]=c},b059:function(e,t,n){}});
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-41220412"],{"0aa3":function(e,t,a){"use strict";a("3f7d")},"317e":function(e,t,a){},"3f7d":function(e,t,a){},5578:function(e,t,a){"use strict";var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"httpParam"},[e.haveURL?a("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入URL"},model:{value:e.form.url,callback:function(t){e.$set(e.form,"url",t)},expression:"form.url"}},[a("el-select",{staticStyle:{width:"80px"},attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.form.method,callback:function(t){e.$set(e.form,"method",t)},expression:"form.method"}},[a("el-option",{attrs:{label:"GET",value:"GET"}}),a("el-option",{attrs:{label:"POST",value:"POST"}}),a("el-option",{attrs:{label:"PUT",value:"PUT"}}),a("el-option",{attrs:{label:"DELETE",value:"DELETE"}})],1)],1):e._e(),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"请求头",name:"1"}},e._l(e.headerItem,(function(t,l){return a("div",{key:l,staticClass:"header_item"},[a("el-input",{attrs:{placeholder:"key"},model:{value:t.key,callback:function(a){e.$set(t,"key",a)},expression:"v.key"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"value"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"v.value"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"des"},model:{value:t.des,callback:function(a){e.$set(t,"des",a)},expression:"v.des"}}),0==l?a("i",{staticClass:"el-icon-plus",on:{click:function(t){return e.addHeaderItem(l)}}}):e._e(),0!==l?a("i",{staticClass:"el-icon-delete",on:{click:function(t){return e.deleteHeaderItem(l)}}}):e._e()],1)})),0),a("el-tab-pane",{attrs:{label:"QUERY参数",name:"2"}},e._l(e.queryItem,(function(t,l){return a("div",{key:l,staticClass:"header_item"},[a("el-input",{attrs:{placeholder:"key"},model:{value:t.key,callback:function(a){e.$set(t,"key",a)},expression:"v.key"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"value"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"v.value"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"des"},model:{value:t.des,callback:function(a){e.$set(t,"des",a)},expression:"v.des"}}),0==l?a("i",{staticClass:"el-icon-plus",on:{click:function(t){return e.addQueryItem(l)}}}):e._e(),0!==l?a("i",{staticClass:"el-icon-delete",on:{click:function(t){return e.deleteQueryItem(l)}}}):e._e()],1)})),0),a("el-tab-pane",{attrs:{label:"PATH参数",name:"4"}},e._l(e.pathItem,(function(t,l){return a("div",{key:l,staticClass:"header_item"},[a("el-input",{attrs:{placeholder:"key"},model:{value:t.key,callback:function(a){e.$set(t,"key",a)},expression:"v.key"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"value"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"v.value"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"des"},model:{value:t.des,callback:function(a){e.$set(t,"des",a)},expression:"v.des"}}),0==l?a("i",{staticClass:"el-icon-plus",on:{click:function(t){return e.addPathItem(l)}}}):e._e(),0!==l?a("i",{staticClass:"el-icon-delete",on:{click:function(t){return e.deletePathItem(l)}}}):e._e()],1)})),0),a("el-tab-pane",{attrs:{label:"请求体",name:"3"}},[a("div",{staticClass:"requestBody"},[a("el-radio-group",{model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[a("el-radio",{attrs:{label:"NONE"}},[e._v(" none ")]),a("el-radio",{attrs:{label:"FORM_DATA"}},[e._v(" form-data ")]),a("el-radio",{attrs:{label:"X_WWW_FORM_URLENCODED"}},[e._v(" x-www-form-urlencoded ")]),a("el-radio",{attrs:{label:"RAW"}},[e._v(" raw ")]),a("el-radio",{attrs:{label:"BINARY"}},[e._v(" binary ")]),"RAW"==e.radio?a("el-dropdown",{on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[e._v(" "+e._s(e.selectType)+" "),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"text"}},[e._v("text")]),a("el-dropdown-item",{attrs:{command:"xml"}},[e._v("xml")]),a("el-dropdown-item",{attrs:{command:"javascript"}},[e._v("javascript")]),a("el-dropdown-item",{attrs:{command:"json"}},[e._v("json")]),a("el-dropdown-item",{attrs:{command:"html"}},[e._v("html")])],1)],1):e._e()],1),a("div",{staticClass:"request_item"},["NONE"==e.radio?a("div",{staticClass:"request_none"},[e._v(" 该请求没有请求体 ")]):e._e(),"FORM_DATA"==e.radio?a("div",{staticClass:"request_form-data"},e._l(e.form_dataItem,(function(t,l){return a("div",{key:l,staticClass:"header_item"},[a("el-input",{attrs:{placeholder:"key"},model:{value:t.key,callback:function(a){e.$set(t,"key",a)},expression:"v.key"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"value"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"v.value"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"des"},model:{value:t.des,callback:function(a){e.$set(t,"des",a)},expression:"v.des"}}),0==l?a("i",{staticClass:"el-icon-plus",on:{click:function(t){return e.addForm_dataItem(l)}}}):e._e(),0!==l?a("i",{staticClass:"el-icon-delete",on:{click:function(t){return e.deleteForm_dataItem(l)}}}):e._e()],1)})),0):e._e(),"X_WWW_FORM_URLENCODED"==e.radio?a("div",{staticClass:"request_form-data"},e._l(e.x_formItem,(function(t,l){return a("div",{key:l,staticClass:"header_item"},[a("el-input",{attrs:{placeholder:"key"},model:{value:t.key,callback:function(a){e.$set(t,"key",a)},expression:"v.key"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"value"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"v.value"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"des"},model:{value:t.des,callback:function(a){e.$set(t,"des",a)},expression:"v.des"}}),0==l?a("i",{staticClass:"el-icon-plus",on:{click:function(t){return e.addX_formItem(l)}}}):e._e(),0!==l?a("i",{staticClass:"el-icon-delete",on:{click:function(t){return e.deleteX_formItem(l)}}}):e._e()],1)})),0):e._e(),"RAW"==e.radio?a("div",{staticClass:"request_raw"},[e.reset?a("MyEditor",{staticClass:"editorHeight",attrs:{language:e.language,title:"dockerfile",content:e.httpData.stringValue},on:{change:e.getEditValue},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}}):e._e()],1):e._e(),"BINARY"==e.radio?a("div",{staticClass:"request_binary"},[a("el-upload",{staticClass:"upload-demo",attrs:{action:"https://jsonplaceholder.typicode.com/posts/","on-preview":e.handlePreview,"on-remove":e.handleRemove,"before-remove":e.beforeRemove,multiple:"",limit:3,"on-exceed":e.handleExceed,"file-list":e.fileList}},[a("el-button",{attrs:{size:"small",type:"primary"}},[e._v("点击上传")])],1)],1):e._e()])],1)])],1)],1)},s=[],r=a("5530"),i=(a("d81d"),a("a434"),a("99af"),a("b0c0"),a("abc3")),o={name:"httpParam",props:{haveURL:{type:Boolean,default:!1},httpData:{type:Object,default:function(){return{}}}},components:{MyEditor:i["a"]},data:function(){return{activeName:"1",form:{},headerItem:[{}],form_dataItem:[{}],x_formItem:[{}],queryItem:[{}],pathItem:[{}],radio:"NONE",selectType:"json ",code:"",reset:!0,language:"json",fileList:[],editValue:""}},mounted:function(){this.setValue()},methods:{setValue:function(){var e=[],t=[],a=[],l=[],s=[];this.form={url:this.httpData.url,method:this.httpData.method},this.httpData.stringValue&&(this.activeName="3",this.language=this.httpData.requestType,this.selectType=this.httpData.requestType,this.editValue=this.httpData.stringValue,this.radio="RAW"),this.httpData.headers.length>0&&this.mapArr(this.httpData.headers,e,!1),"QUERY"==this.httpData.requestType?(this.mapArr(this.httpData.requestBodies,t,!1),this.activeName="2"):"PATH"==this.httpData.requestType?(this.mapArr(this.httpData.requestBodies,a,!1),this.activeName="4"):"FORM_DATA"==this.httpData.requestType?(this.activeName="3",this.radio="FORM_DATA",this.mapArr(this.httpData.requestBodies,l,!1)):"X_WWW_FORM_URLENCODED"==this.httpData.requestType?(this.activeName="3",this.radio="X_WWW_FORM_URLENCODED",this.mapArr(this.httpData.requestBodies,s,!1)):"NONE"==this.httpData.requestType&&(this.activeName="3",this.radio="NONE"),e.length>0&&(this.headerItem=e),t.length>0&&(this.queryItem=t),a.length>0&&(this.pathItem=a),l.length>0&&(this.form_dataItem=l),s.length>0&&(this.x_formItem=s)},mapArr:function(e,t,a){e.map((function(e){e.key&&t.push({key:e.key,value:e.value,type:a?"TEXT":void 0,des:e.des})}))},getValue:function(){var e={},t=[],a=[],l="";return this.mapArr(this.headerItem,t,!1),2==this.activeName?(e.requestType="QUERY",this.mapArr(this.queryItem,a,!0)):4==this.activeName?(e.requestType="PATH",this.mapArr(this.pathItem,a,!0)):3==this.activeName&&"RAW"!=this.radio?("FORM_DATA"==this.radio?(this.mapArr(this.form_dataItem,a,!0),e.requestType="FORM_DATA"):"X_WWW_FORM_URLENCODED"==this.radio&&(this.mapArr(this.x_formItem,a,!0),e.requestType="X_WWW_FORM_URLENCODED"),e.requestType=this.radio):"RAW"==this.radio&&(e.requestType=this.language,l=this.editValue),e=Object(r["a"])(Object(r["a"])({},e),{},{url:this.form.url?this.form.url:void 0,method:this.form.method?this.form.method:void 0,headers:t,requestBodies:a,stringValue:l}),e},getEditValue:function(e){this.editValue=e},handleClick:function(e){},addHeaderItem:function(){this.headerItem.push({})},deleteHeaderItem:function(e){this.headerItem.splice(e,1)},addQueryItem:function(){this.queryItem.push({})},deleteQueryItem:function(e){this.queryItem.splice(e,1)},addPathItem:function(){this.pathItem.push({})},deletePathItem:function(e){this.pathItem.splice(e,1)},addForm_dataItem:function(){this.form_dataItem.push({})},deleteForm_dataItem:function(e){this.form_dataItem.splice(e,1)},addX_formItem:function(){this.x_formItem.push({})},deleteX_formItem:function(e){this.x_formItem.splice(e,1)},handleCommand:function(e){var t=this;this.selectType=e,this.language=e,this.reset=!1,this.$nextTick((function(){t.reset=!0}))},handleRemove:function(e,t){console.log(e,t)},handlePreview:function(e){console.log(e)},handleExceed:function(e,t){this.$message.warning("当前限制选择 3 个文件,本次选择了 ".concat(e.length," 个文件,共选择了 ").concat(e.length+t.length," 个文件"))},beforeRemove:function(e,t){return this.$confirm("确定移除 ".concat(e.name,"?"))}}},n=o,c=(a("0aa3"),a("2877")),d=Object(c["a"])(n,l,s,!1,null,"1ecce398",null);t["a"]=d.exports},c7fa:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"addDynamicParams"},[a("div",{staticClass:"form"},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"90px"}},[a("el-row",[a("el-col",{attrs:{span:10,offset:1}},[a("el-form-item",{attrs:{label:"名称",prop:"name"}},[a("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),a("el-col",{attrs:{span:10,offset:2}},[a("el-form-item",{attrs:{label:"所属项目"}},[a("el-input",{attrs:{disabled:""},model:{value:e.projectName,callback:function(t){e.projectName=t},expression:"projectName"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:10,offset:1}},[a("el-form-item",{attrs:{label:"取用字段",prop:"takenField"}},[a("el-input",{model:{value:e.form.takenField,callback:function(t){e.$set(e.form,"takenField",t)},expression:"form.takenField"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:22,offset:1}},[a("el-form-item",{attrs:{label:"备注"}},[a("el-input",{attrs:{type:"textarea"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:22,offset:1}},[a("el-form-item",{staticStyle:{"text-align":"left"},attrs:{label:"类型",prop:"type"}},[a("el-radio-group",{on:{change:e.changeRadio},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},[a("el-radio",{attrs:{label:"CONSTANT_VARIABLE"}},[e._v("KV")]),a("el-radio",{attrs:{label:"SQL_VARIABLE"}},[e._v("SQL")]),a("el-radio",{attrs:{label:"HTTP_VARIABLE"}},[e._v("HTTP")]),a("el-radio",{attrs:{label:"CASE_VARIABLE"}},[e._v("CASE")])],1)],1)],1)],1),"CONSTANT_VARIABLE"==e.form.type?a("el-row",[a("el-col",{attrs:{span:22,offset:1}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"value"},model:{value:e.form.value,callback:function(t){e.$set(e.form,"value",t)},expression:"form.value"}})],1)],1)],1):e._e(),"SQL_VARIABLE"==e.form.type?a("el-row",[a("el-col",{attrs:{span:10,offset:1}},[a("el-form-item",{attrs:{label:"数据库",prop:"poolId",rules:[{required:!0,message:"请选择数据库id",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择数据库"},on:{change:e.getDBHints},model:{value:e.form.poolId,callback:function(t){e.$set(e.form,"poolId",t)},expression:"form.poolId"}},e._l(e.connectsList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:22,offset:1}},[a("el-form-item",{attrs:{label:"SQL语句",prop:"sqlExp",rules:[{required:!0,message:"请输入SQL语句",trigger:"blur"}]}},[a("el-input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],model:{value:e.form.sqlExp,callback:function(t){e.$set(e.form,"sqlExp",t)},expression:"form.sqlExp"}}),a("myEditor",{ref:"editor",staticClass:"editorHeight",attrs:{language:"sql",title:"dockerfile",content:e.form.sqlExp},on:{change:e.getEditValue},model:{value:e.form.sqlExp,callback:function(t){e.$set(e.form,"sqlExp",t)},expression:"form.sqlExp"}})],1)],1),a("el-col",{attrs:{span:22,offset:1}},[a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{color:"#FFF","background-color":"#32CCBC","border-color":"initial"},attrs:{type:"success"},on:{click:e.querySql}},[e._v(" 查询 ")])],1)],1),a("el-col",{attrs:{span:24}},[0!=e.sqlTabData.length?a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.sqlTabData}},[a("el-table-column",{attrs:{label:"id",align:"center",prop:"id"}}),a("el-table-column",{attrs:{label:"名称",align:"center",prop:"name"}}),a("el-table-column",{attrs:{label:"用例描述",align:"center",prop:"des"}}),a("el-table-column",{attrs:{label:"标签",align:"center",prop:"tag"}}),a("el-table-column",{attrs:{label:"环境",align:"center",prop:"default_env"}}),a("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"create_time"}}),a("el-table-column",{attrs:{label:"更新时间",align:"center",prop:"update_time"}})],1):e._e()],1)],1):e._e(),"CASE_VARIABLE"==e.form.type?a("el-row",[a("el-col",{attrs:{span:10,offset:1}},[a("el-form-item",{attrs:{label:"用例"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择用例"},model:{value:e.form.case,callback:function(t){e.$set(e.form,"case",t)},expression:"form.case"}},e._l(e.testCaseList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1):e._e(),"HTTP_VARIABLE"==e.form.type?a("el-row",[a("el-col",{staticStyle:{"padding-left":"80px"},attrs:{span:23}},[a("div",{staticClass:"httpParamDiv"},[a("httpParam",{ref:"httpParam",attrs:{haveURL:!0,httpData:e.form.httpData}})],1)])],1):e._e(),a("el-form-item",{staticStyle:{"margin-top":"20px"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.confirmAdd}},[e._v("保存")]),a("el-button",{on:{click:function(t){return e.$router.push({path:"./dynamicParam"})}}},[e._v("取消")])],1)],1)],1)])},s=[],r=(a("b0c0"),a("e9c4"),a("d81d"),a("a434"),a("5578")),i=a("abc3"),o={name:"addDynamicParams",components:{httpParam:r["a"],myEditor:i["a"]},data:function(){return{form:{},sqlTabData:[],connectsList:[],environmentList:[],rules:{name:[{required:!0,message:"请输入名称",trigger:"blur"}],takenField:[{required:!0,message:"请输入字段",trigger:"blur"}],type:[{required:!0,message:"请选择类型",trigger:"change"}]},projectName:"",testCaseList:[]}},beforeDestroy:function(){localStorage.removeItem("dbHint")},created:function(){this.echoData()},mounted:function(){this.projectName=this.$store.state.projectId.name,this.$store.state.projectId.id&&(this.getAllTestCases(),this.getAllMove(),this.queryAllConnects(),this.getAllEnvironments())},watch:{"$store.state.projectId":{handler:function(e){this.getAllTestCases(),this.getAllMove(),this.queryAllConnects(),this.getAllEnvironments()},deep:!0},"$store.state.homeToDynamicParamData":{handler:function(e){this.echoData(e)},deep:!0}},methods:{getDBHints:function(e){this.$http.getDBHints({connectId:e}).then((function(e){var t=e.data;localStorage.setItem("dbHint",JSON.stringify(t))}))},getAllEnvironments:function(){var e=this;this.$http.queryAllEnvironments(this.$store.state.projectId.id,{pageNum:1,pageSize:9999}).then((function(t){var a=t.data.data.records;e.environmentList=a})).catch((function(e){}))},querySql:function(){var e=this;if(this.form.poolId)if(this.form.sqlExp){var t={connectId:4,projectId:this.$store.state.projectId.id,sql:this.form.sqlExp};this.$http.selectRunSql(t).then((function(t){console.log(t);var a=t.data;a.map((function(t){e.environmentList.map((function(e){e.id==t.default_env&&(t.default_env=e.name)}))})),e.sqlTabData=a}))}else this.$message.error("请输入sql语句");else this.$message.error("请选择数据库")},getEditValue:function(e){this.$refs.form.clearValidate("sqlExp"),this.form.sqlExp=e},getAllTestCases:function(){var e=this;this.$http.queryAllTestCases(this.$store.state.projectId.id,{pageNum:1,pageSize:9999}).then((function(t){var a=t.data.data.records;e.testCaseList=a})).catch((function(e){}))},echoData:function(e){var t={};if(t=e||this.$route.query,this.form=JSON.parse(JSON.stringify(t)),"CONSTANT_VARIABLE"==t.type)this.form.value=t.detail;else if("SQL_VARIABLE"==t.type){var a=JSON.parse(t.detail);this.getDBHints(this.form.poolId),this.$set(this.form,"poolId",a.poolId),this.$set(this.form,"sqlExp",a.sqlExp)}else if("HTTP_VARIABLE"==t.type){var l=JSON.parse(t.detail);this.form.httpData=l}else"CASE_VARIABLE"==t.type&&(this.form.case=t.case)},queryAllConnects:function(){var e=this;this.$store.state.projectId.id&&this.$http.queryAllConnects({projectId:this.$store.state.projectId.id,pageNum:1,pageSize:9999}).then((function(t){var a=t.data.data.records;e.connectsList=a})).catch((function(e){console.log(e)}))},getAllMove:function(){var e=this;this.$http.queryAllActivion(this.$store.state.projectId.id).then((function(t){e.movesList=t.data.data})).catch((function(e){console.log(e)}))},confirmAdd:function(){var e=this;this.$refs.form.validate((function(t){if(t){var a=JSON.parse(JSON.stringify(e.form));if("CONSTANT_VARIABLE"==a.type)a.detail=a.value;else if("SQL_VARIABLE"==a.type)a.detail=JSON.stringify({poolId:a.poolId,sqlExp:a.sqlExp});else if("HTTP_VARIABLE"==a.type){if(console.log(e.$refs.httpParam),"error"==e.$refs.httpParam.getValue())return;a.detail=JSON.stringify(e.$refs.httpParam.getValue())}else a.type;a.projectId=e.$store.state.projectId.id;var l=function(t){"add"==t?e.$message.success("新建成功"):e.$message.success("编辑成功"),e.$http.queryAllDynamicVariables(e.$store.state.projectId.id).then((function(e){console.log(e);var t=[];e.data.data.records.map((function(e){t.push({name:e.name,remark:e.remark})})),localStorage.setItem("projectHint",JSON.stringify(t)),console.log(e)})),e.$router.push({path:"./dynamicParam",query:{name:"动参"}})};e.$route.query.id?e.$http.editDynamicVariables(a).then((function(e){return l("edit")})):e.$http.addDynamicVariables(a).then((function(e){return l("add")}))}}))},addKVItem:function(e){this.kvItem.push({})},deleteKVItem:function(e){this.kvItem.splice(e,1)}}},n=o,c=(a("f026"),a("2877")),d=Object(c["a"])(n,l,s,!1,null,"e8989062",null);t["default"]=d.exports},f026:function(e,t,a){"use strict";a("317e")}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-524a889e"],{"0aa3":function(e,t,a){"use strict";a("3f7d")},"3f7d":function(e,t,a){},"48b0":function(e,t,a){"use strict";a("a5e7")},5578:function(e,t,a){"use strict";var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"httpParam"},[e.haveURL?a("el-input",{staticClass:"input-with-select",attrs:{placeholder:"请输入URL"},model:{value:e.form.url,callback:function(t){e.$set(e.form,"url",t)},expression:"form.url"}},[a("el-select",{staticStyle:{width:"80px"},attrs:{slot:"prepend",placeholder:"请选择"},slot:"prepend",model:{value:e.form.method,callback:function(t){e.$set(e.form,"method",t)},expression:"form.method"}},[a("el-option",{attrs:{label:"GET",value:"GET"}}),a("el-option",{attrs:{label:"POST",value:"POST"}}),a("el-option",{attrs:{label:"PUT",value:"PUT"}}),a("el-option",{attrs:{label:"DELETE",value:"DELETE"}})],1)],1):e._e(),a("el-tabs",{on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"请求头",name:"1"}},e._l(e.headerItem,(function(t,l){return a("div",{key:l,staticClass:"header_item"},[a("el-input",{attrs:{placeholder:"key"},model:{value:t.key,callback:function(a){e.$set(t,"key",a)},expression:"v.key"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"value"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"v.value"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"des"},model:{value:t.des,callback:function(a){e.$set(t,"des",a)},expression:"v.des"}}),0==l?a("i",{staticClass:"el-icon-plus",on:{click:function(t){return e.addHeaderItem(l)}}}):e._e(),0!==l?a("i",{staticClass:"el-icon-delete",on:{click:function(t){return e.deleteHeaderItem(l)}}}):e._e()],1)})),0),a("el-tab-pane",{attrs:{label:"QUERY参数",name:"2"}},e._l(e.queryItem,(function(t,l){return a("div",{key:l,staticClass:"header_item"},[a("el-input",{attrs:{placeholder:"key"},model:{value:t.key,callback:function(a){e.$set(t,"key",a)},expression:"v.key"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"value"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"v.value"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"des"},model:{value:t.des,callback:function(a){e.$set(t,"des",a)},expression:"v.des"}}),0==l?a("i",{staticClass:"el-icon-plus",on:{click:function(t){return e.addQueryItem(l)}}}):e._e(),0!==l?a("i",{staticClass:"el-icon-delete",on:{click:function(t){return e.deleteQueryItem(l)}}}):e._e()],1)})),0),a("el-tab-pane",{attrs:{label:"PATH参数",name:"4"}},e._l(e.pathItem,(function(t,l){return a("div",{key:l,staticClass:"header_item"},[a("el-input",{attrs:{placeholder:"key"},model:{value:t.key,callback:function(a){e.$set(t,"key",a)},expression:"v.key"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"value"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"v.value"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"des"},model:{value:t.des,callback:function(a){e.$set(t,"des",a)},expression:"v.des"}}),0==l?a("i",{staticClass:"el-icon-plus",on:{click:function(t){return e.addPathItem(l)}}}):e._e(),0!==l?a("i",{staticClass:"el-icon-delete",on:{click:function(t){return e.deletePathItem(l)}}}):e._e()],1)})),0),a("el-tab-pane",{attrs:{label:"请求体",name:"3"}},[a("div",{staticClass:"requestBody"},[a("el-radio-group",{model:{value:e.radio,callback:function(t){e.radio=t},expression:"radio"}},[a("el-radio",{attrs:{label:"NONE"}},[e._v(" none ")]),a("el-radio",{attrs:{label:"FORM_DATA"}},[e._v(" form-data ")]),a("el-radio",{attrs:{label:"X_WWW_FORM_URLENCODED"}},[e._v(" x-www-form-urlencoded ")]),a("el-radio",{attrs:{label:"RAW"}},[e._v(" raw ")]),a("el-radio",{attrs:{label:"BINARY"}},[e._v(" binary ")]),"RAW"==e.radio?a("el-dropdown",{on:{command:e.handleCommand}},[a("span",{staticClass:"el-dropdown-link"},[e._v(" "+e._s(e.selectType)+" "),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{attrs:{command:"text"}},[e._v("text")]),a("el-dropdown-item",{attrs:{command:"xml"}},[e._v("xml")]),a("el-dropdown-item",{attrs:{command:"javascript"}},[e._v("javascript")]),a("el-dropdown-item",{attrs:{command:"json"}},[e._v("json")]),a("el-dropdown-item",{attrs:{command:"html"}},[e._v("html")])],1)],1):e._e()],1),a("div",{staticClass:"request_item"},["NONE"==e.radio?a("div",{staticClass:"request_none"},[e._v(" 该请求没有请求体 ")]):e._e(),"FORM_DATA"==e.radio?a("div",{staticClass:"request_form-data"},e._l(e.form_dataItem,(function(t,l){return a("div",{key:l,staticClass:"header_item"},[a("el-input",{attrs:{placeholder:"key"},model:{value:t.key,callback:function(a){e.$set(t,"key",a)},expression:"v.key"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"value"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"v.value"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"des"},model:{value:t.des,callback:function(a){e.$set(t,"des",a)},expression:"v.des"}}),0==l?a("i",{staticClass:"el-icon-plus",on:{click:function(t){return e.addForm_dataItem(l)}}}):e._e(),0!==l?a("i",{staticClass:"el-icon-delete",on:{click:function(t){return e.deleteForm_dataItem(l)}}}):e._e()],1)})),0):e._e(),"X_WWW_FORM_URLENCODED"==e.radio?a("div",{staticClass:"request_form-data"},e._l(e.x_formItem,(function(t,l){return a("div",{key:l,staticClass:"header_item"},[a("el-input",{attrs:{placeholder:"key"},model:{value:t.key,callback:function(a){e.$set(t,"key",a)},expression:"v.key"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"value"},model:{value:t.value,callback:function(a){e.$set(t,"value",a)},expression:"v.value"}}),a("el-input",{staticStyle:{"margin-left":"20px"},attrs:{placeholder:"des"},model:{value:t.des,callback:function(a){e.$set(t,"des",a)},expression:"v.des"}}),0==l?a("i",{staticClass:"el-icon-plus",on:{click:function(t){return e.addX_formItem(l)}}}):e._e(),0!==l?a("i",{staticClass:"el-icon-delete",on:{click:function(t){return e.deleteX_formItem(l)}}}):e._e()],1)})),0):e._e(),"RAW"==e.radio?a("div",{staticClass:"request_raw"},[e.reset?a("MyEditor",{staticClass:"editorHeight",attrs:{language:e.language,title:"dockerfile",content:e.httpData.stringValue},on:{change:e.getEditValue},model:{value:e.code,callback:function(t){e.code=t},expression:"code"}}):e._e()],1):e._e(),"BINARY"==e.radio?a("div",{staticClass:"request_binary"},[a("el-upload",{staticClass:"upload-demo",attrs:{action:"https://jsonplaceholder.typicode.com/posts/","on-preview":e.handlePreview,"on-remove":e.handleRemove,"before-remove":e.beforeRemove,multiple:"",limit:3,"on-exceed":e.handleExceed,"file-list":e.fileList}},[a("el-button",{attrs:{size:"small",type:"primary"}},[e._v("点击上传")])],1)],1):e._e()])],1)])],1)],1)},s=[],r=a("5530"),i=(a("d81d"),a("a434"),a("99af"),a("b0c0"),a("abc3")),o={name:"httpParam",props:{haveURL:{type:Boolean,default:!1},httpData:{type:Object,default:function(){return{}}}},components:{MyEditor:i["a"]},data:function(){return{activeName:"1",form:{},headerItem:[{}],form_dataItem:[{}],x_formItem:[{}],queryItem:[{}],pathItem:[{}],radio:"NONE",selectType:"json ",code:"",reset:!0,language:"json",fileList:[],editValue:""}},mounted:function(){this.setValue()},methods:{setValue:function(){var e=[],t=[],a=[],l=[],s=[];this.form={url:this.httpData.url,method:this.httpData.method},this.httpData.stringValue&&(this.activeName="3",this.language=this.httpData.requestType,this.selectType=this.httpData.requestType,this.editValue=this.httpData.stringValue,this.radio="RAW"),this.httpData.headers.length>0&&this.mapArr(this.httpData.headers,e,!1),"QUERY"==this.httpData.requestType?(this.mapArr(this.httpData.requestBodies,t,!1),this.activeName="2"):"PATH"==this.httpData.requestType?(this.mapArr(this.httpData.requestBodies,a,!1),this.activeName="4"):"FORM_DATA"==this.httpData.requestType?(this.activeName="3",this.radio="FORM_DATA",this.mapArr(this.httpData.requestBodies,l,!1)):"X_WWW_FORM_URLENCODED"==this.httpData.requestType?(this.activeName="3",this.radio="X_WWW_FORM_URLENCODED",this.mapArr(this.httpData.requestBodies,s,!1)):"NONE"==this.httpData.requestType&&(this.activeName="3",this.radio="NONE"),e.length>0&&(this.headerItem=e),t.length>0&&(this.queryItem=t),a.length>0&&(this.pathItem=a),l.length>0&&(this.form_dataItem=l),s.length>0&&(this.x_formItem=s)},mapArr:function(e,t,a){e.map((function(e){e.key&&t.push({key:e.key,value:e.value,type:a?"TEXT":void 0,des:e.des})}))},getValue:function(){var e={},t=[],a=[],l="";return this.mapArr(this.headerItem,t,!1),2==this.activeName?(e.requestType="QUERY",this.mapArr(this.queryItem,a,!0)):4==this.activeName?(e.requestType="PATH",this.mapArr(this.pathItem,a,!0)):3==this.activeName&&"RAW"!=this.radio?("FORM_DATA"==this.radio?(this.mapArr(this.form_dataItem,a,!0),e.requestType="FORM_DATA"):"X_WWW_FORM_URLENCODED"==this.radio&&(this.mapArr(this.x_formItem,a,!0),e.requestType="X_WWW_FORM_URLENCODED"),e.requestType=this.radio):"RAW"==this.radio&&(e.requestType=this.language,l=this.editValue),e=Object(r["a"])(Object(r["a"])({},e),{},{url:this.form.url?this.form.url:void 0,method:this.form.method?this.form.method:void 0,headers:t,requestBodies:a,stringValue:l}),e},getEditValue:function(e){this.editValue=e},handleClick:function(e){},addHeaderItem:function(){this.headerItem.push({})},deleteHeaderItem:function(e){this.headerItem.splice(e,1)},addQueryItem:function(){this.queryItem.push({})},deleteQueryItem:function(e){this.queryItem.splice(e,1)},addPathItem:function(){this.pathItem.push({})},deletePathItem:function(e){this.pathItem.splice(e,1)},addForm_dataItem:function(){this.form_dataItem.push({})},deleteForm_dataItem:function(e){this.form_dataItem.splice(e,1)},addX_formItem:function(){this.x_formItem.push({})},deleteX_formItem:function(e){this.x_formItem.splice(e,1)},handleCommand:function(e){var t=this;this.selectType=e,this.language=e,this.reset=!1,this.$nextTick((function(){t.reset=!0}))},handleRemove:function(e,t){console.log(e,t)},handlePreview:function(e){console.log(e)},handleExceed:function(e,t){this.$message.warning("当前限制选择 3 个文件,本次选择了 ".concat(e.length," 个文件,共选择了 ").concat(e.length+t.length," 个文件"))},beforeRemove:function(e,t){return this.$confirm("确定移除 ".concat(e.name,"?"))}}},n=o,c=(a("0aa3"),a("2877")),d=Object(c["a"])(n,l,s,!1,null,"1ecce398",null);t["a"]=d.exports},a5e7:function(e,t,a){},c7fa:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"addDynamicParams"},[a("div",{staticClass:"form"},[a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules,"label-width":"90px"}},[a("el-row",[a("el-col",{attrs:{span:10,offset:1}},[a("el-form-item",{attrs:{label:"名称",prop:"name"}},[a("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1)],1),a("el-col",{attrs:{span:10,offset:2}},[a("el-form-item",{attrs:{label:"所属项目"}},[a("el-input",{attrs:{disabled:""},model:{value:e.projectName,callback:function(t){e.projectName=t},expression:"projectName"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:10,offset:1}},[a("el-form-item",{attrs:{label:"取用字段",prop:"takenField"}},[a("el-input",{model:{value:e.form.takenField,callback:function(t){e.$set(e.form,"takenField",t)},expression:"form.takenField"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:22,offset:1}},[a("el-form-item",{attrs:{label:"备注"}},[a("el-input",{attrs:{type:"textarea"},model:{value:e.form.remark,callback:function(t){e.$set(e.form,"remark",t)},expression:"form.remark"}})],1)],1)],1),a("el-row",[a("el-col",{attrs:{span:22,offset:1}},[a("el-form-item",{staticStyle:{"text-align":"left"},attrs:{label:"类型",prop:"type"}},[a("el-radio-group",{on:{change:e.changeRadio},model:{value:e.form.type,callback:function(t){e.$set(e.form,"type",t)},expression:"form.type"}},[a("el-radio",{attrs:{label:"CONSTANT_VARIABLE"}},[e._v("KV")]),a("el-radio",{attrs:{label:"SQL_VARIABLE"}},[e._v("SQL")]),a("el-radio",{attrs:{label:"HTTP_VARIABLE"}},[e._v("HTTP")]),a("el-radio",{attrs:{label:"CASE_VARIABLE"}},[e._v("CASE")])],1)],1)],1)],1),"CONSTANT_VARIABLE"==e.form.type?a("el-row",[a("el-col",{attrs:{span:22,offset:1}},[a("el-form-item",{attrs:{label:""}},[a("el-input",{attrs:{placeholder:"value"},model:{value:e.form.value,callback:function(t){e.$set(e.form,"value",t)},expression:"form.value"}})],1)],1)],1):e._e(),"SQL_VARIABLE"==e.form.type?a("el-row",[a("el-col",{attrs:{span:10,offset:1}},[a("el-form-item",{attrs:{label:"数据库",prop:"poolId",rules:[{required:!0,message:"请选择数据库id",trigger:"change"}]}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择数据库"},on:{change:e.getDBHints},model:{value:e.form.poolId,callback:function(t){e.$set(e.form,"poolId",t)},expression:"form.poolId"}},e._l(e.connectsList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1),a("el-col",{attrs:{span:22,offset:1}},[a("el-form-item",{attrs:{label:"SQL语句",prop:"sqlExp",rules:[{required:!0,message:"请输入SQL语句",trigger:"blur"}]}},[a("el-input",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],model:{value:e.form.sqlExp,callback:function(t){e.$set(e.form,"sqlExp",t)},expression:"form.sqlExp"}}),a("myEditor",{ref:"editor",staticClass:"editorHeight",attrs:{language:"sql",title:"dockerfile",content:e.form.sqlExp},on:{change:e.getEditValue},model:{value:e.form.sqlExp,callback:function(t){e.$set(e.form,"sqlExp",t)},expression:"form.sqlExp"}})],1)],1),a("el-col",{attrs:{span:22,offset:1}},[a("el-form-item",{attrs:{label:""}},[a("el-button",{staticStyle:{color:"#FFF","background-color":"#32CCBC","border-color":"initial"},attrs:{type:"success"},on:{click:e.querySql}},[e._v(" 查询 ")])],1)],1),a("el-col",{attrs:{span:24}},[0!=e.sqlTabData.length?a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.sqlTabData}},[a("el-table-column",{attrs:{label:"id",align:"center",prop:"id"}}),a("el-table-column",{attrs:{label:"名称",align:"center",prop:"name"}}),a("el-table-column",{attrs:{label:"用例描述",align:"center",prop:"des"}}),a("el-table-column",{attrs:{label:"标签",align:"center",prop:"tag"}}),a("el-table-column",{attrs:{label:"环境",align:"center",prop:"default_env"}}),a("el-table-column",{attrs:{label:"创建时间",align:"center",prop:"create_time"}}),a("el-table-column",{attrs:{label:"更新时间",align:"center",prop:"update_time"}})],1):e._e()],1)],1):e._e(),"CASE_VARIABLE"==e.form.type?a("el-row",[a("el-col",{attrs:{span:10,offset:1}},[a("el-form-item",{attrs:{label:"用例"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择用例"},model:{value:e.form.case,callback:function(t){e.$set(e.form,"case",t)},expression:"form.case"}},e._l(e.testCaseList,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1)],1)],1)],1):e._e(),"HTTP_VARIABLE"==e.form.type?a("el-row",[a("el-col",{staticStyle:{"padding-left":"80px"},attrs:{span:23}},[a("div",{staticClass:"httpParamDiv"},[a("httpParam",{ref:"httpParam",attrs:{haveURL:!0,httpData:e.form.httpData}})],1)])],1):e._e(),a("el-form-item",{staticStyle:{"margin-top":"20px"}},[a("el-button",{attrs:{type:"primary"},on:{click:e.confirmAdd}},[e._v("保存")]),a("el-button",{on:{click:function(t){return e.$router.push({path:"./dynamicParam"})}}},[e._v("取消")])],1)],1)],1)])},s=[],r=(a("b0c0"),a("e9c4"),a("d81d"),a("a434"),a("5578")),i=a("abc3"),o={name:"addDynamicParams",components:{httpParam:r["a"],myEditor:i["a"]},data:function(){return{form:{},sqlTabData:[],connectsList:[],environmentList:[],rules:{name:[{required:!0,message:"请输入名称",trigger:"blur"}],takenField:[{required:!0,message:"请输入字段",trigger:"blur"}],type:[{required:!0,message:"请选择类型",trigger:"change"}]},projectName:"",testCaseList:[]}},beforeDestroy:function(){localStorage.removeItem("dbHint")},created:function(){this.echoData()},mounted:function(){this.projectName=this.$store.state.projectId.name,this.$store.state.projectId.id&&(this.getAllTestCases(),this.getAllMove(),this.queryAllConnects(),this.getAllEnvironments())},watch:{"$store.state.projectId":{handler:function(e){this.getAllTestCases(),this.getAllMove(),this.queryAllConnects(),this.getAllEnvironments()},deep:!0},"$store.state.homeToDynamicParamData":{handler:function(e){this.echoData(e)},deep:!0}},methods:{getDBHints:function(e){this.$http.getDBHints({connectId:e}).then((function(e){var t=e.data;localStorage.setItem("dbHint",JSON.stringify(t))}))},getAllEnvironments:function(){var e=this;this.$http.queryAllEnvironments(this.$store.state.projectId.id,{pageNum:1,pageSize:9999}).then((function(t){var a=t.data.data.records;e.environmentList=a})).catch((function(e){}))},querySql:function(){var e=this;if(this.form.poolId)if(this.form.sqlExp){var t={connectId:4,projectId:this.$store.state.projectId.id,sql:this.form.sqlExp};this.$http.selectRunSql(t).then((function(t){console.log(t);var a=t.data;a.map((function(t){e.environmentList.map((function(e){e.id==t.default_env&&(t.default_env=e.name)}))})),e.sqlTabData=a}))}else this.$message.error("请输入sql语句");else this.$message.error("请选择数据库")},getEditValue:function(e){this.$refs.form.clearValidate("sqlExp"),this.form.sqlExp=e},getAllTestCases:function(){var e=this;this.$http.queryAllTestCases(this.$store.state.projectId.id,{pageNum:1,pageSize:9999}).then((function(t){var a=t.data.data.records;e.testCaseList=a})).catch((function(e){}))},echoData:function(e){var t={};if(t=e||this.$route.query,this.form=JSON.parse(JSON.stringify(t)),"CONSTANT_VARIABLE"==t.type)this.form.value=t.detail;else if("SQL_VARIABLE"==t.type){var a=JSON.parse(t.detail);this.form.poolId=a.poolId,this.getDBHints(this.form.poolId),this.form.sqlExp=a.sqlExp}else if("HTTP_VARIABLE"==t.type){var l=JSON.parse(t.detail);this.form.httpData=l}else"CASE_VARIABLE"==t.type&&(this.form.case=t.case)},queryAllConnects:function(){var e=this;this.$store.state.projectId.id&&this.$http.queryAllConnects({projectId:this.$store.state.projectId.id,pageNum:1,pageSize:9999}).then((function(t){var a=t.data.data.records;e.connectsList=a})).catch((function(e){console.log(e)}))},getAllMove:function(){var e=this;this.$http.queryAllActivion(this.$store.state.projectId.id).then((function(t){e.movesList=t.data.data})).catch((function(e){console.log(e)}))},confirmAdd:function(){var e=this;this.$refs.form.validate((function(t){if(t){var a=JSON.parse(JSON.stringify(e.form));if("CONSTANT_VARIABLE"==a.type)a.detail=a.value;else if("SQL_VARIABLE"==a.type)a.detail=JSON.stringify({poolId:a.poolId,sqlExp:a.sqlExp});else if("HTTP_VARIABLE"==a.type){if(console.log(e.$refs.httpParam),"error"==e.$refs.httpParam.getValue())return;a.detail=JSON.stringify(e.$refs.httpParam.getValue())}else a.type;a.projectId=e.$store.state.projectId.id;var l=function(t){"add"==t?e.$message.success("新建成功"):e.$message.success("编辑成功"),e.$http.queryAllDynamicVariables(e.$store.state.projectId.id).then((function(e){console.log(e);var t=[];e.data.data.records.map((function(e){t.push({name:e.name,remark:e.remark})})),localStorage.setItem("projectHint",JSON.stringify(t)),console.log(e)})),e.$router.push({path:"./dynamicParam",query:{name:"动参"}})};e.$route.query.id?e.$http.editDynamicVariables(a).then((function(e){return l("edit")})):e.$http.addDynamicVariables(a).then((function(e){return l("add")}))}}))},addKVItem:function(e){this.kvItem.push({})},deleteKVItem:function(e){this.kvItem.splice(e,1)}}},n=o,c=(a("48b0"),a("2877")),d=Object(c["a"])(n,l,s,!1,null,"6c87fadd",null);t["default"]=d.exports}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-297e6053"],{"77b8":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"home"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.isSqlLink,expression:"isSqlLink"}],class:{left:!0,w0:t.shrinkDiv}},[s("div",{staticClass:"iconBtn",on:{click:t.shrink}},[t.shrinkDiv?s("i",{staticClass:"el-icon-arrow-right"}):s("i",{staticClass:"el-icon-arrow-left"})]),s("div",{staticClass:"left_title"},[s("div",{staticClass:"first_title",style:{width:t.showCasePie?"first"==t.firstOrSecond?"100%":"0%":"100%"}},[s("span",{style:{"font-size":"first"==t.firstOrSecond?"24px":"0.1rem"},on:{click:function(e){return t.changePie("first")}}},[t._v(t._s(t.tabName))])]),s("div",{staticClass:"second_title",style:{width:t.showCasePie?"second"==t.firstOrSecond?"100%":"0%":"0px",display:t.showCasePie?"flex":"none"}},[s("span",{style:{"font-size":"second"==t.firstOrSecond?"24px":"0.1rem"},on:{click:function(e){return t.changePie("second")}}},[t._v("用例列表")])])]),"first"==t.firstOrSecond?s("div",{staticClass:"left_content"},t._l(t.projectList,(function(e,i){return s("div",{key:i,class:{project_item:!0,active:e.showDelect},staticStyle:{"margin-bottom":"5px"},on:{click:function(e){return e.stopPropagation(),t.selectItem(i)}}},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.name,placement:"top-start"}},[e.showIpt?t._e():s("div",{staticStyle:{"text-align":"center"}},[s("span",{staticClass:"ellipsisSpan"},[t._v(t._s(e.name))]),s("span",{staticClass:"overflowHiding",class:{overflowHidingActive:e.showDelect}}),t.showDetail?s("i",{staticClass:"el-icon-edit-outline",on:{click:function(e){return t.editBtn(i)}}}):t._e(),t.showDetail?s("i",{staticClass:"el-icon-close",on:{click:function(s){return t.deleteProject(e.id)}}}):t._e()])]),e.showIpt?s("div",{staticStyle:{width:"100%"}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.editName,expression:"editName"}],attrs:{type:"text"},domProps:{value:t.editName},on:{input:function(e){e.target.composing||(t.editName=e.target.value)}}}),s("i",{staticClass:"el-icon-success",on:{click:function(s){return t.editProject(e.id)}}}),s("i",{staticClass:"el-icon-error",on:{click:function(e){t.projectList[i].showIpt=!1}}})]):t._e()],1)})),0):s("div",{staticClass:"left_content"},t._l(t.testCaseList,(function(e,i){return s("div",{key:i,class:{project_item:!0,active:e.showDelect},staticStyle:{"margin-bottom":"5px"},on:{click:function(e){return e.stopPropagation(),t.selectItem2(i)}}},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.name,placement:"top-start"}},[s("div",{staticStyle:{"text-align":"center"}},[s("span",{staticClass:"ellipsisSpan"},[t._v(t._s(e.name))]),s("span",{staticClass:"overflowHiding",class:{overflowHidingActive:e.showDelect}})])])],1)})),0)]),s("div",{class:{right:!0,w100:t.shrinkDiv}},[s("router-view")],1),s("el-dialog",{attrs:{title:"新增项目",visible:t.openAddProjectDialog,width:"30%","before-close":t.closeDialog},on:{"update:visible":function(e){t.openAddProjectDialog=e}}},[s("el-input",{model:{value:t.projectName,callback:function(e){t.projectName=e},expression:"projectName"}}),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:t.closeDialog}},[t._v("取 消")]),s("el-button",{attrs:{type:"primary"},on:{click:t.addProjcet}},[t._v("确 定")])],1)],1)],1)},o=[],c=s("5530"),n=(s("b0c0"),s("d81d"),s("e9c4"),{data:function(){return{tabName:"用例列表",isSqlLink:!0,showCasePie:!1,openAddProjectDialog:!1,shrinkDiv:!1,showDetail:!1,showFirstIcon:!0,showSecondIcon:!1,firstOrSecond:"first",editName:"",projectName:"",projectList:[{name:123}],testCaseList:[]}},beforeRouteUpdate:function(t,e,s){var i=this;"addCase"==t.name&&this.getTextCase(),"addCase"==t.name?this.showCasePie=!0:this.showCasePie=!1,"addCase"==t.name?this.firstOrSecond="second":this.firstOrSecond="first","first"==this.firstOrSecond?(this.showSecondIcon=!1,setTimeout((function(){i.showFirstIcon=!0}),300)):(this.showFirstIcon=!1,setTimeout((function(){i.showSecondIcon=!0}),300)),s()},created:function(){this.$http.sqlTableNames().then((function(t){var e=t.data,s=[];e.map((function(t){s.push({name:t.TABLE_NAME,des:"TABLE_NAME"})})),localStorage.setItem("sqlHint",JSON.stringify(s))})).catch((function(t){}))},watch:{$route:function(t){"behavior"==t.name?this.tabName="行为列表":"case"==t.name?this.tabName="用例列表":"actuatorList"==t.name?this.tabName="执行器列表":"dynamicParam"==t.name?this.tabName="动参列表":"environment"==t.name?this.tabName="环境列表":"sqlLink"==t.name&&(this.tabName="数据库列表")},"$store.state.deleteCase":{handler:function(t){this.testCaseList.map((function(e){e.id==t.id&&(e.showDelect=!1)}))},deep:!0},"$store.state.homePageShrink":{handler:function(t){this.shrinkDiv=t},deep:!0},"$store.state.addCaseId":{handler:function(t){console.log(t),this.getTextCase(t.id)},deep:!0},"$store.state.editId":{handler:function(t){this.testCaseList.map((function(t){t.showDelect=!1})),this.getTextCase(t)},deep:!0},"$store.state.homeSelectValue":{handler:function(t){for(var e in this.projectList=t,this.projectList)this.projectList[e].showDelect=!1},deep:!0},"$store.state.deleteActuatorBar":{handler:function(t){},deep:!0}},mounted:function(){"/addCase"==this.$route.path?this.showCasePie=!0:this.showCasePie=!1},methods:{addCaseBtn:function(){this.$store.dispatch("changeAddCaseStatusAct",{num:this.$store.state.addCaseStatus.num})},getTextCase:function(t){var e=this;this.$http.queryAllTestCases(this.$store.state.projectId.id,{pageNum:1,pageSize:9999}).then((function(s){var i=s.data.data.records,a=[];e.testCaseList.map((function(t){t.showDelect&&a.push(t.id)})),i.map((function(t){t.showDelect=!1})),(t||a.length>0)&&(a.push(t),i.map((function(t){a.map((function(e){t.id==e&&(t.showDelect=!0)}))}))),e.testCaseList=i})).catch((function(t){}))},shrink:function(){this.shrinkDiv=!this.shrinkDiv,this.$store.dispatch("changeShrinkDivAct",this.shrinkDiv)},changePie:function(t){var e=this;this.firstOrSecond=t,"first"==t?(this.showSecondIcon=!1,setTimeout((function(){e.showFirstIcon=!0}),300)):(this.showFirstIcon=!1,setTimeout((function(){e.showSecondIcon=!0}),300))},closeDialog:function(){this.openAddProjectDialog=!1,this.projectName=""},selectItem:function(t){"./addBehavior"==this.$store.state.homeSelectPath?(this.projectList.map((function(t){t.showDelect=!1})),this.projectList[t].showDelect=!0,this.$router.push({path:this.$store.state.homeSelectPath,query:{id:this.projectList[t].id}}),this.$store.dispatch("changehomeToBehaviorDataAct",{id:this.projectList[t].id,dateTimeType:(new Date).getTime()})):"./addDynamicParams"==this.$store.state.homeSelectPath?(this.projectList.map((function(t){t.showDelect=!1})),this.projectList[t].showDelect=!0,this.$router.push({path:this.$store.state.homeSelectPath,query:Object(c["a"])({},this.projectList[t])}),this.$store.dispatch("changehomeToDynamicParamDataAct",Object(c["a"])(Object(c["a"])({},this.projectList[t]),{},{dateTimeType:(new Date).getTime()}))):"./environment"==this.$store.state.homeSelectPath?(this.projectList.map((function(t){t.showDelect=!1})),this.projectList[t].showDelect=!0,this.$store.dispatch("changehomeToEnvironmentDataAct",Object(c["a"])(Object(c["a"])({},this.projectList[t]),{},{dateTimeType:(new Date).getTime()}))):"./sqlLink"==this.$store.state.homeSelectPath?(this.projectList.map((function(t){t.showDelect=!1})),this.projectList[t].showDelect=!0,this.$store.dispatch("changehomeToSqlLinkDataAct",Object(c["a"])(Object(c["a"])({},this.projectList[t]),{},{dateTimeType:(new Date).getTime()}))):"./taskBar"==this.$store.state.homeSelectPath?(this.projectList[t].showDelect=!0,this.$store.dispatch("changeEditIdAct",this.projectList[t].id),this.$router.push({path:this.$store.state.homeSelectPath,query:Object(c["a"])({},this.projectList[t])})):"./actuator"==this.$store.state.homeSelectPath&&(this.projectList[t].showDelect=!this.projectList[t].showDelect,this.$store.dispatch("changehomeToCctuatorListDataAct",this.projectList[t]?JSON.stringify(this.projectList[t]):void 0),this.$router.push({path:this.$store.state.homeSelectPath,query:{queryData:this.projectList[t]?JSON.stringify(this.projectList[t]):void 0}}))},setParamData:function(t){},selectItem2:function(t){var e=this;this.$http.getCaseById(this.testCaseList[t].id).then((function(s){e.$set(e.testCaseList[t],"param",s.data.data),e.setParamData(e.testCaseList[t]),e.$store.dispatch("changeSelectCaseDataAct",JSON.parse(JSON.stringify(e.testCaseList[t]))),1==e.testCaseList[t].showDelect?e.testCaseList[t].showDelect=!1:e.testCaseList[t].showDelect=!0}))},editBtn:function(t){this.projectList[t].showIpt=!0,this.editName=this.projectList[t].name},getVariableByProjectId:function(){this.$http.queryAllDynamicVariables(this.$store.state.projectId.id).then((function(t){console.log(t);var e=[];t.data.data.records.map((function(t){e.push({name:t.name,remark:t.remark})})),localStorage.setItem("projectHint",JSON.stringify(e)),console.log(t)}))},getAllProject:function(){var t=this;this.$http.queryAllProject().then((function(e){var s=e.data.data;s.map((function(t){t.showIpt=!1,t.showDelect=!1})),t.projectList=s,t.selectItem(0),t.getVariableByProjectId(),t.getTextCase()}))},deleteProject:function(t){var e=this;this.$confirm("此操作将永久删除项目, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$http.deleteProject(t).then((function(t){e.$message({type:"success",message:"删除成功!"}),e.getAllProject(),e.projectList[i].showIpt=!1})).catch((function(t){}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},editProject:function(t){var e=this;this.$http.changeProjectName({name:this.editName,id:t}).then((function(t){e.$message.success("修改成功"),e.getAllProject()}))},addProjcet:function(){var t=this;this.$http.addProjcet({name:this.projectName}).then((function(e){t.$message.success("新增成功"),t.openAddProjectDialog=!1,t.getAllProject(),t.projectName=""})).catch((function(t){}))},showEditAll:function(){this.showDetail=!this.showDetail,this.projectList.map((function(t){t.showIpt=!1}))}}}),r=n,h=(s("80cc"),s("2877")),l=Object(h["a"])(r,a,o,!1,null,"5d37d6bc",null);e["default"]=l.exports},"80cc":function(t,e,s){"use strict";s("d2ac")},b0c0:function(t,e,s){var i=s("83ab"),a=s("5e77").EXISTS,o=s("e330"),c=s("9bf2").f,n=Function.prototype,r=o(n.toString),h=/^\s*function ([^ (]*)/,l=o(h.exec),d="name";i&&!a&&c(n,d,{configurable:!0,get:function(){try{return l(h,r(this))[1]}catch(t){return""}}})},d2ac:function(t,e,s){},d81d:function(t,e,s){"use strict";var i=s("23e7"),a=s("b727").map,o=s("1dde"),c=o("map");i({target:"Array",proto:!0,forced:!c},{map:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}})},e9c4:function(t,e,s){var i=s("23e7"),a=s("da84"),o=s("d066"),c=s("2ba4"),n=s("e330"),r=s("d039"),h=a.Array,l=o("JSON","stringify"),d=n(/./.exec),u=n("".charAt),p=n("".charCodeAt),m=n("".replace),f=n(1..toString),g=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,v=/^[\uDC00-\uDFFF]$/,j=function(t,e,s){var i=u(s,e-1),a=u(s,e+1);return d(w,t)&&!d(v,a)||d(v,t)&&!d(w,i)?"\\u"+f(p(t,0),16):t},D=r((function(){return'"\\udf06\\ud834"'!==l("\udf06\ud834")||'"\\udead"'!==l("\udead")}));l&&i({target:"JSON",stat:!0,forced:D},{stringify:function(t,e,s){for(var i=0,a=arguments.length,o=h(a);i<a;i++)o[i]=arguments[i];var n=c(l,null,o);return"string"==typeof n?m(n,g,j):n}})}}]);
\ No newline at end of file
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7d5da0ec"],{"77b8":function(t,e,s){"use strict";s.r(e);var a=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",{staticClass:"home"},[s("div",{directives:[{name:"show",rawName:"v-show",value:t.isSqlLink,expression:"isSqlLink"}],class:{left:!0,w0:t.shrinkDiv}},[s("div",{staticClass:"iconBtn",on:{click:t.shrink}},[t.shrinkDiv?s("i",{staticClass:"el-icon-arrow-right"}):s("i",{staticClass:"el-icon-arrow-left"})]),s("div",{staticClass:"left_title"},[s("div",{staticClass:"first_title",style:{width:t.showCasePie?"first"==t.firstOrSecond?"100%":"0%":"100%"}},[s("span",{style:{"font-size":"first"==t.firstOrSecond?"24px":"0.1rem"},on:{click:function(e){return t.changePie("first")}}},[t._v(t._s(t.tabName))])]),s("div",{staticClass:"second_title",style:{width:t.showCasePie?"second"==t.firstOrSecond?"100%":"0%":"0px",display:t.showCasePie?"flex":"none"}},[s("span",{style:{"font-size":"second"==t.firstOrSecond?"24px":"0.1rem"},on:{click:function(e){return t.changePie("second")}}},[t._v("用例列表")])])]),"first"==t.firstOrSecond?s("div",{staticClass:"left_content"},t._l(t.projectList,(function(e,i){return s("div",{key:i,class:{project_item:!0,active:e.showDelect},staticStyle:{"margin-bottom":"5px"},on:{click:function(e){return e.stopPropagation(),t.selectItem(i)}}},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.name,placement:"top-start"}},[e.showIpt?t._e():s("div",{staticStyle:{"text-align":"center"}},[s("span",{staticClass:"ellipsisSpan"},[t._v(t._s(e.name))]),s("span",{staticClass:"overflowHiding",class:{overflowHidingActive:e.showDelect}}),t.showDetail?s("i",{staticClass:"el-icon-edit-outline",on:{click:function(e){return t.editBtn(i)}}}):t._e(),t.showDetail?s("i",{staticClass:"el-icon-close",on:{click:function(s){return t.deleteProject(e.id)}}}):t._e()])]),e.showIpt?s("div",{staticStyle:{width:"100%"}},[s("input",{directives:[{name:"model",rawName:"v-model",value:t.editName,expression:"editName"}],attrs:{type:"text"},domProps:{value:t.editName},on:{input:function(e){e.target.composing||(t.editName=e.target.value)}}}),s("i",{staticClass:"el-icon-success",on:{click:function(s){return t.editProject(e.id)}}}),s("i",{staticClass:"el-icon-error",on:{click:function(e){t.projectList[i].showIpt=!1}}})]):t._e()],1)})),0):s("div",{staticClass:"left_content"},t._l(t.testCaseList,(function(e,i){return s("div",{key:i,class:{project_item:!0,active:e.showDelect},staticStyle:{"margin-bottom":"5px"},on:{click:function(e){return e.stopPropagation(),t.selectItem2(i)}}},[s("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.name,placement:"top-start"}},[s("div",{staticStyle:{"text-align":"center"}},[s("span",{staticClass:"ellipsisSpan"},[t._v(t._s(e.name))]),s("span",{staticClass:"overflowHiding",class:{overflowHidingActive:e.showDelect}})])])],1)})),0)]),s("div",{class:{right:!0,w100:t.shrinkDiv}},[s("router-view")],1),s("el-dialog",{attrs:{title:"新增项目",visible:t.openAddProjectDialog,width:"30%","before-close":t.closeDialog},on:{"update:visible":function(e){t.openAddProjectDialog=e}}},[s("el-input",{model:{value:t.projectName,callback:function(e){t.projectName=e},expression:"projectName"}}),s("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[s("el-button",{on:{click:t.closeDialog}},[t._v("取 消")]),s("el-button",{attrs:{type:"primary"},on:{click:t.addProjcet}},[t._v("确 定")])],1)],1)],1)},o=[],n=s("5530"),c=(s("b0c0"),s("d81d"),s("e9c4"),{data:function(){return{tabName:"用例列表",isSqlLink:!0,showCasePie:!1,openAddProjectDialog:!1,shrinkDiv:!1,showDetail:!1,showFirstIcon:!0,showSecondIcon:!1,firstOrSecond:"first",editName:"",projectName:"",projectList:[{name:123}],testCaseList:[]}},beforeRouteUpdate:function(t,e,s){var i=this;"addCase"==t.name&&this.getTextCase(),"addCase"==t.name?this.showCasePie=!0:this.showCasePie=!1,"addCase"==t.name?this.firstOrSecond="second":this.firstOrSecond="first","first"==this.firstOrSecond?(this.showSecondIcon=!1,setTimeout((function(){i.showFirstIcon=!0}),300)):(this.showFirstIcon=!1,setTimeout((function(){i.showSecondIcon=!0}),300)),s()},created:function(){this.$http.sqlTableNames().then((function(t){var e=t.data,s=[];e.map((function(t){s.push({name:t.TABLE_NAME,des:"TABLE_NAME"})})),localStorage.setItem("sqlHint",JSON.stringify(s))})).catch((function(t){}))},watch:{$route:function(t){"behavior"==t.name?this.tabName="行为列表":"case"==t.name?this.tabName="用例列表":"actuatorList"==t.name?this.tabName="执行器列表":"dynamicParam"==t.name?this.tabName="动参列表":"environment"==t.name?this.tabName="环境列表":"sqlLink"==t.name&&(this.tabName="数据库列表")},"$store.state.deleteCase":{handler:function(t){this.testCaseList.map((function(e){e.id==t.id&&(e.showDelect=!1)}))},deep:!0},"$store.state.homePageShrink":{handler:function(t){this.shrinkDiv=t},deep:!0},"$store.state.addCaseId":{handler:function(t){console.log(t),this.getTextCase(t.id)},deep:!0},"$store.state.editId":{handler:function(t){this.testCaseList.map((function(t){t.showDelect=!1})),this.getTextCase(t)},deep:!0},"$store.state.homeSelectValue":{handler:function(t){for(var e in this.projectList=t,this.projectList)this.projectList[e].showDelect=!1},deep:!0},"$store.state.deleteActuatorBar":{handler:function(t){var e=this;this.projectList.map((function(s,i){s.id==t.id&&(e.projectList[i].showDelect=!1,e.firstOrSecond="first1",e.$nextTick((function(){e.firstOrSecond="first"})))}))},deep:!0}},mounted:function(){"/addCase"==this.$route.path?this.showCasePie=!0:this.showCasePie=!1},methods:{addCaseBtn:function(){this.$store.dispatch("changeAddCaseStatusAct",{num:this.$store.state.addCaseStatus.num})},getTextCase:function(t){var e=this;this.$http.queryAllTestCases(this.$store.state.projectId.id,{pageNum:1,pageSize:9999}).then((function(s){var i=s.data.data.records,a=[];e.testCaseList.map((function(t){t.showDelect&&a.push(t.id)})),i.map((function(t){t.showDelect=!1})),(t||a.length>0)&&(a.push(t),i.map((function(t){a.map((function(e){t.id==e&&(t.showDelect=!0)}))}))),e.testCaseList=i})).catch((function(t){}))},shrink:function(){this.shrinkDiv=!this.shrinkDiv,this.$store.dispatch("changeShrinkDivAct",this.shrinkDiv)},changePie:function(t){var e=this;this.firstOrSecond=t,"first"==t?(this.showSecondIcon=!1,setTimeout((function(){e.showFirstIcon=!0}),300)):(this.showFirstIcon=!1,setTimeout((function(){e.showSecondIcon=!0}),300))},closeDialog:function(){this.openAddProjectDialog=!1,this.projectName=""},selectItem:function(t){"./addBehavior"==this.$store.state.homeSelectPath?(this.projectList.map((function(t){t.showDelect=!1})),this.projectList[t].showDelect=!0,this.$router.push({path:this.$store.state.homeSelectPath,query:{id:this.projectList[t].id}}),this.$store.dispatch("changehomeToBehaviorDataAct",{id:this.projectList[t].id,dateTimeType:(new Date).getTime()})):"./addDynamicParams"==this.$store.state.homeSelectPath?(this.projectList.map((function(t){t.showDelect=!1})),this.projectList[t].showDelect=!0,this.$router.push({path:this.$store.state.homeSelectPath,query:Object(n["a"])({},this.projectList[t])}),this.$store.dispatch("changehomeToDynamicParamDataAct",Object(n["a"])(Object(n["a"])({},this.projectList[t]),{},{dateTimeType:(new Date).getTime()}))):"./environment"==this.$store.state.homeSelectPath?(this.projectList.map((function(t){t.showDelect=!1})),this.projectList[t].showDelect=!0,this.$store.dispatch("changehomeToEnvironmentDataAct",Object(n["a"])(Object(n["a"])({},this.projectList[t]),{},{dateTimeType:(new Date).getTime()}))):"./sqlLink"==this.$store.state.homeSelectPath?(this.projectList.map((function(t){t.showDelect=!1})),this.projectList[t].showDelect=!0,this.$store.dispatch("changehomeToSqlLinkDataAct",Object(n["a"])(Object(n["a"])({},this.projectList[t]),{},{dateTimeType:(new Date).getTime()}))):"./taskBar"==this.$store.state.homeSelectPath?(this.projectList[t].showDelect=!0,this.$store.dispatch("changeEditIdAct",this.projectList[t].id),this.$router.push({path:this.$store.state.homeSelectPath,query:Object(n["a"])({},this.projectList[t])})):"./actuator"==this.$store.state.homeSelectPath&&(this.projectList[t].showDelect=!this.projectList[t].showDelect,this.$store.dispatch("changehomeToCctuatorListDataAct",this.projectList[t]?JSON.stringify(this.projectList[t]):void 0),this.$router.push({path:this.$store.state.homeSelectPath,query:{queryData:this.projectList[t]?JSON.stringify(this.projectList[t]):void 0}}))},setParamData:function(t){},selectItem2:function(t){var e=this;this.$http.getCaseById(this.testCaseList[t].id).then((function(s){e.$set(e.testCaseList[t],"param",s.data.data),e.setParamData(e.testCaseList[t]),e.$store.dispatch("changeSelectCaseDataAct",JSON.parse(JSON.stringify(e.testCaseList[t]))),1==e.testCaseList[t].showDelect?e.testCaseList[t].showDelect=!1:e.testCaseList[t].showDelect=!0}))},editBtn:function(t){this.projectList[t].showIpt=!0,this.editName=this.projectList[t].name},getVariableByProjectId:function(){this.$http.queryAllDynamicVariables(this.$store.state.projectId.id).then((function(t){console.log(t);var e=[];t.data.data.records.map((function(t){e.push({name:t.name,remark:t.remark})})),localStorage.setItem("projectHint",JSON.stringify(e)),console.log(t)}))},getAllProject:function(){var t=this;this.$http.queryAllProject().then((function(e){var s=e.data.data;s.map((function(t){t.showIpt=!1,t.showDelect=!1})),t.projectList=s,t.selectItem(0),t.getVariableByProjectId(),t.getTextCase()}))},deleteProject:function(t){var e=this;this.$confirm("此操作将永久删除项目, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){e.$http.deleteProject(t).then((function(t){e.$message({type:"success",message:"删除成功!"}),e.getAllProject(),e.projectList[i].showIpt=!1})).catch((function(t){}))})).catch((function(){e.$message({type:"info",message:"已取消删除"})}))},editProject:function(t){var e=this;this.$http.changeProjectName({name:this.editName,id:t}).then((function(t){e.$message.success("修改成功"),e.getAllProject()}))},addProjcet:function(){var t=this;this.$http.addProjcet({name:this.projectName}).then((function(e){t.$message.success("新增成功"),t.openAddProjectDialog=!1,t.getAllProject(),t.projectName=""})).catch((function(t){}))},showEditAll:function(){this.showDetail=!this.showDetail,this.projectList.map((function(t){t.showIpt=!1}))}}}),r=c,h=(s("c104"),s("2877")),l=Object(h["a"])(r,a,o,!1,null,"25d6be38",null);e["default"]=l.exports},af86:function(t,e,s){},b0c0:function(t,e,s){var i=s("83ab"),a=s("5e77").EXISTS,o=s("e330"),n=s("9bf2").f,c=Function.prototype,r=o(c.toString),h=/^\s*function ([^ (]*)/,l=o(h.exec),d="name";i&&!a&&n(c,d,{configurable:!0,get:function(){try{return l(h,r(this))[1]}catch(t){return""}}})},c104:function(t,e,s){"use strict";s("af86")},d81d:function(t,e,s){"use strict";var i=s("23e7"),a=s("b727").map,o=s("1dde"),n=o("map");i({target:"Array",proto:!0,forced:!n},{map:function(t){return a(this,t,arguments.length>1?arguments[1]:void 0)}})},e9c4:function(t,e,s){var i=s("23e7"),a=s("da84"),o=s("d066"),n=s("2ba4"),c=s("e330"),r=s("d039"),h=a.Array,l=o("JSON","stringify"),d=c(/./.exec),u=c("".charAt),p=c("".charCodeAt),f=c("".replace),m=c(1..toString),g=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,v=/^[\uDC00-\uDFFF]$/,j=function(t,e,s){var i=u(s,e-1),a=u(s,e+1);return d(w,t)&&!d(v,a)||d(v,t)&&!d(w,i)?"\\u"+m(p(t,0),16):t},D=r((function(){return'"\\udf06\\ud834"'!==l("\udf06\ud834")||'"\\udead"'!==l("\udead")}));l&&i({target:"JSON",stat:!0,forced:D},{stringify:function(t,e,s){for(var i=0,a=arguments.length,o=h(a);i<a;i++)o[i]=arguments[i];var c=n(l,null,o);return"string"==typeof c?f(c,g,j):c}})}}]);
\ No newline at end of file
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论