From 135b5b2e497514dc4456e33b0db0fe5e7fa4e62f Mon Sep 17 00:00:00 2001 From: cuijian <cuijian@xalxzn.com> Date: 星期一, 11 八月 2025 09:11:19 +0800 Subject: [PATCH] 现场问题处理 --- src/views/tms/modules/baseTools/BaseToolsListRight.vue | 31 +++++++++++++++++-------------- 1 files changed, 17 insertions(+), 14 deletions(-) diff --git a/src/views/tms/modules/baseTools/BaseToolsListRight.vue b/src/views/tms/modules/baseTools/BaseToolsListRight.vue index b2285a4..e8ae474 100644 --- a/src/views/tms/modules/baseTools/BaseToolsListRight.vue +++ b/src/views/tms/modules/baseTools/BaseToolsListRight.vue @@ -406,22 +406,23 @@ this.$bus.$emit('queryTreeData') //鍒锋柊宸︿晶鏍� }, - onSelectChange(selectedRowKeys) { + onSelectChange(selectedRowKeys,selectionRows) { this.selectedRowKeys = selectedRowKeys; + this.selectionRows = selectionRows; //閫氳繃id鏌ヨ绠$悊鍙傛暟鍜屽弬鏁版暟鎹� - getAction(this.url.queryParaByToolCode, { toolCode: this.selectedRowKeys[0],paraTypeFlag:this.paraTypeFlag}).then((res) => { + getAction(this.url.queryParaByToolCode, { toolCode: this.selectedRowKeys[0],paraTypeFlag:this.selectionRows[0].paraTypeFlag}).then((res) => { if (res.success) { - if(this.paraTypeFlag === "1"){ + if(this.selectionRows[0].paraTypeFlag === "1"){ this.$refs.paraCommonToolList.getPara(res.result); - }else if(this.paraTypeFlag === "2"){ + }else if(this.selectionRows[0].paraTypeFlag === "2"){ this.$refs.paraHoleToolsList.getPara(res.result); - }else if(this.paraTypeFlag === "3"){ + }else if(this.selectionRows[0].paraTypeFlag === "3"){ this.$refs.paraThreadingToolList.getPara(res.result); - }else if(this.paraTypeFlag === "4"){ + }else if(this.selectionRows[0].paraTypeFlag === "4"){ this.$refs.paraMillToolList.getPara(res.result); - }else if(this.paraTypeFlag === "5"){ + }else if(this.selectionRows[0].paraTypeFlag === "5"){ this.$refs.paraTurningToolsList.getPara(res.result); - }else if(this.paraTypeFlag === "6"){ + }else if(this.selectionRows[0].paraTypeFlag === "6"){ this.$refs.paraBladeList.getPara(res.result); } } else { @@ -519,7 +520,7 @@ }, loadData() { let params = this.getQueryParams(); - if (this.nodeSelected && this.nodeSelected.key !== '-1') { + if (this.nodeSelected) { // 鍔犺浇閫変腑鑺傜偣鐨勫瓙绫� params.classifyId = this.nodeSelected.key; this.loading = true; @@ -537,10 +538,11 @@ }else if(this.paraTypeFlag === '6'){ httpUrl = this.url.paraBladeList }else{ - this.dataSource = []; - this.clearPara() - this.loading = false; - return + //this.dataSource = []; + // this.clearPara() + // this.loading = false; + // return + httpUrl = this.url.paraCommonToolList } getAction(httpUrl, params) .then((res) => { @@ -549,7 +551,8 @@ this.ipagination.total = res.result.total //榛樿閫変腑绗竴鏉℃暟鎹� this.selectedRowKeys[0] = res.result.records[0].id - this.onSelectChange(this.selectedRowKeys) + this.selectionRows[0] = res.result.records[0] + this.onSelectChange(this.selectedRowKeys,this.selectionRows) } else { //this.$message.warning("璇烽�夋嫨鍙跺瓙鑺傜偣杩涜鏌ヨ"); this.ipagination.total = 0 -- Gitblit v1.9.3