From d265529749ab0eea7eec61da3238bcc231d8d639 Mon Sep 17 00:00:00 2001 From: liudianxin Date: Mon, 15 Jun 2020 16:37:27 +0800 Subject: [PATCH] =?UTF-8?q?=E6=89=80=E5=B1=9E=E7=BB=84=E7=BB=87=E5=86=99?= =?UTF-8?q?=E6=AD=BB=EF=BC=8C=E4=B8=AA=E4=BA=BA=E7=BB=84=E7=BB=87=E4=B8=8D?= =?UTF-8?q?=E5=8F=AF=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/user/user_info.vue | 2 +- src/pages/workbench/fwzc_fwcs.vue | 33 +++++++++++++------------------ 2 files changed, 15 insertions(+), 20 deletions(-) diff --git a/src/pages/user/user_info.vue b/src/pages/user/user_info.vue index a8610d1..b9e2c7a 100644 --- a/src/pages/user/user_info.vue +++ b/src/pages/user/user_info.vue @@ -53,7 +53,7 @@

组织机构:

- +

当前用户类型:

diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue index d254a9c..1d41c05 100644 --- a/src/pages/workbench/fwzc_fwcs.vue +++ b/src/pages/workbench/fwzc_fwcs.vue @@ -302,14 +302,7 @@

所属组织:

- - - +

服务封面:

@@ -521,7 +514,6 @@ export default { }, cover: [], optionsArea: [], - optionsOrganization: [], datasSj: [], datasZh: [], datasQqcs: [], @@ -685,6 +677,7 @@ export default { this.request_fields = requestData; this.response_fields = responseData; this.jcxxtx = true; + this.getOrganization(); } else if (this.requestRules != 0) { this.$message.error("请完善请求参数信息中的字段名称"); } else if (this.responseRules != 0) { @@ -718,6 +711,18 @@ export default { this.datasFhcs = this.response_fields; this.jcxxtx = false; }, + getOrganization() { + let query = { + id: this.$store.state.userInfo.user_id + }; + this.$api.user.getUserDetail(query).then(request => { + if (request.data.success == 1) { + this.form.origin = request.data.data.department; + } else { + console.log(response.data.errMsg); + } + }); + }, registe() { this.$refs.form.validate(valid => { if (valid) { @@ -795,15 +800,6 @@ export default { this.resSuccess = false; }, changeZhfwQqt() {}, - getOrg() { - this.$api.authority.getOrganizationList().then(response => { - if (response.data.success == 1) { - this.optionsOrganization = response.data.data; - } else { - console.log(response.data.errMsg); - } - }); - }, getArea() { this.$api.workbench.getServiceAreaList().then(response => { if (response.data.success == 1) { @@ -815,7 +811,6 @@ export default { } }, mounted() { - this.getOrg(); this.getArea(); } }; -- 2.26.0