This commit is contained in:
@@ -7,6 +7,9 @@
|
||||
<!-- </vab-query-form-left-panel> -->
|
||||
<vab-query-form-left-panel :span="12">
|
||||
<el-form :inline="true" :model="queryForm" @submit.native.prevent>
|
||||
<el-form-item>
|
||||
<el-input v-model.trim="queryForm.userId" clearable placeholder="请输入用户id" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-input v-model.trim="queryForm.keyword" clearable placeholder="请输入查询条件" />
|
||||
</el-form-item>
|
||||
@@ -133,11 +136,15 @@
|
||||
pageSize: 10,
|
||||
scene: '',
|
||||
keyword: '',
|
||||
userId: '',
|
||||
},
|
||||
timeOutID: null,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
if (this.$route.query.userId) {
|
||||
this.queryForm.userId = this.$route.query.userId
|
||||
}
|
||||
this.fetchData()
|
||||
},
|
||||
|
||||
|
||||
@@ -8,7 +8,10 @@
|
||||
<vab-query-form-left-panel :span="12">
|
||||
<el-form :inline="true" :model="queryForm" @submit.native.prevent>
|
||||
<el-form-item>
|
||||
<el-input v-model.trim="queryForm.keyword" clearable placeholder="请输入查询条件" />
|
||||
<el-input v-model.trim="queryForm.userId" clearable placeholder="请输入用户id" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-input v-model.trim="queryForm.keyword" clearable placeholder="请输入 shareToken" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-select v-model="queryForm.scene" clearable placeholder="请选择分享场景" @change="queryData">
|
||||
@@ -133,6 +136,7 @@
|
||||
pageSize: 10,
|
||||
scene: '',
|
||||
keyword: '',
|
||||
userId: '',
|
||||
},
|
||||
timeOutID: null,
|
||||
}
|
||||
@@ -141,6 +145,9 @@
|
||||
if (this.$route.query.keyword) {
|
||||
this.queryForm.keyword = this.$route.query.keyword
|
||||
}
|
||||
if (this.$route.query.userId) {
|
||||
this.queryForm.userId = this.$route.query.userId
|
||||
}
|
||||
this.fetchData()
|
||||
},
|
||||
|
||||
|
||||
@@ -44,20 +44,20 @@
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="left" label="小程序信息" show-overflow-tooltip>
|
||||
<el-table-column align="left" label="使用信息" show-overflow-tooltip>
|
||||
<template #default="{ row }">
|
||||
<div>
|
||||
<div>
|
||||
<strong>粉丝:</strong>
|
||||
{{ row.followers }}
|
||||
<strong>分享数:</strong>
|
||||
<el-link type="primary" :underline="false" @click="goToShareRecord(row.id)">{{ row.shareCount }}</el-link>
|
||||
</div>
|
||||
<div>
|
||||
<strong>关注数:</strong>
|
||||
{{ row.followings }}
|
||||
<strong>查看数:</strong>
|
||||
<el-link type="primary" :underline="false" @click="goToViewRecord(row.id)">{{ row.viewCount }}</el-link>
|
||||
</div>
|
||||
<div>
|
||||
<strong>好友:</strong>
|
||||
{{ row.friends }}
|
||||
<strong>保存数:</strong>
|
||||
<el-link type="primary" :underline="false" @click="goToSaveRecord(row.id)">{{ row.saveCount }}</el-link>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
@@ -164,6 +164,15 @@
|
||||
goToDevice(deviceId) {
|
||||
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
|
||||
},
|
||||
goToShareRecord(userId) {
|
||||
this.$router.push({ path: '/spring/user/shareRecord', query: { userId } })
|
||||
},
|
||||
goToViewRecord(userId) {
|
||||
this.$router.push({ path: '/spring/user/viewRecord', query: { userId } })
|
||||
},
|
||||
goToSaveRecord(userId) {
|
||||
this.$router.push({ path: '/spring/user/saveRecord', query: { userId } })
|
||||
},
|
||||
async fetchData() {
|
||||
this.listLoading = true
|
||||
const { data } = await getUserList(this.queryForm)
|
||||
|
||||
@@ -8,7 +8,7 @@
|
||||
<vab-query-form-left-panel :span="12">
|
||||
<el-form :inline="true" :model="queryForm" @submit.native.prevent>
|
||||
<el-form-item>
|
||||
<el-input v-model.trim="queryForm.keyword" clearable placeholder="请输入查询条件" />
|
||||
<el-input v-model.trim="queryForm.userId" clearable placeholder="请输入查询条件" />
|
||||
</el-form-item>
|
||||
<el-form-item>
|
||||
<el-select v-model="queryForm.scene" clearable placeholder="请选择浏览场景" @change="queryData">
|
||||
@@ -134,11 +134,15 @@
|
||||
pageSize: 10,
|
||||
scene: '',
|
||||
keyword: '',
|
||||
userId: '',
|
||||
},
|
||||
timeOutID: null,
|
||||
}
|
||||
},
|
||||
created() {
|
||||
if (this.$route.query.userId) {
|
||||
this.queryForm.userId = this.$route.query.userId
|
||||
}
|
||||
this.fetchData()
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user