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

是否虚拟组织===false

parent 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 = 'c0c4003b-9b3a-4daf-8363-5707ee891255' TOKEN = 'dfdcce19-f877-4762-b34e-a4767e89d268'
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',
......
...@@ -174,7 +174,7 @@ async function getSum(query?: string) { ...@@ -174,7 +174,7 @@ async function getSum(query?: string) {
keys: '是否虚拟组织', keys: '是否虚拟组织',
q: query, q: query,
}) })
)?.find((e: any) => !e['是否虚拟组织'])?.__aggregate__ || 0 )?.find((e: any) => e['是否虚拟组织'] === false)?.__aggregate__ || 0
const relationInStreet = const relationInStreet =
( (
......
...@@ -256,7 +256,7 @@ const clickTag = async ({ key, name }: any) => { ...@@ -256,7 +256,7 @@ const clickTag = async ({ key, name }: any) => {
}) })
data = res data = res
.map((item: any) => item.extra) .map((item: any) => item.extra)
.filter((item: any) => !item?.['是否虚拟组织']) .filter((item: any) => item?.['是否虚拟组织'] === false)
store.commit('SET_MAP_POINTS', data) store.commit('SET_MAP_POINTS', data)
tips.value = { tips.value = {
show: true, show: true,
......
...@@ -383,7 +383,7 @@ async function getOrgOptions() { ...@@ -383,7 +383,7 @@ async function getOrgOptions() {
q: `paths @ "党组织编号" && string @ "${store.state.auth.code}"`, q: `paths @ "党组织编号" && string @ "${store.state.auth.code}"`,
}) })
) )
?.filter((item: any) => !item['是否虚拟组织']) ?.filter((item: any) => item['是否虚拟组织'] === false)
?.map((item: any) => ({ ?.map((item: any) => ({
label: item['党组织名称'], label: item['党组织名称'],
value: item['党组织名称'], value: item['党组织名称'],
......
...@@ -808,9 +808,10 @@ async function setCommunityParty() { ...@@ -808,9 +808,10 @@ async function setCommunityParty() {
const data = belongToCommunityParty.value const data = belongToCommunityParty.value
const bigSixChildren: any[] = [] const bigSixChildren: any[] = []
const twoNewChildren: any[] = [] const twoNewChildren: any[] = []
const datasource = data.filter((item: any) => item['是否虚拟组织']) || [] const datasource =
data.filter((item: any) => item['是否虚拟组织'] === true) || []
data.forEach(async (item: any) => { data.forEach(async (item: any) => {
if (item['是否虚拟组织']) return if (item['是否虚拟组织'] === true) return
if (item['类别'] === '居民区') { if (item['类别'] === '居民区') {
bigSixChildren.push(item) bigSixChildren.push(item)
} else if ( } 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