-
+
-

-

+

+
- {{item.travelerName}}
+ {{ item.travelerName }}
- {{item.enrollYear}}
+ {{ item.enrollYear }}
- {{item.schoolName}}
+ {{ item.schoolName }}
添加学生信息
-
+
@@ -33,47 +39,51 @@ export default {
props: {
parent: {
type: String,
- default: ''
- }
+ default: '',
+ },
},
- data () {
+ data() {
return {
- showAddChildPopupGroup: false,//新增孩子弹出框
- childList: [],//孩子列表
+ showAddChildPopupGroup: false, //新增孩子弹出框
+ childList: [], //孩子列表
step: 1,
- travelerNum: ''
+ travelerNum: '',
}
},
- mounted () {
+ mounted() {
this.getChildList()
},
methods: {
// 激活认证
- Certification (index) {
+ Certification(index) {
this.step = 2
this.travelerNum = this.childList[index].travelerNum
this.showAddChildPopupGroup = true
},
// 点击浙学码
- handleCode (index) {
-
+ handleCode(index) {
+ if (this.childList[index].whiteFlag != 1 || this.childList[index].isBing != 1) {
+ this.$toast('请先激活认证')
+ return
+ }
+
localStorage.setItem('StudentDetialInfo', JSON.stringify(this.childList[index]))
-
+
this.$router.push({ name: 'ZXCode' })
},
// 进入学生详情页
- handleStudentDetail (index) {
+ handleStudentDetail(index) {
localStorage.setItem('StudentDetialInfo', JSON.stringify(this.childList[index]))
this.$router.push({ name: 'GrowUpRecord' })
},
// 获取孩子列表
- getChildList () {
+ getChildList() {
this.$toast.loading({
message: '加载中...',
duration: 0,
- forbidClick: true
+ forbidClick: true,
})
- let userInfo = localStorage.getItem('userInfo');
+ let userInfo = localStorage.getItem('userInfo')
userInfo = JSON.parse(userInfo)
this.yxAxios.get(`${this.baseUrl}/prod/user/info/getPortalUserByNum?userNum=${userInfo?.centerNo}`).then((res) => {
this.$toast.clear()
@@ -94,20 +104,18 @@ export default {
}
})
},
- addStudent () {
+ addStudent() {
this.step = 1
this.showAddChildPopupGroup = true
},
- complete () {
- this.showAddChildPopupGroup = false;
+ complete() {
+ this.showAddChildPopupGroup = false
this.getChildList()
},
-
},
components: {
- AddChildPopupGroup
- }
-
+ AddChildPopupGroup,
+ },
}
\ No newline at end of file
+
--
libgit2 0.21.0