codes.vue 3.03 KB
<template>
  <div class="contentBox">
    <div class="content">
      <div>
        <template>
          <el-tabs
            v-model="activeName"
            @tab-click="tabClick"
            class="codes-tab-box"
          >
            <el-tab-pane label="交通字典" name="trffic">
              <trfficcodes></trfficcodes>
            </el-tab-pane>
            <el-tab-pane label="事件字典" name="event">
              <eventcodes></eventcodes>
            </el-tab-pane>
          </el-tabs>
        </template>
      </div>
    </div>
  </div>
</template>
<script>
import trfficcodes from "./trfficcodes";
import eventcodes from "./eventcodes";
export default {
  data() {
    return {
      activeName: "trffic"
    };
  },
  components: {
    trfficcodes,
    eventcodes
  },
  methods: {
    tabClick(){}
  },
  created() {}
};
</script>
<style lang="scss" scoped>
.topCon {
  background: $white-back-color;
  margin-bottom: 12px;
  height: 100px;
  .left {
    display: inline-block;
    margin: {
      top: 22px;
      left: 30px;
    }
    img {
      width: 65px;
      height: 55px;
      margin-right: 11px;
    }
    .topText {
      font-size: 24px;
      font-family: MicrosoftYaHeiUI-Bold, MicrosoftYaHeiUI;
      font-weight: bold;
      margin-bottom: 4px;
    }
    .bottomText {
      font-size: 14px;
      font-family: MicrosoftYaHeiUI;
    }
  }
  .right {
    float: right;
    .topText {
      font-size: 28px;
      font-family: MicrosoftYaHeiUI-Bold, MicrosoftYaHeiUI;
      font-weight: bold;
    }
    .bottomText {
      position: relative;
      top: -1px;
      font-size: 14px;
      font-family: MicrosoftYaHeiUI;
    }
  }
  .textCon {
    display: inline-block;
    vertical-align: top;
  }
  .border {
    display: inline-block;
    height: 40px;
    border: {
      left: 2px solid $border-color;
    }
  }
  .rightBox {
    margin-top: 14px;
    display: inline-block;
    img {
      margin: {
        top: 15px;
        right: 22px;
      }
    }
  }
  .rightBox:nth-of-type(1) {
    img {
      width: 34px;
      height: 34px;
    }
    .textCon {
      margin-right: 114px;
    }
  }
  .rightBox:nth-of-type(2) {
    position: relative;
    top: 4px;
    img {
      width: 40px;
      height: 40px;
      margin-left: 102px;
    }
    .textCon {
      margin-right: 101px;
    }
  }
  .rightBox:nth-of-type(3) {
    img {
      width: 34px;
      height: 35px;
      margin-left: 104px;
    }
    .textCon {
      margin-right: 184px;
    }
  }
}
.resourceDiv {
  display: inline-block;
  margin-left: 10%;
  span {
    margin-right: 5%;
  }
}
.content {
  background: #ffffff;
}
.inputBox {
  margin-right: 20px;
}
.selectBox {
  margin-right: 20px;
}
.editIcon {
  cursor: pointer;
  color: #0069ff;
  font-size: 16px;
}
.editIcon2 {
  cursor: pointer;
  color: #87d14b;
  font-size: 16px;
}
.playIcon {
  cursor: pointer;
  color: #34b3a2;
  font-size: 16px;
}
.pauseIcon {
  cursor: pointer;
  color: #ffc62e;
  font-size: 14px;
}
.delIcon {
  cursor: pointer;
  color: #f2365a;
  font-size: 16px;
}
.code-tab{
  width: 112px;
}
</style>