|
@@ -0,0 +1,142 @@
|
|
|
+<!--客服留言-->
|
|
|
+<template>
|
|
|
+ <div>
|
|
|
+ <BaseHeaderLayout :leftSpan="16">
|
|
|
+ <template slot="right">
|
|
|
+ <ws-input class='findinput' @keyup.enter.native="find()" v-model="searchKeyWord" placeholder="可按姓名、手机号查找"
|
|
|
+ clearable maxlength="500" type="input"></ws-input>
|
|
|
+ <ws-button class="find" type="primary" @click="find()"><img width="16" height="16" style="
|
|
|
+ vertical-align: text-top;
|
|
|
+ position: relative;
|
|
|
+ top: 0px;
|
|
|
+ left:-8px;
|
|
|
+ " src="../../../public/img/sousuo.png" alt="" /></ws-button>
|
|
|
+ </template>
|
|
|
+ </BaseHeaderLayout>
|
|
|
+ <el-table :data="openList" style="width: 100%; margin-top: 20px" ref="openList" border height="calc(100% - 115px)">
|
|
|
+ <el-table-column type="index" label="序号">
|
|
|
+ <template scope="scope">
|
|
|
+ <span v-if="scope.$index < 9">0{{ scope.$index + 1 }}</span>
|
|
|
+ <span v-else>{{ scope.$index + 1 }}</span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
+ <el-table-column prop="name" label="姓名"> </el-table-column>
|
|
|
+ <el-table-column prop="mobilePhone" label="手机号"> </el-table-column>
|
|
|
+ <el-table-column prop="message" label="信息"></el-table-column>
|
|
|
+ <el-table-column prop="createDate" label="创建时间"> </el-table-column>
|
|
|
+ </el-table>
|
|
|
+ <div style="text-align: center;">
|
|
|
+ <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page="currentPage"
|
|
|
+ :page-size="deptCircularPage.pageSize" layout="total, sizes, prev, pager, next, jumper"
|
|
|
+ :total="deptBudgetTotal">
|
|
|
+ </el-pagination>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+<script>
|
|
|
+ import {
|
|
|
+ openServiceList,
|
|
|
+ } from '@/model/platformaudit/index'
|
|
|
+ export default {
|
|
|
+ data() {
|
|
|
+ return {
|
|
|
+ searchKeyWord: '',
|
|
|
+ openList: [],
|
|
|
+ currentPage: 1,
|
|
|
+ pageSize: 10,
|
|
|
+ deptBudgetTotal: 0,
|
|
|
+ deptCircularPage: {},
|
|
|
+ }
|
|
|
+ },
|
|
|
+ activated() {
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ methods: {
|
|
|
+ find() {
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ handleSizeChange(val) {
|
|
|
+ console.log(`每页 ${val} 条`)
|
|
|
+ this.pageSize = val
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ handleCurrentChange(val) {
|
|
|
+ this.currentPage = val
|
|
|
+ console.log(`当前页: ${val}`)
|
|
|
+ this.getList()
|
|
|
+ },
|
|
|
+ getList() {
|
|
|
+ openServiceList({
|
|
|
+ currentPage: this.currentPage,
|
|
|
+ pageSize: this.pageSize,
|
|
|
+ searchKeyWord: this.searchKeyWord,
|
|
|
+ })
|
|
|
+ .toPromise()
|
|
|
+ .then((response) => {
|
|
|
+ this.openList = response.records
|
|
|
+ this.deptBudgetTotal = response.total
|
|
|
+ })
|
|
|
+ },
|
|
|
+ },
|
|
|
+ }
|
|
|
+</script>
|
|
|
+<style lang="scss" scoped>
|
|
|
+ .seach {
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
+
|
|
|
+ .find {
|
|
|
+ width: 32px;
|
|
|
+ margin-left: 10px;
|
|
|
+ }
|
|
|
+
|
|
|
+ .search-left {
|
|
|
+ display: flex;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ .ws-info-table {
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ .ws-info-table .el-form-item {
|
|
|
+ width: 50%;
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.ws-info-table .el-form-item .el-form-item__label {
|
|
|
+ width: 30%;
|
|
|
+ text-align: center;
|
|
|
+ background: #ffffff;
|
|
|
+ color: #8890b1;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.ws-info-table .el-form-item .el-form-item__content {
|
|
|
+ border: none;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.el-table .el-table__header .cell,
|
|
|
+ .el-table .el-table__body .cell {
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.el-table--enable-row-transition .el-table__body td {
|
|
|
+ text-align: center;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.base_header_layout .find.el-button--primary {
|
|
|
+ width: 30px;
|
|
|
+ border-top-left-radius: 0px;
|
|
|
+ border-bottom-left-radius: 0px;
|
|
|
+ }
|
|
|
+
|
|
|
+ /deep/.base_header_layout .findinput input {
|
|
|
+ border-top-right-radius: 0px;
|
|
|
+ border-bottom-right-radius: 0px;
|
|
|
+ }
|
|
|
+
|
|
|
+ // /deep/.el-table--border{
|
|
|
+ // height: calc(100vh - 600px) !important;
|
|
|
+ // }
|
|
|
+</style>
|