(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-48594924"],{1619:function(t,e,n){"use strict";function a(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=r(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var a=0,o=function(){};return{s:o,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return l=t.done,t},e:function(t){c=!0,i=t},f:function(){try{l||null==n.return||n.return()}finally{if(c)throw i}}}}function r(t,e){if(t){if("string"===typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,a=new Array(e);n=1&&this.$refs["newPlanUploader"].uploadFiles.forEach((function(t,n){e.append("files",t.raw)})),e.append("software_id",this.newPlan.softwareId),e.append("version_number",this.newPlan.version),e.append("description",this.newPlan.description),e.append("title",this.newPlan.title),e.append("creator",localStorage.getItem("userId")),e.append("type",this.newPlan.planType),Object(l["c"])(e).then((function(e){t.getPlans()})),this.createPlanModal=!1}},getPlans:function(){var t=this;Object(l["g"])().then((function(e){t.planList=Object(o["d"])(e)}))},gotoPlan:function(t){this.$router.push("/softwareTestPlanDetail/"+t.id)},copyPlan:function(){},deletePlanFirstStep:function(t){this.deletePlanModal=!0,this.planSelected=t},deletePlanNow:function(){var t=this;Object(l["d"])(this.planSelected.id).then((function(e){t.getPlans(),t.deletePlanModal=!1}))},selectTarget:function(){var t=this;Object(i["a"])(this.newPlan.softwareId).then((function(e){t.versions=e.versions}))},checkPerm:function(t){return Object(c["a"])(localStorage.getItem("identity"),t)}}},u=s,d=n("2877"),p=Object(d["a"])(u,a,r,!1,null,"2d49a94e",null);e["default"]=p.exports},b775:function(t,e,n){"use strict";var a=n("bc3a"),r=n.n(a),o=n("5c96");n("c0d6");r.a.defaults.withCredentials=!0;var i=r.a.create({withCredentials:!0,timeout:1e5});i.interceptors.response.use((function(t){var e=t.data;return e}),(function(t){return console.log("err"+t),t.response.data.length>1e3?Object(o["Message"])({message:"服务器出错",type:"error",duration:3e3}):Object(o["Message"])({message:t.response.data,type:"error",duration:2e4}),Promise.reject(t)})),i.interceptors.request.use((function(t){var e=window.localStorage.getItem("accessToken");return e?(t.headers.accessToken=e,t):t})),e["a"]=i},e350:function(t,e,n){"use strict";function a(t,e){var n=r[t];return n.includes(e)}n.d(e,"a",(function(){return a}));var r=[["CHECK","EDIT","DELETE","CREATE","EXECUTE","DELETE","CONFIRM","EXPORT"],["CHECK","EDIT","DELETE","CREATE","EXECUTE","DELETE","CONFIRM","EXPORT"],["CHECK","EXECUTE"]]}}]);