切换菜单组件更新
Showing
2 changed files
with
30 additions
and
22 deletions
... | @@ -122,6 +122,7 @@ export default { | ... | @@ -122,6 +122,7 @@ export default { |
122 | }, | 122 | }, |
123 | 123 | ||
124 | methods: { | 124 | methods: { |
125 | // 获取右侧选项卡 | ||
125 | getCurrentSelectProps (val) { | 126 | getCurrentSelectProps (val) { |
126 | this.currentSelectProps = val | 127 | this.currentSelectProps = val |
127 | if(this.currentSelectProps.bsmRepair){ | 128 | if(this.currentSelectProps.bsmRepair){ |
... | @@ -158,27 +159,8 @@ export default { | ... | @@ -158,27 +159,8 @@ export default { |
158 | 159 | ||
159 | }, | 160 | }, |
160 | 161 | ||
161 | // 增加补录记录 | ||
162 | addRepairRecord(row){ | ||
163 | let from={ | ||
164 | bsmQlxx:"", | ||
165 | bsmSlsq:this.bsmSlsq, | ||
166 | bsmSldy:this.currentSelectProps.bsmSldy, | ||
167 | operate:"C", | ||
168 | qllx:this.currentSelectProps.qllx | ||
169 | } | ||
170 | if(row){ | ||
171 | from.bsmQlxx=row.bsmQlxx | ||
172 | from.operate="U" | ||
173 | } | ||
174 | |||
175 | addRepairRecord(from).then((res) => { | ||
176 | this.$nextTick(() => { | ||
177 | this.$refs.Menu.getleftMenubl(res.result); | ||
178 | }); | ||
179 | }); | ||
180 | }, | ||
181 | tabset(){ | 162 | tabset(){ |
163 | this.tabName = ''; | ||
182 | this.tabList = [ | 164 | this.tabList = [ |
183 | { | 165 | { |
184 | name: "受理信息", | 166 | name: "受理信息", |
... | @@ -196,7 +178,11 @@ export default { | ... | @@ -196,7 +178,11 @@ export default { |
196 | sort: 2, | 178 | sort: 2, |
197 | }, | 179 | }, |
198 | ]; | 180 | ]; |
199 | this.tabName = 'slxx'; | 181 | |
182 | this.$nextTick(function () { | ||
183 | this.tabName = 'slxx'; | ||
184 | }); | ||
185 | |||
200 | }, | 186 | }, |
201 | 187 | ||
202 | // stepForm(index){ | 188 | // stepForm(index){ |
... | @@ -216,7 +202,28 @@ export default { | ... | @@ -216,7 +202,28 @@ export default { |
216 | } | 202 | } |
217 | } | 203 | } |
218 | this.componentTag = getForm(tabname, this.$route.query.sqywbm); | 204 | this.componentTag = getForm(tabname, this.$route.query.sqywbm); |
219 | } | 205 | }, |
206 | |||
207 | // 增加补录记录 | ||
208 | addRepairRecord(row){ | ||
209 | let from={ | ||
210 | bsmQlxx:"", | ||
211 | bsmSlsq:this.bsmSlsq, | ||
212 | bsmSldy:this.currentSelectProps.bsmSldy, | ||
213 | operate:"C", | ||
214 | qllx:this.currentSelectProps.qllx | ||
215 | } | ||
216 | if(row){ | ||
217 | from.bsmQlxx=row.bsmQlxx | ||
218 | from.operate="U" | ||
219 | } | ||
220 | |||
221 | addRepairRecord(from).then((res) => { | ||
222 | this.$nextTick(() => { | ||
223 | this.$refs.Menu.getleftMenubl(res.result); | ||
224 | }); | ||
225 | }); | ||
226 | }, | ||
220 | }, | 227 | }, |
221 | }; | 228 | }; |
222 | </script> | 229 | </script> | ... | ... |
-
Please register or sign in to post a comment