补录定位
Showing
2 changed files
with
19 additions
and
10 deletions
... | @@ -133,10 +133,20 @@ export default { | ... | @@ -133,10 +133,20 @@ export default { |
133 | this.getleftMenubl(); | 133 | this.getleftMenubl(); |
134 | }, | 134 | }, |
135 | // 获取右侧菜单 | 135 | // 获取右侧菜单 |
136 | getleftMenubl() { | 136 | getleftMenubl(row) { |
137 | leftMenubl(this.bsmSlsq).then((res) => { | 137 | leftMenubl(this.bsmSlsq).then((res) => { |
138 | this.supplementarylist = res.result; | 138 | this.supplementarylist = res.result; |
139 | if(row){ | ||
140 | this.supplementarylist.forEach((item,index) => { | ||
141 | if(item.bsmRepair==row.bsmRepair){ | ||
142 | this.activeIndex=index | ||
143 | this.unitClick(index) | ||
144 | } | ||
145 | }) | ||
146 | } | ||
139 | }); | 147 | }); |
148 | |||
149 | |||
140 | }, | 150 | }, |
141 | handleNodeClick(data, node, elem) { | 151 | handleNodeClick(data, node, elem) { |
142 | this.$parent.loadComponent(this.currentSelectProps, data); | 152 | this.$parent.loadComponent(this.currentSelectProps, data); |
... | @@ -154,10 +164,10 @@ export default { | ... | @@ -154,10 +164,10 @@ export default { |
154 | // this.$parent.getdjblist() | 164 | // this.$parent.getdjblist() |
155 | }, | 165 | }, |
156 | // 定位到该条补录记录 | 166 | // 定位到该条补录记录 |
157 | orientation(){ | 167 | // orientation(){ |
158 | // this.activeIndex="2" | 168 | // // this.activeIndex="2" |
159 | this.unitClick(0) | 169 | // this.unitClick(0) |
160 | }, | 170 | // }, |
161 | // 删除补录记录 | 171 | // 删除补录记录 |
162 | handleDel(row) { | 172 | handleDel(row) { |
163 | this.$confirm("此操作将永久删除该条补录记录, 是否继续?", "提示", { | 173 | this.$confirm("此操作将永久删除该条补录记录, 是否继续?", "提示", { | ... | ... |
... | @@ -160,7 +160,6 @@ export default { | ... | @@ -160,7 +160,6 @@ export default { |
160 | 160 | ||
161 | // 增加补录记录 | 161 | // 增加补录记录 |
162 | addRepairRecord(row){ | 162 | addRepairRecord(row){ |
163 | this.$refs.Menu.orientation() | ||
164 | let from={ | 163 | let from={ |
165 | bsmQlxx:"", | 164 | bsmQlxx:"", |
166 | bsmSlsq:this.bsmSlsq, | 165 | bsmSlsq:this.bsmSlsq, |
... | @@ -170,13 +169,13 @@ export default { | ... | @@ -170,13 +169,13 @@ export default { |
170 | } | 169 | } |
171 | if(row){ | 170 | if(row){ |
172 | from.bsmQlxx=row.bsmQlxx | 171 | from.bsmQlxx=row.bsmQlxx |
172 | from.operate="U" | ||
173 | } | 173 | } |
174 | 174 | ||
175 | addRepairRecord(from).then((res) => { | 175 | addRepairRecord(from).then((res) => { |
176 | 176 | this.$nextTick(() => { | |
177 | if (res.code === 200) { | 177 | this.$refs.Menu.getleftMenubl(res.result); |
178 | alert("补录成功") | 178 | }); |
179 | } | ||
180 | }); | 179 | }); |
181 | }, | 180 | }, |
182 | tabset(){ | 181 | tabset(){ | ... | ... |
-
Please register or sign in to post a comment