Ptap1.vue 2.79 KB
Newer Older
liushikai committed
1
<template>
liuxin committed
2
  <div>
3
    <c-col :span="24">
liushikai committed
4 5 6 7 8
      <el-form-item
        :label="`${argadr.title}`"
        :prop="`${argadr.grp}.${argadr.rol}.pts.extkey`"
        style="width: 100%"
      >
9
      <c-fullbox>
liushikai committed
10 11 12 13 14 15 16
        <c-input
          style="width: 95%"
          v-model="model[argadr.grp][argadr.rol].pts.extkey"
          :placeholder="'请输入' + argadr.title + 'Extkey'"
          @keyup.enter.native="
            showGridPromptDialog(`${argadr.grp}.${argadr.rol}.pts.extkey`)
          "
17
          :disabled="disabled1"
liushikai committed
18
        ></c-input>
19 20
      <!-- </el-form-item> -->
    <!-- </c-col> -->
liushikai committed
21

22
    <!-- <c-col :span="1"> -->
liushikai committed
23
      <!-- <el-form-item label="" label-width="5px"> -->
24
      <template slot="footer">
liushikai committed
25 26 27 28 29 30 31 32
      <c-button
        style="margin:0 10px 0 0;padding: 0 10px;"
        class="searchButton"
        size="small"
        type="primary"
        icon="el-icon-search"
        @click="onSeainf(`${argadr.grp}.${argadr.rol}.pts.extkey`)"
      ></c-button>
33 34
    <!-- </c-col> -->
    <!-- <c-col :span="3" style="text-align: right"> -->
liushikai committed
35 36 37 38 39 40 41 42 43
      <c-button
        style="margin:0 0"
        class="detailsButton"
        size="small"
        type="primary"
        @click="onAplpDet"
      >
        {{ $t('buttons.details') }}
      </c-button>
44 45 46
      </template>
      </c-fullbox>
      </el-form-item>
liushikai committed
47 48 49 50 51 52 53 54 55 56 57
    </c-col>

      <c-col :span="24">
        <el-form-item
          label=""
          :prop="`${argadr.grp}.${argadr.rol}.pts.adrblk`"
        >
          <c-input
            type="textarea"
            :rows="4"
            v-model="model[argadr.grp][argadr.rol].pts.adrblk"
58
            maxlength="140"
liushikai committed
59 60
            show-word-limit
            placeholder="请输入"
61
            :disabled="disabled || disabled1"
liushikai committed
62 63 64 65 66 67 68 69
          ></c-input>
        </el-form-item>
      </c-col>

  </div>
</template>
<script>
import Api from "~/service/Api";
wangren committed
70
import commonProcess from "~/mixin/commonProcess";
liushikai committed
71 72 73
// 机构信息模块
export default {
  inject: ["root"],
wangren committed
74
  mixins: [commonProcess],
liushikai committed
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94

  props: {
    model: {
      type: Object,
      default: undefined,
    },
    argadr: {
      type: Object,
      default: function () {
        return {
          title: "", //角色名称
          rol: "", //角色
          grp: "", //所属模块
        };
      },
    },
    disabled: {
      type: Boolean,
      default: false,
    },
95 96 97 98
    disabled1: {//编号栏是否为灰
      type: Boolean,
      default: false,
    },
liushikai committed
99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131

  },
  data() {
    return {
      data: [],
    };
  },
  watch: {},
  methods: {
    onSeainf(data) {
      this.$emit("onSeainf", data);
    },

    onAplpDet() {
      this.$emit("onAplpDet");
    },
  },

  created: function () {},
};
</script>
<style>
.searchButton {
  text-align: center;
  /* margin: 0 10px; */
  margin-right: 10px;
  padding: 0 10px;
}
.detailsButton {
  margin-left: 10px;
  
}
</style>