1
Surpriseplus
2022-09-16 8d1a91c23df335b090e38b2edd15203aa3b03da9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
<template>
  <div class="left_1">
    <div class="content">
      <iframe class="content" v-bind:src="reportUrl"></iframe>
 
      <el-select
        :popper-append-to-body="false"
        v-model="value"
        placeholder="请选择"
        popper-class="selectFrom"
        @change="getValue"
      >
        <el-option
          v-for="item in optionsData"
          :key="item.value"
          :label="item.label"
          :value="item.value"
        >
        </el-option>
      </el-select>
      <el-button
        type="primary"
        icon="el-icon-zoom-in"
        circle
        @click="eject"
      ></el-button>
    </div>
  </div>
</template>
 
<script>
export default {
  //import引入的组件需要注入到对象中才能使用
  components: {},
  props: {
    optionsData: Array,
  },
  data() {
    //这里存放数据
    return {
      value: "智慧应急平台",
      reportUrl: "http://172.16.31.3:8314/UcsWeb#/loginPass",
    };
  },
  //方法集合
  methods: {
    eject() {
      this.$emit("getData", this.reportUrl);
    },
    getValue(val) {
      this.reportUrl = val;
    },
  },
  created() {},
};
</script>
<style lang="less" scoped>
//@import url(); 引入公共css类
.left_1 {
  overflow: hidden;
  width: 100%;
  height: calc(50vh - 158px);
  // background-color: #bfa;
  box-sizing: border-box;
  padding-bottom: 40px;
 
  .content {
    width: 100%;
    height: 100%;
    // background: url("../../../assets/img/联动_03.png") no-repeat center;
    // background-size: 100%;
    position: relative;
    .el-button {
      font-size: 60px;
      position: absolute;
      top: 60px;
      right: 40px;
      background-color: #053469;
    }
  }
  .content /deep/.el-select {
    position: absolute;
    top: 60px;
    right: 300px;
    background-color: #053469;
    width: 600px;
    height: 96px;
    .el-input {
      background-color: #053469;
      width: 100%;
      height: 100%;
      .el-input__inner {
        background-color: #053469;
        width: 100%;
        height: 100%;
        color: #fff;
        font-size: 40px;
        border: 0;
      }
      .el-input__suffix {
        padding-right: 28px;
      }
    }
    .selectFrom {
      height: auto;
      .el-select-dropdown__wrap {
        max-height: 500px;
      }
      .el-select-dropdown__item {
        height: auto;
        font-size: 40px !important;
        padding-top: 40px;
        padding-bottom: 40px;
      }
    }
  }
}
</style>