From dfe3fcdf15d90eea0a60ed25ff52a944c2a9878f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B2=E6=A0=91=E9=80=9A?= <1976590620@qq.com> Date: Wed, 4 Mar 2020 16:35:41 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../custom/gridoperatorinfo-add-or-update.vue | 14 +------------- src/views/modules/custom/gridoperatorinfo.vue | 2 +- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/src/views/modules/custom/gridoperatorinfo-add-or-update.vue b/src/views/modules/custom/gridoperatorinfo-add-or-update.vue index eedc7601..6db61b07 100755 --- a/src/views/modules/custom/gridoperatorinfo-add-or-update.vue +++ b/src/views/modules/custom/gridoperatorinfo-add-or-update.vue @@ -155,7 +155,6 @@ export default { methods: { init () { this.getByLoginUser() - this.getDutyCategory() this.uploadUrl = `${window.SITE_CONFIG['apiURL']}/oss/file/upload?token=${Cookies.get('token')}` this.visible = true this.$nextTick(() => { @@ -214,18 +213,7 @@ export default { }, getByLoginUser () { this.$http - .get(`/sys/dept/party/getDeptTree`) - .then(({ data: res }) => { - if (res.code !== 0) { - return this.$message.error(res.msg) - } - this.options = res.data.options - }) - .catch(() => { }) - }, - getDutyCategory () { - this.$http - .get(`/sys/dept/party/getDeptTree`) + .get(`/sys/user/deptOptions/getByLoginUser`) .then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) diff --git a/src/views/modules/custom/gridoperatorinfo.vue b/src/views/modules/custom/gridoperatorinfo.vue index e2d0beda..b75441c2 100755 --- a/src/views/modules/custom/gridoperatorinfo.vue +++ b/src/views/modules/custom/gridoperatorinfo.vue @@ -177,7 +177,7 @@ export default { }, methods: { getOptions () { - this.$http.get(`/sys/dept/party/getDeptTreeForEpiDemic`).then(({ data: res }) => { + this.$http.get(`/sys/user/deptOptions/getByLoginUser`).then(({ data: res }) => { if (res.code !== 0) { return this.$message.error(res.msg) }