| | |
| | | hzReplyLogsList: [], |
| | | hasdeptList: [], |
| | | radio: "", |
| | | lastClickedTab: null, |
| | | nums: "", |
| | | proParentList: [], |
| | | tjNumber: "", |
| | |
| | | }, |
| | | |
| | | handleTabClick(tab, event) { |
| | | if(this.lastClickedTab ==null){ |
| | | this.lastClickedTab = tab |
| | | } |
| | | this.Parent.forEach((item) => { |
| | | if (tab.name == item.proId) this.Parentcheck = item; |
| | | }); |
| | |
| | | for (var i = 0; i < this.proParentList.sons.length; i++) { |
| | | //判断新数组是否有这个元素值,没有的话,就把arr[i]给push到新数组newArr中 |
| | | if (this.proParentList.sons[i].proResult == "" || this.proParentList.sons[i].proResult == null) { |
| | | this.radio = this.lastClickedTab.name |
| | | this.$modal.msgError("请填写资料"); |
| | | this.minedis = true |
| | | return |
| | | } else if (this.proParentList.sons[i].proResult.includes(" ")) { |
| | | this.$modal.msgError("请查看是否有空格"); |
| | | this.radio = this.lastClickedTab.name |
| | | this.minedis = true |
| | | return |
| | | } else { |
| | |
| | | this.proName = this.Parentcheck.proName; |
| | | this.nums = tab.name; |
| | | this.proId = tab.name; |
| | | this.lastClickedTab = tab |
| | | this.getParentIdsss(); |
| | | this.getbzlist(); |
| | | } |
| | |
| | | this.proName = this.Parentcheck.proName; |
| | | this.nums = tab.name; |
| | | this.proId = tab.name; |
| | | this.lastClickedTab = tab |
| | | this.getParentIdsss(); |
| | | this.getbzlist(); |
| | | }); |