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.

2 lines
10 KiB

"use strict";(self["webpackChunkeatwhat_admin"]=self["webpackChunkeatwhat_admin"]||[]).push([[801],{3801:function(e,r,s){s.r(r),s.d(r,{default:function(){return n}});var t=function(){var e=this,r=e.$createElement,s=e._self._c||r;return s("el-card",[s("div",{staticClass:"user"},[s("div",{staticClass:"title"},[s("el-alert",{attrs:{title:"用户管理界面",type:"success",center:"",closable:!1}})],1),s("div",{staticClass:"btn"},[s("el-button",{attrs:{type:"primary",size:"small",round:"",icon:"el-icon-plus"},on:{click:function(r){e.addUserDialogVisible=!0}}},[e._v("添加用户")])],1),s("div",{staticClass:"table"},[s("el-table",{staticStyle:{width:"100%"},attrs:{data:e.user.filter((function(r){return!e.userSearch||r.userName.toLowerCase().includes(e.userSearch.toLowerCase())})),fit:"",lazy:"",stripe:!0,border:!0,"highlight-current-row":!0,"empty-text":"🥶正在努力加载中..."}},[s("el-table-column",{attrs:{label:"用户昵称",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[e._v(" "+e._s(r.row.userName||"神秘人")+" ")]}}])}),s("el-table-column",{attrs:{label:"性别",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(r){return[e._v(" "+e._s(r.row.userGend||"隐私")+" ")]}}])}),s("el-table-column",{attrs:{label:"手机账号",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[e._v(" "+e._s(r.row.userNumb||"未知")+" ")]}}])}),s("el-table-column",{attrs:{label:"喜好",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[e._v(" "+e._s(r.row.userLike||"未知")+" ")]}}])}),s("el-table-column",{attrs:{label:"住址",align:"center"},scopedSlots:e._u([{key:"default",fn:function(r){return[e._v(" "+e._s(r.row.userAdd||"未知")+" ")]}}])}),s("el-table-column",{attrs:{align:"center"},scopedSlots:e._u([{key:"header",fn:function(r){return[s("el-input",{attrs:{size:"mini",placeholder:"输入用户名称搜索"},model:{value:e.userSearch,callback:function(r){e.userSearch=r},expression:"userSearch"}})]}},{key:"default",fn:function(r){return[s("el-button",{attrs:{type:"primary",size:"mini",plain:""},on:{click:function(s){return e.showUpdateUser(r.row.userId)}}},[e._v("编辑")]),s("el-popconfirm",{staticStyle:{"margin-left":"5px"},attrs:{title:"确定删除该用户?此操作不可逆"},on:{confirm:function(s){return e.deleteUser(r.row.userId)}}},[s("el-button",{attrs:{slot:"reference",type:"danger",size:"mini",plain:""},slot:"reference"},[e._v("删除")])],1)]}}])})],1)],1)]),s("el-dialog",{attrs:{title:"添加用户",visible:e.addUserDialogVisible,width:"45%",center:!0},on:{"update:visible":function(r){e.addUserDialogVisible=r},close:e.addUserDialogClosed}},[s("el-form",{ref:"addUserFormRef",attrs:{model:e.addUserForm,"label-width":"80px",size:"small",rules:e.addUserFormRules}},[s("el-form-item",{attrs:{label:"用户昵称",prop:"userName"}},[s("el-input",{attrs:{"prefix-icon":"el-icon-user-solid",autocomplete:"off",maxlength:"8",clearable:!0},model:{value:e.addUserForm.userName,callback:function(r){e.$set(e.addUserForm,"userName",r)},expression:"addUserForm.userName"}})],1),s("el-form-item",{attrs:{label:"用户性别",prop:"userGend"}},[s("el-radio-group",{model:{value:e.addUserForm.userGend,callback:function(r){e.$set(e.addUserForm,"userGend",r)},expression:"addUserForm.userGend"}},[s("el-radio",{attrs:{label:"男"}},[e._v("男")]),s("el-radio",{attrs:{label:"女"}},[e._v("女")])],1)],1),s("el-form-item",{attrs:{label:"用户电话",prop:"userNumb"}},[s("el-input",{attrs:{autocomplete:"off","prefix-icon":"el-icon-phone",clearable:!0,maxlength:"11"},model:{value:e.addUserForm.userNumb,callback:function(r){e.$set(e.addUserForm,"userNumb",e._n(r))},expression:"addUserForm.userNumb"}})],1),s("el-form-item",{attrs:{label:"登陆密码",prop:"userPwd"}},[s("el-input",{attrs:{autocomplete:"off","prefix-icon":"el-icon-lock",clearable:!0,minlength:"6",maxlength:"13","show-password":""},model:{value:e.addUserForm.userPwd,callback:function(r){e.$set(e.addUserForm,"userPwd",r)},expression:"addUserForm.userPwd"}})],1),s("el-form-item",{attrs:{label:"<EFBFBD>
//# sourceMappingURL=801.259d5b91.js.map