diff --git a/jero-web/src/components/libraryPush/index.vue b/jero-web/src/components/libraryPush/index.vue index 37bcd3bdd..217c3a3b8 100644 --- a/jero-web/src/components/libraryPush/index.vue +++ b/jero-web/src/components/libraryPush/index.vue @@ -13,9 +13,10 @@
{{$t('cancel')}} - {{$t('submit')}} + {{$t('submit')}}
@@ -56,7 +57,9 @@ tableKey: [], userIds: [], departId: '', - defaultExpandedKeys:[], + defaultExpandedKeys: [], + submitLoading: false, + visibleTree:false, } }, mounted() { @@ -66,6 +69,7 @@ getPush(data) { this.tableKey = data this.visible = true + this.visibleTree = true this.departId = '' this.queryDepartUserTreeList() }, @@ -83,6 +87,7 @@ }, handleCancel() { this.visible = false + this.visibleTree = false }, //String departIds,String userIds,String documentIds handleSubmit() { @@ -91,13 +96,16 @@ userIds: this.userIds.join(','), departIds: this.userIds.join(',') } + this.submitLoading = true this.confirmLoading = true getAction(this.url.pullMessage, query).then((res) => { this.confirmLoading = false + this.submitLoading = false if (res.success) { this.$message.success(res.message) this.userIds = [] this.visible = false + this.visibleTree = false this.$emit('clearSelected') eventBUs.$emit('searchReset') } else { @@ -109,13 +117,13 @@ const value = e.target.value }, queryDepartUserTreeList() { - this.confirmLoading = true let gData = JSON.parse(JSON.stringify(this.gData)) if (gData && gData.length > 0) { gData = JSON.stringify(gData) - }else { + } else { gData = '' } + this.confirmLoading = true postAction('sys/user/queryDepartUserTreeList', { departId: this.departId, json: gData