法规预警推送加参数

This commit is contained in:
范强强
2022-09-01 10:55:14 +08:00
parent 531a88752a
commit b228cb9e19
2 changed files with 25 additions and 7 deletions
+18 -6
View File
@@ -63,15 +63,17 @@
departId: '',
defaultExpandedKeys: [],
submitLoading: false,
visibleTree: false
visibleTree: false,
flag: ''
}
},
mounted() {
},
methods: {
getPush(data) {
getPush(data, flag) {
this.tableKey = data
this.flag = flag
this.searchModel = ''
this.visible = true
this.visibleTree = false
@@ -99,10 +101,20 @@
this.visibleTree = false
},
handleSubmit() {
let query = {
documentIds: this.tableKey.join(','),
userIds: this.userIds.join(','),
departIds: this.userIds.join(',')
let query = {}
if (this.flag) {
query = {
documentIds: this.tableKey.join(','),
userIds: this.userIds.join(','),
departIds: this.userIds.join(','),
flag: this.flag
}
} else {
query = {
documentIds: this.tableKey.join(','),
userIds: this.userIds.join(','),
departIds: this.userIds.join(',')
}
}
this.submitLoading = true
this.confirmLoading = true