| 1 |
- "use strict";(self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[4399,2714],{64399:function(e,t,a){a.r(t),a.d(t,{default:function(){return C}});var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("basicDetails",{ref:"details",attrs:{titleText:e.mainData.accountno+"-"+e.mainData.name,oldFormPath:{edit:"HManagement/accountManage/modules"},editData:e.mainData,mainAreaData:e.mainAreaData,turnPageId:"20221031141102",delApiId:"20221031141202",idname:"userid",ownertable:"sys_users",tags:"",tabs:[1===this.mainData.usertype||0===this.mainData.usertype?"人员信息":"基本信息","团队信息","角色信息"]},on:{pageChange:e.pageChange,onEditSuccess:function(t){return e.queryMainData(e.$route.query.id)}}},[a("div",{attrs:{slot:"customOperation"},slot:"customOperation"},[e.tool.checkAuth(e.$route.name,"use")?a("useTemp",{attrs:{data:e.mainData},on:{onSuccess:e.queryMainData}}):e._e(),e.tool.checkAuth(e.$route.name,"use")?a("unuseTemp",{attrs:{data:e.mainData},on:{onSuccess:e.queryMainData}}):e._e()],1),a("div",{attrs:{slot:"slot0"},slot:"slot0"},[a("detailInfo",{attrs:{more:!0,data:e.detailInfo}})],1),a("div",{attrs:{slot:"slot1"},slot:"slot1"},[a("teamInformation")],1),a("div",{staticClass:"container normal-panel",attrs:{slot:"slot2"},slot:"slot2"},[a("tableLayout",{attrs:{layout:e.table_roleinfo,data:e.roleData,opwidth:200,custom:!1}})],1)])],1)},r=[],o=a(3336),l=a(48534),i=(a(35666),a(68309),a(69600),a(21249),a(92222),a(74916),a(15306),a(91649)),s=a(88983),u=a(28342),c=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-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:"负责的"}},[a("div",{staticStyle:{"margin-bottom":"15px"}},[a("add",{staticClass:"inline-16",on:{addSuccess:e.leaderData}})],1),a("div",{staticStyle:{"margin-top":"15px"}},[a("tableLayout",{ref:"multipleTable",attrs:{layout:e.tablecols,data:e.leader.list,opwidth:200,custom:!0,fixedName:"operation"},scopedSlots:e._u([{key:"customcol",fn:function(t){return["operation"===t.column.columnname?a("div",[a("span",[e._v(e._s(t.column.data[t.column.columnname]))])]):"editable"===t.column.columnname?a("div",[a("span",[e._v(e._s(1===t.column.data[t.column.columnname]?"是":"否"))])]):"userrole"===t.column.columnname?a("div",e._l(t.column.data.userrole,(function(n,r){return a("span",{staticStyle:{"margin-left":"10px"}},[t.column.data.userrole.length-1===r?a("span",[e._v(e._s(n.rolename))]):a("span",[e._v(e._s(n.rolename+","))])])})),0):a("p",[e._v(e._s(t.column.data[t.column.columnname]?t.column.data[t.column.columnname]:"--"))])]}},{key:"opreation",fn:function(t){return[a("el-button",{staticClass:"inline-16",attrs:{slot:"reference",type:"text",size:"mini"},on:{click:function(a){return e.onEdit(t.data)}},slot:"reference"},[e._v("设置")]),a("el-popconfirm",{attrs:{title:"确定删除该团队人员吗?"},on:{confirm:function(a){return e.onDel(t.data)}}},[a("el-button",{staticClass:"inline-16",attrs:{slot:"reference",type:"text",size:"mini"},slot:"reference"},[e._v("删除")])],1)]}}])})],1)]),a("el-tab-pane",{attrs:{label:"参与的",name:"参与的"}},[a("div",{staticStyle:{"margin-top":"15px"}},[a("tableLayout",{ref:"partakeTable",attrs:{layout:e.tablecolsPartake,data:e.partake.list,opwidth:200,custom:!0,fixedName:"operation"},scopedSlots:e._u([{key:"customcol",fn:function(t){return["operation"===t.column.columnname?a("div",[a("span",[e._v(e._s(t.column.data[t.column.columnname]))])]):"editable"===t.column.columnname?a("div",[a("span",[e._v(e._s(1===t.column.data[t.column.columnname]?"是":"否"))])]):"userrole"===t.column.columnname?a("div",e._l(t.column.data.userrole,(function(n,r){return a("span",{staticStyle:{"margin-left":"10px"}},[t.column.data.userrole.length-1===r?a("span",[e._v(e._s(n.rolename))]):a("span",[e._v(e._s(n.rolename+","))])])})),0):a("p",[e._v(e._s(t.column.data[t.column.columnname]?t.column.data[t.column.columnname]:"--"))])]}},{key:"opreation",fn:function(e){return[a("detail",{attrs:{data:e.data}})]}}])})],1)])],1),a("el-dialog",{attrs:{title:"设置",visible:e.dialogTableVisible,"append-to-body":"",width:"400px"},on:{"update:visible":function(t){e.dialogTableVisible=t}}},[a("el-radio",{attrs:{label:"1"},model:{value:e.isEdit,callback:function(t){e.isEdit=t},expression:"isEdit"}},[e._v("允许编辑")]),a("el-radio",{attrs:{label:"0"},model:{value:e.isEdit,callback:function(t){e.isEdit=t},expression:"isEdit"}},[e._v("不允许编辑")]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"small"},on:{click:function(t){e.dialogTableVisible=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.onSubmit}},[e._v("确 定")])],1)],1)],1)},d=[],m=a(62714),p=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-button",{attrs:{size:"small",type:"text"},on:{click:e.onShow}},[e._v("详 情")]),a("el-drawer",{attrs:{title:"团队成员",visible:e.drawer,size:"900px",direction:"rtl","append-to-body":"","show-close":!1},on:{"update:visible":function(t){e.drawer=t}}},[a("div",{staticClass:"drawer__panel"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-table",{attrs:{data:e.list,height:"802px",border:"",size:"mini"}},[a("el-table-column",{attrs:{label:"登录账号",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.accountno?t.row.accountno:"--"))])]}}])}),a("el-table-column",{attrs:{label:"姓名",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.name?t.row.name:"--"))])]}}])}),a("el-table-column",{attrs:{label:"角色名称",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.userrole,(function(n,r){return a("span",{staticStyle:{"margin-left":"10px"}},[t.row.userrole.length-1===r?a("span",[e._v(e._s(n.rolename))]):a("span",[e._v(e._s(n.rolename+","))])])}))}}])}),a("el-table-column",{attrs:{label:"部门",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.depname?t.row.depname:"--"))])]}}])}),a("el-table-column",{attrs:{label:"职位",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.position?t.row.position:"--"))])]}}])}),a("el-table-column",{attrs:{label:"手机号",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.phonenumber?t.row.phonenumber:"--"))])]}}])})],1)],1)],1)],1),a("div",{staticClass:"fixed__btn__panel"},[a("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(t){e.drawer=!1}}},[e._v("取 消")])],1)])],1)},f=[],h={props:["data"],name:"detail",data:function(){return{drawer:!1,form:{},rules:{},currentPage:0,total:0,list:[],param:{id:20230302174201,content:{leaderuserid:""}}}},methods:{listData:function(){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.param.content.leaderuserid=e.data.createuserid,t.next=3,e.$api.requested(e.param);case 3:a=t.sent,e.list=a.data,e.total=a.total,e.currentPage=a.pageNumber;case 7:case"end":return t.stop()}}),t)})))()},onShow:function(){this.drawer=!0,this.listData()},handleSizeChange:function(e){this.param.content.pageSize=e,this.listData()},handleCurrentChange:function(e){this.param.content.pageNumber=e,this.listData()}},mounted:function(){console.log(this.data,"data")}},b=h,v=a(43736),g=(0,v.Z)(b,p,f,!1,null,"287603fa",null),_=g.exports,w={name:"index",components:{add:m["default"],detail:_},data:function(){return{tablecols:[],tablecolsPartake:[],dialogTableVisible:!1,activeName:"负责的",radio:"1",leader:{params:{id:20230302174201,content:{leaderuserid:""}},list:[],total:0,currentPage:0},partake:{params:{id:20230302174501,content:{leaderuserid:""}},list:[],total:0,currentPage:0},row:"",isEdit:""}},methods:{leaderData:function(){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.leader.params.content.leaderuserid=e.$route.query.id,t.next=3,e.$api.requested(e.leader.params);case 3:a=t.sent,e.leader.list=a.data,setTimeout((function(){e.$nextTick((function(){e.$refs.multipleTable.$refs.table.doLayout()}))}),300);case 6:case"end":return t.stop()}}),t)})))()},partakeData:function(){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return e.partake.params.content.leaderuserid=e.$route.query.id,t.next=3,e.$api.requested(e.partake.params);case 3:a=t.sent,e.partake.list=a.data,setTimeout((function(){e.$nextTick((function(){e.$refs.partakeTable.$refs.table.doLayout()}))}),300);case 6:case"end":return t.stop()}}),t)})))()},handleClick:function(){"负责的"===this.activeName?this.leaderData():this.partakeData()},onEdit:function(e){this.row=e,this.isEdit=e.editable,1===this.isEdit?this.isEdit="1":this.isEdit="0",console.log(this.row),this.dialogTableVisible=!0},handleSizeChange:function(e){this.leader.params.content.pageSize=e,this.leaderData()},handleCurrentChange:function(e){this.leader.params.content.pageNumber=e,this.leaderData()},editClick:function(){this.editShow=!0},onSubmit:function(){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return"1"===e.isEdit?e.isEdit=1:e.isEdit=0,t.next=3,e.$api.requested({id:"20230302174301",content:{editable:e.isEdit,userid:e.row.userid,leaderuserid:e.$route.query.id}});case 3:a=t.sent,e.tool.showMessage(a,(function(){e.dialogTableVisible=!1,e.leaderData()}));case 5:case"end":return t.stop()}}),t)})))()},onDel:function(e){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return a.next=2,t.$api.requested({id:"20230302174401",content:{userid:e.userid,leaderuserid:t.$route.query.id}});case 2:n=a.sent,t.tool.showMessage(n,(function(){t.dialogTableVisible=!1,t.leaderData()}));case 4:case"end":return a.stop()}}),a)})))()}},mounted:function(){this.leaderData(),this.partakeData()},created:function(){this.tablecols=this.tool.tabelCol(this.$route.name).teamTable.tablecols,this.tablecolsPartake=this.tool.tabelCol(this.$route.name).partakeTeamTable.tablecols}},y=w,x=(0,v.Z)(y,c,d,!1,null,"0047da9e",null),k=x.exports,I={name:"detail",data:function(){return{mainData:{},mainAreaData:{},table_userinfo:[],table_hrinfo:[],table_roleinfo:[],list:[],hrmsg:[],roleData:[],accountInfo:{},detailInfo:[]}},components:{unuseTemp:i.Z,useTemp:s.Z,detailInfo:u.Z,teamInformation:k},methods:{queryMainData:function(e){var t=this;return(0,l.Z)(regeneratorRuntime.mark((function e(){var a,n,r;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,t.$api.requested({classname:"webmanage.users.users",method:"query_userMain",content:{userid:t.$route.query.id}});case 2:a=e.sent,t.mainData=a.data,n=[{accountno:a.data.accountno,phonenumber:a.data.phonenumber,usertypename:a.data.usertypename,status:a.data.status}],t.list=n,"object"===(0,o.Z)(a.data.hrmsg)&&(a.data.hrmsg.systemname=a.data.name,r=[a.data.hrmsg],t.hrmsg=r),t.roleData=a.data.userrole,t.changeDataStructure(),t.getAccountInfo();case 10:case"end":return e.stop()}}),e)})))()},getAccountInfo:function(){var e=this;return(0,l.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:if(1!==e.mainData.usertype&&0!==e.mainData.usertype){t.next=8;break}return t.next=3,e.$api.requested({classname:"webmanage.hr.hr",method:"query_hrMain",content:{hrid:e.mainData.hrmsg.hrid}});case 3:a=t.sent,e.accountInfo=a.data,console.log("企业员工",e.accountInfo),t.next=13;break;case 8:return t.next=10,e.$api.requested({classname:"webmanage.sale.agents.agents",method:"query_agentMain",content:{sa_agentsid:e.mainData.agentmsg.sa_agentsid}});case 10:a=t.sent,e.accountInfo=a.data,console.log("合作商",e.accountInfo);case 13:e.detailInfo=1===e.mainData.usertype||0===e.mainData.usertype?[{title:"基本信息",info:[{label:"登录账号",value:e.accountInfo.accountno},{label:"账号名称",value:e.accountInfo.username},{label:"账号类型",value:e.accountInfo.usertypename},{label:"授权角色",value:e.accountInfo.userrole instanceof Array?e.accountInfo.userrole.map((function(e){return e.remarks})).join(","):e.accountInfo.userrole},{label:"电话",value:""!==e.accountInfo.accountno?e.accountInfo.userphonenumber:e.accountInfo.phonenumber},{label:"办公电话",value:e.accountInfo.officetelephone},{label:"部门",value:e.accountInfo.depname},{label:"职位",value:e.accountInfo.position},{label:"是否部门负责人",value:1===e.accountInfo.isleader?"是":"否"},{label:"电子邮箱",value:e.accountInfo.email},{label:"汇报对象",value:e.accountInfo.reporthrname},{label:"身份证号",value:e.accountInfo.idcard},{label:"性别",value:e.accountInfo.sex},{label:"是否服务人员",value:1===e.accountInfo.isworker?"是":"否"}]},{title:"系统信息",info:[{label:"创建人",value:e.accountInfo.createby},{label:"创建时间",value:e.accountInfo.createdate},{label:"提交人",value:e.accountInfo.submitby},{label:"提交时间",value:e.accountInfo.submitdate}]}]:[{title:"基本信息",info:[{label:"经销商编号",value:e.accountInfo.agentnum},{label:"erp编号",value:e.accountInfo.erpagentnum},{label:"是否服务经销商",value:e.accountInfo.isservice?"是":"否"},{label:"状态",value:e.accountInfo.status},{label:"签约日期",value:e.accountInfo.signdate},{label:"经销商类型",value:e.accountInfo.type},{label:"上级经销商",value:e.accountInfo.parent_enterprisename},{label:"经销商等级",value:e.accountInfo.grade},{label:"省市县",value:"".concat(e.accountInfo.province,"-").concat(e.accountInfo.city,"-").concat(e.accountInfo.county)},{label:"详细地址",value:e.accountInfo.address},{label:"企业联系人",value:e.accountInfo.contact},{label:"联系电话",value:e.accountInfo.phonenumber},{label:"税号",value:e.accountInfo.taxno},{label:"免运费金额",value:e.accountInfo.freefreightamount},{label:"订单可退货天数",value:e.accountInfo.limitreturnday},{label:"是否订单审核可开票",value:"1"==e.accountInfo.invoicingpoint?"订单审核":"发货"},{label:"是否授权所有营销类别",value:e.accountInfo.saleclassauth?"否":"是"},{label:"创建人",value:e.accountInfo.createby},{label:"创建时间",value:e.accountInfo.createdate}]}];case 14:case"end":return t.stop()}}),t)})))()},changeDataStructure:function(){this.mainAreaData=[{label:"账号类型",value:this.mainData.usertypename},{label:"状态",value:"ACTIVE"===this.mainData.status?"启用":"INACTIVE"===this.mainData.status?"停用":"其他"},{label:"联系方式",value:this.mainData.phonenumber}],console.log(this.mainAreaData)},pageChange:function(e,t,a){this.flag=!1,a=this.$route.query.tabIndex,this.$router.replace({path:"/account_details",query:{id:e,rowindex:t,tabIndex:a}}),this.queryMainData(e)},onSuccess:function(){this.visible=!1,this.queryMainData(this.$route.query.id),this.$emit("onSuccess")}},mounted:function(){this.queryMainData(this.$route.query.id)},created:function(){this.table_userinfo=this.tool.tabelCol(this.$route.name).detailUserinfo.tablecols,this.table_hrinfo=this.tool.tabelCol(this.$route.name).detailHrInfo.tablecols,this.table_roleinfo=this.tool.tabelCol(this.$route.name).detailRoleInfo.tablecols}},D=I,S=(0,v.Z)(D,n,r,!1,null,"86ef7274",null),C=S.exports},62714:function(e,t,a){a.r(t),a.d(t,{default:function(){return c}});var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:e.onShow}},[e._v("添 加")]),a("el-drawer",{attrs:{title:"添加团队成员",visible:e.drawer,size:"900px",direction:"rtl","append-to-body":"","show-close":!1},on:{"update:visible":function(t){e.drawer=t}}},[a("div",{staticClass:"drawer__panel"},[a("el-row",{attrs:{gutter:20}},[a("el-col",{attrs:{span:24}},[a("el-input",{staticClass:"input-with-select inline-16 layout_search__panel",staticStyle:{width:"200px","margin-bottom":"20px","margin-top":"-10px"},attrs:{placeholder:"搜索","suffix-icon":e.param.content.where.condition?(e.param.content.where.condition.length,""):"el-icon-search",size:"small",clearable:""},on:{clear:function(t){return e.listData(e.param.content.pageNumber=1)}},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:e.listData(e.param.content.pageNumber=1)}},model:{value:e.param.content.where.condition,callback:function(t){e.$set(e.param.content.where,"condition",t)},expression:"param.content.where.condition"}}),a("el-table",{attrs:{data:e.list,height:"802px",border:"",size:"mini"},on:{"row-click":e.selectData}},[a("el-table-column",{attrs:{label:"登录账号",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.accountno?t.row.accountno:"--"))])]}}])}),a("el-table-column",{attrs:{label:"姓名",width:"120"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.name?t.row.name:"--"))])]}}])}),a("el-table-column",{attrs:{label:"角色名称",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return e._l(t.row.userrole,(function(n,r){return a("span",{staticStyle:{"margin-left":"10px"}},[t.row.userrole.length-1===r?a("span",[e._v(e._s(n))]):a("span",[e._v(e._s(n+","))])])}))}}])}),a("el-table-column",{attrs:{label:"部门",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.depname?t.row.depname:"--"))])]}}])}),a("el-table-column",{attrs:{label:"职位",width:"160"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.position?t.row.position:"--"))])]}}])}),a("el-table-column",{attrs:{label:"手机号",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticStyle:{"margin-left":"10px"}},[e._v(e._s(t.row.phonenumber?t.row.phonenumber:"--"))])]}}])})],1),a("div",{staticClass:"container normal-panel",staticStyle:{"text-align":"right"}},[a("el-pagination",{attrs:{background:"","current-page":e.currentPage,"page-sizes":[20,50,100,200],layout:"total,sizes, prev, pager, next, jumper",total:e.total},on:{"size-change":e.handleSizeChange,"current-change":e.handleCurrentChange}})],1)],1)],1)],1),a("div",{staticClass:"fixed__btn__panel"},[a("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(t){e.drawer=!1}}},[e._v("取 消")])],1)])],1)},r=[],o=a(48534),l=(a(35666),{props:["data"],name:"add",data:function(){return{drawer:!1,form:{},rules:{},currentPage:0,total:0,list:[],param:{id:20221102090303,content:{pageNumber:1,pageSize:20,containssub:1,isAll:1,departmentids:[],where:{condition:""}}}}},methods:{listData:function(){var e=this;return(0,o.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.requested(e.param);case 2:a=t.sent,e.list=a.data,e.total=a.total,e.currentPage=a.pageNumber;case 6:case"end":return t.stop()}}),t)})))()},onShow:function(){this.drawer=!0,this.listData()},selectData:function(e){var t=this;return(0,o.Z)(regeneratorRuntime.mark((function a(){var n;return regeneratorRuntime.wrap((function(a){while(1)switch(a.prev=a.next){case 0:return console.log(e),a.next=3,t.$api.requested({id:"20230302174301",content:{editable:1,userid:e.userid,leaderuserid:t.$route.query.id}});case 3:n=a.sent,t.tool.showMessage(n,(function(){t.drawer=!1,t.$emit("addSuccess")}));case 5:case"end":return a.stop()}}),a)})))()},handleSizeChange:function(e){this.param.content.pageSize=e,this.listData()},handleCurrentChange:function(e){this.param.content.pageNumber=e,this.listData()}}}),i=l,s=a(43736),u=(0,s.Z)(i,n,r,!1,null,"70fb5046",null),c=u.exports},91649:function(e,t,a){a.d(t,{Z:function(){return c}});var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return"ACTIVE"===e.data.status?a("div",{staticClass:"inline-16"},[a("el-popconfirm",{attrs:{title:"确定停用当前选中账号吗?"},on:{confirm:function(t){return e.stop()}}},[a("el-button",{attrs:{slot:"reference",size:"mini",type:"default"},slot:"reference"},[e._v("停 用")])],1)],1):e._e()},r=[],o=a(48534),l=(a(35666),{props:["data"],methods:{stop:function(){var e=this;return(0,o.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.requested({classname:"webmanage.users.users",method:"changeStatus",content:{userid:e.data.userid,isactive:0}});case 2:a=t.sent,e.tool.showMessage(a,(function(){e.$emit("onSuccess")}));case 4:case"end":return t.stop()}}),t)})))()}}}),i=l,s=a(43736),u=(0,s.Z)(i,n,r,!1,null,null,null),c=u.exports},88983:function(e,t,a){a.d(t,{Z:function(){return c}});var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return"INACTIVE"===e.data.status?a("div",{staticClass:"inline-16"},[a("el-popconfirm",{attrs:{title:"确定启用当前选中账号吗?"},on:{confirm:function(t){return e.start()}}},[a("el-button",{attrs:{slot:"reference",type:"default",size:"mini"},slot:"reference"},[e._v("启 用")])],1)],1):e._e()},r=[],o=a(48534),l=(a(35666),{props:["data"],methods:{start:function(){var e=this;return(0,o.Z)(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.$api.requested({classname:"webmanage.users.users",method:"changeStatus",content:{userid:e.data.userid,isactive:1}});case 2:a=t.sent,e.tool.showMessage(a,(function(){e.$emit("onSuccess")}));case 4:case"end":return t.stop()}}),t)})))()}}}),i=l,s=a(43736),u=(0,s.Z)(i,n,r,!1,null,null,null),c=u.exports},28342:function(e,t,a){a.d(t,{Z:function(){return u}});var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return e.more?a("div",e._l(e.data,(function(t,n){return a("div",{key:n,staticClass:"container"},[a("el-descriptions",{attrs:{column:3,title:t.title,labelStyle:{width:"140px",flex:"1 0 auto"},contentStyle:{width:"250px",flex:"1 0 auto"},border:""}},e._l(t.info,(function(t,n){return a("el-descriptions-item",{key:n,attrs:{label:t.label}},[e._v(e._s(t.value?t.value:"--"))])})),1)],1)})),0):a("div",[a("div",{staticClass:"container"},[a("el-descriptions",{attrs:{title:"基本信息",border:""}},e._l(e.data.baseInfo,(function(t,n){return a("el-descriptions-item",{key:n,attrs:{label:t.label}},[a("span",{style:t.style?t.style():""},[e._v(e._s(t.value?t.value:"--"))])])})),1)],1),a("div",{staticClass:"container"},[a("el-descriptions",{attrs:{title:"系统信息",border:""}},e._l(e.data.systemInfo,(function(t,n){return a("el-descriptions-item",{key:n,attrs:{label:t.label}},[e._v(e._s(t.value?t.value:"--"))])})),1)],1)])},r=[],o={name:"detailedData",props:["data","more"],data:function(){return{}},mounted:function(){},methods:{}},l=o,i=a(43736),s=(0,i.Z)(l,n,r,!1,null,"3aba0004",null),u=s.exports},69600:function(e,t,a){var n=a(82109),r=a(1702),o=a(68361),l=a(45656),i=a(9341),s=r([].join),u=o!=Object,c=i("join",",");n({target:"Array",proto:!0,forced:u||!c},{join:function(e){return s(l(this),void 0===e?",":e)}})}}]);
|