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.5 KiB

4 months ago
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-9b45f22a"],{"38c62":function(t,e,a){"use strict";a("c2be")},"66fc":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{"margin-top":"20px"}},[t.user?a("div",[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:6,xs:24}},[a("user-card",{attrs:{user:t.user}})],1),a("el-col",{attrs:{span:18,xs:24}},[a("el-card",[a("el-tabs",{model:{value:t.activeTab,callback:function(e){t.activeTab=e},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):t._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 t=this;Object(u["b"])().then((function(e){t.user={name:e.name,username:e.username,role:t.roles.join(" | "),avatar:t.avatar}}))}}},m=d,f=a("2877"),p=Object(f["a"])(m,n,r,!1,null,null,null);e["default"]=p.exports},"6de6":function(t,e,a){},a15b:function(t,e,a){"use strict";var n=a("23e7"),r=a("44ad"),s=a("fc6a"),i=a("a640"),c=[].join,o=r!=Object,l=i("join",",");n({target:"Array",proto:!0,forced:o||!l},{join:function(t){return c.call(s(this),void 0===t?",":t)}})},a457:function(t,e,a){"use strict";a.d(e,"a",(function(){return r}));var n=a("b775");function r(t){return Object(n["a"])({url:"/api/admin/operate-log/index",method:"get",params:t})}},b263:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-form",{ref:"form",attrs:{model:t.form,rules:t.rules}},[a("el-form-item",{attrs:{label:"姓名","label-position":"right",prop:"name"}},[a("el-input",{model:{value:t.form.name,callback:function(e){t.$set(t.form,"name","string"===typeof e?e.trim():e)},expression:"form.name"}})],1),a("el-form-item",{attrs:{label:"密码","label-position":"right",prop:"password"}},[a("el-input",{attrs:{type:"password"},model:{value:t.form.password,callback:function(e){t.$set(t.form,"password","string"===typeof e?e.trim():e)},expression:"form.password"}})],1),a("el-form-item",[a("el-button",{attrs:{type:"primary"},on:{click:t.submit}},[t._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 t=this;Object(i["b"])().then((function(e){t.form.id=e.id,t.form.name=e.name,t.form.username=e.username}))},methods:{submit:function(){var t=this,e=this;this.$refs["form"].validate((function(a){if(!a)return t.$Message.error("数据校验失败"),console.log("error submit!!"),!1;Object(s["c"])(e.form).then((function(e){t.$Message.success("操作成功")})).catch((function(t){}))}))}}},o=c,l=a("2877"),u=Object(l["a"])(o,n,r,!1,null,null,null);e["default"]=u.exports},c0c1:function(t,e,a){"use strict";a("6de6")},c0c7:function(t,e,a){"use strict";a.d(e,"c",(function(){return r})),a.d(e,"b",(function(){return s})),a.d(e,"a",(function(){return i})),a.d(e,"d",(function(){return c}));var n=a("b775");function r(t){return Object(n["a"])({url:"/api/admin/admin/save",method:"post",data:t})}function s(){return Object(n["a"])({url:"/api/admin/admin",method:"get"})}function i(t){return Object(n["a"])({url:"/api/admin/admin/delete",method:"post",data:t})}function c(t){return Object(n["a"])({url:"/api/admin/admin/set-roles",method:"post",data:t})}},c2be:function(t,e,a){},cfca:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-card",{staticStyle:{"margin-bottom":"20px"}},[a("div",{staticClass:"clearfix",attrs:{slot:"