This commit is contained in:
曹辉 2023-04-17 11:02:26 +08:00
parent 6b3289b239
commit d45ca3942c
2 changed files with 48 additions and 3 deletions

View File

@ -6,4 +6,12 @@ export function appletVisitRecord(pageNum, pageSize, parentInfoId, classId, star
url: `/system/appLogManage/appletVisitRecord?pageNum=${pageNum}&pageSize=${pageSize}&parentInfoId=${parentInfoId}&classId=${classId}&startDate=${startDate}&endDate=${endDate}&loginType=${loginType}`,
method: 'post',
})
}
//名下学生
export function getParentAndStudentInfo(parentInfoId) {
return request({
url: `/system/appLogManage/getParentAndStudentInfo?parentInfoId=${parentInfoId}`,
method: 'get',
})
}

View File

@ -33,7 +33,11 @@
</el-form-item>
</el-form>
<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">
<template slot-scope="scope">
{{scope.row.logType=='LOGIN'?'登录':''}}
@ -50,10 +54,33 @@
:limit.sync="pageSize"
@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>
</template>
<script>
import { appletVisitRecord } from "@/api/system/AppletAccessLog";
import {
appletVisitRecord,
getParentAndStudentInfo
} from "@/api/system/AppletAccessLog";
import classe from "../../assembly/classe.vue";
import parent from "../../assembly/parent.vue";
export default {
@ -117,7 +144,9 @@ export default {
endDate: null,
loginType: "",
list: [],
total: 0
total: 0,
studentInfoList: [], //
studentInfoshow: false
};
},
created() {
@ -150,6 +179,14 @@ export default {
this.endDate = this.endDate + "-" + dates.date;
}
},
//
getStudent(e) {
this.studentInfoList = [];
getParentAndStudentInfo(e.parentInfoId).then(res => {
this.studentInfoList = res.data.studentInfoList;
this.studentInfoshow = true;
});
},
//list
getlist() {
appletVisitRecord(