BusNavbar.vue 1.91 KB
<template>
  <el-dialog
    :visible.sync="initdialog"
    :title="'交易列表'"
    append-to-body
    :before-close="beforeClose"
    @opened="opened"
  >
    <div class="m-list-btns">
      <div class="busnavbar">
        <div class="busnavbar-items">
          <c-button
            style="margin-left: 7px"
            size="medium"
            type="primary"
            class="medium_bcs"
            v-for="(item, index) in navcode"
            v-bind:key="index"
            :title="item.title"
            :disabled="item.isDis === 'N'"
            >{{ item.label }}</c-button
          >
          <div style="margin-top: 15px;margin-left: 10px;">
          <div v-for="(str,idx) in tState" :key="idx" style="margin-bottom: 5px;font-weight: bold;">
            {{str}}
          </div>
        </div>
        </div>
      </div>
    </div>
  </el-dialog>
</template>
<script>
import Api from "~/service/Api";
import event from "../event"
import _ from "~/utils/Lodash"

export default {
  props: {
    seaownref: {
      required: true,
    },
    trnCode: {
      required: true,
    },
    model: {
      required: true,
    },
    seaownrefPath: {
      required: false,
      default: "bedgrp",
    },
    tabIndex: {
      required: false,
      default: 1,
    },
  },
  components: {},
  mixins: [event], // 里面包含了Default、Check等的公共处理
  data() {
    return {
      initdialog: false,
      navcode: [
        // {code:"",label:"",isDis:"",title:""},
      ],
      tState: []
    };
  },
  methods: {
   
    getIndex(module) {
      for (let i = 1; i <= 12; i++) {
        var temp = this.model.cfgfil[`subtxt${i}`];
        if (module == temp) {
          return i;
        }
      }
      return 1;
    },
    opened() {
      this.tState = []
      this.$emit("childmethods");
    },
    beforeClose() {
      this.navcode = [];
      this.initdialog = false;
    },
  },
  
};
</script>
<style>
</style>