| | |
| | | <el-button @click="closeDia">取消</el-button> |
| | | </div> |
| | | </template> |
| | | <fileUpload |
| | | ref="fileUploadRef" |
| | | :fileSize="1024" |
| | | :fileType="['pdf', 'docx', 'txt', 'xlsx', 'pptx....']" |
| | | :limit="10" |
| | | :drag="false" |
| | | v-model:modelValue="modelValue" |
| | | /> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | |
| | | <script setup> |
| | | import {ref} from "vue"; |
| | | import {staffOnJobInfo} from "@/api/personnelManagement/employeeRecord.js"; |
| | | import PIMTable from "@/components/PIMTable/PIMTable.vue"; |
| | | import fileUpload from "@/components/FileUpload/index.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('获取详情数据失败'); |
| | | // }) |
| | | // } |
| | | } |
| | | |
| | | // 关闭弹框 |