Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 2880a8a118 | |||
| e99c79b4d4 |
@@ -237,9 +237,9 @@ export default function ComparisonRecordsPage() {
|
|||||||
key: 'user',
|
key: 'user',
|
||||||
width: 140,
|
width: 140,
|
||||||
render: (_, r) => (
|
render: (_, r) => (
|
||||||
<div>
|
<div style={{ color: '#1677ff' }}>
|
||||||
<div>{r.phone || `#${r.user_id}`}</div>
|
<div>{r.phone || `#${r.user_id}`}</div>
|
||||||
{r.nickname && <div style={{ color: '#999', fontSize: 12 }}>{r.nickname}</div>}
|
{r.nickname && <div style={{ fontSize: 12 }}>{r.nickname}</div>}
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -122,31 +122,13 @@ const renderReview = (f: Feedback) => {
|
|||||||
|
|
||||||
// 机型 / OS版本(提交反馈时的端环境;改版前历史反馈无 → -)
|
// 机型 / OS版本(提交反馈时的端环境;改版前历史反馈无 → -)
|
||||||
const renderDeviceOs = (f: Feedback) => {
|
const renderDeviceOs = (f: Feedback) => {
|
||||||
const modelName = f.device_model_name || f.device_model;
|
const os = [f.android_version ? `Android ${f.android_version}` : null, f.rom_name]
|
||||||
const rawModel =
|
|
||||||
f.device_model_name && f.device_model_name !== f.device_model ? f.device_model : null;
|
|
||||||
const romHasVersion = /\d/.test(f.rom_name || '');
|
|
||||||
const vendorOs = [
|
|
||||||
f.rom_name,
|
|
||||||
f.rom_version && !romHasVersion ? f.rom_version : null,
|
|
||||||
]
|
|
||||||
.filter(Boolean)
|
|
||||||
.join(' ');
|
|
||||||
const os = [
|
|
||||||
vendorOs || null,
|
|
||||||
f.android_version ? `Android ${f.android_version}` : null,
|
|
||||||
]
|
|
||||||
.filter(Boolean)
|
.filter(Boolean)
|
||||||
.join(' · ');
|
.join(' · ');
|
||||||
if (!modelName && !os) return <Text type="secondary">-</Text>;
|
if (!f.device_model && !os) return <Text type="secondary">-</Text>;
|
||||||
return (
|
return (
|
||||||
<Space direction="vertical" size={0}>
|
<Space direction="vertical" size={0}>
|
||||||
<Text>{modelName || '-'}</Text>
|
<Text>{f.device_model || '-'}</Text>
|
||||||
{rawModel ? (
|
|
||||||
<Text type="secondary" style={{ fontSize: 12 }}>
|
|
||||||
{[f.device_manufacturer, rawModel].filter(Boolean).join(' · ')}
|
|
||||||
</Text>
|
|
||||||
) : null}
|
|
||||||
{os ? (
|
{os ? (
|
||||||
<Text type="secondary" style={{ fontSize: 12 }}>
|
<Text type="secondary" style={{ fontSize: 12 }}>
|
||||||
{os}
|
{os}
|
||||||
@@ -370,7 +352,7 @@ export default function FeedbacksPage() {
|
|||||||
{
|
{
|
||||||
title: '机型 / OS版本',
|
title: '机型 / OS版本',
|
||||||
key: 'device',
|
key: 'device',
|
||||||
width: 180,
|
width: 150,
|
||||||
render: (_: unknown, f: Feedback) => renderDeviceOs(f),
|
render: (_: unknown, f: Feedback) => renderDeviceOs(f),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -377,10 +377,7 @@ export interface Feedback {
|
|||||||
// 提交端环境快照:提交版本号 / 机型OS版本;改版前的历史反馈为 null
|
// 提交端环境快照:提交版本号 / 机型OS版本;改版前的历史反馈为 null
|
||||||
app_version: string | null;
|
app_version: string | null;
|
||||||
device_model: string | null;
|
device_model: string | null;
|
||||||
device_model_name: string | null;
|
|
||||||
device_manufacturer: string | null;
|
|
||||||
rom_name: string | null;
|
rom_name: string | null;
|
||||||
rom_version: number | null;
|
|
||||||
android_version: string | null;
|
android_version: string | null;
|
||||||
// 联表瞬态:展示完整手机号(点手机号查该用户全部反馈)
|
// 联表瞬态:展示完整手机号(点手机号查该用户全部反馈)
|
||||||
phone: string | null;
|
phone: string | null;
|
||||||
|
|||||||
Reference in New Issue
Block a user