分布式调度框架。
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
52 KiB

6 years ago
webpackJsonp([14],{1125:function(t,e,n){"use strict";e.__esModule=!0;var r=p(n(30)),o=n(123),a=p(n(1251)),i=p(n(701)),u=p(n(1253)),s=p(n(696)),c=p(n(848)),f=p(n(750)),l=p(n(697));function p(t){return t&&t.__esModule?t:{default:t}}e.default={name:"tenement-index",data:function(){return{total:null,isLoading:!0,tenementList:[],searchParams:{pageSize:10,pageNo:1,searchVal:""}}},mixins:[c.default],props:{},methods:Object.assign({},(0,o.mapActions)("security",["getTenantListP"]),{_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(u.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.getTenantListP(this.searchParams).then(function(t){e.tenementList=[],e.tenementList=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:{mList:a.default,mListConstruction:l.default,mConditions:f.default,mSpin:i.default,mNoData:s.default}}},1126:function(t,e,n){"use strict";e.__esModule=!0;var r=n(123);e.default={name:"tenement-list",data:function(){return{list:[]}},props:{tenementList:Array,pageNo:Number,pageSize:Number},methods:Object.assign({},(0,r.mapActions)("security",["deleteQueue"]),{_closeDelete:function(t){this.$refs["poptip-"+t][0].doClose()},_delete:function(t,e){var n=this;this.deleteQueue({id:t.id}).then(function(t){n.$refs["poptip-"+e][0].doClose(),n.list.splice(e,1),n.$message.success(t.msg)}).catch(function(t){n.$refs["poptip-"+e][0].doClose(),n.$message.error(t.msg||"")})},_edit:function(t){this.$emit("on-edit",t)}}),watch:{tenementList:function(t){var e=this;this.list=[],setTimeout(function(){e.list=t})}},created:function(){this.list=this.tenementList},mounted:function(){},components:{}}},1127:function(t,e,n){"use strict";e.__esModule=!0;var r=s(n(30)),o=s(n(36)),a=s(n(92)),i=s(n(223)),u=s(n(224));function s(t){return t&&t.__esModule?t:{default:t}}e.default={name:"create-tenement",data:function(){return{store:a.default,queueList:[],queueId:{},tenantCode:"",tenantName:"",desc:""}},props:{item:Object},methods:{_ok:function(){var t=this;if(this._verification()){if(this.item&&this.item.groupName===this.groupName)return void this._submit();this.store.dispatch("security/verifyName",{type:"tenant",tenantCode:this.tenantCode}).then(function(e){t._submit()}).catch(function(e){t.$message.error(e.msg||"")})}},_getQueueList:function(){var t=this;return new Promise(function(e,n){t.store.dispatch("security/getQueueList").then(function(n){t.queueList=r.default.map(n,function(t){return{id:t.id,code:t.queueName}}),t.$nextTick(function(){t.queueId=t.queueList[0]}),e()})})},_verification:function(){return this.tenantCode?!/^[0-9a-zA-Z_.-]{1,}$/.test(this.tenantCode)||r.default.startsWith(this.tenantCode,"_",0)||r.default.startsWith(this.tenantCode,".",0)?(this.$message.warning(""+o.default.$t("Please enter tenant code in English")),!1):!!this.tenantName||(this.$message.warning(""+o.default.$t("Please enter name")),!1):(this.$message.warning(""+o.default.$t("Please enter the tenant code in English")),!1)},_submit:function(){var t=this,e={tenantCode:this.tenantCode,tenantName:this.tenantName,queueId:this.queueId.id,desc:this.desc};this.item&&(e.id=this.item.id),this.$refs.popup.spinnerLoading=!0,this.store.dispatch("security/"+(this.item?"updateQueue":"createQueue"),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})}},watch:{},created:function(){var t=this;this._getQueueList().then(function(e
//# sourceMappingURL=14.10001b2.js.map