<template>
  <div>
    <lt-frame-nomenu
      ref="refFram"
      :loginTime="loginTime"
      :pCompName="pCompName"
      :pModuleName="pModuleName"
      :ver="localVer"
      signalrUrl="http://192.168.1.216:8081/notify"
      :ifCheckLogin="false"
      @quit="quit"
    >
      <div slot="frame-header-menu" style="color:aliceblue;margin-top:15px">
        当前用户:Test
        <span style="margin-left:15px;"> </span>
      </div>
      <div slot="main-container" style="width:100%;height:100%">
        <example-view></example-view>
      </div>

      <!-- </div> -->
    </lt-frame-nomenu>
  </div>
</template>

<script>
import exampleView from "../components/example-model/index.vue"; //测试页面
// import ltFrameNomenu from "./example-model/common/lt-frame-nomenu/src/main.vue";

export default {
  name: "plan-batch",
  components: {
    // ltFrameNomenu,
  },
  props: {
    loginTime: {
      type: String,
    },
    powers: {
      type: Array,
    },
  },
  components: {
    exampleView,
  },
  computed: {
    getUserName: function() {
      return LtConfig.userName;
    },
    localVer: function() {
      return LtConfig.ver;
    },
  },
  data() {
    return {
      pCompName: "珠海长陆工业自动控制系统股份有限公司",
      pModuleName: "画图基础控件使用示例",

      timer: null, //定时器
    };
  },
  created: function() {},
  methods: {
    quit() {},
    getCurrentTime() {
      var self = this;
      return setInterval(function() {
        var date = new Date();
        var year = date.getFullYear();
        var month = date.getMonth() + 1;
        var day = date.getDate();
        var hour = date.getHours();
        var minute = date.getMinutes();
        var second = date.getSeconds();
        month = month < 10 ? "0" + month : month;
        day = day < 10 ? "0" + day : day;
        hour = hour < 10 ? "0" + hour : hour;
        minute = minute < 10 ? "0" + minute : minute;
        second = second < 10 ? "0" + second : second;
        var Timer =
          year +
          "-" +
          month +
          "-" +
          day +
          " " +
          hour +
          ":" +
          minute +
          ":" +
          second;
        self.currentTime = Timer;
      }, 1000);
    },
  },
  beforeDestroy() {
    clearInterval(this.timer);
  },
};
</script>
<style>
/* 此处全局修改样式，elementUI里面，默认的container main的padding是20px，界面显示不够友好 */
.el-main {
  padding: 0px;
}
.el-header {
  padding: 0px;
}
</style>
