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
4ba9f9e5
Commit
4ba9f9e5
authored
Apr 19, 2021
by
程卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
公共管理饼图调整
parent
b0fde650
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
263 additions
and
4720 deletions
+263
-4720
package-lock.json
package-lock.json
+1
-4486
actions.ts
src/store/actions.ts
+1
-0
index.ts
src/store/index.ts
+2
-1
mutations.ts
src/store/mutations.ts
+6
-3
state.ts
src/store/state.ts
+2
-1
case-analysis.vue
src/view/right/case-analysis.vue
+34
-30
complain.vue
src/view/right/complain.vue
+78
-78
demand.vue
src/view/right/demand.vue
+134
-118
key-task.vue
src/view/right/key-task.vue
+3
-3
public-manage.vue
src/view/right/public-manage.vue
+2
-0
No files found.
package-lock.json
View file @
4ba9f9e5
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/store/actions.ts
View file @
4ba9f9e5
...
@@ -532,6 +532,7 @@ export default {
...
@@ -532,6 +532,7 @@ export default {
).
data
).
data
// console.log(content, '有求必应 - 工作站分类')
// console.log(content, '有求必应 - 工作站分类')
commit
(
'SET_WORKSTATION'
,
content
)
commit
(
'SET_WORKSTATION'
,
content
)
commit
(
'SET_WORKSTATION_PIEDATA'
,
content
[
0
].
statistical
)
},
},
async
GET_TRACKEVENT
(
async
GET_TRACKEVENT
(
{
{
...
...
src/store/index.ts
View file @
4ba9f9e5
...
@@ -114,7 +114,8 @@ export interface GlobalStateProps {
...
@@ -114,7 +114,8 @@ export interface GlobalStateProps {
urgentCase
:
any
[]
urgentCase
:
any
[]
todayCase
:
{
[
key
:
string
]:
number
}
todayCase
:
{
[
key
:
string
]:
number
}
stageCase
:
{
[
key
:
string
]:
number
}
stageCase
:
{
[
key
:
string
]:
number
}
workstationKind
:
{
[
key
:
string
]:
number
}
workstationKind
:
any
[]
workstationKindPiEData
:
{
[
key
:
string
]:
any
}
trackEvent
:
any
[]
trackEvent
:
any
[]
analysisRank
:
Partial
<
DutyDataProp
>
analysisRank
:
Partial
<
DutyDataProp
>
moreHappenAddr
:
Partial
<
DutyDataProp
>
moreHappenAddr
:
Partial
<
DutyDataProp
>
...
...
src/store/mutations.ts
View file @
4ba9f9e5
...
@@ -222,11 +222,14 @@ export default {
...
@@ -222,11 +222,14 @@ export default {
state
.
stageCase
=
data
state
.
stageCase
=
data
},
},
// 有求必应-工作站分类
// 有求必应-工作站分类
SET_WORKSTATION
(
SET_WORKSTATION
(
state
:
GlobalStateProps
,
data
:
any
[]):
void
{
state
.
workstationKind
=
data
},
SET_WORKSTATION_PIEDATA
(
state
:
GlobalStateProps
,
state
:
GlobalStateProps
,
data
:
{
[
key
:
string
]:
number
}
data
:
{
[
key
:
string
]:
any
}
):
void
{
):
void
{
state
.
workstationKind
=
data
state
.
workstationKind
PiEData
=
data
},
},
// 有求必应-事件跟踪
// 有求必应-事件跟踪
SET_TRACKEVENT
(
state
:
GlobalStateProps
,
data
:
unknown
[]):
void
{
SET_TRACKEVENT
(
state
:
GlobalStateProps
,
data
:
unknown
[]):
void
{
...
...
src/store/state.ts
View file @
4ba9f9e5
...
@@ -209,7 +209,8 @@ export default {
...
@@ -209,7 +209,8 @@ export default {
urgentCase
:
[],
urgentCase
:
[],
todayCase
:
{},
todayCase
:
{},
stageCase
:
{},
stageCase
:
{},
workstationKind
:
{},
workstationKind
:
[],
workstationKindPiEData
:
{},
trackEvent
:
[],
trackEvent
:
[],
analysisRank
:
{
day
:
[],
week
:
[],
month
:
[]
},
analysisRank
:
{
day
:
[],
week
:
[],
month
:
[]
},
moreHappenAddr
:
{
day
:
[],
week
:
[],
month
:
[]
},
moreHappenAddr
:
{
day
:
[],
week
:
[],
month
:
[]
},
...
...
src/view/right/case-analysis.vue
View file @
4ba9f9e5
<
template
>
<
template
>
<m-card
title=
"案件分析"
>
<m-card
title=
"案件分析"
class=
"box"
>
<div
class=
"nav"
>
<div
class=
"nav"
>
<div>
<div>
<Tabs
:list=
"tabs"
horizontal
@
select=
"curTab = $event"
/>
<Tabs
:list=
"tabs"
horizontal
@
select=
"curTab = $event"
/>
...
@@ -111,12 +111,15 @@ export default defineComponent({
...
@@ -111,12 +111,15 @@ export default defineComponent({
<
style
lang=
"stylus"
scoped
>
<
style
lang=
"stylus"
scoped
>
@import '../../components/MyComponent/main.styl'
@import '../../components/MyComponent/main.styl'
.nav
.box
overflow hidden
.nav
width 100%
width 100%
overflow hidden
display flex
display flex
align-items center
align-items center
justify-content space-between
justify-content space-between
margin 0.05rem 0
margin-top 0.05rem
>div
>div
width 75%
width 75%
&:last-child
&:last-child
...
@@ -133,13 +136,14 @@ export default defineComponent({
...
@@ -133,13 +136,14 @@ export default defineComponent({
color $secondary-color
color $secondary-color
border-color @color
border-color @color
background rgba(50, 197, 255, 0.2)
background rgba(50, 197, 255, 0.2)
.rank
.rank
overflow hidden
overflow hidden
// height 1rem
.content
.content
height 1rem
height 1.2rem
overflow hidden
.place
overflow hidden
overflow hidden
.place
margin 0.05rem 0
.content
.content
display flex
display flex
justify-content space-between
justify-content space-between
...
...
src/view/right/complain.vue
View file @
4ba9f9e5
...
@@ -254,8 +254,9 @@ export default defineComponent({
...
@@ -254,8 +254,9 @@ export default defineComponent({
.box
.box
flex-direction column
flex-direction column
display flex
display flex
height 97%
height 95%
.summary
overflow hidden
.summary
height 5%
height 5%
display flex
display flex
justify-content space-between
justify-content space-between
...
@@ -272,10 +273,9 @@ export default defineComponent({
...
@@ -272,10 +273,9 @@ export default defineComponent({
font-weight bold
font-weight bold
p
p
color #ccc
color #ccc
.manage
.manage
flex 1
display flex
display flex
// height 6
0%
height 7
0%
// margin-bottom .05rem
// margin-bottom .05rem
.content
.content
flex 1
flex 1
...
@@ -314,7 +314,7 @@ export default defineComponent({
...
@@ -314,7 +314,7 @@ export default defineComponent({
flex 4
flex 4
&:last-child
&:last-child
flex 1
flex 1
.emergency
.emergency
height 1.2rem
height 1.2rem
overflow hidden
overflow hidden
// overflow hidden
// overflow hidden
...
...
src/view/right/demand.vue
View file @
4ba9f9e5
...
@@ -25,12 +25,14 @@
...
@@ -25,12 +25,14 @@
</div>
</div>
<div
class=
"chart wrapper"
>
<div
class=
"chart wrapper"
>
<div
v-if=
"showChart"
>
<div
v-if=
"showChart"
>
<m-pie
:option=
"pieOption"
/>
<m-pie
:option=
"pieOption"
:dataset=
"pieData"
/>
</div>
</div>
<div>
<div>
<p
v-for=
"item in pieData"
:key=
"item.name"
>
<p
v-for=
"item in pieData"
:key=
"item.name"
>
<span
:style=
"
{ background: item.color }" />
<span
:style=
"
{ background: item.color }" />
{{
item
.
name
}}
:
{{
item
.
value
}}
%
{{
item
.
num
}}
{{
item
.
name
}}
:
{{
item
.
value
}}
%
{{
item
.
num
}}
</p>
</p>
</div>
</div>
</div>
</div>
...
@@ -56,7 +58,7 @@
...
@@ -56,7 +58,7 @@
</
template
>
</
template
>
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
computed
,
defineComponent
,
ref
}
from
'vue'
import
{
computed
,
defineComponent
,
watch
,
ref
}
from
'vue'
import
Brief
,
{
BriefProp
}
from
'../components/brief.vue'
import
Brief
,
{
BriefProp
}
from
'../components/brief.vue'
import
store
from
'@/store'
import
store
from
'@/store'
import
icon6
from
'@/assets/images/icon6.png'
import
icon6
from
'@/assets/images/icon6.png'
...
@@ -81,6 +83,7 @@ export default defineComponent({
...
@@ -81,6 +83,7 @@ export default defineComponent({
const
todayCase
=
computed
(()
=>
store
.
state
.
todayCase
)
const
todayCase
=
computed
(()
=>
store
.
state
.
todayCase
)
const
stageCase
=
computed
(()
=>
store
.
state
.
stageCase
)
const
stageCase
=
computed
(()
=>
store
.
state
.
stageCase
)
const
workstationKind
=
computed
(()
=>
store
.
state
.
workstationKind
)
const
workstationKind
=
computed
(()
=>
store
.
state
.
workstationKind
)
const
pieDatamodel
=
computed
(()
=>
store
.
state
.
workstationKindPiEData
)
const
trackEvent
=
computed
(()
=>
store
.
state
.
trackEvent
)
const
trackEvent
=
computed
(()
=>
store
.
state
.
trackEvent
)
// console.log(moment(new Date()).format('YYYY-MM-DD'))
// console.log(moment(new Date()).format('YYYY-MM-DD'))
...
@@ -203,64 +206,28 @@ export default defineComponent({
...
@@ -203,64 +206,28 @@ export default defineComponent({
})),
})),
})
})
const
pieData
=
computed
(()
=>
{
const
pieData
=
computed
(()
=>
{
if
(
workstationKind
.
value
[
0
])
{
console
.
log
(
pieDatamodel
.
value
)
return
[
{
name
:
'第一工作站'
,
value
:
(
(
workstationKind
.
value
[
0
].
statistical
.
oneDisposalNum
/
workstationKind
.
value
[
0
].
statistical
.
oneNum
)
*
100
).
toFixed
(
0
)
||
0
,
num
:
workstationKind
.
value
[
0
].
statistical
.
oneDisposalNum
||
0
,
color
:
'#47B3FF'
,
},
{
name
:
'第二工作站'
,
value
:
(
(
workstationKind
.
value
[
0
].
statistical
.
twoDisposalNum
/
workstationKind
.
value
[
0
].
statistical
.
twoNum
)
*
100
).
toFixed
(
0
)
||
0
,
num
:
workstationKind
.
value
[
0
].
statistical
.
twoDisposalNum
||
0
,
color
:
'#FF9D27'
,
},
{
name
:
'第三工作站'
,
value
:
(
(
workstationKind
.
value
[
0
].
statistical
.
threeDisposalNum
/
workstationKind
.
value
[
0
].
statistical
.
threeNum
)
*
100
).
toFixed
(
0
)
||
0
,
num
:
workstationKind
.
value
[
0
].
statistical
.
threeDisposalNum
||
0
,
color
:
'#6EB629'
,
},
]
}
else
{
return
[
return
[
{
{
name
:
'第一工作站'
,
name
:
'第一工作站'
,
value
:
0
,
value
:
8
,
num
:
0
,
num
:
pieDatamodel
.
value
.
oneNum
,
color
:
'#47B3FF'
,
color
:
'#47B3FF'
,
},
},
{
{
name
:
'第二工作站'
,
name
:
'第二工作站'
,
value
:
0
,
value
:
9
,
num
:
0
,
num
:
pieDatamodel
.
value
.
twoNum
,
color
:
'#FF9D27'
,
color
:
'#FF9D27'
,
},
},
{
{
name
:
'第三工作站'
,
name
:
'第三工作站'
,
value
:
0
,
value
:
8
,
num
:
0
,
num
:
pieDatamodel
.
value
.
threeNum
,
color
:
'#6EB629'
,
color
:
'#6EB629'
,
},
},
]
]
}
})
})
const
pieSeries
=
pieData
.
value
.
map
((
item
,
i
)
=>
{
const
pieSeries
=
pieData
.
value
.
map
((
item
,
i
)
=>
{
const
rate
=
Math
.
round
((
pieData
.
value
.
length
-
i
)
*
fontSize
.
value
)
+
10
const
rate
=
Math
.
round
((
pieData
.
value
.
length
-
i
)
*
fontSize
.
value
)
+
10
...
@@ -306,6 +273,50 @@ export default defineComponent({
...
@@ -306,6 +273,50 @@ export default defineComponent({
const
searchCase
=
(
key
:
string
)
=>
{
const
searchCase
=
(
key
:
string
)
=>
{
console
.
log
(
'searck key: '
,
key
)
console
.
log
(
'searck key: '
,
key
)
}
}
// watch(
// [() => workstationKind.value, () => showChart.value],
// ([arr, show]) => {
// if (!show) return
// if (arr[0]) {
// pieData.value = [
// {
// name: '第一工作站',
// value:
// (
// (arr[0].statistical.oneDisposalNum /
// arr[0].statistical.oneNum) *
// 100
// ).toFixed(0) || 0,
// num: arr[0].statistical.oneDisposalNum,
// color: '#47B3FF',
// },
// {
// name: '第二工作站',
// value:
// (
// (arr[0].statistical.twoDisposalNum /
// arr[0].statistical.twoNum) *
// 100
// ).toFixed(0) || 0,
// num: arr[0].statistical.twoNum,
// color: '#FF9D27',
// },
// {
// name: '第三工作站',
// value:
// (
// (arr[0].statistical.threeDisposalNum /
// arr[0].statistical.threeNum) *
// 100
// ).toFixed(0) || 0,
// num: arr[0].statistical.threeDisposalNum,
// color: '#6EB629',
// },
// ]
// }
// },
// { immediate: true }
// )
return
{
return
{
summary
,
summary
,
showChart
,
showChart
,
...
@@ -319,6 +330,7 @@ export default defineComponent({
...
@@ -319,6 +330,7 @@ export default defineComponent({
searchCase
,
searchCase
,
todayCase
,
todayCase
,
trackEvent
,
trackEvent
,
workstationKind
,
}
}
},
},
})
})
...
@@ -338,7 +350,8 @@ $arrow-style()
...
@@ -338,7 +350,8 @@ $arrow-style()
bottom 0
bottom 0
margin auto
margin auto
transform translate(-90%, 0)
transform translate(-90%, 0)
.process
.today-case
.process
margin-top 0.1rem
margin-top 0.1rem
position relative
position relative
>img
>img
...
@@ -375,7 +388,7 @@ $arrow-style()
...
@@ -375,7 +388,7 @@ $arrow-style()
font-size 0.12rem
font-size 0.12rem
p
p
color #ccc
color #ccc
.chart
.chart
width 100%
width 100%
height 1.1rem
height 1.1rem
&.wrapper
&.wrapper
...
@@ -384,12 +397,15 @@ $arrow-style()
...
@@ -384,12 +397,15 @@ $arrow-style()
width 50%
width 50%
height 100%
height 100%
font-weight bold
font-weight bold
// border 1px solid red
&:last-child
&:last-child
$center()
$center()
flex-direction column
flex-direction column
p
p
display flex
display flex
width 100%
align-items center
align-items center
// border 1px solid red
margin-bottom 0.05rem
margin-bottom 0.05rem
span
span
display inline-block
display inline-block
...
...
src/view/right/key-task.vue
View file @
4ba9f9e5
<
template
>
<
template
>
<m-card
title=
"重点工作"
>
<m-card
title=
"重点工作"
class=
"box"
>
<div
v-if=
"showChart"
id=
"cloud"
class=
"
box
"
></div>
<div
v-if=
"showChart"
id=
"cloud"
class=
""
></div>
</m-card>
</m-card>
</
template
>
</
template
>
...
@@ -164,7 +164,7 @@ export default defineComponent({
...
@@ -164,7 +164,7 @@ export default defineComponent({
<
style
lang=
"stylus"
scoped
>
<
style
lang=
"stylus"
scoped
>
.box
.box
height
95%
height
2rem
width 100%
width 100%
box-sizing border-box
box-sizing border-box
overflow hidden
overflow hidden
...
...
src/view/right/public-manage.vue
View file @
4ba9f9e5
...
@@ -39,8 +39,10 @@ export default defineComponent({
...
@@ -39,8 +39,10 @@ export default defineComponent({
width 33%
width 33%
.first-child
.first-child
flex 1
flex 1
// height 50%
.second-child
.second-child
height 2rem
height 2rem
// height 32%
.third-child
.third-child
height 0.8rem
height 0.8rem
</
style
>
</
style
>
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