修改
This commit is contained in:
parent
6b3289b239
commit
d45ca3942c
@ -7,3 +7,11 @@ export function appletVisitRecord(pageNum, pageSize, parentInfoId, classId, star
|
|||||||
method: 'post',
|
method: 'post',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//名下学生
|
||||||
|
export function getParentAndStudentInfo(parentInfoId) {
|
||||||
|
return request({
|
||||||
|
url: `/system/appLogManage/getParentAndStudentInfo?parentInfoId=${parentInfoId}`,
|
||||||
|
method: 'get',
|
||||||
|
})
|
||||||
|
}
|
||||||
@ -33,7 +33,11 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</el-form>
|
</el-form>
|
||||||
<el-table v-loading="loading" :data="list">
|
<el-table v-loading="loading" :data="list">
|
||||||
<el-table-column label="家长姓名" align="center" prop="parentName" />
|
<el-table-column label="家长姓名" align="center" prop="parentName">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<el-button type="text" @click="getStudent(scope.row)">{{scope.row.parentName}}</el-button>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
<el-table-column label="操作类型" align="center" prop="logType">
|
<el-table-column label="操作类型" align="center" prop="logType">
|
||||||
<template slot-scope="scope">
|
<template slot-scope="scope">
|
||||||
{{scope.row.logType=='LOGIN'?'登录':''}}
|
{{scope.row.logType=='LOGIN'?'登录':''}}
|
||||||
@ -50,10 +54,33 @@
|
|||||||
:limit.sync="pageSize"
|
:limit.sync="pageSize"
|
||||||
@pagination="getlist"
|
@pagination="getlist"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<el-dialog width="900px" title="学生信息" :visible.sync="studentInfoshow" append-to-body>
|
||||||
|
<el-table :data="studentInfoList">
|
||||||
|
<el-table-column property="kindergartenName" label="幼儿园名称" align="center"></el-table-column>
|
||||||
|
<el-table-column property="className" label="班级名称" align="center"></el-table-column>
|
||||||
|
<el-table-column property="classTeacher" label="班主任姓名" align="center"></el-table-column>
|
||||||
|
<el-table-column property="classPhone" label="联系电话" align="center"></el-table-column>
|
||||||
|
<el-table-column property="studentName" label="学生姓名" align="center"></el-table-column>
|
||||||
|
<el-table-column property="studentAge" label="学生年龄" align="center"></el-table-column>
|
||||||
|
<el-table-column property="studentSex" label="学生性别" align="center">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
{{scope.row.studentSex=='MALE'?'男':''}}
|
||||||
|
{{scope.row.studentSex=='FEMALE'?'女':''}}
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
<div slot="footer" class="dialog-footer">
|
||||||
|
<el-button type="primary" @click="studentInfoshow=false">确 定</el-button>
|
||||||
|
</div>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import { appletVisitRecord } from "@/api/system/AppletAccessLog";
|
import {
|
||||||
|
appletVisitRecord,
|
||||||
|
getParentAndStudentInfo
|
||||||
|
} from "@/api/system/AppletAccessLog";
|
||||||
import classe from "../../assembly/classe.vue";
|
import classe from "../../assembly/classe.vue";
|
||||||
import parent from "../../assembly/parent.vue";
|
import parent from "../../assembly/parent.vue";
|
||||||
export default {
|
export default {
|
||||||
@ -117,7 +144,9 @@ export default {
|
|||||||
endDate: null,
|
endDate: null,
|
||||||
loginType: "",
|
loginType: "",
|
||||||
list: [],
|
list: [],
|
||||||
total: 0
|
total: 0,
|
||||||
|
studentInfoList: [], //名下幼儿园
|
||||||
|
studentInfoshow: false
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@ -150,6 +179,14 @@ export default {
|
|||||||
this.endDate = this.endDate + "-" + dates.date;
|
this.endDate = this.endDate + "-" + dates.date;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
//名下学生
|
||||||
|
getStudent(e) {
|
||||||
|
this.studentInfoList = [];
|
||||||
|
getParentAndStudentInfo(e.parentInfoId).then(res => {
|
||||||
|
this.studentInfoList = res.data.studentInfoList;
|
||||||
|
this.studentInfoshow = true;
|
||||||
|
});
|
||||||
|
},
|
||||||
//获取list
|
//获取list
|
||||||
getlist() {
|
getlist() {
|
||||||
appletVisitRecord(
|
appletVisitRecord(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user