修改bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m33s

This commit is contained in:
sexygoat
2026-03-17 09:31:37 +08:00
parent 8f31526499
commit f4ccf9ed24
28 changed files with 3383 additions and 1247 deletions

View File

@@ -125,11 +125,11 @@
<ElOption
v-for="device in deviceOptions"
:key="device.id"
:label="`${device.device_no} (${device.device_name})`"
:label="`${device.virtual_no} (${device.device_name})`"
:value="device.id"
>
<div style="display: flex; justify-content: space-between">
<span>{{ device.device_no }}</span>
<span>{{ device.virtual_no }}</span>
<span style="color: var(--el-text-color-secondary); font-size: 12px">
{{ device.device_name }}
</span>
@@ -590,12 +590,12 @@
}
}
// 搜索设备(根据设备号device_no
// 搜索设备(根据设备号virtual_no
const searchDevices = async (query: string) => {
deviceSearchLoading.value = true
try {
const res = await DeviceService.getDevices({
device_no: query || undefined,
virtual_no: query || undefined,
page: 1,
page_size: 20
})
@@ -719,10 +719,8 @@
purchased_by_platform: 'danger',
purchase_for_subordinate: 'info'
}
return h(
ElTag,
{ type: roleTypeMap[row.purchase_role] || 'info', size: 'small' },
() => getPurchaseRoleText(row.purchase_role)
return h(ElTag, { type: roleTypeMap[row.purchase_role] || 'info', size: 'small' }, () =>
getPurchaseRoleText(row.purchase_role)
)
}
},