This commit is contained in:
qsh
2025-05-23 02:51:00 +08:00
parent 2c1ab31f73
commit bc781ce292
8 changed files with 74 additions and 112 deletions

View File

@@ -11,7 +11,7 @@
</el-form-item>
<el-form-item>
<el-select
v-model="searchForm.resellMan"
v-model="searchForm.distributionld"
placeholder="选择分销人"
clearable
filterable
@@ -43,8 +43,8 @@
<el-table-column type="index" width="50" />
<el-table-column label="手机号码" prop="phone" width="120" />
<el-table-column label="分销人" prop="distributionName" min-width="120" />
<el-table-column label="注册日期" prop="registerDate" min-width="120" />
<el-table-column label="最近登陆日期" prop="lastLoginTime" min-width="120" />
<el-table-column label="注册日期" prop="createTime" min-width="120" />
<el-table-column label="最近登陆日期" prop="rencentlyLoginTime" min-width="120" />
</el-table>
<Pagination
:total="total"
@@ -56,11 +56,12 @@
</template>
<script name="AppletUser" setup>
// import { removeNullField } from '@/utils'
// import * as CustomerApi from '@/api/customer/customer.js'
import { removeNullField } from '@/utils'
import * as CustomerApi from '@/api/customer/customer.js'
import { getResellSimpleList } from '@/api/xjapplet/resell'
const searchForm = ref({
resellMan: undefined,
distributionld: undefined,
phone: '',
createDate: [],
pageNo: 1,
@@ -70,9 +71,9 @@ const searchForm = ref({
const resellOptions = ref([])
onMounted(() => {
// CustomerApi.getCustomerExamCarType().then((res) => {
// carTypeOptions.value = res
// })
getResellSimpleList().then((res) => {
resellOptions.value = res
})
handleQuery()
})
@@ -89,24 +90,14 @@ const total = ref(0)
const getList = async () => {
loading.value = true
try {
// const data = await CustomerApi.getCustomerPage(removeNullField(searchForm.value))
const data = {
list: [
{
phone: '12345678901',
distributionName: '分销人A',
registerDate: '2023-10-01',
lastLoginTime: '2023-10-02'
},
{
phone: '12345678902',
distributionName: '分销人B',
registerDate: '2023-10-03',
lastLoginTime: '2023-10-04'
}
],
total: 2
if (searchForm.value.createDate && searchForm.value.createDate.length > 0) {
searchForm.value.createTimeBegin = searchForm.value.createDate[0] + '00:00:00'
searchForm.value.createTimeEnd = searchForm.value.createDate[1] + '23:59:59'
} else {
searchForm.value.createTimeBegin = undefined
searchForm.value.createTimeEnd = undefined
}
const data = await CustomerApi.getAppletUserList(removeNullField(searchForm.value))
tableList.value = data.list
total.value = data.total
} finally {