1
0
mirror of https://github.com/FatttSnake/Pinnacle-OA.git synced 2026-04-05 06:51:23 +08:00

modify the function of addNotice

This commit is contained in:
cccccyb
2023-06-08 17:27:28 +08:00
parent ba68af5f77
commit 671bc53660

View File

@@ -155,7 +155,7 @@ export default {
}
},
methods: {
submitForm() {
async submitForm() {
const receiveId = []
if (this.addData.receivers.length > 0) {
for (let i = 0; i < this.addData.receivers.length; i++) {
@@ -163,7 +163,7 @@ export default {
}
}
this.addData.receivers = receiveId
this.$refs.addData.validate((valid) => {
await this.$refs.addData.validate((valid) => {
if (valid) {
if (noticeStore.editFlag === true) {
// 编辑操作
@@ -176,7 +176,7 @@ export default {
return false
}
})
this.resetForm()
await this.resetForm()
},
closeForm() {
noticeStore.$patch((state) => {