|
|
webpackJsonp([25],{1010:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(986),i=n.n(s);for(var a in s)"default"!==a&&function(t){n.d(e,t,function(){return s[t]})}(a);var r=n(1011),o=n(27)(i.a,r.a,!1,null,null,null);e.default=o.exports},1011:function(t,e,n){"use strict";var s={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("m-popup",{ref:"popup",attrs:{"ok-text":t.item?t.$t("确认编辑"):t.$t("确认提交"),nameText:t.item?t.$t("编辑用户"):t.$t("创建用户")},on:{ok:t._ok}},[n("template",{slot:"content"},[n("div",{staticClass:"create-user-model"},[n("m-list-box-f",[n("template",{slot:"name"},[n("b",[t._v("*")]),t._v(t._s(t.$t("用户名称")))]),t._v(" "),n("template",{slot:"content"},[n("x-input",{attrs:{type:"input",placeholder:t.$t("请输入用户名称")},model:{value:t.userName,callback:function(e){t.userName=e},expression:"userName"}})],1)],2),t._v(" "),"account"!==t.router.history.current.name?n("m-list-box-f",[n("template",{slot:"name"},[n("b",[t._v("*")]),t._v(t._s(t.$t("密码")))]),t._v(" "),n("template",{slot:"content"},[n("x-input",{attrs:{type:"input",placeholder:t.$t("请输入密码")},model:{value:t.userPassword,callback:function(e){t.userPassword=e},expression:"userPassword"}})],1)],2):t._e(),t._v(" "),t.isADMIN?n("m-list-box-f",[n("template",{slot:"name"},[n("b",[t._v("*")]),t._v(t._s(t.$t("租户")))]),t._v(" "),n("template",{slot:"content"},[n("x-select",{model:{value:t.tenantId,callback:function(e){t.tenantId=e},expression:"tenantId"}},t._l(t.tenantList,function(t){return n("x-option",{key:t.id,attrs:{value:t,label:t.code}})}),1)],1)],2):t._e(),t._v(" "),n("m-list-box-f",[n("template",{slot:"name"},[n("b",[t._v("*")]),t._v(t._s(t.$t("邮件")))]),t._v(" "),n("template",{slot:"content"},[n("x-input",{attrs:{type:"input",placeholder:t.$t("请输入邮件")},model:{value:t.email,callback:function(e){t.email=e},expression:"email"}})],1)],2),t._v(" "),n("m-list-box-f",[n("template",{slot:"name"},[t._v(t._s(t.$t("手机")))]),t._v(" "),n("template",{slot:"content"},[n("x-input",{attrs:{type:"input",placeholder:t.$t("请输入手机")},model:{value:t.phone,callback:function(e){t.phone=e},expression:"phone"}})],1)],2)],1)])],2)},staticRenderFns:[]};e.a=s},1081:function(t,e,n){"use strict";e.__esModule=!0;var s=r(n(1219)),i=r(n(654)),a=r(n(650));function r(t){return t&&t.__esModule?t:{default:t}}e.default={name:"account-index",components:{mSecondaryMenu:i.default,mListConstruction:a.default,mInfo:s.default}}},1082:function(t,e,n){"use strict";e.__esModule=!0;var s=n(123);n(668);var i=r(n(224)),a=r(n(1010));function r(t){return t&&t.__esModule?t:{default:t}}e.default={name:"user-info",data:function(){return{}},props:{},methods:Object.assign({},(0,s.mapMutations)("user",["setUserInfo"]),{_edit:function(){var t=this.userInfo,e=this,n=this.$modal.dialog({closable:!1,showMask:!0,escClose:!0,className:"v-modal-custom",transitionName:"opacityp",render:function(s){return s(a.default,{on:{onUpdate:function(t){e.setUserInfo({userName:t.userName,userPassword:t.userPassword,email:t.email,phone:t.phone}),n.remove()},close:function(){}},props:{item:t}})}})}}),watch:{},created:function(){},mounted:function(){},computed:Object.assign({},(0,s.mapState)("user",["userInfo"])),components:{mListBoxF:i.default}}},1219:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(1082),i=n.n(s);for(var a in s)"default"!==a&&function(t){n.d(e,t,function(){return s[t]})}(a);var r=n(1222);var o=function(t){n(1220)},u=n(27)(i.a,r.a,!1,o,null,null);e.default=u.exports},1220:function(t,e,n){var s=n(1221);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);n(35)("1978723a",s,!0,{})},1221:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".user-info-model{padding-top:30px}.user-info-model .list-box-f .text{width:200px;font-size:14px;color:#888}.user-info-model .list-box-f .cont{width:calc(100% - 210px);margin-left:10px}.user-info-model .list-box-f .cont .sp1{font-size:14px;color:#333;display:inline-block;padding-top:6px}",""])},1222:function(t,e,n){"use strict";var s={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"user-info-model"},[n("m-list-box-f",[n("template",{slot:"name"},[t._v(t._s(t.$t("用户名称")))]),t._v(" "),n("template",{slot:"content"},[n("span",{staticClass:"sp1"},[t._v(t._s(t.userInfo.userName))])])],2),t._v(" "),n("m-list-box-f",[n("template",{slot:"name"},[t._v(t._s(t.$t("邮箱")))]),t._v(" "),n("template",{slot:"content"},[n("span",{staticClass:"sp1"},[t._v(t._s(t.userInfo.email))])])],2),t._v(" "),n("m-list-box-f",[n("template",{slot:"name"},[t._v(t._s(t.$t("手机")))]),t._v(" "),n("template",{slot:"content"},[n("span",{staticClass:"sp1"},[t._v(t._s(t.userInfo.phone))])])],2),t._v(" "),n("m-list-box-f",[n("template",{slot:"name"},[t._v(t._s(t.$t("权限")))]),t._v(" "),n("template",{slot:"content"},[n("span",{staticClass:"sp1"},[t._v(t._s("GENERAL_USER"===t.userInfo.userType?""+t.$t("普通用户"):""+t.$t("管理员")))])])],2),t._v(" "),n("m-list-box-f",{directives:[{name:"ps",rawName:"v-ps",value:["GENERAL_USER"],expression:"['GENERAL_USER']"}]},[n("template",{slot:"name"},[t._v(t._s(t.$t("租户")))]),t._v(" "),n("template",{slot:"content"},[n("span",{staticClass:"sp1"},[t._v(t._s(t.userInfo.tenantName))])])],2),t._v(" "),n("m-list-box-f",{directives:[{name:"ps",rawName:"v-ps",value:["GENERAL_USER"],expression:"['GENERAL_USER']"}]},[n("template",{slot:"name"},[t._v(t._s(t.$t("队列")))]),t._v(" "),n("template",{slot:"content"},[n("span",{staticClass:"sp1"},[t._v(t._s(t.userInfo.queueName))])])],2),t._v(" "),n("m-list-box-f",[n("template",{slot:"name"},[t._v(t._s(t.$t("创建时间")))]),t._v(" "),n("template",{slot:"content"},[n("span",{staticClass:"sp1"},[t._v(t._s(t._f("formatDate")(t.userInfo.createTime)))])])],2),t._v(" "),n("m-list-box-f",[n("template",{slot:"name"},[t._v(t._s(t.$t("更新时间")))]),t._v(" "),n("template",{slot:"content"},[n("span",{staticClass:"sp1"},[t._v(t._s(t._f("formatDate")(t.userInfo.updateTime)))])])],2),t._v(" "),n("m-list-box-f",[n("template",{slot:"name"},[t._v(" ")]),t._v(" "),n("template",{slot:"content"},[n("x-button",{attrs:{type:"primary",shape:"circle"},on:{click:function(e){return t._edit()}}},[t._v(t._s(t.$t("修改")))])],1)],2)],1)},staticRenderFns:[]};e.a=s},1223:function(t,e,n){"use strict";var s={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"main-layout-box"},[e("m-secondary-menu",{attrs:{type:"user"}}),this._v(" "),e("m-list-construction",{attrs:{title:this.$t("用户信息")}},[e("template",{slot:"content"},[e("m-info")],1)],2)],1)},staticRenderFns:[]};e.a=s},637:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(1081),i=n.n(s);for(var a in s)"default"!==a&&function(t){n.d(e,t,function(){return s[t]})}(a);var r=n(1223),o=n(27)(i.a,r.a,!1,null,null,null);e.default=o.exports},640:function(t,e,n){"use strict";e.__esModule=!0,e.default={name:"list-construction",data:function(){return{}},props:{title:String}}},641:function(t,e,n){"use strict";e.__esModule=!0;var s,i=n(659),a=(s=i)&&s.__esModule?s:{default:s};e.default={name:"secondary-menu",data:function(){return{menuList:(0,a.default)(this.type),index:0,id:this.$route.params.id,isTogHide:!1}},props:{type:String,className:String},watch:{isTogHide:function(t){var e=$(".main-layout-box");t?e.addClass("toggle"):e.removeClass("toggle")}},methods:{_toggleSubMenu:function(t){t.isOpen=!t.isOpen},_toggleMenu:function(){this.isTogHide=!this.isTogHide}},mounted:function(){}}},645:function(t,e,n){var s;s=function(){"use strict";var t="millisecond",e="second",n="minute",s="hour",i="day",a="week",r="month",o="quarter",u="year",l=/^(\d{4})-?(\d{1,2})-?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?.?(\d{1,3})?$/,c=/\[([^\]]+)]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,d=function(t,e,n){var s=String(t);return!s||s.length>=e?t:""+Array(e+1-s.length).join(n)+t},f={s:d,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),s=Math.floor(n/60),i=n%60;return(e<=0?"+":"-")+d(s,2,"0")+":"+d(i,2,"0")},m:function(t,e){var n=12*(e.year()-t.year())+(e.month()-t.month()),s=t.clone().add(n,r),i=e-s<0,a=t.clone().add(n+(i?-1:1),r);return Number(-(n+(e-s)/(i?s-a:a-s))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(l){return{M:r,y:u,w:a,d:i,h:s,m:n,s:e,ms:t,Q:o}[l]||String(l||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},p="en",h={};h[p]=m;var v=function(t){return t instanceof x},_=function(t,e,n){var s;if(!t)return null;if("string"==typeof t)h[t]&&(s=t),e&&(h[t]=e,s=t);else{var i=t.name;h[i]=t,s=i}return n||(p=s),s},g=function(t,e,n){if(v(t))return t.clone();var s=e?"string"==typeof e?{format:e,pl:n}:e:{};return s.date=t,new x(s)},$=f;$.l=_,$.i=v,$.w=function(t,e){return g(t,{locale:e.$L,utc:e.$u})};var x=function(){function d(t){this.$L=this.$L||_(t.locale,null,!0)||p,this.parse(t)}var f=d.prototype;return f.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if($.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var s=e.match(l);if(s)return n?new Date(Date.UTC(s[1],s[2]-1,s[3]||1,s[4]||0,s[5]||0,s[6]||0,s[7]||0)):new Date(s[1],s[2]-1,s[3]||1,s[4]||0,s[5]||0,s[6]||0,s[7]||0)}return new Date(e)}(t),this.init()},f.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},f.$utils=function(){return $},f.isValid=function(){return!("Invalid Date"===this.$d.toString())},f.isSame=function(t,e){var n=g(t);return this.startOf(e)<=n&&n<=this.endOf(e)},f.isAfter=function(t,e){return g(t)<this.startOf(e)},f.isBefore=function(t,e){return this.endOf(e)<g(t)},f.$g=function(t,e,n){return $.u(t)?this[e]:this.set(n,t)},f.year=function(t){return this.$g(t,"$y",u)},f.month=function(t){return this.$g(t,"$M",r)},f.day=function(t){return this.$g(t,"$W",i)},f.date=function(t){return this.$g(t,"$D","date")},f.hour=function(t){return this.$g(t,"$H",s)},f.minute=function(t){return this.$g(t,"$m",n)},f.second=function(t){return this.$g(t,"$s",e)},f.millisecond=function(e){return this.$g(e,"$ms",t)},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(t,o){var l=this,c=!!$.u(o)||o,d=$.p(t),f=function(t,e){var n=$.w(l.$u?Date.UTC(l.$y,e,t):new Date(l.$y,e,t),l);return c?n:n.endOf(i)},m=function(t,e){return $.w(l.toDate()[t].apply(l.toDate(),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),l)},p=this.$W,h=this.$M,v=this.$D,_="set"+(this.$u?"UTC":"");switch(d){case u:return c?f(1,0):f(31,11);case r:return c?f(1,h):f(0,h+1);case a:var g=this.$locale().weekStart||0,x=(p<g?p+7:p)-g;return f(c?v-x:v+(6-x),h);case i:case"date":return m(_+"Hours",0);case s:return m(_+"Minutes",1);case n:return m(_+"Seconds",2);case e:return m(_+"Milliseconds",3);default:return this.clone()}},f.endOf=function(t){return this.startOf(t,!1)},f.$set=function(a,o){var l,c=$.p(a),d="set"+(this.$u?"UTC":""),f=(l={},l[i]=d+"Date",l.date=d+"Date",l[r]=d+"Month",l[u]=d+"FullYear",l[s]=d+"Hours",l[n]=d+"Minutes",l[e]=d+"Seconds",l[t]=d+"Milliseconds",l)[c],m=c===i?this.$D+(o-this.$W):o;if(c===r||c===u){var p=this.clone().set("date",1);p.$d[f](m),p.init(),this.$d=p.set("date",Math.min(this.$D,p.daysInMonth())).toDate()}else f&&this.$d[f](m);return this.init(),this},f.set=function(t,e){return this.clone().$set(t,e)},f.get=function(t){return this[$.p(t)]()},f.add=function(t,o){var l,c=this;t=Number(t);var d=$.p(o),f=function(e){var n=new Date(c.$d);return n.setDate(n.getDate()+e*t),$.w(n,c)};if(d===r)return this.set(r,this.$M+t);if(d===u)return this.set(u,this.$y+t);if(d===i)return f(1);if(d===a)return f(7);var m=(l={},l[n]=6e4,l[s]=36e5,l[e]=1e3,l)[d]||1,p=this.valueOf()+t*m;return $.w(p,this)},f.subtract=function(t,e){return this.add(-1*t,e)},f.format=function(t){var e=this;if(!this.isValid())return"Invalid Date";var n=t||"YYYY-MM-DDTHH:mm:ssZ",s=$.z(this),i=this.$locale(),a=i.weekdays,r=i.months,o=function(t,e,n,s){return t&&t[e]||n[e].substr(0,s)},u=function(t){return $.s(e.$H%12||12,t,"0")},l={YY:String(this.$y).slice(-2),YYYY:String(this.$y),M:String(this.$M+1),MM:$.s(this.$M+1,2,"0"),MMM:o(i.monthsShort,this.$M,r,3),MMMM:r[this.$M],D:String(this.$D),DD:$.s(this.$D,2,"0"),d:String(this.$W),dd:o(i.weekdaysMin,this.$W,a,2),ddd:o(i.weekdaysShort,this.$W,a,3),dddd:a[this.$W],H:String(this.$H),HH:$.s(this.$H,2,"0"),h:u(1),hh:u(2),a:this.$H<12?"am":"pm",A:this.$H<12?"AM":"PM",m:String(this.$m),mm:$.s(this.$m,2,"0"),s:String(this.$s),ss:$.s(this.$s,2,"0"),SSS:$.s(this.$ms,3,"0"),Z:s};return n.replace(c,function(t,e){return e||l[t]||s.replace(":","")})},f.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},f.diff=function(t,l,c){var d,f=$.p(l),m=g(t),p=6e4*(m.utcOffset()-this.utcOffset()),h=this-m,v=$.m(this,m);return v=(d={},d[u]=v/12,d[r]=v,d[o]=v/3,d[a]=(h-p)/6048e5,d[i]=(h-p)/864e5,d[s]=h/36e5,d[n]=h/6e4,d[e]=h/1e3,d)[f]||h,c?v:$.a(v)},f.daysInMonth=function(){return this.endOf(r).$D},f.$locale=function(){return h[this.$L]},f.locale=function(t,e){if(!t)return this.$L;var n=this.clone();return n.$L=_(t,e,!0),n},f.clone=function(){return $.w(this.toDate(),this)},f.toDate=function(){return new Date(this.$d)},f.toJSON=function(){return this.toISOString()},f.toISOString=function(){return this.$d.toISOString()},f.toString=function(){return this.$d.toUTCString()},d}();return g.prototype=x.prototype,g.extend=function(t,e){return t(e,x,g),g},g.locale=_,g.isDayjs=v,g.unix=function(t){return g(1e3*t)},g.en=h[p],g.Ls=h,g},t.exports=s()},650:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(640),i=n.n(s);for(var a in s)"default"!==a&&function(t){n.d(e,t,function(){return s[t]})}(a);var r=n(653);var o=function(t){n(651)},u=n(27)(i.a,r.a,!1,o,null,null);e.default=u.exports},651:function(t,e,n){var s=n(652);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);n(35)("70439c42",s,!0,{})},652:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,"",""])},653:function(t,e,n){"use strict";var s={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"home-main list-construction-model"},[e("div",{staticClass:"content-title"},[e("span",[this._v(this._s(this.title))])]),this._v(" "),e("div",{staticClass:"conditions-box"},[this._t("conditions")],2),this._v(" "),e("div",{staticClass:"list-box"},[this._t("content")],2)])},staticRenderFns:[]};e.a=s},654:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(641),i=n.n(s);for(var a in s)"default"!==a&&function(t){n.d(e,t,function(){return s[t]})}(a);var r=n(660);var o=function(t){n(655)},u=n(27)(i.a,r.a,!1,o,null,null);e.default=u.exports},655:function(t,e,n){var s=n(656);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);n(35)("6a41b246",s,!0,{})},656:function(t,e,n){var s=n(124);(t.exports=n(34)(!1)).push([t.i,".main-layout-box.toggle{padding-left:0}.main-layout-box.toggle>.secondary-menu-model{left:-200px}.secondary-menu-model{position:fixed;left:0;top:0;width:200px;background:#41444c;height:100%;padding-top:80px}.secondary-menu-model .toogle-box{position:absolute;right:-1px;top:calc(50% - 50px)}.secondary-menu-model .toogle-box .tog-close{width:12px;height:102px;background:url("+s(n(657))+") no-repeat;display:inline-block}.secondary-menu-model .toogle-box .tog-open{width:12px;height:102px;background:url("+s(n(658))+") no-repeat;display:inline-block;position:absolute;right:-12px;top:0}.secondary-menu-model .leven-1 .name a{height:40px;line-height:40px;display:block;position:relative;padding-left:12px}.secondary-menu-model .leven-1 .name a>.icon{vertical-align:middle;font-size:15px;width:20px;text-align:center;color:#fff}.secondary-menu-model .leven-1 .name a>span{vertical-align:middle;padding-left:2px;font-size:14px;color:#fff}.secondary-menu-model .leven-1 .name a>.angle{position:absolute;right:12px;top:14px}.secondary-menu-model .leven-1 ul li{height:36px;line-height:36px;cursor:pointer;padding-left:39px;color:#fff}.secondary-menu-model .leven-1 ul li a{font-size:14px}.secondary-menu-model .leven-1 ul li.active{border-right:2px solid #2d8cf0;background:#2c2f39}.secondary-menu-model .leven-1 ul li.active span{font-weight:700;color:#2d8cf0}.secondary-menu-model .leven-1 .router-link-active,.secondary-menu-model .leven-1>.router-link-exact-active{background:#f0f6fb}.secondary-menu-model .leven-1 .router-link-active .name,.secondary-menu-model .leven-1>.router-link-exact-active .name{border-right:2px solid #2d8cf0;background:#2b2e38}.secondary-menu-model .leven-1 .router-link-active .name a span,.secondary-menu-model .leven-1>.router-link-exact-active .name a span{color:#2d8cf0;font-weight:700}.secondary-menu-model .leven-1 .router-link-active .name a .fa,.secondary-menu-model .leven-1>.router-link-exact-active .name a .fa{color:#2d8cf0}",""])},657:function(t,e,n){t.exports=n.p+"images/close.png?02806e641df25c1b4dbff4cb0af3984d"},658:function(t,e,n){t.exports=n.p+"images/open.png?97ec0726c7acab8a2a48282d68cea631"},659:function(t,e,n){"use strict";e.__esModule=!0;var s,i=n(36),a=(s=i)&&s.__esModule?s:{default:s};var r={projects:[{name:""+a.default.$t("项目首页"),id:1,path:"projects-index",isOpen:!0,icon:"fa-home",children:[]},{name:""+a.default.$t("工作流"),id:2,path:"",isOpen:!0,icon:"fa-gear",children:[{name:""+a.default.$t("工作流定义"),path:"definition",id:1},{name:""+a.default.$t("工作流实例"),path:"instance",id:2},{name:""+a.default.$t("任务实例"),path:"task-instance-list",id:3}]}],security:[{name:""+a.default.$t("租户管理"),id:1,path:"tenement-manage",isOpen:!0,icon:"fa-users",children:[]},{name:""+a.default.$t("用户管理"),id:1,path:"users-manage",isOpen:!0,icon:"fa-user-circle",children:[]},{name:""+a.default.$t("告警组管理"),id:1,path:"warning-groups-manage",isOpen:!0,icon:"fa-warning",children:[]},{name:""+a.default.$t("队列管理"),id:1,path:"queue-manage",isOpen:!0,icon:"fa-recycle",children:[]},{name:""+a.default.$t("服务管理"),id:1,path:"",isOpen:!0,icon:"fa-server",children:[{name:"master",path:"servers-master",id:1},{name:"worker",path:"servers-worker",id:2}]}],resource:[{name:""+a.default.$t("文件管理"),id:1,path:"file",isOpen:!0,icon:"fa-files-o",children:[],disabled:!1},{name:""+a.default.$t("UDF管理"),id:1,path:"",isOpen:!0,icon:"fa-file-text",disabled:!1,children:[{name:""+a.default.$t("资源管理"),path:"resource-udf-resource",id:1},{name:""+a.default.$t("函数管理"),path:"resource-udf-function",id:2}]}],user:[{name:""+a.default.$t("用户信息"),id:1,path:"account",isOpen:!0,icon:"fa-user",children:[],disabled:!1},{name:""+a.default.$t("修改密码"),id:1,path:"password",isOpen:!0,icon:"fa-key",children:[],disabled:!1}]};e.default=function(t){return r[t]}},660:function(t,e,n){"use strict";var s={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"secondary-menu-model",class:t.className},[n("div",{staticClass:"toogle-box"},[t.isTogHide?t._e():n("a",{staticClass:"tog-close",attrs:{href:"javascript:"},on:{click:t._toggleMenu}}),t._v(" "),t.isTogHide?n("a",{staticClass:"tog-open",attrs:{href:"javascript:"},on:{click:t._toggleMenu}}):t._e()]),t._v(" "),t._l(t.menuList,function(e,s){return n("div",{staticClass:"leven-1"},[e.path?[n("router-link",{attrs:{to:{name:e.path}}},[n("div",{staticClass:"name",on:{click:function(n){return t._toggleSubMenu(e)}}},[n("a",{attrs:{href:"javascript:"}},[n("i",{staticClass:"fa icon",class:e.icon}),t._v(" "),n("span",[t._v(t._s(e.name))]),t._v(" "),e.children.length?n("i",{staticClass:"fa angle",class:e.isOpen?"fa-angle-down":"fa-angle-right"}):t._e()])])])]:t._e(),t._v(" "),e.path?t._e():[n("div",{staticClass:"name",on:{click:function(n){return t._toggleSubMenu(e)}}},[n("a",{attrs:{href:"javascript:"}},[n("i",{staticClass:"fa icon",class:e.icon}),t._v(" "),n("span",[t._v(t._s(e.name))]),t._v(" "),e.children.length?n("i",{staticClass:"fa angle",class:e.isOpen?"fa-angle-down":"fa-angle-right"}):t._e()])])],t._v(" "),e.isOpen&&e.children.length?n("ul",t._l(e.children,function(e,s){return n("router-link",{attrs:{to:{name:e.path},tag:"li","active-class":"active"}},[n("span",[t._v(t._s(e.name))])])}),1):t._e()],2)})],2)},staticRenderFns:[]};e.a=s},661:function(t,e,n){"use strict";e.__esModule=!0,e.formatDate=void 0;var s,i=n(645),a=(s=i)&&s.__esModule?s:{default:s};e.formatDate=function(t,e){return e=e||"YYYY-MM-DD HH:mm:ss",(0,a.default)(t).format(e)}},668:function(t,e,n){"use strict";var s,i=n(29),a=(s=i)&&s.__esModule?s:{default:s},r=n(661);a.default.filter("formatDate",r.formatDate)},986:function(t,e,n){"use strict";e.__esModule=!0;var s=l(n(28)),i=l(n(36)),a=l(n(91)),r=l(n(222)),o=l(n(223)),u=l(n(224));function l(t){return t&&t.__esModule?t:{default:t}}e.default={name:"create-user",data:function(){return{store:a.default,router:r.default,userName:"",userPassword:"",tenantId:{},email:"",phone:"",tenantList:[],isADMIN:"ADMIN_USER"===a.default.state.user.userInfo.userType&&"account"!==r.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|7|8]\d{9}$)|(^09\d{8}$)/.test(this.phone))||(this.$message.warning(""+i.default.$t("请输入正确的手机格式")),!1):(this.$message.warning(""+i.default.$t("请输入正确的邮箱格式")),!1):(this.$message.warning(""+i.default.$t("请输入邮箱")),!1):(this.$message.warning(""+i.default.$t("请输入密码")),!1):(this.$message.warning(""+i.default.$t("请输入用户名")),!1)},_getTenantList:function(){var t=this;return new Promise(function(e,n){t.store.dispatch("security/getTenantList").then(function(n){t.tenantList=s.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,phone:this.phone};this.item&&(e.id=this.item.id),this.store.dispatch("security/"+(this.item?"updateUser":"createUser"),e).then(function(n){setTimeout(function(){t.$refs.popup.spinnerLoading=!1},800),t.$emit("onUpdate",e),t.$message.success(n.msg)}).catch(function(e){t.$message.error(e.msg||""),t.$refs.popup.spinnerLoading=!1})}},watch:{},created:function(){var t=this;this.isADMIN?this._getTenantList().then(function(e){t.item&&(t.userName=t.item.userName,t.userPassword="",t.email=t.item.email,t.phone=t.item.phone,t.tenantId=s.default.filter(t.tenantList,function(e){return e.id===t.item.tenantId})[0])}):this.item&&(this.userName=this.item.userName,this.userPassword="",this.email=this.item.email,this.phone=this.item.phone,this.tenantId.id=this.item.tenantId)},mounted:function(){},components:{mPopup:o.default,mListBoxF:u.default}}}}); |