From 2698387e653c6a25059c3ae9976f18b814eba892 Mon Sep 17 00:00:00 2001
From: WXL <wl_5969728@163.com>
Date: 星期五, 12 九月 2025 15:16:46 +0800
Subject: [PATCH] 医疗权限
---
src/views/project/components/orgselect/index.vue | 28 ++++++++++++++++++++++++----
1 files changed, 24 insertions(+), 4 deletions(-)
diff --git a/src/views/project/components/orgselect/index.vue b/src/views/project/components/orgselect/index.vue
index a0d2660..be20106 100644
--- a/src/views/project/components/orgselect/index.vue
+++ b/src/views/project/components/orgselect/index.vue
@@ -17,7 +17,7 @@
value-key="organizationid"
allow-create
reserve-keyword
- :placeholder="placeholder ? placeholder : '璇疯緭鍏ユ満鏋勫悕绉�'"
+ :placeholder="placeholder ? placeholder : '璇烽�夋嫨'"
class="full-block"
ref="selecter"
>
@@ -42,6 +42,13 @@
//Select鍩虹灞炴��
value: {
type: [String, Array]
+ },
+ //鑾峰彇鍒楄〃
+ dataList: {
+ type: Array,
+ default: function() {
+ return [];
+ }
},
disabled: {
type: Boolean,
@@ -94,7 +101,7 @@
return {
pageData: { pageNum: 1, pageSize: 100 },
isLoading: false,
- dataList: [],
+ // dataList: [],
tempList: [],
myValue: this.multiple ? [] : "",
focusEvents: {
@@ -122,9 +129,7 @@
methods: {
renderSelecter() {
this.pageData.PageSize = 100;
- this.dataList = [];
this.myValue = this.value;
-
this.getdataList();
},
@@ -138,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