<template>
|
<div class="app-container">
|
|
<el-backtop :bottom="150" :right="30">
|
<el-button type="primary" circle class="el-icon-top"></el-button>
|
</el-backtop>
|
|
|
<h1 style="font-size:21px;padding-top:30px;display: flex;">
|
<span>会议审批</span>
|
<div class="button-container"></div>
|
<div style="display: flex; align-items: center;">
|
<!-- <el-button size="mini" type="text" v-hasPermi="['person:information:memo']" style="margin-left: 200px">
|
<div class="form"><el-icon style="padding-right:100px;"></el-icon>
|
<span class="text" style="width: 69px;height: 26px;font-size: 16px;
|
font-family: Microsoft YaHei-Regular, Microsoft YaHei; color: #EBA4AA;">新申请</span>
|
</div>
|
</el-button> -->
|
</div>
|
</h1>
|
|
<hr>
|
|
<el-form :model="queryParams1">
|
<el-row>
|
<el-form-item label="" prop="people">
|
<el-input v-model="queryParams1.people" placeholder="请输入搜索内容" clearable style="width: 200px;
|
height: 35px;
|
text-align: left;
|
border-radius: 16px 16px 16px 16px;
|
opacity: 0.5;" @keyup.enter.native="handleQuery">
|
<i slot="prefix" class="el-input__icon el-icon-search"></i>
|
</el-input>
|
</el-form-item>
|
</el-row>
|
</el-form>
|
|
<el-table :data="tableData" border :header-cell-style="{ background: 'pink', fontSize: '13px', color: 'black' }"
|
:row-class-name="tableRowClassName" :row-key="getRowId">
|
<el-table-column label="标题" prop="title" sortable align="center">
|
<template slot-scope="scope">{{ scope.row.title
|
? scope.row.title : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="地点" prop="address" sortable align="center">
|
<template slot-scope="scope">{{
|
scope.row.address ? scope.row.address : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="可容纳人数" prop="capacity" sortable align="center">
|
<template slot-scope="scope">{{
|
scope.row.capacity ? scope.row.capacity : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="参与人数" prop="persons" sortable align="center">
|
<template slot-scope="scope">{{
|
scope.row.persons ? scope.row.persons : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="申请人" prop="applicant" sortable align="center">
|
<template slot-scope="scope">{{
|
scope.row.applicant ? scope.row.applicant : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="申请部门或家庭" prop="applyOrganization" sortable align="center">
|
<template slot-scope="scope">{{
|
scope.row.applyOrganization ? scope.row.applyOrganization : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="开始时间" prop="begin" sortable align="center">
|
<template slot-scope="scope">{{ scope.row.begin
|
? scope.row.begin : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="结束时间" prop="end" sortable align="center">
|
<template slot-scope="scope">{{ scope.row.end ?
|
scope.row.end : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="是否摆放水牌" prop="card" sortable align="center">
|
<template slot-scope="scope">{{ scope.row.card
|
? scope.row.card : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="联系人" prop="name" sortable align="center">
|
<template slot-scope="scope">{{ scope.row.name ?
|
scope.row.name : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="联系电话" prop="phone" sortable align="center">
|
<template slot-scope="scope">{{ scope.row.phone
|
? scope.row.phone : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="审批状态" prop="status" sortable align="center">
|
<template slot-scope="scope">{{ scope.row.status
|
? scope.row.status : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="操作" align="center" width="250" class-name="small-padding fixed-width">
|
<template slot-scope="scope" v-if="scope.row.roleId !== 1">
|
<div class="button-container">
|
<el-button size="mini" type="text">同意</el-button>
|
<el-button size="mini" type="text" icon="el-icon-delete">拒绝</el-button>
|
<el-button size="mini" type="text" icon="el-icon-d-arrow-right">查看详情</el-button>
|
</div>
|
</template>
|
</el-table-column>
|
|
</el-table>
|
|
</div>
|
</template>
|
<script>
|
export default {
|
data() {
|
return {
|
tableData: [
|
{ title: '1', name: 'asasd', address: 'asdadsdasd', id: 1, age: '30' },
|
{ title: '2', name: 'qweqwqwe', address: 'qweqweqwe', id: 2, age: '30' },
|
{ title: '3', name: 'zxczxczxc', address: 'zxczxczcx', id: 3, age: '30' },
|
{ title: '4', name: 'fghfghfh', address: 'fghfghfgh', id: 4, age: '30' },
|
{ title: '5', name: 'rtyrtyrty', address: 'rtyrtyrty', id: 5, age: '30' },
|
{ title: '6', name: 'yuiyuiyui', address: 'yuiyuiyui', id: 6, age: '30' },
|
{ title: '7', name: 'hjkljkljk', address: 'jkljklhlkjl', id: 7, age: '30' },
|
],
|
queryParams1: {
|
pageNum: 1,
|
pageSize: 10,
|
happenTime: undefined,
|
people: undefined,
|
address: undefined,
|
title: undefined,
|
remark: undefined
|
}
|
}
|
},
|
methods: {
|
|
tableRowClassName({ row, rowIndex }) {
|
if (rowIndex % 2 == 0) {
|
return "statistics-warning-row1";
|
} else {
|
return "statistics-warning-row";
|
}
|
},
|
getRowId(row) {
|
return row.id
|
},
|
|
}
|
}
|
</script>
|
<style scoped="">
|
.app-container {
|
background-color: #FEF7FC;
|
width: 100%;
|
height: 100%;
|
}
|
|
/deep/ .el-table .statistics-warning-row {
|
background: #E0EEFE;
|
|
}
|
|
/deep/ .el-table .statistics-warning-row1 {
|
background: #FFEFF2;
|
}
|
|
.button-container {
|
text-align: right;
|
display: flex;
|
justify-content: flex-end;
|
align-items: center;
|
flex-grow: 1;
|
}
|
|
.el-table {
|
border-radius: 14px 14px 14px 14px;
|
}
|
|
/* :deep(.el-table td:first-child) {
|
border-left: 1px solid #e2ecfa;
|
border-radius: 8px 0 0 8px;
|
padding: 2px;
|
z-index: 999;
|
background: #fff;
|
}
|
:deep(.el-table td:last-child) {
|
border-right: 1px solid #e2ecfa;
|
border-radius: 0 8px 8px 0;
|
z-index: 999;
|
padding: 2px;
|
background: #fff;
|
} */
|
</style>
|