Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
FE_COMMON_LIB
one_organization_select
Commits
affa5cd8
Commit
affa5cd8
authored
5 months ago
by
戴鹏云
Browse files
Options
Download
Email Patches
Plain Diff
feat: 尝试向下兼容
parent
0ae83c2b
master-1.x
v1.0.3
No related merge requests found
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
lib/api/request.js
+2
-2
lib/api/request.js
lib/mobile/OrganizationSelectDialog.vue
+1
-1
lib/mobile/OrganizationSelectDialog.vue
lib/web/OrganizationSelectDialog.vue
+1
-1
lib/web/OrganizationSelectDialog.vue
lib/web/organizationSelect/OrganizationSelect.vue
+1
-1
lib/web/organizationSelect/OrganizationSelect.vue
web/index.css
+1
-1
web/index.css
web/index.mjs
+5
-5
web/index.mjs
web/index.umd.js
+3
-3
web/index.umd.js
with
14 additions
and
14 deletions
+14
-14
lib/api/request.js
+
2
-
2
View file @
affa5cd8
import
axios
from
'
axios
'
import
decrypt
from
'
../decrypt
'
let
_token
=
''
let
_token
=
sessionStorage
.
getItem
(
'
token-4-org-select
'
)
export
function
getToken
()
{
return
_token
}
export
function
setToken
(
token
)
{
_token
=
token
_token
=
token
||
sessionStorage
.
getItem
(
'
token-4-org-select
'
)
||
''
}
let
baseURL
=
''
...
...
This diff is collapsed.
Click to expand it.
lib/mobile/OrganizationSelectDialog.vue
+
1
-
1
View file @
affa5cd8
...
...
@@ -48,7 +48,7 @@ const props = defineProps({
height
:
{
type
:
String
,
default
:
'
100vh
'
},
zIndex
:
{
type
:
Number
,
default
:
1111
},
baseURL
:
{
type
:
String
,
required
:
true
,
default
:
''
},
oneToken
:
{
type
:
String
,
required
:
true
,
default
:
''
}
oneToken
:
{
type
:
String
,
default
:
''
}
})
// prettier-ignore
watch
(()
=>
props
.
baseURL
,
(
val
)
=>
setBaseURL
(
val
),
{
immediate
:
true
})
...
...
This diff is collapsed.
Click to expand it.
lib/web/OrganizationSelectDialog.vue
+
1
-
1
View file @
affa5cd8
...
...
@@ -48,7 +48,7 @@ const props = defineProps({
...
selectProps
(),
...
selectDialogProps
(),
baseURL
:
{
type
:
String
,
required
:
true
,
default
:
''
},
oneToken
:
{
type
:
String
,
required
:
true
,
default
:
''
},
oneToken
:
{
type
:
String
,
default
:
''
},
placeholder
:
{
type
:
[
String
,
Function
]
}
})
// prettier-ignore
...
...
This diff is collapsed.
Click to expand it.
lib/web/organizationSelect/OrganizationSelect.vue
+
1
-
1
View file @
affa5cd8
...
...
@@ -105,7 +105,7 @@ const props = defineProps({
tabs
:
{
type
:
Array
,
default
:
selectProps
().
tabs
.
default
},
value
:
{
type
:
Array
,
default
:
()
=>
[]
},
baseURL
:
{
type
:
String
,
required
:
true
,
default
:
''
},
oneToken
:
{
type
:
String
,
required
:
true
,
default
:
''
},
oneToken
:
{
type
:
String
,
default
:
''
},
disabledValue
:
{
type
:
Array
,
default
:
()
=>
[]
},
disabled
:
{
type
:
Boolean
,
default
:
false
},
// 是否禁用
placeholder
:
{
type
:
[
String
,
Function
]
},
...
...
This diff is collapsed.
Click to expand it.
web/index.css
+
1
-
1
View file @
affa5cd8
This diff is collapsed.
Click to expand it.
web/index.mjs
+
5
-
5
View file @
affa5cd8
...
...
@@ -758,12 +758,12 @@ function At(e) {
return
JSON
.
parse
(
F0
(
"
50e2673ff3ecb6e82f15fe4c
"
,
atob
(
e
),
0
,
0
,
"
012345677890123
"
,
1
));
}
window
.
decrypt
=
At
;
let
gt
=
""
;
let
gt
=
sessionStorage
.
getItem
(
"
token-4-org-select
"
)
;
function
N0
()
{
return
gt
;
}
function
yt
(
e
)
{
gt
=
e
;
gt
=
e
||
sessionStorage
.
getItem
(
"
token-4-org-select
"
)
||
""
;
}
let
vt
=
""
;
function
bt
(
e
)
{
...
...
@@ -1777,7 +1777,7 @@ const os = { class: "dialog-footer" }, as = {
__name
:
"
OrganizationSelectDialog
"
,
props
:
X
(
G
(
G
({},
Ee
()),
ss
()),
{
baseURL
:
{
type
:
String
,
required
:
!
0
,
default
:
""
},
oneToken
:
{
type
:
String
,
required
:
!
0
,
default
:
""
},
oneToken
:
{
type
:
String
,
default
:
""
},
placeholder
:
{
type
:
[
String
,
Function
]
}
}),
emits
:
[
"
update:visible
"
,
"
cancel
"
,
"
confirm
"
,
"
change
"
],
...
...
@@ -2442,7 +2442,7 @@ const Is = { class: "selector-content" }, Bs = {
tabs
:
{
type
:
Array
,
default
:
Ee
().
tabs
.
default
},
value
:
{
type
:
Array
,
default
:
()
=>
[]
},
baseURL
:
{
type
:
String
,
required
:
!
0
,
default
:
""
},
oneToken
:
{
type
:
String
,
required
:
!
0
,
default
:
""
},
oneToken
:
{
type
:
String
,
default
:
""
},
disabledValue
:
{
type
:
Array
,
default
:
()
=>
[]
},
disabled
:
{
type
:
Boolean
,
default
:
!
1
},
// 是否禁用
...
...
@@ -2629,7 +2629,7 @@ const Is = { class: "selector-content" }, Bs = {
}),
null
,
16
,
[
"
visible
"
,
"
baseURL
"
,
"
oneToken
"
,
"
title
"
,
"
defaultValue
"
,
"
disabledValue
"
,
"
placeholder
"
,
"
limit
"
,
"
tabs
"
]))
:
F
(
""
,
!
0
)
],
2
));
}
},
Os
=
/* @__PURE__ */
K
(
Ts
,
[[
"
__scopeId
"
,
"
data-v-
adaddd79
"
]]);
},
Os
=
/* @__PURE__ */
K
(
Ts
,
[[
"
__scopeId
"
,
"
data-v-
71b2ba9d
"
]]);
export
{
Os
as
OrganizationSelect
,
as
as
OrganizationSelectDialog
,
...
...
This diff is collapsed.
Click to expand it.
web/index.umd.js
+
3
-
3
View file @
affa5cd8
This source diff could not be displayed because it is too large. You can
view the blob
instead.
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help