From 984fbf5c5516668040948c78dd52496476acfd3f Mon Sep 17 00:00:00 2001 From: yunuo970428 <405378304@qq.com> Date: Tue, 19 Dec 2023 15:20:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=BB=9F=E8=AE=A1=E5=8F=82?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/api/statisticalparameter/statisticalparameter.js | 9 +++++++++ .../views/statisticalparameter/statisticalparameter.vue | 9 ++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/anrui-system-ui/src/api/statisticalparameter/statisticalparameter.js b/anrui-system-ui/src/api/statisticalparameter/statisticalparameter.js index fc1585f5fb..a1ee2b2cab 100644 --- a/anrui-system-ui/src/api/statisticalparameter/statisticalparameter.js +++ b/anrui-system-ui/src/api/statisticalparameter/statisticalparameter.js @@ -43,3 +43,12 @@ export function getButtonPermissions(data) { headers: { 'Content-Type': 'application/json' } }) } + +// 根据当前登录人orgSidPath(全路径sid)查询分公司 +export function getOrgSidByPath(data) { + return request({ + url: '/portal/v1/sysstafforg/getOrgSidByPath', + method: 'get', + params: data + }) +} diff --git a/anrui-system-ui/src/views/statisticalparameter/statisticalparameter.vue b/anrui-system-ui/src/views/statisticalparameter/statisticalparameter.vue index c5fd7dc25b..e8e7d61b44 100644 --- a/anrui-system-ui/src/views/statisticalparameter/statisticalparameter.vue +++ b/anrui-system-ui/src/views/statisticalparameter/statisticalparameter.vue @@ -61,7 +61,7 @@ import Pagination from '@/components/pagination' import pageye from '@/components/pagination/pageye' import ButtonBar from '@/components/ButtonBar' -import { listPage, getButtonPermissions } from '@/api/statisticalparameter/statisticalparameter' +import { listPage, getButtonPermissions, getOrgSidByPath } from '@/api/statisticalparameter/statisticalparameter' import statisticalparameterAdd from './statisticalparameterAdd' export default { @@ -99,6 +99,7 @@ export default { total: 0, params: { useOrgName: '', + useOrgSid: '', orgPath: '' } } @@ -151,6 +152,11 @@ export default { // 查询列表信息 getList() { this.listLoading = true + getOrgSidByPath({ orgPath: window.sessionStorage.getItem('defaultOrgPath') }).then((res) => { + if (res.success) { + this.listQuery.params.useOrgSid = res.data + } + }) this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath') listPage(this.listQuery).then(response => { this.listLoading = false @@ -176,6 +182,7 @@ export default { total: 0, params: { useOrgName: '', + useOrgSid: '', orgPath: '' } }