ZBLOG

lastQuery()console.log(this.rowData)this.loading = true console.log(this.rowData.storeCode)let data ={ range:{ start: 1, length: 10, this.$httpacm .post(/gw/api/acm-service/limitManage/applyForBatchPros ingQuota?objectKey=${this.rowData.objectKey}...

在你的代码中,${this.rowData.storeCode}是一个模板字符串,用于将this.rowData.storeCode的值插入到字符串中。如果${this.rowData.storeCode}在参数里面显示为乱码,可能是因为编码或转义问题导致的。你可以尝试使用encodeURIComponent函数对storeCode进行编码,确保它被正确传递。

修改后的代码示例:

let storeCode = encodeURIComponent(this.rowData.storeCode);
let data = {
  range: {
    start: 1,
    length: 10
  }
};

this.$httpacm.post(`/gw/api/acm-service/limitManage/applyForBatchProsingQuota?objectKey=${this.rowData.objectKey}&storeCode=${storeCode}&merchantCode=${this.rowData.merchantCode}`, data)
.then(res => {
  if (res.data.code === 200) {
    this.dataSource = res.data.data;
    this.pagination.total = res.data.rowCount;
  } else {
    this.$message.error(res.data.msg);
  }
})
.catch(e => {
  this.$message.error(e);
})
.finally(() => {
  this.loading = false;
});

这样应该能够正确传递和显示storeCode的值。如果问题仍然存在,请进一步检查接口和数据编码相关的设置。


内容由零声教学AI助手提供,问题来源于学员提问

本站部分文章来源于网络,版权归原作者所有,如有侵权请联系站长删除。
转载请注明出处:https://golang.0voice.com/?id=11033

分享:
扫描分享到社交APP
上一篇
下一篇
发表列表
游客 游客
此处应有掌声~
评论列表

还没有评论,快来说点什么吧~

联系我们

在线咨询: 点击这里给我发消息

微信号:3007537140

上班时间: 10:30-22:30

关注我们
x

注册

已经有帐号?