Commit 326e9e3f authored by zhengke's avatar zhengke
parents 59237c0e c4c5cc18
...@@ -3,15 +3,9 @@ ...@@ -3,15 +3,9 @@
<div class="page-search row items-center"> <div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md"> <div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3"> <div class="col-3">
<q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.Name" label="名称" <q-input @input="resetSearch" clearable standout="bg-primary text-white" v-model="msg.KeyWords" label="关键字"
@clear="resetSearch" maxlength="20" /> @clear="resetSearch" maxlength="20" />
</div> </div>
<!-- <div class="col-3">
<q-select class="q-pb-lg q-pr-lg" filled stack-label clearable option-value="Id" option-label="Name"
v-model="msg.Type" ref="Type" :options="studyAbroadList" label="类型" :dense="false" emit-value map-options
@input="resetSearch">
</q-select>
</div> -->
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
...@@ -24,38 +18,36 @@ ...@@ -24,38 +18,36 @@
</template> </template>
<template v-slot:body-cell-Id="props"> <template v-slot:body-cell-Id="props">
<q-td :props="props"> <q-td :props="props">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="编辑" /> <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="详情" />
</q-td> </q-td>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
<q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="PageCount" <q-pagination class="full-width justify-end" v-model="msg.pageIndex" color="primary" :max="pageCount"
:input="true" @input="changePage" /> :input="true" @input="changePage" />
</template> </template>
</q-table> </q-table>
</div> </div>
</div> </div>
</template> </template>
<script> <script>
import {
queryVisitorPage,
} from '../../api/scheduling/schedu'
export default { export default {
meta: { meta: {
title: "访客登记" title: "访客登记"
}, },
components: { components: {},
},
data() { data() {
return { return {
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 10, pageSize: 10,
rowsPerPage: 10, rowsPerPage: 10,
Name: "", KeyWords: "",
IsQPrice: 1,
Type: "", //项目类型
SaleState: 3, //已上架
}, },
PageCount:0, pageCount: 0,
dataList: [], dataList: [],
loading: false, loading: false,
columns: [{ columns: [{
...@@ -113,6 +105,12 @@ ...@@ -113,6 +105,12 @@
field: 'Evaluate', field: 'Evaluate',
align: 'left' align: 'left'
}, },
{
name: 'CreateTimeStr',
label: '到访时间',
field: 'CreateTimeStr',
align: 'left'
},
{ {
name: 'VisitTimes', name: 'VisitTimes',
label: '到访次数', label: '到访次数',
...@@ -126,29 +124,38 @@ ...@@ -126,29 +124,38 @@
align: 'left' align: 'left'
}, },
{ {
name: 'optioned', name: 'Id',
label: '操作', label: '操作',
} }
], ],
} }
}, },
mounted() { mounted() {
//this.getList(); this.getList();
}, },
created() { created() {
}, },
methods: { methods: {
getList(){ getList() {
this.loading = true;
}, queryVisitorPage(this.msg).then(res => {
resetSearch(){ this.loading = false;
this.dataList = res.Data.PageData;
}, this.pageCount = res.Data.PageCount;
changePage(){ }).catch(() => {
this.loading = false;
} })
},
resetSearch() {
this.msg.pageIndex = 1;
this.getVisitoryPage();
},
changePage() {
this.msg.pageIndex = val;
this.getVisitoryPage();
}
} }
} }
......
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