chunk-565c2c14.180bbee7.js 47 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-565c2c14"],{"09f4":function(t,e,a){"use strict";a.d(e,"a",(function(){return i})),Math.easeInOutQuad=function(t,e,a,r){return t/=r/2,t<1?a/2*t*t+e:(t--,-a/2*(t*(t-2)-1)+e)};var r=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function o(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function n(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function i(t,e,a){var i=n(),s=t-i,l=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=l;var n=Math.easeInOutQuad(c,i,s,e);o(n),c<e?r(t):a&&"function"===typeof a&&a()};u()}},1030:function(t,e,a){},1599:function(t,e,a){"use strict";a("5eeb")},3278:function(t,e,a){"use strict";a("1030")},"3a03":function(t,e,a){},"5eeb":function(t,e,a){},adb21:function(t,e,a){"use strict";a.d(e,"a",(function(){return c}));var r=a("bc3a"),o=a.n(r),n=(a("4328"),a("5f87")),i=a("3908"),s=a("e3eb"),l=a.n(s),c=function(t,e,a,r){var s=e.url,c={method:e.method?e.method:"get",headers:{Authorization:Object(n["b"])(),tenantId:Object(n["a"])()},url:s,responseType:"blob"};"post"==c.method?c.data=e.params:c.params=e.params,t.$confirm(a||"您确定下载模板","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){i["a"].startLoading(),o()(l()(c)).then((function(a){var o=new Blob([a.data],{type:"application/vnd.ms-excel;charset=utf-8"}),n=new Response(o).text();n.then((function(a){if(-1!=a.indexOf("code")){var n=JSON.parse(a);if(403==n.code)return t.$message.error("登录过期,请重新登录!"),void setTimeout((function(){t.$store.dispatch("user/resetToken").then((function(){location.reload()}))}),1e3);200==n.code?t.$message.success(n.msg):t.$message.error(n.msg),r&&r()}else{var i=URL.createObjectURL(o),s=document.createElement("a"),l=e.fileName||"导出文件.xls";s.href=i,s.setAttribute("download",l),document.body.appendChild(s),s.click(),r&&r()}})),i["a"].endLoading()})).catch((function(e){console.log(e),t.$message.error("下载失败,请联系管理员"),i["a"].endLoading()}))})).catch((function(){}))}},cce4:function(t,e,a){"use strict";a.r(e);var r,o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"m-container"},[t._m(0),t._v(" "),a("div",{staticClass:"m-core"},[a("saveform",{ref:"searchForm",staticClass:"searchForm",attrs:{inline:!0,model:t.searchForm},on:{"update:model":function(e){t.searchForm=e}}},[a("el-form-item",{attrs:{prop:"userNameOrIdOrMobile"}},[a("el-input",{attrs:{placeholder:"姓名手机号",clearable:""},model:{value:t.searchForm.userNameOrIdOrMobile,callback:function(e){t.$set(t.searchForm,"userNameOrIdOrMobile","string"===typeof e?e.trim():e)},expression:"searchForm.userNameOrIdOrMobile"}})],1),t._v(" "),a("el-form-item",{attrs:{prop:"sourceFrom"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择信息来源"},model:{value:t.searchForm.sourceFrom,callback:function(e){t.$set(t.searchForm,"sourceFrom","string"===typeof e?e.trim():e)},expression:"searchForm.sourceFrom"}},[a("el-option",{attrs:{label:"BOSS",value:"BOSS"}}),t._v(" "),a("el-option",{attrs:{label:"转介绍",value:"转介绍"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"status"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择人员状态"},model:{value:t.searchForm.status,callback:function(e){t.$set(t.searchForm,"status","string"===typeof e?e.trim():e)},expression:"searchForm.status"}},[a("el-option",{attrs:{label:"未录用",value:"NOT_EMPLOYED"}}),t._v(" "),a("el-option",{attrs:{label:"面试中",value:"INTERVIEWING"}}),t._v(" "),a("el-option",{attrs:{label:"储备",value:"RESERVE"}}),t._v(" "),a("el-option",{attrs:{label:"兼职",value:"PART_TIME"}}),t._v(" "),a("el-option",{attrs:{label:"全职",value:"FULL_TIME"}}),t._v(" "),a("el-option",{attrs:{label:"离职",value:"DIMISSION"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"position"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择职位"},model:{value:t.searchForm.position,callback:function(e){t.$set(t.searchForm,"position","string"===typeof e?e.trim():e)},expression:"searchForm.position"}},[a("el-option",{attrs:{label:"指导老师",value:"ADVISER"}}),t._v(" "),a("el-option",{attrs:{label:"乐团主管",value:"ACADEMIC"}}),t._v(" "),a("el-option",{attrs:{label:"乐队指导",value:"TEACHING"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{attrs:{placeholder:"请选择分部",clearable:"",filterable:""},model:{value:t.searchForm.organId,callback:function(e){t.$set(t.searchForm,"organId","string"===typeof e?e.trim():e)},expression:"searchForm.organId"}},t._l(t.organList,(function(t,e){return a("el-option",{key:e,attrs:{value:t.id,label:t.name}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"subjectId","label-width":t.formLabelWidth}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择声部"},model:{value:t.searchForm.subjectId,callback:function(e){t.$set(t.searchForm,"subjectId","string"===typeof e?e.trim():e)},expression:"searchForm.subjectId"}},t._l(t.subjectList,(function(t,e){return a("el-option",{key:e,attrs:{value:t.id,label:t.name}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"notMobileAndWechat"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"是否手机微信双无"},model:{value:t.searchForm.notMobileAndWechat,callback:function(e){t.$set(t.searchForm,"notMobileAndWechat","string"===typeof e?e.trim():e)},expression:"searchForm.notMobileAndWechat"}},[a("el-option",{attrs:{label:"是",value:"1"}}),t._v(" "),a("el-option",{attrs:{label:"否",value:"0"}})],1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"dates","label-width":t.formLabelWidth}},[a("el-date-picker",{staticStyle:{width:"405px"},attrs:{type:"daterange","range-separator":"至","start-placeholder":"操作开始日期","end-placeholder":"操作结束日期"},model:{value:t.searchForm.dates,callback:function(e){t.$set(t.searchForm,"dates",e)},expression:"searchForm.dates"}})],1),t._v(" "),a("el-form-item",{attrs:{prop:"hrbp"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择HRBP"},model:{value:t.searchForm.hrbp,callback:function(e){t.$set(t.searchForm,"hrbp","string"===typeof e?e.trim():e)},expression:"searchForm.hrbp"}},t._l(t.roleList,(function(t,e){return a("el-option",{key:e,attrs:{value:t.userId,label:t.userName}})})),1)],1),t._v(" "),a("el-form-item",{attrs:{prop:"intentionCity"}},[a("el-input",{attrs:{placeholder:"意向城市",clearable:""},model:{value:t.searchForm.intentionCity,callback:function(e){t.$set(t.searchForm,"intentionCity","string"===typeof e?e.trim():e)},expression:"searchForm.intentionCity"}})],1),t._v(" "),a("el-form-item",[a("el-button",{attrs:{type:"danger"},on:{click:t.search}},[t._v("搜索")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:t.onReSet}},[t._v("重置")]),t._v(" "),t.$helpers.permission("export/employeeInfo")?a("el-button",{attrs:{type:"primary"},on:{click:t.employeeExport}},[t._v("导出")]):t._e()],1)],1),t._v(" "),a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"employeeInfo/insert",expression:"'employeeInfo/insert'"}],staticStyle:{"margin-bottom":"20px"},attrs:{type:"primary"},on:{click:function(e){return t.openTypes("create")}}},[t._v("\n 添加\n ")]),t._v(" "),a("div",{staticClass:"tableWrap"},[a("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{width:"120px",align:"center",prop:"id",label:"编号"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"realName",label:"姓名"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.row.realName,placement:"top"}},[a("copy-text",[t._v(t._s(e.row.realName))])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"mobileNo",label:"手机号",width:"140px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("copy-text",[t._v(t._s(e.row.mobileNo))])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"wechatNo",label:"微信"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"学历信息"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return t.openEducation(e.row)}}},[t._v("查看学历")])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"subjectName",label:"声部",width:"200px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.row.subjectName,placement:"top"}},[a("span",[t._v(t._s(e.row.subjectName))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"liveCity",label:"所在城市"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"intentionCity",label:"意向城市",width:"100px"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:e.row.intentionCity,placement:"top"}},[a("span",[t._v(t._s(e.row.intentionCity))])])]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"sourceFrom",label:"信息来源"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"nextVisitDate",label:"下次沟通时间",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("dayjsFormat")(e.row.nextVisitDate))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"entryDate",label:"入职时间",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("dayjsFormat")(e.row.entryDate))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"position",label:"职位"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("jobType")(e.row.position))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"organName",label:"分部"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"status",label:"人员状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("hrStatus")(e.row.status))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"idCard",label:"证件号码",width:"200px"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"age",label:"年龄"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.age>0?e.row.age:"")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"gender",label:"性别"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s("boolean"===typeof e.row.gender?e.row.gender?"男":"女":"")+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"bankCardNo",label:"银行卡号",width:"200px"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"bankAddress",label:"开户行",width:"200px"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"emergencyContactName",label:"紧急联系人"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"emergencyContactRelation",label:"紧急联系人关系"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"emergencyContactPhone",label:"紧急联系人电话"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"updateTime",label:"最后一次操作时间时间",width:"160px"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"HRBP"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[a("copy-text",[t._v(t._s(t.roleFormat(e.row.hrbp)))])],1)]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"resignationDate",label:"离职时间",width:"150px"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("dayjsFormat")(e.row.resignationDate))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{align:"center",label:"操作",fixed:"right"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"employeeInfo/update",expression:"'employeeInfo/update'"}],attrs:{type:"text"},on:{click:function(a){return t.openTypes("update",e.row)}}},[t._v("修改")])]}}])})],1),t._v(" "),a("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size,sync:""},on:{"update:total":function(e){return t.$set(t.pageInfo,"total",e)},"update:page":function(e){return t.$set(t.pageInfo,"page",e)},"update:limit":function(e){return t.$set(t.pageInfo,"limit",e)},pagination:t.getList}})],1)],1),t._v(" "),t.typeStatus?a("el-dialog",{attrs:{title:t.formTitle[t.formActionTitle],visible:t.typeStatus,"close-on-click-modal":!1,width:"1150px"},on:{"update:visible":function(e){t.typeStatus=e},close:function(e){return t.onFormClose("ruleForm")}}},[t.typeStatus?a("hrform",{attrs:{detail:t.rowDetail,organList:t.organList,subjectList:t.subjectList,roleList:t.roleList,close:t.onFormClose,formActionTitle:t.formActionTitle,getList:t.getList},on:{"update:detail":function(e){t.rowDetail=e}}}):t._e()],1):t._e(),t._v(" "),t.educationVisible?a("el-dialog",{attrs:{title:"查看学历信息",visible:t.educationVisible,"close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(e){t.educationVisible=e},close:function(e){t.educationVisible=!1}}},[a("el-table",{attrs:{data:t.educationList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[a("el-table-column",{attrs:{align:"center",prop:"level",label:"学历"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"school",label:"毕业学校"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"year",label:"毕业时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("dayjsFormat")(e.row.year))+"\n ")]}}],null,!1,1286228941)})],1)],1):t._e()],1)},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("h2",[a("div",{staticClass:"squrt"}),t._v("\n 人力资源表\n ")])}],i=(a("ac6a"),a("a8db")),s=(a("7f7f"),a("c80c")),l=(a("96cf"),a("3b8d")),c=a("db72"),u=a("bd86"),d=a("333d"),p=a("adb2"),m=a("5a0c"),f=a.n(m),b=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"form"},[t._m(0),t._v(" "),a("el-form",{ref:"ruleForm",attrs:{model:t.form,rules:t.rules,"label-width":"0px"}},[a("div",{staticClass:"description-view"},[a("table",{staticClass:"description-table"},[a("tbody",[a("tr",{staticClass:"description-tr"},[a("th",{staticClass:"description-label"},[a("i",{staticClass:"requiredStar"},[t._v("*")]),t._v("姓名\n ")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"realName",rules:[{required:!0,message:"请输入姓名",trigger:"blur"}]}},[a("el-input",{attrs:{placeholder:"请输入姓名"},model:{value:t.form.realName,callback:function(e){t.$set(t.form,"realName",e)},expression:"form.realName"}})],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("年龄")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"age"}},[a("el-input",{attrs:{type:"number",min:"1",step:"1",placeholder:"请输入年龄"},model:{value:t.form.age,callback:function(e){t.$set(t.form,"age",e)},expression:"form.age"}})],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("性别")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"gender"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择性别"},model:{value:t.form.gender,callback:function(e){t.$set(t.form,"gender","string"===typeof e?e.trim():e)},expression:"form.gender"}},[a("el-option",{attrs:{label:"男",value:!0}}),t._v(" "),a("el-option",{attrs:{label:"女",value:!1}})],1)],1)],1)]),t._v(" "),a("tr",{staticClass:"description-tr"},[a("th",{staticClass:"description-label"},[a("i",{staticClass:"requiredStar"},[t._v("*")]),t._v("手机号\n ")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"mobileNo",rules:[{required:!0,message:"请输入手机号",trigger:"blur"},{pattern:/^1\d{10}$/,message:"请输入正确的手机号",trigger:"blur"}]}},[a("el-input",{attrs:{minlength:"11",maxlength:"11",placeholder:"请输入手机号",type:"tel"},model:{value:t.form.mobileNo,callback:function(e){t.$set(t.form,"mobileNo",e)},expression:"form.mobileNo"}})],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("微信号")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"wechatNo"}},[a("el-input",{attrs:{placeholder:"请输入微信号"},model:{value:t.form.wechatNo,callback:function(e){t.$set(t.form,"wechatNo",e)},expression:"form.wechatNo"}})],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("身份证号")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"idCard"}},[a("el-input",{attrs:{placeholder:"请输入身份证号"},model:{value:t.form.idCard,callback:function(e){t.$set(t.form,"idCard",e)},expression:"form.idCard"}})],1)],1)])])])]),t._v(" "),a("div",{staticClass:"description-title",staticStyle:{"margin-top":"20px"}},[a("span",[t._v("教育信息")])]),t._v(" "),a("div",{staticClass:"description-view"},[a("table",{staticClass:"description-table"},[a("tbody",t._l(t.form.educations,(function(e,r){return a("tr",{key:r,staticClass:"description-tr"},[a("th",{staticClass:"description-label desc-item"},[a("span",{staticClass:"close"},[a("i",0===r?{staticClass:"el-icon-circle-plus-outline",on:{click:t.addEducation}}:{staticClass:"el-icon-remove-outline",on:{click:function(e){return t.removeEducation(r)}}})]),t._v("学历\n ")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"educations."+r+".level"}},[a("el-input",{attrs:{placeholder:"请输入学历"},model:{value:t.form.educations[r].level,callback:function(e){t.$set(t.form.educations[r],"level",e)},expression:"form.educations[index].level"}})],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("学校")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"educations."+r+".school"}},[a("el-input",{attrs:{placeholder:"请输入学校"},model:{value:t.form.educations[r].school,callback:function(e){t.$set(t.form.educations[r],"school",e)},expression:"form.educations[index].school"}})],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("专业")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"educations."+r+".subject"}},[a("el-input",{attrs:{placeholder:"请输入专业"},model:{value:t.form.educations[r].subject,callback:function(e){t.$set(t.form.educations[r],"subject",e)},expression:"form.educations[index].subject"}})],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("毕业时间")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"educations."+r+".year"}},[a("el-date-picker",{attrs:{type:"month",placeholder:"请选择毕业时间"},model:{value:t.form.educations[r].year,callback:function(e){t.$set(t.form.educations[r],"year",e)},expression:"form.educations[index].year"}})],1)],1)])})),0)])]),t._v(" "),a("div",{staticClass:"description-title",staticStyle:{"margin-top":"20px"}},[a("span",[t._v("招聘信息")])]),t._v(" "),a("div",{staticClass:"description-view"},[a("table",{staticClass:"description-table"},[a("tbody",[a("tr",{staticClass:"description-tr"},[a("th",{staticClass:"description-label"},[t._v("所在城市")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"liveCity"}},[a("el-input",{attrs:{placeholder:"请输入所在城市"},model:{value:t.form.liveCity,callback:function(e){t.$set(t.form,"liveCity","string"===typeof e?e.trim():e)},expression:"form.liveCity"}})],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("意向城市")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"intentionCity"}},[a("el-input",{attrs:{placeholder:"请输入意向城市"},model:{value:t.form.intentionCity,callback:function(e){t.$set(t.form,"intentionCity","string"===typeof e?e.trim():e)},expression:"form.intentionCity"}})],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("意向合作模式")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"jobNature"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择意向合作模式"},model:{value:t.form.jobNature,callback:function(e){t.$set(t.form,"jobNature","string"===typeof e?e.trim():e)},expression:"form.jobNature"}},[a("el-option",{attrs:{label:"兼职",value:"PART_TIME"}}),t._v(" "),a("el-option",{attrs:{label:"全职",value:"FULL_TIME"}})],1)],1)],1)]),t._v(" "),a("tr",{staticClass:"description-tr"},[a("th",{staticClass:"description-label"},[t._v("岗位类别")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"jobType"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择岗位类别"},model:{value:t.form.jobType,callback:function(e){t.$set(t.form,"jobType","string"===typeof e?e.trim():e)},expression:"form.jobType"}},[a("el-option",{attrs:{label:"指导老师",value:"ADVISER"}}),t._v(" "),a("el-option",{attrs:{label:"乐团主管",value:"ACADEMIC"}}),t._v(" "),a("el-option",{attrs:{label:"乐队指导",value:"TEACHING"}})],1)],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("声部")]),t._v(" "),a("td",{staticClass:"description-content",attrs:{colspan:"3"}},[a("el-form-item",{attrs:{prop:"subjectIdList"}},[a("el-select",{attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":"",placeholder:"请选择声部"},model:{value:t.form.subjectIdList,callback:function(e){t.$set(t.form,"subjectIdList","string"===typeof e?e.trim():e)},expression:"form.subjectIdList"}},t._l(t.subjectList,(function(t,e){return a("el-option",{key:e,attrs:{value:String(t.id),label:t.name}})})),1)],1)],1)]),t._v(" "),a("tr",{staticClass:"description-tr"},[a("th",{staticClass:"description-label"},[t._v("信息来源")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"sourceFrom"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择信息来源"},model:{value:t.form.sourceFrom,callback:function(e){t.$set(t.form,"sourceFrom","string"===typeof e?e.trim():e)},expression:"form.sourceFrom"}},[a("el-option",{attrs:{label:"BOSS",value:"BOSS"}}),t._v(" "),a("el-option",{attrs:{label:"转介绍",value:"转介绍"}}),t._v(" "),a("el-option",{attrs:{label:"其它",value:"其它"}})],1)],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("人员状态")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"status"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择人员状态"},model:{value:t.form.status,callback:function(e){t.$set(t.form,"status","string"===typeof e?e.trim():e)},expression:"form.status"}},[a("el-option",{attrs:{label:"未录用",value:"NOT_EMPLOYED"}}),t._v(" "),a("el-option",{attrs:{label:"面试中",value:"INTERVIEWING"}}),t._v(" "),a("el-option",{attrs:{label:"储备",value:"RESERVE"}}),t._v(" "),a("el-option",{attrs:{label:"兼职",value:"PART_TIME"}}),t._v(" "),a("el-option",{attrs:{label:"全职",value:"FULL_TIME"}}),t._v(" "),a("el-option",{attrs:{label:"离职",value:"DIMISSION"}}),t._v(" "),a("el-option",{attrs:{label:"黑名单",value:"BLACK_LIST"}})],1)],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("HRBP")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"hrbp"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择HRBP"},model:{value:t.form.hrbp,callback:function(e){t.$set(t.form,"hrbp","string"===typeof e?e.trim():e)},expression:"form.hrbp"}},t._l(t.roleList,(function(t,e){return a("el-option",{key:e,attrs:{value:String(t.userId),label:t.userName}})})),1)],1)],1)])])])]),t._v(" "),a("div",{staticClass:"description-title",staticStyle:{"margin-top":"20px"}},[a("span",[t._v("在职信息")])]),t._v(" "),a("div",{staticClass:"description-view"},[a("table",{staticClass:"description-table"},[a("tbody",[a("tr",{staticClass:"description-tr"},[a("th",{staticClass:"description-label"},[t._v("入职日期")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"entryDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择入职日期"},model:{value:t.form.entryDate,callback:function(e){t.$set(t.form,"entryDate",e)},expression:"form.entryDate"}})],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("离职日期")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"resignationDate"}},[a("el-date-picker",{attrs:{type:"date",placeholder:"选择离职日期"},model:{value:t.form.resignationDate,callback:function(e){t.$set(t.form,"resignationDate",e)},expression:"form.resignationDate"}})],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("离职原因")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"resignationReason"}},[a("el-input",{attrs:{placeholder:"请输入离职原因"},model:{value:t.form.resignationReason,callback:function(e){t.$set(t.form,"resignationReason","string"===typeof e?e.trim():e)},expression:"form.resignationReason"}})],1)],1)]),t._v(" "),a("tr",{staticClass:"description-tr"},[a("th",{staticClass:"description-label"},[t._v("分部")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"organId"}},[a("el-select",{attrs:{placeholder:"请选择分部",clearable:"",filterable:""},model:{value:t.form.organId,callback:function(e){t.$set(t.form,"organId","string"===typeof e?e.trim():e)},expression:"form.organId"}},t._l(t.organList,(function(t,e){return a("el-option",{key:e,attrs:{value:t.id,label:t.name}})})),1)],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("职位")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"position"}},[a("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择职位"},model:{value:t.form.position,callback:function(e){t.$set(t.form,"position","string"===typeof e?e.trim():e)},expression:"form.position"}},[a("el-option",{attrs:{label:"指导老师",value:"ADVISER"}}),t._v(" "),a("el-option",{attrs:{label:"乐团主管",value:"ACADEMIC"}}),t._v(" "),a("el-option",{attrs:{label:"乐队指导",value:"TEACHING"}})],1)],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("声部")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"jobSubjectIdList"}},[a("el-select",{attrs:{clearable:"",filterable:"",multiple:"","collapse-tags":"",placeholder:"请选择声部"},model:{value:t.form.jobSubjectIdList,callback:function(e){t.$set(t.form,"jobSubjectIdList","string"===typeof e?e.trim():e)},expression:"form.jobSubjectIdList"}},t._l(t.subjectList,(function(t,e){return a("el-option",{key:e,attrs:{value:String(t.id),label:t.name}})})),1)],1)],1)]),t._v(" "),a("tr",{staticClass:"description-tr"},[a("th",{staticClass:"description-label"},[t._v("紧急联系人姓名")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"emergencyContactName"}},[a("el-input",{attrs:{placeholder:"请输入紧急联系人姓名"},model:{value:t.form.emergencyContactName,callback:function(e){t.$set(t.form,"emergencyContactName","string"===typeof e?e.trim():e)},expression:"form.emergencyContactName"}})],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("紧急联系人关系")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"emergencyContactRelation",rules:{required:t.propRequred,message:"请输入紧急联系人关系",trigger:"blur"}}},[a("el-input",{attrs:{placeholder:"请输入紧急联系人关系"},model:{value:t.form.emergencyContactRelation,callback:function(e){t.$set(t.form,"emergencyContactRelation","string"===typeof e?e.trim():e)},expression:"form.emergencyContactRelation"}})],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("紧急联系人电话")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"emergencyContactPhone",rules:[{min:11,max:11,message:"请输入正确的手机号码",trigger:"blur"}]}},[a("el-input",{attrs:{minlength:"11",maxlength:"11",placeholder:"请输入紧急联系人电话"},model:{value:t.form.emergencyContactPhone,callback:function(e){t.$set(t.form,"emergencyContactPhone","string"===typeof e?e.trim():e)},expression:"form.emergencyContactPhone"}})],1)],1)]),t._v(" "),a("tr",{staticClass:"description-tr"},[a("th",{staticClass:"description-label"},[t._v("开户行")]),t._v(" "),a("td",{staticClass:"description-content"},[a("el-form-item",{attrs:{prop:"bankAddress"}},[a("el-input",{attrs:{placeholder:"请输入开户行"},model:{value:t.form.bankAddress,callback:function(e){t.$set(t.form,"bankAddress",e)},expression:"form.bankAddress"}})],1)],1),t._v(" "),a("th",{staticClass:"description-label"},[t._v("银行卡号")]),t._v(" "),a("td",{staticClass:"description-content",attrs:{colspan:"3"}},[a("el-form-item",{attrs:{prop:"bankCardNo"}},[a("el-input",{attrs:{placeholder:"请输入银行卡号"},model:{value:t.form.bankCardNo,callback:function(e){t.$set(t.form,"bankCardNo",e)},expression:"form.bankCardNo"}})],1)],1)])])])])]),t._v(" "),"update"==t.formActionTitle?a("div",{staticClass:"tableWrap",staticStyle:{"margin-top":"20px"}},[a("div",{staticClass:"description-title head_title"},[a("span",[t._v("在职信息")]),t._v(" "),t.$helpers.permission("employeeInfo/insertVisit")?a("span",{staticClass:"createRecord",on:{click:t.onCreateRecord}},[t._v("新增沟通记录 >>")]):t._e()]),t._v(" "),a("el-table",{staticStyle:{width:"100% !important"},attrs:{data:t.tableList,"header-cell-style":{background:"#fafafa",color:"#444",borderTop:"1px solid #ebeef5"}}},[a("el-table-column",{attrs:{align:"center",prop:"createTime",label:"沟通时间"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"operatorName",label:"沟通人"}}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"content",label:"沟通结论","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.content)+"\n ")]}}],null,!1,602333492)}),t._v(" "),a("el-table-column",{attrs:{align:"center",prop:"nextVisitDate",label:"下次沟通时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("dayjsFormat")(e.row.nextVisitDate))+"\n ")]}}],null,!1,2425514816)})],1)],1):t._e(),t._v(" "),a("span",{staticClass:"dialog-footer"},[a("el-button",{on:{click:function(e){return t.close("ruleForm")}}},[t._v("取 消")]),t._v(" "),a("el-button",{staticClass:"main-button",attrs:{type:"primary"},on:{click:function(e){return t.onTypeSubmit("ruleForm")}}},[t._v("确 定")])],1),t._v(" "),t.recordStatus?a("el-dialog",{attrs:{title:"新增沟通记录",visible:t.recordStatus,"close-on-click-modal":!1,width:"500px","append-to-body":""},on:{"update:visible":function(e){t.recordStatus=e}}},[t.recordStatus?a("create-record",{attrs:{employeeInfoId:t.detail.id},on:{close:function(e){t.recordStatus=!1},getList:t.getRecordList}}):t._e()],1):t._e()],1)},h=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"description-title"},[a("span",[t._v("基本信息")])])}],v=a("75fc"),g=(a("28a5"),a("3607")),_=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{ref:"ruleForm",attrs:{model:t.form,rules:t.rules}},[a("el-form-item",{attrs:{label:"沟通结论","label-width":"120PX",prop:"content"}},[a("el-input",{attrs:{type:"textarea",rows:3,autocomplete:"off",maxlength:"255","show-word-limit":"",placeholder:"请输入沟通结论"},model:{value:t.form.content,callback:function(e){t.$set(t.form,"content","string"===typeof e?e.trim():e)},expression:"form.content"}})],1),t._v(" "),a("el-form-item",{attrs:{label:"下次沟通日期","label-width":"120PX",prop:"nextVisitDate"}},[a("el-date-picker",{staticStyle:{width:"100% !important"},attrs:{type:"date",placeholder:"请选择下次沟通日期"},model:{value:t.form.nextVisitDate,callback:function(e){t.$set(t.form,"nextVisitDate",e)},expression:"form.nextVisitDate"}})],1)],1),t._v(" "),a("div",{staticClass:"dialog-footer"},[a("el-button",{on:{click:function(e){return t.onClose("ruleForm")}}},[t._v("取 消")]),t._v(" "),a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onSubmit("ruleForm")}}},[t._v("确 定")])],1)],1)},y=[],j=a("a5b0"),C={components:{Tooltip:j["a"]},props:["close","employeeInfoId"],data:function(){return{form:{nextVisitDate:null,content:null},rules:{content:[{required:!0,message:"请输入沟通结论",trigger:"blur"}],nextVisitDate:[{required:!0,message:"请选择下次沟通日期",trigger:"change"}]}}},mounted:function(){console.log(this.employeeInfoId)},methods:{onSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(t){var a=Object.assign({},e.form),r=Object(c["a"])(Object(c["a"])({},a),{},{employeeInfoId:e.employeeInfoId});Object(g["o"])(r).then((function(t){200===t.code?(e.$message.success("创建成功"),e.onClose("ruleForm"),e.$listeners.getList()):e.$message.error(t.msg)}))}}))},onClose:function(t){this.$refs[t].resetFields(),this.$listeners.close()}}},I=C,O=(a("f23e"),a("2877")),k=Object(O["a"])(I,_,y,!1,null,"437c0474",null),x=k.exports,L=["educations","subjectIdList","jobSubjectIdList"],S={name:"hrform",props:["detail","subjectList","organList","close","getList","formActionTitle","roleList"],components:{CreateRecord:x},data:function(){return{recordStatus:!1,realName:"",form:{age:"",bankAddress:"",bankCardNo:"",birthdate:"",educationalBackground:"",emergencyContactName:"",emergencyContactPhone:"",emergencyContactRelation:"",entryDate:"",gender:"",idCard:"",intentionCity:"",assessmentResult:"",status:"",isProbationPeriod:"",liveCity:"",mobileNo:"",otherComment:"",position:"",realName:"",resignationDate:"",subjectIdList:[],jobSubjectIdList:[],wechatNo:"",organId:"",sourceFrom:"",educations:[{level:"",school:"",year:""}]},rules:{},tableList:[]}},watch:{detail:function(){this.updateData()}},mounted:function(){var t=Object(l["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.updateData(),"update"==this.formActionTitle&&this.getRecordList();case 2:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),computed:{propRequred:function(){return"PART_TIME"===this.form.status||"FULL_TIME"===this.form.status||"DIMISSION"===this.form.status}},methods:{updateData:function(){if(this.detail){try{this.detail.subjectIdList=this.detail.subjectIdList?this.detail.subjectIdList.split(","):[],this.detail.jobSubjectIdList=this.detail.jobSubjectIdList?this.detail.jobSubjectIdList.split(","):[]}catch(t){}0===this.detail.organId&&(this.detail.organId=""),0===this.detail.age&&(this.detail.age=""),this.form=Object.assign({educations:[{level:"",school:"",year:"",subject:""}]},this.detail);try{this.form.educations=JSON.parse(this.detail.educationalBackground),this.form.educations.length<1&&(this.form.educations=[{level:"",school:"",year:"",subject:""}]),this.form=Object(c["a"])({},this.form)}catch(t){}}else this.form.educations=[{level:"",school:"",year:"",subject:""}],this.form=Object(c["a"])({},this.form);this.$refs["ruleForm"].resetFields()},addEducation:function(){this.form.educations=[].concat(Object(v["a"])(this.form.educations),[{level:"",school:"",year:"",subject:""}]),this.form=Object(c["a"])({},this.form)},removeEducation:function(t){this.form.educations[t]=null,this.form.educations=this.form.educations.filter((function(t){return!!t})),this.form=Object(c["a"])({},this.form)},onTypeSubmit:function(){var t=this;this.$refs["ruleForm"].validate((function(e){if(e){var a=t.$message;t.form.educationalBackground=JSON.stringify(t.form.educations);var r=t.form,o=(r.educations,r.subjectIdList),n=r.jobSubjectIdList,s=Object(i["a"])(r,L);t.detail&&t.detail.id?Object(g["d"])(Object.assign({id:t.detail.id,subjectIdList:(o||[]).join(","),jobSubjectIdList:(n||[]).join(",")},s)).then((function(e){200===e.code&&(a.success("修改成功"),t.close("ruleForm"))})):Object(g["a"])(Object(c["a"])({subjectIdList:(o||[]).join(",")},s)).then((function(e){200===e.code?(a.success("创建成功"),t.close("ruleForm")):206==e.code&&t.$confirm(e.msg,"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(e){Object(g["a"])(Object(c["a"])(Object(c["a"])({subjectIdList:(o||[]).join(",")},s),{},{cover:!0})).then((function(e){200==e.code&&(a.success("提交成功"),t.close("ruleForm"))}))}))}))}}))},mobileOrWechatValidate:function(){this.$refs["ruleForm"].validateField("mobileNo")},onCreateRecord:function(){this.recordStatus=!0},getRecordList:function(){var t=this;Object(g["c"])({id:this.detail.id}).then((function(e){var a=e.data.employeeVisitList||[];t.tableList=a}))}}},w=S,T=(a("3278"),Object(O["a"])(w,b,h,!1,null,"15eaa89a",null)),F=T.exports,$=a("adb21"),N=a("e3eb"),D=a.n(N),E=a("1cc7"),A=(a("d349"),["dates"]),R=["dates"],P=function(t){var e,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t&&t.length?(e={},Object(u["a"])(e,a[0]||"start",f()(t[0]).format("YYYY-MM-DD")),Object(u["a"])(e,a[1]||"start",f()(t[1]).format("YYYY-MM-DD")),e):{}},M={organId:"",jobNature:"",position:"",subjectId:"",userNameOrIdOrMobile:"",operator:"",dates:[],intentionCity:"",hrbp:"",notMobileAndWechat:""},q=(r={components:{pagination:d["a"],hrform:F,saveform:p["a"]},name:"helpCategory",data:function(){return{searchForm:Object(c["a"])({},M),educationVisible:!1,treeList:[],tableList:[],educationList:[],formActionTitle:"create",formTitle:{create:"添加人员",update:"修改人员"},typeStatus:!1,formLabelWidth:"100px",form:{title:null,content:null,catalogId:null},rules:{title:[{required:!0,message:"请输入标题",trigger:"blur"}],content:[{required:!0,message:"请输入内容",trigger:"blur"}],catalogId:[{required:!0,message:"请输入选择分类",trigger:"blur"}]},pageInfo:{limit:10,page:1,total:0,page_size:[10,20,40,50]},rowDetail:null,tempTreeList:[],organList:[],subjectList:[],roleList:[]}},activated:function(){this.getList(),this.getSubjectList()},mounted:function(){var t=Object(l["a"])(Object(s["a"])().mark((function t(){return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:this.getList(),this.getSubjectList(),this.getTreeList();case 3:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),computed:{subjectListObj:function(){for(var t={},e=0;e<this.subjectList.length;e++){var a=this.subjectList[e];t[a.id]=a.name}return t},organListObj:function(){for(var t={},e=0;e<this.organList.length;e++){var a=this.organList[e];t[a.id]=a.name}return t}}},Object(u["a"])(r,"mounted",function(){var t=Object(l["a"])(Object(s["a"])().mark((function t(){var e=this;return Object(s["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.$store.dispatch("setOrganRole");case 2:this.roleList=this.selects.roles.HRBP||[],this.getList(),Object(E["gb"])().then((function(t){200==t.code&&(e.organList=t.data)})),this.getSubjectList();case 6:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}()),Object(u["a"])(r,"methods",{employeeExport:function(){var t=this.searchForm,e=t.dates,a=Object(i["a"])(t,A),r=Object(c["a"])(Object(c["a"])({},a),P(e,["startDate","endDate"]));Object($["a"])(this,{url:"/api-web/export/employeeInfo",fileName:"人力资源导出.xls",params:D()(Object(c["a"])({},r))},"是否确认导出人力资源?")},getSubjectList:function(){var t=this;Object(E["Kb"])({delFlag:0,tenantId:1}).then((function(e){var a=e.data;200==e.code&&(t.subjectList=a)}))},openEducation:function(t){try{this.educationList=t.educationalBackground?JSON.parse(t.educationalBackground):[],this.educationVisible=!0}catch(e){this.$message.error("数据解析失败")}},onTypeDelOpeation:function(t){var e=this;this.$confirm("您是否删除该内容?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){Object(g["l"])({id:t.id}).then((function(t){e.messageTips("删除",t)}))})).catch((function(){}))},search:function(){var t=this;this.$refs.searchForm.validate((function(e){t.pageInfo=Object(c["a"])(Object(c["a"])({},t.pageInfo),{},{page:1}),t.getList()}))},onReSet:function(){this.pageInfo=Object(c["a"])(Object(c["a"])({},this.pageInfo),{},{page:1}),this.$refs.searchForm.resetFields(),this.getList()},onTypeSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;if("create"==e.formActionTitle){var a={title:e.form.title,content:e.form.content,catalogId:e.form.catalogId[e.form.catalogId.length-1]};Object(g["n"])(a).then((function(t){e.messageTips("添加",t)}))}else if("update"==e.formActionTitle){var r={id:e.form.id,title:e.form.title,content:e.form.content,catalogId:e.form.catalogId[e.form.catalogId.length-1]};Object(g["n"])(r).then((function(t){e.messageTips("修改",t)}))}}))},messageTips:function(t,e){200==e.code?(this.$message.success(t+"成功"),this.typeStatus=!1,this.getList()):this.$message.error(e.msg)},getList:function(){var t=this,e=this.searchForm,a=e.dates,r=Object(i["a"])(e,R),o=Object(c["a"])(Object(c["a"])(Object(c["a"])({},r),P(a,["startDate","endDate"])),{},{page:this.pageInfo.page,rows:this.pageInfo.limit});Object(g["b"])(o).then((function(e){var a=e.data;200==e.code&&(t.tableList=a.rows,t.pageInfo.total=a.total)}))},getTreeList:function(){var t=this;Object(g["j"])({parentId:0}).then((function(e){var a=e.data;200==e.code&&(t.treeList=t.setTableData(a))}))},setTableData:function(t){var e=this,a=[];return a=t.map((function(t){var a={};return a={value:t.id,label:t.text,parentId:t.parentId},t.children&&t.children.length>0&&(a.children=e.setTableData(t.children)),a})),a},openTypes:function(t,e){this.rowDetail=Object(c["a"])({},e),this.typeStatus=!0,this.formActionTitle=t,"update"==t&&(this.form={id:e.id,title:e.title,content:e.content,catalogId:this.getAllIds(e)})},onToUrl:function(){this.$router.push("/helpCategory")},getAllIds:function(t){var e=[];this.getIdAndParent(this.treeList,e);var a=[];return this.getId(t.catalogId,a,e),a.reverse()},getIdAndParent:function(t,e){var a=this;t.forEach((function(t){var r={id:t.value,parentId:t.parentId};e.push(r),t.children&&a.getIdAndParent(t.children,e)}))},getId:function(t,e,a){var r=this;a.forEach((function(o){o.id==t&&(e.push(t),-1!=o.parentId&&r.getId(o.parentId,e,a))}))},onFormClose:function(t){this.rowDetail=null,this.typeStatus=!1,this.form={title:null,content:null,catalogId:[]},this.getList()},roleFormat:function(t){var e=this.roleList,a=null;return e.forEach((function(e){e.userId==t&&(a=e.userName)})),a}}),r),V=q;a("1599");a.d(e,"getTimes",(function(){return P}));var z=Object(O["a"])(V,o,n,!1,null,"5e8e8828",null);e["default"]=z.exports},d349:function(t,e,a){"use strict";a.d(e,"e",(function(){return u})),a.d(e,"d",(function(){return d})),a.d(e,"f",(function(){return p})),a.d(e,"c",(function(){return m})),a.d(e,"o",(function(){return f})),a.d(e,"D",(function(){return b})),a.d(e,"E",(function(){return h})),a.d(e,"F",(function(){return v})),a.d(e,"i",(function(){return g})),a.d(e,"g",(function(){return _})),a.d(e,"j",(function(){return y})),a.d(e,"r",(function(){return j})),a.d(e,"p",(function(){return C})),a.d(e,"q",(function(){return I})),a.d(e,"h",(function(){return O})),a.d(e,"s",(function(){return k})),a.d(e,"G",(function(){return x})),a.d(e,"k",(function(){return L})),a.d(e,"t",(function(){return S})),a.d(e,"w",(function(){return w})),a.d(e,"u",(function(){return T})),a.d(e,"v",(function(){return F})),a.d(e,"n",(function(){return $})),a.d(e,"b",(function(){return N})),a.d(e,"C",(function(){return D})),a.d(e,"m",(function(){return E})),a.d(e,"B",(function(){return A})),a.d(e,"a",(function(){return R})),a.d(e,"l",(function(){return P})),a.d(e,"y",(function(){return M})),a.d(e,"x",(function(){return q})),a.d(e,"z",(function(){return V})),a.d(e,"A",(function(){return z}));var r=a("a8db"),o=a("b775"),n=a("829b"),i=a("4328"),s=a.n(i),l=["id"],c="/api-web";function u(t){return Object(o["a"])({url:c+"/organization/queryPage",method:"get",params:t})}function d(t){return Object(o["a"])({url:c+"/organization/add",method:"post",data:s.a.stringify(t)})}function p(t){return Object(o["a"])({url:c+"/organization/update",method:"post",data:s.a.stringify(t)})}function m(t){return Object(n["a"])({url:c+"/area/queryChild",method:"get",hideLoading:!0,params:t})}function f(t){return Object(o["a"])({url:c+"/area/getParentArea/".concat(t.id),method:"get"})}function b(t){return Object(o["a"])({url:c+"/subject/queryPageByIdOrName",method:"post",data:s.a.stringify(t)})}function h(t){return Object(o["a"])({url:c+"/subject/queryPageTree",method:"get",params:t})}function v(t){return Object(o["a"])({url:c+"/subject/upset",method:"post",data:t})}function g(t){return Object(o["a"])({url:c+"/chargeType/upSet",method:"post",data:t})}function _(t){return Object(o["a"])({url:c+"/chargeType/del/".concat(t),method:"post"})}function y(t){return Object(o["a"])({url:c+"/courseHomeworkTemplate/queryPage",method:"post",data:t})}function j(t){return Object(o["a"])({url:c+"/courseHomeworkTemplate/update",method:"post",data:s.a.stringify(t)})}function C(t){return Object(o["a"])({url:c+"/courseHomeworkTemplate/add",method:"post",data:s.a.stringify(t)})}function I(t){return Object(o["a"])({url:c+"/courseHomeworkTemplate/del/".concat(t),method:"post"})}function O(t){return Object(n["a"])({url:c+"/chargeTypeSubjectMapper/queryPage",method:"get",data:{},params:t,requestType:"form"})}function k(t){return Object(n["a"])({url:c+"/chargeTypeSubjectMapper/insert",method:"post",data:t})}function x(t){return Object(n["a"])({url:c+"/chargeTypeSubjectMapper/update",method:"post",data:t})}function L(t){var e=t.id,a=Object(r["a"])(t,l);return Object(n["a"])({url:c+"/chargeTypeSubjectMapper/del/"+e,method:"post",params:a})}function S(t){return Object(n["a"])({url:c+"/musicGroupOrganizationCourseSettings/add",method:"post",data:t})}function w(t){return Object(n["a"])({url:c+"/musicGroupOrganizationCourseSettings/update",method:"post",data:t})}function T(t){return Object(n["a"])({url:c+"/musicGroupOrganizationCourseSettings/delSetting",method:"post",data:{},params:t,requestType:"form"})}function F(t){return Object(n["a"])({url:c+"/musicGroupOrganizationCourseSettings/queryPage",method:"get",data:{},params:t,requestType:"form"})}function $(t){return Object(n["a"])({url:c+"/organizationCourseUnitPriceSettings/queryPage",method:"get",params:t,data:{},requestType:"form"})}function N(t){return Object(n["a"])({url:c+"/organizationCourseUnitPriceSettings/save",method:"post",data:t})}function D(t){return Object(n["a"])({url:c+"/organizationCourseUnitPriceSettings/update",method:"post",data:t})}function E(t){return Object(n["a"])({url:c+"/organizationCourseDurationSettings/queryPage",method:"get",data:{},params:t})}function A(t){return Object(n["a"])({url:c+"/organizationCourseDurationSettings/update",method:"post",params:t})}function R(t){return Object(n["a"])({url:c+"/organizationCourseDurationSettings/insert",method:"post",params:t})}function P(t){return Object(n["a"])({url:c+"/organizationCourseDurationSettings/del",method:"post",data:t})}function M(t){return Object(n["a"])({url:c+"/organizationCloudTeacherFee/queryPage",method:"get",params:t})}function q(t){return Object(n["a"])({url:c+"/organizationCloudTeacherFee/add",method:"post",requestType:"form",data:t})}function V(t){return Object(n["a"])({url:c+"/organizationCloudTeacherFee/update",method:"post",requestType:"form",data:t})}function z(t,e){return Object(n["a"])({url:c+"/organizationCourseUnitPriceSettings/querySingle/".concat(t,"/").concat(e),method:"get"})}},f23e:function(t,e,a){"use strict";a("3a03")}}]);