|
|
|
@ -134,7 +134,10 @@
|
|
|
|
|
{{ scope.row[scope.column.property] }} |
|
|
|
|
</div> |
|
|
|
|
<div v-else-if="scope.column.property == 'action'" align="center" > |
|
|
|
|
<a @click="delAttrTable(scope.$index)" align="center">删除</a> |
|
|
|
|
<el-button type="text" size="mini" @click="delAttrTable(scope.$index)" align="center">删除</el-button> |
|
|
|
|
<el-button type="text" size="mini" @click="blur(scope.row)" align="center">同步</el-button> |
|
|
|
|
<!-- <a @click="delAttrTable(scope.$index)" align="center">删除</a>--> |
|
|
|
|
<!-- <a @click="blur(scope.$index,scope.row,scope.column)" align="center">同步</a>--> |
|
|
|
|
</div> |
|
|
|
|
<div v-else align="center"> |
|
|
|
|
<el-input v-model="scope.row[scope.column.property]" align="center" /> |
|
|
|
@ -646,6 +649,18 @@ export default {
|
|
|
|
|
this.getInfo(); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
blur(row) { |
|
|
|
|
// console.log('index',row) |
|
|
|
|
//将第一行的内容进行同步 |
|
|
|
|
this.manyFormValidate.forEach(item=>{ |
|
|
|
|
for (const ele in row){ |
|
|
|
|
//图片/售价/成本价/原价/库存/重量/体积/所需积分 |
|
|
|
|
if (ele=="pic"||ele=="price"||ele=="cost"||ele=="ot_price"||ele=="stock"||ele=="weight"||ele=="volume"||ele=="integral"){ |
|
|
|
|
item[ele]=row[ele]; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
}, |
|
|
|
|
handleTabsEdit(targetName, action) { |
|
|
|
|
if (action === 'add') { |
|
|
|
|
let newTabName = ++this.tabIndex + ''; |
|
|
|
|