feat: draw card line
This commit is contained in:
9
src/api/spring/user/index.js
Normal file
9
src/api/spring/user/index.js
Normal 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,
|
||||
})
|
||||
}
|
||||
@@ -10,6 +10,12 @@
|
||||
<el-form-item>
|
||||
<el-input v-model.trim="queryForm.keyword" clearable placeholder="请输入查询条件" />
|
||||
</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-button icon="el-icon-search" type="primary" @click="queryData">查询</el-button>
|
||||
</el-form-item>
|
||||
@@ -79,6 +85,7 @@
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
keyword: '',
|
||||
fortuneLevel: '',
|
||||
},
|
||||
timeOutID: null,
|
||||
}
|
||||
|
||||
@@ -30,14 +30,14 @@
|
||||
<strong>名称:</strong>
|
||||
{{ row.nickname }}
|
||||
</div>
|
||||
<div>
|
||||
<strong>性别:</strong>
|
||||
{{ row.gender ? (row.gender === 'male' ? '男' : '女') : '未公开' }}
|
||||
</div>
|
||||
<div>
|
||||
<strong>平台:</strong>
|
||||
{{ row.platform }}
|
||||
</div>
|
||||
<div>
|
||||
<strong>设备 id:</strong>
|
||||
{{ row.deviceId }}
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -84,7 +84,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { getList } from '@/api/maomaotou/user'
|
||||
import { getUserList } from '@/api/spring/user'
|
||||
import { formatTime } from '@/utils'
|
||||
|
||||
export default {
|
||||
@@ -160,7 +160,7 @@
|
||||
},
|
||||
async fetchData() {
|
||||
this.listLoading = true
|
||||
const { data } = await getList(this.queryForm)
|
||||
const { data } = await getUserList(this.queryForm)
|
||||
this.list = data.list
|
||||
this.total = data.totalCount
|
||||
this.timeOutID = setTimeout(() => {
|
||||
|
||||
Reference in New Issue
Block a user