feat 商户操作项

This commit is contained in:
xxm
2023-05-22 22:28:00 +08:00
parent 92ec4de040
commit 04678be4f4

View File

@@ -31,7 +31,7 @@
</vxe-column>
<vxe-column field="remark" title="商户备注" />
<vxe-column field="createTime" title="创建时间" />
<vxe-column fixed="right" width="150" :showOverflow="false" title="操作">
<vxe-column fixed="right" width="220" :showOverflow="false" title="操作">
<template #default="{ row }">
<span>
<a-link @click="show(row)">查看</a-link>
@@ -41,6 +41,10 @@
<a-link @click="edit(row)">编辑</a-link>
</span>
<a-divider type="vertical" />
<span>
<a-link @click="showApps(row)">应用列表</a-link>
</span>
<a-divider type="vertical" />
<a-link danger @click="remove(row)">删除</a-link>
</template>
</vxe-column>
@@ -69,6 +73,7 @@
import { FormEditType } from '/@/enums/formTypeEnum'
import { useMessage } from '/@/hooks/web/useMessage'
import { QueryField } from '/@/components/Bootx/Query/Query'
import { router } from '/@/router'
// 使用hooks
const { handleTableChange, pageQueryResHandel, resetQueryParams, pagination, pages, model, loading } = useTablePage(queryPage)
@@ -125,6 +130,10 @@
function show(record) {
merchantInfoEdit.init(record.id, FormEditType.Show)
}
// 查看
function showApps(record) {
router.push({})
}
// 删除
function remove(record) {