| | |
| | | watch: { |
| | | useWhere() { |
| | | var d = []; |
| | | // console.log("********6666********" + JSON.stringify(this.useWhere)) |
| | | // console.log(this.together, "fromWhere"); |
| | | for (var i in this.together) { |
| | | if (this.useWhere == this.together[i].fromWhere) { |
| | |
| | | } |
| | | } |
| | | this.cardData = d; |
| | | console.log(this.cardData); |
| | | // console.log(this.cardData); |
| | | } else { |
| | | this.see = true; |
| | | // this.openS(); |
| | | this.getPatrolGroupTree(); |
| | | this.obj0.noFraudType = this.data[0].type |
| | | this.obj0.noFraudType = this.useWhere |
| | | console.table(this.data); |
| | | console.log(this.data[0].type); |
| | | // console.log(this.data[0].type); |
| | | } |
| | | |
| | | if (this.useWhere == "close") { |
| | |
| | | this.openS(this.choseType, this.cardData); |
| | | }, |
| | | openS(chose, datas) { |
| | | console.log("****111*****" + JSON.stringify(chose)) |
| | | console.log("****222*****" + JSON.stringify(datas)) |
| | | var n = chose || this.useWhere; |
| | | this.data = datas || this.data; |
| | | for (var k in this.data) { |
| | |
| | | type: 2 |
| | | } |
| | | patrolGroupTree(data).then((res) => { |
| | | console.log("*****res********" + JSON.stringify(res)) |
| | | // console.log("*****res********" + JSON.stringify(res)) |
| | | this.patrolGroup = res.data.data |
| | | }); |
| | | }, |