From 5aa165156994b1b8a601063fa0a1107d1893ea57 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期四, 19 三月 2026 16:48:13 +0800
Subject: [PATCH] 更新
---
src/views/project/components/orgselect/index.vue | 29 ++++++++++++++++++++++++++---
1 files changed, 26 insertions(+), 3 deletions(-)
diff --git a/src/views/project/components/orgselect/index.vue b/src/views/project/components/orgselect/index.vue
index ad0b8cd..6ae9a76 100644
--- a/src/views/project/components/orgselect/index.vue
+++ b/src/views/project/components/orgselect/index.vue
@@ -43,6 +43,13 @@
value: {
type: [String, Array]
},
+ //鑾峰彇鍒楄〃
+ dataList: {
+ type: Array,
+ default: function() {
+ return [];
+ }
+ },
disabled: {
type: Boolean,
default: false
@@ -94,7 +101,7 @@
return {
pageData: { pageNum: 1, pageSize: 100 },
isLoading: false,
- dataList: [],
+ // dataList: [],
tempList: [],
myValue: this.multiple ? [] : "",
focusEvents: {
@@ -108,6 +115,7 @@
console.error("'lazy-load'蹇呴』鍜�'filterable'鍚屾椂浣跨敤锛�");
return false;
}
+ console.log(456789);
if (this.lazyLoad) {
this.focusEvents.func = () => {
@@ -122,9 +130,7 @@
methods: {
renderSelecter() {
this.pageData.PageSize = 100;
- this.dataList = [];
this.myValue = this.value;
-
this.getdataList();
},
@@ -138,6 +144,23 @@
}; //鎼滅储鏉′欢
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);
+ }
+ console.log(this.dataList,'this.dataList');
+
+ this.tempList = this.dataList.map(item => item);
+ this.focusEvents.loaded = true;
+ this.isLoading = false;
+ return;
+ }
listOrganization(searchData)
.then(response => {
--
Gitblit v1.9.3