Commit 0e1aaa13 authored by zhengke's avatar zhengke

1

parent 9fcf748f
...@@ -203,7 +203,7 @@ ...@@ -203,7 +203,7 @@
class="sticky-right-column-table sticky-column-table" separator="none"> class="sticky-right-column-table sticky-column-table" separator="none">
<template v-slot:body-cell-StuName="props"> <template v-slot:body-cell-StuName="props">
<q-td :props="props"> <q-td :props="props">
<div class="text-blue cursor-pointer" @click="getStuRight(props.row)"> <div class="text-blue cursor-pointer" @click="getStuAudition(props.row)">
{{ props.value }} {{ props.value }}
</div> </div>
</q-td> </q-td>
...@@ -287,10 +287,13 @@ ...@@ -287,10 +287,13 @@
</q-dialog> </q-dialog>
<studentRight-form v-if="isShowStuRight" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList"> <studentRight-form v-if="isShowStuRight" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList">
</studentRight-form> </studentRight-form>
<student-audition v-if="isShowStuAudition" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList">
</student-audition>
</div> </div>
</template> </template>
<script> <script>
import studentRightForm from "../school/student/studentRight-form"; import studentRightForm from "../school/student/studentRight-form";
import studentAudition from "../school/student/student-audition"
import { import {
getTodayVisitList getTodayVisitList
} from "../../api/stuMan/index"; } from "../../api/stuMan/index";
...@@ -328,7 +331,8 @@ ...@@ -328,7 +331,8 @@
components: { components: {
schedulFanke, schedulFanke,
studentAddForm, studentAddForm,
studentRightForm studentRightForm,
studentAudition
}, },
computed: { computed: {
...mapGetters(["userInfo"]) ...mapGetters(["userInfo"])
...@@ -336,6 +340,7 @@ ...@@ -336,6 +340,7 @@
data() { data() {
return { return {
isShowStuRight: false, isShowStuRight: false,
isShowStuAudition: false,
isShowModelInfo: true, isShowModelInfo: true,
visitModel: null, visitModel: null,
tabCheck: "first", tabCheck: "first",
...@@ -675,7 +680,15 @@ ...@@ -675,7 +680,15 @@
} }
this.isShowStuRight = true; this.isShowStuRight = true;
}, },
//点击预约到访的姓名
getStuAudition(obj){
if (obj) {
this.stuOption = obj;
} else {
this.stuOption = null;
}
this.isShowStuAudition = true;
},
addFinishHandler(m, t) { addFinishHandler(m, t) {
console.log(m, t); console.log(m, t);
if (m && m.StuId) { if (m && m.StuId) {
...@@ -772,6 +785,7 @@ ...@@ -772,6 +785,7 @@
}, },
closeStuForm(){ closeStuForm(){
this.isShowStuRight = false; this.isShowStuRight = false;
this.isShowStuAudition = false;
}, },
//获取访客列表 //获取访客列表
getVisitoryPage() { getVisitoryPage() {
......
<style>
.stuAudition {
width: 586px !important;
display: flex;
flex-direction: column;
height: 100 vh;
padding: 15px 17px 0 17px;
background-color: #f4f4f6;
}
.stuaudition_Bottom {
margin-top: 17px;
flex: 1;
display: flex;
overflow: auto;
}
.stuaudition_Bottom::-webkit-scrollbar {
width: 6px;
height: 8px;
}
.stuaudition_Bottom::-webkit-scrollbar-track {
border-radius: 4px;
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
background: #c9c9c9;
}
.stuaudition_Bottom::-webkit-scrollbar-thumb {
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
border-radius: 4px;
background: #EDEDED;
}
</style>
<template>
<q-dialog v-model="persistent" full-height maximized position="right" persistent @hide="closeCutomer"
transition-show="slide-left">
<div class="stuAudition">
<div class="stuaudition_Bottom">
<student-shiting :save-obj="baseObj" @success="refreshStudentPage"></student-shiting>
</div>
<div class="dialog-out-close" @click="closeCutomer">
<i class="iconfont icon-close" style="font-size:26px;" />
</div>
</div>
</q-dialog>
</template>
<script>
import studentShiting from '../student/student-shiting';
export default {
meta: {
title: "试听"
},
components: {
studentShiting
},
props: {
saveObj: {
type: Object,
default: null
}
},
data() {
return {
persistent: true,
baseObj: {},
}
},
created() {},
mounted() {
this.baseObj = this.saveObj;
},
methods: {
closeCutomer() {
this.$emit('close')
},
//刷新列表
refreshStudentPage() {
this.$emit('success');
}
}
}
</script>
<style>
</style>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<q-field filled class="q-pb-lg q-pr-lg" dense> <q-field filled class="q-pb-lg q-pr-lg" dense>
 <template v-slot:control>  <template v-slot:control>
<el-date-picker v-model="addMsg.ClassDate" ref="ClassDate" :rules="[val => !!val || '请选择预约日期']" <el-date-picker v-model="addMsg.ClassDate" ref="ClassDate" :rules="[val => !!val || '请选择预约日期']"
style="width:228px" size="mini" type="date" placeholder="预约日期"> style="width:225px" size="mini" type="date" placeholder="预约日期">
</el-date-picker> </el-date-picker>
</template> </template>
</q-field> </q-field>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment