fix: message obj
This commit is contained in:
@@ -65,7 +65,7 @@
|
|||||||
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
<el-button icon="el-icon-refresh" @click="resetQuery">重置</el-button>
|
||||||
<el-button :type="excludeAcquaintance ? 'primary' : 'default'" @click="toggleExcludeAcquaintance">去掉熟人</el-button>
|
<el-button :type="excludeAcquaintance ? 'primary' : 'default'" @click="toggleExcludeAcquaintance">去掉熟人</el-button>
|
||||||
<el-button :type="onlyUserId === true ? 'primary' : 'default'" @click="toggleOnlyUserId(true)">只显示有用户请求</el-button>
|
<el-button :type="onlyUserId === true ? 'primary' : 'default'" @click="toggleOnlyUserId(true)">只显示有用户请求</el-button>
|
||||||
<el-button :type="onlyUserId === false ? 'primary' : 'default'" @click="toggleOnlyUserId(false)">只显示无用户请求</el-button>
|
<el-button :type="onlyNoUserId === true ? 'primary' : 'default'" @click="toggleOnlyNoUserId()">只显示无用户请求</el-button>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
</el-card>
|
</el-card>
|
||||||
@@ -187,7 +187,8 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
excludeAcquaintance: false,
|
excludeAcquaintance: false,
|
||||||
onlyUserId: null, // null: all, true: only with user, false: only without user
|
onlyUserId: null, // null: all, true: only with user
|
||||||
|
onlyNoUserId: null, // null: all, true: only without user
|
||||||
eventNameMap,
|
eventNameMap,
|
||||||
eventTypeMap,
|
eventTypeMap,
|
||||||
appMap,
|
appMap,
|
||||||
@@ -292,6 +293,9 @@
|
|||||||
if (this.onlyUserId !== null) {
|
if (this.onlyUserId !== null) {
|
||||||
params.onlyUserId = this.onlyUserId
|
params.onlyUserId = this.onlyUserId
|
||||||
}
|
}
|
||||||
|
if (this.onlyNoUserId !== null) {
|
||||||
|
params.onlyNoUserId = this.onlyNoUserId
|
||||||
|
}
|
||||||
|
|
||||||
const { data } = await getTrackingLogsList(params)
|
const { data } = await getTrackingLogsList(params)
|
||||||
this.list = data.list || []
|
this.list = data.list || []
|
||||||
@@ -343,6 +347,16 @@
|
|||||||
this.onlyUserId = null // Toggle off if already selected
|
this.onlyUserId = null // Toggle off if already selected
|
||||||
} else {
|
} else {
|
||||||
this.onlyUserId = value
|
this.onlyUserId = value
|
||||||
|
this.onlyNoUserId = null // 互斥
|
||||||
|
}
|
||||||
|
this.fetchData()
|
||||||
|
},
|
||||||
|
toggleOnlyNoUserId() {
|
||||||
|
if (this.onlyNoUserId === true) {
|
||||||
|
this.onlyNoUserId = null // Toggle off if already selected
|
||||||
|
} else {
|
||||||
|
this.onlyNoUserId = true
|
||||||
|
this.onlyUserId = null // 互斥
|
||||||
}
|
}
|
||||||
this.fetchData()
|
this.fetchData()
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column align="center" label="类型" show-overflow-tooltip>
|
<el-table-column align="center" label="类型" show-overflow-tooltip>
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<el-tag v-if="row.url.includes('api/v')" type="success">应用</el-tag>
|
<el-tag v-if="row.platform.includes('weixin')" type="success">微信小程序</el-tag>
|
||||||
<el-tag v-else type="info">后台</el-tag>
|
<el-tag v-else type="info">后台</el-tag>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
@@ -39,8 +39,13 @@
|
|||||||
{{ row.userName || row.userId }}
|
{{ row.userName || row.userId }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
|
<el-table-column align="center" label="method" prop="method" show-overflow-tooltip width="80" />
|
||||||
|
<el-table-column align="center" label="statusCode" prop="statusCode" show-overflow-tooltip width="100" />
|
||||||
|
<el-table-column align="center" label="耗时(ms)" prop="duration" show-overflow-tooltip width="100" />
|
||||||
|
<el-table-column align="center" label="平台" prop="platform" show-overflow-tooltip width="100" />
|
||||||
<el-table-column align="center" label="userAgent" prop="userAgent" show-overflow-tooltip />
|
<el-table-column align="center" label="userAgent" prop="userAgent" show-overflow-tooltip />
|
||||||
<el-table-column align="center" label="referrer" prop="referrer" show-overflow-tooltip />
|
<el-table-column align="center" label="referrer" prop="referrer" show-overflow-tooltip />
|
||||||
|
<el-table-column align="center" label="body" prop="body" show-overflow-tooltip />
|
||||||
</el-table>
|
</el-table>
|
||||||
<el-pagination
|
<el-pagination
|
||||||
background
|
background
|
||||||
@@ -69,6 +74,7 @@
|
|||||||
selectRows: '',
|
selectRows: '',
|
||||||
elementLoadingText: '正在加载...',
|
elementLoadingText: '正在加载...',
|
||||||
queryForm: {
|
queryForm: {
|
||||||
|
appId: '69665538a49b8ae3be50fe5d',
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
permission: '',
|
permission: '',
|
||||||
|
|||||||
Reference in New Issue
Block a user