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 line
6.3 KiB

3 days ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0e4873fb"],{"38c62":function(e,t,a){"use strict";a("c2be")},"66fc":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticStyle:{"margin-top":"20px"}},[e.user?a("div",[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:6,xs:24}},[a("user-card",{attrs:{user:e.user}})],1),a("el-col",{attrs:{span:18,xs:24}},[a("el-card",[a("el-tabs",{model:{value:e.activeTab,callback:function(t){e.activeTab=t},expression:"activeTab"}},[a("el-tab-pane",{attrs:{label:"操作日志",name:"timeline"}},[a("timeline")],1),a("el-tab-pane",{attrs:{label:"信息修改",name:"account"}},[a("account")],1)],1)],1)],1)],1)],1):e._e()])},r=[],s=a("5530"),i=(a("a15b"),a("b0c0"),a("2f62")),c=a("cfca"),o=a("f643"),l=a("b263"),u=a("c24f"),d={name:"Profile",components:{UserCard:c["default"],Timeline:o["default"],Account:l["default"]},data:function(){return{user:{},activeTab:"timeline"}},computed:Object(s["a"])({},Object(i["b"])(["name","avatar","roles"])),created:function(){this.getUser()},methods:{getUser:function(){var e=this;Object(u["b"])().then((function(t){e.user={name:t.name,username:t.username,role:e.roles.join(" | "),avatar:e.avatar}}))}}},m=d,f=a("2877"),p=Object(f["a"])(m,n,r,!1,null,null,null);t["default"]=p.exports},"6de6":function(e,t,a){},a457:function(e,t,a){"use strict";a.d(t,"a",(function(){return r}));var n=a("b775");function r(e){return Object(n["a"])({url:"/api/admin/operate-log/index",method:"get",params:e})}},b263:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-form",{ref:"form",attrs:{model:e.form,rules:e.rules}},[a("el-form-item",{attrs:{label:"姓名","label-position":"right",prop:"name"}},[a("el-input",{model:{value:e.form.name,callback:function(t){e.$set(e.form,"name","string"===typeof t?t.trim():t)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"密码","label-position":"right",prop:"password"}},[a("el-input",{attrs:{type:"password"},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password","string"===typeof t?t.trim():t)},expression:"form.password"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:e.submit}},[e._v("保存")])],1)],1)},r=[],s=(a("b0c0"),a("c0c7")),i=a("c24f"),c={data:function(){return{form:{id:"",name:"",username:"",password:""},rules:{name:[{required:!0,message:"请输入姓名",trigger:"blur"}],password:[{required:!0,message:"请输入密码",trigger:"blur"}]}}},created:function(){var e=this;Object(i["b"])().then((function(t){e.form.id=t.id,e.form.name=t.name,e.form.username=t.username}))},methods:{submit:function(){var e=this,t=this;this.$refs["form"].validate((function(a){if(!a)return e.$Message.error("数据校验失败"),console.log("error submit!!"),!1;Object(s["c"])(t.form).then((function(t){e.$Message.success("操作成功")})).catch((function(e){}))}))}}},o=c,l=a("2877"),u=Object(l["a"])(o,n,r,!1,null,null,null);t["default"]=u.exports},c0c1:function(e,t,a){"use strict";a("6de6")},c0c7:function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"b",(function(){return s})),a.d(t,"a",(function(){return i})),a.d(t,"d",(function(){return c}));var n=a("b775");function r(e){return Object(n["a"])({url:"/api/admin/admin/save",method:"post",data:e})}function s(){return Object(n["a"])({url:"/api/admin/admin",method:"get"})}function i(e){return Object(n["a"])({url:"/api/admin/admin/delete",method:"post",data:e})}function c(e){return Object(n["a"])({url:"/api/admin/admin/set-roles",method:"post",data:e})}},c2be:function(e,t,a){},cfca:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-card",{staticStyle:{"margin-bottom":"20px"}},[a("div",{staticClass:"clearfix",attrs:{slot:"header"},slot:"header"},[a("span",[e._v("个人信息")])]),a("div",{staticClass:"user-profile"},[a("div",{staticClass:"box-center"},[a("pan-thumb",{attrs:{image:e.user.avatar,height:"100px",width:"100px",hoverable:!1}},[a("div