Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
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
fulixin
dsk-operate-sys-cscec
Commits
c96bcdb5
Commit
c96bcdb5
authored
Dec 14, 2023
by
tianhongyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
过滤工具函数 处理值更正
parent
7b061bb5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
common.js
dsk-operate-ui/src/api/common.js
+1
-1
index.js
dsk-operate-ui/src/utils/index.js
+2
-2
No files found.
dsk-operate-ui/src/api/common.js
View file @
c96bcdb5
...
@@ -38,6 +38,6 @@ export function dskAccessToken() {
...
@@ -38,6 +38,6 @@ export function dskAccessToken() {
* @returns {Array<object>}
* @returns {Array<object>}
*/
*/
export
const
getAreaListApi
=
()
=>
request
({
export
const
getAreaListApi
=
()
=>
request
({
url
:
"/area/all"
,
url
:
"/area/all
/withoutRegion
"
,
method
:
"get"
method
:
"get"
});
});
dsk-operate-ui/src/utils/index.js
View file @
c96bcdb5
...
@@ -601,7 +601,7 @@ export function queryConditionFiltering(params) {
...
@@ -601,7 +601,7 @@ export function queryConditionFiltering(params) {
for
(
let
index
=
0
;
index
<
len
;
index
++
)
{
for
(
let
index
=
0
;
index
<
len
;
index
++
)
{
const
key
=
keys
[
index
];
const
key
=
keys
[
index
];
if
(
_temp
.
hasOwnProperty
(
key
))
{
if
(
_temp
.
hasOwnProperty
(
key
))
{
// 数组内部不处理
外部处理
// 数组内部不处理
if
(
_temp
[
key
]
instanceof
Array
&&
_temp
[
key
]?.
length
)
{
if
(
_temp
[
key
]
instanceof
Array
&&
_temp
[
key
]?.
length
)
{
result
[
key
]
=
_temp
[
key
];
result
[
key
]
=
_temp
[
key
];
continue
;
continue
;
...
@@ -612,7 +612,7 @@ export function queryConditionFiltering(params) {
...
@@ -612,7 +612,7 @@ export function queryConditionFiltering(params) {
continue
;
continue
;
}
}
// 过滤无效值 0为有效数据
// 过滤无效值 0为有效数据
if
(
_temp
[
key
]
||
_temp
[
key
]
==
"0"
)
{
if
(
typeof
_temp
[
key
]
!=
"object"
&&
(
_temp
[
key
]
||
_temp
[
key
]
==
"0"
)
)
{
result
[
key
]
=
_temp
[
key
];
result
[
key
]
=
_temp
[
key
];
continue
;
continue
;
}
}
...
...
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