|
|
@ -166,13 +166,6 @@ |
|
|
|
<span>{{ scope.row['pm_attribute_valst-pos'] }}</span> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column :label="getColumnName('pm_attribute_valst-attrnr')" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input |
|
|
|
v-model="scope.row['pm_attribute_valst-attrnr']" |
|
|
|
/> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column :label="getColumnName('pm_attribute_valst-descr')" align="center"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input |
|
|
@ -324,15 +317,15 @@ export default { |
|
|
|
this.form.valst.push({ |
|
|
|
'pm_attribute_valst-attrvalue': undefined, |
|
|
|
'pm_attribute_valst-descr': undefined, |
|
|
|
'pm_attribute_valst-attrnr': undefined, |
|
|
|
// 'pm_attribute_valst-attrnr': undefined, |
|
|
|
'pm_attribute_valst-pos': this.form.valst.length + 1 |
|
|
|
}) |
|
|
|
}, |
|
|
|
/** 删除属性 */ |
|
|
|
handleDeleteValst(index) { |
|
|
|
this.form.valst.splice(index, this.form.valst.length - 1) |
|
|
|
this.form.valst.splice(index, 1) |
|
|
|
for (let i = index; i < this.form.valst.length; i++) { |
|
|
|
this.form.valst[i].pos = this.form.valst[i].pos - 1 |
|
|
|
this.form.valst[i]['pm_attribute_valst-pos'] = this.form.valst[i]['pm_attribute_valst-pos'] - 1 |
|
|
|
} |
|
|
|
}, |
|
|
|
// 显示上传图片 |
|
|
|