提交 ebedaa24 authored 作者: yyf's avatar yyf

Merge branch 'bug修改' into develop

...@@ -280,8 +280,8 @@ ...@@ -280,8 +280,8 @@
}, },
/** 新增按钮操作 */ /** 新增按钮操作 */
handleAdd() { handleAdd() {
if(this.total >= 50) { if(this.total >= 500) {
this.$message({ message: '您已经有50个运费模板了,暂时不再支持更多!',type: 'warning'}); this.$message({ message: '您已经有500个运费模板了,暂时不再支持更多!',type: 'warning'});
return; return;
} }
this.reset(); this.reset();
......
...@@ -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
...@@ -450,7 +452,10 @@ ...@@ -450,7 +452,10 @@
} }
} }
}, },
updatelist(){
this.$forceUpdate()
},
// 添加参数
// 添加参数 // 添加参数
addparameter(){ addparameter(){
let obj = { let obj = {
...@@ -460,8 +465,10 @@ ...@@ -460,8 +465,10 @@
this.goodsAfterSaleForm.params.push(obj) this.goodsAfterSaleForm.params.push(obj)
this.$forceUpdate()//点编辑过来的时候,因为多层嵌套组件,照成视图没有更新,调用这个方法,(分析的应该是这样) this.$forceUpdate()//点编辑过来的时候,因为多层嵌套组件,照成视图没有更新,调用这个方法,(分析的应该是这样)
}, },
deleteparameter(index){ deleteparameter(index){
this.goodsAfterSaleForm.params.splice(index, 1) this.goodsAfterSaleForm.params.splice(index, 1)
this.$forceUpdate()
}, },
/** 售后服务数据 初始化 */ /** 售后服务数据 初始化 */
initInfo() { initInfo() {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论