法规预警推送加参数
This commit is contained in:
@@ -63,15 +63,17 @@
|
|||||||
departId: '',
|
departId: '',
|
||||||
defaultExpandedKeys: [],
|
defaultExpandedKeys: [],
|
||||||
submitLoading: false,
|
submitLoading: false,
|
||||||
visibleTree: false
|
visibleTree: false,
|
||||||
|
flag: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
getPush(data) {
|
getPush(data, flag) {
|
||||||
this.tableKey = data
|
this.tableKey = data
|
||||||
|
this.flag = flag
|
||||||
this.searchModel = ''
|
this.searchModel = ''
|
||||||
this.visible = true
|
this.visible = true
|
||||||
this.visibleTree = false
|
this.visibleTree = false
|
||||||
@@ -99,10 +101,20 @@
|
|||||||
this.visibleTree = false
|
this.visibleTree = false
|
||||||
},
|
},
|
||||||
handleSubmit() {
|
handleSubmit() {
|
||||||
let query = {
|
let query = {}
|
||||||
documentIds: this.tableKey.join(','),
|
if (this.flag) {
|
||||||
userIds: this.userIds.join(','),
|
query = {
|
||||||
departIds: this.userIds.join(',')
|
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.submitLoading = true
|
||||||
this.confirmLoading = true
|
this.confirmLoading = true
|
||||||
|
|||||||
@@ -234,7 +234,13 @@
|
|||||||
handleCompare() {
|
handleCompare() {
|
||||||
if (this.selectedRowKeys.length > 0) {
|
if (this.selectedRowKeys.length > 0) {
|
||||||
this.$nextTick(() => {
|
this.$nextTick(() => {
|
||||||
this.$refs.libraryPushRef.getPush(JSON.parse(JSON.stringify(this.selectedRowKeys)))
|
let flag = ''
|
||||||
|
if (this.activeTab == this.$t('ImplementationDate')) {
|
||||||
|
flag = 1
|
||||||
|
} else {
|
||||||
|
flag = 2
|
||||||
|
}
|
||||||
|
this.$refs.libraryPushRef.getPush(JSON.parse(JSON.stringify(this.selectedRowKeys)),flag)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
this.$message.warning(this.$t('selectLeastOne'))
|
this.$message.warning(this.$t('selectLeastOne'))
|
||||||
|
|||||||
Reference in New Issue
Block a user