From 1df26a336255144db3b5012f373ba1d839eb7200 Mon Sep 17 00:00:00 2001 From: TimSpan Date: Tue, 6 Aug 2024 18:05:24 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=82=E3=80=82=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 。。。 --- components.d.ts | 5 +++++ src/views/index.vue | 5 ----- src/views/page/index.vue | 48 +++++++++++----------------------------- 3 files changed, 18 insertions(+), 40 deletions(-) diff --git a/components.d.ts b/components.d.ts index 0683e6ac..2ec8630c 100644 --- a/components.d.ts +++ b/components.d.ts @@ -12,15 +12,20 @@ declare module 'vue' { AButton: typeof import('ant-design-vue/es')['Button'] ACascader: typeof import('ant-design-vue/es')['Cascader'] AConfigProvider: typeof import('ant-design-vue/es')['ConfigProvider'] + ADivider: typeof import('ant-design-vue/es')['Divider'] ADropdown: typeof import('ant-design-vue/es')['Dropdown'] AForm: typeof import('ant-design-vue/es')['Form'] AFormItem: typeof import('ant-design-vue/es')['FormItem'] AImage: typeof import('ant-design-vue/es')['Image'] AInput: typeof import('ant-design-vue/es')['Input'] AInputPassword: typeof import('ant-design-vue/es')['InputPassword'] + ALayout: typeof import('ant-design-vue/es')['Layout'] + ALayoutContent: typeof import('ant-design-vue/es')['LayoutContent'] + ALayoutSider: typeof import('ant-design-vue/es')['LayoutSider'] AMenu: typeof import('ant-design-vue/es')['Menu'] AMenuItem: typeof import('ant-design-vue/es')['MenuItem'] ASegmented: typeof import('ant-design-vue/es')['Segmented'] + ASpace: typeof import('ant-design-vue/es')['Space'] ASpin: typeof import('ant-design-vue/es')['Spin'] AStatistic: typeof import('ant-design-vue/es')['Statistic'] ATimeline: typeof import('ant-design-vue/es')['Timeline'] diff --git a/src/views/index.vue b/src/views/index.vue index ea01ae86..e308fd67 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -229,7 +229,6 @@ const confirmEvent = () => { // background: #142738; background: #fff; color: #fff; - position: relative; // background-image: url(@/assets/images/community_container.jpg); // background-size: 100% 100%; // background-repeat: no-repeat; @@ -237,8 +236,6 @@ const confirmEvent = () => { .community_top { width: 100%; height: 77px; - // position: absolute; - // top: 0; // background:#4880FF; background: #07315e; background-image: url(@/views/page/imag/titleBg1.png); @@ -299,8 +296,6 @@ const confirmEvent = () => { width: 100%; height: calc(100% - 68px); overflow: hidden; - position: absolute; - // top: 0; // height: 100%; // margin: 10px 50px 30px 50px; // position: absolute; diff --git a/src/views/page/index.vue b/src/views/page/index.vue index 1f5684ff..75cc3967 100644 --- a/src/views/page/index.vue +++ b/src/views/page/index.vue @@ -20,15 +20,6 @@
医疗单位
其他
- - - -
- - +
视频点位:

  • 暂无数据
  • -
  • {{ item.title }}
  • +
  • {{ item.title }}

安保点位:

  • 暂无数据
  • -
  • {{ item.title }}
  • +
  • {{ item.title }}

文件列表:

  • 暂无数据
  • -
  • +
  • ([]) const options = ref([]) const filter: ShowSearchType['filter'] = (inputValue, path) => { - // console.log(inputValue, path) - return path.some((option) => option.title.toLowerCase().indexOf(inputValue.toLowerCase()) > -1) } const cascaderChange = (value: any, selectedOptions: any): void => { - // console.log('cascaderChange', value, selectedOptions) - // selectedKeys.value.push(value.slice(-1)[0]) let title = selectedOptions.slice(-1)[0]?.title expandedKeys.value = value - scrollToMatchedNode(title) //此功能还有bug:滑动会带着父元素一起滑动 + // scrollToMatchedNode(title) //此功能还有bug:滑动会带着父元素一起滑动 } const showIframe = ref(false) @@ -456,7 +438,6 @@ const qhzty2 = (data: any) => { isActive1.value = data } -// watch( () => useUserStore().getsoketData, (newValue: any) => { @@ -583,8 +564,6 @@ const qhzty = (data: any) => { } } const fieldNames: TreeProps['fieldNames'] = { - // children: 'children', - // title: 'title', key: 'code', } const loading = ref(false) @@ -628,10 +607,6 @@ const checkKeyExists = (nodes: any, key: string): boolean => { // 展开指定 树节点 const scrollToKey = (key: string) => { console.log('scrollToKey', key) - - // console.log('treeRef________', treeRef.value.scrollTo) - // 验证 key 是否存在于树中 - // const exists = treedataall.value.some((node) => node.key === key || node.children?.some((child: any) => child.key === key)) const exists = checkKeyExists(treedataall.value, key) if (!exists) { console.error(`Key ${key} not found in the tree.`) @@ -1462,7 +1437,7 @@ var state = { const initMap = () => { let latitude = JSON.parse(localStorage.getItem('user-stores'))['userInfo']['latitude'] let longitude = JSON.parse(localStorage.getItem('user-stores'))['userInfo']['longitude'] - // var cluster; + state.map = new AMap.Map(state.id, { // center: [113.015117, 28.209425], center: [longitude, latitude], @@ -1475,9 +1450,12 @@ const initMap = () => {