| | |
| | | } |
| | | return config |
| | | }, error => { |
| | | debugger |
| | | console.log(error) |
| | | Promise.reject(error) |
| | | }) |
| | |
| | | return this.selectDictLabel(this.contractStatusOptions, row.contractStatus) |
| | | }, |
| | | transContractStatus(contractStatus, time) { |
| | | debugger |
| | | var strtime = time.replace('/-/g', '/')// 时间转换 |
| | | // 时间 |
| | | var date1 = new Date(strtime) |
| | |
| | | this.$get('hr/statistics/empBaseInfoList', { |
| | | ...params |
| | | }).then((r) => { |
| | | debugger |
| | | const data = r.data.data |
| | | that.total = data.total |
| | | that.list = data.rows |
| | |
| | | this.selection = selection |
| | | }, |
| | | add() { |
| | | debugger |
| | | this.$refs.edit.setaddDicItem(this.queryParams.dicId) |
| | | this.dialog.title = this.$t('common.add') |
| | | this.dialog.isVisible = true |
| | |
| | | cancelButtonText: this.$t('common.cancel'), |
| | | type: 'warning' |
| | | }).then(() => { |
| | | debugger |
| | | const dicItemId = [] |
| | | this.selection.forEach((c) => { |
| | | dicItemId.push(c.dicItemId) |
| | |
| | | } |
| | | }, |
| | | setaddDicItem(val) { |
| | | debugger |
| | | this.dicItem.dicId = val |
| | | }, |
| | | setdicItem(val) { |
| | |
| | | } else { |
| | | // update |
| | | this.$put('system/dicItem', { ...this.dicItem }).then(() => { |
| | | debugger |
| | | this.buttonLoading = false |
| | | this.isVisible = false |
| | | this.$message({ |
| | |
| | | cancelButtonText: this.$t('common.cancel'), |
| | | type: 'warning' |
| | | }).then(() => { |
| | | debugger |
| | | const dicId = [] |
| | | this.selection.forEach((c) => { |
| | | dicId.push(c.dicId) |
| | |
| | | }) |
| | | }, |
| | | singleDelete(row) { |
| | | debugger |
| | | this.$refs.table.toggleRowSelection(row, true) |
| | | this.delete(row.dicId) |
| | | }, |
| | |
| | | cancelButtonText: this.$t('common.cancel'), |
| | | type: 'warning' |
| | | }).then(() => { |
| | | debugger |
| | | const positionId = [] |
| | | this.selection.forEach((c) => { |
| | | positionId.push(c.positionId) |
| | |
| | | }) |
| | | }, |
| | | singleDelete(row) { |
| | | debugger |
| | | this.$refs.table.toggleRowSelection(row, true) |
| | | this.delete(row.positionId) |
| | | }, |
| | |
| | | } else { |
| | | // update |
| | | this.$put('system/position', { ...this.position }).then(() => { |
| | | debugger |
| | | this.buttonLoading = false |
| | | this.isVisible = false |
| | | this.$message({ |
| | |
| | | this.checkedArr = [] |
| | | this.$get('hr/empAccessory', { ...params }).then(r => { |
| | | r.data.data.forEach((v, i) => { |
| | | debugger |
| | | this.checkedArr.push({ isChecked: false, accessoryid: v.accessoryid }) |
| | | // 一行8个 等于8就换行 |
| | | if (i % 8 === 0 && i !== 0) { |
| | |
| | | this.remarkInfoForm.version = '' |
| | | }, |
| | | dialogIsShow() { |
| | | debugger |
| | | this.workExperienceModal = false |
| | | this.isAdd = true |
| | | this.dialogshowArr[this.thisShowIndex].show = !this.dialogshowArr[this.thisShowIndex] |
| | |
| | | this.remarkInfoForm.version = '' |
| | | }, |
| | | dialogIsShow() { |
| | | debugger |
| | | this.workExperienceModal = false |
| | | this.isAdd = true |
| | | this.dialogshowArr[this.thisShowIndex].show = !this.dialogshowArr[this.thisShowIndex] |
| | |
| | | this.$refs[formName].validate(valid => { |
| | | if (valid) { |
| | | var checke = '' |
| | | debugger |
| | | this.checkedArr.forEach((v, i) => { |
| | | if (v.isChecked) { |
| | | checke = v.accessoryid |
| | |
| | | } |
| | | }, |
| | | showFileImg(type) { |
| | | debugger |
| | | switch (type) { |
| | | case 'xls': |
| | | return require('../../assets/uploading/xls.png') |