edit.vue 854 Bytes
<template>
  <RelDialog width="50%" :type='type' :editApp='editApp' :app='app' :buttonApp='buttonApp'>
    <el-form slot="form" ref="form" :model="form" label-width="100px" :rules="rules">
      <el-row :gutter="20" :app="this">
        <EditColItem  :required="item.required||false" :readonly="item.readonly?true:false "  v-for="(item,index) in editColItemList " :value="item.value" :span="item.span" :label="item.label" :prop='item.prop' :key="item.prop" :type="item.type" :typeConfig='item.typeConfig' :rule="item.rule"  />
      </el-row>
    </el-form>
  </RelDialog>
</template>
<script>
  import config from '../config.js';
  import {
    editMixin
  } from 'common'
  export default {
    mixins: [editMixin],
    created() {
      const mkid=this.$route.meta.mkid
      this.editColItemList=config[mkid].edit.editColItemList
    }
  }
</script>