Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
E
east-nanjing-new
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
郭铭瑶
east-nanjing-new
Commits
d1e41f0d
Commit
d1e41f0d
authored
Apr 16, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整去掉控制台的warnning
parent
6c08af15
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
4495 additions
and
47 deletions
+4495
-47
package-lock.json
package-lock.json
+4486
-1
actions.ts
src/store/actions.ts
+0
-1
index.ts
src/store/index.ts
+2
-2
state.ts
src/store/state.ts
+2
-2
main.vue
src/view/main.vue
+1
-37
complain.vue
src/view/right/complain.vue
+4
-4
No files found.
package-lock.json
View file @
d1e41f0d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/store/actions.ts
View file @
d1e41f0d
...
@@ -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
)
},
},
}
}
src/store/index.ts
View file @
d1e41f0d
...
@@ -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
}
...
...
src/store/state.ts
View file @
d1e41f0d
...
@@ -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
:
{},
...
...
src/view/main.vue
View file @
d1e41f0d
...
@@ -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
,
}
}
},
},
})
})
...
...
src/view/right/complain.vue
View file @
d1e41f0d
...
@@ -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%'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment