gaoluyang
16 小时以前 0160f427f48cdbdacf1ce8466982a1d3c6f3cc05
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>