Compare commits
2 Commits
f4043d6f61
...
fb1bfc353c
| Author | SHA1 | Date | |
|---|---|---|---|
| fb1bfc353c | |||
| cc0127f195 |
@@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="admin_page">
|
<div class="admin_page all-user">
|
||||||
<div class="admin_table_search">
|
<div class="admin_table_search">
|
||||||
<div class="admin_state">
|
<div class="admin_state">
|
||||||
<div class="admin_state_item">
|
<div class="admin_state_item">
|
||||||
@@ -85,16 +85,16 @@
|
|||||||
v-for="plan in planFilterOptions"
|
v-for="plan in planFilterOptions"
|
||||||
:key="plan.id"
|
:key="plan.id"
|
||||||
class="plan_item"
|
class="plan_item"
|
||||||
:class="{
|
:class="{
|
||||||
active: subscriptionPlanId === plan.id,
|
active: subscriptionPlanId === plan.id,
|
||||||
disabled: plan.status === 'PENDING'
|
disabled: plan.status === 'PENDING'
|
||||||
}"
|
}"
|
||||||
@click="plan.status !== 'PENDING' && selectPlanFilter(plan.id)"
|
@click="plan.status !== 'PENDING' && selectPlanFilter(plan.id)"
|
||||||
>
|
>
|
||||||
<span class="plan_name">{{ plan.name }}</span>
|
<span class="plan_name">{{ plan.name }}</span>
|
||||||
<MoreOutlined
|
<MoreOutlined
|
||||||
class="plan_more_icon"
|
class="plan_more_icon"
|
||||||
@click.stop="plan.status !== 'PENDING' && openPlanRenameModal(plan)"
|
@click.stop="plan.status !== 'PENDING' && openPlanRenameModal(plan)"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -435,7 +435,7 @@ export default defineComponent({
|
|||||||
if (!orgId) return
|
if (!orgId) return
|
||||||
Https.axiosPost(Https.httpUrls.searchSubscribeByOrg, {
|
Https.axiosPost(Https.httpUrls.searchSubscribeByOrg, {
|
||||||
organizationId: orgId,
|
organizationId: orgId,
|
||||||
status: ['ACTIVE','PENDING']
|
status: ['ACTIVE', 'PENDING']
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
// 将与当前用户 subscriptionPlanId 相同的订阅计划放到第一个
|
// 将与当前用户 subscriptionPlanId 相同的订阅计划放到第一个
|
||||||
const userSubscriptionPlanId = store.state.UserHabit.userDetail.subscriptionPlanId
|
const userSubscriptionPlanId = store.state.UserHabit.userDetail.subscriptionPlanId
|
||||||
@@ -459,7 +459,8 @@ export default defineComponent({
|
|||||||
orgId => {
|
orgId => {
|
||||||
if (orgId) {
|
if (orgId) {
|
||||||
fetchSubscribePlanList()
|
fetchSubscribePlanList()
|
||||||
const userSubscriptionPlanId = store.state.UserHabit.userDetail.subscriptionPlanId
|
const userSubscriptionPlanId =
|
||||||
|
store.state.UserHabit.userDetail.subscriptionPlanId
|
||||||
if (userSubscriptionPlanId) {
|
if (userSubscriptionPlanId) {
|
||||||
selectPlanFilter(userSubscriptionPlanId)
|
selectPlanFilter(userSubscriptionPlanId)
|
||||||
}
|
}
|
||||||
@@ -766,4 +767,11 @@ export default defineComponent({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.all-user {
|
||||||
|
.admin_table_content {
|
||||||
|
:deep(.ant-table-wrapper) {
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user