gaoluyang
昨天 2e02111747139c575101437920e821abfa1b1317
人员管理页面
已修改1个文件
已添加1个文件
184 ■■■■■ 文件已修改
src/layout/components/Sidebar/Logo.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/personnelManagement/onboarding/index.vue 180 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/layout/components/Sidebar/Logo.vue
@@ -89,8 +89,8 @@
.sidebar-logo-container {
  position: relative;
  width: 100%;
  height: 50px;
  width: 100% !important;
  height: 50px !important;
  line-height: 50px;
  background: #fff;
  text-align: center;
src/views/personnelManagement/onboarding/index.vue
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,180 @@
<template>
  <div class="app-container">
    <div class="search_form">
      <div>
        <span class="search_title">姓名:</span>
        <el-input
            v-model="searchForm.customerName"
            style="width: 240px"
            placeholder="请输入名称搜索"
            @change="handleQuery"
            clearable
            :prefix-icon="Search"
        />
        <el-button type="primary" @click="handleQuery" style="margin-left: 10px">搜索</el-button>
      </div>
      <div>
        <el-button type="primary" @click="openForm">新增入职</el-button>
      </div>
    </div>
    <div class="table_list">
      <PIMTable :column="tableColumn" :tableData="tableData" :page="page" :isSelection="true"
                :handleSelectionChange="handleSelectionChange" :tableLoading="tableLoading" @pagination="pagination"
                :total="total"></PIMTable>
    </div>
  </div>
</template>
<script setup>
import {Search} from "@element-plus/icons-vue";
import {ref} from "vue";
const data = reactive({
  searchForm: {
    customerName: '',
  },
  form: {
    salesLedgerId: '',
    customerName: '',
    salesman: '',
    projectName: '',
    productData: []
  },
  rules: {
    salesLedgerId: [{ required: true, message: "请选择", trigger: "change" }]
  }
})
const { searchForm, form, rules } = toRefs(data)
const tableColumn = ref([
  {
    label: '状态',
    prop: 'paymentDate',
    dataType: 'tag',
    formatData: (params) => {
      if (params == 0) {
        return '在职';
      } else if (params == 1) {
        return '离职';
      } else {
        return null
      }
    },
    formatType: (params) => {
      if (params == 0) {
        return 'primary';
      } else if (params == 1) {
        return 'danger';
      } else {
        return null
      }
    }
  },
  {
    label: '员工编号',
    prop: 'supplierName',
  },
  {
    label: '姓名',
    prop: 'currentPaymentAmount',
  },
  {
    label: '性别',
    prop: 'paymentMethod'
  },
  {
    label: '籍贯',
    prop: 'registrant'
  },
  {
    label: '岗位',
    prop: 'registrationtDate'
  },
  {
    label: '家庭住址',
    prop: 'registrationtDate'
  },
  {
    label: '第一学历',
    prop: 'registrationtDate'
  },
  {
    label: '专业',
    prop: 'registrationtDate'
  },
  {
    label: '身份证号',
    prop: 'registrationtDate'
  },
  {
    label: '年龄',
    prop: 'registrationtDate'
  },
  {
    label: '联系电话',
    prop: 'registrationtDate'
  },
  {
    label: '紧急联系人',
    prop: 'registrationtDate'
  },
  {
    label: '联系电话',
    prop: 'registrationtDate'
  },
  {
    label: '合同年限',
    prop: 'registrationtDate'
  },
  {
    label: '合同开始日期',
    prop: 'registrationtDate'
  },
  {
    label: '合同结束日期',
    prop: 'registrationtDate'
  },
])
const tableData = ref([])
const selectedRows = ref([])
const tableLoading = ref(false)
const page = reactive({
  current: 1,
  size: 100,
})
const total = ref(0)
// æŸ¥è¯¢åˆ—表
/** æœç´¢æŒ‰é’®æ“ä½œ */
const handleQuery = () => {
  page.current = 1
  getList()
}
const pagination = (obj) => {
  page.current = obj.page;
  page.size = obj.limit;
  getList()
}
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) => {
  console.log('selection', selection)
  selectedRows.value = selection.filter(item => item.salesContractNo !== undefined);
}
// æ‰“开弹框
const openForm = () => {
}
</script>
<style scoped>
</style>