在Vue Antd中,可以通过在页面加载时发送请求来将queryParam.postingDate_end传递到后台。具体实现步骤如下:

  1. 在页面加载时,调用一个方法来发送请求。可以使用Vue的生命周期钩子函数mounted来实现。
mounted() {
  this.sendRequest();
},
  1. 在发送请求的方法中,将queryParam.postingDate_end作为参数传递到后台。
methods: {
  sendRequest() {
    // 发送请求的逻辑
    // 使用axios或其他请求库发送请求
    axios.post('/your-backend-url', {
      postingDateEnd: this.queryParam.postingDate_end
    }).then(response => {
      // 处理请求成功的逻辑
    }).catch(error => {
      // 处理请求失败的逻辑
    });
  }
}

在后台接收请求的接口中,可以通过postingDateEnd参数获取到queryParam.postingDate_end的值。

注意,上述代码中的/your-backend-url需要替换为你自己的后台接口地址。另外,需要引入axios库来发送请求,你也可以使用其他的请求库

vue antd 在页面加载的时候就把j-date placeholder=请选择结束日期 class=query-group-cust v-model=queryParampostingDate_end defaultValue=queryParampostingDate_endj-date中的queryParampostingDate_end传递到后台

原文地址: https://www.cveoy.top/t/topic/ibQs 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录