kgAnalusis.vue 7.19 KB
// 控高分析 弹窗
<template>
    <div class="container">
        <div class="wrapper">
            <div class="box">
            </div>
        </div>
        <div class="mian">
            <div class="title-bt">
                <span>控高分析</span>
                <span @click="closePop" class="close">×</span>
            </div>
            <div class="" style="padding: 18px 24px 0px 24px;">
                <el-slider v-model="height" :min='1' :max='1000' :format-tooltip="formatTooltip"
                    @change='EheightChange'></el-slider>
            </div>
            <div class="func-btn">
                <div class="btn-wrapper add-bg" @click="startAnalysis">
                    <img style="width: 20px; height: 20px; margin: 0 5px 0 44px" src="../assets/icon_开始分析.png" alt="">
                    <span>开始分析</span>
                </div>
                <div class="btn-wrapper" @click="stopAnalysis" style="margin-left: 30px;">
                    <img style="width: 20px; height: 20px;margin: 0 5px 0 26px" src="../assets/icon_清除分析结果.png" alt="">
                    <span>清除分析结果</span>
                </div>
            </div>
        </div>
    </div>
</template>

<script>
    import heightControl from "../assets/js/map/heightControl";
    export default {
        name: 'kgAnalusis',
        components: {},
        data() {
            return {
                height: 100
            }
        },
        mounted() {
            this.heightControl instanceof heightControl || (this.heightControl = new heightControl({h: this.height}));
        },
        methods: {
            closePop() {
                this.$emit('closePop', 'kgAnalusis')
            },
            startAnalysis() {
                this.heightControl.handlerPolygon.deactivate();
                this.heightControl.handlerPolygon.activate();
            },
            stopAnalysis() {
                this.heightControl.remove();
            },
            formatTooltip(val) {
                return val + '米';
            },
            EheightChange() {
                this.heightControl.polygon.height = this.height;
                this.heightControl.splice(this.height);
            }
        }
    }
</script>

<style scoped>
    .container {
        position: relative;
        color: #fff;
        font-size: 16px;
        width: 450px;
    }

    .wrapper {
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 1;
        border: 1px solid rgba(151, 151, 151, 0.58);
    }

    .box {
        background: rgba(4, 10, 10, 0.58);
        box-shadow: 0px 4px 9px 0px rgba(0, 0, 0, 0.5);
        /* filter: blur(10px); */
        height: 100px;
        position: absolute;
        width: 100%;
        height: 100%;
        z-index: 1;
    }

    .mian {
        position: relative;
        width: 100%;
        height: 100%;
        z-index: 1000;
    }

    .list-box span:nth-of-type(1) {
        display: inline-block;
        width: 98px;
        margin-right: 20px;
        color: rgba(255, 255, 255, .7);
    }

    .list-box span:nth-of-type(2) {
        margin-top: 14px;
        display: inline-block;
    }


    .title-bt {
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        padding: 18px 24px;
        font-size: 20px;
    }


    .func-input {
        display: flex;
        align-items: center;
        /* justify-content: space-between; */
        padding: 18px 24px 0px 24px;
        font-size: 18px;
        cursor: pointer;
    }

    .func {
        padding: 18px 24px;
    }



    .func-btn {
        display: flex;
        padding: 18px 24px 30px 24px;
        align-items: center;
        font-size: 18px;
        cursor: pointer;
    }

    .btn-wrapper {
        display: flex;
        align-items: center;
        width: 190px;
        height: 36px;
        background-image: url('../assets/弹窗按钮背景-默认.png');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        line-height: 36px;
    }

    .add-bg {
        background-image: url('../assets/弹窗按钮背景-选中.png');
    }


    .btn-wrapper2 {
        position: absolute;
        top: 12px;
        right: 24px;
        display: flex;
        align-items: center;
        width: 116px;
        height: 38px;
        background-image: url('../assets/一张图/bg_专题分析.png');
        background-size: 100% 100%;
        background-repeat: no-repeat;
        text-align: center;
        line-height: 38px;
        margin-left: 13px;
    }

    .add-bg2 {
        background-image: url('../assets/一张图/bg_资源目录.png');
    }

    .close {
        cursor: pointer;
    }

    .center {
        display: inline-block;
        width: 100%;
        height: 100%;
        text-align: center;
    }

    .text-right {
        display: inline-block;
        width: 90px;
        text-align: right;
        font-size: 18px;
    }

    .kg-img {
        width: 410px;
        padding: 0px 24px 0px 24px;
        padding-bottom: 10px;
    }

    .kg-box {
        width: 100%;
        height: 180px;
        position: relative;
        margin-bottom: 20px;
    }

    /* >>>.el-table__body-wrapper::-webkit-scrollbar {
        width: 16px;
        background: #191a37;
        height: 14px;
    }

    >>>.el-table__body-wrapper::-webkit-scrollbar-track,
    >>>.el-table__body-wrapper::-webkit-scrollbar-thumb {
        border-radius: 999px;
        width: 20px;
        border: 5px solid transparent;
    }

    >>>.el-table__body-wrapper::-webkit-scrollbar-track {
        box-shadow: 1px 1px 5px #191a37 inset;
    }

    >>>.el-table__body-wrapper::-webkit-scrollbar-thumb {
        width: 20px;
        min-height: 20px;
        background-clip: content-box;
        box-shadow: 0 0 0 5px #464f70 inset;
    }

    >>>.el-table__body-wrapper::-webkit-scrollbar-corner {
        background: #191a37;
    } */


    >>>input::-webkit-input-placeholder {
        font-size: 16px;
        color: rgba(255, 255, 255, 0.78) !important;
    }

    >>>.el-input__inner {
        background: rgba(4, 10, 10, 0.58) !important;
        border: 1px solid rgba(23, 34, 38, 0.57);
        color: #fff;
    }

    >>>.el-input__suffix {
        color: #fff;
        font-size: 17px;
    }

    >>>.el-input-number__increase,
    >>>.el-input-number__decrease {
        background: rgba(4, 10, 10, 0.58);
    }

    >>>.el-input-number.is-controls-right .el-input-number__decrease,
    >>>.el-input-number__increase {
        border-left: 1px solid rgba(4, 10, 10, 0.58);
    }

    >>>.el-icon-arrow-up:before,
    >>>.el-icon-arrow-down:before {
        color: #fff;
    }

    >>>.el-input-number.is-controls-right .el-input-number__increase {
        border-bottom: 1px solid rgba(4, 10, 10, 0.58);
    }


    >>>.el-table th.is-leaf,
    >>>.el-table {
        background-color: transparent !important;
        color: #fff;
    }

    >>>.el-table tr {
        background-color: transparent !important;
    }

    >>>.el-slider__button {
        background-color: #2FA5FF;
        border: 2px solid #FFFFFF;
        box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.20);
    }

    >>>.el-table__row td {
        background: transparent !important;
    }
</style>