Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Y
yangpu
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
郭铭瑶
yangpu
Commits
6e2995b9
Commit
6e2995b9
authored
Nov 04, 2020
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
600eccf1
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
25 additions
and
9 deletions
+25
-9
dist.zip
dist.zip
+0
-0
index.html
index.html
+2
-2
ajax.js
src/server/ajax.js
+1
-1
actions.js
src/store/actions.js
+3
-0
complaint-repair.vue
src/views/components/complaint-repair.vue
+13
-2
smart-discover.vue
src/views/components/smart-discover.vue
+5
-3
main.vue
src/views/main.vue
+1
-1
No files found.
dist.zip
deleted
100644 → 0
View file @
600eccf1
File deleted
index.html
View file @
6e2995b9
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<!-- built files will be auto injected -->
<!-- built files will be auto injected -->
</body>
</body>
<script
src=
"./static/hls.js"
></script>
<script
src=
"./static/hls.js"
></script>
<
script
src=
"./static/SMap.min.js"
></script
>
<
!-- <script src="./static/SMap.min.js"></script> --
>
<
!-- <script src="./static/esm/SMap.min.js"></script> --
>
<
script
src=
"./static/esm/SMap.min.js"
></script
>
<script
src=
"./static/Plugins.min.js"
></script>
<script
src=
"./static/Plugins.min.js"
></script>
</html>
</html>
src/server/ajax.js
View file @
6e2995b9
...
@@ -5,7 +5,7 @@ import Store from '@/store'
...
@@ -5,7 +5,7 @@ import Store from '@/store'
const
Axios
=
axios
.
create
({
const
Axios
=
axios
.
create
({
baseURL
:
api
.
BASE_URL
,
baseURL
:
api
.
BASE_URL
,
timeout
:
15
000
,
timeout
:
30
000
,
})
})
Axios
.
interceptors
.
request
.
use
(
config
=>
{
Axios
.
interceptors
.
request
.
use
(
config
=>
{
// 添加token
// 添加token
...
...
src/store/actions.js
View file @
6e2995b9
...
@@ -142,6 +142,9 @@ export default {
...
@@ -142,6 +142,9 @@ export default {
sum
.
total
+=
+
e
.
total
sum
.
total
+=
+
e
.
total
sum
.
today
+=
+
e
.
numbers
sum
.
today
+=
+
e
.
numbers
})
})
// if (result.today > 100) {
// console.info(moment().format('YYYY-MM-DD HH:mm:ss'), result.today, res)
// }
commit
(
'SET_DISCOVER_SUM'
,
sum
)
commit
(
'SET_DISCOVER_SUM'
,
sum
)
commit
(
'SET_DISCOVER_INFO'
,
result
)
commit
(
'SET_DISCOVER_INFO'
,
result
)
})
})
...
...
src/views/components/complaint-repair.vue
View file @
6e2995b9
...
@@ -37,15 +37,26 @@ export default {
...
@@ -37,15 +37,26 @@ export default {
orient
:
'vertical'
,
orient
:
'vertical'
,
},
},
shape
:
[
shape
:
[
{
type
:
'pie'
,
radius
:
[
10
*
Number
((
screen
.
height
/
800
).
toFixed
(
1
)),
50
*
Number
((
screen
.
height
/
800
).
toFixed
(
1
))],
roseType
:
'radius'
,
center
:
[
'32
%'
,
'50%'
]}
{
type
:
'pie'
,
radius
:
[
30
*
Number
((
screen
.
height
/
800
).
toFixed
(
1
)),
45
*
Number
((
screen
.
height
/
800
).
toFixed
(
1
))],
center
:
[
'25
%'
,
'50%'
]}
]
]
},
},
options
:
{
options
:
{
legend
:
{
legend
:
{
top
:
'15%'
,
top
:
'15%'
,
formatter
:
(
name
)
=>
{
formatter
:
(
name
)
=>
{
// const data = this.$store.state.repairRate
// return `${name} ${(data.find(e => e.name === name)).value}件`
const
data
=
this
.
$store
.
state
.
repairRate
const
data
=
this
.
$store
.
state
.
repairRate
return
`
${
name
}
${(
data
.
find
(
e
=>
e
.
name
===
name
)).
value
}
件`
let
total
=
0
let
tarValue
for
(
let
i
=
0
;
i
<
data
.
length
;
i
++
)
{
total
+=
data
[
i
].
value
if
(
data
[
i
].
name
===
name
)
{
tarValue
=
data
[
i
].
value
}
}
const
percent
=
(
tarValue
/
total
*
100
).
toFixed
(
2
)
return
`
${
name
}
${
percent
}
%`
}
}
}
}
}
}
...
...
src/views/components/smart-discover.vue
View file @
6e2995b9
...
@@ -135,7 +135,9 @@ export default {
...
@@ -135,7 +135,9 @@ export default {
color $color-yellow
color $color-yellow
.chart
.chart
width 100%
width 100%
height 45%
height 40%
background url('../../assets/images/chart-bg.png') 100% / 100% no-repeat
background-image url('../../assets/images/chart-bg.png')
padding .1rem .03rem .05rem .05rem
background-size 100% 100%
background-repeat no-repeat
padding .1rem .03rem .07rem .05rem
</
style
>
</
style
>
src/views/main.vue
View file @
6e2995b9
...
@@ -203,7 +203,7 @@ export default {
...
@@ -203,7 +203,7 @@ export default {
this
.
getDiscoverInfo
()
this
.
getDiscoverInfo
()
this
.
getRepairInfo
()
this
.
getRepairInfo
()
this
.
getHandleList
()
this
.
getHandleList
()
},
1000
*
60
*
5
)
},
1000
*
60
*
1
)
},
},
init
()
{
init
()
{
const
{
map
}
=
this
.
$refs
const
{
map
}
=
this
.
$refs
...
...
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