|
@@ -14,9 +14,6 @@
|
|
item-value="id"
|
|
item-value="id"
|
|
>
|
|
>
|
|
<template #bottom></template>
|
|
<template #bottom></template>
|
|
- <template v-slot:item.postId="{ item }">
|
|
|
|
- {{ postList.length ? postList.find(e => e.id === item.postId)?.nameCn : '' }}
|
|
|
|
- </template>
|
|
|
|
<template v-slot:item.actions="{ item }">
|
|
<template v-slot:item.actions="{ item }">
|
|
<v-btn color="primary" variant="text" @click="handleBinding(item)">{{ $t('enterprise.userManagement.jobBinding') }}</v-btn>
|
|
<v-btn color="primary" variant="text" @click="handleBinding(item)">{{ $t('enterprise.userManagement.jobBinding') }}</v-btn>
|
|
<v-btn v-if="item.status === '1' && item.userType !== '1'" color="primary" variant="text" @click="handleAction('', 0, item)">{{ $t('enterprise.userManagement.enable') }}</v-btn>
|
|
<v-btn v-if="item.status === '1' && item.userType !== '1'" color="primary" variant="text" @click="handleAction('', 0, item)">{{ $t('enterprise.userManagement.enable') }}</v-btn>
|
|
@@ -60,8 +57,8 @@ const query = ref({
|
|
const postList = ref([])
|
|
const postList = ref([])
|
|
const headers = [
|
|
const headers = [
|
|
{ title: t('login.username'), key: 'name' },
|
|
{ title: t('login.username'), key: 'name' },
|
|
- { title: t('enterprise.userManagement.affiliatedEnterprise'), key: 'enterpriseName' },
|
|
|
|
- { title: t('enterprise.userManagement.post'), key: 'postId' },
|
|
|
|
|
|
+ { title: t('enterprise.userManagement.affiliatedEnterprise'), key: 'enterpriseAnotherName' },
|
|
|
|
+ { title: t('enterprise.userManagement.post'), key: 'post.nameCn' },
|
|
{ title: t('enterprise.userManagement.phone'), key: 'phone' },
|
|
{ title: t('enterprise.userManagement.phone'), key: 'phone' },
|
|
{ title: t('enterprise.userManagement.email'), key: 'email' },
|
|
{ title: t('enterprise.userManagement.email'), key: 'email' },
|
|
{ title: t('enterprise.userManagement.accountType'), key: 'userType', value: item => item.userType === '1' ? t('enterprise.userManagement.administrators') : t('enterprise.userManagement.regularUser'), sortable: false },
|
|
{ title: t('enterprise.userManagement.accountType'), key: 'userType', value: item => item.userType === '1' ? t('enterprise.userManagement.administrators') : t('enterprise.userManagement.regularUser'), sortable: false },
|