trade: 分销业务从 member 模块 转移到 trade模块

This commit is contained in:
owen 2023-09-06 00:33:59 +08:00
parent 35664d1f32
commit 2ed5d12be8
2 changed files with 5 additions and 5 deletions

View File

@ -1,11 +1,11 @@
import request from '@/config/axios' import request from '@/config/axios'
// 查询佣金记录列表 // 查询佣金记录列表
export const getMemberBrokerageRecordPage = async (params: any) => { export const getBrokerageRecordPage = async (params: any) => {
return await request.get({ url: `/member/member-brokerage-record/page`, params }) return await request.get({ url: `/member/member-brokerage-record/page`, params })
} }
// 查询佣金记录详情 // 查询佣金记录详情
export const getMemberBrokerageRecord = async (id: number) => { export const getBrokerageRecord = async (id: number) => {
return await request.get({ url: `/member/member-brokerage-record/get?id=` + id }) return await request.get({ url: `/member/member-brokerage-record/get?id=` + id })
} }

View File

@ -107,9 +107,9 @@
<script setup lang="ts"> <script setup lang="ts">
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import * as MemberBrokerageRecordApi from '@/api/member/brokerage/record' import * as BrokerageRecordApi from '@/api/mall/trade/brokerage/record'
defineOptions({ name: 'MemberBrokerageRecord' }) defineOptions({ name: 'TradeBrokerageRecord' })
const loading = ref(true) // const loading = ref(true) //
const total = ref(0) // const total = ref(0) //
@ -129,7 +129,7 @@ const queryFormRef = ref() // 搜索的表单
const getList = async () => { const getList = async () => {
loading.value = true loading.value = true
try { try {
const data = await MemberBrokerageRecordApi.getMemberBrokerageRecordPage(queryParams) const data = await BrokerageRecordApi.getBrokerageRecordPage(queryParams)
list.value = data.list list.value = data.list
total.value = data.total total.value = data.total
} finally { } finally {