fix
This commit is contained in:
@@ -62,6 +62,7 @@ export interface AssetForm {
|
||||
model?: string
|
||||
manufacturer?: string
|
||||
serial_number?: string
|
||||
source_address?: string
|
||||
purchase_date?: string
|
||||
original_value?: number
|
||||
supplier_id?: number
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
<a-descriptions-item label="序列号">
|
||||
{{ device?.serial_number || '-' }}
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="源地址" :span="2">
|
||||
<span class="source-address">{{ device?.source_address || '-' }}</span>
|
||||
</a-descriptions-item>
|
||||
<a-descriptions-item label="采购日期">
|
||||
{{ formatDate(device?.purchase_date) }}
|
||||
</a-descriptions-item>
|
||||
@@ -117,6 +120,7 @@ interface Device {
|
||||
model?: string
|
||||
manufacturer?: string
|
||||
serial_number?: string
|
||||
source_address?: string
|
||||
purchase_date?: string
|
||||
original_value?: number
|
||||
supplier?: { id: number; name: string; code: string }
|
||||
@@ -213,4 +217,8 @@ export default {
|
||||
:deep(.arco-descriptions-item-label) {
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
.source-address {
|
||||
word-break: break-all;
|
||||
}
|
||||
</style>
|
||||
|
||||
@@ -119,6 +119,13 @@
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
<a-row :gutter="16">
|
||||
<a-col :span="24">
|
||||
<a-form-item label="源地址" field="source_address">
|
||||
<a-input v-model="form.source_address" placeholder="请输入源地址" :max-length="1000" allow-clear />
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
</a-row>
|
||||
</a-card>
|
||||
|
||||
<!-- 使用信息 -->
|
||||
@@ -326,6 +333,7 @@ const form = ref<AssetForm>({
|
||||
model: '',
|
||||
manufacturer: '',
|
||||
serial_number: '',
|
||||
source_address: '',
|
||||
purchase_date: '',
|
||||
original_value: undefined,
|
||||
supplier_id: undefined,
|
||||
|
||||
Reference in New Issue
Block a user