分布式调度框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
60 KiB

6 years ago
webpackJsonp([2,5],{1018:function(t,e,n){"use strict";e.__esModule=!0;var r=p(n(30)),o=n(123),a=p(n(1064)),i=p(n(701)),s=p(n(1066)),u=p(n(696)),c=p(n(848)),l=p(n(750)),f=p(n(742)),d=p(n(697));function p(t){return t&&t.__esModule?t:{default:t}}e.default={name:"token-index",data:function(){return{total:null,isLoading:!1,tokenList:[],searchParams:{pageSize:10,pageNo:1,searchVal:""}}},mixins:[c.default],props:{},methods:Object.assign({},(0,o.mapActions)("user",["getTokenListP"]),{_onConditions:function(t){this.searchParams=r.default.assign(this.searchParams,t),this.searchParams.pageNo=1},_page:function(t){this.searchParams.pageNo=t},_onEdit:function(t){this._create(t)},_create:function(t){var e=this,n=this.$modal.dialog({closable:!1,showMask:!0,escClose:!0,className:"v-modal-custom",transitionName:"opacityp",render:function(r){return r(s.default,{on:{onUpdate:function(){e._debounceGET("false"),n.remove()},close:function(){n.remove()}},props:{item:t}})}})},_getList:function(t){var e=this;this.isLoading=!t,this.getTokenListP(this.searchParams).then(function(t){e.tokenList=[],e.tokenList=t.totalList,e.total=t.total,e.isLoading=!1}).catch(function(t){e.isLoading=!1})}}),watch:{$route:function(t){this.searchParams.pageNo=r.default.isEmpty(t.query)?1:t.query.pageNo}},created:function(){},mounted:function(){},components:{mSecondaryMenu:f.default,mList:a.default,mListConstruction:d.default,mConditions:l.default,mSpin:i.default,mNoData:u.default}}},1019:function(t,e,n){"use strict";e.__esModule=!0;var r=n(123);e.default={name:"token-list",data:function(){return{list:[]}},props:{tokenList:Array,pageNo:Number,pageSize:Number},methods:Object.assign({},(0,r.mapActions)("user",["deleteToken"]),{_closeDelete:function(t){this.$refs["poptip-delete-"+t][0].doClose()},_delete:function(t,e){var n=this;this.deleteToken({id:t.id}).then(function(t){n.$refs["poptip-delete-"+e][0].doClose(),n.list.splice(e,1),n.$message.success(t.msg)}).catch(function(t){n.$refs["poptip-delete-"+e][0].doClose(),n.$message.error(t.msg||"")})},_edit:function(t){this.$emit("on-edit",t)}}),watch:{tokenList:function(t){var e=this;this.list=[],setTimeout(function(){e.list=t})}},created:function(){this.list=this.tokenList},mounted:function(){},components:{}}},1020:function(t,e,n){"use strict";e.__esModule=!0;var r=c(n(30)),o=c(n(228)),a=c(n(92)),i=c(n(124)),s=c(n(223)),u=c(n(224));function c(t){return t&&t.__esModule?t:{default:t}}e.default={name:"create-token",data:function(){return{store:a.default,expireTime:(0,o.default)().format("YYYY-MM-DD 23:59:59"),userId:null,disabledDate:function(t){return t.getTime()-new Date((new Date).getTime()-864e5)<0},token:"",userIdList:[],tokenLoading:!1,auth:!i.default.getAuth()}},props:{item:Object},methods:{_ok:function(){this._verification()&&this._submit()},_verification:function(){return!!this.token||(this.$message.warning("请生成Token"),!1)},_submit:function(){var t=this,e={expireTime:(0,o.default)(this.expireTime).format("YYYY-MM-DD HH:mm:ss"),userId:this.userId,token:this.token};this.item&&(e.id=this.item.id),this.$refs.popup.spinnerLoading=!0,this.store.dispatch("user/"+(this.item?"updateToken":"createToken"),e).then(function(e){t.$emit("onUpdate"),t.$message.success(e.msg),setTimeout(function(){t.$refs.popup.spinnerLoading=!1},800)}).catch(function(e){t.$message.error(e.msg||""),t.$refs.popup.spinnerLoading=!1})},_generateToken:function(){var t=this;this.tokenLoading=!0,this.store.dispatch("user/generateToken",{userId:this.userId,expireTime:this.expireTime}).then(function(e){setTimeout(function(){t.tokenLoading=!1,t.token=e},1200)}).catch(function(e){t.token="",t.$message.error(e.msg||""),t.tokenLoading=!1})},_onChange:function(){this.token=""}},watch:{},created:function(){var t=this,e=function(e){t.item?(t.expireTime=t.item.expireTime,t.userId=t.item.userId,t.token=t.item.token):t.userId=e};this.auth?this.store.dispatch("security/getUsersList").then(function(n){t.userIdList=r.default.map(n,function(t){return r.default.pick(t,["id","userName"])}),e(t.userIdList[0].id)}):e(this.store.state.user.userInfo.id)},mounted:function(
//# sourceMappingURL=2.3b16c4b.js.map