1
guanqb
2024-01-20 f13afcb61276061871b30bce17a7877287df0b67
src/views/activity/components/polygonPlot.vue
@@ -105,7 +105,7 @@
                    <div class="select-image" style="position: relative; display: flex; align-items: center;">
                        <el-button style="margin-top: 0; position: relative; background: transparent; border-color: #fff;"
                            @click="imagesListShow = !imagesListShow">
                            <img :src="curImgUrl" alt
                            <img :src="warningImgUrl" alt
                                style="position: absolute; top: 0; left: 0; right: 0; bottom: 0; margin: auto; z-index: 999; width: 20px; height: 20px;" />
                        </el-button>
                        <Warning-select v-show="imagesListShow" @curClick="curClick"></Warning-select>
@@ -151,9 +151,9 @@
import { deleteSecurityPlot, addSecurityPlot } from '@/api/activity/index.js'
export default {
    inject: ['userInfo', 'activityDeptId'],
    inject: ['userInfo'],
    props: ['showingSecurityId'],
    props: ['showingSecurityId', 'activityDeptId'],
    data () {
        return {
@@ -217,12 +217,17 @@
            imagesListShow: false,
            restPlotType: 6,
            restSelectBox: false,
            curImgUrl: '/img/icon/custom.png'
            curImgUrl: '/img/icon/custom.png',
            warningImgUrl: '/images/jjx3.png'
        }
    },
    methods: {
        curClick (item) {
            this.curImgUrl = item
        curClick (item, type) {
            if (type == 1) {
                this.curImgUrl = item
            } else {
                this.warningImgUrl = item
            }
            this.imagesListShow = false
        },
@@ -407,7 +412,9 @@
                    positionStr = polygonPlotData
                } else if (this.plotSaveType == 5) {
                    positionStr = polygonPlotData
                    if (this.polygonAreaType == 2) iconUrl = { iconUrl: this.curImgUrl }
                    if (this.polygonAreaType == 2) {
                        iconUrl = { iconUrl: this.warningImgUrl }
                    }
                } else if (this.plotSaveType == 6 || this.plotSaveType == 7 || this.plotSaveType == 8) {
                    positionStr = polygonPlotData + ',' + polygonPlotData
                } else if (this.plotSaveType == 10) {