2714.64c772ee.js 4.1 KB

1
  1. "use strict";(self["webpackChunkyos_manage"]=self["webpackChunkyos_manage"]||[]).push([[2714],{62714:function(t,e,a){a.r(e),a.d(e,{default:function(){return c}});var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-button",{attrs:{size:"small",type:"primary"},on:{click:t.onShow}},[t._v("添 加")]),a("el-drawer",{attrs:{title:"添加团队成员",visible:t.drawer,size:"900px",direction:"rtl","append-to-body":"","show-close":!1},on:{"update:visible":function(e){t.drawer=e}}},[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":t.param.content.where.condition?(t.param.content.where.condition.length,""):"el-icon-search",size:"small",clearable:""},on:{clear:function(e){return t.listData(t.param.content.pageNumber=1)}},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.listData(t.param.content.pageNumber=1)}},model:{value:t.param.content.where.condition,callback:function(e){t.$set(t.param.content.where,"condition",e)},expression:"param.content.where.condition"}}),a("el-table",{attrs:{data:t.list,height:"802px",border:"",size:"mini"},on:{"row-click":t.selectData}},[a("el-table-column",{attrs:{label:"登录账号",width:"100"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticStyle:{"margin-left":"10px"}},[t._v(t._s(e.row.accountno?e.row.accountno:"--"))])]}}])}),a("el-table-column",{attrs:{label:"姓名",width:"120"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticStyle:{"margin-left":"10px"}},[t._v(t._s(e.row.name?e.row.name:"--"))])]}}])}),a("el-table-column",{attrs:{label:"角色名称",width:"200"},scopedSlots:t._u([{key:"default",fn:function(e){return t._l(e.row.userrole,(function(n,r){return a("span",{staticStyle:{"margin-left":"10px"}},[e.row.userrole.length-1===r?a("span",[t._v(t._s(n))]):a("span",[t._v(t._s(n+","))])])}))}}])}),a("el-table-column",{attrs:{label:"部门",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticStyle:{"margin-left":"10px"}},[t._v(t._s(e.row.depname?e.row.depname:"--"))])]}}])}),a("el-table-column",{attrs:{label:"职位",width:"160"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticStyle:{"margin-left":"10px"}},[t._v(t._s(e.row.position?e.row.position:"--"))])]}}])}),a("el-table-column",{attrs:{label:"手机号",width:"150"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("span",{staticStyle:{"margin-left":"10px"}},[t._v(t._s(e.row.phonenumber?e.row.phonenumber:"--"))])]}}])})],1),a("div",{staticClass:"container normal-panel",staticStyle:{"text-align":"right"}},[a("el-pagination",{attrs:{background:"","current-page":t.currentPage,"page-sizes":[20,50,100,200],layout:"total,sizes, prev, pager, next, jumper",total:t.total},on:{"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}})],1)],1)],1)],1),a("div",{staticClass:"fixed__btn__panel"},[a("el-button",{staticClass:"normal-btn-width",attrs:{size:"small"},on:{click:function(e){t.drawer=!1}}},[t._v("取 消")])],1)])],1)},r=[],s={props:["data"],name:"add",data(){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:{async listData(){const t=await this.$api.requested(this.param);this.list=t.data,this.total=t.total,this.currentPage=t.pageNumber},onShow(){this.drawer=!0,this.listData()},async selectData(t){console.log(t);const e=await this.$api.requested({id:"20230302174301",content:{editable:1,userid:t.userid,leaderuserid:this.$route.query.id}});this.tool.showMessage(e,(()=>{this.drawer=!1,this.$emit("addSuccess")}))},handleSizeChange(t){this.param.content.pageSize=t,this.listData()},handleCurrentChange(t){this.param.content.pageNumber=t,this.listData()}}},l=s,i=a(43736),o=(0,i.Z)(l,n,r,!1,null,"70fb5046",null),c=o.exports}}]);