| | |
| | | <script setup> |
| | | import {ref} from "vue"; |
| | | import {staffOnJobInfo} from "@/api/personnelManagement/employeeRecord.js"; |
| | | import PIMTable from "@/components/PIMTable/PIMTable.vue"; |
| | | const { proxy } = getCurrentInstance() |
| | | const emit = defineEmits(['close']) |
| | | |
| | |
| | | tableData.value = res.data |
| | | }) |
| | | } |
| | | |
| | | // if (operationType.value === 'edit') { |
| | | // tableLoading.value = true; // 添加加载状态 |
| | | // staffOnJobInfo({staffNo: row.staffNo}).then(res => { |
| | | // tableLoading.value = false; |
| | | // // 将对象数据转换为数组格式 |
| | | // tableData.value = [res.data]; |
| | | // }).catch(err => { |
| | | // tableLoading.value = false; |
| | | // console.error('获取详情失败:', err); |
| | | // proxy.$modal.msgError('获取详情数据失败'); |
| | | // }) |
| | | // } |
| | | } |
| | | |
| | | // 关闭弹框 |