From 606710d8ccce10af120ad205eff4c48f319fab2a Mon Sep 17 00:00:00 2001 From: xd <844539747@qq.com> Date: Wed, 26 Jun 2024 16:37:08 +0800 Subject: [PATCH] '123123' --- ruoyi-ui/src/views/redBook/productSelect.vue | 64 ++++++++++---------- 1 file changed, 32 insertions(+), 32 deletions(-) diff --git a/ruoyi-ui/src/views/redBook/productSelect.vue b/ruoyi-ui/src/views/redBook/productSelect.vue index a33d033..113f7e6 100644 --- a/ruoyi-ui/src/views/redBook/productSelect.vue +++ b/ruoyi-ui/src/views/redBook/productSelect.vue @@ -386,34 +386,34 @@ }, //目录选择 selModelTag(item) { - this.expandedIndex = -1; - this.showRemarkList = false, - this.remarkList = [], + this.expandedIndex = -1;//备注内容收起 + this.showRemarkList = false,//备注内容清空隐藏 + this.remarkList = [], - this.selectedXinghTag = ''; + this.selectedXinghTag = '';//清空选中的型号 this.showXinghList = false, - this.xinghList = [], + this.xinghList = [], - this.selectedZlTag = ''; + this.selectedZlTag = '';//清空选中的子类 this.showZlList = false, - this.ZlList = [], + this.ZlList = [], - this.selectedYsxhTag = ''; + this.selectedYsxhTag = '';//清空选中的衍生型号 this.showYsxhList = false, - this.ysxhList = [], + this.ysxhList = [], - this.selectedJmTag = ''; + this.selectedJmTag = '';//清空选中的截面 this.showJmList = false, - this.jmList = [], + this.jmList = [], - this.searchResultCurrentPage = 1, - this.searchResultPageSize = 10, - this.searchResultData = [], + this.searchResultCurrentPage = 1,//清空结果列表数据 + this.searchResultPageSize = 10, + this.searchResultData = [], - this.selectedModelTag = item.name_0; + this.selectedModelTag = item.name_0;//设置选中的目录 //显示备注信息 this.productRemarkList(item.uid_0) - //显示型号 + //显示型号信息 this.productXinghList(item.uid_0) }, //获取目录 @@ -440,24 +440,24 @@ }, //型号选择 selXinghTag(item) { - this.selectedZlTag = ''; + this.selectedZlTag = '';//清空选中的子类 this.showZlList = false, this.ZlList = [], - this.selectedYsxhTag = ''; + this.selectedYsxhTag = '';//清空选中的衍生型号 this.showYsxhList = false, this.ysxhList = [], - this.selectedJmTag = ''; + this.selectedJmTag = '';//清空选中的截面 this.showJmList = false, this.jmList = [], - this.searchResultCurrentPage = 1, + this.searchResultCurrentPage = 1,//清空结果列表数据 this.searchResultPageSize = 10, this.searchResultData = [], - this.selectedXinghUid = item.uid_0 - this.selectedXinghTag = item.name_0; + this.selectedXinghUid = item.uid_0 //设置选中的型号uid + this.selectedXinghTag = item.name_0;//设置选中的型号名称 //判断是否为父节点,如果有说明下面还有子类显示,如果没有则直接显示衍生型号 this.judgeparent(item) }, @@ -467,7 +467,7 @@ judgeparent(this.params).then(response => { if (response) {//存在子类 this.productZlList(item.uid_0) - } else {//判断是否存在衍生型号 + } else {//不存在子类,则继续判断是否存在衍生型号 this.productYsxhListCheck(item.uid_0, item.name_0) } }); @@ -505,15 +505,15 @@ //子类选择 selZlTag(item) { - this.selectedYsxhTag = ''; + this.selectedYsxhTag = '';//清空选中的衍生型号 this.showYsxhList = false, this.ysxhList = [], - this.selectedJmTag = ''; + this.selectedJmTag = '';//清空选中的截面 this.showJmList = false, this.jmList = [], - this.searchResultCurrentPage = 1, + this.searchResultCurrentPage = 1,//清空结果列表数据 this.searchResultPageSize = 10, this.searchResultData = [], @@ -524,12 +524,12 @@ //衍生型号选择 selYsxhTag(item) { - this.selectedJmTag = ''; + this.selectedJmTag = '';//清空选中的截面 this.selectedYsxhUid = item.uid_0; this.showJmList = false, this.jmList = [], - this.searchResultCurrentPage = 1, + this.searchResultCurrentPage = 1,//清空结果列表数据 this.searchResultPageSize = 10, this.searchResultData = [], @@ -560,11 +560,11 @@ selJmTag(item) { this.selectedJmTag = item.section; - this.searchResultCurrentPage = 1, - this.searchResultPageSize = 10, - this.searchResultData = [], + this.searchResultCurrentPage = 1,//清空结果列表数据 + this.searchResultPageSize = 10, + this.searchResultData = [], - this.searchResultLoading = true; + this.searchResultLoading = true; this.searchData(this.selectedYsxhUid, item.section) },