| | |
| | | |
| | | <script lang="ts"> |
| | | import { Component , PropSync , Vue} from "vue-property-decorator"; |
| | | import * as _ from 'lodash'; |
| | | |
| | | @Component |
| | | export default class CareerSelect extends Vue { |
| | |
| | | |
| | | patchInitValue(): void{ |
| | | if(this.syncCareerSelect){ |
| | | if(_.includes(['外勤','內勤'],this.syncCareerSelect)){ |
| | | if (['外勤','內勤'].includes(this.syncCareerSelect)) { |
| | | this.career = this.syncCareerSelect; |
| | | }else{ |
| | | this.career = '其他'; |
| | |
| | | patchCareer(): void { |
| | | this.showJobDrawer = false; |
| | | this.syncCareerSelect = this.career === '其他' |
| | | ? _.cloneDeep(this.career_Other) |
| | | : _.cloneDeep(this.career); |
| | | ? JSON.parse(JSON.stringify(this.career_Other)) |
| | | : JSON.parse(JSON.stringify(this.career)); |
| | | } |
| | | |
| | | get isCareerValid(): boolean { |