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

调整去掉控制台的warnning

parent 6c08af15
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -456,7 +456,6 @@ export default { ...@@ -456,7 +456,6 @@ export default {
params, params,
}) })
).data ).data
console.log(content, '有诉必答 - 紧急案件')
commit('SET_URGENTCASE', content) commit('SET_URGENTCASE', content)
}, },
} }
...@@ -74,8 +74,8 @@ export interface GlobalStateProps { ...@@ -74,8 +74,8 @@ export interface GlobalStateProps {
curTheme: ThemeType curTheme: ThemeType
propertySummary: { [key: string]: number } propertySummary: { [key: string]: number }
caseList: unknown[] caseList: unknown[]
pubulicSafeGateSenteryShehuiwuye: { [key: string]: number } pubulicSafeGateSenteryShehuiwuye: { [key: string]: number }[]
pubulicSafeGateSenteryZhiguangongfang: { [key: string]: number } pubulicSafeGateSenteryZhiguangongfang: { [key: string]: number }[]
pubulicSafeMap: unknown[] pubulicSafeMap: unknown[]
pubulicSafeTruePeople: { [key: string]: number } pubulicSafeTruePeople: { [key: string]: number }
pubulicSafeHouse: { [key: string]: any } pubulicSafeHouse: { [key: string]: any }
......
...@@ -142,8 +142,8 @@ export default { ...@@ -142,8 +142,8 @@ export default {
propertySummary: {}, propertySummary: {},
caseList: [], caseList: [],
stationInfo: {}, stationInfo: {},
pubulicSafeGateSenteryShehuiwuye: {}, pubulicSafeGateSenteryShehuiwuye: [],
pubulicSafeGateSenteryZhiguangongfang: {}, pubulicSafeGateSenteryZhiguangongfang: [],
pubulicSafeMap: [], pubulicSafeMap: [],
pubulicSafeTruePeople: {}, pubulicSafeTruePeople: {},
pubulicSafeHouse: {}, pubulicSafeHouse: {},
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
rows="0.4rem auto" rows="0.4rem auto"
gap="0.05rem" gap="0.05rem"
> >
<m-title area="title" @click="test">南东城运</m-title> <m-title area="title">南东城运</m-title>
<m-map ref="map" @complete="handleMapComplete" /> <m-map ref="map" @complete="handleMapComplete" />
<m-animate enter="fadeInLeft" leave="fadeOutLeft"> <m-animate enter="fadeInLeft" leave="fadeOutLeft">
<Command v-show="'street' === curViewType && !fullScreen" area="left" /> <Command v-show="'street' === curViewType && !fullScreen" area="left" />
...@@ -76,7 +76,6 @@ export default defineComponent({ ...@@ -76,7 +76,6 @@ export default defineComponent({
PopulationDrawer, PopulationDrawer,
}, },
setup() { setup() {
// store.commit('SET_CURRENT_VIEW', { name: '南京东路街道', type: 'street' })
store.dispatch('initData') store.dispatch('initData')
const curViewType = computed(() => store.state.curView.type) const curViewType = computed(() => store.state.curView.type)
const curTheme = computed(() => store.state.curTheme) const curTheme = computed(() => store.state.curTheme)
...@@ -101,43 +100,9 @@ export default defineComponent({ ...@@ -101,43 +100,9 @@ export default defineComponent({
await nextTick() await nextTick()
map.value.initMap({ viewMode: '2D' }) map.value.initMap({ viewMode: '2D' })
}) })
// const mapInstance = ref<any>(null)
const { handleMapComplete, selectArea } = useSwitchMap(map) const { handleMapComplete, selectArea } = useSwitchMap(map)
function test() {
map.value.layer('model_white_zw').visible = false
map.value.layer('model_white_dyjd').visible = true
}
// const handleMapSwitch = (type: string) => {
// console.log(type)
// map.value.initMap({ viewMode: type })
// }
// watch(
// () => curViewType.value,
// (val) => {
// if (!val || !mapInstance.value) return
// if (val === 'work1') {
// mapInstance.value.getLayer('model_white_dyjd').visible = true // 第一街道名
// mapInstance.value.getLayer('model_white_dyjd').opacity = 0.8
// mapInstance.value.getLayer('model_white_zw').visible = false
// } else {
// mapInstance.value.getLayer('model_white_zw').visible = true
// mapInstance.value.getLayer('model_white_zw').opacity = 0.8
// }
// },
// { immediate: true }
// )
// const handleMapComplete = (instance: any) => {
// // instance.getLayer('model_white_dyjd').visible = true
// // instance.getLayer('model_white_dyjd').opacity = 0.8
// // instance.getLayer('model_white_zw').visible = true
// // instance.getLayer('model_white_zw').opacity = 0.8
// map.value.addBoundary({ name: '南京东路街道', color: 'rgba(0,0,0,0)' })
// mapInstance.value = instance
// }
return { return {
map, map,
// mapInstance,
curViewType, curViewType,
curTheme, curTheme,
streetComponentList, streetComponentList,
...@@ -145,7 +110,6 @@ export default defineComponent({ ...@@ -145,7 +110,6 @@ export default defineComponent({
showDrawer, showDrawer,
handleMapComplete, handleMapComplete,
selectArea, selectArea,
test,
} }
}, },
}) })
......
...@@ -35,8 +35,8 @@ ...@@ -35,8 +35,8 @@
<m-sub>紧急案件</m-sub> <m-sub>紧急案件</m-sub>
<m-scroll :limit="1" :length="1" :step="1" mode="2"> <m-scroll :limit="1" :length="1" :step="1" mode="2">
<div <div
v-for="item in urgentCase.slice(0, 1)" v-for="(item, i) in urgentCase.slice(0, 1)"
:key="item" :key="item + i"
class="detail" class="detail"
> >
<div> <div>
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
import { defineComponent, ref, computed, watch } from 'vue' import { defineComponent, ref, computed, watch } from 'vue'
import Tabs, { TabsProp } from '../components/tabs.vue' import Tabs, { TabsProp } from '../components/tabs.vue'
import SubTitle from '../components/sub-title.vue' import SubTitle from '../components/sub-title.vue'
import { ECOption } from '@/components/MyComponent/MyChart/my-line.vue' import { ChartTypes } from '@/components/MyComponent'
import store from '@/store' import store from '@/store'
export default defineComponent({ export default defineComponent({
...@@ -216,7 +216,7 @@ export default defineComponent({ ...@@ -216,7 +216,7 @@ export default defineComponent({
{ name: '15-16', data1: 150, data2: 100 }, { name: '15-16', data1: 150, data2: 100 },
], ],
}) })
const chartOption = ref<ECOption>({ const chartOption = ref<ChartTypes.ECOption>({
color: ['#9B88F9', 'gold'], color: ['#9B88F9', 'gold'],
legend: { legend: {
right: '1%', right: '1%',
......
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