|
|
|
|
@ -23,6 +23,10 @@
|
|
|
|
|
<div>
|
|
|
|
|
<el-button type="primary" size="small" @click="select.page=1,getList()">查询</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-button type="primary" size="small" @click="resetSelect">重置</el-button>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<el-button type="primary" size="small" @click="exportExcel">导出</el-button>
|
|
|
|
|
</div>
|
|
|
|
|
@ -40,8 +44,8 @@
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<xy-table :list="list" :showIndexFixed="'left'" :total="total" @pageIndexChange="pageIndexChange" @pageSizeChange="pageSizeChange"
|
|
|
|
|
:table-item="table_item">
|
|
|
|
|
<xy-table :list="list" :showIndexFixed="'left'" :total="total" @pageIndexChange="pageIndexChange"
|
|
|
|
|
@pageSizeChange="pageSizeChange" :table-item="table_item">
|
|
|
|
|
<template v-slot:status>
|
|
|
|
|
<el-table-column align='center' label="状态" width="120" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
@ -63,10 +67,10 @@
|
|
|
|
|
<el-table-column align='center' fixed="right" label="操作" width="220" header-align="center">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button type="primary" size="small" v-if="scope.row.status>0"
|
|
|
|
|
@click="checkBook('show',scope.row.id)">查看</el-button>
|
|
|
|
|
@click="checkBook('show',scope.row.id)">查看</el-button>
|
|
|
|
|
<el-button type="primary" size="small" v-if="scope.row.status===0"
|
|
|
|
|
@click="checkBook('check',scope.row.id)">审核</el-button>
|
|
|
|
|
<el-button type="primary" size="small" v-if="scope.row.status===3"
|
|
|
|
|
<el-button type="primary" size="small" v-if="scope.row.status===3"
|
|
|
|
|
@click="editBook('editor',scope.row.id,)">编辑</el-button>
|
|
|
|
|
<el-popconfirm style="margin:0 10px" @confirm="deleteList(scope.row.id)" title="确定删除吗?">
|
|
|
|
|
<el-button type="danger" size="small" slot="reference">删除</el-button>
|
|
|
|
|
@ -173,6 +177,14 @@
|
|
|
|
|
this.select.page = 1
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
resetSelect() {
|
|
|
|
|
|
|
|
|
|
this.select.date = ''
|
|
|
|
|
this.select.site = ''
|
|
|
|
|
this.select.user_name = ''
|
|
|
|
|
this.select.page = 1
|
|
|
|
|
this.getList()
|
|
|
|
|
},
|
|
|
|
|
async getList() {
|
|
|
|
|
const res = await index({
|
|
|
|
|
page: this.select.page,
|
|
|
|
|
@ -225,7 +237,7 @@
|
|
|
|
|
this.$refs.checkBook.type = type
|
|
|
|
|
this.$refs.checkBook.isShow = true
|
|
|
|
|
},
|
|
|
|
|
editBook(type, id,status) {
|
|
|
|
|
editBook(type, id, status) {
|
|
|
|
|
if (id) {
|
|
|
|
|
this.$refs.addBook.id = id
|
|
|
|
|
}
|
|
|
|
|
@ -238,9 +250,9 @@
|
|
|
|
|
this.table_item.map(item => {
|
|
|
|
|
if (item.prop === 'status') {
|
|
|
|
|
_export['status_text'] = item.label
|
|
|
|
|
}else if (item.prop === 'date') {
|
|
|
|
|
} else if (item.prop === 'date') {
|
|
|
|
|
_export['start_time'] = '预约开始时间'
|
|
|
|
|
}else if (item.prop === 'timerange') {
|
|
|
|
|
} else if (item.prop === 'timerange') {
|
|
|
|
|
_export['end_time'] = '预约结束时间'
|
|
|
|
|
} else {
|
|
|
|
|
_export[item.prop] = item.label
|
|
|
|
|
|