Commit f26eedde authored by zhengke's avatar zhengke

增加详情

parent 50e6dcae
...@@ -8,13 +8,14 @@ ...@@ -8,13 +8,14 @@
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" option-value="Id" clearable <q-select @input="resetSearch" standout="bg-primary text-white" option-value="Id" clearable
option-label="EmployeeName" v-model="msg.CreateBy" :options="EmployeeList" emit-value map-options label="业务员" use-input @filter="filterFn2"/> option-label="EmployeeName" v-model="msg.CreateBy" :options="EmployeeList" emit-value map-options
label="业务员" use-input @filter="filterFn2" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-field filled> <q-field filled>
 <template v-slot:control>  <template v-slot:control>
<el-date-picker v-model="dateList2" @change="resetSearch()" value-format="yyyy-MM-dd" type="daterange" style="border:none;" :picker-options="option" <el-date-picker v-model="dateList2" @change="resetSearch()" value-format="yyyy-MM-dd" type="daterange" style="border:none;"
 range-separator="至"  start-placeholder="开班开始时间"  end-placeholder="开班结束时间"> :picker-options="option"  range-separator="至"  start-placeholder="开班开始时间"  end-placeholder="开班结束时间">
 </el-date-picker>         </el-date-picker>       
</template> </template>
</q-field> </q-field>
...@@ -30,6 +31,11 @@ ...@@ -30,6 +31,11 @@
<q-space /> <q-space />
</template> </template>
<template v-slot:body-cell-Name="props">
<q-td>
<span style="color:#2961FE;cursor:pointer;" @click="getDetail(props.row)">{{props.row.Name}}</span>
</q-td>
</template>
<template v-slot:body-cell-VisitorStatus="props"> <template v-slot:body-cell-VisitorStatus="props">
<q-td :props="props"> <q-td :props="props">
<img v-if="props.row.VisitorStatus==1" title="正常" src="../../assets/images/normal.png" /> <img v-if="props.row.VisitorStatus==1" title="正常" src="../../assets/images/normal.png" />
...@@ -54,20 +60,27 @@ ...@@ -54,20 +60,27 @@
</template> </template>
</q-table> </q-table>
</div> </div>
<schedulFanke v-if="isShowDetail" @close="closeDetail" :save-obj="sendObj"></schedulFanke>
</div> </div>
</template> </template>
<script> <script>
import { import {
getVisitorAllPageList, getVisitorAllPageList,
} from '../../api/stuMan/index' } from '../../api/stuMan/index'
import { queryEmployee } from '../../api/users/user'; import {
queryEmployee
} from '../../api/users/user';
import schedulFanke from '../../components/schedul/schedul-fanke'
export default { export default {
meta: { meta: {
title: "访问记录" title: "访问记录"
}, },
components: {
schedulFanke
},
data() { data() {
return { return {
...@@ -76,13 +89,13 @@ ...@@ -76,13 +89,13 @@
pageSize: 10, pageSize: 10,
rowsPerPage: 10, rowsPerPage: 10,
KeyWords: "", KeyWords: "",
CreateBy:'', CreateBy: '',
StartTime:'', StartTime: '',
EndTime:'', EndTime: '',
}, },
pageCount: 0, pageCount: 0,
dataList: [], dataList: [],
dateList2:[], dateList2: [],
loading: false, loading: false,
columns: [{ columns: [{
name: 'Name', name: 'Name',
...@@ -165,13 +178,15 @@ ...@@ -165,13 +178,15 @@
}, },
], ],
option:{ option: {
disabledDate:(time)=> { disabledDate: (time) => {
return time.getTime() > Date.now() return time.getTime() > Date.now()
} }
}, },
EmployeeList:[],//业务员 EmployeeList: [], //业务员
AllemployeeList:[], AllemployeeList: [],
isShowDetail:false,
sendObj: {},
} }
}, },
mounted() { mounted() {
...@@ -182,7 +197,15 @@ ...@@ -182,7 +197,15 @@
}, },
methods: { methods: {
//关闭
closeDetail() {
this.isShowDetail = false;
},
//获取详情
getDetail(obj) {
this.sendObj = obj;
this.isShowDetail = true;
},
getList() { getList() {
this.loading = true; this.loading = true;
if (this.dateList2 && this.dateList2.length > 0) { if (this.dateList2 && this.dateList2.length > 0) {
...@@ -221,13 +244,13 @@ ...@@ -221,13 +244,13 @@
var qMsg = { var qMsg = {
Dept_Id: 0 Dept_Id: 0
} }
qMsg.Dept_Id=id; qMsg.Dept_Id = id;
queryEmployee(qMsg).then(res => { queryEmployee(qMsg).then(res => {
if(res.Code==1){ if (res.Code == 1) {
this.EmployeeList = res.Data; this.EmployeeList = res.Data;
let obj={ let obj = {
Id:"", Id: "",
EmployeeName:"不限" EmployeeName: "不限"
} }
this.EmployeeList.unshift(obj) this.EmployeeList.unshift(obj)
this.AllemployeeList = JSON.parse(JSON.stringify(this.EmployeeList)); this.AllemployeeList = JSON.parse(JSON.stringify(this.EmployeeList));
...@@ -253,13 +276,14 @@ ...@@ -253,13 +276,14 @@
} }
} }
</script> </script>
<style > <style>
.visitorRecord .border-bottom { .visitorRecord .border-bottom {
border-bottom: 1px dashed #EEE; border-bottom: 1px dashed #EEE;
padding-bottom: 5px; padding-bottom: 5px;
margin-bottom: 5px; margin-bottom: 5px;
} }
.visitorRecord .el-input { .visitorRecord .el-input {
width: 100%; width: 100%;
border: none; border: none;
...@@ -271,15 +295,13 @@ ...@@ -271,15 +295,13 @@
border: none; border: none;
background-color: transparent; background-color: transparent;
} }
.visitorRecord .el-range-input { .visitorRecord .el-range-input {
background-color: transparent !important; background-color: transparent !important;
} }
</style>
<style lang="sass">
</style>
<style lang="sass">
@import url('~assets/css/table.sass') @import url('~assets/css/table.sass')
</style> </style>
\ No newline at end of file
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