fetch(add): 新增
Some checks failed
构建并部署前端到测试环境 / build-and-deploy (push) Failing after 6s

This commit is contained in:
sexygoat
2026-01-27 09:18:45 +08:00
parent 0eed8244e5
commit 5c6312c407
33 changed files with 4897 additions and 374 deletions

View File

@@ -200,6 +200,7 @@
<script setup lang="ts">
import { h } from 'vue'
import { useRouter } from 'vue-router'
import { EnterpriseService, ShopService } from '@/api/modules'
import { ElMessage, ElMessageBox, ElTag, ElSwitch } from 'element-plus'
import type { FormInstance, FormRules } from 'element-plus'
@@ -211,6 +212,8 @@
defineOptions({ name: 'EnterpriseCustomer' })
const router = useRouter()
const dialogVisible = ref(false)
const passwordDialogVisible = ref(false)
const loading = ref(false)
@@ -433,10 +436,14 @@
{
prop: 'operation',
label: '操作',
width: 160,
width: 230,
fixed: 'right',
formatter: (row: EnterpriseItem) => {
return h('div', { style: 'display: flex; gap: 8px;' }, [
h(ArtButtonTable, {
icon: '&#xe679;',
onClick: () => manageCards(row)
}),
h(ArtButtonTable, {
icon: '&#xe72b;',
onClick: () => showPasswordDialog(row)
@@ -696,6 +703,14 @@
console.error(error)
}
}
// 卡管理
const manageCards = (row: EnterpriseItem) => {
router.push({
path: '/account-management/enterprise-cards',
query: { id: row.id }
})
}
</script>
<style lang="scss" scoped>