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(() => { })
}
}
}