Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web
Showing
1 changed file
with
39 additions
and
17 deletions
... | @@ -18,7 +18,8 @@ | ... | @@ -18,7 +18,8 @@ |
18 | <script> | 18 | <script> |
19 | import { getBdcqljqtsx } from "@/api/djbDetail.js"; | 19 | import { getBdcqljqtsx } from "@/api/djbDetail.js"; |
20 | import { loadTreeData, getNode } from "./djbFrameData.js"; | 20 | import { loadTreeData, getNode } from "./djbFrameData.js"; |
21 | import { searchTaskToDo } from "@/api/workflow/search.js"; | 21 | // import { searchTaskToDo } from "@/api/workflow/search.js"; |
22 | import { getDjbBysearch } from "@/api/search.js"; | ||
22 | import { | 23 | import { |
23 | leftMenu | 24 | leftMenu |
24 | } from "@/api/workFlow.js"; | 25 | } from "@/api/workFlow.js"; |
... | @@ -70,31 +71,52 @@ | ... | @@ -70,31 +71,52 @@ |
70 | */ | 71 | */ |
71 | getdata () { | 72 | getdata () { |
72 | this.queryForm = { | 73 | this.queryForm = { |
73 | bdcdyh: this.getCaption(window.location.href), | 74 | bdcdyh: this.getCaption(window.location.href) |
74 | currentPage: 1, | 75 | |
75 | djlx: "", | ||
76 | pageSize: 10, | ||
77 | qllx: "", | ||
78 | ywh: "", | ||
79 | ywly: "" | ||
80 | } | 76 | } |
81 | 77 | ||
78 | // if (this.getCaption(window.location.href)) { | ||
79 | // this.$startLoading(); | ||
80 | // searchTaskToDo({ | ||
81 | // ...this.queryForm, | ||
82 | // }).then((res) => { | ||
83 | // if (res.code === 200) { | ||
84 | // this.$endLoading(); | ||
85 | // let { records } = res.result; | ||
86 | // if(records.length){ | ||
87 | // console.log("true",records.length); | ||
88 | // this.loadBdcdylist(records[0].bsmSlsq, records[0].bestepid); | ||
89 | |||
90 | // }else{ | ||
91 | // console.log("false",records.length); | ||
92 | // this.treedata=[] | ||
93 | |||
94 | |||
95 | // } | ||
96 | |||
97 | // } | ||
98 | // }); | ||
99 | // }else{ | ||
100 | // this.treedata=[] | ||
101 | // } | ||
102 | |||
82 | if (this.getCaption(window.location.href)) { | 103 | if (this.getCaption(window.location.href)) { |
83 | this.$startLoading(); | 104 | this.$startLoading(); |
84 | searchTaskToDo({ | 105 | getDjbBysearch({ |
85 | ...this.queryForm, | 106 | ...this.queryForm, |
86 | }).then((res) => { | 107 | }).then((res) => { |
87 | if (res.code === 200) { | 108 | if (res.code === 200) { |
88 | 109 | this.$endLoading(); | |
89 | let { records } = res.result; | 110 | let { records } = res.result; |
90 | console.log("records",records); | 111 | if(records.length){ |
91 | if(records){ | 112 | console.log("true",records.length); |
92 | console.log("false"); | 113 | this.loadBdcdylist(records[0].bdcdyh, records[0].bdcdyid); |
93 | this.loadBdcdylist(records[0].bsmSlsq, records[0].bestepid); | 114 | |
94 | this.$endLoading(); | ||
95 | }else{ | 115 | }else{ |
96 | this.$endLoading(); | 116 | console.log("false",records.length); |
97 | this.treedata=[] | 117 | this.treedata=[] |
118 | |||
119 | |||
98 | } | 120 | } |
99 | 121 | ||
100 | } | 122 | } | ... | ... |
-
Please register or sign in to post a comment