<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;">
|
</div>
|
</h1>
|
<hr>
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch">
|
|
<el-form-item label="时间" prop="happenTime">
|
<el-date-picker
|
v-model="dateRange"
|
style="width: 240px;
|
height: 35px;
|
border-radius: 16px 16px 16px 16px;
|
opacity: 0.5;"
|
value-format="yyyy-MM-dd HH:mm:ss"
|
type="daterange"
|
range-separator="-"
|
start-placeholder="开始日期"
|
end-placeholder="结束日期"
|
></el-date-picker>
|
</el-form-item>
|
<el-form-item label="地点" prop="place" >
|
<el-input
|
v-model="queryParams.place"
|
placeholder="请输入地点"
|
clearable
|
style="width: 200px;
|
height: 35px;
|
border-radius: 16px 16px 16px 16px;
|
opacity: 0.5;"
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
<el-form-item label="申请部门或家庭" prop="applyApart" >
|
<el-input
|
v-model="queryParams.applyApart"
|
placeholder="请输入申请部门或家庭"
|
clearable
|
style="width: 200px;
|
height: 35px;
|
border-radius: 16px 16px 16px 16px;
|
opacity: 0.5;"
|
@keyup.enter.native="handleQuery"
|
/>
|
</el-form-item>
|
|
<el-form-item>
|
<el-button size="mini" @click="handleQuery" style=" width: 65px; height: 32px;background: #FFDDE3;
|
border-radius: 6px 6px 6px 6px;opacity:1;">搜索</el-button>
|
<el-button size="mini" @click="resetQuery" style=" width: 65px;height: 32px; background: #FFDDE3;
|
border-radius: 6px 6px 6px 6px;
|
opacity: 1;">重置</el-button>
|
</el-form-item>
|
</el-form>
|
|
|
<el-table v-loading="loading" border :data="meetingList" :row-key="getRowId" ref="multipleTable"
|
@selection-change="handleSelectionChange" :row-class-name="tableRowClassName">
|
<!-- <el-table-column type="selection" :reserve-selection="true" width="55" align="center" /> -->
|
|
<el-table-column fixed label="序号" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="80px"/>
|
<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="place" sortable align="center">
|
<template slot-scope="scope">{{
|
scope.row.place ? scope.row.place : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="可容纳人数" prop="conPeople" sortable align="center" min-width="150">
|
<template slot-scope="scope">{{
|
scope.row.conPeople ? scope.row.conPeople : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="参与人数" prop="partPeople" sortable align="center" min-width="120">
|
<template slot-scope="scope">{{
|
scope.row.partPeople ? scope.row.partPeople : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="申请人" prop="applyPerson" sortable align="center" min-width="120">
|
<template slot-scope="scope">{{
|
scope.row.applyPerson ? scope.row.applyPerson : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="申请部门或家庭" prop="applyApart" sortable align="center" min-width="150">
|
<template slot-scope="scope">{{
|
scope.row.applyApart ? scope.row.applyApart : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="开始时间" prop="startTime" sortable align="center"min-width="120">
|
<template slot-scope="scope">{{ scope.row.startTime
|
? scope.row.startTime : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="结束时间" prop="endTime" sortable align="center" min-width="120">
|
<template slot-scope="scope">{{ scope.row.endTime ?
|
scope.row.endTime : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="是否摆放水牌" prop="isPlacebrand" sortable align="center" min-width="150">
|
<template slot-scope="scope">{{scope.row.isPlacebrand===1? '是': '否'}}</template>
|
</el-table-column>
|
|
<el-table-column label="联系人" prop="connPerson" sortable align="center" min-width="100">
|
<template slot-scope="scope">{{ scope.row.connPerson ?
|
scope.row.connPerson : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="联系电话" prop="connPhone" sortable align="center" min-width="100">
|
<template slot-scope="scope">{{ scope.row.connPhone
|
? scope.row.connPhone : '————' }}</template>
|
</el-table-column>
|
|
<el-table-column label="状态" prop="statu" sortable align="center">
|
<!-- <template slot-scope="scope">{{scope.row.statu===1? '同意': '拒绝'}}</template> -->
|
<template slot-scope="scope">{{scope.row.statu ===3 ? '待审批' : (scope.row.statu===1? '同意': '拒绝')}}</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="agree(scope.row)">同意</el-button>
|
<el-button size="mini" type="text" icon="el-icon-delete" @click="refuse(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>
|
<pagination
|
v-show="total>0"
|
:total="total"
|
:page.sync="queryParams.pageNum"
|
:limit.sync="queryParams.pageSize"
|
@pagination="getList"
|
style="background: #FEF7FC;"
|
/>
|
|
</div>
|
</template>
|
<script>
|
import { listRole, getRole, delRole, addRole, updateRole, dataScope, changeRoleStatus, deptTreeSelect } from "@/api/system/role";
|
import { treeselect as menuTreeselect, roleMenuTreeselect } from "@/api/system/menu";
|
|
|
import { Notification, MessageBox, Message, Loading } from 'element-ui'
|
//在system/note/index.js中导入接口函数 --接好了
|
import {listMeeting2,updateStatu} from "@/api/meeting/index";
|
export default {
|
created() {
|
this.getList();
|
},
|
data() {
|
return {
|
formDat1:{
|
id:undefined,
|
statu:undefined
|
},
|
// 显示搜索条件
|
loading: true,
|
showSearch: true,
|
open: false,
|
title: "",
|
// 总条数
|
total: 0,
|
meetingList: [],
|
formDat:{
|
id: undefined,
|
// title: undefined,
|
// place: undefined,
|
// conPeople: undefined,
|
// partPeople: undefined,
|
// applyPerson: undefined,
|
// applyApart: undefined,
|
// startTime: undefined,
|
// endTime: undefined,
|
// happenStartTime: undefined,
|
// happenEndTime: undefined,
|
// isPlacebrand: undefined,
|
// connPerson: undefined,
|
// connPhone: undefined,
|
statu: undefined,
|
// createTime: undefined
|
},
|
queryParams: {
|
pageNum: 1,
|
pageSize: 10,
|
place:undefined,
|
apply_Apart:undefined,
|
start_Time:undefined,
|
applyPerson:undefined
|
},
|
dateRange: [],
|
// 表单校验
|
rules: {},
|
typeOptions: [
|
{
|
value: '1',
|
label: '是',
|
},
|
{
|
value: '0',
|
label: '否',
|
}
|
],
|
typeOptions2: [
|
{
|
value: '1',
|
label: '同意',
|
},
|
{
|
value: '0',
|
label: '拒绝',
|
}
|
],
|
}
|
},
|
methods: {
|
agree(row){
|
// console.log(row,'rowrowrow')
|
this.formDat1.id = row.id
|
this.formDat1.statu = 1
|
// this.$refs['elForm'].validate(valid => {
|
// if (valid) {
|
if (row.id != undefined) {
|
updateStatu(this.formDat1).then(response => {
|
this.$modal.msgSuccess("修改成功");
|
// this.btn = false
|
});
|
} else {
|
this.$modal.msgSuccess("修改失败");
|
}
|
this.getList();
|
this.getList();
|
// }
|
// })
|
},
|
refuse(row){
|
this.formDat1.id = row.id
|
this.formDat1.statu = 0
|
if (row.id != undefined) {
|
updateStatu(this.formDat1).then(response => {
|
this.$modal.msgSuccess("修改成功");
|
// this.btn = false
|
});
|
} else {
|
this.$modal.msgSuccess("修改失败");
|
}
|
this.getList();
|
this.getList();
|
},
|
// 多选框选中数据
|
handleSelectionChange(selection) {
|
this.ids = selection.map(item => item.id)
|
// alert(this.ids)
|
this.single = selection.length!=1
|
this.multiple = !selection.length
|
},
|
getList() {
|
this.loading = true;
|
this.queryParams.happenStartTime = this.dateRange.length > 0 && this.dateRange[0]
|
this.queryParams.happenEndTime = this.dateRange.length > 0 && this.dateRange[1]
|
listMeeting2(this.queryParams).then(response => {
|
this.meetingList = response.data.data;
|
// console.log(this.meetingList,'meetingmeeting')
|
this.total = response.data.total;
|
this.loading = false;
|
}
|
|
);
|
},
|
/** 搜索按钮操作 */
|
handleQuery() {
|
this.queryParams.pageNum = 1;
|
this.getList();
|
},
|
/** 重置按钮操作 */
|
resetQuery() {
|
this.dateRange = [];
|
this.resetForm("queryForm");
|
this.handleQuery();
|
},
|
|
|
|
tableRowClassName({ row, rowIndex }) {
|
|
if (rowIndex % 2 == 0) {
|
return "statistics-warning-row1";
|
} else {
|
return "statistics-warning-row";
|
}
|
},
|
getRowId(row) {
|
return row.id
|
},
|
|
|
// 查看详细信息
|
handleCheck(row){
|
const id = row.id;
|
let jd = true
|
|
this.$router.push({
|
path:"/meeting/approve/approveInfo/" + id,
|
query:{
|
detail:jd
|
}
|
});
|
},
|
|
|
|
|
|
|
}
|
}
|
</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>
|