组织机构:
-当前用户类型:
diff --git a/src/pages/workbench/fwzc_fwcs.vue b/src/pages/workbench/fwzc_fwcs.vue index d254a9cf76d48c117f3eb05c9a38f7a3539ac84c..1d41c054ab24e97536955e2e619e1d67acf91bf5 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(); } };