lifanagju_citu 10 місяців тому
батько
коміт
6b75403df1

+ 2 - 0
src/locales/en.js

@@ -198,6 +198,8 @@ export default {
       invitationRecord: 'Invitation Record',
       post: 'Post',
       jobBinding: 'Job binding',
+      Inviter: 'Inviter',
+      invitationTime: 'Invitation time',
       postNodataToAdd: 'There is currently no job data available, please add job data first',
       selectBinding: 'Please select the position to be bound'
     }

+ 2 - 0
src/locales/zh-CN.js

@@ -198,6 +198,8 @@ export default {
       invitationRecord: '邀请记录',
       post: '岗位',
       jobBinding: '岗位绑定',
+      inviter: '邀请人',
+      invitationTime: '邀请时间',
       postNodataToAdd: '暂无岗位数据,请先添加岗位数据',
       selectBinding: '请选择要绑定的岗位'
     }

+ 2 - 2
src/views/recruit/enterprise/systemManagement/groupAccount/addBranchOffice.vue

@@ -7,10 +7,10 @@
       </v-tabs>
       <v-window v-model="tab" class="mt-3">
         <v-window-item :value="1">
-          <invite></invite>
+          <invite style="min-height: 500px;"></invite>
         </v-window-item>
         <v-window-item :value="2">
-          <record></record>
+          <record style="min-height: 500px;"></record>
         </v-window-item>
       </v-window>
     </div>

+ 1 - 1
src/views/recruit/enterprise/systemManagement/groupAccount/components/invite.vue

@@ -1,6 +1,6 @@
 <!-- 发起邀请 -->
 <template>
-  <div style="font-size: 14px; min-height: 500px;">
+  <div style="font-size: 14px;">
     <div class="mt-5 color-777">将下面的公共邀请链接通过微信、00等任何方式发给同事,即可点击加入公司。请注意,用户同意后将自动加入到团队中,您需确保添加到的同事为同一公司招聘人员</div>
     <div class="mt-5 d-flex align-center">
       <div class="mr-5 shareUrlTxt">http://menduner.citupro.com:7878/groupAccount/add?code={{ props.code }}</div>

+ 46 - 1
src/views/recruit/enterprise/systemManagement/groupAccount/components/record.vue

@@ -1,10 +1,55 @@
 <!-- 邀请记录 -->
 <template>
-  <div>邀请记录</div>
+  <div>
+    <v-data-table
+      :loading="loading"
+      color="#00897B"
+      :items="tableData"
+      :headers="headers"
+    >
+      <template #bottom>
+        <CtPagination
+          v-if="total > 0"
+          :total="total"
+          :page="query.pageNo"
+          :limit="query.pageSize"
+          @handleChange="handleChangePage"
+        ></CtPagination>
+      </template>
+    </v-data-table>
+  </div>
 </template>
 
 <script setup>
+import { ref } from 'vue'
+import { useI18n } from '@/hooks/web/useI18n'; const { t } = useI18n()
+import { timesTampChange } from '@/utils/date'
+import { getEnterpriseUserList } from '@/api/recruit/enterprise/system/user'
 defineOptions({name: 'groupAccount-component-record'})
+const total = ref(0)
+const tableData = ref([])
+const loading = ref(false)
+const query = ref({
+  pageSize: 10,
+  pageNo: 1,
+})
+const headers = [
+  { title: t('login.username'), key: 'name' },
+  { title: t('enterprise.userManagement.invitationTime'), key: 'loginDate', value: item => timesTampChange(item.loginDate), sortable: false },
+  { title: t('enterprise.userManagement.inviter'), key: 'inviter' },
+]
+// 获取数据
+const getData = async () => {
+  loading.value = true
+  try {
+    const { list, total: number } = await getEnterpriseUserList(query.value)
+    tableData.value = list
+    total.value = number
+  } finally {
+    loading.value = false
+  }
+}
+getData()
 </script>
 <style lang="scss" scoped>
 </style>