Browse Source

2022-01-26

王克恕 3 years ago
parent
commit
1ab0aea9bd
1 changed files with 15 additions and 2 deletions
  1. 15 2
      imcs-ui/src/views/zuihou/prepareProductMgr/bomMgr/Index.vue

+ 15 - 2
imcs-ui/src/views/zuihou/prepareProductMgr/bomMgr/Index.vue

@@ -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({