From a2cf2446c833a914949af5ab9599251255f16f5b Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Fri, 6 Mar 2020 22:10:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9E=B6=E6=9E=84=E7=AE=A1=E7=90=86=EF=BC=8C?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/organize/sysdeptmanagement.vue | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/src/views/modules/organize/sysdeptmanagement.vue b/src/views/modules/organize/sysdeptmanagement.vue index 63a567f4..8e9957ed 100644 --- a/src/views/modules/organize/sysdeptmanagement.vue +++ b/src/views/modules/organize/sysdeptmanagement.vue @@ -8,6 +8,9 @@ {{ $t('query') }} + + 同步 + @@ -56,6 +59,27 @@ export default { } this.options = res.data.options }).catch(() => {}) + }, + deptUpdate () { + this.$confirm(this.$t('prompt.info', { 'handle': this.$t('update') }), this.$t('prompt.title'), { + confirmButtonText: this.$t('confirm'), + cancelButtonText: this.$t('cancel'), + type: 'warning' + }).then(() => { + this.$http.get(`/cloudAnalysis/metaSysdeptManager/deptUpdate`).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.getDataList() + } + }) + }).catch(() => { }) + }).catch(() => { }) } } }