塔塔庙 2019-07-27 17:35 采纳率: 50%
浏览 535
已结题

vue项目中,写了一个下拉列表,但是有报错,请各位大神帮助解决!

下拉列表可以获取值,但是查看f12的console提示有报错。不知道什么原因。
图片说明


{{ item.label }}

export default { data() { return { changeareaffuma1f: [ { value: '千级区M30轴', label: '千级区M30轴' }, { value: '万级区M12轴', label: '万级区M12轴' }, ], methods: { /** * m6affu_1f下拉框 * @param val * @returns {Array} * */ changePlantup1(val) { //console.log(val) this.dateVal = new Date().getTime() if (val == 'year') { this.up1Type = 4 this.m6a1fma=this.changematype(); this.up1TypeString = 'year' this.getDataList() } else if (val == 'date') { this.up1Type = 2 this.m6a1fma=this.changematype(); this.up1TypeString = 'date' this.dateVal = new Date( new Date().getTime() - 3600 * 24 * 1000 ).getTime() this.getDataList() } else if (val == 'datetime') { this.up1Type = 1 this.m6a1fma=this.changematype(); this.dateVal = new Date().getTime(); this.up1TypeString = 'date' this.getDataList() } else { this.up1Type = 3 this.m6a1fma=this.changematype(); this.up1TypeString = 'year' this.getDataList() } }, changematype() { console.log(this.status); return this.status; },

只是部分代码,请帮助解决。谢谢!

  • 写回答

3条回答 默认 最新

  • 塔塔庙 2022-10-22 11:57
    关注

    解决了,很长时间了。

    评论

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 10月22日

悬赏问题

  • ¥15 安装svn网络有问题怎么办
  • ¥15 Python爬取指定微博话题下的内容,保存为txt
  • ¥15 vue2登录调用后端接口如何实现
  • ¥65 永磁型步进电机PID算法
  • ¥15 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥15 latex怎么处理论文引理引用参考文献