Commit 14dc81e2 authored by 黄奎's avatar 黄奎

页面修改

parent c6e829c3
......@@ -3,15 +3,9 @@
<div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md">
<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" />
</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 class="page-content">
......@@ -24,38 +18,36 @@
</template>
<template v-slot:body-cell-Id="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>
</template>
<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" />
</template>
</q-table>
</div>
</div>
</template>
<script>
import {
queryVisitorPage,
} from '../../api/scheduling/schedu'
export default {
meta: {
title: "访客登记"
},
components: {
},
components: {},
data() {
return {
msg: {
pageIndex: 1,
pageSize: 10,
rowsPerPage: 10,
Name: "",
IsQPrice: 1,
Type: "", //项目类型
SaleState: 3, //已上架
KeyWords: "",
},
PageCount:0,
pageCount: 0,
dataList: [],
loading: false,
columns: [{
......@@ -113,6 +105,12 @@
field: 'Evaluate',
align: 'left'
},
{
name: 'CreateTimeStr',
label: '到访时间',
field: 'CreateTimeStr',
align: 'left'
},
{
name: 'VisitTimes',
label: '到访次数',
......@@ -126,29 +124,38 @@
align: 'left'
},
{
name: 'optioned',
name: 'Id',
label: '操作',
}
],
}
},
mounted() {
//this.getList();
this.getList();
},
created() {
},
methods: {
getList(){
},
resetSearch(){
},
changePage(){
}
getList() {
this.loading = true;
queryVisitorPage(this.msg).then(res => {
this.loading = false;
this.dataList = res.Data.PageData;
this.pageCount = res.Data.PageCount;
}).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