
<template>
   <nm-form-vuetify-drawer ref="form" v-bind="form" v-on="on" :parent="parent" :title="title" placement="left" :visible.sync="visible_">
          
              
            

                             <v-checkbox  
                    v-model="form.model.isDeleted"
                    label="是否删除"
                    :rules="form.rules.isDeletedRules"
                 >
                  </v-checkbox>
            

        
              
            

                             <v-checkbox  
                    v-model="form.model.isLocked"
                    label="是否锁定"
                    :rules="form.rules.isLockedRules"
                 >
                  </v-checkbox>
            

        
              
            

                             <v-checkbox  
                    v-model="form.model.isFrozen"
                    label="是否冻结"
                    :rules="form.rules.isFrozenRules"
                 >
                  </v-checkbox>
            

        
                               <v-text-field
                    v-model="form.model.name"
                    label="文件名"
                    :rules="form.rules.nameRules"
                  ></v-text-field>
            
            

            

        
                               <v-text-field
                    v-model="form.model.type"
                    label="文件类型"
                    :rules="form.rules.typeRules"
                  ></v-text-field>
            
            

            

        
              
            

            

        
                               <v-text-field
                    v-model="form.model.createdUser"
                    label="创建人"
                    :rules="form.rules.createdUserRules"
                  ></v-text-field>
            
            

            

        
                               <v-text-field
                    v-model="form.model.lastUpdatedUser"
                    label="最后更新人"
                    :rules="form.rules.lastUpdatedUserRules"
                  ></v-text-field>
            
            

            

        
                               <v-text-field
                    v-model="form.model.folder_Id"
                    label="文件夹Id"
                    :rules="form.rules.folder_IdRules"
                  ></v-text-field>
            
            

            

            </nm-form-vuetify-drawer>
</template>
<script>
import { mixins } from 'xmanager-ui'
const { add, edit, update } = $api.reference.file

export default {
    mixins: [mixins.formSave],
    data() {
        return {
          title: '文件',
          actions: { add, edit, update },
          parent: this,
          form: {
            model: {
                      /** 是否删除 */
              isDeleted: false,
                          /** 是否锁定 */
              isLocked: false,
                          /** 是否冻结 */
              isFrozen: false,
                           /** 文件名 */
              name: '',
                       /** 文件类型 */
              type: '',
                       /** 文件大小 */
              payloadSize: '',
                       /** 创建人 */
              createdUser: '',
                       /** 最后更新人 */
              lastUpdatedUser: '',
                       /** 文件夹Id */
              folder_Id: ''
                },
            rules: {
                        isDeletedRules: [
                                (v) => !!v || '是否删除 is required',
                                ],
                        isLockedRules: [
                                (v) => !!v || '是否锁定 is required',
                                ],
                        isFrozenRules: [
                                (v) => !!v || '是否冻结 is required',
                                ],
                        nameRules: [
                                (v) => !!v || '文件名 is required',
                                ],
                        typeRules: [
                                (v) => !!v || '文件类型 is required',
                                ],
                        payloadSizeRules: [
                                (v) => !!v || '文件大小 is required',
                                ],
                        createdUserRules: [
                                (v) => !!v || '创建人 is required',
                                ],
                        lastUpdatedUserRules: [
                                (v) => !!v || '最后更新人 is required',
                                ],
                        folder_IdRules: [
                                (v) => !!v || '文件夹Id is required',
                                ],
                        }
          }
        }
      },
    }
</script>
