下拉列表可以获取值,但是查看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;
},
只是部分代码,请帮助解决。谢谢!