feat: draw card line

This commit is contained in:
zzc
2026-01-19 19:13:12 +08:00
parent bff9a07ed4
commit eaf8197db6
3 changed files with 22 additions and 6 deletions

View File

@@ -0,0 +1,9 @@
import request from '@/utils/request'
export function getUserList(data) {
return request({
url: '/management/api/spring/user/list',
method: 'get',
params: data,
})
}

View File

@@ -10,6 +10,12 @@
<el-form-item> <el-form-item>
<el-input v-model.trim="queryForm.keyword" clearable placeholder="请输入查询条件" /> <el-input v-model.trim="queryForm.keyword" clearable placeholder="请输入查询条件" />
</el-form-item> </el-form-item>
<el-form-item>
<el-select v-model="queryForm.fortuneLevel" clearable placeholder="请选择幸运等级" @change="queryData">
<el-option label="吉祥" value="1" />
<el-option label="大吉" value="2" />
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button icon="el-icon-search" type="primary" @click="queryData">查询</el-button> <el-button icon="el-icon-search" type="primary" @click="queryData">查询</el-button>
</el-form-item> </el-form-item>
@@ -79,6 +85,7 @@
pageNo: 1, pageNo: 1,
pageSize: 10, pageSize: 10,
keyword: '', keyword: '',
fortuneLevel: '',
}, },
timeOutID: null, timeOutID: null,
} }

View File

@@ -30,14 +30,14 @@
<strong>名称</strong> <strong>名称</strong>
{{ row.nickname }} {{ row.nickname }}
</div> </div>
<div>
<strong>性别</strong>
{{ row.gender ? (row.gender === 'male' ? '男' : '女') : '未公开' }}
</div>
<div> <div>
<strong>平台</strong> <strong>平台</strong>
{{ row.platform }} {{ row.platform }}
</div> </div>
<div>
<strong>设备 id</strong>
{{ row.deviceId }}
</div>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
@@ -84,7 +84,7 @@
</template> </template>
<script> <script>
import { getList } from '@/api/maomaotou/user' import { getUserList } from '@/api/spring/user'
import { formatTime } from '@/utils' import { formatTime } from '@/utils'
export default { export default {
@@ -160,7 +160,7 @@
}, },
async fetchData() { async fetchData() {
this.listLoading = true this.listLoading = true
const { data } = await getList(this.queryForm) const { data } = await getUserList(this.queryForm)
this.list = data.list this.list = data.list
this.total = data.totalCount this.total = data.totalCount
this.timeOutID = setTimeout(() => { this.timeOutID = setTimeout(() => {