ERP/static/js/chunk-0a76.885223d3.js
beyond e4cd916a0c beyond 8.1 version2
beyond 8.1 version2
2019-08-01 19:52:12 +08:00

1 line
24 KiB
JavaScript

(window.webpackJsonp=window.webpackJsonp||[]).push([["chunk-0a76"],{"0zGY":function(e,t,a){"use strict";a.d(t,"g",function(){return n}),a.d(t,"l",function(){return o}),a.d(t,"e",function(){return r}),a.d(t,"h",function(){return l}),a.d(t,"o",function(){return d}),a.d(t,"j",function(){return s}),a.d(t,"i",function(){return p}),a.d(t,"b",function(){return c}),a.d(t,"c",function(){return m}),a.d(t,"n",function(){return u}),a.d(t,"f",function(){return f}),a.d(t,"k",function(){return y}),a.d(t,"a",function(){return g}),a.d(t,"m",function(){return v}),a.d(t,"d",function(){return h});var i=a("t3Un");function n(e){return Object(i.a)({url:"http://192.168.1.45:8080/country/getdeptlist",method:"post",params:e})}function o(e,t){var a=new URLSearchParams;return""!==e&&null!==e&&a.append("empids",e),""!==t&&null!==t&&a.append("stat",t),Object(i.a)({url:"http://192.168.1.45:8080/employee/startorendemp",method:"post",data:a})}function r(e){var t=new URLSearchParams;return""!==e&&null!==e&&t.append("empids",e),Object(i.a)({url:"http://192.168.1.45:8080/employee/deleteemp",method:"post",data:t})}function l(e){var t=new URLSearchParams;return""!==e&&null!==e&&t.append("id",e),Object(i.a)({url:"http://192.168.1.45:8080/employee/getempinfo",method:"post",data:t})}function d(e){var t=new URLSearchParams;return""!==e.id&&null!==e.id&&void 0!==e.id&&t.append("employeeid",e.id),""!==e.firstName&&null!==e.firstName&&void 0!==e.firstName&&t.append("firstname",e.firstName),""!==e.middleName&&null!==e.middleName&&void 0!==e.middleName&&t.append("middlename",e.middleName),""!==e.lastName&&null!==e.lastName&&void 0!==e.lastName&&t.append("lastname",e.lastName),""!==e.password&&null!==e.password&&void 0!==e.password&&t.append("passwd",e.password),""!==e.email&&null!==e.email&&void 0!==e.email&&t.append("email",e.email),""!==e.phone&&null!==e.phone&&void 0!==e.phone&&t.append("phone",e.phone),""!==e.gender&&null!==e.gender&&void 0!==e.gender&&t.append("gender",e.gender),""!==e.countryid&&null!==e.countryid&&void 0!==e.countryid&&t.append("countryid",e.countryid),""!==e.provinceid&&null!==e.provinceid&&void 0!==e.provinceid&&t.append("provinceid",e.provinceid),""!==e.cityid&&null!==e.cityid&&void 0!==e.cityid&&t.append("cityid",e.cityid),""!==e.address&&null!==e.address&&void 0!==e.address&&t.append("address",e.address),""!==e.birthday&&null!==e.birthday&&void 0!==e.birthday&&t.append("birthday",e.birthday),""!==e.deptId&&null!==e.deptId&&void 0!==e.deptId&&t.append("deptid",e.deptId),""!==e.postId&&null!==e.postId&&void 0!==e.postId&&t.append("postid",e.postId),""!==e.repositoryid2&&null!==e.repositoryid2&&void 0!==e.repositoryid2&&t.append("repositoryid",e.repositoryid2),""!==e.regionId&&null!==e.regionId&&void 0!==e.regionId&&t.append("regionid",e.regionId),""!==e.certificateType&&null!==e.certificateType&&void 0!==e.certificateType&&t.append("certificatetype",e.certificateType),""!==e.certificateNumber&&null!==e.certificateNumber&&void 0!==e.certificateNumber&&t.append("certificatenumber",e.certificateNumber),Object(i.a)({url:"http://192.168.1.45:8080/employee/updateemp",method:"post",data:t})}function s(e){var t=new URLSearchParams;return t.append("firstname",e.firstname),t.append("middlename",e.middlename),t.append("lastname",e.lastname),t.append("passwd",e.passwd),t.append("email",e.email),t.append("phone",e.phone),t.append("gender",e.gender),t.append("countryid",e.country),t.append("provinceid",e.provinceid),t.append("cityid",e.cityid),t.append("address",e.address),""===e.birthday&&null===e.birthday||t.append("birthday",e.birthday),t.append("account",e.account),t.append("jobnumber",e.jobnumber),t.append("deptid",e.deptid),t.append("roleid",e.roleid),t.append("postid",e.postid),t.append("repositoryid",e.repositoryid),t.append("regionid",e.regionid1),t.append("certificatetype",e.certificatetype),t.append("certificatenumber",e.certificatenumber),Object(i.a)({url:"http://192.168.1.45:8080/employee/register",method:"post",data:t})}function p(e){var t=new URLSearchParams;return""!==e.repositoryid&&t.append("repositoryid",e.repositoryid),""!==e.regionid&&void 0!==e.regionid&&t.append("regionid",e.regionid),""!==e.postid&&t.append("postid",e.postid),""!==e.deptid&&t.append("deptid",e.deptid),""!==e.employeename&&t.append("employeename",e.employeename),""!==e.stat&&t.append("stat",e.stat),""!==e.time&&null!==e.time&&t.append("time",e.time),""!==e.jobnumber&&t.append("jobnumber",e.jobnumber),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(i.a)({url:"http://192.168.1.45:8080/employee/getemplist",method:"post",data:t})}function c(e){var t=new URLSearchParams;return""!==e.employeeid&&t.append("employeeid",e.employeeid),""!==e.contractname&&t.append("contractname",e.contractname),""!==e.signtime&&null!==e.signtime&&t.append("signtime",e.signtime),""!==e.expiredtime&&null!==e.expiredtime&&t.append("expiredtime",e.expiredtime),""!==e.effectivetime&&null!==e.effectivetime&&t.append("effectivetime",e.effectivetime),""!==e.typeid&&t.append("typeid",e.typeid),""!==e.attribute&&t.append("attribute",e.attribute),""!==e.period&&t.append("period",e.period),""!==e.iscorrection&&t.append("iscorrection",e.iscorrection),""!==e.stat&&t.append("stat",e.stat),""!==e.advanceday&&t.append("advanceday",e.advanceday),""!==e.trialsalary&&t.append("trialsalary",e.trialsalary),""!==e.correctionsalary&&t.append("correctionsalary",e.correctionsalary),""!==e.remindpersonid&&t.append("remindpersonid",e.remindpersonid),Object(i.a)({url:"http://192.168.1.45:8080/contract/addcontract",method:"post",data:t})}function m(e){var t=new URLSearchParams;return""!==e.contractname&&t.append("contractname",e.contractname),""!==e.contractnumber&&t.append("contractnumber",e.contractnumber),""!==e.empnumber&&t.append("empnumber",e.empnumber),""!==e.empname&&t.append("empname",e.empname),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(i.a)({url:"http://192.168.1.45:8080/contract/contractlist",method:"post",data:t})}function u(e){var t=new URLSearchParams;return""!==e.id&&t.append("contractid",e.id),""!==e.contractName&&t.append("contractname",e.contractName),""!==e.signTime&&t.append("signtime",e.signTime),""!==e.expiredTime&&t.append("expiredtime",e.expiredTime),""!==e.effectiveTime&&t.append("effectivetime",e.effectiveTime),""!==e.type&&t.append("typeid",e.type),""!==e.contractAttribute&&t.append("attribute",e.contractAttribute),""!==e.contractAttribute&&t.append("period",e.period),""!==e.isCorrection&&t.append("iscorrection",e.isCorrection),""!==e.stat&&t.append("stat",e.stat),""!==e.advanceDay&&t.append("advanceday",e.advanceDay),""!==e.trialSalary&&t.append("trialsalary",e.trialSalary),""!==e.correctionSalary&&t.append("correctionsalary",e.correctionSalary),""!==e.expiredRemindPersonId&&null!==e.expiredRemindPersonId&&t.append("remindpersonid",e.expiredRemindPersonId),Object(i.a)({url:"http://192.168.1.45:8080/contract/updatecontract",method:"post",data:t})}function f(e){var t=new URLSearchParams;return""!==e&&null!==e&&t.append("empcontractids",e),Object(i.a)({url:"http://192.168.1.45:8080/contract/deleteempcontract",method:"post",data:t})}function y(e){var t=new URLSearchParams;return""!==e.categoryname&&null!==e.categoryname&&t.append("categoryname",e.categoryname),""!==e.iseffective&&null!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.type&&null!==e.type&&t.append("type",e.type),t.append("pagenum",e.pagenum),t.append("pagesize",e.pagesize),Object(i.a)({url:"http://192.168.1.45:8080/employee/searchEmpCategory",method:"post",data:t})}function g(e){var t=new URLSearchParams;return""!==e.categoryname&&null!==e.categoryname&&t.append("categoryname",e.categoryname),""!==e.category&&null!==e.category&&t.append("category",e.category),""!==e.iseffective&&null!==e.iseffective&&t.append("iseffective",e.iseffective),""!==e.type&&null!==e.type&&t.append("type",e.type),Object(i.a)({url:"http://192.168.1.45:8080/employee/addEmpCategory",method:"post",data:t})}function v(e){var t=new URLSearchParams;return""!==e.categoryName&&null!==e.categoryName&&t.append("categoryname",e.categoryName),""!==e.isEffective&&null!==e.isEffective&&t.append("iseffective",e.isEffective),""!==e.id&&null!==e.id&&t.append("id",e.id),Object(i.a)({url:"http://192.168.1.45:8080/employee/updateEmpCategory",method:"post",data:t})}function h(e){var t=new URLSearchParams;return""!==e&&null!==e&&t.append("ids",e),Object(i.a)({url:"http://192.168.1.45:8080/employee/delateEmpCategory",method:"post",data:t})}},BgyD:function(e,t,a){"use strict";var i=a("iN34");a.n(i).a},Y5bG:function(e,t,a){"use strict";a.d(t,"a",function(){return n}),Math.easeInOutQuad=function(e,t,a,i){return(e/=i/2)<1?a/2*e*e+t:-a/2*(--e*(e-2)-1)+t};var i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)};function n(e,t,a){var n=document.documentElement.scrollTop||document.body.parentNode.scrollTop||document.body.scrollTop,o=e-n,r=0;t=void 0===t?500:t;!function e(){r+=20,function(e){document.documentElement.scrollTop=e,document.body.parentNode.scrollTop=e,document.body.scrollTop=e}(Math.easeInOutQuad(r,n,o,t)),r<t?i(e):a&&"function"==typeof a&&a()}()}},ZySA:function(e,t,a){"use strict";var i=a("P2sY"),n=a.n(i),o=(a("jUE0"),{bind:function(e,t){e.addEventListener("click",function(a){var i=n()({},t.value),o=n()({ele:e,type:"hit",color:"rgba(0, 0, 0, 0.15)"},i),r=o.ele;if(r){r.style.position="relative",r.style.overflow="hidden";var l=r.getBoundingClientRect(),d=r.querySelector(".waves-ripple");switch(d?d.className="waves-ripple":((d=document.createElement("span")).className="waves-ripple",d.style.height=d.style.width=Math.max(l.width,l.height)+"px",r.appendChild(d)),o.type){case"center":d.style.top=l.height/2-d.offsetHeight/2+"px",d.style.left=l.width/2-d.offsetWidth/2+"px";break;default:d.style.top=(a.pageY-l.top-d.offsetHeight/2-document.documentElement.scrollTop||document.body.scrollTop)+"px",d.style.left=(a.pageX-l.left-d.offsetWidth/2-document.documentElement.scrollLeft||document.body.scrollLeft)+"px"}return d.style.backgroundColor=o.color,d.className="waves-ripple z-active",!1}},!1)}}),r=function(e){e.directive("waves",o)};window.Vue&&(window.waves=o,Vue.use(r)),o.install=r;t.a=o},iN34:function(e,t,a){},jUE0:function(e,t,a){},"uFM+":function(e,t,a){"use strict";a.r(t);var i=a("P2sY"),n=a.n(i),o=a("0zGY"),r=a("ZySA"),l=a("Mz3J"),d={name:"EmpCategory",directives:{waves:r.a},components:{Pagination:l.a},filters:{typeFilter:function(e){return{1:"部门类别",2:"职位类别",3:"合同类型"}[e]},iseffectiveFilter:function(e){return{1:"启用",2:"停用"}[e]}},data:function(){return{moreaction:[],categoryVisible:!1,addCategoryForm:{categoryname:"",type:"",iseffective:""},addCategoryFormRules:{category:[{required:!0,message:"请输入",trigger:"blur"}],categoryname:[{required:!0,message:"请输入",trigger:"blur"}],type:[{required:!0,message:"请选择",trigger:"change"}],iseffective:[{required:!0,message:"请选择",trigger:"change"}]},editcategoryVisible:!1,editCategoryForm:{categoryName:"",type:"",isEffective:""},editCategoryFormRules:{categoryName:[{required:!0,message:"请输入",trigger:"blur"}],isEffective:[{required:!0,message:"请选择",trigger:"change"}]},downloadLoading:!1,list:[],total:0,tableKey:0,listLoading:!0,getemplist:{categoryname:"",type:"",iseffective:"",pagenum:1,pagesize:10}}},mounted:function(){this.getlist()},methods:{getlist:function(){var e=this;this.listLoading=!0,Object(o.k)(this.getemplist).then(function(t){200===t.data.ret?(e.list=t.data.data.content.list,e.total=t.data.data.content.totalCount):e.$notify.error({title:"错误",message:"出错了",offset:100}),setTimeout(function(){e.listLoading=!1},50)})},handleFilter:function(){var e=this;this.getemplist.pagenum=1,Object(o.i)(this.getemplist).then(function(t){200===t.data.ret?(e.list=t.data.data.content.list,e.total=t.data.data.content.totalCount):e.$notify.error({title:"错误",message:"出错了",offset:100})})},handleSelectionChange:function(e){this.moreaction=e},handleCommand:function(e){var t=this,a=this.moreaction.map(function(e){return e.id}).join();"delete"===e&&this.$confirm("此操作将永久删除该文件, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.d)(a).then(function(e){200===e.data.ret?(t.$notify({title:"删除成功",type:"success",offset:100}),t.getlist()):t.$notify.error({title:"错误",message:"出错了",offset:100})})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},handleDelete:function(e){var t=this;this.$confirm("此操作将永久删除该记录, 是否继续?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then(function(){Object(o.d)(e.id).then(function(e){200===e.data.ret?(t.$notify({title:"删除成功",type:"success",offset:100}),t.getlist()):t.$notify.error({title:"错误",message:"出错了",offset:100})})}).catch(function(){t.$message({type:"info",message:"已取消删除"})})},handleEdit:function(e){console.log(e),this.editcategoryVisible=!0,this.editCategoryForm=n()({},e),this.editCategoryForm.type=String(e.type),this.editCategoryForm.isEffective=String(e.isEffective)},handleNo:function(){this.editcategoryVisible=!1},handleOk:function(){var e=this;this.$refs.editCategoryForm.validate(function(t){if(!t)return e.$notify.error({title:"错误",message:"信息未填完整",offset:100}),!1;Object(o.m)(e.editCategoryForm).then(function(t){200===t.data.ret?(e.$notify({title:"成功",message:"修改成功",type:"success",offset:100}),e.getlist(),e.$refs.editCategoryForm.clearValidate(),e.$refs.editCategoryForm.resetFields(),e.editcategoryVisible=!1):e.$notify.error({title:"错误",message:"出错了",offset:100})})})},handleAdd:function(){this.categoryVisible=!0},handlecancel:function(){this.categoryVisible=!1},restAddCategoryForm:function(){this.addCategoryForm={categoryname:"",type:"",iseffective:""}},handlesave:function(){var e=this;console.log(this.addCategoryForm),this.$refs.addCategoryForm.validate(function(t){if(!t)return e.$notify.error({title:"错误",message:"信息未填完整",offset:100}),!1;Object(o.a)(e.addCategoryForm).then(function(t){200===t.data.ret?(e.$notify({title:"成功",message:"新建成功",type:"success",offset:100}),e.getlist(),e.$refs.addCategoryForm.clearValidate(),e.$refs.addCategoryForm.resetFields(),e.restAddCategoryForm(),e.categoryVisible=!1):e.$notify.error({title:"错误",message:"出错了",offset:100})})})},handleContract:function(){console.log(123)},handleExport:function(){var e=this;this.downloadLoading=!0,Promise.all([a.e("chunk-ef4a"),a.e("chunk-6b3a")]).then(a.bind(null,"S/jZ")).then(function(t){var a=e.formatJson(["id","jobNumber","account","firstName","gender","birthday","email","postName","deptName","regionName","repositoryName","createTime","dimissionTime","stat"],e.list);t.export_json_to_excel({header:["编号","工号","员工登陆账号","姓名","性别","生日","邮箱","职位","所属部门","所属区域","所属门店","入职时间","离职时间","状态"],data:a,filename:"员工资料表"}),e.downloadLoading=!1})},formatJson:function(e,t){return t.map(function(t){return e.map(function(e){return t[e]})})},handlePrint:function(){console.log(456)}}},s=(a("BgyD"),a("KHd+")),p=Object(s.a)(d,function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"ERP-container"},[a("div",{staticClass:"filter-container"},[a("el-input",{staticClass:"filter-item",attrs:{placeholder:e.$t("NewEmployeeInformation.categoryname"),clearable:""},nativeOn:{keyup:function(t){return"button"in t||!e._k(t.keyCode,"enter",13,t.key,"Enter")?e.handleFilter(t):null}},model:{value:e.getemplist.categoryname,callback:function(t){e.$set(e.getemplist,"categoryname",t)},expression:"getemplist.categoryname"}}),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{value:e.getemplist.type,placeholder:e.$t("NewEmployeeInformation.type"),clearable:""},model:{value:e.getemplist.type,callback:function(t){e.$set(e.getemplist,"type",t)},expression:"getemplist.type"}},[a("el-option",{attrs:{label:"部门类别",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"职位类别",value:"2"}}),e._v(" "),a("el-option",{attrs:{label:"合同类型",value:"3"}})],1),e._v(" "),a("el-select",{staticClass:"filter-item",attrs:{value:e.getemplist.iseffective,placeholder:e.$t("NewEmployeeInformation.iseffective"),clearable:""},model:{value:e.getemplist.iseffective,callback:function(t){e.$set(e.getemplist,"iseffective",t)},expression:"getemplist.iseffective"}},[a("el-option",{attrs:{label:"active ",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"dead",value:"2"}})],1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{width:"86px"},attrs:{type:"primary",icon:"el-icon-search"},on:{click:e.handleFilter}},[e._v(e._s(e.$t("public.search")))]),e._v(" "),a("el-dropdown",{on:{command:e.handleCommand}},[a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",attrs:{type:"primary"}},[e._v("\n "+e._s(e.$t("public.batchoperation"))+" "),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),e._v(" "),a("el-dropdown-menu",{staticStyle:{width:"140px"},attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",{staticStyle:{"text-align":"left"},attrs:{command:"delete"}},[a("svg-icon",{staticStyle:{width:"40px"},attrs:{"icon-class":"shanchu"}}),e._v(e._s(e.$t("public.delete")))],1)],1)],1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{width:"86px"},attrs:{loading:e.downloadLoading},on:{click:e.handleExport}},[a("svg-icon",{attrs:{"icon-class":"daochu"}}),e._v(e._s(e.$t("public.export")))],1),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{width:"86px"},attrs:{icon:"el-icon-printer"},on:{click:e.handlePrint}},[e._v(e._s(e.$t("public.print")))]),e._v(" "),a("el-button",{directives:[{name:"waves",rawName:"v-waves"}],staticClass:"filter-item",staticStyle:{width:"86px",float:"right"},attrs:{icon:"el-icon-plus",type:"success"},on:{click:e.handleAdd}},[e._v(e._s(e.$t("public.add")))]),e._v(" "),a("el-dialog",{attrs:{visible:e.categoryVisible,title:"新建分类属性",center:""},on:{"update:visible":function(t){e.categoryVisible=t}}},[a("el-form",{ref:"addCategoryForm",staticClass:"demo-ruleForm",staticStyle:{margin:"0 auto",width:"400px"},attrs:{rules:e.addCategoryFormRules,model:e.addCategoryForm}},[a("el-form-item",{attrs:{label:e.$t("NewEmployeeInformation.type"),"label-width":"100px",prop:"type"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择类别"},model:{value:e.addCategoryForm.type,callback:function(t){e.$set(e.addCategoryForm,"type",t)},expression:"addCategoryForm.type"}},[a("el-option",{attrs:{label:"部门类别",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"职位类别",value:"2"}}),e._v(" "),a("el-option",{attrs:{label:"合同类型",value:"3"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("NewEmployeeInformation.categoryname"),"label-width":"100px",prop:"categoryname"}},[a("el-input",{attrs:{autocomplete:"off"},model:{value:e.addCategoryForm.categoryname,callback:function(t){e.$set(e.addCategoryForm,"categoryname",t)},expression:"addCategoryForm.categoryname"}})],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("NewEmployeeInformation.iseffective"),"label-width":"100px",prop:"iseffective"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择状态"},model:{value:e.addCategoryForm.iseffective,callback:function(t){e.$set(e.addCategoryForm,"iseffective",t)},expression:"addCategoryForm.iseffective"}},[a("el-option",{attrs:{label:"active ",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"dead",value:"2"}})],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.handlesave()}}},[e._v("保存")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:function(t){e.handlecancel()}}},[e._v("取消")])],1)],1),e._v(" "),a("div",{staticClass:"app-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],key:e.tableKey,staticStyle:{width:"100%"},attrs:{data:e.list,border:"",fit:"","highlight-current-row":""},on:{"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.id"),resizable:!1,prop:"id",align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.id))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.category"),resizable:!1,prop:"category",align:"center",width:"350"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.category))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.type"),resizable:!1,prop:"type",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("typeFilter")(t.row.type)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.categoryname"),resizable:!1,prop:"categoryName",align:"center",width:"350"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(t.row.categoryName))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("NewEmployeeInformation.iseffective"),resizable:!1,prop:"isEffective",align:"center",width:"150"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",[e._v(e._s(e._f("iseffectiveFilter")(t.row.isEffective)))])]}}])}),e._v(" "),a("el-table-column",{attrs:{label:e.$t("public.actions"),resizable:!1,align:"center","min-width":"230"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){e.handleEdit(t.row)}}},[e._v(e._s(e.$t("public.edit")))]),e._v(" "),a("el-button",{attrs:{size:"mini",type:"danger"},on:{click:function(a){e.handleDelete(t.row)}}},[e._v(e._s(e.$t("public.delete")))])]}}])})],1),e._v(" "),a("pagination",{directives:[{name:"show",rawName:"v-show",value:e.total>0,expression:"total>0"}],attrs:{total:e.total,page:e.getemplist.pagenum,limit:e.getemplist.pagesize},on:{"update:page":function(t){e.$set(e.getemplist,"pagenum",t)},"update:limit":function(t){e.$set(e.getemplist,"pagesize",t)},pagination:e.getlist}}),e._v(" "),a("el-dialog",{attrs:{visible:e.editcategoryVisible,title:"修改分类属性",center:""},on:{"update:visible":function(t){e.editcategoryVisible=t}}},[a("el-form",{ref:"editCategoryForm",staticClass:"demo-ruleForm",staticStyle:{margin:"0 auto",width:"400px"},attrs:{rules:e.editCategoryFormRules,model:e.editCategoryForm}},[a("el-form-item",{attrs:{label:e.$t("NewEmployeeInformation.type"),"label-width":"100px"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择类别",disabled:""},model:{value:e.editCategoryForm.type,callback:function(t){e.$set(e.editCategoryForm,"type",t)},expression:"editCategoryForm.type"}},[a("el-option",{attrs:{label:"部门类别",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"职位类别",value:"2"}}),e._v(" "),a("el-option",{attrs:{label:"合同类型",value:"3"}})],1)],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("NewEmployeeInformation.categoryname"),"label-width":"100px",prop:"categoryName"}},[a("el-input",{attrs:{autocomplete:"off"},model:{value:e.editCategoryForm.categoryName,callback:function(t){e.$set(e.editCategoryForm,"categoryName",t)},expression:"editCategoryForm.categoryName"}})],1),e._v(" "),a("el-form-item",{attrs:{label:e.$t("NewEmployeeInformation.iseffective"),"label-width":"100px",prop:"isEffective"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择状态"},model:{value:e.editCategoryForm.isEffective,callback:function(t){e.$set(e.editCategoryForm,"isEffective",t)},expression:"editCategoryForm.isEffective"}},[a("el-option",{attrs:{label:"active ",value:"1"}}),e._v(" "),a("el-option",{attrs:{label:"dead",value:"2"}})],1)],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.handleOk()}}},[e._v("修改")]),e._v(" "),a("el-button",{attrs:{type:"danger"},on:{click:function(t){e.handleNo()}}},[e._v("取消")])],1)],1)],1)],1)])},[],!1,null,"2e2015ce",null);p.options.__file="EmpCategory.vue";t.default=p.exports}}]);