mirror of
https://github.com/FatttSnake/Pinnacle-OA.git
synced 2026-04-05 15:01:23 +08:00
modify the function of addNotice
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user