LR преди 3 години
родител
ревизия
32ac3ef52b
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      src/views/spectrum/configuration/point/PointForm/DeviceForm.vue

+ 3 - 3
src/views/spectrum/configuration/point/PointForm/DeviceForm.vue

@@ -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