fetch(modify):账号管理

This commit is contained in:
sexygoat
2026-02-02 11:51:59 +08:00
parent 78bd9fba85
commit 4d2f38c75b
13 changed files with 489 additions and 1036 deletions

View File

@@ -168,6 +168,12 @@
</template>
</ElDialog>
<!-- 客户账号列表弹窗 -->
<CustomerAccountDialog
v-model="customerAccountDialogVisible"
:enterprise-id="currentEnterpriseId"
/>
<!-- 修改密码对话框 -->
<ElDialog v-model="passwordDialogVisible" title="修改密码" width="400px">
<ElForm ref="passwordFormRef" :model="passwordForm" :rules="passwordRules">
@@ -208,6 +214,7 @@
import type { SearchFormItem } from '@/types'
import { useCheckedColumns } from '@/composables/useCheckedColumns'
import ArtButtonTable from '@/components/core/forms/ArtButtonTable.vue'
import CustomerAccountDialog from '@/components/business/CustomerAccountDialog.vue'
import { formatDateTime } from '@/utils/business/format'
import { BgColorEnum } from '@/enums/appEnum'
@@ -217,6 +224,7 @@
const dialogVisible = ref(false)
const passwordDialogVisible = ref(false)
const customerAccountDialogVisible = ref(false)
const loading = ref(false)
const submitLoading = ref(false)
const passwordSubmitLoading = ref(false)
@@ -439,7 +447,7 @@
{
prop: 'operation',
label: '操作',
width: 260,
width: 340,
fixed: 'right',
formatter: (row: EnterpriseItem) => {
return h('div', { style: 'display: flex; gap: 8px;' }, [
@@ -448,6 +456,11 @@
iconClass: BgColorEnum.SECONDARY,
onClick: () => showDialog('edit', row)
}),
h(ArtButtonTable, {
text: '查看客户',
iconClass: BgColorEnum.PRIMARY,
onClick: () => viewCustomerAccounts(row)
}),
h(ArtButtonTable, {
text: '卡授权',
iconClass: BgColorEnum.PRIMARY,
@@ -710,6 +723,12 @@
}
}
// 查看客户账号
const viewCustomerAccounts = (row: EnterpriseItem) => {
currentEnterpriseId.value = row.id
customerAccountDialogVisible.value = true
}
// 卡管理
const manageCards = (row: EnterpriseItem) => {
router.push({