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.
 
 
 
 
 
 

1 lines
5.2 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-48fead32"],{"0c85":function(t,e,r){"use strict";r.r(e);var o=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{staticClass:"content"},[r("div",{staticClass:"right_cont"},[r("div",{staticStyle:{"padding-top":"15px"}}),r("table",{staticClass:"tishi",staticStyle:{margin:"0 auto 30px"},attrs:{cellspacing:"0"}},[r("tr",[r("td",{staticStyle:{"border-bottom":"none","border-right":"none"}},[t._v("原密码")]),r("td",{staticStyle:{"border-bottom":"none"}},[r("el-input",{attrs:{type:"password","show-password":""},model:{value:t.form.original,callback:function(e){t.$set(t.form,"original",e)},expression:"form.original"}}),r("span",[t._v("*")])],1)]),r("tr",[r("td",{staticStyle:{"border-bottom":"none","border-right":"none"}},[t._v("新密码")]),r("td",{staticStyle:{"border-bottom":"none"}},[r("el-input",{attrs:{type:"password","show-password":""},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password",e)},expression:"form.password"}}),r("span",[t._v("*")])],1)]),r("tr",[r("td",{staticStyle:{"border-right":"none"}},[t._v("确认密码")]),r("td",[r("el-input",{attrs:{type:"password","show-password":""},model:{value:t.form.confirmPassword,callback:function(e){t.$set(t.form,"confirmPassword",e)},expression:"form.confirmPassword"}}),r("span",[t._v("*")])],1)])]),r("span",{staticClass:"dialog-footer",staticStyle:{"margin-left":"40%"},attrs:{slot:"footer"},slot:"footer"},[r("el-button",{staticStyle:{"margin-left":"8%",width:"100px",height:"40px"},attrs:{type:"primary"},on:{click:function(e){return t.updatePsw()}}},[t._v("确认")])],1)])])},n=[],s=r("7742"),i=(r("5f87"),function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",{attrs:{id:"index"}},[r("ul",t._l(t.imgArr,(function(t,e){return r("li",[r("img",{attrs:{src:t,alt:"图片描述"}})])})),0)])}),a=[],u=r("c82c"),c=r.n(u),l=(r("0808"),{name:"HelloWorld",data:function(){return{imgArr:["https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=2181711937,4147085500&fm=26&gp=0.jpg","https://ss1.bdstatic.com/70cFvXSh_Q1YnxGkpoWK1HF6hhy/it/u=1403641414,3238219543&fm=26&gp=0.jpg"]}},mounted:function(){var t=document.getElementById("index");new c.a(t,{})}}),d=l,f=(r("fe09"),r("2877")),p=Object(f["a"])(d,i,a,!1,null,null,null),m=p.exports,y={components:{myviewer:m},data:function(){return{checked:"",form:{confirmPassword:"",original:"",password:"",userSid:window.sessionStorage.getItem("userSid")},token:window.sessionStorage.getItem("token")}},mounted:function(){},methods:{updatePsw:function(){var t=this;this.form.password==this.form.confirmPassword?s["a"].updatePassword(this.form).then((function(e){t.$alert("密码修改成!请重新登录点击确定后退出。","修改成功",{confirmButtonText:"确定",callback:function(e){s["a"].logout({token:t.token}).then((function(e){window.sessionStorage.removeStorage("token"),window.sessionStorage.removeStorage("userSid"),t.$router.push({path:"/login"})})).catch((function(){t.$router.push({path:"/login"})}))}})})):this.$message({type:"warning",message:"两次密码输入不一致!"})},guanli:function(){this.$router.push({name:"roleAdminister"})}}},g=y,w=(r("6913"),Object(f["a"])(g,o,n,!1,null,"b97d2008",null));e["default"]=w.exports},6913:function(t,e,r){"use strict";r("b1ce")},7742:function(t,e,r){"use strict";var o=r("b775"),n=r("4328"),s=r.n(n);function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){for(var r=0;r<e.length;r++){var o=e[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,l(o.key),o)}}function c(t,e,r){return e&&u(t.prototype,e),r&&u(t,r),Object.defineProperty(t,"prototype",{writable:!1}),t}function l(t){var e=d(t,"string");return"symbol"===i(e)?e:String(e)}function d(t,e){if("object"!==i(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var o=r.call(t,e||"default");if("object"!==i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var f=function(){function t(){a(this,t)}return c(t,[{key:"login",value:function(t){return Object(o["a"])({url:"/system/user/login",method:"post",data:t})}},{key:"logout",value:function(t){return Object(o["a"])({url:"/portal/v1/sysuser/signOut",method:"post",data:s.a.stringify(t)})}},{key:"updatePassword",value:function(t){return Object(o["a"])({url:"/portal/v1/sysuser/updatePassword",method:"post",data:s.a.stringify(t)})}},{key:"reGetPwd",value:function(t){return Object(o["a"])({url:"/portal/v1/sysuser/reGetPwd",method:"post",params:t,headers:{"Content-Type":"application/x-www-form-urlencoded"}})}},{key:"selectPasswordByUserSid",value:function(t){return Object(o["a"])({url:"/portal/v1/sysuser/selectPasswordByUserSid/"+t,method:"get"})}},{key:"getOrgListByUserSid",value:function(t){return Object(o["a"])({url:"/portal/v1/sysuser/getOrgListByUserSid",method:"get",params:t})}}]),t}();e["a"]=new f},b1ce:function(t,e,r){},b973:function(t,e,r){},fe09:function(t,e,r){"use strict";r("b973")}}]);