From 0ac2d43fce4d74f6eea5a51a2e16af4e6a536c7c Mon Sep 17 00:00:00 2001 From: WXL <1785969728@qq.com> Date: 星期三, 14 八月 2024 14:19:24 +0800 Subject: [PATCH] 11 --- src/views/project/components/orgselect/index.vue | 16 +++++++++++++++- 1 files changed, 15 insertions(+), 1 deletions(-) diff --git a/src/views/project/components/orgselect/index.vue b/src/views/project/components/orgselect/index.vue index f33b57f..be20106 100644 --- a/src/views/project/components/orgselect/index.vue +++ b/src/views/project/components/orgselect/index.vue @@ -130,7 +130,6 @@ renderSelecter() { this.pageData.PageSize = 100; this.myValue = this.value; - this.getdataList(); }, @@ -144,6 +143,21 @@ }; //鎼滅储鏉′欢 let userType = { userType: "1" }; + if (this.orgType == 4) { + let arr = this.$store.state.user.organization; + this.dataList.push(...arr); + if (this.isAll) { + let all = { + organizationid: "", + organizationname: "鍏ㄩ儴" + }; + this.dataList.unshift(all); + } + this.tempList = this.dataList.map(item => item); + this.focusEvents.loaded = true; + this.isLoading = false; + return; + } listOrganization(searchData) .then(response => { -- Gitblit v1.9.3