<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 @click="newRequest" 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="200" 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" icon="el-icon-edit" @click="handleUpdate(scope.row)">修改</el-button>
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)">撤回</el-button>
|
<el-button size="mini" type="text" icon="el-icon-d-arrow-right" @click="handleCheck(scope.row)">查看详情</el-button>
|
</div>
|
</template>
|
</el-table-column>
|
|
</el-table>
|
|
|
|
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
|
<el-form ref="elForm" :model="formData" :rules="rules" size="medium" label-width="100px">
|
|
<el-form-item label="时间" prop="timeSpan">
|
<el-date-picker v-model="formData.timeSpan" type="datetimerange" range-separator="至" start-placeholder="开始日期"
|
end-placeholder="结束日期" value-format="yyyy-MM-dd HH:mm:ss">
|
</el-date-picker>
|
</el-form-item>
|
|
</el-upload>
|
</el-form>
|
<div slot="footer" class="dialog-footer">
|
<el-button type="primary" @click="submitDataScope">保 存</el-button>
|
<el-button @click="cancel">取 消</el-button>
|
</div>
|
</el-dialog>
|
|
</div>
|
</template>
|
<script>
|
export default {
|
data() {
|
return {
|
open: false,
|
title: "",
|
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'
|
},
|
],
|
formData:{
|
timeSpan: undefined,
|
},
|
queryParams1: {
|
pageNum: 1,
|
pageSize: 10,
|
happenTime: undefined,
|
people: undefined,
|
address: undefined,
|
title: undefined,
|
remark: undefined
|
}
|
}
|
},
|
methods: {
|
|
newRequest(){
|
this.open = true;
|
this.title = "新申请"
|
},
|
cancel() {
|
this.open = false;
|
// this.reset();
|
},
|
submitDataScope() {
|
console.log(this.formData.timeSpan)
|
},
|
|
tableRowClassName({
|
row,
|
rowIndex
|
}) {
|
if (rowIndex % 2 == 0) {
|
return "statistics-warning-row1";
|
} else {
|
return "statistics-warning-row";
|
}
|
},
|
getRowId(row) {
|
return row.id
|
},
|
|
// 修改
|
handleUpdate(row) {
|
const id = row.id;
|
let jd = true
|
|
this.$router.push({
|
path:"/meeting/index/meetingInfo/" + id,
|
query:{
|
detail:jd
|
}
|
});
|
},
|
// 查看详细信息
|
handleCheck(row){
|
const id = row.id;
|
this.$router.push("/meeting/index/meetingInfo/" + id);
|
},
|
/** 删除按钮操作 */
|
handleDelete(row) {
|
const Ids = row.id || this.ids;
|
this.$modal.confirm('是否确认删除数据项?').then(function() {
|
return delSelfEconomy(Ids);
|
}).then(() => {
|
this.getList();
|
this.$modal.msgSuccess("删除成功");
|
}).catch(() => {});
|
},
|
|
}
|
}
|
</script>
|
<style scoped="">
|
.app-container {
|
background-color: #FEF7FC;
|
}
|
|
/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;
|
}
|
|
.form{
|
background:center/11% no-repeat url('../../assets/icons/add1.png') ;
|
|
}
|
</style>
|