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) }