| | |
| | | } |
| | | }, |
| | | |
| | | 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.selectionRows[0].toolCodeId,paraTypeFlag:this.paraTypeFlag}).then((res) => { |
| | | if (res.success) { |
| | | if(this.paraTypeFlag === "1"){ |
| | | this.$refs.paraCommonToolList.getPara(res.result); |
| | |
| | | this.$message.warning(res.message); |
| | | } |
| | | }) |
| | | getAction(this.url.queryByToolCode, { toolCode: this.selectedRowKeys[0]}).then((res) => { |
| | | getAction(this.url.queryByToolCode, { toolCode: this.selectionRows[0].toolCodeId}).then((res) => { |
| | | if (res.success) { |
| | | this.$refs.toolsConfigPropertyList.getPara(res.result); |
| | | } else { |
| | |
| | | this.ipagination.total = res.result.total |
| | | //默认选中第一条数据 |
| | | this.selectedRowKeys[0] = res.result.records[0].id |
| | | this.onSelectChange(this.selectedRowKeys) |
| | | this.selectionRows = res.result.records |
| | | this.onSelectChange(this.selectedRowKeys,this.selectionRows) |
| | | } else { |
| | | //this.$message.warning("请选择叶子节点进行查询"); |
| | | this.ipagination.total = 0 |