|
@@ -136,7 +136,7 @@
|
|
|
<i
|
|
|
class="el-icon-edit table-operation"
|
|
|
style="color: #2db7f5;"
|
|
|
- @click="edit(row)"
|
|
|
+ @click="editRow(row)"
|
|
|
/>
|
|
|
</el-tooltip>
|
|
|
<el-tooltip class="item" :content='$t("common.delete")' effect="dark" placement="top-start">
|
|
@@ -510,13 +510,26 @@ export default {
|
|
|
}
|
|
|
// 查询数据
|
|
|
bomMgrApi.get(this.selection[0]).then(res => {
|
|
|
- console.log("根据id,查询详情BOM:", res.data);
|
|
|
+ console.log("根据id,查询详情BOM1111:", res.data);
|
|
|
res = res.data
|
|
|
if(res.isSuccess){
|
|
|
this.edit(res.data);
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
+ // Table的操作-修改
|
|
|
+ editRow(row){
|
|
|
+ // 查询数据
|
|
|
+ bomMgrApi.get(row).then(res => {
|
|
|
+ console.log("根据id,查询详情BOM22222:", res.data);
|
|
|
+ res = res.data
|
|
|
+ if(res.isSuccess){
|
|
|
+ this.edit(res.data);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
+
|
|
|
edit (row) {
|
|
|
if (row.readonly) {
|
|
|
this.$message({
|