Browse Source

选择程序bug修复 程序列表关闭时程序未清空

oyq28 5 months ago
parent
commit
da9890ac78

+ 3 - 0
imcs-ui/src/views/zuihou/prepareProductMgr/technologyVersion/components/programForm/components/ProgramncMgr.vue

@@ -364,6 +364,7 @@ export default {
       return {
         id: '',
         resourceIds: '',
+        selectMainPro: '',
         submittedFileName: '',
         workTime: '',
         filePath: '',
@@ -499,8 +500,10 @@ export default {
       	this.toolList = []
       	// 【程序内容】清空
       	this.pgContent = ''
+      	this.selectMainPro = ''
       	// 清空上传附件
       	this.fileList = []
+
     },
     submitForm () {
 	  let idArr = new Array();

+ 22 - 22
imcs-ui/src/views/zuihou/prepareProductMgr/technologyVersion/components/programForm/index.vue

@@ -82,7 +82,7 @@
         </template>
       </el-table-column>
     </el-table>
-				    
+
     <pagination
       v-show="tableData.total > 0"
       :limit.sync="queryParams.size"
@@ -90,7 +90,7 @@
       :total="Number(tableData.total)"
       @pagination="fetch"
     />
-    
+
     <tenant-edit
       ref="edit"
       :dialog-visible="dialog.isVisible"
@@ -103,12 +103,12 @@
       :dialog-visible="tenantViewVisible"
       @close="viewClose"
     />
-    
-    <programnc-mgr 
-		ref="programnc" 
+
+    <programnc-mgr
+		ref="programnc"
     	:dialog-visible="dialogProg.isVisible"
       :title="dialogProg.title"
-    	@close="editProgClose" 
+    	@close="editProgClose"
       @success="editProgSuccess"
     ></programnc-mgr>
     <!--<el-dialog
@@ -117,7 +117,7 @@
 		  width="750px"
 		  :append-to-body="true"
 		>
-		  
+
 		</el-dialog>-->
   </div>
 </template>
@@ -188,7 +188,7 @@
 		  }
 	  },
 	  mounted () {
-	    
+
 	  },
 	  methods: {
 	  	// 【Radio】按钮值变化-事件
@@ -220,7 +220,7 @@
 	  	handleCurrentChange(val) {
 		    this.currentRow = val;
 		  },
-		  
+
 		  // 【程序管理】按钮-事件
 	  	addProgram(){
 	  		this.dialogProg.title = this.$t("prepare.common.addProgram"); // this.$t("common.add")
@@ -229,12 +229,12 @@
 	  		// 打开弹出框
 	  		this.dialogProg.isVisible = true;
 	  	},
-  	
+
 		  // 【程序管理-取消】按钮-事件
 	  	editProgClose(){
 	  		this.dialogProg.isVisible = false;
 	  	},
-	  	
+
 	  	// 【程序管理-确定】按钮-事件
 	  	editProgSuccess(obj, type){
 	  		console.log("【程序管理-确定】按钮: ", obj);
@@ -255,7 +255,7 @@
 	  			this.tableData = arr;
 	  		}
 	  	},
-	  	
+
 	    viewClose () {
 	      this.tenantViewVisible = false
 	    },
@@ -271,7 +271,7 @@
 	    		this.tableData.push(objData)
 	    	}else{
 	    		// console.log("in的值:", objData)
-	    		// console.log("当前选择的数据:", this.currentRow)	    		
+	    		// console.log("当前选择的数据:", this.currentRow)
 	    		this.tableData.map(item => {
 	    			// key是唯一的,
 	    			if(item.key == this.currentRow.key){
@@ -290,24 +290,24 @@
 	    		})
 	    	}
 	    },
-	    
+
 	    onSelectChange (selection) {
 	      this.selection = selection
 	    },
-	    
+
 	    search () {
 	      this.fetch({
 	        ...this.queryParams
 	      })
 	    },
-	    
+
 	    reset () {
 	      this.queryParams = initQueryParams({})
 	      this.$refs.table.clearSort()
 	      this.$refs.table.clearFilter()
 	      this.search()
 	    },
-	    
+
 	    add () {
 	      this.$refs.edit.type = "add"
 	      this.$refs.edit.setTenant(false, this.selectedEq, this.selectedTray)
@@ -318,7 +318,7 @@
 	      this.$refs.table.clearSelection()
 	    },
 	    delete (ids) {
-	    	
+
 	    },
 	    view (row) {
 	      this.$refs.view.setTenant(row)
@@ -342,7 +342,7 @@
 	      }
 	    	this.edit(this.selection[0]);
 	    },
-	    
+
 	    // [NC程序]修改-事件
 	    edit (row) {
 	      this.$refs.programnc.setTenant(row, this.selectedEq)
@@ -351,9 +351,9 @@
 	      // 打开弹出框
 	  	  this.dialogProg.isVisible = true;
 	    },
-	    
+
 	    fetch (params = {}) {
-	    	
+
 	    }
 	  }
 	}
@@ -378,4 +378,4 @@
 	.itemDiv{
 		margin: 10px 0;
 	}
-</style>
+</style>