This commit is contained in:
曹辉 2023-04-17 10:34:49 +08:00
parent 48679a94ba
commit 6b3289b239
3 changed files with 28 additions and 19 deletions

View File

@ -1,9 +1,9 @@
import request from '@/utils/request' import request from '@/utils/request'
// 查询 // 查询
export function appletVisitRecord(pageNum, pageSize, parentInfoId, kindergartenId, startDate, endDate, loginType) { export function appletVisitRecord(pageNum, pageSize, parentInfoId, classId, startDate, endDate, loginType) {
return request({ return request({
url: `/system/appLogManage/appletVisitRecord?pageNum=${pageNum}&pageSize=${pageSize}&parentInfoId=${parentInfoId}&kindergartenId=${kindergartenId}&startDate=${startDate}&endDate=${endDate}&loginType=${loginType}`, url: `/system/appLogManage/appletVisitRecord?pageNum=${pageNum}&pageSize=${pageSize}&parentInfoId=${parentInfoId}&classId=${classId}&startDate=${startDate}&endDate=${endDate}&loginType=${loginType}`,
method: 'post', method: 'post',
}) })
} }

View File

@ -1,6 +1,6 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-form ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="90px"> <el-form ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="70px">
<el-form-item label="所属班级" prop="className"> <el-form-item label="所属班级" prop="className">
<el-button <el-button
@click="classshow = true" @click="classshow = true"
@ -65,9 +65,16 @@
></el-button> ></el-button>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column property="kindergartenName" label="所属幼儿园" align="center"></el-table-column> <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="className" label="班级名称" align="center"></el-table-column>
<el-table-column property="classType" label="班级类型" align="center"></el-table-column> <el-table-column property="classType" label="班级类型" align="center">
<template slot-scope="scope">
{{ scope.row.classType == 'LARGE_CLASS' ? "大班" : "" }}
{{ scope.row.classType == 'MIDDLE_CLASS' ? "中班" : "" }}
{{ scope.row.classType == 'SMALL_CLASS' ? "小班" : "" }}
{{ scope.row.classType == 'GRADUATE' ? "毕业" : "" }}
</template>
</el-table-column>
<el-table-column property="classTeacher" label="班主任姓名" align="center"></el-table-column> <el-table-column property="classTeacher" label="班主任姓名" align="center"></el-table-column>
<el-table-column property="phone" label="联系电话" align="center"></el-table-column> <el-table-column property="phone" label="联系电话" align="center"></el-table-column>
</el-table> </el-table>
@ -119,11 +126,11 @@ export default {
}, },
methods: { methods: {
onshow() { onshow() {
this.classId = localStorage.getItem("classId"); // this.classId = localStorage.getItem("classId");
if (localStorage.getItem("className") == null) { if (localStorage.getItem("className") == null) {
this.className = "请选择班级"; this.className = "请选择班级";
} else { } else {
this.className = localStorage.getItem("className"); // this.className = localStorage.getItem("className");
} }
this.$emit("classelist", this.classId); this.$emit("classelist", this.classId);
}, },
@ -165,8 +172,8 @@ export default {
}, },
// //
reset() { reset() {
this.form = {}; this.className = "请选择班级";
this.resetForm("form"); this.classId = "";
} }
} }
}; };

View File

@ -1,6 +1,7 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<kindergar @kinbatlist="kinbatlist" style="width: 500px; display: inline;" ref="kinresets"></kindergar> <!-- <kindergar @kinbatlist="kinbatlist" style="width: 500px; display: inline;" ref="kinresets"></kindergar> -->
<classe @classelist="classelist" style="width: 500px; display: inline;" ref="classe"></classe>
<parent @parentlist="parentlist" style="width: 500px; display: inline;" ref="resets"></parent> <parent @parentlist="parentlist" style="width: 500px; display: inline;" ref="resets"></parent>
<el-form size="small" :inline="true" v-show="showSearch"> <el-form size="small" :inline="true" v-show="showSearch">
<el-form-item label="日期" prop="orderStatus" label-width="60px"> <el-form-item label="日期" prop="orderStatus" label-width="60px">
@ -17,7 +18,7 @@
></el-date-picker> ></el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="操作类型" prop="patientName" label-width="80px"> <el-form-item label="操作类型" prop="patientName" label-width="80px">
<el-select v-model="loginType" placeholder="请选择订单状态"> <el-select v-model="loginType" placeholder="请选择订单状态" clearable>
<el-option <el-option
v-for="item in loginTypelist" v-for="item in loginTypelist"
:key="item.value" :key="item.value"
@ -53,11 +54,11 @@
</template> </template>
<script> <script>
import { appletVisitRecord } from "@/api/system/AppletAccessLog"; import { appletVisitRecord } from "@/api/system/AppletAccessLog";
import kindergar from "../../assembly/kindergarlog.vue"; import classe from "../../assembly/classe.vue";
import parent from "../../assembly/parent.vue"; import parent from "../../assembly/parent.vue";
export default { export default {
name: "AppletAccessLog", name: "AppletAccessLog",
components: { kindergar, parent }, components: { classe, parent },
data() { data() {
return { return {
pickerOptions: { pickerOptions: {
@ -111,7 +112,7 @@ export default {
pageNum: 1, pageNum: 1,
pageSize: 10, pageSize: 10,
parentInfoId: "", parentInfoId: "",
kindergartenId: "", classId: "",
startDate: null, startDate: null,
endDate: null, endDate: null,
loginType: "", loginType: "",
@ -155,7 +156,7 @@ export default {
this.pageNum, this.pageNum,
this.pageSize, this.pageSize,
this.parentInfoId, this.parentInfoId,
this.kindergartenId, this.classId,
this.startDate, this.startDate,
this.endDate, this.endDate,
this.loginType this.loginType
@ -168,11 +169,12 @@ export default {
resetQuery() { resetQuery() {
this.newtime(); this.newtime();
this.parentInfoId = ""; this.parentInfoId = "";
this.kindergartenId = ""; this.classId = "";
this.loginType = ""; this.loginType = "";
this.valuetime = ""; this.valuetime = "";
this.$refs.resets.reset(); this.$refs.resets.reset();
this.$refs.kinresets.reset(); this.$refs.kinresets.reset();
this.$refs.classe.reset();
this.getlist(); this.getlist();
}, },
// //
@ -184,9 +186,9 @@ export default {
parentlist(e) { parentlist(e) {
this.parentInfoId = e; this.parentInfoId = e;
}, },
// //
kinbatlist(kindergartenId) { classelist(e) {
this.kindergartenId = kindergartenId; this.classId = e;
}, },
formatDate(time, timetype) { formatDate(time, timetype) {
let date = new Date(time); //13 let date = new Date(time); //13