|
|
@@ -69,6 +69,8 @@
|
|
|
<div>{{ parseTime(scope.row.beginTime) }}——{{ parseTime(scope.row.endTime) }}</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
+ <el-table-column prop="emcee" label="主持人" width="100"></el-table-column>
|
|
|
+ <el-table-column prop="recorder" label="记录人" width="100"></el-table-column>
|
|
|
<el-table-column label="会议类型" prop="meetingType" width="80">
|
|
|
<template slot-scope="scope">
|
|
|
<!--会议类型(1-周例会,2-项目会议,3-实施会议,4-其他会议)-->
|
|
|
@@ -91,14 +93,15 @@
|
|
|
<span>{{ parseTime(scope.row.createTime) }}</span>
|
|
|
</template>
|
|
|
</el-table-column>-->
|
|
|
- <el-table-column label="操作" prop="op" width="250">
|
|
|
+ <el-table-column label="操作" prop="op" width="300">
|
|
|
<template slot-scope="scope">
|
|
|
-
|
|
|
<el-button v-if="scope.row.status!==2" size="mini" type="primary" @click="handleEdit(scope.row)">编辑
|
|
|
</el-button>
|
|
|
- <el-button v-if="scope.row.status===0" size="mini" type="danger" @click="deleteMeeting( scope.row)">删除
|
|
|
+ <el-button v-if="scope.row.status===0" size="mini" type="danger" @click="deleteMeeting(scope.row)">删除
|
|
|
+ </el-button>
|
|
|
+ <el-button v-if="scope.row.status===0" size="mini" type="success" @click="startMeeting(scope.row)">开始会议
|
|
|
</el-button>
|
|
|
- <el-button v-if="scope.row.status===0" size="mini" type="success" @click="startMeeting( scope.row)">开始会议
|
|
|
+ <el-button v-if="scope.row.status===1" size="mini" type="warning" @click="endMeetingClick(scope.row)">结束会议
|
|
|
</el-button>
|
|
|
<el-button v-if="scope.row.status!==0 " type="success" size="mini" @click="meetingDetail(scope.row)">会议详情
|
|
|
</el-button>
|
|
|
@@ -179,9 +182,9 @@
|
|
|
placeholder="选择会议结束时间" @change="chooseMeetingEndTime">
|
|
|
</el-date-picker>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="会议时长:">
|
|
|
- <el-select v-model="editForm.duration" placeholder="请选择会议时长" clearable @change="chooseMeetingTime">
|
|
|
- <el-option label="15分钟" :value="15" key="15分钟">15分钟</el-option>
|
|
|
+ <el-form-item label="会议时长:" :rules="[{required:true,message: '请选择会议时长'}]" >
|
|
|
+ <el-select v-model="editForm.duration" placeholder="请选择会议时长" @change="chooseMeetingTime">
|
|
|
+ <el-option label="15分钟" :value="15" key="15分钟" >15分钟</el-option>
|
|
|
<el-option label="30分钟" :value="30" key="30分钟">30分钟</el-option>
|
|
|
<el-option label="45分钟" :value="45" key="45分钟">45分钟</el-option>
|
|
|
<el-option label="1小时" :value="60" key="1小时">1小时</el-option>
|
|
|
@@ -325,7 +328,6 @@
|
|
|
<el-input size="mini" v-model="scope.row.optionss" type="textarea"
|
|
|
:autosize="{ minRows: 4, maxRows: 10}"></el-input>
|
|
|
</template>
|
|
|
-
|
|
|
</el-table-column>
|
|
|
<el-table-column label="执行人" width="180">
|
|
|
<template slot-scope="scope">
|
|
|
@@ -415,7 +417,13 @@ import {
|
|
|
getMeetingsByPage,
|
|
|
deleteMeeting,
|
|
|
getMeetingDetailsById,
|
|
|
- deleteMeetingContentById, saveMeetingOptionss, confirmMeetings, startMeetingById, meetingAuthById, meetingDeleteAuth
|
|
|
+ deleteMeetingContentById,
|
|
|
+ saveMeetingOptionss,
|
|
|
+ confirmMeetings,
|
|
|
+ startMeetingById,
|
|
|
+ meetingAuthById,
|
|
|
+ meetingDeleteAuth,
|
|
|
+ endMeeting
|
|
|
} from '@/api/meeting/meeting'
|
|
|
import {getDeptUserTree} from '@/api/system/user'
|
|
|
import {getProjectList} from "@/api/task/project";
|
|
|
@@ -517,7 +525,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
getDeptUserTrees() {
|
|
|
- getDeptUserTree('').then(res => {
|
|
|
+ getDeptUserTree('1').then(res => {
|
|
|
this.userList = res.data
|
|
|
});
|
|
|
},
|
|
|
@@ -615,18 +623,24 @@ export default {
|
|
|
this.$refs["form"].validate((valid) => {
|
|
|
if (valid) {
|
|
|
let data = this.editForm;
|
|
|
- let times=[]
|
|
|
- times.push(this.editForm.startTime)
|
|
|
- times.push(this.editForm.endTime)
|
|
|
- this.editForm.time=times
|
|
|
- addMeeting(data).then(response => {
|
|
|
- this.$message({
|
|
|
- message: '操作成功!',
|
|
|
- type: 'success'
|
|
|
+ let duration =data.duration;
|
|
|
+ if(duration===undefined || duration===null){
|
|
|
+ this.$message.error("请选择会议时长!")
|
|
|
+ return
|
|
|
+ }else{
|
|
|
+ let times=[]
|
|
|
+ times.push(this.editForm.startTime)
|
|
|
+ times.push(this.editForm.endTime)
|
|
|
+ this.editForm.time=times
|
|
|
+ addMeeting(data).then(response => {
|
|
|
+ this.$message({
|
|
|
+ message: '操作成功!',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ this.closeDialog();
|
|
|
+ this.getData(this.formInline);
|
|
|
});
|
|
|
- this.closeDialog();
|
|
|
- this.getData(this.formInline);
|
|
|
- });
|
|
|
+ }
|
|
|
} else {
|
|
|
return false;
|
|
|
}
|
|
|
@@ -651,7 +665,7 @@ export default {
|
|
|
//删除会议
|
|
|
let id = row.id;
|
|
|
//验证会议删除权限--创建者才能删除
|
|
|
- meetingDeleteAuth(id).then(res=>{
|
|
|
+ meetingAuthById(id).then(res=>{
|
|
|
if (res.success === false) {
|
|
|
this.$message.error(res.data)
|
|
|
}else{
|
|
|
@@ -790,6 +804,22 @@ export default {
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
+ endMeetingClick(row){
|
|
|
+ let id=row.id;
|
|
|
+ meetingAuthById(id).then(res=> {
|
|
|
+ if (res.success === false) {
|
|
|
+ this.$message.error(res.data)
|
|
|
+ }else{
|
|
|
+ endMeeting(id).then(res => {
|
|
|
+ this.$message({
|
|
|
+ message: '操作成功!',
|
|
|
+ type: 'success'
|
|
|
+ });
|
|
|
+ this.getData(this.formInline);
|
|
|
+ })
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
openUsers() {
|
|
|
this.usersVisble = true
|
|
|
},
|