Ptsmsg.vue 2.42 KB
Newer Older
xionglin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100
<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 + '参考号'" :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-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 + '名称'" :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>
  </div>
</template>
<script>
import event from "../event"

export default {
  inject: ["root"],
  mixins: [event],
  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: [],
    };
  },
};
</script>
<style>
</style>