Merge remote-tracking branch 'origin/master'
| | |
| | | export default { |
| | | route: { |
| | | dashboard: '系统主页', |
| | | dashboard: '数据统计', |
| | | profile: '个人中心' |
| | | }, |
| | | navbar: { |
| | |
| | | // 个人文件上传地址 |
| | | uploadSinglePath: 'http://120.24.23.155:8301/hr/empAccessory', |
| | | // 个人文件上传地址 |
| | | getEmpBaseInfoImage: 'http://120.24.23.155:8301/hr/empBaseInfo/image/' |
| | | getEmpBaseInfoImage: 'http://120.24.23.155:8301/hr/empBaseInfo/image/', |
| | | // 下载员工导入模版 |
| | | downloadEmpExcel: 'http://120.24.23.155:8000/员工信息.xls', |
| | | // 导入员工 |
| | | uploadEmpExcel: 'http://120.24.23.155:8301/hr/empBaseInfo/importEmp' |
| | | } |
| | | } |
| | |
| | | <el-table-column show-overflow-tooltip type="selection" :reserve-selection="false" width="55" /> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="员工编号" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="员工姓名" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="证件号码" /> |
| | | <el-table-column show-overflow-tooltip prop="attendMonth" label="离职考勤月份" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="attendDays" label="出勤天数" width="100" /> |
| | |
| | | <el-table-column show-overflow-tooltip type="selection" :reserve-selection="false" width="55" /> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="员工编号" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="员工姓名" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="证件号码" /> |
| | | <el-table-column show-overflow-tooltip prop="beginTime" label="开始时间" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="endTime" label="结束时间" width="120" /> |
| | |
| | | <el-table-column show-overflow-tooltip type="selection" :reserve-selection="false" width="55" /> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="员工编号" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" /> |
| | | <el-table-column show-overflow-tooltip prop="applayDate" label="社保申请日期" /> |
| | |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" /> |
| | | <el-table-column show-overflow-tooltip prop="oldDeptName" label="原护卫点" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="oldJobName" label="原岗位名称" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="oldJobName" label="原岗位" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="newDeptName" label="新护卫点" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="newJobName" label="新岗位名称" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="newJobName" label="新岗位" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="证件号码" /> |
| | | <el-table-column show-overflow-tooltip prop="changeType" :formatter="changeTypeFormat" label="调岗类型" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="changeDate" label="调岗位日期" width="150" /> |
| | |
| | | <el-table-column show-overflow-tooltip type="selection" :reserve-selection="false" width="55" /> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="员工编号" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="员工姓名" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="hospital" label="体检医院" width="100" /> |
| | |
| | | <el-table-column show-overflow-tooltip type="selection" :reserve-selection="false" width="55" /> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="员工编号" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" /> |
| | | <el-table-column show-overflow-tooltip prop="applayDate" label="失业金申请日期" /> |
| | |
| | | <el-table-column show-overflow-tooltip type="selection" :reserve-selection="false" width="55" /> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="员工编号" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" /> |
| | | <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" width="80" /> |
| | |
| | | <template> |
| | | <div class="app-container"> |
| | | <div class="filter-container"> |
| | | <el-input v-model="queryParams.positionName" placeholder="岗位名称" class="filter-item search-item" /> |
| | | <el-input v-model="queryParams.positionName" placeholder="岗位" class="filter-item search-item" /> |
| | | <el-button class="hr-but-all" type="primary" @click="search"> |
| | | {{ $t('table.search') }} |
| | | </el-button> |
| | |
| | | > |
| | | <el-table-column type="selection" align="center" width="40px" /> |
| | | <el-table-column v-if="fsnumShow" label="" prop="positionId" :show-overflow-tooltip="false" align="center" /> |
| | | <el-table-column label="岗位名称" prop="positionName" :show-overflow-tooltip="true" align="center" min-width="100px" /> |
| | | <el-table-column label="岗位" prop="positionName" :show-overflow-tooltip="true" align="center" min-width="100px" /> |
| | | <el-table-column label="岗位编码" prop="positionCode" :show-overflow-tooltip="true" align="center" /> |
| | | <el-table-column label="创建时间" prop="createTime" :show-overflow-tooltip="true" align="center" min-width="170px" /> |
| | | <el-table-column label="创建人" prop="creator" :show-overflow-tooltip="true" align="center" min-width="160px" /> |
| | |
| | | :visible.sync="isVisible" |
| | | > |
| | | <el-form ref="form" :model="position" :rules="rules" label-position="right" label-width="165px"> |
| | | <el-form-item label="岗位名称" prop="positionName"> |
| | | <el-form-item label="岗位" prop="positionName"> |
| | | <el-input v-model="position.positionName" /> |
| | | </el-form-item> |
| | | <el-form-item label="岗位编码" prop="positionCode"> |
| | |
| | | <el-form-item :label="$t('table.user.username')" prop="username"> |
| | | <el-input v-model="user.username" :readonly="user.userId === '' ? false : 'readonly'" /> |
| | | </el-form-item> |
| | | <el-form-item label="员工姓名" prop="nickName"> |
| | | <el-form-item label="姓名" prop="nickName"> |
| | | <el-select v-model="user.nickName" filterable placeholder="" style="width:100%" @change="nickName"> |
| | | <el-option |
| | | v-for="item in baseinfo" |
| | |
| | | <span>{{ scope.row.username }}</span> |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column label="员工姓名" prop="nickName" :show-overflow-tooltip="true" align="center" min-width="120px"> |
| | | <el-table-column label="姓名" prop="nickName" :show-overflow-tooltip="true" align="center" min-width="120px"> |
| | | <template slot-scope="scope"> |
| | | <span>{{ scope.row.nickName }}</span> |
| | | </template> |
| | |
| | | <!-- </el-table-column>--> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="50" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="50" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="50" /> |
| | | <el-table-column show-overflow-tooltip prop="empType" label="员工类别" width="80" :formatter="empTypeFormat" /> |
| | | <el-table-column show-overflow-tooltip prop="sex" label="性别" width="50" :formatter="sexFormat" /> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="empNumb" label="编号" width="100" /> |
| | | <el-table-column prop="empName" label="员工姓名" width="100" /> |
| | | <el-table-column prop="empName" label="姓名" width="100" /> |
| | | <el-table-column prop="certificateNumb" show-overflow-tooltip label="身份证号码" /> |
| | | <el-table-column prop="workUnit" show-overflow-tooltip label="工作单位" /> |
| | | <el-table-column prop="beginDate" label="开始日期" width="120" /> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="员工姓名" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="80" /> |
| | | <el-table-column prop="hospital" show-overflow-tooltip label="体检医院" /> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="150" /> |
| | | <el-table-column prop="empName" label="员工姓名" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="150" /> |
| | | <el-table-column prop="empName" label="姓名" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="signingDate" label="合同签订日期" /> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="员工姓名" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="attendMonth" label="离职考勤月份" width="120" /> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="员工姓名" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" /> |
| | | <el-table-column show-overflow-tooltip prop="beginTime" label="开始时间" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="endTime" label="结束时间" width="120" /> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位名" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="员工姓名" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" /> |
| | | <el-table-column show-overflow-tooltip prop="applayDate" label="辞职申请日期" width="150" /> |
| | | <el-table-column show-overflow-tooltip prop="reason" label="辞职事由" width="150" /> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" /> |
| | | <el-table-column show-overflow-tooltip prop="applayDate" label="失业金申请日期" width="150" /> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" /> |
| | | <el-table-column show-overflow-tooltip prop="applayDate" label="社保申请日期" /> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位名称" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="名称" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="injuredTime" label="受伤日期" /> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="120" /> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" /> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" /> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column show-overflow-tooltip prop="empNumb" label="编号" width="180" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="护卫点" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="部门(护卫点)" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" /> |
| | |
| | | <el-row> |
| | | <el-col span="24"> |
| | | <el-form-item label="员工模板下载" prop="region"> |
| | | <a href="http://120.24.23.155:8000/员工信息.xls" target="_blank" style="color: #3A8EE6;">员工信息.xlxs</a> |
| | | <a :href="downloadEmpExcel" target="_blank" style="color: #3A8EE6;">员工信息.xlxs</a> |
| | | <span style="margin-left: 100px;">点击下载</span> |
| | | </el-form-item> |
| | | <el-form-item label="导入员工"> |
| | | <el-upload |
| | | ref="upload" |
| | | class="upload-demo" |
| | | action="http://120.24.23.155:8301/hr/empBaseInfo/importEmp" |
| | | :action="uploadEmpExcel" |
| | | accept=".xls, .xlsx, .excel" |
| | | :headers="headers()" |
| | | :on-success="importHandleAvatarSuccess" |
| | |
| | | components: { Treeselect, Pagination }, |
| | | data() { |
| | | return { |
| | | downloadEmpExcel: pages.downloadEmpExcel, |
| | | uploadEmpExcel: pages.uploadEmpExcel, |
| | | defaultImg: require('../../assets/avatar/20180414165936.jpg'), |
| | | baseicInformationForm: {}, |
| | | dialogShowDryg: false, |
| | |
| | | message: this.$t('rules.noMoreThan20'), |
| | | trigger: 'blur' |
| | | }], |
| | | empName: [{ required: true, message: '请输入员工姓名', trigger: 'blur' }, |
| | | empName: [{ required: true, message: '请输入姓名', trigger: 'blur' }, |
| | | { min: 2, max: 50, message: this.$t('rules.noMoreThan50'), trigger: 'blur' }], |
| | | empNumb: [{ required: true, message: '请输入编号', trigger: 'blur' }, |
| | | { min: 2, max: 20, message: this.$t('rules.noMoreThan20'), trigger: 'blur' }], |
| | |
| | | this.initDept() |
| | | this.thisShowIndex = 1 |
| | | this.isShow(false, 0) |
| | | this.initJob() |
| | | }, |
| | | methods: { |
| | | importHandleAvatarError() { |
| | |
| | | }) |
| | | }, |
| | | importHandleAvatarSuccess(res, file) { |
| | | if (res.data === null) { |
| | | if (res.data === null || res.data.length === 0) { |
| | | this.$notify({ |
| | | title: '成功', |
| | | message: '导入成功!', |
| | |
| | | resetDeptTree() { |
| | | this.$refs.deptTree.setCheckedKeys([]) |
| | | }, |
| | | initJob() { |
| | | this.$get('system/position/dicJob').then((r) => { |
| | | this.restaurJob = r.data.data |
| | | }) |
| | | }, |
| | | butDelete() { |
| | | let selected |
| | | switch (this.thisShowIndex) { |
| | |
| | | } |
| | | break |
| | | case 11: |
| | | selected = this.$refs.occupationalTable.selection |
| | | selected = this.$refs.laborTroubleTable.selection |
| | | if (selected.length > 0) { |
| | | const delIds = [] |
| | | selected.forEach((j) => { |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column v-if="fsnumShow" show-overflow-tooltip="true" prop="leaveId" label="" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="beginTime" label="开始时间" width="100" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="endTime" label="结束时间" width="100" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="beginTime" label="开始时间" width="180" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="endTime" label="结束时间" width="180" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="leaveDay" label="请假天数" width="100" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="leaveType" label="请假类型" :formatter="leaveTypeFormat" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="returnDate" label="到岗时间" width="180" /> |
| | |
| | | message: this.$t('rules.noMoreThan20'), |
| | | trigger: 'blur' |
| | | }], |
| | | empName: [{ required: true, message: '请输入员工姓名', trigger: 'blur' }, |
| | | empName: [{ required: true, message: '请输入姓名', trigger: 'blur' }, |
| | | { min: 2, max: 50, message: this.$t('rules.noMoreThan50'), trigger: 'blur' }], |
| | | empNumb: [{ required: true, message: '请输入员工编号', trigger: 'blur' }, |
| | | { min: 2, max: 20, message: this.$t('rules.noMoreThan20'), trigger: 'blur' }], |
| | |
| | | .el-dialog.is-fullscreen { |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .formjbxx { |
| | | .el-input.is-disabled .el-input__inner { |
| | | background-color: #fff !important; |
| | | color: #333 !important; |
| | | } |
| | | } |
| | | </style> |
| | | |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column v-if="fsnumShow" show-overflow-tooltip="true" prop="leaveId" label="" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="beginTime" label="开始时间" width="100" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="endTime" label="结束时间" width="100" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="beginTime" label="开始时间" width="180" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="endTime" label="结束时间" width="180" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="leaveDay" label="请假天数" width="100" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="leaveType" label="请假类型" :formatter="leaveTypeFormat" /> |
| | | <el-table-column show-overflow-tooltip="true" prop="returnDate" label="到岗时间" width="180" /> |
| | |
| | | message: this.$t('rules.noMoreThan20'), |
| | | trigger: 'blur' |
| | | }], |
| | | empName: [{ required: true, message: '请输入员工姓名', trigger: 'blur' }, |
| | | empName: [{ required: true, message: '请输入姓名', trigger: 'blur' }, |
| | | { min: 2, max: 50, message: this.$t('rules.noMoreThan50'), trigger: 'blur' }], |
| | | empNumb: [{ required: true, message: '请输入员工编号', trigger: 'blur' }, |
| | | { min: 2, max: 20, message: this.$t('rules.noMoreThan20'), trigger: 'blur' }], |
| | |
| | | .el-dialog.is-fullscreen { |
| | | overflow: hidden; |
| | | } |
| | | |
| | | .formjbxx { |
| | | .el-input.is-disabled .el-input__inner { |
| | | background-color: #fff !important; |
| | | color: #333 !important; |
| | | } |
| | | } |
| | | </style> |
| | | |
| | |
| | | message: this.$t('rules.noMoreThan20'), |
| | | trigger: 'blur' |
| | | }], |
| | | empName: [{ required: true, message: '请输入员工姓名', trigger: 'blur' }, |
| | | empName: [{ required: true, message: '请输入姓名', trigger: 'blur' }, |
| | | { min: 2, max: 50, message: this.$t('rules.noMoreThan50'), trigger: 'blur' }], |
| | | empNumb: [{ required: true, message: '请输入员工编号', trigger: 'blur' }, |
| | | { min: 2, max: 20, message: this.$t('rules.noMoreThan20'), trigger: 'blur' }], |
| | |
| | | this.getDicts('LZTYPE').then(response => { |
| | | this.dimissionTypeOptions = response.data |
| | | }) |
| | | this.initJob() |
| | | }, |
| | | methods: { |
| | | exportExcel() { |
| | |
| | | entryType: [] |
| | | } |
| | | this.search() |
| | | }, |
| | | initJob() { |
| | | this.$get('system/position/dicJob').then((r) => { |
| | | this.restaurJob = r.data.data |
| | | }) |
| | | }, |
| | | // 翻页方法 |
| | | search() { |
| | |
| | | }) |
| | | }) |
| | | }, |
| | | // 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 = [] |
| | | } |
| | | }, |
| | | selectAllEmpStatus(val) { |
| | | if (val) { |
| | | this.queryParams.empStatus = ['0', '1', '2', '3'] |
| | | } else { |
| | | this.queryParams.empStatus = [] |
| | | } |
| | | }, |
| | | selectAllEmpCardStatus(val) { |
| | | if (val) { |
| | | this.queryParams.empCardStatus = ['0', '1'] |
| | | this.queryParams.empCardStatus = this.dicListToArr(this.empCardStatusOptions) |
| | | } else { |
| | | this.queryParams.empCardStatus = [] |
| | | } |
| | | }, |
| | | selectAllHandbookStatus(val) { |
| | | if (val) { |
| | | this.queryParams.handbookStatus = ['0', '1'] |
| | | this.queryParams.handbookStatus = this.dicListToArr(this.handbookStatusOptions) |
| | | } else { |
| | | this.queryParams.handbookStatus = [] |
| | | } |
| | | }, |
| | | selectAllEmpType(val) { |
| | | if (val) { |
| | | this.queryParams.empType = ['01', '02'] |
| | | this.queryParams.empType = this.dicListToArr(this.empTypeOptions) |
| | | } else { |
| | | this.queryParams.empType = [] |
| | | } |
| | |
| | | alert('已选择部门' + names) |
| | | console.log(users) |
| | | }, |
| | | // 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 = [] |
| | | } |
| | | }, |
| | | selectAllEmpStatus(val) { |
| | | if (val) { |
| | | this.queryParams.empStatus = ['0', '1', '2', '3'] |
| | | } else { |
| | | this.queryParams.empStatus = [] |
| | | } |
| | | }, |
| | | selectAllEmpType(val) { |
| | | if (val) { |
| | | this.queryParams.empType = ['01', '02'] |
| | | this.queryParams.empType = this.dicListToArr(this.empTypeOptions) |
| | | } else { |
| | | this.queryParams.empType = [] |
| | | } |
| | |
| | | </tr> |
| | | <tr> |
| | | <td class="td">入离职类型:</td> |
| | | <td class="td-group" /> |
| | | <td class="td-group"> |
| | | <el-checkbox-group v-model="queryParams.inOutType" class="fj-checkbox"> |
| | | <el-checkbox label="" @change="selectAllDimissionType">全部</el-checkbox> |
| | | <el-checkbox |
| | | v-for="data in dimissionTypeOptions" |
| | | :key="data.dicItemName" |
| | | :label="data.dicItemCode" |
| | | > |
| | | {{ data.dicItemName }} |
| | | </el-checkbox> |
| | | </el-checkbox-group> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | </div> |
| | | <el-row> |
| | | <el-col :span="21" style="line-height: 50px;"> |
| | | 已为您搜索出<span style="color:red">{{ total }}</span>条符合条件的记录 |
| | | 已为您搜索出<span style="color:#ff0000">{{ total }}</span>条符合条件的记录 |
| | | </el-col> |
| | | <el-col :span="3" style="text-align: right;padding-right: 10px"> |
| | | <el-button class="hr-but-all" type="success" @click.native="showDcyg(0)"> |
| | |
| | | <el-table-column show-overflow-tooltip prop="deptName" label="(部门)护卫点" width="140" /> |
| | | <el-table-column show-overflow-tooltip prop="jobName" label="岗位" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="empName" label="姓名" width="80" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" /> |
| | | <el-table-column show-overflow-tooltip prop="certificateNumb" label="身份证号码" width="150" /> |
| | | <el-table-column show-overflow-tooltip prop="sex" label="性别" width="60" :formatter="sexFormat" /> |
| | | <el-table-column show-overflow-tooltip prop="age" label="年龄" width="60" /> |
| | | <el-table-column show-overflow-tooltip prop="education" label="学历" width="80" :formatter="educationFormat" /> |
| | |
| | | {{ transEmpStatus(row.empStatus) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column show-overflow-tooltip prop="dimissionTypeName" label="离职类型" width="100" /> |
| | | <el-table-column show-overflow-tooltip prop="entryDate" label="入职日期" width="120" /> |
| | | <el-table-column show-overflow-tooltip prop="dimissionDate" label="离职日期" width="120" /> |
| | | </el-table> |
| | |
| | | <el-table-column show-overflow-tooltip prop="remark" label="备注" /> |
| | | |
| | | <!-- <el-table-column prop="deptName" label="护卫点" width="180" /> |
| | | <el-table-column prop="jobName" label="岗位名称" width="180" /> |
| | | <el-table-column prop="empName" label="员工姓名" width="180" /> |
| | | <el-table-column prop="jobName" label="岗位" width="180" /> |
| | | <el-table-column prop="empName" label="姓名" width="180" /> |
| | | <el-table-column prop="certificateNumb" label="身份证号码" width="180" /> |
| | | <el-table-column show-overflow-tooltip prop="attendMonth" label="离职考勤月份" width="180" /> --> |
| | | </el-table> |
| | |
| | | empNumb: '', |
| | | empName: '', |
| | | certificateNumb: '', |
| | | jobContent: '' |
| | | jobContent: '', |
| | | inOutType: [] |
| | | }, // 查询参数 |
| | | sort: {}, // 排序 |
| | | pagination: { // 分页参数 |
| | |
| | | this.queryParams.empStatus = [] |
| | | } |
| | | }, |
| | | selectAllDimissionType(val) { |
| | | if (val) { |
| | | this.queryParams.inOutType = ['1', '2', '3', '4', '5', '6'] |
| | | } else { |
| | | this.queryParams.inOutType = [] |
| | | } |
| | | }, |
| | | exportExcel(params = {}) { |
| | | params.pageSize = this.pagination.size |
| | | params.pageNum = this.pagination.num |
| | |
| | | case '0': |
| | | return '在职' |
| | | case '1': |
| | | return '正常离职' |
| | | case '2': |
| | | return '自动离职' |
| | | case '3': |
| | | return '公司辞退' |
| | | return '离职' |
| | | } |
| | | }, |
| | | transLeaveType(leaveType) { |
| | |
| | | </el-checkbox-group> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="td">工作证:</td> |
| | | <td class="td-group"> |
| | | <el-checkbox-group v-model="queryform.empCardStatus" class="fj-checkbox"> |
| | | <el-checkbox label="" @change="selectAllEmpCardStatus">全部</el-checkbox> |
| | | <el-checkbox |
| | | v-for="data in empCardStatusOptions" |
| | | :key="data.dicItemName" |
| | | :label="data.dicItemCode" |
| | | > |
| | | {{ data.dicItemName }} |
| | | </el-checkbox> |
| | | </el-checkbox-group> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="td">员工手册:</td> |
| | | <td class="td-group"> |
| | | <el-checkbox-group v-model="queryform.handbookStatus" class="fj-checkbox"> |
| | | <el-checkbox label="" @change="selectAllHandbookStatus">全部</el-checkbox> |
| | | <el-checkbox |
| | | v-for="data in handbookStatusOptions" |
| | | :key="data.dicItemName" |
| | | :label="data.dicItemCode" |
| | | > |
| | | {{ data.dicItemName }} |
| | | </el-checkbox> |
| | | </el-checkbox-group> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="td">员工类型:</td> |
| | | <td class="td-group"> |
| | | <el-checkbox-group v-model="queryform.empType" class="fj-checkbox"> |
| | | <el-checkbox label="" @change="selectAllEmpType">全部</el-checkbox> |
| | | <el-checkbox |
| | | v-for="data in empTypeOptions" |
| | | :key="data.dicItemName" |
| | | :label="data.dicItemCode" |
| | | > |
| | | {{ data.dicItemName }} |
| | | </el-checkbox> |
| | | </el-checkbox-group> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td class="td">入职类型:</td> |
| | | <td class="td-group"> |
| | | <el-checkbox-group v-model="queryform.entryType" class="fj-checkbox"> |
| | | <el-checkbox label="" @change="selectAllEntryType">全部</el-checkbox> |
| | | <el-checkbox :label="4">新入职</el-checkbox> |
| | | <el-checkbox :label="5">最新入职</el-checkbox> |
| | | <el-checkbox :label="6">返聘入职</el-checkbox> |
| | | </el-checkbox-group> |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | age: [], |
| | | archivesStatus: [], |
| | | insuranceType: [], |
| | | empStatus: [] |
| | | empStatus: [], |
| | | empCardStatus: [], |
| | | handbookStatus: [], |
| | | empType: [], |
| | | entryType: [] |
| | | }, |
| | | total: 0, // 总数量 |
| | | pagination: { // 分页参数 |
| | |
| | | educationOptions: [], |
| | | statusOptions: [], |
| | | ageStrOptions: [], |
| | | archivesStatusOptions: [] |
| | | archivesStatusOptions: [], |
| | | empCardStatusOptions: [], |
| | | handbookStatusOptions: [], |
| | | empTypeOptions: [] |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.initLabel() |
| | | this.fetch() |
| | | this.getDicts('empType').then(response => { |
| | | this.empTypeOptions = response.data |
| | | }) |
| | | this.getDicts('empCardStatus').then(response => { |
| | | this.empCardStatusOptions = response.data |
| | | }) |
| | | this.getDicts('handbookStatus').then(response => { |
| | | this.handbookStatusOptions = response.data |
| | | }) |
| | | this.getDicts('sex').then(response => { |
| | | this.sexOptions = response.data |
| | | }) |
| | |
| | | }, |
| | | selectAllSex(val) { |
| | | if (val) { |
| | | this.queryform.sex = ['1', '2'] |
| | | this.queryParams.sex = this.dicListToArr(this.sexOptions) |
| | | } else { |
| | | this.queryform.sex = [] |
| | | this.queryParams.sex = [] |
| | | } |
| | | }, |
| | | selectAllEducation(val) { |
| | | if (val) { |
| | | this.queryform.education = ['91', '81', '71', '61', '42', '41', '31', '21', '11', '10'] |
| | | this.queryParams.education = this.dicListToArr(this.educationOptions) |
| | | } else { |
| | | this.queryform.education = [] |
| | | this.queryParams.education = [] |
| | | } |
| | | }, |
| | | selectAllPolitics(val) { |
| | | if (val) { |
| | | this.queryform.politics = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12', '13'] |
| | | this.queryParams.politics = this.dicListToArr(this.statusOptions) |
| | | } else { |
| | | this.queryform.politics = [] |
| | | this.queryParams.politics = [] |
| | | } |
| | | }, |
| | | selectAllage(val) { |
| | | selectAllAgeStr(val) { |
| | | if (val) { |
| | | this.queryform.age = ['18-29', '30-39', '40-49', '50-59', '60-69', '69-999'] |
| | | this.queryParams.ageStr = this.dicListToArr(this.ageStrOptions) |
| | | } else { |
| | | this.queryform.age = [] |
| | | this.queryParams.ageStr = [] |
| | | } |
| | | }, |
| | | selectAllArchivesStatus(val) { |
| | | if (val) { |
| | | this.queryform.archivesStatus = ['0', '1'] |
| | | this.queryParams.archivesStatus = this.dicListToArr(this.archivesStatusOptions) |
| | | } else { |
| | | this.queryform.archivesStatus = [] |
| | | this.queryParams.archivesStatus = [] |
| | | } |
| | | }, |
| | | selectAllInsuranceType(val) { |
| | | if (val) { |
| | | this.queryform.insuranceType = ['1', '2', '3', '4', '5'] |
| | | this.queryParams.insuranceType = this.dicListToArr(this.insuranceTypeOptions) |
| | | } else { |
| | | this.queryform.insuranceType = [] |
| | | this.queryParams.insuranceType = [] |
| | | } |
| | | }, |
| | | selectAllEmpStatus(val) { |
| | | selectAllEmpCardStatus(val) { |
| | | if (val) { |
| | | this.queryParams.empStatus = ['0', '1', '2', '3'] |
| | | this.queryParams.empCardStatus = this.dicListToArr(this.empCardStatusOptions) |
| | | } else { |
| | | this.queryParams.empStatus = [] |
| | | this.queryParams.empCardStatus = [] |
| | | } |
| | | }, |
| | | selectAllHandbookStatus(val) { |
| | | if (val) { |
| | | this.queryParams.handbookStatus = this.dicListToArr(this.handbookStatusOptions) |
| | | } else { |
| | | this.queryParams.handbookStatus = [] |
| | | } |
| | | }, |
| | | selectAllEmpType(val) { |
| | | if (val) { |
| | | this.queryParams.empType = this.dicListToArr(this.empTypeOptions) |
| | | } else { |
| | | this.queryParams.empType = [] |
| | | } |
| | | }, |
| | | selectAllEntryType(val) { |
| | | if (val) { |
| | | this.queryParams.entryType = [4, 5, 6] |
| | | } else { |
| | | this.queryParams.entryType = [] |
| | | } |
| | | }, |
| | | // dic列表转为数组 |
| | | dicListToArr(dicList) { |
| | | var arr = [] |
| | | for (var i = 0; i < dicList.length; i++) { |
| | | var dic = dicList[i] |
| | | arr.push(dic.dicItemCode) |
| | | } |
| | | return arr |
| | | } |
| | | } |
| | | } |
| | |
| | | />提示:文件不要超过10个,单个文件大小不超过50M,单击或者拖动文件到下面区域,支持单个或批量文件的上传。</el-col> |
| | | </el-row> |
| | | <el-row style="background-color: rgba(0,0,0,0.2);"> |
| | | <el-col :span="16"> |
| | | <el-col :span="14"> |
| | | <el-checkbox |
| | | v-model="checkAll" |
| | | class="myRedCheckBox" |
| | | style="color: #000; margin-left: 20px;" |
| | | @change="checkAllMethods()" |
| | | >全选</el-checkbox></el-col> |
| | | <el-col :span="8"> |
| | | <el-col :span="10"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-download" |
| | |
| | | <el-popconfirm title="是否移动附件?" @onConfirm="mvdialogFormVisible = true"> |
| | | <el-button slot="reference" class="hr-but" type="danger">转存</el-button> |
| | | </el-popconfirm> |
| | | <el-button type="warning" @click="openUpdateFileName()">重命名</el-button> |
| | | <el-button type="primary" @click="downloaddialogFormVisible = true">查看</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </el-header> |
| | | <el-dialog title="修改文件名" :visible.sync="updateFileNameFormVisible" append-to-body width="20%"> |
| | | <el-form ref="updateFileName" :model="file" :rules="mvrules"> |
| | | <el-form-item label="文件名" :label-width="formLabelWidth" prop="fileName"> |
| | | <el-input v-model="file.fileName" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="updateFileNameFormVisible = false">取 消</el-button> |
| | | <el-button type="primary" @click="updateFileName('updateFileName')">确 定</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <el-dialog |
| | | title="移动文件" |
| | | :visible.sync="mvdialogFormVisible" |
| | |
| | | <el-col v-if="node.isUpload === false" :key="node.filesid" :span="3"> |
| | | <el-card |
| | | shadow="never" |
| | | @click.native="clickCard(index * 8 + nodeIndex)" |
| | | > |
| | | <img |
| | | :src="showFileImg(node.filesformat)" |
| | | class="uploading-image" |
| | | @click="clickCard(index * 8 + nodeIndex)" |
| | | > |
| | | <el-tooltip class="item" effect="dark" :content="node.filesname" placement="bottom"> |
| | | <div style="padding-top: 14px;"> |
| | |
| | | }, |
| | | data() { |
| | | return { |
| | | updateFileNameFormVisible: false, |
| | | file: { |
| | | fileName: '' |
| | | }, |
| | | mvrules: { |
| | | labelid: [{ required: true, message: '请选择标签', trigger: 'change' }] |
| | | labelid: [{ required: true, message: '请选择标签', trigger: 'change' }], |
| | | fileName: [ |
| | | { required: true, message: '请输入文件名称', trigger: 'blur' }, |
| | | { min: 3, max: 10, message: '长度在 3 到 20 个字符', trigger: 'blur' } |
| | | ] |
| | | }, |
| | | mvdialogFormVisible: false, |
| | | uploadSinglePath: pages.uploadSinglePath, |
| | |
| | | this.initlabel() |
| | | }, |
| | | methods: { |
| | | updateFileName(formName) { |
| | | this.$refs[formName].validate(valid => { |
| | | if (valid) { |
| | | var checke = '' |
| | | debugger |
| | | this.checkedArr.forEach((v, i) => { |
| | | if (v.isChecked) { |
| | | checke = v.accessoryid |
| | | } |
| | | }) |
| | | // 生成查询文件的条件 |
| | | var params = { accessoryid: checke, filesname: this.file.fileName } |
| | | this.$put('hr/empAccessory', { ...params }).then(() => { |
| | | this.$message({ |
| | | message: '重命名成功!', |
| | | type: 'success' |
| | | }) |
| | | this.file.fileName = '' |
| | | this.updateFileNameFormVisible = false |
| | | // 生成查询文件的条件 |
| | | var initFileParams = { |
| | | labelid: this.activities[this.beforeIndex].id, |
| | | filesname: this.fileName, |
| | | empid: this.rowitem.empId |
| | | } |
| | | this.initFile(initFileParams) |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | openUpdateFileName() { |
| | | var checke = [] |
| | | this.checkedArr.forEach((v, i) => { |
| | | if (v.isChecked) { |
| | | checke.push(v.filesid) |
| | | } |
| | | }) |
| | | |
| | | if (checke.length <= 0) { |
| | | this.$message({ |
| | | message: '请选择一个需要重命名的文件!', |
| | | type: 'warning' |
| | | }) |
| | | } else { |
| | | this.updateFileNameFormVisible = true |
| | | } |
| | | }, |
| | | async initlabel() { |
| | | await this.$get('hr/label').then(r => { |
| | | this.activities = [] |
| | |
| | | />提示:文件不要超过10个,单个文件大小不超过200M,单击或者拖动文件到下面区域,支持单个或批量文件的上传。</el-col> |
| | | </el-row> |
| | | <el-row style="background-color: rgba(0,0,0,0.2);"> |
| | | <el-col :span="17"> |
| | | <el-col :span="14"> |
| | | <el-checkbox |
| | | v-model="checkAll" |
| | | class="myRedCheckBox" |
| | | style="color: #000; margin-left: 20px;" |
| | | @change="checkAllMethods()" |
| | | >全选</el-checkbox></el-col> |
| | | <el-col :span="7"> |
| | | <el-col :span="10"> |
| | | <el-button |
| | | type="primary" |
| | | icon="el-icon-download" |
| | |
| | | <el-popconfirm title="是否移动文件?" @onConfirm="mvdialogFormVisible = true"> |
| | | <el-button slot="reference" class="hr-but" type="danger">转存</el-button> |
| | | </el-popconfirm> |
| | | <el-button type="warning" @click="openUpdateFileName()">重命名</el-button> |
| | | <el-button type="primary" @click="downloaddialogFormVisible = true">查看</el-button> |
| | | </el-col> |
| | | </el-row> |
| | | </el-header> |
| | | |
| | | <el-dialog title="修改文件名" :visible.sync="updateFileNameFormVisible" width="20%"> |
| | | <el-form ref="updateFileName" :model="file" :rules="rules"> |
| | | <el-form-item label="文件名" :label-width="formLabelWidth" prop="fileName"> |
| | | <el-input v-model="file.fileName" autocomplete="off" /> |
| | | </el-form-item> |
| | | </el-form> |
| | | <div slot="footer" class="dialog-footer"> |
| | | <el-button @click="updateFileNameFormVisible = false">取 消</el-button> |
| | | <el-button type="primary" @click="updateFileName('updateFileName')">确 定</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | |
| | | <el-dialog |
| | | title="移动文件" |
| | | :visible.sync="mvdialogFormVisible" |
| | |
| | | > |
| | | <el-tooltip class="item" effect="dark" :content="node.filesname" placement="bottom"> |
| | | <div style="padding-top: 14px;"> |
| | | <el-checkbox v-model="checkedArr[index * rowCount + nodeIndex].isChecked" class="myRedCheckBox">{{ node.filesname }}</el-checkbox> |
| | | <el-checkbox v-model="checkedArr[index * 8 + nodeIndex].isChecked" class="myRedCheckBox">{{ node.filesname }}</el-checkbox> |
| | | </div> |
| | | </el-tooltip> |
| | | </el-card> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | updateFileNameFormVisible: false, |
| | | file: { |
| | | fileName: '' |
| | | }, |
| | | rowCount: 12, |
| | | mvrules: { |
| | | folderid: [{ required: true, message: '请选择目录', trigger: 'change' }] |
| | |
| | | { required: true, message: '请输入文件夹名称', trigger: 'blur' }, |
| | | { min: 3, max: 10, message: '长度在 3 到 10 个字符', trigger: 'blur' } |
| | | ], |
| | | fileName: [ |
| | | { required: true, message: '请输入文件名称', trigger: 'blur' }, |
| | | { min: 3, max: 10, message: '长度在 3 到 20 个字符', trigger: 'blur' } |
| | | ], |
| | | sort: [{ required: true, message: '请输入排序', type: 'number', trigger: 'blur' }] |
| | | }, |
| | | formLabelWidth: '100px', |
| | |
| | | this.initFolder() |
| | | }, |
| | | methods: { |
| | | updateFileName(formName) { |
| | | this.$refs[formName].validate(valid => { |
| | | if (valid) { |
| | | var checke = '' |
| | | this.checkedArr.forEach((v, i) => { |
| | | if (v.isChecked) { |
| | | checke = v.filesid |
| | | } |
| | | }) |
| | | // 生成查询文件的条件 |
| | | var params = { filesid: checke, filesname: this.file.fileName } |
| | | this.$put('hr/filesUpload', { ...params }).then(() => { |
| | | this.$message({ |
| | | message: '重命名成功!', |
| | | type: 'success' |
| | | }) |
| | | this.updateFileNameFormVisible = false |
| | | this.file.fileName = '' |
| | | // 生成查询文件的条件 |
| | | var initFileParams = { |
| | | folderid: this.activities[this.beforeIndex].id, |
| | | filesname: this.fileName |
| | | } |
| | | this.initFile(initFileParams) |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | openUpdateFileName() { |
| | | var checke = [] |
| | | this.checkedArr.forEach((v, i) => { |
| | | if (v.isChecked) { |
| | | checke.push(v.filesid) |
| | | } |
| | | }) |
| | | |
| | | if (checke.length <= 0) { |
| | | this.$message({ |
| | | message: '请选择一个需要重命名的文件!', |
| | | type: 'warning' |
| | | }) |
| | | } else { |
| | | this.updateFileNameFormVisible = true |
| | | } |
| | | }, |
| | | async initFolder() { |
| | | await this.$get('hr/folder').then(r => { |
| | | this.activities = [] |
| | |
| | | // change xxx-api/login => mock/login |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | // target: 'http://120.24.23.155:8301/', |
| | | // target: 'http://120.24.23.155:7301/', |
| | | target: 'http://127.0.0.1:8301/', |
| | | target: 'http://120.24.23.155:8301/', |
| | | // target: 'http://127.0.0.1:8301/', |
| | | changeOrigin: true, |
| | | pathRewrite: { |
| | | ['^' + process.env.VUE_APP_BASE_API]: '' |