Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
H
huamu
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
郭铭瑶
huamu
Commits
4b73c653
Commit
4b73c653
authored
Nov 03, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
关系在街道党员增加是否在册党员条件筛选
parent
95895a30
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
12 deletions
+21
-12
api.ts
src/ajax/api.ts
+1
-1
actions.ts
src/store/actions.ts
+20
-11
No files found.
src/ajax/api.ts
View file @
4b73c653
...
@@ -36,7 +36,7 @@ switch (process.env.NODE_ENV) {
...
@@ -36,7 +36,7 @@ switch (process.env.NODE_ENV) {
default
:
default
:
// 本地开发环境
// 本地开发环境
BASE_URL
=
'/api'
// 由 vite.config 代理
BASE_URL
=
'/api'
// 由 vite.config 代理
TOKEN
=
'
ab100c91-298e-4b21-8f6d-13b6e9375914
'
TOKEN
=
'
c0c4003b-9b3a-4daf-8363-5707ee891255
'
MAP_CONFIG
=
{
MAP_CONFIG
=
{
jsApiUrl
:
'http://10.108.3.41/arcgis_js_api/library/4.18/init.js'
,
jsApiUrl
:
'http://10.108.3.41/arcgis_js_api/library/4.18/init.js'
,
cssUrl
:
'http://10.108.3.41/arcgis_js_api/library/4.18/esri/css/main.css'
,
cssUrl
:
'http://10.108.3.41/arcgis_js_api/library/4.18/esri/css/main.css'
,
...
...
src/store/actions.ts
View file @
4b73c653
...
@@ -175,20 +175,29 @@ async function getSum(query?: string) {
...
@@ -175,20 +175,29 @@ async function getSum(query?: string) {
q
:
query
,
q
:
query
,
})
})
)?.
find
((
e
:
any
)
=>
!
e
[
'是否虚拟组织'
])?.
__aggregate__
||
0
)?.
find
((
e
:
any
)
=>
!
e
[
'是否虚拟组织'
])?.
__aggregate__
||
0
const
member
=
await
useFetchMember
({
a
:
'id,count'
,
keys
:
'是否居住在花木街道'
,
q
:
query
,
})
const
inHuamu
=
member
?.
find
((
e
:
any
)
=>
e
[
'是否居住在花木街道'
])?.
__aggregate__
||
0
const
notInHuamu
=
member
?.
find
((
e
:
any
)
=>
!
e
[
'是否居住在花木街道'
])?.
__aggregate__
||
0
const
relationInStreet
=
(
await
useFetchMember
({
a
:
'id,count'
,
q
:
query
?
`
${
query
}
,paths @ "是否在册党员" && boolean == true`
:
'paths @ "是否在册党员" && boolean == true'
,
})
)?.[
0
]?.
__aggregate__
||
0
const
liveInStreet
=
(
await
useFetchMember
({
a
:
'id,count'
,
q
:
query
?
`
${
query
}
,paths @ "是否居住在花木街道" && boolean == true`
:
'paths @ "是否居住在花木街道" && boolean == true'
,
})
)?.[
0
]?.
__aggregate__
||
0
return
[
return
[
{
name
:
'党组织'
,
value
:
orgNum
,
unit
:
'个'
},
{
name
:
'党组织'
,
value
:
orgNum
,
unit
:
'个'
},
{
name
:
'关系在街道内党员'
,
value
:
inHuamu
+
notInHuamu
,
unit
:
'位'
},
{
name
:
'关系在街道内党员'
,
value
:
relationInStreet
,
unit
:
'位'
},
{
name
:
'街道居民党员'
,
value
:
inHuamu
,
unit
:
'位'
},
{
name
:
'街道居民党员'
,
value
:
liveInStreet
,
unit
:
'位'
},
]
]
}
}
...
...
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