参会人员编辑

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
@@ -295,7 +295,7 @@
</div>
</div>
<el-drawer
title="编辑人员信息"
:title="isTitle"
:visible.sync="editFlag"
size="500px"
>
@@ -478,6 +478,7 @@ export default {
acceptShow: false,
roleShowflag: false,
nodeList: [],
isTitle: ''
}
},
computed: {
@@ -539,6 +540,8 @@ export default {
fillFile: this.fillFile = []
}
this.rh_pageData.myPartRole.push(list)
this.isTitle = '新增人员信息'
this.add_partDialog(list)
},
fillFile_up(row) {
@@ -625,8 +628,17 @@ export default {
handleClose() {
this.upDialog = false
},
add_partDialog(row) {
// 用来储存取消时原来的数据,防止取消时修改
localStorage.setItem('obj', JSON.stringify(row))
this.fileListData = row
this.reData = this.fileListData.fillFile
this.editForm = row
this.editFlag = true
},
// 编辑按钮
edit_partForm(row) {
this.isTitle = '编辑人员信息'
// 用来储存取消时原来的数据,防止取消时修改
localStorage.setItem('obj', JSON.stringify(row))
this.fileListData = row
@@ -639,15 +651,19 @@ export default {
this.editFlag = false
},
falseDrawer() {
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.fillPost = Item.fillPost
this.editForm.fillTel = Item.fillTel
this.editForm.fillMail = Item.fillMail
this.editForm.fillFile = Item.fillFile
if (this.isTitle === '新增人员信息') {
this.getData()
} 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.fillPost = Item.fillPost
this.editForm.fillTel = Item.fillTel
this.editForm.fillMail = Item.fillMail
this.editForm.fillFile = Item.fillFile
}
this.editFlag = false
},
// 编辑框选人
@@ -257,7 +257,7 @@
</div>
</div>
<el-drawer
title="编辑人员信息"
:title="isTitle"
:visible.sync="editFlag"
size="500px"
custom-class="demo-drawer"
@@ -356,7 +356,8 @@ export default {
fillDept: '',
fillTel: '',
fillMail: '',
}
},
isTitle: ''
}
},
computed: {
@@ -416,21 +417,35 @@ export default {
fillMail: this.fillMail,
}
this.ch_pageData.myPartRole.push(list)
this.isTitle = '新增人员信息'
this.add_partDialog(list)
},
// 编辑框确认按钮
OkDrawer() {
this.editFlag = false
},
falseDrawer() {
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.isTitle = '新增人员信息') {
this.getData()
} 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
},
add_partDialog(row) {
// 用来储存取消时原来的数据,防止取消时修改
localStorage.setItem('obj', JSON.stringify(row))
this.fileListData = row
this.editForm = row
this.editFlag = true
},
/** 入会人员编辑 */
edit_partForm(row) {
// 用来储存取消时原来的数据,防止取消时修改