From d1d626550d738e8ef5040fa01e92c7f6848f37f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=B9=8F=E9=A3=9E?= Date: Thu, 20 Feb 2020 09:41:45 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B9=B2=E9=83=A8=E8=AF=84=E4=BB=B7=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/custom/evaluatedept.vue | 24 +++++++++++++++++++++++ src/views/modules/custom/evaluateinfo.vue | 2 +- 2 files changed, 25 insertions(+), 1 deletion(-) 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 @@ - +