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
19 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7ab4903b"],{"989e":function(e,t,a){},"9f7b":function(e,t,a){"use strict";a("d110")},acf8:function(e,t,a){"use strict";a.r(t);var o=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-tabs",{staticClass:"my-tabs",attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"用户列表",name:"roleList"}},[a("user-manage-list",{attrs:{dataObj:e.dataObj},on:{status:e.isShow,item:e.listObj}})],1)],1)],1)},i=[],r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"tab-header"},[a("el-form",{ref:"form",attrs:{inline:!0,model:e.search,"label-width":"80px"}},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-form-item",{attrs:{label:"用户名"}},[a("el-input",{attrs:{clearable:""},model:{value:e.search.userName,callback:function(t){e.$set(e.search,"userName",t)},expression:"search.userName"}})],1),a("el-form-item",{attrs:{label:"姓名"}},[a("el-input",{attrs:{clearable:""},model:{value:e.search.name,callback:function(t){e.$set(e.search,"name",t)},expression:"search.name"}})],1),a("el-form-item",{attrs:{label:"角色"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"请选择"},model:{value:e.search.roleSid,callback:function(t){e.$set(e.search,"roleSid",t)},expression:"search.roleSid"}},e._l(e.roleListAll,(function(e){return a("el-option",{key:e.sid,attrs:{label:e.name,value:e.sid}})})),1)],1),a("el-form-item",{attrs:{label:"部门"}},[a("el-input",{attrs:{clearable:""},model:{value:e.search.orgName,callback:function(t){e.$set(e.search,"orgName",t)},expression:"search.orgName"}})],1),a("el-button",{on:{click:function(t){return e.getOrgUserList(1)}}},[e._v("查询")])],1)],1)],1)],1),a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.userTable,border:""}},[a("el-table-column",{attrs:{label:"序号",width:"50px",type:"index",align:"center"}}),a("el-table-column",{attrs:{label:"操作",width:"300px",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.setRole(t.row)}}},[e._v(" 设置角色 ")]),a("el-button",{attrs:{type:"danger",size:"mini"},on:{click:function(a){return e.initPwd(t.row)}}},[e._v(" 初始化密码 ")])]}}])}),a("el-table-column",{attrs:{prop:"userName",label:"用户名",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v(e._s(t.row.userName))]}}])}),a("el-table-column",{attrs:{prop:"userType",label:"用户类型",align:"center"}}),a("el-table-column",{attrs:{prop:"name",label:"姓名",width:"120px",align:"center"}}),a("el-table-column",{attrs:{prop:"departmentName",label:"部门",align:"center"}}),a("el-table-column",{attrs:{prop:"postName",label:"岗位",align:"center"}}),a("el-table-column",{attrs:{prop:"isEnable",label:"是否可用",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-value":"1","inactive-value":"0","active-color":"#13ce66","inactive-color":"#ff4949"},on:{change:function(a){return e.enabledChange(a,t.row)}},model:{value:t.row.isEnable,callback:function(a){e.$set(t.row,"isEnable",a)},expression:"scope.row.isEnable"}})]}}])})],1),a("pagination",{attrs:{total:e.page.total,page:e.page.current,limit:e.page.size},on:{"update:page":function(t){return e.$set(e.page,"current",t)},"update:limit":function(t){return e.$set(e.page,"size",t)},pagination:e.pagination}}),a("el-dialog",{attrs:{title:"设置角色",visible:e.roleDialog,width:"30%"},on:{"update:visible":function(t){e.roleDialog=t}}},[a("el-form",{ref:"roleForm",attrs:{model:e.roleForm,rules:e.rules}},[a("el-form-item",{attrs:{label:"角色名称","label-width":e.formLabelWidth,prop:"roleSid"}},[a("el-select",{attrs:{placeholder:"请选择",filterable:"",multiple:""},model:{value:e.roleForm.roleSid,callback:function(t){e.$set(e.roleForm,"roleSid",t)},expression:"roleForm.roleSid"}},e._l(e.roleList,