diff --git a/src/views/modules/custom/evaluatedept.vue b/src/views/modules/custom/evaluatedept.vue index 7aefd292..ea3d1d78 100644 --- a/src/views/modules/custom/evaluatedept.vue +++ b/src/views/modules/custom/evaluatedept.vue @@ -11,6 +11,9 @@ {{ $t('query') }} + + 同步 + {{ $t('add') }} @@ -84,6 +87,27 @@ export default { manageHandle (deptId) { this.$parent.selectComponent = 'Evaluateofficer' this.$router.push({ path: '/custom-evaluatedeptroute', query: { deptId: deptId } }) + }, + 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(`/custom/evaluatedept/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(() => { }) } } } diff --git a/src/views/modules/custom/evaluateinfo.vue b/src/views/modules/custom/evaluateinfo.vue index 553b9c32..d3c9a249 100644 --- a/src/views/modules/custom/evaluateinfo.vue +++ b/src/views/modules/custom/evaluateinfo.vue @@ -71,7 +71,7 @@ - +