| 1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-595633a2"],{"09f4":function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),Math.easeInOutQuad=function(t,e,n,a){return t/=a/2,t<1?n/2*t*t+e:(t--,-n/2*(t*(t-2)-1)+e)};var a=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(t){window.setTimeout(t,1e3/60)}}();function i(t){document.documentElement.scrollTop=t,document.body.parentNode.scrollTop=t,document.body.scrollTop=t}function r(){return document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop}function o(t,e,n){var o=r(),l=t-o,s=20,c=0;e="undefined"===typeof e?500:e;var u=function t(){c+=s;var r=Math.easeInOutQuad(c,o,l,e);i(r),c<e?a(t):n&&"function"===typeof n&&n()};u()}},"333d":function(t,e,n){"use strict";var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"pagination-container",class:{hidden:t.hidden}},[n("el-pagination",t._b({attrs:{"current-page":t.currentPage,"page-size":t.pageSize,layout:t.layout,"page-sizes":t.pageSizes,total:t.total},on:{"update:currentPage":function(e){t.currentPage=e},"update:current-page":function(e){t.currentPage=e},"update:pageSize":function(e){t.pageSize=e},"update:page-size":function(e){t.pageSize=e},"size-change":t.handleSizeChange,"current-change":t.handleCurrentChange}},"el-pagination",t.$attrs,!1))],1)},i=[],r=(n("c5f6"),n("09f4")),o={name:"Pagination",props:{total:{required:!0,type:Number},page:{type:Number,default:1},limit:{type:Number,default:10},pageSizes:{type:Array,default:function(){return[10,20,30,50]}},layout:{type:String,default:"total,sizes,prev, pager, next, jumper"},background:{type:Boolean,default:!0},autoScroll:{type:Boolean,default:!0},hidden:{type:Boolean,default:!1}},computed:{currentPage:{get:function(){return this.page},set:function(t){this.$emit("update:page",t)}},pageSize:{get:function(){return this.limit},set:function(t){this.$emit("update:limit",t)}}},methods:{handleSizeChange:function(t){this.$emit("pagination",{page:this.currentPage,limit:t}),this.autoScroll&&Object(r["a"])(0,800)},handleCurrentChange:function(t){this.$emit("pagination",{page:t,limit:this.pageSize}),this.autoScroll&&Object(r["a"])(0,800)}}},l=o,s=(n("c0b9"),n("2877")),c=Object(s["a"])(l,a,i,!1,null,"31cb099a",null);e["a"]=c.exports},3607:function(t,e,n){"use strict";n.d(e,"e",(function(){return l})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"c",(function(){return u})),n.d(e,"g",(function(){return d})),n.d(e,"h",(function(){return p})),n.d(e,"f",(function(){return m})),n.d(e,"j",(function(){return f})),n.d(e,"k",(function(){return b})),n.d(e,"i",(function(){return v})),n.d(e,"l",(function(){return h})),n.d(e,"a",(function(){return g}));var a=n("b775"),i=n("4328"),r=n.n(i),o="/api-web";function l(t){return Object(a["a"])({url:o+"/tenantEntryActivities/queryPage",method:"get",params:t})}function s(t){return Object(a["a"])({url:o+"/tenantEntryActivities/merge",method:"post",data:t})}function c(t){return Object(a["a"])({url:o+"/tenantEntryActivities/updateDelFlag",method:"post",data:r.a.stringify(t)})}function u(t){return Object(a["a"])({url:o+"/tenantEntryActivities/query",method:"get",params:t})}function d(t){return Object(a["a"])({url:"/api-cms/helpCenterCatalog/list",method:"get",params:t})}function p(t){return Object(a["a"])({url:"/api-cms/helpCenterCatalog/modify",method:"post",data:r.a.stringify(t)})}function m(t){return Object(a["a"])({url:"/api-cms/helpCenterCatalog/delete",method:"post",data:r.a.stringify(t)})}function f(t){return Object(a["a"])({url:"/api-cms/helpCenterContent/list",method:"get",params:t})}function b(t){return Object(a["a"])({url:"/api-cms/helpCenterContent/modify",method:"post",data:r.a.stringify(t)})}function v(t){return Object(a["a"])({url:"/api-cms/helpCenterContent/delete",method:"post",data:r.a.stringify(t)})}function h(t){return Object(a["a"])({url:"/api-web/sysSuggestion/queryPage",method:"get",params:t})}function g(t){return Object(a["a"])({method:"get",url:"/api-web/employeeInfo/queryPage",params:t})}},"5e85":function(t,e,n){},8458:function(t,e,n){"use strict";var a=n("cffc"),i=n.n(a);i.a},c0b9:function(t,e,n){"use strict";var a=n("de4e"),i=n.n(a);i.a},c498:function(t,e,n){},cce4:function(t,e,n){"use strict";n.r(e);var a=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"m-container"},[t._m(0),t._v(" "),n("div",{staticClass:"m-core"},[n("div",{directives:[{name:"permission",rawName:"v-permission",value:"helpCenterContent/modify",expression:"'helpCenterContent/modify'"}],staticClass:"newBand",on:{click:function(e){return t.openTypes("create")}}},[t._v("添加")]),t._v(" "),n("el-form",{staticClass:"searchForm",attrs:{inline:!0},model:{value:t.searchForm,callback:function(e){t.searchForm="string"===typeof e?e.trim():e},expression:"searchForm"}},[n("el-form-item",[n("el-input",{attrs:{placeholder:"姓名手机号"},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(" "),n("el-form-item",[n("el-select",{attrs:{clearable:"",filterable:"",placeholder:"请选择员工类型"},model:{value:t.searchForm.jobNature,callback:function(e){t.$set(t.searchForm,"jobNature","string"===typeof e?e.trim():e)},expression:"searchForm.jobNature"}},[n("el-option",{attrs:{label:"全职",value:"FULL_TIME"}}),t._v(" "),n("el-option",{attrs:{label:"兼职",value:"PART_TIME"}}),t._v(" "),n("el-option",{attrs:{label:"临时",value:"TEMPORARY"}})],1)],1),t._v(" "),n("el-form-item",[n("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"}},[n("el-option",{attrs:{label:"指导老师",value:"ADVISER"}}),t._v(" "),n("el-option",{attrs:{label:"教务老师",value:"ACADEMIC"}}),t._v(" "),n("el-option",{attrs:{label:"乐队指导",value:"TEACHING"}})],1)],1),t._v(" "),n("el-form-item",[n("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 n("el-option",{key:e,attrs:{value:t.id,label:t.name}})})),1)],1),t._v(" "),n("el-form-item",{attrs:{prop:"subjectIds","label-width":t.formLabelWidth}},[n("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(e){return n("el-option-group",{key:e.label,attrs:{label:e.label}},t._l(e.options,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)})),1)],1),t._v(" "),n("el-form-item",[n("el-button",{attrs:{type:"danger"},on:{click:t.getList}},[t._v("搜索")])],1)],1),t._v(" "),n("div",{staticClass:"tableWrap"},[n("el-table",{attrs:{data:t.tableList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{width:"120px",align:"center",prop:"id",label:"编号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"realName",label:"姓名"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"mobileNo",label:"手机号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"wechatNo",label:"微信"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"学历信息"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{attrs:{type:"text"},on:{click:function(n){return t.openEducation(e.row)}}},[t._v("查看学历")])]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"subjectId",label:"声部"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.subjectListObj[e.row.subjectId])+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"liveCity",label:"所在城市"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"intentionCity",label:"工作意向"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"isInterviewed",label:"是否经过评估"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.gender?"是":"否")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"otherComment",label:"其它综合情况"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"entryDate",label:"入职时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("dayjsFormat")(e.row.entryDate))+"\n ")]}}])}),t._v(" "),n("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(" "),n("el-table-column",{attrs:{align:"center",prop:"organId",label:"分部"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t.organListObj[e.row.organId])+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"jobNature",label:"员工类型"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("jobNature")(e.row.jobNature))+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"isProbationPeriod",label:"员工状态"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.isProbationPeriod?"正式":"试用")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"idCard",label:"证件号码"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"age",label:"年龄"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"gender",label:"性别"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(e.row.gender?"男":"女")+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"bankCardNo",label:"银行卡号"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"bankAddress",label:"开户行"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"emergencyContactName",label:"紧急联系人"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"emergencyContactRelation",label:"紧急联系人关系"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"emergencyContactPhone",label:"紧急联系人电话"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"resignationDate",label:"离职时间"},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("dayjsFormat")(e.row.resignationDate))+"\n ")]}}])}),t._v(" "),n("el-table-column",{attrs:{align:"center",label:"操作"},scopedSlots:t._u([{key:"default",fn:function(e){return[n("el-button",{directives:[{name:"permission",rawName:"v-permission",value:"helpCenterContent/modify",expression:"'helpCenterContent/modify'"}],attrs:{type:"text"},on:{click:function(n){return t.openTypes("update",e.row)}}},[t._v("修改")])]}}])})],1),t._v(" "),n("pagination",{attrs:{total:t.pageInfo.total,page:t.pageInfo.page,limit:t.pageInfo.limit,"page-sizes":t.pageInfo.page_size},on:{"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(" "),n("el-dialog",{attrs:{title:t.formTitle[t.formActionTitle],visible:t.typeStatus,"destroy-on-close":"","close-on-click-modal":!1,width:"1050px"},on:{"update:visible":function(e){t.typeStatus=e},close:function(e){return t.onFormClose("ruleForm")}}},[n("hrform",{attrs:{detail:t.rowDetail,organList:t.organList,subjectList:t.subjectList,close:t.onFormClose},on:{"update:detail":function(e){t.rowDetail=e}}})],1),t._v(" "),n("el-dialog",{attrs:{title:"查看学历信息",visible:t.educationVisible,"destroy-on-close":"","close-on-click-modal":!1,width:"600px"},on:{"update:visible":function(e){t.educationVisible=e},close:function(e){t.educationVisible=!1}}},[n("el-table",{attrs:{data:t.educationList,"header-cell-style":{background:"#EDEEF0",color:"#444"}}},[n("el-table-column",{attrs:{align:"center",prop:"level",label:"学历"}}),t._v(" "),n("el-table-column",{attrs:{align:"center",prop:"school",label:"毕业学校"}}),t._v(" "),n("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 ")]}}])})],1)],1)],1)},i=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("h2",[n("div",{staticClass:"squrt"}),t._v("人力资源表\n ")])}],r=n("db72"),o=(n("ac6a"),n("7f7f"),n("333d")),l=(n("5a0c"),function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[t._m(0),t._v(" "),n("el-form",{ref:"ruleForm",attrs:{model:t.form,rules:t.rules,"label-width":"0px"}},[n("div",{staticClass:"description-view"},[n("table",{staticClass:"description-table"},[n("tbody",[n("tr",{staticClass:"description-tr"},[n("th",{staticClass:"description-label"},[t._v("姓名")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-input",{attrs:{size:"mini",placeholder:"请输入姓名"},model:{value:t.form.realName,callback:function(e){t.$set(t.form,"realName",e)},expression:"form.realName"}})],1),t._v(" "),n("th",{staticClass:"description-label"},[t._v("手机号")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-input",{attrs:{size:"mini",placeholder:"请输入手机号"},model:{value:t.form.mobileNo,callback:function(e){t.$set(t.form,"mobileNo",e)},expression:"form.mobileNo"}})],1),t._v(" "),n("th",{staticClass:"description-label"},[t._v("微信号")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-input",{attrs:{size:"mini",placeholder:"请输入微信号"},model:{value:t.form.wechatNo,callback:function(e){t.$set(t.form,"wechatNo",e)},expression:"form.wechatNo"}})],1)]),t._v(" "),t._l(t.educations,(function(e,a){return n("tr",{key:a,staticClass:"description-tr"},[n("th",{staticClass:"description-label desc-item"},[n("span",{staticClass:"close"},[n("i",0===a?{staticClass:"el-icon-circle-plus-outline",on:{click:t.addEducation}}:{staticClass:"el-icon-remove-outline",on:{click:function(e){return t.removeEducation(a)}}})]),t._v("学历")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-input",{attrs:{size:"mini",placeholder:"请输入学历"},model:{value:t.educations[a].level,callback:function(e){t.$set(t.educations[a],"level",e)},expression:"educations[index].level"}})],1),t._v(" "),n("th",{staticClass:"description-label"},[t._v("学校")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-input",{attrs:{size:"mini",placeholder:"请输入学校"},model:{value:t.educations[a].school,callback:function(e){t.$set(t.educations[a],"school",e)},expression:"educations[index].school"}})],1),t._v(" "),n("th",{staticClass:"description-label"},[t._v("毕业时间")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-date-picker",{attrs:{type:"month",placeholder:"请选择毕业时间",size:"mini"},model:{value:t.educations[a].year,callback:function(e){t.$set(t.educations[a],"year",e)},expression:"educations[index].year"}})],1)])})),t._v(" "),n("tr",{staticClass:"description-tr"},[n("th",{staticClass:"description-label"},[t._v("所在城市")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-input",{attrs:{size:"mini",placeholder:"请输入所在城市"},model:{value:t.form.liveCity,callback:function(e){t.$set(t.form,"liveCity","string"===typeof e?e.trim():e)},expression:"form.liveCity"}})],1),t._v(" "),n("th",{staticClass:"description-label"},[t._v("工作意向")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-input",{attrs:{size:"mini",placeholder:"请输入工作意向"},model:{value:t.form.intentionCity,callback:function(e){t.$set(t.form,"intentionCity","string"===typeof e?e.trim():e)},expression:"form.intentionCity"}})],1),t._v(" "),n("th",{staticClass:"description-label"},[t._v("声部")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-select",{attrs:{clearable:"",filterable:"",size:"mini",placeholder:"请选择声部"},model:{value:t.form.subjectId,callback:function(e){t.$set(t.form,"subjectId","string"===typeof e?e.trim():e)},expression:"form.subjectId"}},t._l(t.subjectList,(function(e){return n("el-option-group",{key:e.label,attrs:{label:e.label}},t._l(e.options,(function(t){return n("el-option",{key:t.value,attrs:{label:t.label,value:t.value}})})),1)})),1)],1)]),t._v(" "),n("tr",{staticClass:"description-tr"},[n("th",{staticClass:"description-label"},[t._v("是否经过评估")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-select",{attrs:{size:"mini",clearable:"",filterable:"",placeholder:"请选择是否经过评估"},model:{value:t.form.isInterviewed,callback:function(e){t.$set(t.form,"isInterviewed","string"===typeof e?e.trim():e)},expression:"form.isInterviewed"}},[n("el-option",{attrs:{label:"是",value:!0}}),t._v(" "),n("el-option",{attrs:{label:"否",value:!1}})],1)],1),t._v(" "),n("th",{staticClass:"description-label"},[t._v("其他综合情况")]),t._v(" "),n("td",{staticClass:"description-content",attrs:{colspan:"3"}},[n("el-input",{attrs:{size:"mini",placeholder:"请输入其他综合情况"},model:{value:t.form.otherComment,callback:function(e){t.$set(t.form,"otherComment","string"===typeof e?e.trim():e)},expression:"form.otherComment"}})],1)])],2)])]),t._v(" "),n("div",{staticClass:"description-title",staticStyle:{"margin-top":"20px"}},[n("span",[t._v("在职信息")])]),t._v(" "),n("div",{staticClass:"description-view"},[n("table",{staticClass:"description-table"},[n("tbody",[n("tr",{staticClass:"description-tr"},[n("th",{staticClass:"description-label"},[t._v("入职日期")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-date-picker",{attrs:{type:"date",placeholder:"选择入职日期",size:"mini"},model:{value:t.form.entryDate,callback:function(e){t.$set(t.form,"entryDate",e)},expression:"form.entryDate"}})],1),t._v(" "),n("th",{staticClass:"description-label"},[t._v("职位")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-select",{attrs:{clearable:"",filterable:"",size:"mini",placeholder:"请选择职位"},model:{value:t.form.position,callback:function(e){t.$set(t.form,"position","string"===typeof e?e.trim():e)},expression:"form.position"}},[n("el-option",{attrs:{label:"指导老师",value:"ADVISER"}}),t._v(" "),n("el-option",{attrs:{label:"教务老师",value:"ACADEMIC"}}),t._v(" "),n("el-option",{attrs:{label:"乐队指导",value:"TEACHING"}})],1)],1),t._v(" "),n("th",{staticClass:"description-label"},[t._v("分部")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-select",{attrs:{placeholder:"请选择分部",clearable:"",filterable:"",size:"mini"},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 n("el-option",{key:e,attrs:{value:t.id,label:t.name}})})),1)],1)]),t._v(" "),n("tr",{staticClass:"description-tr"},[n("th",{staticClass:"description-label"},[t._v("员工类型")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-select",{attrs:{size:"mini",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"}},[n("el-option",{attrs:{label:"全职",value:"FULL_TIME"}}),t._v(" "),n("el-option",{attrs:{label:"兼职",value:"PART_TIME"}}),t._v(" "),n("el-option",{attrs:{label:"临时",value:"TEMPORARY"}})],1)],1),t._v(" "),n("th",{staticClass:"description-label"},[t._v("员工状态")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-select",{attrs:{size:"mini",clearable:"",filterable:"",placeholder:"请选择员工状态"},model:{value:t.form.isProbationPeriod,callback:function(e){t.$set(t.form,"isProbationPeriod","string"===typeof e?e.trim():e)},expression:"form.isProbationPeriod"}},[n("el-option",{attrs:{label:"正式",value:!0}}),t._v(" "),n("el-option",{attrs:{label:"试用",value:!1}})],1)],1),t._v(" "),n("th",{staticClass:"description-label"},[t._v("离职日期")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-date-picker",{attrs:{type:"date",placeholder:"选择离职日期",size:"mini"},model:{value:t.form.resignationDate,callback:function(e){t.$set(t.form,"resignationDate",e)},expression:"form.resignationDate"}})],1)]),t._v(" "),n("tr",{staticClass:"description-tr"},[n("th",{staticClass:"description-label"},[t._v("证件号码")]),t._v(" "),n("td",{staticClass:"description-content",attrs:{colspan:"5"}},[n("el-input",{attrs:{size:"mini",placeholder:"请输入证件号码"},model:{value:t.form.idCard,callback:function(e){t.$set(t.form,"idCard",e)},expression:"form.idCard"}})],1)]),t._v(" "),n("tr",{staticClass:"description-tr"},[n("th",{staticClass:"description-label"},[t._v("年龄")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-form-item",{attrs:{prop:"age"}},[n("el-input",{attrs:{size:"mini",placeholder:"请输入年龄"},model:{value:t.form.age,callback:function(e){t.$set(t.form,"age",e)},expression:"form.age"}})],1)],1),t._v(" "),n("th",{staticClass:"description-label"},[t._v("性别")]),t._v(" "),n("td",{staticClass:"description-content",attrs:{colspan:"3"}},[n("el-select",{attrs:{size:"mini",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"}},[n("el-option",{attrs:{label:"男",value:!0}}),t._v(" "),n("el-option",{attrs:{label:"女",value:!1}})],1)],1)]),t._v(" "),n("tr",{staticClass:"description-tr"},[n("th",{staticClass:"description-label"},[t._v("开户行")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-input",{attrs:{size:"mini",placeholder:"请输入开户行"},model:{value:t.form.bankAddress,callback:function(e){t.$set(t.form,"bankAddress",e)},expression:"form.bankAddress"}})],1),t._v(" "),n("th",{staticClass:"description-label"},[t._v("银行卡号")]),t._v(" "),n("td",{staticClass:"description-content",attrs:{colspan:"3"}},[n("el-input",{attrs:{size:"mini",placeholder:"请输入银行卡号"},model:{value:t.form.bankCardNo,callback:function(e){t.$set(t.form,"bankCardNo",e)},expression:"form.bankCardNo"}})],1)]),t._v(" "),n("tr",{staticClass:"description-tr"},[n("th",{staticClass:"description-label"},[t._v("紧急联系人姓名")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-input",{attrs:{size:"mini",placeholder:"请输入紧急联系人姓名"},model:{value:t.form.emergencyContactName,callback:function(e){t.$set(t.form,"emergencyContactName","string"===typeof e?e.trim():e)},expression:"form.emergencyContactName"}})],1),t._v(" "),n("th",{staticClass:"description-label"},[t._v("紧急联系人关系")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-input",{attrs:{size:"mini",placeholder:"请输入紧急联系人关系"},model:{value:t.form.emergencyContactRelation,callback:function(e){t.$set(t.form,"emergencyContactRelation","string"===typeof e?e.trim():e)},expression:"form.emergencyContactRelation"}})],1),t._v(" "),n("th",{staticClass:"description-label"},[t._v("紧急联系人电话")]),t._v(" "),n("td",{staticClass:"description-content"},[n("el-input",{attrs:{size:"mini",placeholder:"请输入紧急联系人电话"},model:{value:t.form.emergencyContactPhone,callback:function(e){t.$set(t.form,"emergencyContactPhone","string"===typeof e?e.trim():e)},expression:"form.emergencyContactPhone"}})],1)])])])])]),t._v(" "),n("span",{staticClass:"dialog-footer"},[n("el-button",{on:{click:function(e){return t.close("ruleForm")}}},[t._v("取 消")]),t._v(" "),n("el-button",{staticClass:"main-button",attrs:{type:"primary"},on:{click:function(e){return t.onTypeSubmit("ruleForm")}}},[t._v("确 定")])],1)],1)}),s=[function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"description-title"},[n("span",[t._v("基本信息")])])}],c=n("75fc"),u=n("3607"),d=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",[n("div",{staticClass:"description-title"},[t._t("title",[t._v(t._s(t.title))])],2),t._v(" "),n("div",{staticClass:"description-view"},[n("table",{staticClass:"description-table"},[n("tbody",t._l(t.rows,(function(e,a){return n("tr",{key:a,staticClass:"description-tr"},[t._l(e,(function(e,i){return[n("th",{key:"label-"+a+"-"+i,staticClass:"description-label"},[t._v("\n "+t._s(e.label)+"\n ")]),t._v(" "),n("td",{key:"content-"+a+"-"+i,staticClass:"description-content",attrs:{colSpan:2*e.span-1}},[n("description-content",{attrs:{item:e}})],1)]}))],2)})),0)])])])},p=[],m=(n("c5f6"),{name:"Descriptions",components:{DescriptionContent:{props:{item:Object},render:function(t){return this.item.children}}},props:{title:null,column:{type:Number,default:4}},data:function(){return{rows:[]}},watch:{column:function(t){this.generateChildrenRow(this.$slots.default||[])}},mounted:function(){this.generateChildrenRow(this.$slots.default||[])},methods:{generateChildrenRow:function(t){var e=this,n=t.filter((function(t){return"descriptions-item"===t.tag}));console.log(n),this.rows=[];var a=this.column,i=[];n.forEach((function(t,o){var l=t.data.attrs||{};a<=(l.span||1)?(l.span=a,a=0):a-=l.span||1,i.push(Object(r["a"])({span:l.span||1,label:t.data&&l.label||""},t)),a<=0&&(a=e.column,e.$set(e.rows,e.rows.length,i),i=[]),n.length%e.column<e.column&&o===n.length-1&&e.$set(e.rows,e.rows.length,i)}))}}}),f=m,b=(n("d346"),n("2877")),v=Object(b["a"])(f,d,p,!1,null,"2186a818",null),h=v.exports;h.install=function(t){return t.component(h.name,h)};var g=h,_={name:"hrform",props:["detail","subjectList","organList","close"],components:{descriptions:g},data:function(){return{realName:"",form:{age:"",bankAddress:"",bankCardNo:"",birthdate:"",createTime:"",educationalBackground:"",emergencyContactName:"",emergencyContactPhone:"",emergencyContactRelation:"",entryDate:"",gender:!0,idCard:"",intentionCity:"",isInterviewed:!0,isProbationPeriod:!0,jobNature:"",liveCity:"",mobileNo:"",otherComment:"",position:"",realName:"",resignationDate:"",subjectId:"",wechatNo:""},rules:{age:[{required:!0,message:"请输入年龄",trigger:"blur"}]},educations:[]}},watch:{detail:function(){this.updateData()}},mounted:function(){this.updateData()},methods:{updateData:function(){if(this.detail){this.form=Object.assign({},this.detail);try{this.educations=JSON.parse(this.detail.educationalBackground)}catch(t){}}else this.educations=[{level:"",school:"",year:""}]},addEducation:function(){this.educations=[].concat(Object(c["a"])(this.educations),[{level:"",school:"",year:""}])},removeEducation:function(t){this.educations[t]=null,this.educations=this.educations.filter((function(t){return!!t}))},onTypeSubmit:function(){this.$refs["ruleForm"].validate((function(t){console.log(t)}))}}},y=_,C=(n("d3c4"),Object(b["a"])(y,l,s,!1,null,"144fe7d0",null)),j=C.exports,k=n("1cc7"),w=n("d349"),I={components:{pagination:o["a"],hrform:j},name:"helpCategory",data:function(){return{searchForm:{organId:"",jobNature:"",position:"",subjectId:"",userNameOrIdOrMobile:""},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:[]}},activated:function(){this.getList()},computed:{subjectListObj:function(){for(var t={},e=0;e<this.subjectList.length;e++)for(var n=this.subjectList[e],a=0;a<n.options.length;a++){var i=n.options[a];t[i.value]=i.label}return t},organListObj:function(){for(var t={},e=0;e<this.organList.length;e++){var n=this.organList[e];t[n.id]=n.name}return t}},mounted:function(){var t=this;this.getList(),this.getTreeList(),Object(k["R"])().then((function(e){200==e.code&&(t.organList=e.data)})),Object(w["r"])({delFlag:0,rows:9999}).then((function(e){var n=e.data;if(200==e.code){var a=[];n.rows.forEach((function(t,e){var n=[];t.subjects.forEach((function(t){n.push({value:t.id,label:t.name})})),a[e]={label:t.name,options:n}})),t.subjectList=a}}))},methods:{openEducation:function(t){try{this.educationList=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(u["i"])({id:t.id}).then((function(t){e.messageTips("删除",t)}))})).catch((function(){}))},onTypeSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(!t)return!1;if("create"==e.formActionTitle){var n={title:e.form.title,content:e.form.content,catalogId:e.form.catalogId[e.form.catalogId.length-1]};Object(u["k"])(n).then((function(t){e.messageTips("添加",t)}))}else if("update"==e.formActionTitle){var a={id:e.form.id,title:e.form.title,content:e.form.content,catalogId:e.form.catalogId[e.form.catalogId.length-1]};Object(u["k"])(a).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=Object(r["a"])({},this.searchForm,{page:this.pageInfo.page,rows:this.pageInfo.limit});Object(u["a"])(e).then((function(e){var n=e.data;200==e.code&&(t.tableList=n.rows,t.pageInfo.total=n.total)}))},getTreeList:function(){var t=this;Object(u["g"])({parentId:0}).then((function(e){var n=e.data;200==e.code&&(t.treeList=t.setTableData(n))}))},setTableData:function(t){var e=this,n=[];return n=t.map((function(t){var n={};return n={value:t.id,label:t.text,parentId:t.parentId},t.children&&t.children.length>0&&(n.children=e.setTableData(t.children)),n})),n},openTypes:function(t,e){this.rowDetail=Object(r["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("/insideSetting/helpCategory")},getAllIds:function(t){var e=[];this.getIdAndParent(this.treeList,e);var n=[];return this.getId(t.catalogId,n,e),n.reverse()},getIdAndParent:function(t,e){var n=this;t.forEach((function(t){var a={id:t.value,parentId:t.parentId};e.push(a),t.children&&n.getIdAndParent(t.children,e)}))},getId:function(t,e,n){var a=this;n.forEach((function(i){i.id==t&&(e.push(t),-1!=i.parentId&&a.getId(i.parentId,e,n))}))},onFormClose:function(t){this.rowDetail=null,this.typeStatus=!1,this.form={title:null,content:null,catalogId:[]}}}},O=I,T=(n("8458"),Object(b["a"])(O,a,i,!1,null,"98bb754c",null));e["default"]=T.exports},cffc:function(t,e,n){},d346:function(t,e,n){"use strict";var a=n("c498"),i=n.n(a);i.a},d349:function(t,e,n){"use strict";n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return s})),n.d(e,"d",(function(){return c})),n.d(e,"a",(function(){return u})),n.d(e,"n",(function(){return d})),n.d(e,"r",(function(){return p})),n.d(e,"s",(function(){return m})),n.d(e,"f",(function(){return f})),n.d(e,"k",(function(){return b})),n.d(e,"e",(function(){return v})),n.d(e,"l",(function(){return h})),n.d(e,"q",(function(){return g})),n.d(e,"o",(function(){return _})),n.d(e,"p",(function(){return y})),n.d(e,"h",(function(){return C})),n.d(e,"i",(function(){return j})),n.d(e,"j",(function(){return k})),n.d(e,"g",(function(){return w})),n.d(e,"m",(function(){return I}));var a=n("b775"),i=n("4328"),r=n.n(i),o="/api-web";function l(t){return Object(a["a"])({url:o+"/organization/queryPage",method:"get",params:t})}function s(t){return Object(a["a"])({url:o+"/organization/add",method:"post",data:r.a.stringify(t)})}function c(t){return Object(a["a"])({url:o+"/organization/update",method:"post",data:r.a.stringify(t)})}function u(t){return Object(a["a"])({url:o+"/area/queryChild",method:"get",params:t})}function d(t){return Object(a["a"])({url:o+"/area/getParentArea/".concat(t.id),method:"get"})}function p(t){return Object(a["a"])({url:o+"/subject/queryPageTree",method:"get",params:t})}function m(t){return Object(a["a"])({url:o+"/subject/upset",method:"post",data:t})}function f(t){return Object(a["a"])({url:o+"/chargeType/queryPage",method:"get",params:t})}function b(t){return Object(a["a"])({url:o+"/chargeType/upSet",method:"post",data:t})}function v(t){return Object(a["a"])({url:o+"/chargeType/del/".concat(t),method:"post"})}function h(t){return Object(a["a"])({url:o+"/courseHomeworkTemplate/queryPage",method:"post",data:t})}function g(t){return Object(a["a"])({url:o+"/courseHomeworkTemplate/update",method:"post",data:r.a.stringify(t)})}function _(t){return Object(a["a"])({url:o+"/courseHomeworkTemplate/add",method:"post",data:r.a.stringify(t)})}function y(t){return Object(a["a"])({url:o+"/courseHomeworkTemplate/del/".concat(t),method:"post"})}function C(t){return Object(a["a"])({url:o+"/chargeTypeOrganizationFee/add",method:"post",data:r.a.stringify(t)})}function j(t){return Object(a["a"])({url:o+"/chargeTypeOrganizationFee/delete",method:"post",data:r.a.stringify(t)})}function k(t){return Object(a["a"])({url:o+"/chargeTypeOrganizationFee/update",method:"post",data:r.a.stringify(t)})}function w(t){return Object(a["a"])({url:o+"/chargeTypeOrganizationFee/queryPage",method:"get",params:t})}function I(t){return Object(a["a"])({url:o+"/employee/findEducationTeacher",method:"get",params:t})}},d3c4:function(t,e,n){"use strict";var a=n("5e85"),i=n.n(a);i.a},de4e:function(t,e,n){}}]);
|