(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,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}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,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(c)throw o}}}}function a(e,t){if(e){if("string"===typeof e)return i(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)?i(e,t):void 0}}function i(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(o["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(u["c"])().then((function(t){console.log(t,"用户列表"),t.forEach((function(e,t,n){e.create_time=Object(s["c"])(e.create_time)})),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(o["b"])(n).then((function(t){e.$message.success("新建成功"),e.darkModal=!1,e.getSList()}))}else this.$message.warning("请完整填写任务信息!")},checkPerm:function(e){return Object(c["a"])(localStorage.getItem("identity"),e)},exportUser:function(){Object(u["a"])().then((function(e){window.open("/api/v1/users/export")}))}}},d=l,f=n("2877"),p=Object(f["a"])(d,r,a,!1,null,"42e580db",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=[],i={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"}}},o=i,s=n("2877"),c=Object(s["a"])(o,r,a,!1,null,null,null);t["a"]=c.exports},b775:function(e,t,n){"use strict";var r=n("bc3a"),a=n.n(r),i=n("5c96");n("c0d6");a.a.defaults.withCredentials=!0;var o=a.a.create({withCredentials:!0,timeout:1e5});o.interceptors.response.use((function(e){var t=e.data;return t}),(function(e){return console.log("err"+e),e.response.data.length>1e3?Object(i["Message"])({message:"服务器出错",type:"error",duration:3e3}):Object(i["Message"])({message:e.response.data,type:"error",duration:2e4}),Promise.reject(e)})),o.interceptors.request.use((function(e){var t=window.localStorage.getItem("accessToken");return t?(e.headers.accessToken=t,e):e})),t["a"]=o},c24f:function(e,t,n){"use strict";n.d(t,"e",(function(){return a})),n.d(t,"d",(function(){return i})),n.d(t,"b",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"f",(function(){return c})),n.d(t,"c",(function(){return u})),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 i(e){return Object(r["a"])({url:"/api/v1/group/user",method:"GET",params:{user_id:e}})}function o(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 c(e){return Object(r["a"])({url:"/api/v1/users/",method:"POST",data:e})}function u(){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"]]}}]);