From 0160f427f48cdbdacf1ce8466982a1d3c6f3cc05 Mon Sep 17 00:00:00 2001
From: gaoluyang <2820782392@qq.com>
Date: 星期一, 30 六月 2025 15:14:54 +0800
Subject: [PATCH] 人员管理-新增入职、新增离职页面
---
src/views/personnelManagement/onboarding/index.vue | 18 +++++++++++-------
1 files changed, 11 insertions(+), 7 deletions(-)
diff --git a/src/views/personnelManagement/onboarding/index.vue b/src/views/personnelManagement/onboarding/index.vue
index cc1e8e5..2ad1e89 100644
--- a/src/views/personnelManagement/onboarding/index.vue
+++ b/src/views/personnelManagement/onboarding/index.vue
@@ -16,7 +16,7 @@
>
</div>
<div>
- <el-button type="primary" @click="openForm">鏂板鍏ヨ亴</el-button>
+ <el-button type="primary" @click="openForm('add')">鏂板鍏ヨ亴</el-button>
</div>
</div>
<div class="table_list">
@@ -32,12 +32,14 @@
:total="total"
></PIMTable>
</div>
+ <form-dia ref="formDia"></form-dia>
</div>
</template>
<script setup>
import { Search } from "@element-plus/icons-vue";
import { ref } from "vue";
+import FormDia from "@/views/personnelManagement/onboarding/components/formDia.vue";
const data = reactive({
searchForm: {
@@ -152,6 +154,8 @@
size: 100,
});
const total = ref(0);
+const formDia = ref()
+const { proxy } = getCurrentInstance()
// 鏌ヨ鍒楄〃
/** 鎼滅储鎸夐挳鎿嶄綔 */
@@ -166,11 +170,7 @@
};
const getList = () => {
tableLoading.value = true;
- ledgerListPage({ ...searchForm.value, ...page }).then((res) => {
- tableLoading.value = false;
- tableData.value = res.records;
- total.value = res.total;
- });
+
};
// 琛ㄦ牸閫夋嫨鏁版嵁
const handleSelectionChange = (selection) => {
@@ -181,7 +181,11 @@
};
// 鎵撳紑寮规
-const openForm = () => {};
+const openForm = (type, row) => {
+ nextTick(() => {
+ formDia.value?.openDialog(type, row)
+ })
+};
</script>
<style scoped></style>
--
Gitblit v1.9.3