Commit 2d3d20c7 authored by 郭铭瑶's avatar 郭铭瑶 🤘

是否虚拟组织===false

parent 4b73c653
......@@ -36,7 +36,7 @@ switch (process.env.NODE_ENV) {
default:
// 本地开发环境
BASE_URL = '/api' // 由 vite.config 代理
TOKEN = 'c0c4003b-9b3a-4daf-8363-5707ee891255'
TOKEN = 'dfdcce19-f877-4762-b34e-a4767e89d268'
MAP_CONFIG = {
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',
......
......@@ -174,7 +174,7 @@ async function getSum(query?: string) {
keys: '是否虚拟组织',
q: query,
})
)?.find((e: any) => !e['是否虚拟组织'])?.__aggregate__ || 0
)?.find((e: any) => e['是否虚拟组织'] === false)?.__aggregate__ || 0
const relationInStreet =
(
......
......@@ -256,7 +256,7 @@ const clickTag = async ({ key, name }: any) => {
})
data = res
.map((item: any) => item.extra)
.filter((item: any) => !item?.['是否虚拟组织'])
.filter((item: any) => item?.['是否虚拟组织'] === false)
store.commit('SET_MAP_POINTS', data)
tips.value = {
show: true,
......
......@@ -383,7 +383,7 @@ async function getOrgOptions() {
q: `paths @ "党组织编号" && string @ "${store.state.auth.code}"`,
})
)
?.filter((item: any) => !item['是否虚拟组织'])
?.filter((item: any) => item['是否虚拟组织'] === false)
?.map((item: any) => ({
label: item['党组织名称'],
value: item['党组织名称'],
......
......@@ -808,9 +808,10 @@ async function setCommunityParty() {
const data = belongToCommunityParty.value
const bigSixChildren: any[] = []
const twoNewChildren: any[] = []
const datasource = data.filter((item: any) => item['是否虚拟组织']) || []
const datasource =
data.filter((item: any) => item['是否虚拟组织'] === true) || []
data.forEach(async (item: any) => {
if (item['是否虚拟组织']) return
if (item['是否虚拟组织'] === true) return
if (item['类别'] === '居民区') {
bigSixChildren.push(item)
} else if (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment