Ptsmsg.vue 2.55 KB
Newer Older
zhengxiaokui committed
1
<template>
liuxin committed
2 3
  <!-- <div class="eibs-tab"> -->
  <div>
Eivi committed
4 5
    <c-col v-if="!enRef" :span="24">
      <el-form-item :label="argadr.title + ' 编号'" :prop="`${argadr.grp}.${argadr.rol}.pts.ref`">
zhengxiaokui committed
6
        <c-input
liuxin committed
7
          v-model="model[argadr.grp][argadr.rol].pts.ref"
zhengxiaokui committed
8 9
          maxlength="16"
          :placeholder="'请输入' + argadr.title + '编号'"
jianglong committed
10
          :disabled="disabled"
zhengxiaokui committed
11 12 13
        ></c-input>
      </el-form-item>
    </c-col>
Eivi committed
14 15 16 17 18 19 20 21 22 23
    <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>
zhengxiaokui committed
24 25


Eivi committed
26
    <c-col v-if="!enNam" :span="24">
liuxin committed
27
      <el-form-item :label="argadr.title + '名称'" :prop="`${argadr.grp}.${argadr.rol}.pts.nam`">
zhengxiaokui committed
28
        <c-input
liuxin committed
29
          v-model="model[argadr.grp][argadr.rol].pts.nam"
zhengxiaokui committed
30 31
          maxlength="40"
          :placeholder="'请输入' + argadr.title + '名称'"
32
          :disabled="disabled || disabled1"
zhengxiaokui committed
33 34 35
        ></c-input>
      </el-form-item>
    </c-col>
Eivi committed
36 37 38 39 40 41 42 43

    <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"
zhengxiaokui committed
44 45 46 47 48 49 50
        ></c-input>
      </el-form-item>
    </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api";
wangren committed
51
import commonProcess from "~/mixin/commonProcess";
zhengxiaokui committed
52 53 54

export default {
  inject: ["root"],
wangren committed
55
  mixins: [commonProcess],
jianglong committed
56 57 58 59 60 61
  props: {
    model: {
      type: Object,
      default: undefined,
    },
    codes: {},
62 63 64 65 66 67 68 69 70 71
    argadr: {
       type: Object,
      default: function () {
        return {
          title: "", //角色名称
          rol: "", //角色
          grp: "", //所属模块
        };
      },
    },
jianglong committed
72 73 74 75 76
    disabled: {
      //名称地址是否灰显
      type: Boolean,
      default: false,
    },
77 78 79 80 81
    disabled1: {
      //名称是否灰显
      type: Boolean,
      default: false,
    },
Eivi committed
82 83 84 85 86 87 88 89 90 91
    enRef: {
      //英文编号
      type: Boolean,
      default: false,
    },
    enNam: {
      //英文名称
      type: Boolean,
      default: false,
    },
jianglong committed
92
  },
zhengxiaokui committed
93 94 95 96 97 98
  data() {
    return {
      data: [],
    };
  },
  watch: {},
jianglong committed
99
  // methods: { ...Event },
zhengxiaokui committed
100 101 102 103 104
  created: function () {},
};
</script>
<style>
</style>