// 方法2:
if(this.ruleForm.store_install_fees.length == 0){
this.ruleForm.store_install_fees = Object.values(this.form.tableData);
}else{
this.ruleForm.store_install_fees = Object.values(this.ruleForm.store_install_fees);
}
// console.log(this.ruleForm.store_install_fees)
let infoText = this.ruleForm.store_install_fees.every(o=>Object.keys(o).every(i=>o[i]))
// console.log(infoText)
if(infoText){
this.ruleForm.store_install_fees.push({
name: "",//项目报价
sipm_id: "",//计价方式
price:"",//单价
})
}else{
this.$message.error('请填写完整收费标准');
}
console.log(this.ruleForm.store_install_fees)
// 方法1
// var _this=this;
// var putText=true;
// var tableData=[];
// if(this.ruleForm.store_install_fees.length == 0){
2021-05-21
最新推荐文章于 2024-09-16 08:47:17 发布
本文回顾了2021年JavaScript领域的重大进展,包括新的语法特性、框架更新和最佳实践。深入探讨了ES2021的亮点,如逻辑运算符的空值合并和可选链,以及Vue3和React18的重要改进。同时,文章还讨论了如何利用这些新特性提升应用程序的性能和开发效率。
摘要由CSDN通过智能技术生成