chunk-7b76e481.5efcf267.js 52 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 l(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}function _(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function n(e,t,a){var n=_(),o=e-n,s=20,u=0;t="undefined"===typeof t?500:t;var i=function e(){u+=s;var _=Math.easeInOutQuad(u,n,o,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__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__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("2909"),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__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__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("5530"),D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("15fd"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("ac6a"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_12__),_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"),_helpers_deep_clone__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("be41"),_components_Tooltip_index__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("a5b0"),_utils_validate__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("61f7"),validPhone=function(e,t,a){t?Object(_utils_validate__WEBPACK_IMPORTED_MODULE_18__["b"])(t)?a():a(new Error("请输入正确的11位手机号码")):a(new Error("请输入电话号码"))};__webpack_exports__["a"]={name:"staffManager",components:{pagination:_components_Pagination_index__WEBPACK_IMPORTED_MODULE_13__["a"],Tooltip:_components_Tooltip_index__WEBPACK_IMPORTED_MODULE_17__["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_14__["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,l=a.postDeptIds,_=a.deptIds,n=a.deptId,o=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_11__["a"])(a,["organIdLists","postDeptIds","deptIds","deptId"]),s=[];l.forEach((function(e){var t=[];e.deptIds.forEach((function(e){t.push(e[e.length-1])})),s.push({postId:e.postId,deptIds:t})}));var u=[];_.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__WEBPACK_IMPORTED_MODULE_10__["a"])({postDeptIds:JSON.stringify(s),organIdList:r.join(","),deptIds:u,deptId:i},o);"create"==t.formActionTitle?(t.form.id&&delete t.form.id,Object(_api_systemManage__WEBPACK_IMPORTED_MODULE_15__["j"])(d).then((function(e){t.messageTips("添加",e)}))):"update"==t.formActionTitle&&Object(_api_systemManage__WEBPACK_IMPORTED_MODULE_15__["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_15__["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),l={value:e.deptId,label:e.deptName};r&&r.length>0&&(l.children=r),a.push(l)})),a},getRoleList:function(){var e=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_8__["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.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;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__WEBPACK_IMPORTED_MODULE_6__["a"])(new Set(a));var r=Object(_helpers_deep_clone__WEBPACK_IMPORTED_MODULE_16__["a"])(this.deptList),l=[];r.forEach((function(e){l.push({value:e.value,label:e.label,disabled:!a.includes(e.value),children:t.normalizer2(e,a)})})),this.deptSmallList=l},normalizer2:function(e,t){var a=this,r=[];return e.children&&e.children.length>0&&e.children.forEach((function(e){var l=a.normalizer2(e,t),_={value:e.value,label:e.label,disabled:!t.includes(e.value)};l&&l.length>0&&(_.children=l),r.push(_)})),r},roleOperation:function(){var _roleOperation=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_8__["a"])(regeneratorRuntime.mark((function _callee2(type,data){var _this8=this,roleIdList,postDeptArr,postDept,deptIds,tempDeptIds;return regeneratorRuntime.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__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__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]:[],l=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__["a"])(t);try{for(l.s();!(a=l.n()).done;){var _=a.value;if(_.children){var n=this.formatParentId(e,_.children,[].concat(Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_6__["a"])(r),[_.value]));if(n.includes(e))return n}if(_.value===e)return[].concat(Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_6__["a"])(r),[e])}}catch(o){l.e(o)}finally{l.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_15__["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_15__["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)])},l=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("h2",[a("div",{staticClass:"squrt"}),e._v("\n OA信息管理\n ")])}],_=(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=[],o=a("56a5"),s=o["a"],u=(a("2009"),a("2877")),i=Object(u["a"])(s,_,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,g=(a("1fb2"),Object(u["a"])(v,r,l,!1,null,"0ba15a0e",null));t["default"]=g.exports},"56a5":function(module,__webpack_exports__,__webpack_require__){"use strict";var D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper__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__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__("2909"),regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__("96cf"),regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(regenerator_runtime_runtime__WEBPACK_IMPORTED_MODULE_6__),D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__("1da1"),core_js_modules_es6_regexp_search__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__("386d"),core_js_modules_es6_regexp_search__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es6_regexp_search__WEBPACK_IMPORTED_MODULE_8__),D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_objectSpread2__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__("5530"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__("ac6a"),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_10__),D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__("15fd"),_components_Pagination_index__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__("333d"),_utils_directivePage__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__("ec8a"),_api_systemManage__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__("99b4"),_api_teacherManager__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__("8018"),_helpers_deep_clone__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__("be41"),_components_Tooltip_index__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__("a5b0"),_utils_searchArray__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__("92e3");__webpack_exports__["a"]={name:"staffManager",components:{pagination:_components_Pagination_index__WEBPACK_IMPORTED_MODULE_12__["a"],Tooltip:_components_Tooltip_index__WEBPACK_IMPORTED_MODULE_17__["a"]},data:function(){return{roleResetList:[],tableList:[],educationList:[],deptList:[],deptSmallList:[],postList:[],educationForm:{targetUserId:""},educationViseble:!1,activeRow:null,jobNature:_utils_searchArray__WEBPACK_IMPORTED_MODULE_18__["C"],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_13__["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,l=a.postDeptIds,_=a.deptIds,n=a.deptId,o=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_objectWithoutProperties__WEBPACK_IMPORTED_MODULE_11__["a"])(a,["organIdLists","postDeptIds","deptIds","deptId"]),s=[];l.forEach((function(e){var t=[];e.deptIds.forEach((function(e){t.push(e[e.length-1])})),s.push({postId:e.postId,deptIds:t})}));var u=[];_.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__WEBPACK_IMPORTED_MODULE_9__["a"])({postDeptIds:JSON.stringify(s),organIdList:r.join(","),deptIds:JSON.stringify(u),deptId:i},o);Object(_api_teacherManager__WEBPACK_IMPORTED_MODULE_15__["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_15__["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),l={value:e.deptId,label:e.deptName};r&&r.length>0&&(l.children=r),a.push(l)})),a},getRoleList:function(){var e=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_7__["a"])(regeneratorRuntime.mark((function e(){var t=this;return regeneratorRuntime.wrap((function(e){while(1)switch(e.prev=e.next){case 0:Object(_api_systemManage__WEBPACK_IMPORTED_MODULE_14__["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_14__["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_14__["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__WEBPACK_IMPORTED_MODULE_5__["a"])(new Set(a));var r=Object(_helpers_deep_clone__WEBPACK_IMPORTED_MODULE_16__["a"])(this.deptList),l=[];r.forEach((function(e){l.push({value:e.value,label:e.label,disabled:!a.includes(e.value),children:t.normalizer2(e,a)})})),this.deptSmallList=l},normalizer2:function(e,t){var a=this,r=[];return e.children&&e.children.length>0&&e.children.forEach((function(e){var l=a.normalizer2(e,t),_={value:e.value,label:e.label,disabled:!t.includes(e.value)};l&&l.length>0&&(_.children=l),r.push(_)})),r},roleOperation:function(){var _roleOperation=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_asyncToGenerator__WEBPACK_IMPORTED_MODULE_7__["a"])(regeneratorRuntime.mark((function _callee2(type,data){var _this7=this,postDeptArr,postDept,deptIds,tempDeptIds;return regeneratorRuntime.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__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]:[],l=Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_createForOfIteratorHelper__WEBPACK_IMPORTED_MODULE_0__["a"])(t);try{for(l.s();!(a=l.n()).done;){var _=a.value;if(_.children){var n=this.formatParentId(e,_.children,[].concat(Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_5__["a"])(r),[_.value]));if(n.includes(e))return n}if(_.value===e)return[].concat(Object(D_daya_dy_admin_manager_node_modules_babel_runtime_helpers_esm_toConsumableArray__WEBPACK_IMPORTED_MODULE_5__["a"])(r),[e])}}catch(o){l.e(o)}finally{l.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 s})),a.d(t,"h",(function(){return u})),a.d(t,"e",(function(){return i})),a.d(t,"v",(function(){return d})),a.d(t,"u",(function(){return c})),a.d(t,"n",(function(){return p})),a.d(t,"C",(function(){return m})),a.d(t,"D",(function(){return b})),a.d(t,"y",(function(){return f})),a.d(t,"x",(function(){return h})),a.d(t,"B",(function(){return E})),a.d(t,"g",(function(){return I})),a.d(t,"q",(function(){return v})),a.d(t,"z",(function(){return g})),a.d(t,"A",(function(){return O})),a.d(t,"s",(function(){return D})),a.d(t,"i",(function(){return M})),a.d(t,"m",(function(){return P})),a.d(t,"r",(function(){return y})),a.d(t,"a",(function(){return L})),a.d(t,"l",(function(){return A})),a.d(t,"o",(function(){return T})),a.d(t,"p",(function(){return C})),a.d(t,"k",(function(){return R})),a.d(t,"d",(function(){return w})),a.d(t,"c",(function(){return j})),a.d(t,"j",(function(){return U})),a.d(t,"b",(function(){return S})),a.d(t,"f",(function(){return k}));var r=a("b775"),l=a("4328"),_=a.n(l),n="/api-web";function o(e){return Object(r["a"])({url:n+"/teacher/queryPage",method:"get",params:e})}function s(e){return Object(r["a"])({url:n+"/teacher/get",method:"get",params:e})}function u(e){return Object(r["a"])({url:n+"/teacher/getTeacherMusicClass",method:"get",params:e})}function i(e){return Object(r["a"])({url:n+"/demoGroup/findTeacherDemoGroups",method:"get",params:e})}function d(e){return Object(r["a"])({url:n+"/teacher/queryCloses",method:"get",params:e})}function c(e){return Object(r["a"])({url:n+"/teacherLeaveRecord/queryPage",method:"get",params:e})}function p(e){return Object(r["a"])({url:n+"/teacher/sumTeacherNoPay",method:"get",params:e})}function m(e){return Object(r["a"])({url:n+"/teacherDefaultVipGroupSalary/queryPageByTeacherId",method:"get",params:e})}function b(e){return Object(r["a"])({url:n+"/teacherDefaultVipGroupSalary/upSet",method:"post",data:e})}function f(e){return Object(r["a"])({url:n+"/teacherDefaultMusicGroupSalary/queryPage",method:"get",params:e})}function h(e){return Object(r["a"])({url:n+"/teacherDefaultMusicGroupSalary/batchUpset",method:"post",data:e})}function E(e){return Object(r["a"])({url:n+"/courseSchedule/updateTeacherCoursesSalary",method:"post",data:_.a.stringify(e)})}function I(e){return Object(r["a"])({url:n+"/school/findVipSchoolByTeacher",method:"get",params:e})}function v(e){return Object(r["a"])({url:n+"/teacher/add",method:"post",data:_.a.stringify(e)})}function g(e){return Object(r["a"])({url:n+"/teacher/update",method:"post",data:_.a.stringify(e)})}function O(e){return Object(r["a"])({url:n+"/teacher/update1",method:"post",data:_.a.stringify(e)})}function D(e){return Object(r["a"])({url:n+"/teacherFreeTime/query",method:"get",params:e})}function M(e){return Object(r["a"])({url:n+"/teacherAttendance/getTeacherPersonalAttendanceDetail",method:"get",params:e})}function P(e){return Object(r["a"])({url:n+"/teacherFreeTime/updateSet",method:"post",data:_.a.stringify(e)})}function y(e){return Object(r["a"])({url:n+"/teacherDefaultPracticeGroupSalary/queryPageByTeacherId",method:"get",params:e})}function L(e){return Object(r["a"])({url:n+"/teacherDefaultPracticeGroupSalary/update",method:"post",data:e})}function A(e){return Object(r["a"])({url:n+"/sysTenantAccount/queryTenantAccountDetail",method:"get",params:e})}function T(e){return Object(r["a"])({url:n+"/sysTenantAccount/addMinutes",method:"post",data:_.a.stringify(e)})}function C(e){return Object(r["a"])({url:n+"/sysTenantAccount/subtractMinutes",method:"post",data:_.a.stringify(e)})}function R(e){return Object(r["a"])({url:n+"/sysTenantAccount/get",method:"get",params:e})}function w(e){return Object(r["a"])({url:n+"/coursesGroupController/findTeacherCourseGroupsWithWeb",method:"get",params:e})}function j(e){return Object(r["a"])({url:n+"/courseSchedule/classGroupTeacherAdjust",method:"post",data:_.a.stringify(e)})}function U(e){return Object(r["a"])({url:n+"/teacher/queryStudent",method:"get",params:e})}function S(e){return Object(r["a"])({url:n+"/studentManage/batchUpdateAdviser",method:"post",data:_.a.stringify(e)})}function k(e){return Object(r["a"])({url:n+"/courseScheduleTeacherSalary/getCourseTeachers",method:"get",params:e})}},"92e3":function(e,t,a){"use strict";a.d(t,"u",(function(){return s})),a.d(t,"F",(function(){return u})),a.d(t,"s",(function(){return i})),a.d(t,"c",(function(){return d})),a.d(t,"C",(function(){return c})),a.d(t,"S",(function(){return p})),a.d(t,"R",(function(){return m})),a.d(t,"d",(function(){return b})),a.d(t,"J",(function(){return f})),a.d(t,"w",(function(){return h})),a.d(t,"U",(function(){return E})),a.d(t,"t",(function(){return I})),a.d(t,"o",(function(){return v})),a.d(t,"T",(function(){return g})),a.d(t,"M",(function(){return O})),a.d(t,"W",(function(){return D})),a.d(t,"X",(function(){return M})),a.d(t,"L",(function(){return P})),a.d(t,"P",(function(){return y})),a.d(t,"A",(function(){return L})),a.d(t,"l",(function(){return A})),a.d(t,"Q",(function(){return T})),a.d(t,"V",(function(){return C})),a.d(t,"G",(function(){return R})),a.d(t,"m",(function(){return w})),a.d(t,"v",(function(){return j})),a.d(t,"K",(function(){return U})),a.d(t,"f",(function(){return S})),a.d(t,"e",(function(){return k})),a.d(t,"I",(function(){return W})),a.d(t,"H",(function(){return N})),a.d(t,"O",(function(){return B})),a.d(t,"E",(function(){return K})),a.d(t,"a",(function(){return x})),a.d(t,"x",(function(){return F})),a.d(t,"p",(function(){return q})),a.d(t,"n",(function(){return G})),a.d(t,"q",(function(){return $})),a.d(t,"g",(function(){return H})),a.d(t,"D",(function(){return V})),a.d(t,"r",(function(){return z})),a.d(t,"B",(function(){return J})),a.d(t,"z",(function(){return X})),a.d(t,"y",(function(){return Y})),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,"N",(function(){return ae})),a.d(t,"b",(function(){return le}));var r=a("b85c"),l=a("3835"),_=a("267e"),n=sessionStorage.getItem("tenantConfig");n=n?JSON.parse(n):{};var o=n.tenantId,s=null,u=null;1==o?(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"}],s=[{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"}]):(u=[{label:"声部课",value:"SINGLE"},{label:"合奏课",value:"MIX"},{label:"基础技能课",value:"HIGH"},{label:"集训声部课",value:"TRAINING_SINGLE"},{label:"集训合奏课",value:"TRAINING_MIX"},{label:"课堂课",value:"CLASSROOM"},{label:"综合课",value:"COMPREHENSIVE"}],s=[{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"}]);var i=[{label:"乐团课",value:"MUSIC"},{label:"VIP课",value:"VIP"},{label:"网管课",value:"PRACTICE"}],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:"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:"直播购物"}],h=[{value:"ING",label:"交易中"},{value:"SUCCESS",label:"成功交易"},{value:"FAILED",label:"交易失败"},{value:"CLOSE",label:"交易关闭"}],E=[{value:"0",text:"未开始"},{value:"1",text:"报名中"},{value:"5",text:"报名结束"},{value:"2",text:"进行中"},{value:"4",text:"已结束"},{value:"3",text:"取消"},{value:"6",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:"锁定"}],g=[{value:"RECHARGE",label:"充值"},{value:"CONSUME",label:"建课"},{value:"RETURN",label:"退课"},{value:"MANUAL_ADD",label:"系统充值"},{value:"MANUAL_SUB",label:"系统扣除"}],O=[{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:"其它"}]}],M=[{value:"课程推荐",label:"课程推荐",children:[{value:"新课推荐",label:"新课推荐"},{value:"续费提醒",label:"续费提醒"}]},{value:"常规回访",label:"常规回访",children:[{value:"课后及训练回访",label:"课后及训练回访"},{value:"练习及乐团表现",label:"练习及乐团表现"},{label:"考勤申诉",value:"考勤申诉"},{value:"异常请假回访",label:"异常请假回访"}]},{value:"小课回访",label:"小课回访",children:[{value:"VIP课回访",label:"VIP课回访"},{value:"乐理课回访",label:"乐理课回访"},{value:"网管课回访",label:"网管课回访"}]},{value:"云教练",label:"云教练",children:[{value:"体验回访",label:"体验回访"}]},{value:"其它",label:"其它",children:[{value:"其它",label:"其它"},{value:"会员续费",label:"会员续费"}]}],P=[{value:"YQPAY",label:"双乾"},{value:"BALANCE",label:"余额"},{value:"ADAPAY",label:"汇付"}],y=[{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=re(_["musicGroupType"]),w=re(_["classTime"]),j=re(_["courseViewType"]),U=re(_["payOrderType"]),S=re(_["auditType"]),k=re(_["auditPaymentType"]),W=re(_["orderServerType"]),N=re(_["orderAuditType"]),B=re(_["rewardModeType"]),K=re(_["musicClassType"]),x=re(_["ProbationPeriodStatus"]),F=re(_["downListType"]),q=re(_["conclusion"]),G=re(_["clientType"]),$=re(_["couponType"]),H=re(_["backType"]),V=re(_["memberEnum"]),z=re(_["coupontypeDetail"]),J=re(_["issue"]),X=re(_["feedbackType"]),Y=re(_["feedbackTypeDesc"]),Q=re(_["campState"]),Z=re(_["catgGoupType"]),ee=re(_["catRole"]),te=re(_["catType"]),ae=re(_["quiteReason"]);function re(e){var t=[];for(var a in e)t.push({label:e[a],value:a});return t}var le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:["value","label"],a=Object(l["a"])(t,2),_=a[0],n=a[1],o={};if(e&&e.length){var s,u=Object(r["a"])(e);try{for(u.s();!(s=u.n()).done;){var i=s.value;o[i[_]]=i[n]}}catch(d){u.e(d)}finally{u.f()}}return o}},be41:function(e,t,a){"use strict";a("5df3"),a("1c4c");var r=a("53ca"),l=(a("456d"),a("ac6a"),function e(t){if(null===t)return null;var a=Object.assign({},t);return Object.keys(a).forEach((function(l){return a[l]="object"===Object(r["a"])(t[l])?e(t[l]):t[l]})),Array.isArray(t)?(a.length=t.length,Array.from(a)):a});t["a"]=l},c8bd:function(e,t,a){},fc993:function(e,t,a){"use strict";a("19e9")}}]);