<template>
  <!-- <div class="eibs-tab"> -->
  <div>
    <c-col v-if="!enRef" :span="24">
      <el-form-item :label="argadr.title + ' 编号'" :prop="`${argadr.grp}.${argadr.rol}.pts.ref`">
        <c-input
          v-model="model[argadr.grp][argadr.rol].pts.ref"
          maxlength="16"
          :placeholder="'请输入' + argadr.title + '编号'"
          :disabled="disabled"
        ></c-input>
      </el-form-item>
    </c-col>
    <c-col v-else :span="24">
      <el-form-item :label="argadr.title + ' Ref.'" :prop="`${argadr.grp}.${argadr.rol}.pts.ref`">
        <c-input
          v-model="model[argadr.grp][argadr.rol].pts.ref"
          maxlength="16"
          :placeholder="'Please input' + argadr.title + 'Ref.'"
          :disabled="disabled"
        ></c-input>
      </el-form-item>
    </c-col>


    <c-col v-if="!enNam" :span="24">
      <el-form-item :label="argadr.title + '名称'" :prop="`${argadr.grp}.${argadr.rol}.pts.nam`">
        <c-input
          v-model="model[argadr.grp][argadr.rol].pts.nam"
          maxlength="40"
          :placeholder="'请输入' + argadr.title + '名称'"
          :disabled="disabled || disabled1"
        ></c-input>
      </el-form-item>
    </c-col>

    <c-col v-else :span="24">
      <el-form-item :label="argadr.title + ' Nam.'" :prop="`${argadr.grp}.${argadr.rol}.pts.nam`">
        <c-input
          v-model="model[argadr.grp][argadr.rol].pts.nam"
          maxlength="40"
          :placeholder="'Please input' + argadr.title + ' Nam.'"
          :disabled="disabled || disabled1"
        ></c-input>
      </el-form-item>
    </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";

export default {
  inject: ["root"],
  mixins: [commonProcess],
  props: {
    model: {
      type: Object,
      default: undefined,
    },
    codes: {},
    argadr: {
       type: Object,
      default: function () {
        return {
          title: "", //角色名称
          rol: "", //角色
          grp: "", //所属模块
        };
      },
    },
    disabled: {
      //名称地址是否灰显
      type: Boolean,
      default: false,
    },
    disabled1: {
      //名称是否灰显
      type: Boolean,
      default: false,
    },
    enRef: {
      //英文编号
      type: Boolean,
      default: false,
    },
    enNam: {
      //英文名称
      type: Boolean,
      default: false,
    },
  },
  data() {
    return {
      data: [],
    };
  },
  watch: {},
  // methods: { ...Event },
  created: function () {},
};
</script>
<style>
</style>
