| | |
| | | this.submitFormchanck(); |
| | | } |
| | | }, |
| | | submitFormchanck() { |
| | | this.loading = true; |
| | | getfindTj(this.form).then((response) => { |
| | | if (response.data != []) { |
| | | this.tableData = response.data; |
| | | this.tableData.forEach((item1) => { |
| | | this.tjnumber = item1.tjNumber; |
| | | }); |
| | | if (this.tableData.length != 0) { |
| | | this.$nextTick(() => { |
| | | this.$refs.multipleTable.toggleRowSelection( |
| | | this.tableData[0], |
| | | true |
| | | ); |
| | | }); |
| | | } else { |
| | | this.$refs.multipleTable.clearSelection(); |
| | | } |
| | | this.tableData.forEach((item) => { |
| | | if (item.isAdditionCollectFees === "N") { |
| | | item.isAdditionCollectFees = "否"; |
| | | } else { |
| | | item.isAdditionCollectFees = "是"; |
| | | } |
| | | if (item.tjType === "2") { |
| | | item.tjType = "个人"; |
| | | } else { |
| | | item.tjType = "团队"; |
| | | } |
| | | if (item.sex === "0") { |
| | | item.sex = "男"; |
| | | } else if (item.sex === "1") { |
| | | item.sex = "女"; |
| | | } else { |
| | | item.sex = "未知"; |
| | | } |
| | | submitFormchanck() { |
| | | this.loading = true; |
| | | getfindTj(this.form) |
| | | .then((response) => { |
| | | if (response.data != []) { |
| | | this.tableData = response.data; |
| | | this.tableData.forEach((item1) => { |
| | | this.tjnumber = item1.tjNumber; |
| | | }); |
| | | if (this.tableData.length != 0) { |
| | | this.$nextTick(() => { |
| | | this.$refs.multipleTable.toggleRowSelection( |
| | | this.tableData[0], |
| | | true |
| | | ); |
| | | }); |
| | | } else { |
| | | this.tableData = []; |
| | | this.disabled = 1; |
| | | this.$refs.multipleTable.clearSelection(); |
| | | } |
| | | |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | this.tableData.forEach((item) => { |
| | | if (item.isAdditionCollectFees === "N") { |
| | | item.isAdditionCollectFees = "否"; |
| | | } else { |
| | | item.isAdditionCollectFees = "是"; |
| | | } |
| | | if (item.tjType === "2") { |
| | | item.tjType = "个人"; |
| | | } else { |
| | | item.tjType = "团队"; |
| | | } |
| | | if (item.sex === "0") { |
| | | item.sex = "男"; |
| | | } else if (item.sex === "1") { |
| | | item.sex = "女"; |
| | | } else { |
| | | item.sex = "未知"; |
| | | } |
| | | }); |
| | | } else { |
| | | this.tableData = []; |
| | | this.disabled = 1; |
| | | } |
| | | this.loading = false; |
| | | }) |
| | | .catch((error) => { |
| | | console.error("Error:", error); |
| | | this.loading = false; |
| | | }); |
| | | }, |
| | | //重置按钮 |
| | | resetQuery() { |
| | | this.$tab.refreshPage(); |