参会人员编辑

This commit is contained in:
shenyanpei
2021-12-28 17:25:35 +08:00
parent 9fae8c5fe5
commit 36c41a732f
3 changed files with 84 additions and 30 deletions
+34 -11
View File
@@ -103,10 +103,10 @@
<!-- 会议编辑抽屉 -->
<el-drawer
title="编辑人员信息"
title="编辑会议信息"
:visible.sync="meetFlag"
:before-close="falseDrawer"
size="600px"
size="800px"
>
<div class="content_form" style="height: calc(100% - 20px);overflow-y: auto">
<el-form class="label-input-form" ref="editMeetForm" :model="editMeetForm" label-width="80px">
@@ -241,9 +241,9 @@
<!-- 编辑框内的人员的table上的编辑 -->
<el-drawer
title="编辑人员信息"
:title="dialogTitle"
:visible.sync="editFlag"
size="500px"
size="600px"
:before-close="falseDrawerTab"
custom-class="demo-drawer"
>
@@ -339,6 +339,7 @@ export default {
// 议题选中时储存数组
deleteTable: [],
loading: false,
dialogTitle: ''
}
},
mounted() {
@@ -619,10 +620,19 @@ export default {
fillFile: this.fillFile = []
}
this.editMeetForm.attend.push(list)
this.dialogTitle = '新增人员信息'
this.add_partDialog(list)
},
add_partDialog(row) {
// 用来储存取消时原来的数据,防止取消时修改
localStorage.setItem('obj', JSON.stringify(row))
this.editForm = row
this.editFlag = true
},
// 编辑按钮
edit_partForm(row) {
this.dialogTitle = '编辑人员信息'
// 用来储存取消时原来的数据,防止取消时修改
localStorage.setItem('obj', JSON.stringify(row))
this.editForm = row
@@ -679,13 +689,26 @@ export default {
this.editFlag = false
},
falseDrawerTab() {
let Item = JSON.parse(localStorage.getItem('obj'))
this.editForm.fillPeopleId = Item.fillPeopleId
this.editForm.fillPeople = Item.fillPeople
this.editForm.fillUnit = Item.fillUnit
this.editForm.fillDept = Item.fillDept
this.editForm.fillTel = Item.fillTel
this.editForm.fillMail = Item.fillMail
if (this.dialogTitle = '新增人员信息') {
let Items = JSON.parse(localStorage.getItem('objs'))
this.editMeetForm.attend = Items.attend
this.editMeetForm.content = Items.content
this.editMeetForm.date = Items.date
this.editMeetForm.files = Items.files
this.editMeetForm.id = Items.id
this.editMeetForm.partPeople = Items.partPeople
this.editMeetForm.place = Items.place
this.editMeetForm.title = Items.title
this.editMeetForm.type = Items.type
} else {
let Item = JSON.parse(localStorage.getItem('obj'))
this.editForm.fillPeopleId = Item.fillPeopleId
this.editForm.fillPeople = Item.fillPeople
this.editForm.fillUnit = Item.fillUnit
this.editForm.fillDept = Item.fillDept
this.editForm.fillTel = Item.fillTel
this.editForm.fillMail = Item.fillMail
}
this.editFlag = false
},