- 外部打单平台快递接口:按账号同步平台模板、绑定快递编码、查看模板明细;打开列表只读库,仅「从平台同步数据」时拉取 - 系统管理新增自定义快递编码字典,订单改快递 / 物流下拉合并系统与自定义编码,推送奇门沿用订单上的编码 - 新增 OpenAPI deliveryorder.getwaybill:WMS 批量回取号(单次≤100、并发4、逐单结果),快递编码只取 WMS 报文,取消/作废/归档返回失败,已取号直接复用 - 新增 openapi_request_idempotency 请求级幂等:request_id 回放、报文摘要校验、30 分钟 stale 接管、7 天定时清理 - 外部打单平台订单按平台 fetch_waybill_no 下发 need_oms_waybill,推送时实时判定并回写单据 - 店铺、打单账号平台配置与「平台+编码→模板」绑定走 Redis 缓存,绑定/账号变更主动失效,避免批量推送与取号逐单查库 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
597 lines
20 KiB
Vue
597 lines
20 KiB
Vue
<script setup lang="ts">
|
||
import { computed, reactive, ref, watch } from 'vue'
|
||
import { ElMessage, ElMessageBox } from 'element-plus'
|
||
import DataTable from '@/components/DataTable.vue'
|
||
import ListPager from '@/components/ListPager.vue'
|
||
import { DEFAULT_PAGE_SIZE } from '@/composables/useListPage'
|
||
import { formatDateTime } from '@/utils/datetime'
|
||
import { getExpressCodeOptions, type ExpressCodeOption } from '@/api/customExpressCode'
|
||
import {
|
||
getExternalPrintExpressInterfaces,
|
||
getExternalPrintExpressInterfaceDetail,
|
||
saveExternalPrintExpressInterfaces,
|
||
syncExternalPrintExpressInterfaces,
|
||
type ExternalPrintExpressInterfaceItem,
|
||
type ExternalPrintExpressInterfaceSyncResult,
|
||
} from '@/api/externalPrintExpressInterface'
|
||
import type { ExternalPrintAccountItem } from '@/api/externalPrintAccount'
|
||
|
||
/**
|
||
* 外部打单平台「快递接口」弹窗
|
||
*
|
||
* 打开即从平台全量拉取账号下所有外部店铺的快递接口(面单模板),落库后展示;
|
||
* 平台侧已删除的接口保留并标记「已失效」,自定义编码与默认设置不会丢。
|
||
* 自定义编码映射到 OMS 快递公司字典,默认类型同一模板只能选一个(平台默认 / 快递默认)。
|
||
*/
|
||
const props = defineProps<{
|
||
modelValue: boolean
|
||
account: ExternalPrintAccountItem | null
|
||
}>()
|
||
|
||
const emit = defineEmits<{
|
||
'update:modelValue': [ value: boolean ]
|
||
}>()
|
||
|
||
const visible = computed({
|
||
get: () => props.modelValue,
|
||
set: value => emit('update:modelValue', value),
|
||
})
|
||
|
||
const dialogTitle = computed(() => {
|
||
const account = props.account
|
||
if (!account) return '快递接口'
|
||
return `快递接口 · ${account.platform?.name || '-'} / ${account.account}`
|
||
})
|
||
|
||
const query = reactive({
|
||
page: 1,
|
||
pageSize: DEFAULT_PAGE_SIZE,
|
||
status: '' as '' | 0 | 1,
|
||
platform_code: '',
|
||
express_company_code: '',
|
||
keyword: '',
|
||
})
|
||
|
||
const loading = ref(false)
|
||
const syncing = ref(false)
|
||
const saving = ref(false)
|
||
const list = ref<ExternalPrintExpressInterfaceItem[]>([])
|
||
const total = ref(0)
|
||
const elapsed = ref(0)
|
||
const lastSync = ref<ExternalPrintExpressInterfaceSyncResult | null>(null)
|
||
|
||
/** 已落库数据里最近一次同步时间(打开弹窗不拉取平台,用它提示数据新鲜度) */
|
||
const lastSyncedAt = computed(() => {
|
||
let latest: string | null = null
|
||
for (const row of list.value) {
|
||
const value = row.synced_at
|
||
if (!value) continue
|
||
if (!latest || new Date(value).getTime() > new Date(latest).getTime()) latest = value
|
||
}
|
||
return latest
|
||
})
|
||
|
||
/** 平台 / 平台快递筛选项:跨页累积,避免翻页后选项丢失 */
|
||
const platformOptions = ref<Array<{ code: string; name: string }>>([])
|
||
const expressOptions = ref<Array<{ code: string; name: string }>>([])
|
||
|
||
/** 快递下拉:系统快递 + 自定义快递编码 */
|
||
const expressCompanies = ref<ExpressCodeOption[]>([])
|
||
|
||
/** 单行下拉选项:把当前值补进去,避免历史值不在列表中显示为空 */
|
||
function customCodeOptions(row: ExternalPrintExpressInterfaceItem) {
|
||
const code = draftOf(row).custom_code
|
||
if (code && !expressCompanies.value.some(item => item.code === code)) {
|
||
return [
|
||
{ code, name: code, source: 'system' as const, express_code: code, express_name: '' },
|
||
...expressCompanies.value,
|
||
]
|
||
}
|
||
return expressCompanies.value
|
||
}
|
||
|
||
/**
|
||
* 同账号同平台内,其它有效模板已绑定的编码。
|
||
* 回读按「账号 + 平台 + 编码」唯一定位,同平台重复绑定无法确定用哪个接口;
|
||
* 不同平台互不影响,可以绑定相同编码。
|
||
*/
|
||
function boundCodesOnPlatform(row: ExternalPrintExpressInterfaceItem) {
|
||
const used = new Set<string>()
|
||
for (const item of list.value) {
|
||
if (Number(item.id) === Number(row.id)) continue
|
||
if (item.platform_code !== row.platform_code) continue
|
||
if (Number(item.status) !== 1) continue
|
||
if (item.custom_code) used.add(item.custom_code)
|
||
}
|
||
return used
|
||
}
|
||
|
||
/** 下拉可选项:排除同平台已绑定的编码(保留当前值,便于查看与改绑) */
|
||
function selectableExpressOptions(row: ExternalPrintExpressInterfaceItem) {
|
||
const used = boundCodesOnPlatform(row)
|
||
const current = draftOf(row).custom_code
|
||
return customCodeOptions(row).filter(option => option.code === current || !used.has(option.code))
|
||
}
|
||
|
||
/** 编辑草稿:只有改过的行才提交 */
|
||
const drafts = reactive<Record<number, { custom_code: string }>>({})
|
||
|
||
function draftOf(row: ExternalPrintExpressInterfaceItem) {
|
||
if (!drafts[row.id]) {
|
||
drafts[row.id] = { custom_code: row.custom_code || '' }
|
||
}
|
||
return drafts[row.id]
|
||
}
|
||
|
||
function isDirty(row: ExternalPrintExpressInterfaceItem) {
|
||
const draft = drafts[row.id]
|
||
if (!draft) return false
|
||
return draft.custom_code !== (row.custom_code || '')
|
||
}
|
||
|
||
const dirtyItems = computed(() => list.value.filter(row => isDirty(row)))
|
||
|
||
function resetDrafts() {
|
||
for (const key of Object.keys(drafts)) delete drafts[Number(key)]
|
||
for (const row of list.value) {
|
||
drafts[row.id] = { custom_code: row.custom_code || '' }
|
||
}
|
||
}
|
||
|
||
function rememberOptions(rows: ExternalPrintExpressInterfaceItem[]) {
|
||
for (const row of rows) {
|
||
if (row.platform_code && !platformOptions.value.some(item => item.code === row.platform_code)) {
|
||
platformOptions.value.push({ code: row.platform_code, name: row.platform_name || row.platform_code })
|
||
}
|
||
if (
|
||
row.express_company_code &&
|
||
!expressOptions.value.some(item => item.code === row.express_company_code)
|
||
) {
|
||
expressOptions.value.push({
|
||
code: row.express_company_code,
|
||
name: row.express_company_name || row.express_company_code,
|
||
})
|
||
}
|
||
}
|
||
}
|
||
|
||
async function fetchList() {
|
||
const account = props.account
|
||
if (!account) return
|
||
const started = Date.now()
|
||
loading.value = true
|
||
try {
|
||
const params: Record<string, unknown> = {
|
||
page: query.page,
|
||
pageSize: query.pageSize,
|
||
}
|
||
if (query.status !== '') params.status = query.status
|
||
if (query.platform_code) params.platform_code = query.platform_code
|
||
if (query.express_company_code) params.express_company_code = query.express_company_code
|
||
if (query.keyword.trim()) params.keyword = query.keyword.trim()
|
||
|
||
const result = await getExternalPrintExpressInterfaces(account.id, params)
|
||
list.value = result.list || []
|
||
total.value = result.total || 0
|
||
rememberOptions(list.value)
|
||
resetDrafts()
|
||
} catch {
|
||
list.value = []
|
||
total.value = 0
|
||
} finally {
|
||
loading.value = false
|
||
elapsed.value = Date.now() - started
|
||
}
|
||
}
|
||
|
||
function search() {
|
||
query.page = 1
|
||
fetchList()
|
||
}
|
||
|
||
function resetQuery() {
|
||
query.status = ''
|
||
query.platform_code = ''
|
||
query.express_company_code = ''
|
||
query.keyword = ''
|
||
search()
|
||
}
|
||
|
||
async function runSync(manual = false) {
|
||
const account = props.account
|
||
if (!account) return
|
||
if (manual && dirtyItems.value.length) {
|
||
try {
|
||
await ElMessageBox.confirm(
|
||
`当前有 ${dirtyItems.value.length} 条未保存的设置,重新拉取会丢弃这些修改,是否继续?`,
|
||
'重新拉取',
|
||
{ type: 'warning', confirmButtonText: '继续', cancelButtonText: '取消' },
|
||
)
|
||
} catch {
|
||
return
|
||
}
|
||
}
|
||
syncing.value = true
|
||
try {
|
||
const result = await syncExternalPrintExpressInterfaces(account.id)
|
||
lastSync.value = result
|
||
const summary = `拉取完成:有效 ${result.total} 条,新增 ${result.created},更新 ${result.updated},失效 ${result.invalidated}`
|
||
if (result.errors.length) {
|
||
ElMessage.warning(`${summary};部分店铺失败:${result.errors[0]}`)
|
||
} else {
|
||
ElMessage.success(summary)
|
||
}
|
||
query.page = 1
|
||
await fetchList()
|
||
} catch {
|
||
// 拦截器已提示
|
||
} finally {
|
||
syncing.value = false
|
||
}
|
||
}
|
||
|
||
async function save() {
|
||
const account = props.account
|
||
if (!account) return
|
||
const items = dirtyItems.value.map(row => ({
|
||
id: row.id,
|
||
custom_code: draftOf(row).custom_code || null,
|
||
}))
|
||
if (!items.length) return
|
||
saving.value = true
|
||
try {
|
||
const result = await saveExternalPrintExpressInterfaces(account.id, items)
|
||
ElMessage.success(`已保存 ${result.updated} 条设置`)
|
||
await fetchList()
|
||
} catch {
|
||
// 拦截器已提示
|
||
} finally {
|
||
saving.value = false
|
||
}
|
||
}
|
||
|
||
/* -------------------- 明细(单独请求平台接口) -------------------- */
|
||
const detailVisible = ref(false)
|
||
const detailLoading = ref(false)
|
||
const detailRow = ref<ExternalPrintExpressInterfaceItem | null>(null)
|
||
const detailData = ref<Record<string, unknown> | null>(null)
|
||
|
||
const DETAIL_FIELDS: Array<[ string, string ]> = [
|
||
[ 'ExpressCompanyName', '快递公司' ],
|
||
[ 'ShopName', '店铺' ],
|
||
[ 'BranchName', '网点名称' ],
|
||
[ 'BranchCode', '网点编码' ],
|
||
[ 'BranchAddress', '网点地址' ],
|
||
[ 'CustomerName', '客户名称' ],
|
||
[ 'CustomerCode', '客户编码' ],
|
||
[ 'AuthAccountName', '授权账号' ],
|
||
[ 'AuthSourceType', '授权来源' ],
|
||
[ 'CaiNiaoAuthInfoId', '菜鸟授权ID' ],
|
||
[ 'SiteAccountId', '站点账号ID' ],
|
||
[ 'IsEbillWaybill', '电子面单' ],
|
||
[ 'IsDefault', '平台默认' ],
|
||
[ 'IsShow', '平台显示' ],
|
||
]
|
||
|
||
const detailFields = computed(() => {
|
||
const data = detailData.value || {}
|
||
return DETAIL_FIELDS
|
||
.filter(([ key ]) => data[key] !== undefined && data[key] !== null && data[key] !== '')
|
||
.map(([ key, label ]) => ({ label, value: String(data[key]) }))
|
||
})
|
||
|
||
const detailRaw = computed(() => (detailData.value ? JSON.stringify(detailData.value, null, 2) : ''))
|
||
|
||
async function openDetail(row: ExternalPrintExpressInterfaceItem) {
|
||
const account = props.account
|
||
if (!account) return
|
||
detailRow.value = row
|
||
detailData.value = null
|
||
detailVisible.value = true
|
||
detailLoading.value = true
|
||
try {
|
||
const result = await getExternalPrintExpressInterfaceDetail(account.id, row.id)
|
||
detailData.value = result.detail
|
||
} catch {
|
||
detailData.value = null
|
||
} finally {
|
||
detailLoading.value = false
|
||
}
|
||
}
|
||
|
||
function handlePageChange(page: number) {
|
||
query.page = page
|
||
fetchList()
|
||
}
|
||
|
||
function handleSizeChange(size: number) {
|
||
query.pageSize = size
|
||
query.page = 1
|
||
fetchList()
|
||
}
|
||
|
||
watch(
|
||
() => props.modelValue,
|
||
async open => {
|
||
if (!open) return
|
||
query.page = 1
|
||
query.status = ''
|
||
query.platform_code = ''
|
||
query.express_company_code = ''
|
||
query.keyword = ''
|
||
lastSync.value = null
|
||
platformOptions.value = []
|
||
expressOptions.value = []
|
||
detailVisible.value = false
|
||
|
||
try {
|
||
expressCompanies.value = await getExpressCodeOptions()
|
||
} catch {
|
||
expressCompanies.value = []
|
||
}
|
||
// 打开只看已落库数据;需要刷新平台数据时由用户点击「从平台同步数据」
|
||
await fetchList()
|
||
},
|
||
)
|
||
</script>
|
||
|
||
<template>
|
||
<el-dialog v-model="visible" :title="dialogTitle" width="1180px" top="5vh" destroy-on-close>
|
||
<el-alert
|
||
type="info"
|
||
show-icon
|
||
:closable="false"
|
||
class="tip"
|
||
title="列表展示已落库的数据,点击「从平台同步数据」才会重新拉取。平台侧已删除的接口会保留并标记「已失效」;同一账号、同一平台内一个快递编码只能绑定一个模板,不同平台互不影响(可绑定相同编码)。回读时按账号 + 平台 + 编码定位。"
|
||
/>
|
||
|
||
<div class="toolbar">
|
||
<el-form :inline="true" size="small" class="filters" @submit.prevent>
|
||
<el-form-item label="状态">
|
||
<el-select v-model="query.status" placeholder="全部" clearable style="width: 110px" @change="search">
|
||
<el-option label="有效" :value="1" />
|
||
<el-option label="已失效" :value="0" />
|
||
</el-select>
|
||
</el-form-item>
|
||
<el-form-item label="平台">
|
||
<el-select v-model="query.platform_code" placeholder="全部" clearable style="width: 130px" @change="search">
|
||
<el-option
|
||
v-for="item in platformOptions"
|
||
:key="item.code"
|
||
:label="item.name"
|
||
:value="item.code"
|
||
/>
|
||
</el-select>
|
||
</el-form-item>
|
||
<el-form-item label="快递">
|
||
<el-select v-model="query.express_company_code" placeholder="全部" clearable filterable style="width: 140px" @change="search">
|
||
<el-option
|
||
v-for="item in expressOptions"
|
||
:key="item.code"
|
||
:label="`${item.name}(${item.code})`"
|
||
:value="item.code"
|
||
/>
|
||
</el-select>
|
||
</el-form-item>
|
||
<el-form-item label="关键词">
|
||
<el-input
|
||
v-model="query.keyword"
|
||
placeholder="接口名称 / 快递 / 店铺 / 自定义编码"
|
||
clearable
|
||
style="width: 230px"
|
||
@keyup.enter="search"
|
||
/>
|
||
</el-form-item>
|
||
<el-form-item>
|
||
<el-button type="primary" @click="search">查询</el-button>
|
||
<el-button @click="resetQuery">重置</el-button>
|
||
</el-form-item>
|
||
</el-form>
|
||
<div class="toolbar-right">
|
||
<span class="sync-summary">
|
||
{{ lastSync ? `本次同步:有效 ${lastSync.total} / 失效 ${lastSync.invalidated}` : `上次同步:${formatDateTime(lastSyncedAt, '尚未同步')}` }}
|
||
</span>
|
||
<el-button size="small" :loading="syncing" @click="runSync(true)">从平台同步数据</el-button>
|
||
</div>
|
||
</div>
|
||
|
||
<DataTable :loading="loading || syncing" :data="list" height="430">
|
||
<el-table-column label="平台" width="100">
|
||
<template #default="{ row }">
|
||
<el-tag size="small" effect="plain">{{ row.platform_name || row.platform_code || '-' }}</el-tag>
|
||
</template>
|
||
</el-table-column>
|
||
<el-table-column label="店铺" width="130" show-overflow-tooltip>
|
||
<template #default="{ row }">{{ row.shop_name || '-' }}</template>
|
||
</el-table-column>
|
||
<el-table-column label="快递接口" min-width="230" show-overflow-tooltip>
|
||
<template #default="{ row }">
|
||
<div class="if-name" :class="{ 'is-invalid': Number(row.status) === 0 }">
|
||
{{ row.template_name || '-' }}
|
||
<el-tag v-if="isDirty(row)" size="small" type="warning" effect="plain" class="dirty-tag">未保存</el-tag>
|
||
</div>
|
||
<div class="if-sub">模板ID {{ row.template_id }}</div>
|
||
</template>
|
||
</el-table-column>
|
||
<el-table-column label="平台快递" width="140" show-overflow-tooltip>
|
||
<template #default="{ row }">
|
||
<span>{{ row.express_company_name || '-' }}</span>
|
||
<span v-if="row.express_company_code" class="if-sub">({{ row.express_company_code }})</span>
|
||
</template>
|
||
</el-table-column>
|
||
<el-table-column label="自定义编码" width="200">
|
||
<template #default="{ row }">
|
||
<el-select
|
||
v-model="draftOf(row).custom_code"
|
||
size="small"
|
||
filterable
|
||
clearable
|
||
placeholder="未绑定"
|
||
style="width: 100%"
|
||
>
|
||
<el-option-group label="自定义快递编码">
|
||
<el-option
|
||
v-for="item in selectableExpressOptions(row).filter(option => option.source === 'custom')"
|
||
:key="`custom-${item.code}`"
|
||
:label="`${item.name}(${item.code})`"
|
||
:value="item.code"
|
||
/>
|
||
</el-option-group>
|
||
<el-option-group label="系统快递">
|
||
<el-option
|
||
v-for="item in selectableExpressOptions(row).filter(option => option.source === 'system')"
|
||
:key="`system-${item.code}`"
|
||
:label="`${item.name}(${item.code})`"
|
||
:value="item.code"
|
||
/>
|
||
</el-option-group>
|
||
</el-select>
|
||
</template>
|
||
</el-table-column>
|
||
<el-table-column label="状态" width="90">
|
||
<template #default="{ row }">
|
||
<el-tag size="small" :type="Number(row.status) === 1 ? 'success' : 'info'" effect="plain">
|
||
{{ Number(row.status) === 1 ? '有效' : '已失效' }}
|
||
</el-tag>
|
||
</template>
|
||
</el-table-column>
|
||
<el-table-column label="平台更新时间" width="150">
|
||
<template #default="{ row }">{{ formatDateTime(row.platform_updated_at) }}</template>
|
||
</el-table-column>
|
||
<el-table-column label="操作" width="80" fixed="right">
|
||
<template #default="{ row }">
|
||
<el-button
|
||
link
|
||
type="primary"
|
||
size="small"
|
||
:disabled="Number(row.status) === 0"
|
||
@click="openDetail(row)"
|
||
>
|
||
明细
|
||
</el-button>
|
||
</template>
|
||
</el-table-column>
|
||
</DataTable>
|
||
|
||
<ListPager
|
||
:total="total"
|
||
:elapsed="elapsed"
|
||
:page="query.page"
|
||
:page-size="query.pageSize"
|
||
@page-change="handlePageChange"
|
||
@size-change="handleSizeChange"
|
||
/>
|
||
|
||
<template #footer>
|
||
<div class="footer-bar">
|
||
<span class="footer-hint">失效记录仅保留展示与绑定关系,不参与回读定位。</span>
|
||
<div>
|
||
<el-button @click="visible = false">关闭</el-button>
|
||
<el-button type="primary" :disabled="!dirtyItems.length" :loading="saving" @click="save">
|
||
保存设置{{ dirtyItems.length ? `(${dirtyItems.length})` : '' }}
|
||
</el-button>
|
||
</div>
|
||
</div>
|
||
</template>
|
||
|
||
<!-- 明细:单独请求平台接口 -->
|
||
<el-drawer v-model="detailVisible" title="快递接口明细" size="560px">
|
||
<template v-if="detailRow">
|
||
<el-descriptions v-loading="detailLoading" :column="1" border size="small">
|
||
<el-descriptions-item label="平台">{{ detailRow.platform_name || detailRow.platform_code || '-' }}</el-descriptions-item>
|
||
<el-descriptions-item label="店铺">{{ detailRow.shop_name || '-' }}</el-descriptions-item>
|
||
<el-descriptions-item label="接口">{{ detailRow.template_name || '-' }}</el-descriptions-item>
|
||
<el-descriptions-item label="模板ID">{{ detailRow.template_id }}</el-descriptions-item>
|
||
<el-descriptions-item label="平台快递">
|
||
{{ detailRow.express_company_name || '-' }}
|
||
<span v-if="detailRow.express_company_code">({{ detailRow.express_company_code }})</span>
|
||
</el-descriptions-item>
|
||
<el-descriptions-item label="自定义编码">{{ detailRow.custom_code || '-' }}</el-descriptions-item>
|
||
</el-descriptions>
|
||
|
||
<el-divider content-position="left">平台明细</el-divider>
|
||
<el-descriptions v-if="detailFields.length" :column="1" border size="small">
|
||
<el-descriptions-item v-for="field in detailFields" :key="field.label" :label="field.label">
|
||
{{ field.value }}
|
||
</el-descriptions-item>
|
||
</el-descriptions>
|
||
<el-empty v-else :image-size="60" description="平台未返回可用字段,可查看下方原始返回" />
|
||
|
||
<el-collapse class="raw-collapse">
|
||
<el-collapse-item title="平台原始返回" name="raw">
|
||
<pre class="raw-json">{{ detailRaw || '无' }}</pre>
|
||
</el-collapse-item>
|
||
</el-collapse>
|
||
</template>
|
||
</el-drawer>
|
||
</el-dialog>
|
||
</template>
|
||
|
||
<style scoped>
|
||
.tip {
|
||
margin-bottom: 8px;
|
||
}
|
||
.toolbar {
|
||
display: flex;
|
||
align-items: flex-start;
|
||
justify-content: space-between;
|
||
gap: 8px;
|
||
}
|
||
.filters {
|
||
flex: 1;
|
||
min-width: 0;
|
||
}
|
||
.filters :deep(.el-form-item) {
|
||
margin-bottom: 8px;
|
||
}
|
||
.toolbar-right {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 8px;
|
||
padding-top: 2px;
|
||
}
|
||
.sync-summary {
|
||
font-size: 12px;
|
||
color: var(--el-text-color-secondary);
|
||
white-space: nowrap;
|
||
}
|
||
.if-name {
|
||
display: flex;
|
||
align-items: center;
|
||
gap: 6px;
|
||
}
|
||
.if-name.is-invalid {
|
||
color: var(--el-text-color-placeholder);
|
||
text-decoration: line-through;
|
||
}
|
||
.if-sub {
|
||
font-size: 12px;
|
||
color: var(--el-text-color-secondary);
|
||
}
|
||
.dirty-tag {
|
||
flex: 0 0 auto;
|
||
}
|
||
.footer-bar {
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: space-between;
|
||
gap: 12px;
|
||
}
|
||
.footer-hint {
|
||
font-size: 12px;
|
||
color: var(--el-text-color-secondary);
|
||
}
|
||
.raw-collapse {
|
||
margin-top: 8px;
|
||
}
|
||
.raw-json {
|
||
margin: 0;
|
||
max-height: 320px;
|
||
overflow: auto;
|
||
font-size: 12px;
|
||
line-height: 1.5;
|
||
white-space: pre-wrap;
|
||
word-break: break-all;
|
||
}
|
||
</style>
|