(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6fb66e82"],{1619:function(t,e,n){"use strict";function r(t,e){var n="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=a(t))||e&&t&&"number"===typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},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,s=!0,c=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){c=!0,i=t},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw i}}}}function a(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,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:a}}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 o,i=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){s=!0,o=t},f:function(){try{i||null==n.return||n.return()}finally{if(s)throw o}}}}function f(t,e){if(t){if("string"===typeof t)return p(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(t,e):void 0}}function p(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=1&&this.$refs["newTaskUploader"].uploadFiles.forEach((function(t,e){n.append("files",t.raw)})),n.append("title",this.newTask.title),n.append("description",this.newTask.description),n.append("plan_id",this.newTask.plan),console.log(this.newTask,"qian的this.newTask"),Object(i["b"])(n).then((function(e){for(var n in console.log("创建任务结果",e),t.createTaskModal=!1,console.log(t.$refs.newTaskUploader.clearFiles()),t.newTask)delete t.newTask[n];t.getTasks("","",t.softwareId,localStorage.getItem("userId"),"")}))}else this.$message.warning("请完整填写任务信息!")},checkTaskDetail:function(t){Object(i["a"])(t).then((function(t){console.log(t,"获取详情任务res")}))},getPlans:function(){var t=this;console.log(this.softwareId,"获取plan的软件id"),Object(c["e"])("","","",this.softwareId,"").then((function(e){t.plans=e,console.log("获取计划列表",e)}))},checkPerm:function(t){return Object(l["a"])(localStorage.getItem("identity"),t)}}},k=h,m=n("2877"),T=Object(m["a"])(k,r,a,!1,null,"2aabce32",null);e["default"]=T.exports},"90c2":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return i})),n.d(e,"d",(function(){return s})),n.d(e,"f",(function(){return c})),n.d(e,"e",(function(){return l}));var r=n("b775");function a(t){return Object(r["a"])({url:"/api/v1/test-tasks/",method:"POST",data:t})}function o(t){return Object(r["a"])({url:"/api/v1/test-tasks/".concat(t),method:"GET"})}function i(t){return Object(r["a"])({url:"/api/v1/test-tasks/".concat(t),method:"DELETE"})}function s(t,e){return Object(r["a"])({url:"/api/v1/test-tasks/".concat(t,"/edit"),method:"POST",data:e})}function c(t,e,n,a,o){return Object(r["a"])({url:"/api/v1/test-tasks/",method:"GET",params:{executor_id:a,title:t,state:e,software_id:n,sort:o}})}function l(t,e){return Object(r["a"])({url:"/api/v1/test-tasks/".concat(t,"/case-file/execute"),method:"POST",data:e})}},b775:function(t,e,n){"use strict";var r=n("bc3a"),a=n.n(r),o=n("5c96");n("c0d6");a.a.defaults.withCredentials=!0;var i=a.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},c24f:function(t,e,n){"use strict";n.d(e,"e",(function(){return a})),n.d(e,"d",(function(){return o})),n.d(e,"b",(function(){return i})),n.d(e,"g",(function(){return s})),n.d(e,"f",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"a",(function(){return u}));var r=n("b775");function a(t){return Object(r["a"])({url:"/api/v1/users/login",method:"POST",data:t})}function o(t){return Object(r["a"])({url:"/api/v1/group/user",method:"GET",params:{user_id:t}})}function i(t){return Object(r["a"])({url:"/api/v1/users/".concat(t),method:"GET"})}function s(t,e){return Object(r["a"])({url:"/api/v1/users/".concat(t,"/edit"),method:"POST",data:e})}function c(t){return Object(r["a"])({url:"/api/v1/users/",method:"POST",data:t})}function l(){return Object(r["a"])({url:"/api/v1/users/",method:"GET",params:{username:"",identify:"",is_login:"",sort:""}})}function u(){return Object(r["a"])({url:"/api/v1/users/export",method:"GET"})}},e350:function(t,e,n){"use strict";function r(t,e){var n=a[t];return n.includes(e)}n.d(e,"a",(function(){return r}));var a=[["CHECK","EDIT","DELETE","CREATE","EXECUTE","DELETE","CONFIRM","EXPORT"],["CHECK","EDIT","DELETE","CREATE","EXECUTE","DELETE","CONFIRM","EXPORT"],["CHECK","EXECUTE"]]}}]);