How to assign a value to data after VUE gets the data

problem description

if you look at the picture, you won"t be able to get the data. I don"t know how to ask God to save me

.

the environmental background of the problems and what methods you have tried

clipboard.png

related codes

/ / Please paste the code text below (do not replace the code with pictures)
new Vue ({

        el: "-sharpa-weather-waring",
        data: {
            weatherWaring:null,
            v_time_from2: null,
            v_time_toto2: null
        },
        methods: {
            Get_YJweather: function() {
                this.v_time_from2 = this.$refs.v_time_from.value;
                this.v_time_toto2 = this.$refs.v_time_toto.value;
                mui.ajax("http://lbzhywpt.portdalian.com:999/WeatherHandler.ashx?method=Get_YJweather", {
                    data: {
                        timefrom: this.v_time_from2,
                        timeto: this.v_time_toto2
                    },
                    dataType: "json", //json
                    type: "post", //HTTP
                    timeout: 10000, //10;
                    success: function(result) {
                        console.log(result);
                        this.weatherWaring = result;
                        console.log(weatherWaring);
                    },
                    error: function(xhr, type, errorThrown) {}
                });
            },
        }
    });

what result do you expect? What is the error message actually seen?

Jan.08,2022

this.weatherWaring = result;
your this here points to mui, so assignment failed;

methods: {
   Get_YJweather: function() {
        var _this = this;
        this.v_time_from2 = this.$refs.v_time_from.value;
        this.v_time_toto2 = this.$refs.v_time_toto.value;
        mui.ajax('http://lbzhywpt.portdalian.com:999/WeatherHandler.ashx?            
          method=Get_YJweather', {
            data: {
                timefrom: this.v_time_from2,
                timeto: this.v_time_toto2
            },
            dataType: 'json', //json
            type: 'post', //HTTP
            timeout: 10000, //10;
            success: function(result) {
                console.log(result);
                _this .weatherWaring = result;
                console.log(weatherWaring);
            },
            error: function(xhr, type, errorThrown) {}
        });
     }
}
Menu