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 {
params,
})
).data
console.log(content, '有诉必答 - 紧急案件')
commit('SET_URGENTCASE', content)
},
}
......@@ -74,8 +74,8 @@ export interface GlobalStateProps {
curTheme: ThemeType
propertySummary: { [key: string]: number }
caseList: unknown[]
pubulicSafeGateSenteryShehuiwuye: { [key: string]: number }
pubulicSafeGateSenteryZhiguangongfang: { [key: string]: number }
pubulicSafeGateSenteryShehuiwuye: { [key: string]: number }[]
pubulicSafeGateSenteryZhiguangongfang: { [key: string]: number }[]
pubulicSafeMap: unknown[]
pubulicSafeTruePeople: { [key: string]: number }
pubulicSafeHouse: { [key: string]: any }
......
......@@ -142,8 +142,8 @@ export default {
propertySummary: {},
caseList: [],
stationInfo: {},
pubulicSafeGateSenteryShehuiwuye: {},
pubulicSafeGateSenteryZhiguangongfang: {},
pubulicSafeGateSenteryShehuiwuye: [],
pubulicSafeGateSenteryZhiguangongfang: [],
pubulicSafeMap: [],
pubulicSafeTruePeople: {},
pubulicSafeHouse: {},
......
......@@ -5,7 +5,7 @@
rows="0.4rem auto"
gap="0.05rem"
>
<m-title area="title" @click="test">南东城运</m-title>
<m-title area="title">南东城运</m-title>
<m-map ref="map" @complete="handleMapComplete" />
<m-animate enter="fadeInLeft" leave="fadeOutLeft">
<Command v-show="'street' === curViewType && !fullScreen" area="left" />
......@@ -76,7 +76,6 @@ export default defineComponent({
PopulationDrawer,
},
setup() {
// store.commit('SET_CURRENT_VIEW', { name: '南京东路街道', type: 'street' })
store.dispatch('initData')
const curViewType = computed(() => store.state.curView.type)
const curTheme = computed(() => store.state.curTheme)
......@@ -101,43 +100,9 @@ export default defineComponent({
await nextTick()
map.value.initMap({ viewMode: '2D' })
})
// const mapInstance = ref<any>(null)
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 {
map,
// mapInstance,
curViewType,
curTheme,
streetComponentList,
......@@ -145,7 +110,6 @@ export default defineComponent({
showDrawer,
handleMapComplete,
selectArea,
test,
}
},
})
......
......@@ -35,8 +35,8 @@
<m-sub>紧急案件</m-sub>
<m-scroll :limit="1" :length="1" :step="1" mode="2">
<div
v-for="item in urgentCase.slice(0, 1)"
:key="item"
v-for="(item, i) in urgentCase.slice(0, 1)"
:key="item + i"
class="detail"
>
<div>
......@@ -60,7 +60,7 @@
import { defineComponent, ref, computed, watch } from 'vue'
import Tabs, { TabsProp } from '../components/tabs.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'
export default defineComponent({
......@@ -216,7 +216,7 @@ export default defineComponent({
{ name: '15-16', data1: 150, data2: 100 },
],
})
const chartOption = ref<ECOption>({
const chartOption = ref<ChartTypes.ECOption>({
color: ['#9B88F9', 'gold'],
legend: {
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