Commit ea5d2f9a authored by 郭铭瑶's avatar 郭铭瑶 🤘

更新,打包

parent f99e48e1
This diff is collapsed.
This diff is collapsed.
......@@ -6,10 +6,10 @@
<link rel="icon" href="./favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>静安智慧房管</title>
<script type="module" crossorigin src="./assets/index.73fe6fc7.js"></script>
<link rel="modulepreload" href="./assets/vendor.3d772a52.js">
<script type="module" crossorigin src="./assets/index.afa3abf8.js"></script>
<link rel="modulepreload" href="./assets/vendor.d8be57b6.js">
<link rel="stylesheet" href="./assets/vendor.db35e2cd.css">
<link rel="stylesheet" href="./assets/index.406387d3.css">
<link rel="stylesheet" href="./assets/index.6d616eb9.css">
</head>
<body>
......
......@@ -23,4 +23,5 @@ export default {
EQUIPMENT: '/service-basicdatasync-ddd/public/community/facEqus', // 设施设备
EXPAND_INFO:
'/service-basicdatasync-ddd/public/tbl_community/entity/{id}/ext', // 小区拓展信息
ELEVATOR: '/service-special-ja-ddd/public/elevatorInstallationInfos', // 电梯
}
......@@ -29,6 +29,8 @@ export default defineComponent({
flex-direction column
color #ccc
font-weight bold
justify-content center !important
align-items center !important
>img
width .4rem
height @width
......
......@@ -122,7 +122,7 @@ export default defineComponent({
$center()
.my-modal
color #fff
$blur()
$blur(0.1rem)
z-index 99999
head
height .3rem
......
......@@ -36,7 +36,7 @@ $card-title-size = .14rem
$card-border = .01rem solid $primary-border
$table-title-bg =rgba(2,27,53,.5)
$table-content-bg = rgba(2,27,53,.5)
$table-content-bg = rgba(2,27,53,.6)
$table-content-hover-color = $primary-color
$table-content-hover-bg = $primary-bg
......
......@@ -2,7 +2,7 @@ import { LayerOption, PointsData } from '../types'
/** 转化点状覆盖物 */
export function toPoints(options: LayerOption) {
const { data, size = 16, icon, labelKey, labelOptions } = options
const { data, size = 16, icon, labelKey, labelOptions, _key } = options
const transData = (item: PointsData) => {
const iconSize = Array.isArray(size)
? new SMap.Size(...size)
......@@ -18,7 +18,7 @@ export function toPoints(options: LayerOption) {
size: iconSize,
image: item.icon || icon,
},
attributes: { ...item },
attributes: { ...item, _key },
position: z ? [x, y, z] : [x, y],
}
if (labelKey) {
......
......@@ -226,6 +226,7 @@ export interface LayerOption {
lineStyle?: string
lineJoin?: 'bevel' | 'round' | 'miter'
lineWidth?: number
_key?: string
}
/** 边界选项 */
export interface BoundaryOption {
......
......@@ -4,9 +4,6 @@ export default {
SET_LOADING(state: GlobalStateProps, val: boolean): void {
state.showLoading = val
},
SET_COM(state: GlobalStateProps, e: any) {
state.com = e
},
SET_COMMUNITY_LIST(state: GlobalStateProps, data: any[]) {
state.communityList = data
},
......
export default {
showLoading: false,
com: null,
communityList: [] as any[],
}
This diff is collapsed.
<template>
<div class="community-info">
<n-menu v-model:value="curMenu" :options="menus" style="width: 1.2rem" />
<n-menu v-model:value="curMenu" :options="menus" class="side-menu" />
<div class="content">
<template v-if="curMenu === 1">
<m-sub>小区基本信息</m-sub>
......@@ -738,7 +738,7 @@ function reset() {
}
const formatter = {
trueOrFalse: (val: unknown) => (val === true ? '有' : '无'),
yesOrNo: (val: unknown) => (val == 1 ? '是' : '否'),
yesOrNo: (val: unknown) => (val == 1 ? '是' : val == 0 ? '否' : ''),
switchUnitKind,
switchOrderState,
switchReceiver: (key: unknown) => {
......@@ -846,32 +846,20 @@ const selfCheckColumn = [
key: 'checkPersonName',
},
{
title: '检查状态',
title: '是否开整改单',
key: 'checkState',
render({ checkState }) {
return h('span', null, {
default: () => formatter.switchCheckState(checkState),
default: () => formatter.yesOrNo(checkState),
})
},
},
{
title: '整改情况',
title: '检查状态',
key: 'checkStateDegree',
render({ checkStateDegree }) {
render({ orderState }) {
return h('span', null, {
default: () => {
// 0无需整改 1已整改 2整改中
switch (checkStateDegree) {
case '0':
return '无需整改'
case '1':
return '已整改'
case '2':
return '整改中'
default:
return '暂无'
}
},
default: () => formatter.switchOrderState(orderState),
})
},
},
......@@ -1193,6 +1181,10 @@ watch(
width 100%
height 70vh
overflow hidden
.side-menu
width 1.2rem
background rgba(2, 27, 53, 0.6)
margin-right .1rem
.content
flex 1
overflow-y auto
......
<template>
<div class="map-btns" :class="{ isFull: fullScreen }">
<img
v-for="btn in btns"
v-show="!btn.hidden"
<template v-for="btn in btns">
<n-tooltip
v-if="!btn.hidden"
:key="btn.key"
:src="btn.icon"
:title="btn?.tip"
@click="onClick(btn.key)"
/>
trigger="hover"
placement="left"
>
<template #trigger>
<img :src="btn.icon" :title="btn?.tip" @click="onClick(btn.key)" />
</template>
{{ btn.tip }}
</n-tooltip>
</template>
</div>
</template>
......@@ -21,6 +26,7 @@ import btn6 from '@/assets/images/btn6.png'
import btn7 from '@/assets/images/btn7.png'
import btn8 from '@/assets/images/btn8.png'
import { computed, PropType } from 'vue'
import { NTooltip } from 'naive-ui'
const props = defineProps({
isDefaultScreen: {
......@@ -55,7 +61,7 @@ const btns = computed(() => [
hidden: props.onlyOneView,
tip: '屏幕列表',
},
{ key: 'btn6', icon: btn6 },
// { key: 'btn6', icon: btn6 },
{ key: 'reset', icon: btn8, tip: '重置' },
])
const onClick = (key: string) => {
......
......@@ -29,7 +29,7 @@ onMounted(async () => {
mode: '2D',
center: [-1931.2637583608503, 4334.0159596985895],
zoom: 4,
zooms: [3, 10],
zooms: [4, 10],
style: 'smap://styles/dark',
appKey: 'DTZ49ACE32PBN73GXPF085',
netType: 'internet',
......@@ -59,7 +59,7 @@ function onComplete() {
emit('complete')
}
function setCommunityPoints(query = 'HPB_NAME = \'静安区\'') {
function setCommunityPoints(query = "HPB_NAME = '静安区'") {
map.instance.getLayer('wg_gis_xq_point').visible = false
map.instance.setFilter('wg_gis_mpz', query)
map.instance.setFilter('wg_gis_xq_poly', query)
......
......@@ -207,23 +207,40 @@ const elevatorDetail = ref<{ [key: string]: any }>({})
const showSafetyDrawer = ref(false)
const safetyDetail = ref<{ [key: string]: any }>({})
const onMapClick = async (e) => {
if (e?.unitId) {
const onMapClick = async ({
_key = null,
unitId = null,
sectId = null,
} = {}) => {
if (unitId) {
if (_key === 'elevator') {
elevatorDetail.value =
(
await ajax.get({
url: api.ELEVATOR,
params: {
unitId_in: unitId,
},
})
)?.data?.content?.[0] || {}
showElevatorDrawer.value = true
} else if (_key === 'safety') {
safetyDetail.value =
(
await ajax.get({
url: api.RISK_BUILDINGS,
params: {
unitId_in: e.unitId,
unitId_in: unitId,
},
})
)?.data?.content?.[0] || {}
showSafetyDrawer.value = true
} else if (e?.sectId) {
}
} else if (sectId) {
const data =
(
await ajax.get({
url: api.GET_COMMUNITY.replace('{id}', e.sectId),
url: api.GET_COMMUNITY.replace('{id}', sectId),
})
)?.data?.content || {}
communityDetail.value = {
......
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