| | |
| | | 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 { |
| | |
| | | }, |
| | | loadData() { |
| | | let params = this.getQueryParams(); |
| | | if (this.nodeSelected && this.nodeSelected.key !== '-1') { |
| | | if (this.nodeSelected) { |
| | | // 加载选中节点的子类 |
| | | params.classifyId = this.nodeSelected.key; |
| | | this.loading = true; |
| | |
| | | }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) => { |
| | |
| | | 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 |