| | |
| | | empId: id, |
| | | empName: name, |
| | | certificateNumb: number, |
| | | openType: 2, |
| | | openType: 5, |
| | | openDate: year + '-' + month + '-' + day, |
| | | remark: '' |
| | | } |
| | |
| | | @sort-change="changeSort" |
| | | > |
| | | <el-table-column type="index" label="序号" width="50" align="center" /> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="100" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip prop="allDeptName" label="(部门)护卫点" width="300" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="120" sortable="custom" :sort-orders="['ascending', 'descending']" /> |
| | |
| | | resetSearch() { |
| | | this.queryParams = { |
| | | delFlag: 0, |
| | | vague: '', |
| | | sex: [], |
| | | education: [], |
| | | politics: [], |
| | |
| | | archivesStatus: [], |
| | | insuranceType: [], |
| | | empStatus: [], |
| | | empType: [], |
| | | baseKey: '', |
| | | empNumb: '', |
| | | empName: '', |
| | | certificateNumb: '', |
| | | jobContent: '' |
| | | jobContent: '', |
| | | inOutType: [] |
| | | } |
| | | this.search() |
| | | }, |
| | |
| | | break |
| | | } |
| | | }, |
| | | // dic列表转为数组 |
| | | dicListToArr(dicList) { |
| | | var arr = [] |
| | | for (var i = 0; i < dicList.length; i++) { |
| | | var dic = dicList[i] |
| | | arr.push(dic.dicItemCode) |
| | | } |
| | | return arr |
| | | }, |
| | | selectAllSex(val) { |
| | | if (val) { |
| | | this.queryParams.sex = ['1', '2'] |
| | | this.queryParams.sex = this.dicListToArr(this.sexOptions) |
| | | } else { |
| | | this.queryParams.sex = [] |
| | | } |
| | | }, |
| | | selectAllEducation(val) { |
| | | if (val) { |
| | | this.queryParams.education = ['91', '81', '71', '61', '42', '41', '31', '21', '11', '10'] |
| | | this.queryParams.education = this.dicListToArr(this.educationOptions) |
| | | } else { |
| | | this.queryParams.education = [] |
| | | } |
| | | }, |
| | | selectAllPolitics(val) { |
| | | if (val) { |
| | | this.queryParams.politics = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13'] |
| | | this.queryParams.politics = this.dicListToArr(this.statusOptions) |
| | | } else { |
| | | this.queryParams.politics = [] |
| | | } |
| | | }, |
| | | selectAllAgeStr(val) { |
| | | if (val) { |
| | | this.queryParams.ageStr = ['18-29', '30-39', '40-49', '50-59', '60-69', '69-999'] |
| | | this.queryParams.ageStr = this.dicListToArr(this.ageStrOptions) |
| | | } else { |
| | | this.queryParams.ageStr = [] |
| | | } |
| | | }, |
| | | selectAllArchivesStatus(val) { |
| | | if (val) { |
| | | this.queryParams.archivesStatus = ['0', '1'] |
| | | this.queryParams.archivesStatus = this.dicListToArr(this.archivesStatusOptions) |
| | | } else { |
| | | this.queryParams.archivesStatus = [] |
| | | } |
| | | }, |
| | | selectAllInsuranceType(val) { |
| | | if (val) { |
| | | this.queryParams.insuranceType = ['1', '2', '3', '4', '5'] |
| | | this.queryParams.insuranceType = this.dicListToArr(this.insuranceTypeOptions) |
| | | } else { |
| | | this.queryParams.insuranceType = [] |
| | | } |
| | | }, |
| | | selectAllEmpType(val) { |
| | | if (val) { |
| | | this.queryParams.insuranceType = ['1', '2'] |
| | | this.queryParams.empType = this.dicListToArr(this.empTypeOptions) |
| | | } else { |
| | | this.queryParams.insuranceType = [] |
| | | this.queryParams.empType = [] |
| | | } |
| | | }, |
| | | selectAllEmpStatus(val) { |
| | |
| | | }, |
| | | selectAllDimissionType(val) { |
| | | if (val) { |
| | | this.queryParams.inOutType = ['1', '2', '3', '4', '5', '6'] |
| | | this.queryParams.inOutType = this.dicListToArr(this.dimissionTypeOptions) |
| | | } else { |
| | | this.queryParams.inOutType = [] |
| | | } |