|
|
webpackJsonp([27],{1083:function(t,e,n){"use strict";e.__esModule=!0;var s=r(n(1226)),i=r(n(654)),a=r(n(650));function r(t){return t&&t.__esModule?t:{default:t}}e.default={name:"password-index",components:{mSecondaryMenu:i.default,mListConstruction:a.default,mInfo:s.default}}},1084:function(t,e,n){"use strict";e.__esModule=!0;var s=r(n(36)),i=n(123);n(668);var a=r(n(224));function r(t){return t&&t.__esModule?t:{default:t}}e.default={name:"password-info",data:function(){return{spinnerLoading:!1,userPassword:"",oldUserPassword:""}},props:{},methods:Object.assign({},(0,i.mapActions)("user",["signOut"]),(0,i.mapActions)("security",["updateUser"]),{_edit:function(){var t=this;if(this._verification()){var e={id:this.userInfo.id,userName:this.userInfo.userName,userPassword:this.userPassword,tenantId:this.userInfo.tenantId,email:this.userInfo.email,phone:this.userInfo.phone};this.spinnerLoading=!0,this.updateUser(e).then(function(e){t.$message.success(e.msg),setTimeout(function(){t.spinnerLoading=!1,t.signOut()},1500)}).catch(function(e){t.$message.error(e.msg||"")})}},_verification:function(){var t=new RegExp("[\\u4E00-\\u9FFF]+","g");return t.test(this.userPassword)?(this.$message.warning(""+s.default.$t("密码不能为中文")),!1):this.userPassword?this.userPassword.length<6||this.userPassword.length>22?(this.$message.warning(""+s.default.$t("请输入密码(6-22)字符密码")),!1):t.test(this.oldUserPassword)?(this.$message.warning(""+s.default.$t("确认密码不能为中文")),!1):this.oldUserPassword?this.oldUserPassword.length<6||this.oldUserPassword.length>22?(this.$message.warning(""+s.default.$t("请输入确认密码(6-22)字符密码")),!1):this.userPassword===this.oldUserPassword||(this.$message.warning(""+s.default.$t("密码与确认密码不一致,请重新确认")),!1):(this.$message.warning(""+s.default.$t("请输入确认密码(6-22)字符密码")),!1):(this.$message.warning(""+s.default.$t("请输入密码(6-22)字符密码")),!1)}}),computed:Object.assign({},(0,i.mapState)("user",["userInfo"])),components:{mListBoxF:a.default}}},1226:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(1084),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(1229);var o=function(t){n(1227)},u=n(27)(i.a,r.a,!1,o,null,null);e.default=u.exports},1227:function(t,e,n){var s=n(1228);"string"==typeof s&&(s=[[t.i,s,""]]),s.locals&&(t.exports=s.locals);n(35)("6b0da815",s,!0,{})},1228:function(t,e,n){(t.exports=n(34)(!1)).push([t.i,".password-model .list-box-f{margin-bottom:30px}",""])},1229: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 password-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("x-input",{staticStyle:{width:"320px"},attrs:{type:"password",placeholder:t.$t("请输入密码")},model:{value:t.userPassword,callback:function(e){t.userPassword=e},expression:"userPassword"}})],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",{staticStyle:{width:"320px"},attrs:{type:"password",placeholder:t.$t("请输入确认密码")},model:{value:t.oldUserPassword,callback:function(e){t.oldUserPassword=e},expression:"oldUserPassword"}})],1)],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",loading:t.spinnerLoading},on:{click:function(e){return t._edit()}}},[t._v(t._s(t.spinnerLoading?"Loading...":"修改"))])],1)],2)],1)},staticRenderFns:[]};e.a=s},1230: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},638:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var s=n(1083),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(1230),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}},h={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("_")},m="en",p={};p[m]=h;var g=function(t){return t instanceof y},v=function(t,e,n){var s;if(!t)return null;if("string"==typeof t)p[t]&&(s=t),e&&(p[t]=e,s=t);else{var i=t.name;p[i]=t,s=i}return n||(m=s),s},$=function(t,e,n){if(g(t))return t.clone();var s=e?"string"==typeof e?{format:e,pl:n}:e:{};return s.date=t,new y(s)},_=f;_.l=v,_.i=g,_.w=function(t,e){return $(t,{locale:e.$L,utc:e.$u})};var y=function(){function d(t){this.$L=this.$L||v(t.locale,null,!0)||m,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=$(t);return this.startOf(e)<=n&&n<=this.endOf(e)},f.isAfter=function(t,e){return $(t)<this.startOf(e)},f.isBefore=function(t,e){return this.endOf(e)<$(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)},h=function(t,e){return _.w(l.toDate()[t].apply(l.toDate(),(c?[0,0,0,0]:[23,59,59,999]).slice(e)),l)},m=this.$W,p=this.$M,g=this.$D,v="set"+(this.$u?"UTC":"");switch(d){case u:return c?f(1,0):f(31,11);case r:return c?f(1,p):f(0,p+1);case a:var $=this.$locale().weekStart||0,y=(m<$?m+7:m)-$;return f(c?g-y:g+(6-y),p);case i:case"date":return h(v+"Hours",0);case s:return h(v+"Minutes",1);case n:return h(v+"Seconds",2);case e:return h(v+"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],h=c===i?this.$D+(o-this.$W):o;if(c===r||c===u){var m=this.clone().set("date",1);m.$d[f](h),m.init(),this.$d=m.set("date",Math.min(this.$D,m.daysInMonth())).toDate()}else f&&this.$d[f](h);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 h=(l={},l[n]=6e4,l[s]=36e5,l[e]=1e3,l)[d]||1,m=this.valueOf()+t*h;return _.w(m,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),h=$(t),m=6e4*(h.utcOffset()-this.utcOffset()),p=this-h,g=_.m(this,h);return g=(d={},d[u]=g/12,d[r]=g,d[o]=g/3,d[a]=(p-m)/6048e5,d[i]=(p-m)/864e5,d[s]=p/36e5,d[n]=p/6e4,d[e]=p/1e3,d)[f]||p,c?g:_.a(g)},f.daysInMonth=function(){return this.endOf(r).$D},f.$locale=function(){return p[this.$L]},f.locale=function(t,e){if(!t)return this.$L;var n=this.clone();return n.$L=v(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 $.prototype=y.prototype,$.extend=function(t,e){return t(e,y,$),$},$.locale=v,$.isDayjs=g,$.unix=function(t){return $(1e3*t)},$.en=p[m],$.Ls=p,$},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-warning",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)}}); |