邀请类型 反了

This commit is contained in:
2025-10-14 13:35:15 +08:00
parent 9ed2ecfe9f
commit 0d206f61de
3 changed files with 5 additions and 5 deletions

View File

@@ -169,7 +169,7 @@
<el-table-column :label="$t('employee.hostsLevel')" align="center" prop="hostsLevel" />
<el-table-column :label="t('newHosts.invitationType')" align="center" prop="invitationType" width="200">
<template #default="scope">
<el-tag size="small" :type="scope.row.invitationType == 1 ? 'warning' : 'primary'">
<el-tag size="small" :type="scope.row.invitationType == 1 ? 'primary' : 'warning'">
{{ dictLabelI18n(DICT_TYPE.HOSTS_INVITATION_TYPE, scope.row.invitationType) || '-' }}
</el-tag>
</template>
@@ -270,9 +270,9 @@
<div class="card-row"><b>{{ $t('employee.updateTime') }}</b>{{ formatTimestamp(item.updateTime) }}</div>
<div class="card-row action-row">
<el-button link type="primary" @click="openForm('update', item.id, index)">{{ $t('employee.edit')
}}</el-button>
}}</el-button>
<el-button link type="danger" @click="handleDelete(item.id)">{{ $t('employee.delete')
}}</el-button>
}}</el-button>
</div>
</div>
</div>

View File

@@ -156,7 +156,7 @@
<el-table-column :label="$t('employee.hostsLevel')" align="center" prop="hostsLevel" />
<el-table-column :label="t('newHosts.invitationType')" align="center" prop="invitationType" width="200">
<template #default="scope">
<el-tag size="small" :type="scope.row.invitationType == 1 ? 'warning' : 'primary'">
<el-tag size="small" :type="scope.row.invitationType == 1 ? 'primary' : 'warning'">
{{ dictLabelI18n(DICT_TYPE.HOSTS_INVITATION_TYPE, scope.row.invitationType) || '-' }}
</el-tag>
</template>

View File

@@ -181,7 +181,7 @@
<el-table-column :label="t('newHosts.invitationType')" align="center" prop="invitationType" width="200">
<template #default="scope">
<el-tag size="small" :type="scope.row.invitationType == 1 ? 'warning' : 'primary'">
<el-tag size="small" :type="scope.row.invitationType == 1 ? 'primary' : 'warning'">
{{ dictLabelI18n(DICT_TYPE.HOSTS_INVITATION_TYPE, scope.row.invitationType) || '-' }}
</el-tag>
</template>