mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 23:11:24 +08:00
modify the function of addNotice
This commit is contained in:
@@ -155,7 +155,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
submitForm() {
|
async submitForm() {
|
||||||
const receiveId = []
|
const receiveId = []
|
||||||
if (this.addData.receivers.length > 0) {
|
if (this.addData.receivers.length > 0) {
|
||||||
for (let i = 0; i < this.addData.receivers.length; i++) {
|
for (let i = 0; i < this.addData.receivers.length; i++) {
|
||||||
@@ -163,7 +163,7 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
this.addData.receivers = receiveId
|
this.addData.receivers = receiveId
|
||||||
this.$refs.addData.validate((valid) => {
|
await this.$refs.addData.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
if (noticeStore.editFlag === true) {
|
if (noticeStore.editFlag === true) {
|
||||||
// 编辑操作
|
// 编辑操作
|
||||||
@@ -176,7 +176,7 @@ export default {
|
|||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
this.resetForm()
|
await this.resetForm()
|
||||||
},
|
},
|
||||||
closeForm() {
|
closeForm() {
|
||||||
noticeStore.$patch((state) => {
|
noticeStore.$patch((state) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user