修改文件路径:src/views/store/creatStore/index.vue
keyupEvent(key, val, index, num){
var re = /([0-9]+.[0-9]{2})[0-9]*/;
switch (num) {
case 1:
this.oneFormBatch[index][key] = key === 'stock' ? parseInt(val) : this.$set(this.oneFormBatch[index], key, val.replace(re,"$1"))
break;
case 2:
this.OneattrValue[index][key] = key === 'stock' ? parseInt(val) : this.$set(this.OneattrValue[index], key, val.replace(re,"$1"))
break;
default:
this.ManyAttrValue[index][key] = key === 'stock' ? parseInt(val) : this.$set(this.ManyAttrValue[index], key, val.replace(re,"$1"))
break;
}
},
修改调用的位置 总共有三处
@keyup.native='keyupEvent(iii, scope.row[iii],scope.$index, 3)
{{item.user_info.nickname ? item.user_info.nickname : item.user_name}}
作者 管理员 企业
{{itemf.name}}
{{itemc.user_info.nickname}}
{{itemc.user_name}}
回复 {{itemc.comment_user_info.nickname}}
{{itemf.name}}