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