| | |
| | | <el-table-column prop="empNumb" label="员工编号" width="100" /> |
| | | <el-table-column prop="empName" label="姓名" width="100" /> |
| | | <el-table-column prop="certificateNumb" label="身份证号码" width="180" /> |
| | | <el-table-column prop="contractStatus" label="合同状态" width="180"> |
| | | <template slot-scope="{row}"> |
| | | {{ transContractStatus(row.contractStatus,row.endDate) }} |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column prop="contractStatus" label="合同状态" width="180" /> |
| | | <el-table-column prop="signingDate" label="合同签订日期" width="100" /> |
| | | <el-table-column prop="beginDate" label="开始日期" width="100" /> |
| | | <el-table-column prop="endDate" label="结束日期" width="100" /> |
| | |
| | | }, |
| | | methods: { |
| | | transContractStatus(contractStatus, time) { |
| | | debugger |
| | | var strtime = time.replace('/-/g', '/')// 时间转换 |
| | | // 时间 |
| | | var date1 = new Date(strtime) |