lixuliang
2024-04-18 b5c4921d0828500379502a916a2ccf2d9d4acc96
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
<template>
  <div>
    <Popup ref="layer" :closeHidePage="true" :title="title" :left="left">
      <el-form ref="form" label-width="90px">
        <el-form-item label="亮度:">
          <el-slider
            :step="0.1"
            :min="0"
            :max="3"
            :value="mapStatus.brightness"
            @input="change('brightness', $event)"
          >
          </el-slider>
        </el-form-item>
        <el-form-item label="对比度:">
          <el-slider
            :step="0.1"
            :min="0"
            :max="3"
            :value="mapStatus.contrast"
            @input="change('contrast', $event)"
          >
          </el-slider>
        </el-form-item>
        <el-form-item label="饱和度:">
          <el-slider
            :step="0.1"
            :min="0"
            :max="3"
            :value="mapStatus.saturation"
            @input="change('saturation', $event)"
          >
          </el-slider>
        </el-form-item>
      </el-form>
    </Popup>
  </div>
</template>
 
<script>
import Popup from "@tools/Popup";
import baseVuex from "@mixin/baseVuex";
export default {
  name: "ColorAdjustment",
  components: {
    Popup,
  },
  mixins: [baseVuex],
  data() {
    return {
      title: "颜色矫正",
      left: "calc(100% - 380px)",
    };
  },
  mounted() {},
  methods: {
    open() {
      // 打开弹窗
      this.$refs.layer.open();
    },
    change(type, value) {
      window.sgworld && (sgworld[type] = value);
      this.changeMapStatus({ type, value });
    },
  },
};
</script>
 
<style scoped lang="less" scoped>
.el-form-item {
  margin-bottom: 5px !important;
}
.el-divider {
  margin: 5px 0;
}
</style>