From a4d0446d7c1c1e56641fd4e887ad4d0ecd0534ca Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期四, 05 三月 2026 17:43:55 +0800
Subject: [PATCH] 排班管理页面完成70%

---
 src/views/personnelManagement/socialSecuritySet/index.vue |  127 ++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 127 insertions(+), 0 deletions(-)

diff --git a/src/views/personnelManagement/socialSecuritySet/index.vue b/src/views/personnelManagement/socialSecuritySet/index.vue
new file mode 100644
index 0000000..3c66656
--- /dev/null
+++ b/src/views/personnelManagement/socialSecuritySet/index.vue
@@ -0,0 +1,127 @@
+<template>
+  <div class="app-container">
+    <div class="search_form">
+      <div>
+        <span class="search_title">涓婚锛�</span>
+        <el-input
+          v-model="searchForm.title"
+          style="width: 240px"
+          placeholder="璇疯緭鍏ヤ富棰�"
+          clearable
+          @keyup.enter="handleQuery"
+        />
+        <el-button type="primary" @click="handleQuery" style="margin-left: 10px">
+          鎼滅储
+        </el-button>
+        <el-button @click="handleReset">閲嶇疆</el-button>
+      </div>
+    </div>
+    <div class="table_list">
+      <div style="margin-bottom: 10px">
+        <el-button type="primary" @click="openForm('add')">鏂板鏂规</el-button>
+      </div>
+      <PIMTable
+        rowKey="id"
+        :column="tableColumn"
+        :tableData="tableData"
+        :page="page"
+        :tableLoading="tableLoading"
+        @pagination="pagination"
+        :total="page.total"
+      />
+    </div>
+    <form-dia ref="formDiaRef" @close="handleQuery" />
+  </div>
+</template>
+
+<script setup>
+import { onMounted, ref, reactive, toRefs, getCurrentInstance, nextTick } from "vue";
+import FormDia from "./components/formDia.vue";
+import PIMTable from "@/components/PIMTable/PIMTable.vue";
+import { socialSecurityListPage } from "@/api/personnelManagement/socialSecuritySet.js";
+
+const data = reactive({
+  searchForm: {
+    title: "",
+  },
+});
+const { searchForm } = toRefs(data);
+
+const tableColumn = ref([
+  { label: "涓婚", prop: "title", minWidth: 120 },
+  { label: "淇濋櫓绫诲瀷", prop: "insuranceTypeName", width: 120 },
+  { label: "浣跨敤鑼冨洿", prop: "scopeName", width: 120 },
+  { label: "澶囨敞", prop: "remark", minWidth: 120 },
+  { label: "鍒涘缓鏃堕棿", prop: "createTime", width: 160 },
+  { label: "鍒涘缓浜�", prop: "createBy", width: 100 },
+  {
+    dataType: "action",
+    label: "鎿嶄綔",
+    align: "center",
+    fixed: "right",
+    width: 120,
+    operation: [
+      {
+        name: "缂栬緫",
+        type: "text",
+        clickFun: (row) => openForm("edit", row),
+      },
+    ],
+  },
+]);
+
+const tableData = ref([]);
+const tableLoading = ref(false);
+const page = reactive({
+  current: 1,
+  size: 10,
+  total: 0,
+});
+const formDiaRef = ref(null);
+
+const handleQuery = () => {
+  page.current = 1;
+  getList();
+};
+
+const handleReset = () => {
+  searchForm.value.title = "";
+  page.current = 1;
+  getList();
+};
+
+const pagination = (obj) => {
+  page.current = obj.page;
+  page.size = obj.limit;
+  getList();
+};
+
+const getList = () => {
+  tableLoading.value = true;
+  socialSecurityListPage({
+    ...searchForm.value,
+    current: page.current,
+    size: page.size,
+  })
+    .then((res) => {
+      tableLoading.value = false;
+      tableData.value = res.data?.records ?? [];
+      page.total = res.data?.total ?? 0;
+    })
+    .catch(() => {
+      tableLoading.value = false;
+    });
+};
+
+const openForm = (type, row) => {
+  nextTick(() => {
+    formDiaRef.value?.openDialog(type, row);
+  });
+};
+
+onMounted(() => {
+  getList();
+});
+</script>
+
+<style scoped></style>

--
Gitblit v1.9.3