trade: 分销业务从 member 模块 转移到 trade模块
This commit is contained in:
parent
35664d1f32
commit
2ed5d12be8
@ -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 })
|
||||||
}
|
}
|
@ -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 {
|
Loading…
Reference in New Issue
Block a user