提交 02081cbf authored 作者: 王天霸's avatar 王天霸

1

上级 60068c10
...@@ -33,6 +33,7 @@ ...@@ -33,6 +33,7 @@
placeholder="属性名称" placeholder="属性名称"
v-model="element.title" v-model="element.title"
maxlength="15" maxlength="15"
@input="updatelist"
show-word-limit show-word-limit
size="small" size="small"
></el-input> ></el-input>
...@@ -41,6 +42,7 @@ ...@@ -41,6 +42,7 @@
<el-input <el-input
type="text" type="text"
placeholder="属性值" placeholder="属性值"
@input="updatelist"
v-model="element.value" v-model="element.value"
maxlength="60" maxlength="60"
show-word-limit show-word-limit
...@@ -457,7 +459,15 @@ ...@@ -457,7 +459,15 @@
title:'', title:'',
value:'' value:''
} }
this.goodsAfterSaleForm.params.push(obj) let arr = JSON.parse(JSON.stringify(this.goodsAfterSaleForm.params));
arr.push(obj)
this.goodsAfterSaleForm.params=arr
this.$forceUpdate()
// console.log(arr)
},
updatelist(){
this.$forceUpdate()
}, },
deleteparameter(index){ deleteparameter(index){
this.goodsAfterSaleForm.params.splice(index, 1) this.goodsAfterSaleForm.params.splice(index, 1)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论