修改用户列表
This commit is contained in:
@ -24,3 +24,8 @@ export function adjustMoney(params: any) {
|
||||
export function storeMoneyList(params: any) {
|
||||
return request.post({ url: '/user.user/storeMoneyList', params })
|
||||
}
|
||||
|
||||
// 渠道标示列表
|
||||
export function sourceList() {
|
||||
return request.post({ url: '/wxcode/getLists' })
|
||||
}
|
||||
@ -12,9 +12,11 @@
|
||||
</el-form-item>
|
||||
<el-form-item class="w-[280px]" label="渠道标识">
|
||||
<el-select v-model="queryParams.source">
|
||||
<el-option label="微信小程序" :value="0" />
|
||||
<el-option :label="item.name" :value="item.id" v-for="item in sourceListData"
|
||||
:key="item.id"></el-option>
|
||||
<!-- <el-option label="微信小程序" :value="0" />
|
||||
<el-option label="电梯扫码" :value="1" />
|
||||
<el-option label="充电宝扫码" :value="2" />
|
||||
<el-option label="充电宝扫码" :value="2" /> -->
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
@ -34,13 +36,7 @@
|
||||
</el-table-column>
|
||||
<el-table-column label="昵称" prop="nickname" min-width="100" />
|
||||
<el-table-column label="手机号码" prop="mobile" min-width="100" />
|
||||
<el-table-column label="渠道标识" prop="source" min-width="100">
|
||||
<template #default="{ row }">
|
||||
<span v-if="row.source == 0">微信小程序</span>
|
||||
<span v-if="row.source == 1">电梯扫码</span>
|
||||
<span v-if="row.source == 2">充电宝扫码</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="渠道标识" prop="source_name" min-width="100" />
|
||||
<el-table-column label="注册时间" prop="create_time" min-width="120" />
|
||||
<el-table-column label="操作" width="180" fixed="right">
|
||||
<template #default="{ row }">
|
||||
@ -75,7 +71,7 @@
|
||||
</div>
|
||||
</template>
|
||||
<script lang="ts" setup name="consumerLists">
|
||||
import { getUserList } from '@/api/consumer'
|
||||
import { getUserList, sourceList } from '@/api/consumer'
|
||||
import { ClientMap } from '@/enums/appEnums'
|
||||
import { usePaging } from '@/hooks/usePaging'
|
||||
import { getRoutePath } from '@/router'
|
||||
@ -93,4 +89,12 @@ const { pager, getLists, resetPage, resetParams } = usePaging({
|
||||
})
|
||||
|
||||
getLists()
|
||||
|
||||
const sourceListData = ref([])
|
||||
const getSourceLabel = async () => {
|
||||
const sourceOptions = await sourceList()
|
||||
sourceListData.value = sourceOptions
|
||||
}
|
||||
|
||||
getSourceLabel()
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user