(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-28e0a0ac"],{1619:function(e,t,n){"use strict";function r(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},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,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw i}}}}function a(e,t){if(e){if("string"===typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e},getShuffledSoftwareData:function(){return this.userList.slice(0)},gotoSoftware:function(e,t){localStorage.setItem("softwareId",e.id),this.$router.push("/softwareInside/"+e.id)},deleteTarget:function(){var e=this;Object(i["c"])(this.deleteItem.id).then((function(t){e.deleteModal=!1,e.getSList()}))},copySoftware:function(e,t){},clickRow:function(e,t,n,r){this.$router.push("/softwareInside/"+e.id)},handleRemove:function(e,t){},handlePreview:function(e){},handleExceed:function(e,t){this.$message.warning("当前限制选择 1 个文件")},beforeRemove:function(e,t){return this.$confirm("确定移除 ".concat(e.name,"?"))},getSList:function(){var e=this;Object(c["c"])().then((function(t){console.log(t,"用户列表"),e.userList=t}))},deleteFirstStep:function(e,t){this.deleteModal=!0,this.deleteItem=e},createNewTarget:function(){var e=this;if(""!=this.newTarget.name&&""!=this.newTarget.type&&""!=this.newTarget.version)if(this.$refs["newTargetUploader"].uploadFiles.length<1)this.$message.warning("请上传文件!");else{var t;this.$refs["newTargetUploader"].uploadFiles.length>=1&&(t=this.$refs["newTargetUploader"].uploadFiles.pop());var n=new FormData;t&&n.append("file",t.raw),n.append("version",this.newTarget.version),n.append("name",this.newTarget.name),n.append("type",this.newTarget.type),Object(i["b"])(n).then((function(t){e.$message.success("新建成功"),e.darkModal=!1,e.getSList()}))}else this.$message.warning("请完整填写任务信息!")},checkPerm:function(e){return Object(u["a"])(localStorage.getItem("identity"),e)},exportUser:function(){Object(c["a"])().then((function(e){window.open("/api/v1/users/export")}))}}},d=l,f=n("2877"),p=Object(f["a"])(d,r,a,!1,null,"2944d014",null);t["default"]=p.exports},8229:function(e,t,n){"use strict";var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("CCard",[n("CCardHeader",[e._t("header",(function(){return[n("CIcon",{attrs:{name:"cil-grid"}}),e._v(" "+e._s(e.caption)+" ")]}))],2),n("CCardBody",[n("CDataTable",{attrs:{hover:e.hover,striped:e.striped,border:e.border,small:e.small,fixed:e.fixed,items:e.items,fields:e.fields,"items-per-page":e.small?10:5,dark:e.dark,pagination:""},scopedSlots:e._u([{key:"status",fn:function(t){var r=t.item;return[n("td",[n("CBadge",{attrs:{color:e.getBadge(r.status)}},[e._v(e._s(r.status))])],1)]}}])})],1)],1)},a=[],o={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(e){return"Active"===e?"success":"Inactive"===e?"secondary":"Pending"===e?"warning":"Banned"===e?"danger":"primary"}}},i=o,s=n("2877"),u=Object(s["a"])(i,r,a,!1,null,null,null);t["a"]=u.exports},b775:function(e,t,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(e){var t=e.data;return t}),(function(e){return console.log("err"+e),e.response.data.length>1e3?Object(o["Message"])({message:"服务器出错",type:"error",duration:3e3}):Object(o["Message"])({message:e.response.data,type:"error",duration:2e4}),Promise.reject(e)})),i.interceptors.request.use((function(e){var t=window.localStorage.getItem("accessToken");return t?(e.headers.accessToken=t,e):e})),t["a"]=i},c24f:function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return o})),n.d(t,"b",(function(){return i})),n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return c})),n.d(t,"a",(function(){return l}));var r=n("b775");function a(e){return Object(r["a"])({url:"/api/v1/users/login",method:"POST",data:e})}function o(e){return Object(r["a"])({url:"/api/v1/group/user",method:"GET",params:{user_id:e}})}function i(e){return Object(r["a"])({url:"/api/v1/users/".concat(e),method:"GET"})}function s(e,t){return Object(r["a"])({url:"/api/v1/users/".concat(e,"/edit"),method:"POST",data:t})}function u(e){return Object(r["a"])({url:"/api/v1/users/",method:"POST",data:e})}function c(){return Object(r["a"])({url:"/api/v1/users/",method:"GET",params:{username:"",identify:"",is_login:"",sort:""}})}function l(){return Object(r["a"])({url:"/api/v1/users/export",method:"GET"})}},e350:function(e,t,n){"use strict";function r(e,t){var n=a[e];return n.includes(t)}n.d(t,"a",(function(){return r}));var a=[["CHECK","EDIT","DELETE","CREATE","EXECUTE","DELETE","CONFIRM","EXPORT"],["CHECK","EDIT","DELETE","CREATE","EXECUTE","DELETE","CONFIRM","EXPORT"],["CHECK","EXECUTE"]]}}]);