This commit is contained in:
@@ -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)
|
||||
)
|
||||
}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user