Commit 0cf3eb039fd95639b2f0481babba4bcb8b8720f0
1 parent
febcd9a1
Exists in
master
fix:班级修复
Showing
2 changed files
with
4 additions
and
3 deletions
Show diff stats
src/main.js
| 1 | 1 | import Vue from 'vue' |
| 2 | -import { Popup, Toast, Picker, Tag, Tab, Tabs, Area, Search, Swipe, SwipeItem, Cell, List, Collapse, CollapseItem, Button, Field, Icon, Sticky, DropdownMenu, DropdownItem, Rate, Calendar, Checkbox, Empty, Lazyload, Radio, RadioGroup, CellGroup, Dialog, CheckboxGroup, NavBar, PullRefresh } from 'vant'; | |
| 2 | +import { Popup, Toast, Picker, Tag, Tab, Tabs, Area, Search, Swipe, SwipeItem, Cell, List, Collapse, CollapseItem, Button, Field, Icon, Sticky, DropdownMenu, DropdownItem, Rate, Calendar, Checkbox, Empty, Lazyload, Radio, RadioGroup, CellGroup, Dialog, CheckboxGroup, NavBar, PullRefresh, Cascader } from 'vant'; | |
| 3 | 3 | import App from './App.vue' |
| 4 | 4 | import router from './router' |
| 5 | 5 | import store from './store' |
| ... | ... | @@ -46,6 +46,7 @@ Vue |
| 46 | 46 | .use(NavBar) |
| 47 | 47 | .use(PullRefresh) |
| 48 | 48 | .use(RadioGroup) |
| 49 | + .use(Cascader) | |
| 49 | 50 | .use(Radio); |
| 50 | 51 | Vue.config.productionTip = false; |
| 51 | 52 | Vue.config.ignoredElements = ['wx-open-launch-app']; | ... | ... |
src/views/Home/component/AddChildPopupGroup.vue
| ... | ... | @@ -341,7 +341,7 @@ export default { |
| 341 | 341 | // 'isTestUrl': '1' |
| 342 | 342 | }, |
| 343 | 343 | onSuccess: (res) => { |
| 344 | - if (res.data.code == 200) { | |
| 344 | + if (res.data.status == 1) { | |
| 345 | 345 | console.log('入学年份列表:', res) |
| 346 | 346 | let yearArr = res.data.data |
| 347 | 347 | let newYearArr = yearArr.map((x) => { |
| ... | ... | @@ -392,7 +392,7 @@ export default { |
| 392 | 392 | // 'isTestUrl': '1' |
| 393 | 393 | }, |
| 394 | 394 | onSuccess: (res) => { |
| 395 | - if (res.data.code == 200) { | |
| 395 | + if (res.data.status == 1) { | |
| 396 | 396 | console.log('班级列表:', res) |
| 397 | 397 | let classTypeArr = res.data.data |
| 398 | 398 | let newClassTypeArr = classTypeArr.map((x) => { | ... | ... |