chunk-7b76e481.b40bfdca.js 54 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7b76e481"],{"0741":function(e,t,a){},"09f4":function(e,t,a){"use strict";a.d(t,"a",(function(){return n})),Math.easeInOutQuad=function(e,t,a,r){return e/=r/2,e<1?a/2*e*e+t:(e--,-a/2*(e*(e-2)-1)+t)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)}}();function _(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function l(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function n(e,t,a){var n=l(),s=e-n,o=20,u=0;t="undefined"===typeof t?500:t;var i=function e(){u+=o;var l=Math.easeInOutQuad(u,n,s,t);_(l),u<t?r(e):a&&"function"===typeof a&&a()};i()}},"19e9":function(e,t,a){},"1fb2":function(e,t,a){"use strict";a("0741")},2009:function(e,t,a){"use strict";a("c8bd")},5035:function(module,__webpack_exports__,__webpack_require__){"use strict";var D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("b85c"),core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("c5f6"),core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_number_constructor__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("6762"),core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("2fdb"),core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("5df3"),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_set__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("4f7f"),core_js_modules_es6_set__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_set__WEBPACK_IMPORTED_MODULE_5__),D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("2909"),D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("c7eb"),regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("96cf"),regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_8__),D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("1da1"),core_js_modules_es6_regexp_search__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("386d"),core_js_modules_es6_regexp_search__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es6_regexp_search__WEBPACK_IMPORTED_MODULE_10__),D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("5530"),D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("15fd"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("ac6a"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_13__),_components_Pagination_index__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("333d"),_utils_directivePage__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("ec8a"),_api_systemManage__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("99b4"),_helpers_deep_clone__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("be41"),_components_Tooltip_index__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("a5b0"),_utils_validate__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("61f7"),_excluded=["organIdLists","postDeptIds","deptIds","deptId"],validPhone=function(e,t,a){t?Object(_utils_validate__WEBPACK_IMPORTED_MODULE_19__["b"])(t)?a():a(new Error("请输入正确的11位手机号码")):a(new Error("请输入电话号码"))};__webpack_exports__["a"]={name:"staffManager",components:{pagination:_components_Pagination_index__WEBPACK_IMPORTED_MODULE_14__["a"],Tooltip:_components_Tooltip_index__WEBPACK_IMPORTED_MODULE_18__["a"]},data:function(){return{roleResetList:[],organList:[],tableList:[],educationList:[],deptList:[],deptSmallList:[],postList:[],educationForm:{targetUserId:""},educationViseble:!1,activeRow:null,pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},detail:null,handoverVisible:!1,roleStatus:!1,formActionTitle:"create",roleList:[],roleBaseList:[],formTitle:{create:"添加员工",update:"修改员工"},formLabelWidth:"100px",form:{realName:null,gender:null,phone:null,roleIds:[],deptId:null,organIdLists:[],postDeptIds:[{postId:null,deptIds:[]}],deptIds:[],jobNature:null,entryDate:null,contactAddress:null,postalCode:null},rules:{realName:[{required:!0,message:"请输入姓名",trigger:"blur"}],gender:[{required:!0,message:"请选择性别",trigger:"change"}],phone:[{type:"number",required:!0,validator:validPhone,trigger:"blur"},{pattern:/^1[3456789]\d{9}$/,message:"请输入正确的手机号",trigger:"blur"}],roleIds:[{type:"array",required:!0,message:"请选择分类",trigger:"change"}],organIdLists:[{type:"array",required:!0,message:"请选择所属分部",trigger:"change"}],jobNature:[{required:!0,message:"请选择工作类型",trigger:"change"}],entryDate:[{required:!0,message:"请选择入职时间",trigger:"blur"}]},searchForm:{search:null,jobNature:null,organId:null,roleId:null,deptId:null,deptIds:null}}},mounted:function(){this.getList(),this.getRoleList()},methods:{permission:_utils_directivePage__WEBPACK_IMPORTED_MODULE_15__["a"],handover:function(e){this.detail=e,this.handoverVisible=!0},onBranchCheckAll:function(){var e=this;this.form.organIdLists=[],this.organList.forEach((function(t){e.form.organIdLists.push(t.id)}))},onRoleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(e){var a=t.form,r=a.organIdLists,_=a.postDeptIds,l=a.deptIds,n=a.deptId,s=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_12__["a"])(a,_excluded),o=[];_.forEach((function(e){var t=[];e.deptIds.forEach((function(e){t.push(e[e.length-1])})),o.push({postId:e.postId,deptIds:t})}));var u=[];l.forEach((function(e){u.push(e[e.length-1])}));var i=n?n[n.length-1]:"",d=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_11__["a"])({postDeptIds:JSON.stringify(o),organIdList:r.join(","),deptIds:u,deptId:i},s);"create"==t.formActionTitle?(t.form.id&&delete t.form.id,Object(_api_systemManage__WEBPACK_IMPORTED_MODULE_16__["j"])(d).then((function(e){t.messageTips("添加",e)}))):"update"==t.formActionTitle&&Object(_api_systemManage__WEBPACK_IMPORTED_MODULE_16__["l"])(d).then((function(e){t.messageTips("修改",e)}))}}))},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.roleStatus=!1,this.getList()):this.$message.error(t.msg)},search:function(){this.pageInfo.page=1,this.getList()},reset:function(){this.$refs.searchForm.resetFields(),this.search()},getList:function(){var e=this,t=this.searchForm,a={search:t.search?t.search:null,jobNature:t.jobNature?t.jobNature:null,organId:t.organId?t.organId:null,roleId:t.roleId?t.roleId:null,rows:this.pageInfo.limit,page:this.pageInfo.page};Object(_api_systemManage__WEBPACK_IMPORTED_MODULE_16__["F"])(a).then((function(t){200==t.code&&t.data&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},normalizer:function(e){var t=this,a=[];return e.children&&e.children.length>0&&e.children.forEach((function(e){var r=t.normalizer(e,status),_={value:e.deptId,label:e.deptName};r&&r.length>0&&(_.children=r),a.push(_)})),a},getRoleList:function(){var e=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_9__["a"])(Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_7__["a"])().mark((function e(){var t=this;return Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_7__["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:Object(_api_systemManage__WEBPACK_IMPORTED_MODULE_16__["u"])({delFlag:0,rows:9999}).then((function(e){var a=e.data;200==e.code&&a&&a.rows.length>0&&(t.roleList=[],a.rows.forEach((function(e){t.roleList.push({label:e.roleName,value:e.id,disabled:!1})})))})),Object(_api_systemManage__WEBPACK_IMPORTED_MODULE_16__["n"])({rows:9999}).then((function(e){if(200==e.code&&e.data&&e.data.length>0){var a=e.data||[],r=[];a.forEach((function(e){r.push({value:e.deptId,label:e.deptName,children:t.normalizer(e)})})),t.deptList=r}})),Object(_api_systemManage__WEBPACK_IMPORTED_MODULE_16__["r"])({rows:9999}).then((function(e){200==e.code&&e.data&&e.data.length>0&&(t.postList=[],e.data.forEach((function(e){t.postList.push({label:e.postName,value:e.postId})})))})),this.$store.dispatch("setBranchs");case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onDeptChange:function(e){var t=this;this.form.deptId=null,this.deptSmallList=[];var a=e.flat(1/0);a=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_6__["a"])(new Set(a));var r=Object(_helpers_deep_clone__WEBPACK_IMPORTED_MODULE_17__["a"])(this.deptList),_=[];r.forEach((function(e){_.push({value:e.value,label:e.label,disabled:!a.includes(e.value),children:t.normalizer2(e,a)})})),this.deptSmallList=_},normalizer2:function(e,t){var a=this,r=[];return e.children&&e.children.length>0&&e.children.forEach((function(e){var _=a.normalizer2(e,t),l={value:e.value,label:e.label,disabled:!t.includes(e.value)};_&&_.length>0&&(l.children=_),r.push(l)})),r},roleOperation:function(){var _roleOperation=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_9__["a"])(Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_7__["a"])().mark((function _callee2(type,data){var _this8=this,roleIdList,postDeptArr,postDept,deptIds,tempDeptIds;return Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_7__["a"])().wrap((function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:this.formActionTitle=type,this.roleStatus=!0,"update"==type?(roleIdList=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_6__["a"])(data.roleIds),postDeptArr=[],postDept=data.postDeptIds?JSON.parse(data.postDeptIds):[],postDept.length>0?postDept.forEach((function(e){var t=e.deptIds||[],a=[];t.forEach((function(e){a.push(_this8.formatParentId(e,_this8.deptList))})),postDeptArr.push({postId:e.postId,deptIds:a})})):postDeptArr=[{postId:null,deptIds:[]}],deptIds=data.deptIds?eval(data.deptIds):[],tempDeptIds=[],deptIds.length>0&&deptIds.forEach((function(e){tempDeptIds.push(_this8.formatParentId(e,_this8.deptList))})),this.onDeptChange(tempDeptIds),this.form={id:data.id,realName:data.realName,gender:data.gender,phone:Number(data.phone),roleIds:data.roleIds,deptId:data.deptId?this.formatParentId(data.deptId,this.deptList):null,organIdLists:data.organIdList?data.organIdList:[],jobNature:data.jobNature,entryDate:data.entryDate,contactAddress:data.contactAddress,postalCode:data.postalCode,postDeptIds:postDeptArr,deptIds:tempDeptIds}):this.roleResetList=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_6__["a"])(this.roleBaseList);case 3:case"end":return _context2.stop()}}),_callee2,this)})));function roleOperation(e,t){return _roleOperation.apply(this,arguments)}return roleOperation}(),formatParentId:function(e,t){var a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],_=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__["a"])(t);try{for(_.s();!(a=_.n()).done;){var l=a.value;if(l.children){var n=this.formatParentId(e,l.children,[].concat(Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_6__["a"])(r),[l.value]));if(n.includes(e))return n}if(l.value===e)return[].concat(Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_6__["a"])(r),[e])}}catch(s){_.e(s)}finally{_.f()}return r},onFormClose:function(e){this.form={realName:null,gender:null,phone:null,roleName:null,roleIds:[],deptId:null,organIdLists:[],jobNature:null,entryDate:null,contactAddress:null,postalCode:null,deptIds:[],postDeptIds:[{postId:null,deptIds:[]}]},this.$refs[e].resetFields()},formatLockFlag:function(e){var t=["正常","冻结"];return e.demissionDate?"离职":t[e.lockFlag]},submitEducation:function(){var e=this;Object(_api_systemManage__WEBPACK_IMPORTED_MODULE_16__["R"])({currentUserId:this.activeRow.id,targetUserId:this.educationForm.targetUserId}).then((function(t){if(200===t.code){var a="DEMISSION",r=e.activeRow;Object(_api_systemManage__WEBPACK_IMPORTED_MODULE_16__["k"])({employeeId:r.id,operate:a}).then((function(t){200==t.code?(e.$message.success("更改成功"),e.roleStatus=!1,e.educationViseble=!1,e.getList()):e.$message.error(t.msg)}))}}))},removePostDept:function(e){var t=this.form.postDeptIds.indexOf(e);-1!==t&&this.form.postDeptIds.splice(t,1)},addPostDept:function(){this.form.postDeptIds.push({postId:null,deptIds:[]})}},watch:{educationViseble:function(e){e||(this.educationForm.targetUserId="",this.$refs["educationForm"].resetFields())}}}},"559e":function(e,t,a){"use strict";a.r(t);var r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"m-container"},[e._m(0),e._v(" "),a("div",{staticClass:"m-core"},[a("tab-router",{attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeIndex,callback:function(t){e.activeIndex="string"===typeof t?t.trim():t},expression:"activeIndex"}},[e.permissionList.teacher?a("el-tab-pane",{attrs:{lazy:"",label:"OA老师列表",name:"0"}},[0==e.activeIndex?a("teacher"):e._e()],1):e._e(),e._v(" "),e.permissionList.manager?a("el-tab-pane",{attrs:{lazy:"",label:"OA员工列表",name:"1"}},[1==e.activeIndex?a("manager"):e._e()],1):e._e()],1)],1)])},_=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n OA信息管理\n ")])}],l=(a("7f7f"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",[a("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,"save-key":"oaTeacher",model:e.searchForm},on:{submit:e.search,reset:e.reset}},[a("el-form-item",{attrs:{prop:"search"}},[a("el-input",{attrs:{type:"text",clearable:"",placeholder:"姓名/编号/手机号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"jobNature"}},[a("el-select",{attrs:{filterable:"",clearable:"",placeholder:"工作类型"},model:{value:e.searchForm.jobNature,callback:function(t){e.$set(e.searchForm,"jobNature","string"===typeof t?t.trim():t)},expression:"searchForm.jobNature"}},e._l(e.jobNature,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"deptId"}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择社保分部",clearable:"",options:e.deptList,"show-all-levels":!1,"collapse-tags":!0,props:{checkStrictly:!1}},model:{value:e.searchForm.deptId,callback:function(t){e.$set(e.searchForm,"deptId",t)},expression:"searchForm.deptId"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"deptIds"}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择所属部门",clearable:"",options:e.deptList,"show-all-levels":!1,"collapse-tags":!0,props:{multiple:!0,checkStrictly:!1}},on:{change:e.onDeptChange},model:{value:e.searchForm.deptIds,callback:function(t){e.$set(e.searchForm,"deptIds",t)},expression:"searchForm.deptIds"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"id",label:"老师编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"realName",label:"姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.realName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"250px",fixed:"right",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.permission("employee/update")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.roleOperation("update",t.row)}}},[e._v("修改")]):e._e()]}}])})],1),e._v(" "),a("pagination",{attrs:{sync:"","save-key":"oaTeacher",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:"修改老师",visible:e.roleStatus,width:"650px"},on:{"update:visible":function(t){e.roleStatus=t},close:function(t){return e.onFormClose("ruleForm")}}},[a("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[a("el-alert",{staticStyle:{margin:"10px 0"},attrs:{title:"OA信息",closable:!1,type:"info"}}),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"所属部门",prop:"deptIds","label-width":e.formLabelWidth}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择所属部门",clearable:"",options:e.deptList,"show-all-levels":!1,"collapse-tags":!0,props:{multiple:!0,checkStrictly:!1}},on:{change:e.onDeptChange},model:{value:e.form.deptIds,callback:function(t){e.$set(e.form,"deptIds",t)},expression:"form.deptIds"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"社保分部",prop:"deptId","label-width":e.formLabelWidth}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择社保分部",clearable:"",options:e.deptSmallList,"show-all-levels":!1,"collapse-tags":!0,props:{checkStrictly:!1}},model:{value:e.form.deptId,callback:function(t){e.$set(e.form,"deptId",t)},expression:"form.deptId"}})],1)],1)],1),e._v(" "),e._l(e.form.postDeptIds,(function(t,r){return a("div",{key:r},[a("el-form-item",{staticClass:"setWidth",attrs:{label:"岗位管理"+(r+1),"label-width":e.formLabelWidth,prop:"postDeptIds."+r+".postId"}},[a("el-select",{staticStyle:{width:"180px !important"},attrs:{filterable:"",clearable:"",placeholder:"所属岗位"},model:{value:t.postId,callback:function(a){e.$set(t,"postId","string"===typeof a?a.trim():a)},expression:"postDeptIds.postId"}},e._l(e.postList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{staticClass:"setWidth",staticStyle:{margin:"0 10px",width:"190px !important"},attrs:{prop:"postDeptIds."+r+".deptIds"}},[a("el-cascader",{attrs:{placeholder:"管理部门",clearable:"",options:e.deptList,"show-all-levels":!1,"collapse-tags":!0,props:{multiple:!0,checkStrictly:!1}},model:{value:t.deptIds,callback:function(a){e.$set(t,"deptIds",a)},expression:"postDeptIds.deptIds"}})],1),e._v(" "),e.form.postDeptIds.length>1?a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(a){return a.preventDefault(),e.removePostDept(t)}}}):e._e(),e._v(" "),a("el-button",{staticStyle:{"margin-left":"5px"},attrs:{icon:"el-icon-plus",circle:""},on:{click:function(t){return t.preventDefault(),e.addPostDept(t)}}})],1)}))],2),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.roleStatus=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onRoleSubmit("ruleForm")}}},[e._v("确 定")])],1)],1)],1)}),n=[],s=a("56a5"),o=s["a"],u=(a("2009"),a("2877")),i=Object(u["a"])(o,l,n,!1,null,"57ca9e86",null),d=i.exports,c=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",[a("save-form",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:e.searchForm},on:{submit:e.search,reset:e.reset}},[a("el-form-item",{attrs:{prop:"search"}},[a("el-input",{attrs:{type:"text",clearable:"",placeholder:"姓名/编号/手机号"},nativeOn:{keyup:function(t){return!t.type.indexOf("key")&&e._k(t.keyCode,"enter",13,t.key,"Enter")?null:function(t){t.target.blur(),e.$refs.searchForm.save(),e.search()}(t)}},model:{value:e.searchForm.search,callback:function(t){e.$set(e.searchForm,"search","string"===typeof t?t.trim():t)},expression:"searchForm.search"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"jobNature"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择工作类型"},model:{value:e.searchForm.jobNature,callback:function(t){e.$set(e.searchForm,"jobNature","string"===typeof t?t.trim():t)},expression:"searchForm.jobNature"}},[a("el-option",{attrs:{label:"全职",value:"FULL_TIME"}}),e._v(" "),a("el-option",{attrs:{label:"兼职",value:"PART_TIME"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"deptId"}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择社保分部",clearable:"",options:e.deptList,"show-all-levels":!1,"collapse-tags":!0,props:{checkStrictly:!1}},model:{value:e.searchForm.deptId,callback:function(t){e.$set(e.searchForm,"deptId",t)},expression:"searchForm.deptId"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"deptIds"}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择所属部门",clearable:"",options:e.deptList,"show-all-levels":!1,"collapse-tags":!0,props:{multiple:!0,checkStrictly:!1}},on:{change:e.onDeptChange},model:{value:e.searchForm.deptIds,callback:function(t){e.$set(e.searchForm,"deptIds",t)},expression:"searchForm.deptIds"}})],1),e._v(" "),a("el-form-item",[a("el-button",{attrs:{"native-type":"submit",type:"danger"}},[e._v("搜索")]),e._v(" "),a("el-button",{attrs:{"native-type":"reset",type:"primary"}},[e._v("重置")])],1)],1),e._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:e.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"id",label:"员工编号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"realName",label:"姓名"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.realName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",prop:"phone",label:"手机号"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("copy-text",[e._v(e._s(t.row.phone))])]}}])}),e._v(" "),a("el-table-column",{attrs:{align:"center",width:"250px",fixed:"right",label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[e.permission("employee/update")?a("el-button",{attrs:{type:"text"},on:{click:function(a){return e.roleOperation("update",t.row)}}},[e._v("修改")]):e._e()]}}])})],1),e._v(" "),a("pagination",{attrs:{sync:"",total:e.pageInfo.total,page:e.pageInfo.page,limit:e.pageInfo.limit,"page-sizes":e.pageInfo.page_size},on:{"update:total":function(t){return e.$set(e.pageInfo,"total",t)},"update:page":function(t){return e.$set(e.pageInfo,"page",t)},"update:limit":function(t){return e.$set(e.pageInfo,"limit",t)},pagination:e.getList}})],1)],1),e._v(" "),a("el-dialog",{attrs:{title:e.formTitle[e.formActionTitle],visible:e.roleStatus,width:"650px"},on:{"update:visible":function(t){e.roleStatus=t},close:function(t){return e.onFormClose("ruleForm")}}},[a("el-form",{ref:"ruleForm",attrs:{model:e.form,rules:e.rules}},[a("el-alert",{staticStyle:{margin:"10px 0"},attrs:{title:"OA信息",closable:!1,type:"info"}}),e._v(" "),a("el-row",[a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"所属部门",prop:"deptIds","label-width":e.formLabelWidth}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择所属部门",clearable:"",options:e.deptList,"show-all-levels":!1,"collapse-tags":!0,props:{multiple:!0,checkStrictly:!1}},on:{change:e.onDeptChange},model:{value:e.form.deptIds,callback:function(t){e.$set(e.form,"deptIds",t)},expression:"form.deptIds"}})],1)],1),e._v(" "),a("el-col",{attrs:{span:12}},[a("el-form-item",{attrs:{label:"社保分部",prop:"deptId","label-width":e.formLabelWidth}},[a("el-cascader",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择社保分部",clearable:"",options:e.deptSmallList,"show-all-levels":!1,"collapse-tags":!0,props:{checkStrictly:!1}},model:{value:e.form.deptId,callback:function(t){e.$set(e.form,"deptId",t)},expression:"form.deptId"}})],1)],1)],1),e._v(" "),e._l(e.form.postDeptIds,(function(t,r){return a("div",{key:r},[a("el-form-item",{staticClass:"setWidth",attrs:{label:"岗位管理"+(r+1),"label-width":e.formLabelWidth,prop:"postDeptIds."+r+".postId"}},[a("el-select",{staticStyle:{width:"180px !important"},attrs:{filterable:"",clearable:"",placeholder:"所属岗位"},model:{value:t.postId,callback:function(a){e.$set(t,"postId","string"===typeof a?a.trim():a)},expression:"postDeptIds.postId"}},e._l(e.postList,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),a("el-form-item",{staticClass:"setWidth",staticStyle:{margin:"0 10px",width:"190px !important"},attrs:{prop:"postDeptIds."+r+".deptIds"}},[a("el-cascader",{attrs:{placeholder:"管理部门",clearable:"",options:e.deptList,"show-all-levels":!1,"collapse-tags":!0,props:{multiple:!0,checkStrictly:!1}},model:{value:t.deptIds,callback:function(a){e.$set(t,"deptIds",a)},expression:"postDeptIds.deptIds"}})],1),e._v(" "),e.form.postDeptIds.length>1?a("el-button",{attrs:{icon:"el-icon-minus",circle:""},on:{click:function(a){return a.preventDefault(),e.removePostDept(t)}}}):e._e(),e._v(" "),a("el-button",{staticStyle:{"margin-left":"5px"},attrs:{icon:"el-icon-plus",circle:""},on:{click:function(t){return t.preventDefault(),e.addPostDept(t)}}})],1)}))],2),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.roleStatus=!1}}},[e._v("取 消")]),e._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.onRoleSubmit("ruleForm")}}},[e._v("确 定")])],1)],1)],1)},p=[],m=a("5035"),b=m["a"],f=(a("fc993"),Object(u["a"])(b,c,p,!1,null,"17ff9518",null)),h=f.exports,E=a("ec8a"),I={components:{teacher:d,manager:h},name:"oaManager",data:function(){this.$route.query;return{activeIndex:"0",permissionList:{manager:Object(E["a"])("infoOAManager/manager"),teacher:Object(E["a"])("infoOAManager/teacher")}}},methods:{handleClick:function(e){console.log(e),this.activeIndex=e.name}}},v=I,O=(a("1fb2"),Object(u["a"])(v,r,_,!1,null,"0ba15a0e",null));t["default"]=O.exports},"56a5":function(module,__webpack_exports__,__webpack_require__){"use strict";var D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("b85c"),core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("6762"),core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es7_array_includes__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("2fdb"),core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_string_includes__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("5df3"),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_set__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__("4f7f"),core_js_modules_es6_set__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_set__WEBPACK_IMPORTED_MODULE_4__),D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("2909"),D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("c7eb"),regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("96cf"),regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_7__),D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("1da1"),core_js_modules_es6_regexp_search__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("386d"),core_js_modules_es6_regexp_search__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es6_regexp_search__WEBPACK_IMPORTED_MODULE_9__),D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("5530"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("ac6a"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_11__),D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("15fd"),_components_Pagination_index__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("333d"),_utils_directivePage__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("ec8a"),_api_systemManage__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("99b4"),_api_teacherManager__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("8018"),_helpers_deep_clone__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("be41"),_components_Tooltip_index__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("a5b0"),_utils_searchArray__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__("92e3"),_excluded=["organIdLists","postDeptIds","deptIds","deptId"];__webpack_exports__["a"]={name:"staffManager",components:{pagination:_components_Pagination_index__WEBPACK_IMPORTED_MODULE_13__["a"],Tooltip:_components_Tooltip_index__WEBPACK_IMPORTED_MODULE_18__["a"]},data:function(){return{roleResetList:[],tableList:[],educationList:[],deptList:[],deptSmallList:[],postList:[],educationForm:{targetUserId:""},educationViseble:!1,activeRow:null,jobNature:_utils_searchArray__WEBPACK_IMPORTED_MODULE_19__["E"],pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},detail:null,handoverVisible:!1,roleStatus:!1,roleList:[],roleBaseList:[],formLabelWidth:"100px",form:{roleIds:[],deptId:null,organIdLists:[],postDeptIds:[{postId:null,deptIds:[]}],deptIds:[],jobNature:null,entryDate:null,contactAddress:null,postalCode:null},rules:{roleIds:[{type:"array",required:!0,message:"请选择分类",trigger:"change"}],organIdLists:[{type:"array",required:!0,message:"请选择所属分部",trigger:"change"}],jobNature:[{required:!0,message:"请选择工作类型",trigger:"change"}],entryDate:[{required:!0,message:"请选择入职时间",trigger:"blur"}]},searchForm:{search:null,jobNature:null,organId:null,roleId:null,deptId:null,deptIds:null}}},mounted:function(){this.getList(),this.getRoleList()},methods:{permission:_utils_directivePage__WEBPACK_IMPORTED_MODULE_14__["a"],handover:function(e){this.detail=e,this.handoverVisible=!0},onRoleSubmit:function(e){var t=this;this.$refs[e].validate((function(e){if(e){var a=t.form,r=a.organIdLists,_=a.postDeptIds,l=a.deptIds,n=a.deptId,s=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_objectWithoutProperties_js__WEBPACK_IMPORTED_MODULE_12__["a"])(a,_excluded),o=[];_.forEach((function(e){var t=[];e.deptIds.forEach((function(e){t.push(e[e.length-1])})),o.push({postId:e.postId,deptIds:t})}));var u=[];l.forEach((function(e){u.push(e[e.length-1])}));var i=n?n[n.length-1]:"",d=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_objectSpread2_js__WEBPACK_IMPORTED_MODULE_10__["a"])({postDeptIds:JSON.stringify(o),organIdList:r.join(","),deptIds:JSON.stringify(u),deptId:i},s);Object(_api_teacherManager__WEBPACK_IMPORTED_MODULE_16__["z"])(d).then((function(e){t.messageTips("修改",e)}))}}))},messageTips:function(e,t){200==t.code?(this.$message.success(e+"成功"),this.roleStatus=!1,this.getList()):this.$message.error(t.msg)},search:function(){this.pageInfo.page=1,this.getList()},reset:function(){this.$refs.searchForm.resetFields(),this.search()},getList:function(){var e=this,t=this.searchForm,a={search:t.search?t.search:null,jobNature:t.jobNature?t.jobNature:null,organId:t.organId?t.organId:null,roleId:t.roleId?t.roleId:null,rows:this.pageInfo.limit,page:this.pageInfo.page};Object(_api_teacherManager__WEBPACK_IMPORTED_MODULE_16__["w"])(a).then((function(t){200==t.code&&t.data&&(e.tableList=t.data.rows,e.pageInfo.total=t.data.total)}))},normalizer:function(e){var t=this,a=[];return e.children&&e.children.length>0&&e.children.forEach((function(e){var r=t.normalizer(e,status),_={value:e.deptId,label:e.deptName};r&&r.length>0&&(_.children=r),a.push(_)})),a},getRoleList:function(){var e=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_8__["a"])(Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_6__["a"])().mark((function e(){var t=this;return Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_6__["a"])().wrap((function(e){while(1)switch(e.prev=e.next){case 0:Object(_api_systemManage__WEBPACK_IMPORTED_MODULE_15__["u"])({delFlag:0,rows:9999}).then((function(e){var a=e.data;200==e.code&&a&&a.rows.length>0&&(t.roleList=[],a.rows.forEach((function(e){t.roleList.push({label:e.roleName,value:e.id,disabled:!1})})))})),Object(_api_systemManage__WEBPACK_IMPORTED_MODULE_15__["n"])({rows:9999}).then((function(e){if(200==e.code&&e.data&&e.data.length>0){var a=e.data||[],r=[];a.forEach((function(e){r.push({value:e.deptId,label:e.deptName,children:t.normalizer(e)})})),t.deptList=r}})),Object(_api_systemManage__WEBPACK_IMPORTED_MODULE_15__["r"])({rows:9999}).then((function(e){200==e.code&&e.data&&e.data.length>0&&(t.postList=[],e.data.forEach((function(e){t.postList.push({label:e.postName,value:e.postId})})))})),this.$store.dispatch("setBranchs");case 4:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}(),onDeptChange:function(e){var t=this;console.log(e,"value"),this.form.deptId=null,this.deptSmallList=[];var a=e.flat(1/0);a=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__["a"])(new Set(a));var r=Object(_helpers_deep_clone__WEBPACK_IMPORTED_MODULE_17__["a"])(this.deptList),_=[];r.forEach((function(e){_.push({value:e.value,label:e.label,disabled:!a.includes(e.value),children:t.normalizer2(e,a)})})),this.deptSmallList=_},normalizer2:function(e,t){var a=this,r=[];return e.children&&e.children.length>0&&e.children.forEach((function(e){var _=a.normalizer2(e,t),l={value:e.value,label:e.label,disabled:!t.includes(e.value)};_&&_.length>0&&(l.children=_),r.push(l)})),r},roleOperation:function(){var _roleOperation=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_8__["a"])(Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_6__["a"])().mark((function _callee2(type,data){var _this7=this,postDeptArr,postDept,deptIds,tempDeptIds;return Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_6__["a"])().wrap((function _callee2$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:this.roleStatus=!0,"update"==type?(postDeptArr=[],postDept=data.postDeptIds?JSON.parse(data.postDeptIds):[],postDept.length>0?postDept.forEach((function(e){var t=e.deptIds||[],a=[];t.forEach((function(e){a.push(_this7.formatParentId(e,_this7.deptList))})),postDeptArr.push({postId:e.postId,deptIds:a})})):postDeptArr=[{postId:null,deptIds:[]}],deptIds=data.deptIds?eval(data.deptIds):[],tempDeptIds=[],deptIds.length>0&&deptIds.forEach((function(e){tempDeptIds.push(_this7.formatParentId(e,_this7.deptList))})),this.onDeptChange(tempDeptIds),this.form={id:data.id,roleIds:data.roleIds,deptId:data.deptId?this.formatParentId(data.deptId,this.deptList):null,organIdLists:data.organIdList?data.organIdList:[],jobNature:data.jobNature,entryDate:data.entryDate,contactAddress:data.contactAddress,postalCode:data.postalCode,postDeptIds:postDeptArr,deptIds:tempDeptIds}):this.roleResetList=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__["a"])(this.roleBaseList);case 2:case"end":return _context2.stop()}}),_callee2,this)})));function roleOperation(e,t){return _roleOperation.apply(this,arguments)}return roleOperation}(),formatParentId:function(e,t){var a,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],_=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper_js__WEBPACK_IMPORTED_MODULE_0__["a"])(t);try{for(_.s();!(a=_.n()).done;){var l=a.value;if(l.children){var n=this.formatParentId(e,l.children,[].concat(Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__["a"])(r),[l.value]));if(n.includes(e))return n}if(l.value===e)return[].concat(Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_5__["a"])(r),[e])}}catch(s){_.e(s)}finally{_.f()}return r},onFormClose:function(e){this.form={realName:null,gender:null,phone:null,roleName:null,roleIds:[],deptId:null,organIdLists:[],jobNature:null,entryDate:null,contactAddress:null,postalCode:null,deptIds:[],postDeptIds:[{postId:null,deptIds:[]}]},this.$refs[e].resetFields()},removePostDept:function(e){var t=this.form.postDeptIds.indexOf(e);-1!==t&&this.form.postDeptIds.splice(t,1)},addPostDept:function(){this.form.postDeptIds.push({postId:null,deptIds:[]})}},watch:{educationViseble:function(e){e||(this.educationForm.targetUserId="",this.$refs["educationForm"].resetFields())}}}},8018:function(e,t,a){"use strict";a.d(t,"w",(function(){return o})),a.d(t,"t",(function(){return u})),a.d(t,"h",(function(){return i})),a.d(t,"e",(function(){return d})),a.d(t,"v",(function(){return c})),a.d(t,"u",(function(){return p})),a.d(t,"n",(function(){return m})),a.d(t,"C",(function(){return b})),a.d(t,"D",(function(){return f})),a.d(t,"y",(function(){return h})),a.d(t,"x",(function(){return E})),a.d(t,"B",(function(){return I})),a.d(t,"g",(function(){return v})),a.d(t,"q",(function(){return O})),a.d(t,"z",(function(){return g})),a.d(t,"A",(function(){return D})),a.d(t,"s",(function(){return y})),a.d(t,"i",(function(){return M})),a.d(t,"m",(function(){return P})),a.d(t,"r",(function(){return L})),a.d(t,"a",(function(){return A})),a.d(t,"l",(function(){return T})),a.d(t,"o",(function(){return C})),a.d(t,"p",(function(){return R})),a.d(t,"k",(function(){return j})),a.d(t,"d",(function(){return w})),a.d(t,"c",(function(){return U})),a.d(t,"j",(function(){return S})),a.d(t,"b",(function(){return k})),a.d(t,"f",(function(){return W}));var r=a("b775"),_=a("4328"),l=a.n(_),n=a("829b"),s="/api-web";function o(e){return Object(r["a"])({url:s+"/teacher/queryPage",method:"get",params:e})}function u(e){return Object(r["a"])({url:s+"/teacher/get",method:"get",params:e})}function i(e){return Object(r["a"])({url:s+"/teacher/getTeacherMusicClass",method:"get",params:e})}function d(e){return Object(r["a"])({url:s+"/demoGroup/findTeacherDemoGroups",method:"get",params:e})}function c(e){return Object(r["a"])({url:s+"/teacher/queryCloses",method:"get",params:e})}function p(e){return Object(r["a"])({url:s+"/teacherLeaveRecord/queryPage",method:"get",params:e})}function m(e){return Object(r["a"])({url:s+"/teacher/sumTeacherNoPay",method:"get",params:e})}function b(e){return Object(r["a"])({url:s+"/teacherDefaultVipGroupSalary/queryPageByTeacherId",method:"get",params:e})}function f(e){return Object(n["a"])({url:s+"/teacherDefaultVipGroupSalary/upSet",method:"post",data:e})}function h(e){return Object(r["a"])({url:s+"/teacherDefaultMusicGroupSalary/queryPage",method:"get",params:e})}function E(e){return Object(r["a"])({url:s+"/teacherDefaultMusicGroupSalary/batchUpset",method:"post",data:e})}function I(e){return Object(r["a"])({url:s+"/courseSchedule/updateTeacherCoursesSalary",method:"post",data:l.a.stringify(e)})}function v(e){return Object(r["a"])({url:s+"/school/findVipSchoolByTeacher",method:"get",params:e})}function O(e){return Object(r["a"])({url:s+"/teacher/add",method:"post",data:l.a.stringify(e)})}function g(e){return Object(r["a"])({url:s+"/teacher/update",method:"post",data:l.a.stringify(e)})}function D(e){return Object(r["a"])({url:s+"/teacher/update1",method:"post",data:l.a.stringify(e)})}function y(e){return Object(r["a"])({url:s+"/teacherFreeTime/query",method:"get",params:e})}function M(e){return Object(r["a"])({url:s+"/teacherAttendance/getTeacherPersonalAttendanceDetail",method:"get",params:e})}function P(e){return Object(r["a"])({url:s+"/teacherFreeTime/updateSet",method:"post",data:l.a.stringify(e)})}function L(e){return Object(r["a"])({url:s+"/teacherDefaultPracticeGroupSalary/queryPageByTeacherId",method:"get",params:e})}function A(e){return Object(n["a"])({url:s+"/teacherDefaultPracticeGroupSalary/update",method:"post",data:e})}function T(e){return Object(r["a"])({url:s+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:e})}function C(e){return Object(r["a"])({url:s+"/sysTenantAccount/addMinutes",method:"post",data:l.a.stringify(e)})}function R(e){return Object(r["a"])({url:s+"/sysTenantAccount/subtractMinutes",method:"post",data:l.a.stringify(e)})}function j(e){return Object(r["a"])({url:s+"/sysTenantAccount/get",method:"get",params:e})}function w(e){return Object(r["a"])({url:s+"/coursesGroupController/findTeacherCourseGroupsWithWeb",method:"get",params:e})}function U(e){return Object(r["a"])({url:s+"/courseSchedule/classGroupTeacherAdjust",method:"post",data:l.a.stringify(e)})}function S(e){return Object(r["a"])({url:s+"/teacher/queryStudent",method:"get",params:e})}function k(e){return Object(r["a"])({url:s+"/studentManage/batchUpdateAdviser",method:"post",data:l.a.stringify(e)})}function W(e){return Object(r["a"])({url:s+"/courseScheduleTeacherSalary/getCourseTeachers",method:"get",params:e})}},"92e3":function(e,t,a){"use strict";a.d(t,"v",(function(){return o})),a.d(t,"I",(function(){return u})),a.d(t,"t",(function(){return i})),a.d(t,"c",(function(){return d})),a.d(t,"E",(function(){return c})),a.d(t,"bb",(function(){return p})),a.d(t,"Z",(function(){return m})),a.d(t,"d",(function(){return b})),a.d(t,"M",(function(){return f})),a.d(t,"x",(function(){return h})),a.d(t,"db",(function(){return E})),a.d(t,"u",(function(){return I})),a.d(t,"o",(function(){return v})),a.d(t,"cb",(function(){return O})),a.d(t,"Q",(function(){return g})),a.d(t,"fb",(function(){return D})),a.d(t,"gb",(function(){return y})),a.d(t,"P",(function(){return M})),a.d(t,"U",(function(){return P})),a.d(t,"C",(function(){return L})),a.d(t,"l",(function(){return A})),a.d(t,"Y",(function(){return T})),a.d(t,"eb",(function(){return C})),a.d(t,"J",(function(){return R})),a.d(t,"m",(function(){return j})),a.d(t,"w",(function(){return w})),a.d(t,"N",(function(){return U})),a.d(t,"f",(function(){return S})),a.d(t,"e",(function(){return k})),a.d(t,"L",(function(){return W})),a.d(t,"K",(function(){return B})),a.d(t,"T",(function(){return N})),a.d(t,"H",(function(){return K})),a.d(t,"a",(function(){return x})),a.d(t,"y",(function(){return q})),a.d(t,"p",(function(){return F})),a.d(t,"n",(function(){return G})),a.d(t,"q",(function(){return $})),a.d(t,"g",(function(){return H})),a.d(t,"G",(function(){return V})),a.d(t,"r",(function(){return z})),a.d(t,"D",(function(){return Y})),a.d(t,"B",(function(){return J})),a.d(t,"A",(function(){return X})),a.d(t,"h",(function(){return Q})),a.d(t,"k",(function(){return Z})),a.d(t,"i",(function(){return ee})),a.d(t,"j",(function(){return te})),a.d(t,"S",(function(){return ae})),a.d(t,"O",(function(){return re})),a.d(t,"F",(function(){return _e})),a.d(t,"z",(function(){return le})),a.d(t,"R",(function(){return ne})),a.d(t,"V",(function(){return se})),a.d(t,"X",(function(){return oe})),a.d(t,"s",(function(){return ue})),a.d(t,"ab",(function(){return ie})),a.d(t,"W",(function(){return de})),a.d(t,"b",(function(){return pe}));var r=a("b85c"),_=a("3835"),l=a("267e"),n=sessionStorage.getItem("tenantConfig");n=n?JSON.parse(n):{};var s=n.tenantId,o=null,u=null;1==s?(u=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],o=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"线上基础技能课",value:"HIGH_ONLINE"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"乐团网管课",value:"MUSIC_NETWORK"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]):(u=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],o=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"vip课",value:"VIP"},{label:"试听课",value:"DEMO"},{label:"综合课",value:"COMPREHENSIVE"},{label:"网管课",value:"PRACTICE"},{label:"启蒙课",value:"ENLIGHTENMENT"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"对外课",value:"COMM"},{label:"直播课",value:"LIVE"}]);var i=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"},{label:"直播课",value:"LIVE"}],d=[{label:"正常签到",value:1},{label:"异常签到",value:0}],c=[{label:"兼职",value:"PART_TIME"},{label:"全职",value:"FULL_TIME"},{label:"劳务",value:"LABOUR"}],p=[{label:"正常",value:"0"},{label:"冻结",value:"1"},{label:"锁定",value:"9"}],m=[{value:"NORMAL",label:"正常"},{value:"TRUANT",label:"旷课"},{value:"LEAVE",label:"请假"}],b=[].concat(m,[{value:"QUIT_SCHOOL",label:"休学"},{value:"DROP_OUT",label:"退学"},{value:"LATE",label:"迟到"}]),f=[{value:"APPLY",label:"报名"},{value:"RENEW",label:"续费"},{value:"MEMBER",label:"学练宝购买"},{value:"SMALL_CLASS_TO_BUY",label:"VIP购买"},{value:"SPORADIC",label:"零星收费"},{value:"LUCK",label:"福袋活动"},{value:"DEGREE_REGISTRATION",label:"考级报名"},{value:"DOUBLE_ELEVEN2020",label:"2020双十一活动"},{value:"DOUBLE_ELEVEN2021",label:"2021双十一活动"},{value:"DEGREE",label:"儿童节活动"},{value:"PRACTICE_GROUP_BUY",label:"网管课"},{value:"PRACTICE_GROUP_RENEW",label:"网管课续费"},{value:"REPAIR",label:"乐器维修"},{value:"OUTORDER",label:"外部收入"},{value:"GOODS_SELL",label:"商品销售"},{value:"MALL_BUY",label:"商城销售"},{value:"SUBJECT_CHANGE",label:"声部更换"},{value:"MAINTENANCE",label:"乐器保养"},{value:"ADD_STUDENT",label:"乐团报名"},{value:"REPLACEMENT",label:"乐器置换"},{value:"SCHOOL",label:"学校订单"},{value:"PERSONAL",label:"个人订单"},{value:"OTHER",label:"其他"},{value:"ACTIVITY",label:"活动购买"},{value:"LIVE_BUY",label:"直播购物"},{value:"LIVE_GROUP_BUY",label:"直播课购买"},{value:"SCHOOL_GOODS_PURCHASE",label:"商品采购"},{value:"DIRECTOR_TRAINING_CAMP",label:"乐队指导培训"}],h=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],E=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"}],I=[{value:"NOT_START",label:"未开始"},{value:"UNDERWAY",label:"进行中"},{value:"OVER",label:"已结束"}],v=[{value:"NORMAL",label:"进行中"},{value:"FINISH",label:"结束"},{value:"CANCEL",label:"关闭"},{value:"LOCK",label:"锁定"}],O=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],g=[{value:"FREE",label:"免费"},{value:"CHARGE",label:"收费"},{value:"TRIAL",label:"试听课"},{value:"CARE_PACKAGE",label:"关心包"},{value:"COME_ON_PACKAGE",label:"加油包"}],D=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及练习回访",label:"课后及练习回访"},{value:"练习及乐团表现",label:"练习及乐团表现"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"}]}],y=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及练习回访",label:"课后及练习回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"续费类回访",label:"续费类回访"},{value:"服务回访",label:"服务回访"},{value:"其他",label:"其他"}]},{value:"学练宝",label:"学练宝",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],M=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"},{value:"YEEPAY",label:"易宝"}],P=[{value:"INSTRUMENT",label:"乐器销售"},{value:"ACCESSORIES",label:"配件销售"},{value:"SCHOOL_BUY",label:"学校采购"},{value:"OTHER",label:"其它"}],L=[{value:"INSTRUMENT",label:"乐器"},{value:"ACCESSORIES",label:"辅件"},{value:"TEACHING",label:"教材"},{value:"STAFF",label:"教谱"},{value:"OTHER",label:"其它"}],A=[{value:"1",label:"一年级"},{value:"2",label:"二年级"},{value:"3",label:"三年级"},{value:"4",label:"四年级"},{value:"5",label:"五年级"},{value:"6",label:"六年级"},{value:"7",label:"初一"},{value:"8",label:"初二"},{value:"9",label:"初三"},{value:"10",label:"高一"},{value:"11",label:"高二"},{value:"12",label:"高三"}],T=[{value:"INTERNAL",label:"内部"},{value:"EXTERNAL",label:"外部"},{value:"ALL",label:"全部"}],C=[{label:"不限制",value:"1"},{label:"线上不可调为线下",value:"0"},{label:"线下不可调为线上",value:"2"},{label:"线上线下不可互调",value:"3"}],R=ce(l["musicGroupType"]),j=ce(l["classTime"]),w=[{label:"课程收费",value:0},{label:"会员收费",value:2},{label:"免费",value:3}],U=ce(l["payOrderType"]),S=ce(l["auditType"]),k=ce(l["auditPaymentType"]),W=ce(l["orderServerType"]),B=ce(l["orderAuditType"]),N=ce(l["rewardModeType"]),K=ce(l["musicClassType"]),x=ce(l["ProbationPeriodStatus"]),q=ce(l["downListType"]),F=ce(l["conclusion"]),G=ce(l["clientType"]),$=ce(l["couponType"]),H=ce(l["backType"]),V=ce(l["memberEnum"]),z=ce(l["coupontypeDetail"]),Y=ce(l["issue"]),J=ce(l["feedbackType"]),X=ce(l["feedbackTypeDesc"]),Q=ce(l["campState"]),Z=ce(l["catgGoupType"]),ee=ce(l["catRole"]),te=ce(l["catType"]),ae=ce(l["quiteReason"]),re=ce(l["payUserType"]),_e=ce(l["levelStatus"]),le=ce(l["evaluateStatus"]),ne=ce(l["problemType"]),se=ce(l["schoolUserType"]),oe=ce(l["shareLiveType"]),ue=ce(l["courseEmnu"]),ie=ce(l["suggestionType"]),de=ce(l["scoreType"]);function ce(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var pe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(_["a"])(t,2),l=a[0],n=a[1],s={};if(e&&e.length){var o,u=Object(r["a"])(e);try{for(u.s();!(o=u.n()).done;){var i=o.value;s[i[l]]=i[n]}}catch(d){u.e(d)}finally{u.f()}}return s}},be41:function(e,t,a){"use strict";a("5df3"),a("1c4c");var r=a("53ca"),_=(a("456d"),a("ac6a"),function e(t){if(null===t)return null;var a=Object.assign({},t);return Object.keys(a).forEach((function(_){return a[_]="object"===Object(r["a"])(t[_])?e(t[_]):t[_]})),Array.isArray(t)?(a.length=t.length,Array.from(a)):a});t["a"]=_},c8bd:function(e,t,a){},fc993:function(e,t,a){"use strict";a("19e9")}}]);