Commit 7cb46791 authored by 郭铭瑶's avatar 郭铭瑶 🤘

调整弹窗字号

parent 85a74bdb
...@@ -109,7 +109,6 @@ export default { ...@@ -109,7 +109,6 @@ export default {
/** 地图直接点击楼栋获取数据 */ /** 地图直接点击楼栋获取数据 */
async getBuildingDetail({ commit }: Method, id: string) { async getBuildingDetail({ commit }: Method, id: string) {
if (state.showFilterDrawer) return
commit('SET_SHOW_BUILDING_DETAIL', false) commit('SET_SHOW_BUILDING_DETAIL', false)
commit('SET_LOADING', true) commit('SET_LOADING', true)
const building = const building =
...@@ -122,6 +121,12 @@ export default { ...@@ -122,6 +121,12 @@ export default {
commit('SET_LOADING', false) commit('SET_LOADING', false)
return return
} }
if (state.showFilterDrawer) {
// 筛选侧边栏展开的情况下直接点击地图楼栋
commit('SET_BUILDING_DETAIL_BY_NEXT', building)
commit('SET_LOADING', false)
return
}
const floors = await getFloors(building) const floors = await getFloors(building)
commit('SET_BUILDING_DETAIL', { building, floors }) commit('SET_BUILDING_DETAIL', { building, floors })
commit('SET_SHOW_BUILDING_DETAIL', true) commit('SET_SHOW_BUILDING_DETAIL', true)
......
...@@ -60,4 +60,7 @@ export default { ...@@ -60,4 +60,7 @@ export default {
) { ) {
state.buildingDetail = data state.buildingDetail = data
}, },
SET_BUILDING_DETAIL_BY_NEXT(state: GlobalStateProps, data: any) {
state.buildingDetailByNext = data
},
} }
...@@ -65,4 +65,5 @@ export default { ...@@ -65,4 +65,5 @@ export default {
building: any building: any
floors: any[] floors: any[]
}, },
buildingDetailByNext: {},
} }
...@@ -27,12 +27,13 @@ const style = ` ...@@ -27,12 +27,13 @@ const style = `
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
font-size: .11rem;
} }
.pop-container > p { .pop-container > p {
margin-bottom: .04rem; margin-bottom: .04rem;
padding: 0 .02rem; padding: 0 .02rem;
} }
.title { .pop-container .title {
font-size: .13rem; font-size: .13rem;
font-family: PingFangMedium, 'Avenir', Helvetica, Arial, sans-serif; font-family: PingFangMedium, 'Avenir', Helvetica, Arial, sans-serif;
} }
...@@ -41,7 +42,7 @@ const style = ` ...@@ -41,7 +42,7 @@ const style = `
flex-wrap: wrap; flex-wrap: wrap;
margin: .05rem 0; margin: .05rem 0;
} }
.tag { .pop-container .tag {
display: inline-block; display: inline-block;
border-radius: .04rem; border-radius: .04rem;
font-size: .1rem; font-size: .1rem;
...@@ -143,7 +144,6 @@ const style = ` ...@@ -143,7 +144,6 @@ const style = `
overflow: hidden; overflow: hidden;
white-space: nowrap; white-space: nowrap;
text-overflow: ellipsis; text-overflow: ellipsis;
font-size: .11rem;
} }
.pop-container .wrapper > .item p { .pop-container .wrapper > .item p {
font-family: PingFangMedium, 'Avenir', Helvetica, Arial, sans-serif; font-family: PingFangMedium, 'Avenir', Helvetica, Arial, sans-serif;
......
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
import { computed, onMounted, PropType, ref } from 'vue' import { computed, onMounted, PropType, ref, watch } from 'vue'
import store from '@/store' import store from '@/store'
import dot from '@images/dot.svg' import dot from '@images/dot.svg'
import { ArrowForward, ArrowBack, ArrowDown } from '@vicons/ionicons5' import { ArrowForward, ArrowBack, ArrowDown } from '@vicons/ionicons5'
...@@ -238,6 +238,14 @@ const buildingNext = async (building: any) => { ...@@ -238,6 +238,14 @@ const buildingNext = async (building: any) => {
setBuilding(building, true) setBuilding(building, true)
showBuildingDetail.value = true showBuildingDetail.value = true
} }
watch(
() => store.state.buildingDetailByNext,
(building) => {
if (!building) return
buildingNext(building)
},
{ deep: true },
)
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
......
...@@ -220,11 +220,8 @@ const setTab = (val: string) => { ...@@ -220,11 +220,8 @@ const setTab = (val: string) => {
curTab.value = val curTab.value = val
} }
const fetchTags = async ( type Tags = { key: string; name: string; count: number; checked: boolean }[]
type: string, const fetchTags = async (type: string): Promise<Tags> => {
): Promise<
{ key: string; name: string; count: number; checked: boolean }[]
> => {
const res = await useFetchTag({ const res = await useFetchTag({
keys: '标签名称', keys: '标签名称',
q: `paths @ "所属模块" && string == "${type}"`, q: `paths @ "所属模块" && string == "${type}"`,
...@@ -243,16 +240,12 @@ const fetchTags = async ( ...@@ -243,16 +240,12 @@ const fetchTags = async (
}), }),
) )
} }
const organization = ref< const organization = ref<Tags>([])
{ key: string; name: string; count: number; checked: boolean }[]
>([])
const getOrgTags = async () => { const getOrgTags = async () => {
organization.value = await fetchTags('党组织') organization.value = await fetchTags('党组织')
} }
const member = ref< const member = ref<Tags>([])
{ key: string; name: string; count: number; checked: boolean }[]
>([])
const getMemberTags = async () => { const getMemberTags = async () => {
member.value = await fetchTags('党员') member.value = await fetchTags('党员')
} }
......
...@@ -21,6 +21,7 @@ export default defineConfig({ ...@@ -21,6 +21,7 @@ export default defineConfig({
}, },
}, },
server: { server: {
port: 3001,
proxy: { proxy: {
'/api': { '/api': {
target: 'https://survey.maicedata.com/api/data/', target: 'https://survey.maicedata.com/api/data/',
......
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