(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-66d1fac7"],{1619:function(t,e,a){"use strict";function i(t,e){var a="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!a){if(Array.isArray(t)||(a=s(t))||e&&t&&"number"===typeof t.length){a&&(t=a);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}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 r,l=!0,o=!1;return{s:function(){a=a.call(t)},n:function(){var t=a.next();return l=t.done,t},e:function(t){o=!0,r=t},f:function(){try{l||null==a.return||a.return()}finally{if(o)throw r}}}}function s(t,e){if(t){if("string"===typeof t)return n(t,e);var a=Object.prototype.toString.call(t).slice(8,-1);return"Object"===a&&t.constructor&&(a=t.constructor.name),"Map"===a||"Set"===a?Array.from(t):"Arguments"===a||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?n(t,e):void 0}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var a=0,i=new Array(e);a=1&&this.$refs["editTaskUploader"].uploadFiles.forEach((function(t){e.append("files",t.raw)})),e.append("task_name_new",this.newTask.title),e.append("task_name_old",this.task.title),e.append("plan_id",this.task.plan_id),e.append("description",this.newTask.description),Object(r["f"])(this.taskId,e).then((function(e){t.checkTaskDetail(t.task.id),t.editTaskModal=!1}))}else this.$message.warning("计划名称不能为空!")},checkTaskDetail:function(t){var e=this;console.log("checkTaskDetail this.taskQuery",this.taskQuery),Object(r["k"])(this.taskName,"",this.planId,"","",this.softwareId,"").then((function(t){1==localStorage.getItem("identity")?e.task=t[0]:(e.task=t.filter((function(t){return t.executor_id==localStorage.getItem("userId")}))[0],console.log(e.task,"llllll")),e.state=e.task.state,e.excutorList=t,console.log(e.task,"this.task"),console.log("获取任务详情res",t)}))},jumpToPlanDetail:function(){this.$router.push("/softwareTestPlanDetail/"+this.task.plan_id)},jumpToTargetDetail:function(){this.$router.push("/softwareDetail/"+this.pageVO.software_id)},confirmExcuteTask:function(){var t=this;console.log("this.taskId",this.taskId),console.log("this.task.id",this.task.id);for(var e=new FormData,a=0,i=Object.entries(this.formLabelAlign);a=1&&this.$refs["newTaskFileUploader"].uploadFiles.forEach((function(t){e.append("files",t.raw)})),e.append("type","task_statement"),e.append("plan_id",""),e.append("task_id",this.taskId),Object(c["a"])(e).then((function(e){console.log("新增文件res",e),t.checkTaskDetail(t.taskId),t.appendFileModal=!1}))},getTaskExecState:function(t){return 2==t?3:t}}},f=d,m=(a("3edf"),a("2877")),p=Object(m["a"])(f,i,s,!1,null,"1b4213b7",null);e["default"]=p.exports},"3edf":function(t,e,a){"use strict";a("1871")},"3f5e":function(t,e,a){"use strict";a.d(e,"a",(function(){return s})),a.d(e,"b",(function(){return n}));var i=a("b775");function s(t){return Object(i["a"])({url:"/api/v1/files/",method:"POST",data:t})}function n(t,e,a,s){return Object(i["a"])({url:"/api/v1/files/",method:"DELETE",params:{type:t,plan_id:e,task_id:a,file_id:s}})}},"90c2":function(t,e,a){"use strict";a.d(e,"b",(function(){return s})),a.d(e,"a",(function(){return n})),a.d(e,"c",(function(){return r})),a.d(e,"d",(function(){return l})),a.d(e,"e",(function(){return o})),a.d(e,"f",(function(){return c})),a.d(e,"i",(function(){return u})),a.d(e,"j",(function(){return d})),a.d(e,"k",(function(){return f})),a.d(e,"g",(function(){return m})),a.d(e,"h",(function(){return p}));var i=a("b775");function s(t){return Object(i["a"])({url:"/api/v1/test-tasks/beidou",method:"POST",data:t})}function n(t){return Object(i["a"])({url:"/api/v1/test-tasks/".concat(t),method:"GET"})}function r(t){return Object(i["a"])({url:"/api/v1/test-tasks/".concat(t),method:"DELETE"})}function l(t){return Object(i["a"])({url:"api/v1/test-tasks/beidou/edit",method:"DELETE",data:t})}function o(t,e){return Object(i["a"])({url:"/api/v1/test-tasks/".concat(t,"/edit"),method:"POST",data:e})}function c(t,e){return Object(i["a"])({url:"/api/v1/test-tasks/beidou/edit",method:"POST",data:e})}function u(t,e,a,s,n){return Object(i["a"])({url:"/api/v1/test-tasks/",method:"GET",params:{executor_id:s,title:t,state:e,software_id:a,sort:n}})}function d(t,e,a,s){return Object(i["a"])({url:"/api/v1/test-tasks/beidou/list",method:"GET",params:{task_name:t,software_id:e,plan_id:a,sort:s}})}function f(t,e,a,s,n,r,l){return Object(i["a"])({url:"/api/v1/test-tasks/beidou/info",method:"GET",params:{task_name:t,executor_id:e,plan_id:a,state:s,sort:n,software_id:r,type:l}})}function m(t,e){return Object(i["a"])({url:"/api/v1/test-tasks/beidou/".concat(t,"/execute"),method:"POST",data:e})}function p(t){return Object(i["a"])({url:"/api/v1/test-tasks/beidou/".concat(t),method:"GET"})}},b775:function(t,e,a){"use strict";var i=a("bc3a"),s=a.n(i),n=a("5c96");a("c0d6");s.a.defaults.withCredentials=!0;var r=s.a.create({withCredentials:!0,timeout:1e5});r.interceptors.response.use((function(t){var e=t.data;return e}),(function(t){return console.log("err"+t),t.response.data.length>1e3?Object(n["Message"])({message:"服务器出错",type:"error",duration:3e3}):Object(n["Message"])({message:t.response.data,type:"error",duration:2e4}),Promise.reject(t)})),r.interceptors.request.use((function(t){var e=window.localStorage.getItem("accessToken");return e?(t.headers.accessToken=e,t):t})),e["a"]=r},c24f:function(t,e,a){"use strict";a.d(e,"e",(function(){return s})),a.d(e,"d",(function(){return n})),a.d(e,"b",(function(){return r})),a.d(e,"g",(function(){return l})),a.d(e,"f",(function(){return o})),a.d(e,"c",(function(){return c})),a.d(e,"a",(function(){return u}));var i=a("b775");function s(t){return Object(i["a"])({url:"/api/v1/users/login",method:"POST",data:t})}function n(t){return Object(i["a"])({url:"/api/v1/group/user",method:"GET",params:{user_id:t}})}function r(t){return Object(i["a"])({url:"/api/v1/users/".concat(t),method:"GET"})}function l(t,e){return Object(i["a"])({url:"/api/v1/users/".concat(t,"/edit"),method:"POST",data:e})}function o(t){return Object(i["a"])({url:"/api/v1/users/",method:"POST",data:t})}function c(){return Object(i["a"])({url:"/api/v1/users/",method:"GET",params:{username:"",identify:"",is_login:"",sort:""}})}function u(){return Object(i["a"])({url:"/api/v1/users/export",method:"GET"})}},e350:function(t,e,a){"use strict";function i(t,e){var a=s[t];return a.includes(e)}a.d(e,"a",(function(){return i}));var s=[["CHECK","EDIT","DELETE","CREATE","EXECUTE","DELETE","CONFIRM","EXPORT"],["CHECK","EDIT","DELETE","CREATE","EXECUTE","DELETE","CONFIRM","EXPORT"],["CHECK","EXECUTE"]]}}]);