优化
This commit is contained in:
@@ -13,7 +13,7 @@ export interface MaterialInfoResp {
|
|||||||
createTime: string
|
createTime: string
|
||||||
createUserString: string
|
createUserString: string
|
||||||
updateUserString: string
|
updateUserString: string
|
||||||
lightLevel: string
|
lightLevel: number
|
||||||
disabled: boolean
|
disabled: boolean
|
||||||
photoLoadError: boolean
|
photoLoadError: boolean
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -168,7 +168,6 @@ const onUpdate = async (id: string) => {
|
|||||||
await getMaterialTypeSelect()
|
await getMaterialTypeSelect()
|
||||||
}
|
}
|
||||||
Object.assign(form, data)
|
Object.assign(form, data)
|
||||||
form.lightLevel = data.lightLevel ? JSON.stringify(data.lightLevel) : ''
|
|
||||||
visible.value = true
|
visible.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,8 +26,8 @@
|
|||||||
<div class="main-content">
|
<div class="main-content">
|
||||||
<!-- 左侧表单 -->
|
<!-- 左侧表单 -->
|
||||||
<div class="left-section">
|
<div class="left-section">
|
||||||
<a-image v-if="!formData.photoUrl" :src="formData.photoUrl" />
|
<a-image v-if="formData.photoUrl" :src="formData.photoUrl" width="240"/>
|
||||||
<img v-else :src="formData.photoUrl" class="sample-image square-image" alt="样图">
|
<!-- <img v-else :src="formData.photoUrl" class="sample-image square-image" alt="样图">-->
|
||||||
|
|
||||||
<a-form :model="formData" layout="vertical">
|
<a-form :model="formData" layout="vertical">
|
||||||
<div class="form-row">
|
<div class="form-row">
|
||||||
|
|||||||
Reference in New Issue
Block a user