Browse Source

PM attribute

master
weiwei 4 years ago
parent
commit
35b97cc3e9
1 changed files with 3 additions and 10 deletions
  1. +3
    -10
      src/views/equip/basic/attribute.vue

+ 3
- 10
src/views/equip/basic/attribute.vue View File

@ -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
}
},
//


Loading…
Cancel
Save