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
63 KiB
2 lines
63 KiB
6 years ago
|
webpackJsonp([8],{1016:function(t,e,n){"use strict";e.__esModule=!0;var r=a(n(30)),o=a(n(223)),i=a(n(224));function a(t){return t&&t.__esModule?t:{default:t}}e.default={name:"transfer",data:function(){return{sourceList:this.sourceListPrs,targetList:this.targetListPrs,cacheSourceList:this.sourceListPrs,cacheTargetList:this.targetListPrs,searchSourceVal:"",searchTargetVal:""}},props:{sourceListPrs:Array,targetListPrs:Array,type:Object},methods:{_ok:function(){var t=this;this.$refs.popup.spinnerLoading=!0,setTimeout(function(){t.$refs.popup.spinnerLoading=!1,t.$emit("onUpdate",r.default.map(t.targetList,function(t){return t.id}).join(","))},800)},_sourceQuery:function(){var t=this;this.sourceList=this.sourceList.filter(function(e){return e.name.indexOf(t.searchSourceVal)>-1})},_targetQuery:function(){var t=this;this.targetList=this.targetList.filter(function(e){return e.name.indexOf(t.searchTargetVal)>-1})},_ckSource:function(t){this.targetList=this.cacheTargetList,this.targetList.unshift(t),this.searchTargetVal="";var e=r.default.findIndex(this.sourceList,function(e){return t.id===e.id});this.sourceList.splice(e,1);var n=r.default.findIndex(this.cacheSourceList,function(e){return t.id===e.id});-1!==n&&this.cacheSourceList.splice(n,1)},_ckTarget:function(t){this.sourceList=this.cacheSourceList,this.sourceList.unshift(t),this.searchSourceVal="";var e=r.default.findIndex(this.targetList,function(e){return t.id===e.id});this.targetList.splice(e,1);var n=r.default.findIndex(this.cacheTargetList,function(e){return t.id===e.id});-1!==n&&this.cacheTargetList.splice(n,1)}},watch:{searchSourceVal:function(t){t?this._sourceQuery():this.sourceList=r.default.cloneDeep(this.cacheSourceList)},searchTargetVal:function(t){t?this._targetQuery():this.targetList=r.default.cloneDeep(this.cacheTargetList)}},components:{mPopup:o.default,mListBoxF:i.default}}},1017:function(t,e,n){"use strict";e.__esModule=!0;var r=c(n(30)),o=c(n(36)),i=c(n(92)),a=c(n(222)),s=c(n(223)),u=c(n(224));function c(t){return t&&t.__esModule?t:{default:t}}e.default={name:"create-user",data:function(){return{store:i.default,router:a.default,queueList:[],userName:"",userPassword:"",tenantId:{},queueName:{},email:"",phone:"",tenantList:[],isADMIN:"ADMIN_USER"===i.default.state.user.userInfo.userType&&"account"!==a.default.history.current.name}},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:"user",userName:this.userName}).then(function(e){t._submit()}).catch(function(e){t.$message.error(e.msg||"")})}},_verification:function(){return this.userName?this.userPassword||this.item?this.email?/^([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+@([a-zA-Z0-9]+[_|\_|\.]?)*[a-zA-Z0-9]+\.[a-zA-Z]{2,3}$/.test(this.email)?!(this.phone&&!/^1(3|4|5|6|7|8)\d{9}$/.test(this.phone))||(this.$message.warning(""+o.default.$t("Please enter the correct mobile phone format")),!1):(this.$message.warning(""+o.default.$t("Please enter the correct email format")),!1):(this.$message.warning(""+o.default.$t("Please enter email")),!1):(this.$message.warning(""+o.default.$t("Please enter your password")),!1):(this.$message.warning(""+o.default.$t("Please enter user name")),!1)},_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.queueName=t.queueList[0]}),e()})})},_getTenantList:function(){var t=this;return new Promise(function(e,n){t.store.dispatch("security/getTenantList").then(function(n){t.tenantList=r.default.map(n,function(t){return{id:t.id,code:t.tenantName}}),t.$nextTick(function(){t.tenantId=t.tenantList[0]}),e()})})},_submit:function(){var t=this;this.$refs.popup.spinnerLoading=!0;var e={userName:this.userName,userPassword:this.userPassword,tenantId:this.tenantId.id,email:this.email,queue:this.queueName.code,phone:this.phone};this.item&&(e.id=this.item.id),this.store.dispatch("se
|
||
|
//# sourceMappingURL=8.af1dc8f.js.map
|