fix: message obj
This commit is contained in:
@@ -65,7 +65,7 @@
|
||||
<el-button icon="el-icon-refresh" @click="resetQuery">重置</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 === false ? 'primary' : 'default'" @click="toggleOnlyUserId(false)">只显示无用户请求</el-button>
|
||||
<el-button :type="onlyNoUserId === true ? 'primary' : 'default'" @click="toggleOnlyNoUserId()">只显示无用户请求</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-card>
|
||||
@@ -187,7 +187,8 @@
|
||||
data() {
|
||||
return {
|
||||
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,
|
||||
eventTypeMap,
|
||||
appMap,
|
||||
@@ -292,6 +293,9 @@
|
||||
if (this.onlyUserId !== null) {
|
||||
params.onlyUserId = this.onlyUserId
|
||||
}
|
||||
if (this.onlyNoUserId !== null) {
|
||||
params.onlyNoUserId = this.onlyNoUserId
|
||||
}
|
||||
|
||||
const { data } = await getTrackingLogsList(params)
|
||||
this.list = data.list || []
|
||||
@@ -343,6 +347,16 @@
|
||||
this.onlyUserId = null // Toggle off if already selected
|
||||
} else {
|
||||
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()
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user