Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
TF-MOM-WEB
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
TFMOM
TF-MOM-WEB
Commits
f4f8a671
Commit
f4f8a671
authored
Apr 26, 2024
by
jingnan
👀
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
合并产品【12034】弹框组织选择器数据回显时存在bug
parent
d0769bab
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
config.js
...c/commonComponents/components/orgLazyLoadSelect/config.js
+0
-1
index.vue
...c/commonComponents/components/orgLazyLoadSelect/index.vue
+6
-4
props.js
...rc/commonComponents/components/orgLazyLoadSelect/props.js
+1
-1
No files found.
applications/architecture-dee/src/commonComponents/components/orgLazyLoadSelect/config.js
View file @
f4f8a671
...
...
@@ -35,7 +35,6 @@ export default {
key
:
'component.bindKey'
,
title
:
'绑定属性'
,
component
:
{
obscure
:
`this.form.component.bindType !== 'key'`
,
defaultValue
:
'id'
,
name
:
'el-input'
}
...
...
applications/architecture-dee/src/commonComponents/components/orgLazyLoadSelect/index.vue
View file @
f4f8a671
...
...
@@ -88,7 +88,7 @@ export default {
return
}
const
ids
=
this
.
getIds
(
val
)
this
.
getNodeDatByIdS
(
ids
,
this
.
initB
indKey
)
this
.
getNodeDatByIdS
(
ids
,
this
.
b
indKey
)
}
}
},
...
...
@@ -218,12 +218,14 @@ export default {
return
o
&&
Object
.
prototype
.
toString
.
call
(
o
)
===
'[object Object]'
},
/**
* 判断一个数据是 null, undefined, NAN, 空字符串 这些类型
* 判断一个数据是 null, undefined, NAN, 空字符串
('')、空字对象({})、空数组([])
这些类型
* @param {Any} o 要判断类型的数据
*/
isInvalidType
(
o
)
{
const
type
=
typeof
o
return
type
===
'undefined'
||
(
type
===
'string'
&&
!
o
.
trim
().
length
)
||
isNaN
(
o
)
||
(
!
o
&&
Object
.
prototype
.
toString
.
call
(
o
)
===
'[object Object]'
)
// type 的值:number、string、boolean、object、set、undefined、null
// 判断 NaN 要用 Number.isNaN(),他会不先做转数字操作,而 NaN() 会先做转数据操作
const
type
=
Object
.
prototype
.
toString
.
call
(
o
).
replace
(
/^
\[
object
\s
+/
,
''
).
replace
(
/]$/
,
''
).
toLowerCase
()
return
[
null
,
undefined
].
includes
(
o
)
||
Number
.
isNaN
(
o
)
||
(
type
===
'string'
&&
!
o
.
trim
().
length
)
||
(
type
===
'object'
&&
!
Object
.
keys
(
o
).
length
)
||
(
Array
.
isArray
(
o
)
&&
!
o
.
length
)
},
// 取出绑定数据的id
getIds
(
val
)
{
...
...
applications/architecture-dee/src/commonComponents/components/orgLazyLoadSelect/props.js
View file @
f4f8a671
...
...
@@ -20,7 +20,7 @@ export default {
type
:
String
,
default
:
'String'
},
initB
indKey
:
{
b
indKey
:
{
type
:
String
,
default
:
'id'
},
...
...
Write
Preview
Markdown
is supported
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