diff --git a/jero-web/src/components/SelectedBy/index.vue b/jero-web/src/components/SelectedBy/index.vue index 7ef8d1da8..a2bdebb61 100644 --- a/jero-web/src/components/SelectedBy/index.vue +++ b/jero-web/src/components/SelectedBy/index.vue @@ -48,10 +48,10 @@ type: Object, default: {} }, - title:{ + title: { type: String, - default:'' - }, + default: '' + } }, data() { return { @@ -102,7 +102,12 @@ this.visibleTree = false }, handleSubmit() { - this.$emit('SelectedByForm',this.userIds.join(',')) + if (this.userIds && this.userIds.length > 0) { + this.submitLoading = true + this.$emit('SelectedByForm', this.userIds.join(',')) + } else { + this.$message.warning(this.$t('selectLeastOne')) + } }, onSearch(e) { this.gData = [] @@ -171,7 +176,7 @@ .drawer-bootom-button { position: absolute; bottom: 0; - z-index:100; + z-index: 100; width: 100%; border-top: 1px solid #e8e8e8; padding: 10px 16px; diff --git a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue index 9295b5ed9..50b3336ed 100644 --- a/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue +++ b/jero-web/src/views/businessSupport/problemKnowledgeBase/components/problemKnowledgeBaseView.vue @@ -3,9 +3,9 @@
- - - + + + {{queryForm.title}}
@@ -156,8 +156,23 @@ }, methods: { ...mapGetters(['userInfo']), - SelectedByForm() { - + SelectedByForm(userIds) { + let query = { + userIds: userIds, + departIds: userIds, + problemKnowledgeBaseId: this.queryForm.id, + problemKnowledgeBaseTitle: this.queryForm.title + } + postAction('/problemKnowledgeBase/problemKnowledgeBaseEO/forward', query).then((res) => { + if (res.success) { + this.$message.success(this.$t('OperationSuccessful')) + this.$refs.SelectedByRef.visible = false + this.$refs.SelectedByRef.submitLoading = false + } else { + this.$message.warning(this.$t('operationFailed')) + this.$refs.SelectedByRef.submitLoading = false + } + }) }, queryById() { let query = {