webpackJsonp([12],{LmVv:function(e,t){},ZIML:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=a("4YfN"),l=a.n(i),n=a("F4+m"),o=a("t5DY"),s=a("2Hum");var r={name:"expertPage",mixins:[n.a],data:function(){return{searchForm:{hospitalCode:"",materialType:""},hospitalList:[],tableData:{loading:!1,head:[{name:"用户名",key:"loginName",sortable:!1,width:"200",fixed:!1},{name:"真实姓名",key:"userName",sortable:!1,width:"100",fixed:!1},{name:"手机号",key:"cellphone",sortable:!1,width:"200",fixed:!1},{name:"单位名称",key:"storeCount",sortable:!1,width:"150",fixed:!1},{name:"辖区",key:"storePlaceStr",sortable:!1,width:"300",fixed:!1},{name:"状态",key:"auditStatusStr",sortable:!1,width:"100",fixed:!1},{name:"注册时间",key:"auditStatusStr",sortable:!1,width:"100",fixed:!1}],body:[],option:[],condition:[]}}},mounted:function(){var e=this;Object(o.d)().then(function(t){e.hospitalList=t.respData}),this.search()},methods:{getTableData:function(){var e=this;this.tableData.loading=!0,function(e){return Object(s.a)({url:"/api/team/user/queryTeamUserPageList",method:"POST",data:e})}(l()({},this.searchForm,{pageNo:this.pageNum,pageSize:this.pageSize})).then(function(t){201==t.msg?e.dealTableResponse(t):e.$message.error(t.content)})},showSaveDialog:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"add",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";this.$refs.saveDialog.init(e,t)},auditHandler:function(e){var t=this;this.$confirm("是否审批通过？","提示",{confirmButtonText:"通过",cancelButtonText:"拒绝",distinguishCancelAndClose:!0,type:"warning"}).then(function(){t.auditData(e,2)}).catch(function(a){"cancel"===a&&t.auditData(e,3)})},auditData:function(e,t){var a=this;addOrUpdateEmergencyMedical({id:e,auditStatus:t}).then(function(e){201===e.msg?a.$message.success("操作成功！"):a.$message.error(e.content),a.search()})}}},d={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"main-page"},[a("div",{staticClass:"main-page-header"},[a("p",{staticClass:"title"},[e._v("用户管理")]),e._v(" "),a("el-form",{ref:"searchForm",attrs:{inline:!0,model:e.searchForm,size:"small"}},[a("el-form-item",{attrs:{prop:"hospitalCode",label:"单位名称"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择医院",clearable:!0},model:{value:e.searchForm.hospitalCode,callback:function(t){e.$set(e.searchForm,"hospitalCode",t)},expression:"searchForm.hospitalCode"}},e._l(e.hospitalList,function(e){return a("el-option",{key:e.id,attrs:{label:e.hospitalName,value:e.hospitalCode}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"hospitalCode",label:"角色类型"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择医院",clearable:!0},model:{value:e.searchForm.hospitalCode,callback:function(t){e.$set(e.searchForm,"hospitalCode",t)},expression:"searchForm.hospitalCode"}},e._l(e.hospitalList,function(e){return a("el-option",{key:e.id,attrs:{label:e.hospitalName,value:e.hospitalCode}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"materialType",label:"用户名"}},[a("el-input",{attrs:{placeholder:"请输入用户名"},model:{value:e.searchForm.vehicleManager,callback:function(t){e.$set(e.searchForm,"vehicleManager",t)},expression:"searchForm.vehicleManager"}})],1),e._v(" "),a("div",{staticClass:"btns"},[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:e.search}},[e._v("查询")]),e._v(" "),a("el-button",{attrs:{size:"small"},on:{click:function(t){return e.resetForm("searchForm")}}},[e._v("重置")])],1)],1)],1),e._v(" "),a("div",{staticClass:"main-page-body"},[a("div",{staticClass:"mainContent"},[a("table-mixin",{attrs:{pageSize:e.pageSize,pageNum:e.pageNum,total:e.total,pagination:e.pagination,handleSizeChange:e.handleSizeChange,handleCurrentChange:e.handleCurrentChange}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.tableData.loading,expression:"tableData.loading"}],attrs:{data:e.tableData.body},on:{"sort-change":e.handleSortChange}},[a("div",{staticClass:"noData",attrs:{slot:"empty"},slot:"empty"}),e._v(" "),a("el-table-column",{attrs:{label:"序号",type:"index","min-width":"50"}}),e._v(" "),e._l(e.tableData.head,function(e,t){return a("el-table-column",{key:t,attrs:{prop:e.key,label:e.name,align:"left",formatter:e.formatter,sortable:e.sortable,fixed:e.fixed,"min-width":e.width,"show-overflow-tooltip":!0}})}),e._v(" "),a("el-table-column",{attrs:{label:"操作",align:"left",width:"auto","min-width":"200px"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-link",{attrs:{type:"primary"},on:{click:function(a){return e.auditHandler(t.row.id)}}},[e._v("权限配置")])]}}])})],2)],1)],1)])])},staticRenderFns:[]};var c=a("C7Lr")(r,d,!1,function(e){a("LmVv")},"data-v-d901da3c",null);t.default=c.exports}});
//# sourceMappingURL=12.a7cbffbc23538b051fe8.1626919428218.js.map