|
|
@@ -44,7 +44,7 @@
|
|
|
/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
- <el-col :span="12"> image area </el-col>
|
|
|
+ <el-col :span="12"><tf-file-uploader v-model="formData.fileList" title="安装照片" /></el-col>
|
|
|
</el-row>
|
|
|
</el-form>
|
|
|
</template>
|
|
|
@@ -77,12 +77,12 @@
|
|
|
/** 站点ID */
|
|
|
siteId: number
|
|
|
}
|
|
|
- fileList: (string | Partial<ElUploadInternalFileDetail>)[]
|
|
|
+ fileList: Partial<ElUploadInternalFileDetail>[]
|
|
|
}
|
|
|
|
|
|
@Component({ name: 'DeviceForm', components: {} })
|
|
|
export default class DeviceForm extends Vue {
|
|
|
- @ModelSync('value', 'change', { type: Object }) readonly formData!: IInstall
|
|
|
+ @ModelSync('value', 'change', { type: Object, default: () => [] }) readonly formData!: IInstall
|
|
|
@Prop({ type: String, default: '8em' }) labelWidth!: string
|
|
|
@Prop({ type: Array, default: () => ({}) }) types!: IDeviceType[]
|
|
|
getDefalutNumberProp = getDefalutNumberProp
|