This commit is contained in:
pushuo 2022-08-19 10:08:23 +08:00
parent e9d3ba13cd
commit ece7f64ba9
3 changed files with 6 additions and 1 deletions

View File

@ -33,7 +33,8 @@
<td>@{{ customer.from }}</td>
<td>@{{ customer.customer_group_name }}</td>
<td>
<el-tag :type="customer.status ? 'success' : 'info'" size="small">@{{ customer.status ? '启用' : '禁用' }}</el-tag>
<span v-if="customer.status" class="text-success">{{ __('common.enable') }}</span>
<span v-else class="text-secondary">{{ __('common.disable') }}</span>
<td>
<a class="btn btn-outline-secondary btn-sm" :href="customer.edit">编辑</a>
<button class="btn btn-outline-danger btn-sm ml-1" type="button" @click="deleteCustomer(customer.delete, index)">删除</button>

View File

@ -18,4 +18,6 @@ return [
'restored_success' => 'Restore Successfully!',
'updated_success' => 'Updated Successfully!',
'get_success' => 'Get Successfully!',
'enable' => 'Enable',
'disable' => 'Disable',
];

View File

@ -17,6 +17,8 @@ return [
'restored_success' => '恢复成功!',
'updated_success' => '更新成功!',
'get_success' => '获取成功!',
'enable' => '启用',
'disable' => '禁用',
];