addWoolType:function(index){
var wooltype = this.$data.wooltype;
wooltype.splice(index+1,0,{})
},
removeWoolType:function(index){
var wooltype = this.$data.wooltype;
if ( wooltype.length != 1) {
wooltype.splice(index,1)
/*this.$data.woolNum = 0
for (var i = 0; i < wooltype.length; i++) {
if ( wooltype[i].woolNameCh ) { this.$data.woolNum++ }
}*/
}else{
this.$data.wooltype = [{}]
fromValidationTip($('.woolTypeBox .spinner-down'),'此最后一行数据,已为您清除该行数据',4,'red')
}
}
欢迎加群交流:897724635 更多视频教程资源分享给大家