fei.wang
2025-04-18 11f6acee504c77a8919a4e0ddfe3e70a746e3522
src/views/dpdv/dpdv.vue
@@ -38,9 +38,11 @@
    <el-radio class="title_left_ndmm" :label="4" >北位移</el-radio>
    <el-radio class="title_left_tdmm" :label="8" >天位移</el-radio>
  </el-radio-group> -->
                <BarChart :chart-data="barChartData" width="530px" height="900px" v-if="barChartData.tagid != ''"
                    style="position: absolute;top: 70px;" />
  <div class="chart-container" style="position: absolute;top: 70px;height: 870px; overflow-y: auto;">
    <BarChart :chart-data="barChartData" width="530px" height="200%" v-if="barChartData.tagid != ''" />
  </div>
                <!-- <BarChart :chart-data="barChartData" width="530px" height="900px" v-if="barChartData.tagid != ''"
                    style="position: absolute;top: 70px;overflow-y: auto;" /> -->
                <!-- <BarChart /> -->
                <!-- <span class="title_left_edmm">东位移</span>
                <span >北位移</span>
@@ -513,6 +515,7 @@
    },
    data() {
        return {
            height:'900px',
            month: '',
            barChartData: {
                tagid: '',
@@ -588,8 +591,6 @@
    },
    created() {
        console.log(333333333);
        this.fetchData()
        this.monitordata()
    },
@@ -597,8 +598,6 @@
        this.timeFn();
        const params = { username: localStorage.getItem('username'), phone: localStorage.getItem('phone') };
        alldevice(params).then(response => {
            console.log(response.data.dataList);
            this.initMap(response.data.dataList, response.data.view)
        })
@@ -729,17 +728,13 @@
            this.listLoading = true
            const params1 = { username: localStorage.getItem('username'), phone: localStorage.getItem('phone') };
            getEquipmentmonitor(params1).then(response => {
                console.log(4444444);
                this.list = response.data
                console.log(response);
                this.listLoading = false
            })
            const params2 = { username: localStorage.getItem('username'), phone: localStorage.getItem('phone') };
            getEquipmenttwo(params2).then(response => {
                console.log(5555555555);
                this.processBarModel = []
                // this.list = response.data
                var json = {
                    edmm: [],
                    ndmm: [],
@@ -760,8 +755,14 @@
                    json.winmax = response.data[index].winmax
                    json.winmin = response.data[index].winmin
                }
                this.barChartData = json
                console.log(response);
                // setTimeout(() => {
                    // this.height= '100%'
                    this.barChartData = json
            // }, 3000);
            setTimeout(() => {
                    this.height= '100%'
                    // this.barChartData = json
            }, 3000);
            })
            // getList(this.listQuery).then(response => {
@@ -835,11 +836,8 @@
            //获取当前年月日
            const dateYear = formatTime1(new Date(), "yyyy-MM-dd");
            const params = { date1: dateYear, date2: newDate, username: localStorage.getItem('username') || '', tagid: scope.row.tagid };
            console.log(params);
            handlechartupdate3(params).then(response => {
                this.lineChartData = response.data
                console.log(response.data);
                this.dialogVisible = true
            })
            this.resetTemp()