|
@@ -0,0 +1,69 @@
|
|
|
+<template>
|
|
|
+ <div class="padding-20">
|
|
|
+ <div class="search-box">
|
|
|
+ <el-form ref="form" :inline="true" :model="searchForm" clearable label-width="100px" class="mt-10">
|
|
|
+ <el-form-item label="创建时间:">
|
|
|
+ <el-date-picker
|
|
|
+ :editable="false"
|
|
|
+ v-model="time"
|
|
|
+ @change="timearr => {timearr ? (searchForm.start_time = timearr[0] + ' 00:00:00', searchForm.end_time = timearr[1] + ' 23:59:59') : searchForm.start_time = searchForm.end_time = undefined}"
|
|
|
+ type="daterange"
|
|
|
+ value-format="yyyy-MM-dd"
|
|
|
+ start-placeholder="开始时间"
|
|
|
+ end-placeholder="结束时间"
|
|
|
+ ></el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="部门名称:">
|
|
|
+ <el-input v-model="searchForm.department_name" placeholder="请输入部门名称" clearable></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item class="ml-10">
|
|
|
+ <el-button icon="el-icon-search" type="primary" @click="searchSubmit">查询</el-button>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
+ <el-table :data="tableData" stripe v-loading="tableLoading" fit class="marginT-10 order-table" border
|
|
|
+ :max-height="vheight">
|
|
|
+ <el-table-column label="ID" prop="id"></el-table-column>
|
|
|
+ <el-table-column label="歌名" prop="created_at"></el-table-column>
|
|
|
+ <el-table-column label="演唱艺人" prop="department_name"></el-table-column>
|
|
|
+ <el-table-column label="点歌时间" prop="department_desc"></el-table-column>
|
|
|
+ <el-table-column label="点歌人昵称" prop="department_project_name"></el-table-column>
|
|
|
+ <el-table-column label="留言" prop="department_project_name"></el-table-column>
|
|
|
+ <el-table-column label="演出时间" prop="department_project_name"></el-table-column>
|
|
|
+ <el-table-column label="用户支付订单编号" prop="department_project_name"></el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <el-pagination
|
|
|
+ class="marginT-20"
|
|
|
+ @size-change="handleSizeChange"
|
|
|
+ @current-change="handleCurrentChange"
|
|
|
+ :hide-on-single-page="true"
|
|
|
+ :current-page="page"
|
|
|
+ :page-size="page_size"
|
|
|
+ :page-sizes="[10, 20, 100, 200, 300, 400]"
|
|
|
+ background
|
|
|
+ layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="totalCount"/>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script>
|
|
|
+import page from '@/mixin/page'
|
|
|
+
|
|
|
+export default {
|
|
|
+ mixins: [page],
|
|
|
+ data () {
|
|
|
+ return {
|
|
|
+ time: [],
|
|
|
+ searchForm: {},
|
|
|
+ tableData: [],
|
|
|
+ tableUrl: '/department/list'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ mounted () {
|
|
|
+ this.init()
|
|
|
+ },
|
|
|
+}
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+</style>
|