(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-5cca133a","chunk-140ff0e2"],{"09e0":function(t,e,r){},1513:function(t,e,r){"use strict";r("4004")},1619:function(t,e,r){"use strict";function n(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=o(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,a=function(){};return{s:a,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},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 s,i=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return i=t.done,t},e:function(t){l=!0,s=t},f:function(){try{i||null==r.return||r.return()}finally{if(l)throw s}}}}function o(t,e){if(t){if("string"===typeof t)return a(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?a(t,e):void 0}}function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0;e--){var r=Math.floor(Math.random()*(e+1)),n=t[e];t[e]=t[r],t[r]=n}return t},getShuffledSoftwareData:function(){return this.softwareList.slice(0)},gotoSoftware:function(t,e){localStorage.setItem("softwareId",t.id),this.$router.push("/softwareInside/"+t.id)},deleteTarget:function(){var t=this;Object(s["c"])(this.deleteItem.id).then((function(e){t.deleteModal=!1,t.getSList()}))},copySoftware:function(t,e){},clickRow:function(t,e,r,n){this.$router.push("/softwareInside/"+t.id)},handleRemove:function(t,e){},handlePreview:function(t){},handleExceed:function(t,e){this.$message.warning("当前限制选择 1 个文件")},beforeRemove:function(t,e){return this.$confirm("确定移除 ".concat(t.name,"?"))},getSList:function(){var t=this;1==localStorage.getItem("identity")||0==localStorage.getItem("identity")?Object(s["e"])("","","").then((function(e){t.softwareList=Object(i["c"])(e),console.log(t.softwareList)})):Object(s["e"])(localStorage.getItem("userName"),"","").then((function(e){console.log("普通",e,localStorage.getItem("userName"),localStorage.getItem("identity")),t.softwareList=Object(i["c"])(e),console.log(t.softwareList)}))},deleteFirstStep:function(t,e){this.deleteModal=!0,this.deleteItem=t},createNewTarget:function(){var t=this;if(""!=this.newTarget.name&&""!=this.newTarget.type&&""!=this.newTarget.version)if(this.$refs["newTargetUploader"].uploadFiles.length<1)this.$message.warning("请上传文件!");else{var e,r;if(this.$refs["newTargetUploader"].uploadFiles.length>=1&&(e=this.$refs["newTargetUploader"].uploadFiles.pop(),r=e.size/1024/1024<20,!r))return this.$message.info("测试用例集文件大小不能超过20M"),this.$refs["newTargetUploader"].uploadFiles.pop(),!1;var n=new FormData;e&&n.append("file",e.raw),n.append("version",this.newTarget.version),n.append("name",this.newTarget.name),n.append("type",this.newTarget.type),Object(s["b"])(n).then((function(e){t.$message.success("新建成功"),t.darkModal=!1,t.getSList()}))}else this.$message.warning("请完整填写任务信息!")},checkPerm:function(t){return Object(l["a"])(localStorage.getItem("identity"),t)}}},d=c,u=r("2877"),f=Object(u["a"])(d,n,o,!1,null,"7f84d5b0",null);e["default"]=f.exports},7277:function(t,e,r){"use strict";r.r(e);var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"mainArea"},[r("CCard",{staticClass:"text-center welcome",attrs:{color:"","text-color":"black"}},[r("blockquote",{staticClass:"card-blockquote"},[r("h2",[t._v("欢迎使用实验室管理系统")]),r("footer",[t._v("welcome to "),r("cite",{attrs:{title:"Source Title"}},[t._v("LIMS")])])])]),r("CCard",[r("CButton",{staticClass:"text-left shadow-none card-header",attrs:{tag:"button",block:""},on:{click:function(e){t.quickPath=!t.quickPath}}},[r("CIcon",{attrs:{name:"cil-justify-center"}}),r("strong",{staticClass:"m-0"},[t._v("快捷入口")])],1),r("CCollapse",{attrs:{show:t.quickPath}},[r("CCardBody",{staticClass:"quickPathBox"},t._l(t.quickPathList,(function(e){return r("CCard",{key:e.ch,staticClass:"text-center welcome entrance",attrs:{color:e.color,"body-wrapper":"","text-color":"white"},on:{click:function(r){return t.jumpTo(e.to)}}},[r("blockquote",{staticClass:"card-blockquote"},[r("h5",[t._v(t._s(e.ch))]),r("footer",[r("cite",{attrs:{title:"Source Title"}},[t._v(t._s(e.en))]),t._v(" Management ")])])])})),1)],1)],1),r("CCard",[r("CButton",{staticClass:"text-left shadow-none card-header",attrs:{tag:"button",block:""},on:{click:function(e){t.recentTarget=!t.recentTarget}}},[r("CIcon",{attrs:{name:"cil-justify-center"}}),r("strong",{staticClass:"m-0"},[t._v("最近访问")])],1),r("CCollapse",{attrs:{show:t.recentTarget}},[r("CCardBody",[r("CListGroup",t._l(t.recentView,(function(e){return r("CListGroupItem",{staticClass:"d-flex justify-content-between align-items-center"},[t._v(" "+t._s(e.name)+" "),r("CBadge",{attrs:{color:"",shape:"pill"}},[t._v(t._s(e.time)+" ")])],1)})),1)],1)],1)],1),r("CCard",[r("CButton",{staticClass:"text-left shadow-none card-header",attrs:{tag:"button",block:""},on:{click:function(e){t.relatedNotification=!t.relatedNotification}}},[r("CIcon",{attrs:{name:"cil-justify-center"}}),r("strong",{staticClass:"m-0"},[t._v("最新动态")])],1),r("CCollapse",{attrs:{show:t.relatedNotification}},[r("CCardBody",[r("CListGroup",t._l(t.logs,(function(e){return r("CListGroupItem",{staticClass:"d-flex justify-content-between align-items-center"},[t._v(" "+t._s(e.content)+" "),r("CBadge",{attrs:{color:"",shape:"pill"}},[t._v(t._s(e.time))])],1)})),1)],1)],1)],1)],1)},o=[],a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("CChartLine",{attrs:{datasets:t.defaultDatasets,options:t.defaultOptions,labels:["Mo","Tu","We","Th","Fr","Sa","Su","Mo","Tu","We","Th","Fr","Sa","Su","Mo","Tu","We","Th","Fr","Sa","Su","Mo","Tu","We","Th","Fr","Sa","Su"]}})},s=[],i=r("f485"),l=r("52d7"),c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100;if("undefined"===typeof t)throw new TypeError("Hex color is not defined");var r,n,o,a=t.match(/^#(?:[0-9a-f]{3}){1,2}$/i);if(!a)throw new Error("".concat(t," is not a valid hex color"));return 7===t.length?(r=parseInt(t.slice(1,3),16),n=parseInt(t.slice(3,5),16),o=parseInt(t.slice(5,7),16)):(r=parseInt(t.slice(1,2),16),n=parseInt(t.slice(2,3),16),o=parseInt(t.slice(3,5),16)),"rgba(".concat(r,", ").concat(n,", ").concat(o,", ").concat(e/100,")")},d=c;function u(t,e){return Math.floor(Math.random()*(e-t+1)+t)}var f={name:"MainChartExample",components:{CChartLine:i["CChartLine"]},computed:{defaultDatasets:function(){for(var t=Object(l["a"])("success2")||"#4dbd74",e=Object(l["a"])("info")||"#20a8d8",r=Object(l["a"])("danger")||"#f86c6b",n=27,o=[],a=[],s=[],i=0;i<=n;i++)o.push(u(50,200)),a.push(u(80,100)),s.push(65);return[{label:"My First dataset",backgroundColor:d(e,10),borderColor:e,pointHoverBackgroundColor:e,borderWidth:2,data:o},{label:"My Second dataset",backgroundColor:"transparent",borderColor:t,pointHoverBackgroundColor:t,borderWidth:2,data:a},{label:"My Third dataset",backgroundColor:"transparent",borderColor:r,pointHoverBackgroundColor:r,borderWidth:1,borderDash:[8,5],data:s}]},defaultOptions:function(){return{maintainAspectRatio:!1,legend:{display:!1},scales:{xAxes:[{gridLines:{drawOnChartArea:!1}}],yAxes:[{ticks:{beginAtZero:!0,maxTicksLimit:5,stepSize:Math.ceil(50),max:250},gridLines:{display:!0}}]},elements:{point:{radius:0,hitRadius:10,hoverRadius:4,hoverBorderWidth:3}}}}}},h=f,p=r("2877"),m=Object(p["a"])(h,a,s,!1,null,null,null),C=m.exports,g=r("f236"),b=r("ed3a"),w=(r("5812"),r("b775"));function y(t,e,r,n,o,a){return Object(w["a"])({url:"/v1/log-info/",method:"GET",params:{entity_class:t,action:e,executor_username:r,executor_identify:n,sort:o,dontGet:a}})}var v=r("1619");function k(t,e){var r="undefined"!==typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=_(t))||e&&t&&"number"===typeof t.length){r&&(t=r);var n=0,o=function(){};return{s:o,n:function(){return n>=t.length?{done:!0}:{done:!1,value:t[n++]}},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 a,s=!0,i=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return s=t.done,t},e:function(t){i=!0,a=t},f:function(){try{s||null==r.return||r.return()}finally{if(i)throw a}}}}function _(t,e){if(t){if("string"===typeof t)return S(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(t,e):void 0}}function S(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r25&&t<=50?e="success":t>50&&t<=75?e="warning":t>75&&t<=100&&(e="danger"),e},jumpTo:function(t){this.$router.push(t)},checkSoftwareDetail:function(t){this.$router.push("softwareInside/"+t)},getRecentViewTarget:function(){var t=this;y("测试项目","GET",this.userName,"","","0").then((function(e){var r,n=k(e);try{for(n.s();!(r=n.n()).done;){var o=r.value,a={},s=o.entity_name;a.name=s,a.time=Object(v["b"])(o.execute_time),t.recentView.push(a)}}catch(i){n.e(i)}finally{n.f()}t.recentView=t.recentView.slice(0,5)}))},getLatestLogs:function(){var t=this;y("","","","","","1").then((function(e){var r,n=k(e);try{for(n.s();!(r=n.n()).done;){var o=r.value,a={};a.content=o.executor_username+" "+o.action+o.entity_name,a.time=Object(v["b"])(o.execute_time),t.logs.push(a)}}catch(s){n.e(s)}finally{n.f()}t.logs=t.logs.slice(0,5)}))}}},x=T,I=(r("2b56"),Object(p["a"])(x,n,o,!1,null,null,null));e["default"]=I.exports},8229:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("CCard",[r("CCardHeader",[t._t("header",(function(){return[r("CIcon",{attrs:{name:"cil-grid"}}),t._v(" "+t._s(t.caption)+" ")]}))],2),r("CCardBody",[r("CDataTable",{attrs:{hover:t.hover,striped:t.striped,border:t.border,small:t.small,fixed:t.fixed,items:t.items,fields:t.fields,"items-per-page":t.small?10:5,dark:t.dark,pagination:""},scopedSlots:t._u([{key:"status",fn:function(e){var n=e.item;return[r("td",[r("CBadge",{attrs:{color:t.getBadge(n.status)}},[t._v(t._s(n.status))])],1)]}}])})],1)],1)},o=[],a={name:"Table",props:{items:Array,fields:{type:Array,default:function(){return["username","registered","role","status"]}},caption:{type:String,default:"Table"},hover:Boolean,striped:Boolean,border:Boolean,small:Boolean,fixed:Boolean,dark:Boolean},methods:{getBadge:function(t){return"Active"===t?"success":"Inactive"===t?"secondary":"Pending"===t?"warning":"Banned"===t?"danger":"primary"}}},s=a,i=r("2877"),l=Object(i["a"])(s,n,o,!1,null,null,null);e["a"]=l.exports},b775:function(t,e,r){"use strict";var n=r("bc3a"),o=r.n(n),a=r("5c96");r("c0d6");o.a.defaults.withCredentials=!0;var s=o.a.create({baseURL:"/api",withCredentials:!0,timeout:1e5});s.interceptors.response.use((function(t){var e=t.data;return e}),(function(t){return console.log("err"+t),t.response.data.length>1e3?Object(a["Message"])({message:"服务器出错",type:"error",duration:3e3}):Object(a["Message"])({message:t.response.data,type:"error",duration:2e4}),Promise.reject(t)})),s.interceptors.request.use((function(t){var e=window.localStorage.getItem("accessToken");return e?(t.headers.accessToken=e,t):t})),e["a"]=s},e350:function(t,e,r){"use strict";function n(t,e){var r=o[t];return r.includes(e)}r.d(e,"a",(function(){return n}));var o=[["CHECK","EDIT","DELETE","CREATE","EXECUTE","DELETE","CONFIRM","EXPORT"],["CHECK","EDIT","DELETE","CREATE","EXECUTE","DELETE","CONFIRM","EXPORT"],["CHECK","EXECUTE"]]},ed3a:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("CRow",[t.noCharts?[r("CCol",{attrs:{md:"3",sm:"6"}},[r("CWidgetBrand",{attrs:{color:"facebook","right-header":"89k","right-footer":"friends","left-header":"459","left-footer":"feeds"}},[r("CIcon",{staticClass:"my-4",attrs:{name:"cib-facebook",height:"56"}})],1)],1),r("CCol",{attrs:{md:"3",sm:"6"}},[r("CWidgetBrand",{attrs:{color:"twitter","right-header":"973k","right-footer":"followers","left-header":"1.792","left-footer":"tweets"}},[r("CIcon",{staticClass:"my-4",attrs:{name:"cib-twitter",height:"56"}})],1)],1),r("CCol",{attrs:{md:"3",sm:"6"}},[r("CWidgetBrand",{attrs:{color:"linkedin","right-header":"500+","right-footer":"contracts","left-header":"292","left-footer":"feeds"}},[r("CIcon",{staticClass:"my-4",attrs:{name:"cib-linkedin",height:"56"}})],1)],1),r("CCol",{attrs:{md:"3",sm:"6"}},[r("CWidgetBrand",{attrs:{"right-header":"12","right-footer":"events","left-header":"4","left-footer":"meetings",color:"warning"}},[r("CIcon",{staticClass:"my-4",attrs:{name:"cil-calendar",height:"56"}})],1)],1)]:[r("CCol",{attrs:{md:"3",sm:"6"}},[r("CWidgetBrand",{attrs:{color:"facebook","right-header":"89k","right-footer":"friends","left-header":"459","left-footer":"feeds"}},[r("CIcon",{staticClass:"my-4",attrs:{name:"cib-facebook",height:"52"}}),r("CChartLineSimple",{staticClass:"c-chart-brand",attrs:{"background-color":"rgba(255,255,255,.1)","data-points":[65,59,84,84,51,55,40],label:"Friends",labels:"months"}})],1)],1),r("CCol",{attrs:{md:"3",sm:"6"}},[r("CWidgetBrand",{attrs:{color:"twitter","right-header":"973k","right-footer":"followers","left-header":"1.792","left-footer":"tweets"}},[r("CIcon",{staticClass:"my-4",attrs:{name:"cib-twitter",height:"52"}}),r("CChartLineSimple",{staticClass:"c-chart-brand",attrs:{"background-color":"rgba(255,255,255,.1)","data-points":[1,13,9,17,34,41,38],label:"Followers",labels:"months"}})],1)],1),r("CCol",{attrs:{md:"3",sm:"6"}},[r("CWidgetBrand",{attrs:{color:"linkedin","right-header":"500+","right-footer":"contracts","left-header":"292","left-footer":"feeds"}},[r("CIcon",{staticClass:"my-4",attrs:{name:"cib-linkedin",height:"52"}}),r("CChartLineSimple",{staticClass:"c-chart-brand",attrs:{"background-color":"rgba(255,255,255,.1)","data-points":[78,81,80,45,34,12,40],label:"Contracts",labels:"months"}})],1)],1),r("CCol",{attrs:{md:"3",sm:"6"}},[r("CWidgetBrand",{attrs:{"right-header":"12","right-footer":"events","left-header":"4","left-footer":"meetings",color:"warning"}},[r("CIcon",{staticClass:"my-4",attrs:{name:"cil-calendar",height:"52"}}),r("CChartLineSimple",{staticClass:"c-chart-brand",attrs:{"background-color":"rgba(255,255,255,.1)","data-points":[35,23,56,22,97,23,64],label:"Followers",labels:"months"}})],1)],1)]],2)},o=[],a=r("4c27"),s={name:"WidgetsBrand",components:{CChartLineSimple:a["CChartLineSimple"]},props:{noCharts:Boolean}},i=s,l=(r("1513"),r("2877")),c=Object(l["a"])(i,n,o,!1,null,"319234b8",null);e["a"]=c.exports},f236:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("CRow",[r("CCol",{attrs:{sm:"6",lg:"3"}},[r("CWidgetDropdown",{attrs:{color:"primary",header:"9.823",text:"Members online"},scopedSlots:t._u([{key:"default",fn:function(){return[r("CDropdown",{attrs:{color:"transparent p-0",placement:"bottom-end"},scopedSlots:t._u([{key:"toggler-content",fn:function(){return[r("CIcon",{attrs:{name:"cil-settings"}})]},proxy:!0}])},[r("CDropdownItem",[t._v("Action")]),r("CDropdownItem",[t._v("Another action")]),r("CDropdownItem",[t._v("Something else here...")]),r("CDropdownItem",{attrs:{disabled:""}},[t._v("Disabled action")])],1)]},proxy:!0},{key:"footer",fn:function(){return[r("CChartLineSimple",{staticClass:"mt-3 mx-3",staticStyle:{height:"70px"},attrs:{pointed:"","data-points":[65,59,84,84,51,55,40],"point-hover-background-color":"primary",label:"Members",labels:"months"}})]},proxy:!0}])})],1),r("CCol",{attrs:{sm:"6",lg:"3"}},[r("CWidgetDropdown",{attrs:{color:"info",header:"9.823",text:"Members online"},scopedSlots:t._u([{key:"default",fn:function(){return[r("CDropdown",{attrs:{color:"transparent p-0",placement:"bottom-end",caret:!1},scopedSlots:t._u([{key:"toggler-content",fn:function(){return[r("CIcon",{attrs:{name:"cil-location-pin"}})]},proxy:!0}])},[r("CDropdownItem",[t._v("Action")]),r("CDropdownItem",[t._v("Another action")]),r("CDropdownItem",[t._v("Something else here...")]),r("CDropdownItem",{attrs:{disabled:""}},[t._v("Disabled action")])],1)]},proxy:!0},{key:"footer",fn:function(){return[r("CChartLineSimple",{staticClass:"mt-3 mx-3",staticStyle:{height:"70px"},attrs:{pointed:"","data-points":[1,18,9,17,34,22,11],"point-hover-background-color":"info",options:{elements:{line:{tension:1e-5}}},label:"Members",labels:"months"}})]},proxy:!0}])})],1),r("CCol",{attrs:{sm:"6",lg:"3"}},[r("CWidgetDropdown",{attrs:{color:"warning",header:"9.823",text:"Members online"},scopedSlots:t._u([{key:"default",fn:function(){return[r("CDropdown",{attrs:{color:"transparent p-0",placement:"bottom-end"},scopedSlots:t._u([{key:"toggler-content",fn:function(){return[r("CIcon",{attrs:{name:"cil-settings"}})]},proxy:!0}])},[r("CDropdownItem",[t._v("Action")]),r("CDropdownItem",[t._v("Another action")]),r("CDropdownItem",[t._v("Something else here...")]),r("CDropdownItem",{attrs:{disabled:""}},[t._v("Disabled action")])],1)]},proxy:!0},{key:"footer",fn:function(){return[r("CChartLineSimple",{staticClass:"mt-3",staticStyle:{height:"70px"},attrs:{"background-color":"rgba(255,255,255,.2)","data-points":[78,81,80,45,34,12,40],options:{elements:{line:{borderWidth:2.5}}},"point-hover-background-color":"warning",label:"Members",labels:"months"}})]},proxy:!0}])})],1),r("CCol",{attrs:{sm:"6",lg:"3"}},[r("CWidgetDropdown",{attrs:{color:"danger",header:"9.823",text:"Members online"},scopedSlots:t._u([{key:"default",fn:function(){return[r("CDropdown",{attrs:{color:"transparent p-0",placement:"bottom-end"},scopedSlots:t._u([{key:"toggler-content",fn:function(){return[r("CIcon",{attrs:{name:"cil-settings"}})]},proxy:!0}])},[r("CDropdownItem",[t._v("Action")]),r("CDropdownItem",[t._v("Another action")]),r("CDropdownItem",[t._v("Something else here...")]),r("CDropdownItem",{attrs:{disabled:""}},[t._v("Disabled action")])],1)]},proxy:!0},{key:"footer",fn:function(){return[r("CChartBarSimple",{staticClass:"mt-3 mx-3",staticStyle:{height:"70px"},attrs:{"background-color":"rgb(250, 152, 152)",label:"Members",labels:"months"}})]},proxy:!0}])})],1)],1)},o=[],a=r("4c27"),s={name:"WidgetsDropdown",components:{CChartLineSimple:a["CChartLineSimple"],CChartBarSimple:a["CChartBarSimple"]}},i=s,l=r("2877"),c=Object(l["a"])(i,n,o,!1,null,null,null);e["a"]=c.exports}}]); //# sourceMappingURL=chunk-5cca133a.414db525.js.map