Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
manage
Overview
Overview
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
vanke
manage
Commits
76a02a81
Commit
76a02a81
authored
Jun 30, 2020
by
wangyalan-git
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页数据渲染
parent
6f1d86da
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
198 additions
and
188 deletions
+198
-188
home.js
src/api/home.js
+42
-0
delivery.svg
src/icons/svg/delivery.svg
+2
-2
person.svg
src/icons/svg/person.svg
+2
-2
put.svg
src/icons/svg/put.svg
+2
-2
warn.svg
src/icons/svg/warn.svg
+2
-2
index.js
src/router/index.js
+14
-13
index.vue
src/views/home/index.vue
+130
-163
index.vue
src/views/ums/role/index.vue
+4
-4
No files found.
src/api/home.js
0 → 100644
View file @
76a02a81
// 首页
import
request
from
'@/utils/request'
// 万科后台_获取首页统计今日数据
export
function
getHomeData
(
params
)
{
return
request
({
url
:
'vankeStatisticalChart/getHomeData'
,
method
:
'post'
,
params
:
params
})
}
// 万科后台_获取首页入库物品类别分布
export
function
selectInBoundByCategory
(
data
)
{
return
request
({
url
:
'vankeStatisticalChart/selectInBoundByCategory'
,
method
:
'post'
,
data
})
}
// 万科后台_获取首页领取物品类别分布
export
function
selectOutBoundByCategory
(
data
)
{
return
request
({
url
:
'vankeStatisticalChart/selectOutBoundByCategory'
,
method
:
'post'
,
data
})
}
// 万科后台_获取首页申领人部门分布
export
function
selectOutBoundByDepartId
(
data
)
{
return
request
({
url
:
'vankeStatisticalChart/selectOutBoundByDepartId'
,
method
:
'post'
,
data
})
}
// 万科后台_获取首页统计出库值和入库值的变化曲线图
export
function
selectStockByGoodsIdAndTime
(
data
)
{
return
request
({
url
:
'vankeStatisticalChart/selectStockByGoodsIdAndTime'
,
method
:
'post'
,
data
})
}
src/icons/svg/delivery.svg
View file @
76a02a81
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1592799142096"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"6733"
data-spm-anchor-id=
"a313x.7781069.0.i30"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"200"
height=
"200"
><defs><style
type=
"text/css"
></style></defs><path
d=
"M392.6 726.9c2.2-55.2 28-325.1 327.6-337V303c-0.4-4.9-0.2-16 7.8-24.8 9.2-10.2 24.3-12.5 41.5-5.3l3.9 1.8 168.4 174.9c3.3 3.7 17.6 20.9 17.6 40.9 0 20.9-17.8 38.7-21.3 42.1L769.5 717.9c-4.3 4.5-14.7 13.5-28.2 13.5-10.4 0-19.8-5.7-24.8-14.9-3.5-6.5-5.1-14.5-5.1-25.4V585.8c-48.5-1.2-190.3 8.4-273 152.4-5.5 9.4-13.9 14.9-23.1 14.9h-8.8l-7.2-6.5c-7.3-7.2-6.9-16.6-6.7-19.7z m312-180.8c18.6 0 30.1 1.6 30.7 1.6l17.8 2.3v125.6L908 505.3c5.5-5.3 10-12.5 10-15.1 0-4.1-4.3-11.1-7.4-14.7l-149-154.7V429h-20.7C527.3 429 461.8 567.9 442 662.5c89.7-103.9 210-116.4 262.6-116.4z m-188-215.3c0-17.2-14.1-31.3-31.3-31.3H253.6c-17.2 0-31.3 14.1-31.3 31.3 0 17.2 14.1 31.3 31.3 31.3h231.8c17.1 0 31.2-14.1 31.2-31.3zM347.8 575.9h-94.3c-17.2 0-31.3 14.1-31.3 31.3 0 17.2 14.1 31.3 31.3 31.3h94.3c17.2 0 31.3-14.1 31.3-31.3 0-17.3-13.9-31.3-31.3-31.3z m56.8-107c0-17.2-14.1-31.3-31.3-31.3H253.6c-17.2 0-31.3 14.1-31.3 31.3 0 17.2 14.1 31.3 31.3 31.3h119.7c17.4 0.2 31.3-13.9 31.3-31.3z m0 0"
p-id=
"6734"
data-spm-anchor-id=
"a313x.7781069.0.i28"
class=
"selected"
fill=
"#409eff"
></path><path
d=
"M800 755v45c0 30.5-29.3 55.4-60 55.4H177.5c-30.5 0-55.4-24.8-55.4-55.4V220.9c1.6-29.3 25.6-52.6 55.4-52.6h576.2c29.5 0 53.8 23.3 55.4 52.6v18.6s33.6 51.4 58.1 83.3V220.9c0-12.9-2.3-25.8-6.7-38.1C845 140.3 804.1 110 756.4 110H174.7c-51.6 0-95.1 35.2-107.4 83.1-2.3 9-3.5 18.4-3.5 27.8v581.7c0 61.2 49.7 110.9 110.7 110.9h581.7c56.3 0 102.7-41.9 109.9-96.2 0 0 0.8-146.7-2.1-143.9-75.1 81.6-63.6 81.8-64 81.6z m0 0"
p-id=
"6735"
data-spm-anchor-id=
"a313x.7781069.0.i31"
class=
"selected"
fill=
"#409eff"
></path></svg>
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1593501571626"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"9082"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"200"
height=
"200"
><defs><style
type=
"text/css"
></style></defs><path
d=
"M392.6 726.9c2.2-55.2 28-325.1 327.6-337V303c-0.4-4.9-0.2-16 7.8-24.8 9.2-10.2 24.3-12.5 41.5-5.3l3.9 1.8 168.4 174.9c3.3 3.7 17.6 20.9 17.6 40.9 0 20.9-17.8 38.7-21.3 42.1L769.5 717.9c-4.3 4.5-14.7 13.5-28.2 13.5-10.4 0-19.8-5.7-24.8-14.9-3.5-6.5-5.1-14.5-5.1-25.4V585.8c-48.5-1.2-190.3 8.4-273 152.4-5.5 9.4-13.9 14.9-23.1 14.9h-8.8l-7.2-6.5c-7.3-7.2-6.9-16.6-6.7-19.7z m312-180.8c18.6 0 30.1 1.6 30.7 1.6l17.8 2.3v125.6L908 505.3c5.5-5.3 10-12.5 10-15.1 0-4.1-4.3-11.1-7.4-14.7l-149-154.7V429h-20.7C527.3 429 461.8 567.9 442 662.5c89.7-103.9 210-116.4 262.6-116.4z m-188-215.3c0-17.2-14.1-31.3-31.3-31.3H253.6c-17.2 0-31.3 14.1-31.3 31.3 0 17.2 14.1 31.3 31.3 31.3h231.8c17.1 0 31.2-14.1 31.2-31.3zM347.8 575.9h-94.3c-17.2 0-31.3 14.1-31.3 31.3 0 17.2 14.1 31.3 31.3 31.3h94.3c17.2 0 31.3-14.1 31.3-31.3 0-17.3-13.9-31.3-31.3-31.3z m56.8-107c0-17.2-14.1-31.3-31.3-31.3H253.6c-17.2 0-31.3 14.1-31.3 31.3 0 17.2 14.1 31.3 31.3 31.3h119.7c17.4 0.2 31.3-13.9 31.3-31.3z m0 0"
p-id=
"9083"
></path><path
d=
"M800 755v45c0 30.5-29.3 55.4-60 55.4H177.5c-30.5 0-55.4-24.8-55.4-55.4V220.9c1.6-29.3 25.6-52.6 55.4-52.6h576.2c29.5 0 53.8 23.3 55.4 52.6v18.6s33.6 51.4 58.1 83.3V220.9c0-12.9-2.3-25.8-6.7-38.1C845 140.3 804.1 110 756.4 110H174.7c-51.6 0-95.1 35.2-107.4 83.1-2.3 9-3.5 18.4-3.5 27.8v581.7c0 61.2 49.7 110.9 110.7 110.9h581.7c56.3 0 102.7-41.9 109.9-96.2 0 0 0.8-146.7-2.1-143.9-75.1 81.6-63.6 81.8-64 81.6z m0 0"
p-id=
"9084"
></path></svg>
\ No newline at end of file
\ No newline at end of file
src/icons/svg/person.svg
View file @
76a02a81
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1592799200925"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"6968"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"200"
height=
"200"
><defs><style
type=
"text/css"
></style></defs><path
d=
"M86.4 824l1-24.6c12.4-65.1 33.7-126.2 74.3-179.9 41.6-55 93.9-95.6 156.4-123.7 8.3-3.7 16.5-7.4 28.1-12.6-30.9-24.6-57.5-50.4-74.2-84.2-42.5-86.3-35.4-168.9 22-245.7C348.1 81 445.8 47.9 532.1 72.6c93.1 26.6 149.2 88.3 168.6 183.6 23.5 115.7-67.6 265.4-230.1 266-114.7 0.4-205.7 52.3-270.9 146.9-44.7 64.9-57.9 138.1-54.5 215.6 0.9 19.7 14.1 14.7 24.5 14.7 111.2 0.2 222.5 0 333.7-0.1 5 0 10.1-0.6 14.9 0.2 17 2.7 27.5 12.8 27 30.1-0.5 17.2-10.9 28.1-28.3 28.8-24.9 1.1-49.8 0.3-74.7 0.3-105.4 0-210.9-0.2-316.3 0.2-17.2 0.1-31.2-3.2-39.2-19.9l-0.4-115z m386.7-361.1c93.1 1.4 172-76.6 171.9-170.1-0.1-92.6-76-168.4-169.9-169.6-91.9-1.2-169.6 76.1-170 168.9-0.4 93.2 74.5 169.4 168 170.8z m0 0"
p-id=
"6969"
fill=
"#409eff"
></path><path
d=
"M764.4 956c-33.8 0-67.7 0.2-101.6-0.1-41.6-0.4-69.9-25.3-70.9-67-1.6-71.1-1.5-142.4-0.1-213.5 0.7-36.7 29.8-62.9 66.1-63.3 39-0.4 78.1 0.2 117.2-0.3 14.3-0.2 25 4.7 25.4 19.4 0.4 15.4-9.6 23.1-25.3 23.1-34.7-0.1-69.4 0.5-104.1-0.2-22.6-0.5-33.7 8.1-33.4 32 0.7 64.2 0.6 128.5 0 192.7-0.2 21.7 7.6 31.7 30.5 31.4 64.2-0.8 128.4-0.7 192.7-0.1 22 0.2 31.8-8.6 31.3-30.9-0.8-33.8 0.2-67.7-0.4-101.5-0.3-15.6 6.3-26.5 21.2-27.5 15.3-1 24.5 11.2 24.9 25 1 40.7 2.3 81.7-1.3 122.2-3.3 36.7-31 58-68 58.5-34.7 0.5-69.4 0.1-104.2 0.1z m0 0"
p-id=
"6970"
fill=
"#409eff"
></path><path
d=
"M899.4 617.3c15.2-0.4 27 16.6 21 30.6-1.7 4-4.2 7.6-7.2 10.6-63 63.1-126.1 126.2-189.3 189.2-9.3 9.2-20.6 15.2-32.1 4.8-12.8-11.6-6.9-23.7 3-33.9 62.2-63.9 124.5-127.7 187-191.4 4.8-4.8 10-9.7 17.6-9.9z m0 0"
p-id=
"6971"
fill=
"#409eff"
></path></svg>
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1593501651049"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"1286"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"200"
height=
"200"
><defs><style
type=
"text/css"
></style></defs><path
d=
"M86.4 824l1-24.6c12.4-65.1 33.7-126.2 74.3-179.9 41.6-55 93.9-95.6 156.4-123.7 8.3-3.7 16.5-7.4 28.1-12.6-30.9-24.6-57.5-50.4-74.2-84.2-42.5-86.3-35.4-168.9 22-245.7C348.1 81 445.8 47.9 532.1 72.6c93.1 26.6 149.2 88.3 168.6 183.6 23.5 115.7-67.6 265.4-230.1 266-114.7 0.4-205.7 52.3-270.9 146.9-44.7 64.9-57.9 138.1-54.5 215.6 0.9 19.7 14.1 14.7 24.5 14.7 111.2 0.2 222.5 0 333.7-0.1 5 0 10.1-0.6 14.9 0.2 17 2.7 27.5 12.8 27 30.1-0.5 17.2-10.9 28.1-28.3 28.8-24.9 1.1-49.8 0.3-74.7 0.3-105.4 0-210.9-0.2-316.3 0.2-17.2 0.1-31.2-3.2-39.2-19.9l-0.4-115z m386.7-361.1c93.1 1.4 172-76.6 171.9-170.1-0.1-92.6-76-168.4-169.9-169.6-91.9-1.2-169.6 76.1-170 168.9-0.4 93.2 74.5 169.4 168 170.8z m0 0"
p-id=
"1287"
></path><path
d=
"M764.4 956c-33.8 0-67.7 0.2-101.6-0.1-41.6-0.4-69.9-25.3-70.9-67-1.6-71.1-1.5-142.4-0.1-213.5 0.7-36.7 29.8-62.9 66.1-63.3 39-0.4 78.1 0.2 117.2-0.3 14.3-0.2 25 4.7 25.4 19.4 0.4 15.4-9.6 23.1-25.3 23.1-34.7-0.1-69.4 0.5-104.1-0.2-22.6-0.5-33.7 8.1-33.4 32 0.7 64.2 0.6 128.5 0 192.7-0.2 21.7 7.6 31.7 30.5 31.4 64.2-0.8 128.4-0.7 192.7-0.1 22 0.2 31.8-8.6 31.3-30.9-0.8-33.8 0.2-67.7-0.4-101.5-0.3-15.6 6.3-26.5 21.2-27.5 15.3-1 24.5 11.2 24.9 25 1 40.7 2.3 81.7-1.3 122.2-3.3 36.7-31 58-68 58.5-34.7 0.5-69.4 0.1-104.2 0.1z m0 0"
p-id=
"1288"
></path><path
d=
"M899.4 617.3c15.2-0.4 27 16.6 21 30.6-1.7 4-4.2 7.6-7.2 10.6-63 63.1-126.1 126.2-189.3 189.2-9.3 9.2-20.6 15.2-32.1 4.8-12.8-11.6-6.9-23.7 3-33.9 62.2-63.9 124.5-127.7 187-191.4 4.8-4.8 10-9.7 17.6-9.9z m0 0"
p-id=
"1289"
></path></svg>
\ No newline at end of file
\ No newline at end of file
src/icons/svg/put.svg
View file @
76a02a81
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1592798464785"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"1473"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"200"
height=
"200"
><defs><style
type=
"text/css"
></style></defs><path
d=
"M959.5 776.4c-2.1-55.9-27.1-329.9-317.8-342v-88.1c0.4-5 0.2-16.3-7.6-25.2-9-10.2-23.4-12.6-40.1-5.4l-3.9 1.7-163.2 177.5c-3.3 3.9-17.2 21.2-17.2 41.5 0 21.2 17.2 39.3 20.7 42.7l163.5 188.1c4.2 4.5 14.2 13.7 27.2 13.7 10.1 0 19.1-5.7 24-15.1 3.4-6.5 5-14.7 5-25.7V633.2c47.1-1.2 184.7 8.5 264.9 154.7 5.2 9.5 13.4 15 22.4 15h8.5l6.9-6.6c7.2-7.3 6.8-16.8 6.7-19.9zM656.9 592.9c-18 0-29.2 1.6-29.7 1.6l-17.3 2.5v127.4L459.7 551.6c-5.3-5.4-9.7-12.6-9.8-15.3 0-4.1 4.1-11.4 7.2-15l144.5-157.1-0.1 109.8h20.1c207.1 0 270.6 140.9 289.9 236.9-87-105.2-203.6-118-254.6-118zM523.4 326.8c0-17.5-14.2-31.8-31.8-31.8H267.9c-17.6 0-31.8 14.2-31.8 31.8s14.2 31.8 31.8 31.8h223.8c17.5-0.1 31.7-14.3 31.7-31.8zM352.2 575.4h-84.3c-17.6 0-31.8 14.2-31.8 31.8s14.2 31.8 31.8 31.8h84.3c17.5 0 31.8-14.2 31.8-31.8-0.1-17.5-14.3-31.7-31.8-31.8zM409.7 467c0-17.5-14.2-31.8-31.8-31.8h-110c-17.6 0-31.8 14.2-31.8 31.8s14.2 31.8 31.8 31.8H378c17.5 0 31.7-14.3 31.7-31.8z m0 0"
p-id=
"1474"
fill=
"#409eff"
></path><path
d=
"M805.6 747.7c-0.4-0.1-0.9-0.2-1.3-0.3l-4.7 53.6c0 31-29.8 56.2-60.9 56.2H181.3c-31 0-56.2-25.2-56.2-56.2V220.3c0-1 0-1.9 0.1-2.9 1.5-29.7 26.1-53.4 56.2-53.4H762c30.1 0 54.6 23.7 56.2 53.4 0 1 0.1 1.9 0.1 2.9v18.2l4.7 159.3c26.4 17.6 28.2 35.3 56.4 62.1V215.5c0-13.2-2.3-26.3-6.8-38.7C856.8 133.7 815.5 103 767 103H176.5c-52.4 0-96.4 35.8-108.9 84.3-2.4 9.2-3.6 18.6-3.5 28.1v590.3c0 62.1 50.3 112.5 112.4 112.5h168.7v1.1h84.3v-1.1h84.3v1.1h84.3v-1.1h168.7c57.1 0 104.2-42.5 111.5-97.7 0 0-0.7-2.3-2.2-6.1-22.8-37.7-45.3-45.6-70.5-66.7z m0 0"
p-id=
"1475"
fill=
"#409eff"
></path></svg>
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1593501611952"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"1155"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"200"
height=
"200"
><defs><style
type=
"text/css"
></style></defs><path
d=
"M959.5 776.4c-2.1-55.9-27.1-329.9-317.8-342v-88.1c0.4-5 0.2-16.3-7.6-25.2-9-10.2-23.4-12.6-40.1-5.4l-3.9 1.7-163.2 177.5c-3.3 3.9-17.2 21.2-17.2 41.5 0 21.2 17.2 39.3 20.7 42.7l163.5 188.1c4.2 4.5 14.2 13.7 27.2 13.7 10.1 0 19.1-5.7 24-15.1 3.4-6.5 5-14.7 5-25.7V633.2c47.1-1.2 184.7 8.5 264.9 154.7 5.2 9.5 13.4 15 22.4 15h8.5l6.9-6.6c7.2-7.3 6.8-16.8 6.7-19.9zM656.9 592.9c-18 0-29.2 1.6-29.7 1.6l-17.3 2.5v127.4L459.7 551.6c-5.3-5.4-9.7-12.6-9.8-15.3 0-4.1 4.1-11.4 7.2-15l144.5-157.1-0.1 109.8h20.1c207.1 0 270.6 140.9 289.9 236.9-87-105.2-203.6-118-254.6-118zM523.4 326.8c0-17.5-14.2-31.8-31.8-31.8H267.9c-17.6 0-31.8 14.2-31.8 31.8s14.2 31.8 31.8 31.8h223.8c17.5-0.1 31.7-14.3 31.7-31.8zM352.2 575.4h-84.3c-17.6 0-31.8 14.2-31.8 31.8s14.2 31.8 31.8 31.8h84.3c17.5 0 31.8-14.2 31.8-31.8-0.1-17.5-14.3-31.7-31.8-31.8zM409.7 467c0-17.5-14.2-31.8-31.8-31.8h-110c-17.6 0-31.8 14.2-31.8 31.8s14.2 31.8 31.8 31.8H378c17.5 0 31.7-14.3 31.7-31.8z m0 0"
p-id=
"1156"
></path><path
d=
"M805.6 747.7c-0.4-0.1-0.9-0.2-1.3-0.3l-4.7 53.6c0 31-29.8 56.2-60.9 56.2H181.3c-31 0-56.2-25.2-56.2-56.2V220.3c0-1 0-1.9 0.1-2.9 1.5-29.7 26.1-53.4 56.2-53.4H762c30.1 0 54.6 23.7 56.2 53.4 0 1 0.1 1.9 0.1 2.9v18.2l4.7 159.3c26.4 17.6 28.2 35.3 56.4 62.1V215.5c0-13.2-2.3-26.3-6.8-38.7C856.8 133.7 815.5 103 767 103H176.5c-52.4 0-96.4 35.8-108.9 84.3-2.4 9.2-3.6 18.6-3.5 28.1v590.3c0 62.1 50.3 112.5 112.4 112.5h168.7v1.1h84.3v-1.1h84.3v1.1h84.3v-1.1h168.7c57.1 0 104.2-42.5 111.5-97.7 0 0-0.7-2.3-2.2-6.1-22.8-37.7-45.3-45.6-70.5-66.7z m0 0"
p-id=
"1157"
></path></svg>
\ No newline at end of file
\ No newline at end of file
src/icons/svg/warn.svg
View file @
76a02a81
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1592798608137"
class=
"icon"
viewBox=
"0 0 1094 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"2153"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"213.671875"
height=
"200"
><defs><style
type=
"text/css"
></style></defs><path
d=
"M1079.89132 363.781049l-77.980105-53.286648a32.012732 32.012732 0 0 0-10.462343-7.14466L555.653726 5.587677a32.012732 32.012732 0 0 0-36.567271 0.305576L13.503553 364.101177a32.012732 32.012732 0 0 0 37.018359 52.166202l32.303757-22.889104v456.443359a174.382084 174.382084 0 0 0 174.178367 174.178366H836.841926a174.382084 174.382084 0 0 0 174.178366-174.178366V394.265901l32.754846 22.37981A32.012732 32.012732 0 1 0 1079.89132 363.781049zM946.994827 849.792531a110.283863 110.283863 0 0 1-110.152901 110.152902H257.004036a110.283863 110.283863 0 0 1-110.152902-110.152902V348.09481L537.915762 71.024612 946.994827 350.524868z"
fill=
"#409eff"
p-id=
"2154"
></path><path
d=
"M514.910248 353.333258v368.233729a32.012732 32.012732 0 0 0 64.025465 0V353.333258a32.012732 32.012732 0 0 0-64.025465 0z"
fill=
"#409eff"
p-id=
"2155"
></path><path
d=
"M546.922981 829.318934m-38.924573 0a38.924572 38.924572 0 1 0 77.849145 0 38.924572 38.924572 0 1 0-77.849145 0Z"
fill=
"#409eff"
p-id=
"2156"
></path></svg>
<?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg
t=
"1593501720978"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"3472"
xmlns:xlink=
"http://www.w3.org/1999/xlink"
width=
"200"
height=
"200"
><defs><style
type=
"text/css"
></style></defs><path
d=
"M948.659 855.667a80.435 80.435 0 0 1-69.935 40.833h-733.42a80.338 80.338 0 0 1-68.779-121.821l366.706-608.325a80.306 80.306 0 0 1 137.561 0l366.71 608.327a80.475 80.475 0 0 1 1.157 80.986z m-51-50.922l-366.71-608.327a22.106 22.106 0 0 0-37.868 0L126.37 804.745a22.116 22.116 0 0 0 18.934 33.535h733.42a22.114 22.114 0 0 0 18.933-33.535z m-384.828-39.602a41.594 41.594 0 0 1 0-83.188c22.139 0 41.042 18.906 41.042 41.594-0.003 22.151-18.904 41.594-41.042 41.594z m-0.541-120.458c-17.28 0-31.862-7.022-31.864-23.766 0-64.28-7.559-156.648-7.559-220.926 0-21.068 17.28-32.951 39.421-32.951 21.061 0 38.881 11.885 38.881 32.951 0 64.28-7.559 156.647-7.559 220.926-0.003 16.744-18.364 23.766-31.323 23.766z"
fill=
""
p-id=
"3473"
></path></svg>
\ No newline at end of file
\ No newline at end of file
src/router/index.js
View file @
76a02a81
...
@@ -215,19 +215,20 @@ export const asyncRouterMap = [
...
@@ -215,19 +215,20 @@ export const asyncRouterMap = [
meta
:
{
title
:
'修改菜单'
},
meta
:
{
title
:
'修改菜单'
},
hidden
:
true
hidden
:
true
},
},
{
// {
path
:
'resource'
,
// path: 'resource',
name
:
'resource'
,
// name: 'resource',
component
:
()
=>
import
(
'@/views/ums/resource/index'
),
// component: () => import('@/views/ums/resource/index'),
meta
:
{
title
:
'资源列表'
,
icon
:
'ums-resource'
}
// meta: { title: '资源列表', icon: 'ums-resource' },
},
// hidden: true
{
// },
path
:
'resourceCategory'
,
// {
name
:
'resourceCategory'
,
// path: 'resourceCategory',
component
:
()
=>
import
(
'@/views/ums/resource/categoryList'
),
// name: 'resourceCategory',
meta
:
{
title
:
'资源分类'
},
// component: () => import('@/views/ums/resource/categoryList'),
hidden
:
true
// meta: { title: '资源分类' },
}
// hidden: true
// }
]
]
},
},
{
path
:
'*'
,
redirect
:
'/404'
,
hidden
:
true
}
{
path
:
'*'
,
redirect
:
'/404'
,
hidden
:
true
}
...
...
src/views/home/index.vue
View file @
76a02a81
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
class=
"total-icon"
>
class=
"total-icon"
>
</svg-icon>
</svg-icon>
<div
class=
"total-title"
>
今日出库(件)
</div>
<div
class=
"total-title"
>
今日出库(件)
</div>
<div
class=
"total-value"
>
200
</div>
<div
class=
"total-value"
>
{{
homeData
[
'今日出库'
]
}}
</div>
</div>
</div>
</el-col>
</el-col>
<el-col>
<el-col>
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
class=
"total-icon"
>
class=
"total-icon"
>
</svg-icon>
</svg-icon>
<div
class=
"total-title"
>
今日入库(件)
</div>
<div
class=
"total-title"
>
今日入库(件)
</div>
<div
class=
"total-value"
>
5000.00
</div>
<div
class=
"total-value"
>
{{
homeData
[
'今日入库'
]
}}
</div>
</div>
</div>
</el-col>
</el-col>
<el-col>
<el-col>
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
class=
"total-icon"
>
class=
"total-icon"
>
</svg-icon>
</svg-icon>
<div
class=
"total-title"
>
库存预警
</div>
<div
class=
"total-title"
>
库存预警
</div>
<div
class=
"total-value"
>
¥50000.00
</div>
<div
class=
"total-value"
>
{{
homeData
[
'库存预警'
]
}}
</div>
</div>
</div>
</el-col>
</el-col>
<el-col>
<el-col>
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
class=
"total-icon"
>
class=
"total-icon"
>
</svg-icon>
</svg-icon>
<div
class=
"total-title"
>
今日申领人
</div>
<div
class=
"total-title"
>
今日申领人
</div>
<div
class=
"total-value"
>
50000.00
</div>
<div
class=
"total-value"
>
{{
homeData
[
'今日申领人'
]
}}
</div>
</div>
</div>
</el-col>
</el-col>
<el-col>
<el-col>
...
@@ -44,49 +44,43 @@
...
@@ -44,49 +44,43 @@
class=
"total-icon"
>
class=
"total-icon"
>
</svg-icon>
</svg-icon>
<div
class=
"total-title"
>
剩余库存
</div>
<div
class=
"total-title"
>
剩余库存
</div>
<div
class=
"total-value"
>
5000.00
</div>
<div
class=
"total-value"
>
{{
homeData
[
'剩余库存'
]
}}
</div>
</div>
</div>
</el-col>
</el-col>
</el-row>
</el-row>
</div>
</div>
<div
class=
"overview-layout"
>
<div
class=
"overview-layout"
>
<el-row
:gutter=
"20"
>
<el-row
:gutter=
"20"
>
<el-col
:span=
"1
2
"
>
<el-col
:span=
"1
4
"
>
<div
class=
"out-border"
>
<div
class=
"out-border"
>
<div
class=
"layout-title"
>
出库入库
</div>
<div
class=
"layout-title"
>
出库入库
</div>
<div
style=
"padding: 10px;border-left:1px solid #DCDFE6"
>
<div
style=
"padding: 10px;border-left:1px solid #DCDFE6"
>
<el-button
type=
"primary"
plain
>
7天
</el-button>
<el-button
size=
"small"
:type=
"inOutType==6? 'primary': ''"
plain
@
click=
"selectStockByGoodsIdAndTime(6)"
>
7天
</el-button>
<el-button
plain
>
15天
</el-button>
<el-button
size=
"small"
:type=
"inOutType==14? 'primary': ''"
plain
@
click=
"selectStockByGoodsIdAndTime(14)"
>
15天
</el-button>
<div>
<div>
<ve-line
:data=
"chartData"
<ve-line
:data=
"chartData"
:legend-visible=
"false"
:settings=
"chartSetting"
></ve-line>
:legend-visible=
"false"
:loading=
"loading"
:data-empty=
"dataEmpty"
:settings=
"chartSettings"
></ve-line>
</div>
</div>
</div>
</div>
</div>
</div>
</el-col>
</el-col>
<el-col
:span=
"1
2
"
>
<el-col
:span=
"1
0
"
>
<div
class=
"out-border"
>
<div
class=
"out-border"
>
<div
class=
"layout-title"
>
库存预警
</div>
<div
class=
"layout-title"
>
库存预警
</div>
<div
style=
"padding: 40px"
>
<div
style=
"padding: 40px"
>
<el-table
<el-table
:data=
"
tableData
"
:data=
"
homeData.stockWarns
"
style=
"width: 100%"
>
style=
"width: 100%"
>
<el-table-column
<el-table-column
prop=
"date"
prop=
"name"
label=
"日期"
label=
"物品名称"
>
width=
"180"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"name"
prop=
"goodsCategoryName"
label=
"姓名"
label=
"物品类别"
>
width=
"180"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
prop=
"
address
"
prop=
"
goodsNum
"
label=
"
地址
"
>
label=
"
剩余数量
"
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
...
@@ -100,11 +94,11 @@
...
@@ -100,11 +94,11 @@
<div
class=
"out-border"
>
<div
class=
"out-border"
>
<div
class=
"layout-title"
>
领取物品类别分布
</div>
<div
class=
"layout-title"
>
领取物品类别分布
</div>
<div
style=
"padding: 10px;border-left:1px solid #DCDFE6"
>
<div
style=
"padding: 10px;border-left:1px solid #DCDFE6"
>
<el-button
type=
"primary"
plain
>
昨天
</el-button>
<el-button
:type=
"OutCategoryType == 1? 'primary':''"
plain
@
click=
"selectOutBoundByCategory(1)"
>
昨天
</el-button>
<el-button
type=
"primary"
plain
>
7天
</el-button>
<el-button
:type=
"OutCategoryType == 6? 'primary':''"
plain
@
click=
"selectOutBoundByCategory(6)"
>
7天
</el-button>
<el-button
plain
>
15天
</el-button>
<el-button
:type=
"OutCategoryType == 14? 'primary':''"
plain
@
click=
"selectOutBoundByCategory(14)"
>
15天
</el-button>
<div>
<div
style=
"padding-top: 10px;"
>
<ve-pie
:data=
"
chartData1"
:settings=
"chartSettings1
"
></ve-pie>
<ve-pie
:data=
"
OutCategoryData"
:legend-visible=
"false
"
></ve-pie>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -113,11 +107,11 @@
...
@@ -113,11 +107,11 @@
<div
class=
"out-border"
>
<div
class=
"out-border"
>
<div
class=
"layout-title"
>
入库物品类别分布
</div>
<div
class=
"layout-title"
>
入库物品类别分布
</div>
<div
style=
"padding: 10px;border-left:1px solid #DCDFE6"
>
<div
style=
"padding: 10px;border-left:1px solid #DCDFE6"
>
<el-button
type=
"primary"
plain
>
昨天
</el-button>
<el-button
:type=
"inCategoryType == 1? 'primary':''"
plain
@
click=
"selectInBoundByCategory(1)"
>
昨天
</el-button>
<el-button
type=
"primary"
plain
>
7天
</el-button>
<el-button
:type=
"inCategoryType == 6? 'primary':''"
plain
@
click=
"selectInBoundByCategory(6)"
>
7天
</el-button>
<el-button
plain
>
15天
</el-button>
<el-button
:type=
"inCategoryType == 14? 'primary':''"
plain
@
click=
"selectInBoundByCategory(14)"
>
15天
</el-button>
<div>
<div
style=
"padding-top: 10px;"
>
<ve-pie
:data=
"
chartData1"
:settings=
"chartSettings1
"
></ve-pie>
<ve-pie
:data=
"
inCategoryData"
:legend-visible=
"false
"
></ve-pie>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -126,11 +120,11 @@
...
@@ -126,11 +120,11 @@
<div
class=
"out-border"
>
<div
class=
"out-border"
>
<div
class=
"layout-title"
>
申领人部门分布
</div>
<div
class=
"layout-title"
>
申领人部门分布
</div>
<div
style=
"padding: 10px;border-left:1px solid #DCDFE6"
>
<div
style=
"padding: 10px;border-left:1px solid #DCDFE6"
>
<el-button
type=
"primary"
plain
>
昨天
</el-button>
<el-button
:type=
"departType == 1? 'primary':''"
plain
@
click=
"selectOutBoundByDepartId(1)"
>
昨天
</el-button>
<el-button
type=
"primary"
plain
>
7天
</el-button>
<el-button
:type=
"departType == 6? 'primary':''"
plain
@
click=
"selectOutBoundByDepartId(6)"
>
7天
</el-button>
<el-button
plain
>
15天
</el-button>
<el-button
:type=
"departType == 14? 'primary':''"
plain
@
click=
"selectOutBoundByDepartId(14)"
>
15天
</el-button>
<div>
<div
style=
"padding-top: 10px;"
>
<ve-pie
:data=
"
chartData1"
:settings=
"chartSettings1
"
></ve-pie>
<ve-pie
:data=
"
departData"
:legend-visible=
"false
"
></ve-pie>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -142,151 +136,124 @@
...
@@ -142,151 +136,124 @@
<
script
>
<
script
>
import
{
str2Date
}
from
'@/utils/date'
import
{
str2Date
}
from
'@/utils/date'
import
{
getHomeData
,
selectStockByGoodsIdAndTime
,
selectInBoundByCategory
,
selectOutBoundByCategory
,
selectOutBoundByDepartId
}
from
'@/api/home'
const
DATA_FROM_BACKEND
=
{
columns
:
[
'date'
,
'orderCount'
,
'orderAmount'
],
rows
:
[
{
date
:
'2018-11-01'
,
orderCount
:
10
,
orderAmount
:
100
},
{
date
:
'2018-11-02'
,
orderCount
:
20
,
orderAmount
:
2230
},
{
date
:
'2018-11-03'
,
orderCount
:
33
,
orderAmount
:
3623
},
{
date
:
'2018-11-04'
,
orderCount
:
50
,
orderAmount
:
6423
},
{
date
:
'2018-11-05'
,
orderCount
:
80
,
orderAmount
:
8492
},
{
date
:
'2018-11-06'
,
orderCount
:
60
,
orderAmount
:
6293
},
{
date
:
'2018-11-07'
,
orderCount
:
20
,
orderAmount
:
2293
},
{
date
:
'2018-11-08'
,
orderCount
:
60
,
orderAmount
:
6293
},
{
date
:
'2018-11-09'
,
orderCount
:
50
,
orderAmount
:
5293
},
{
date
:
'2018-11-10'
,
orderCount
:
30
,
orderAmount
:
3293
},
{
date
:
'2018-11-11'
,
orderCount
:
20
,
orderAmount
:
2293
},
{
date
:
'2018-11-12'
,
orderCount
:
80
,
orderAmount
:
8293
},
{
date
:
'2018-11-13'
,
orderCount
:
100
,
orderAmount
:
10293
},
{
date
:
'2018-11-14'
,
orderCount
:
10
,
orderAmount
:
1293
},
{
date
:
'2018-11-15'
,
orderCount
:
40
,
orderAmount
:
4293
}
]
}
export
default
{
export
default
{
name
:
'home'
,
name
:
'home'
,
data
()
{
data
()
{
const
that
=
this
return
{
return
{
chartData1
:
{
inOutType
:
7
,
// 出入值时间
columns
:
[
'日期'
,
'访问用户'
],
OutCategoryType
:
1
,
rows
:
[
inCategoryType
:
1
,
{
'日期'
:
'1/1'
,
'访问用户'
:
1393
},
departType
:
1
,
{
'日期'
:
'1/2'
,
'访问用户'
:
3530
},
homeData
:
{},
{
'日期'
:
'1/3'
,
'访问用户'
:
2923
},
// 物品类别
{
'日期'
:
'1/4'
,
'访问用户'
:
1723
},
OutCategoryData
:
{
{
'日期'
:
'1/5'
,
'访问用户'
:
3792
},
columns
:
[
'categoryName'
,
'outboundNum'
],
{
'日期'
:
'1/6'
,
'访问用户'
:
4593
}
rows
:
[]
]
},
chartSettings1
:{
dimension
:
'日期'
,
metrics
:
'访问用户'
},
},
tableData
:
[{
inCategoryData
:
{
date
:
'2016-05-02'
,
columns
:
[
'categoryName'
,
'inboundNum'
],
name
:
'王小虎'
,
rows
:
[]
address
:
'上海市普陀区金沙江路 1518 弄'
},
{
date
:
'2016-05-04'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1517 弄'
},
{
date
:
'2016-05-01'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1519 弄'
},
{
date
:
'2016-05-03'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1516 弄'
},
{
date
:
'2016-05-03'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1516 弄'
},
{
date
:
'2016-05-03'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1516 弄'
},
{
date
:
'2016-05-03'
,
name
:
'王小虎'
,
address
:
'上海市普陀区金沙江路 1516 弄'
}],
pickerOptions
:
{
shortcuts
:
[{
text
:
'最近一周'
,
onClick
(
picker
)
{
const
end
=
new
Date
()
let
start
=
new
Date
()
start
.
setFullYear
(
2018
)
start
.
setMonth
(
10
)
start
.
setDate
(
1
)
end
.
setTime
(
start
.
getTime
()
+
3600
*
1000
*
24
*
7
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
}
},
{
text
:
'最近一月'
,
onClick
(
picker
)
{
const
end
=
new
Date
()
let
start
=
new
Date
()
start
.
setFullYear
(
2018
)
start
.
setMonth
(
10
)
start
.
setDate
(
1
)
end
.
setTime
(
start
.
getTime
()
+
3600
*
1000
*
24
*
30
)
picker
.
$emit
(
'pick'
,
[
start
,
end
])
}
}]
},
},
orderCountDate
:
''
,
departData
:{
chartSettings
:
{
columns
:
[
'departmentName'
,
'outboundNum'
],
xAxisType
:
'time'
,
rows
:
[]
area
:
true
,
axisSite
:
{
right
:
[
'orderAmount'
]
},
labelMap
:
{
'orderCount'
:
'订单数量'
,
'orderAmount'
:
'订单金额'
}
},
},
// 入库/出库
chartData
:
{
chartData
:
{
columns
:
[],
columns
:
[
'data'
,
'inBoundNum'
,
'outBoundNum'
],
rows
:
[]
rows
:
[]
},
},
chartSetting
:
{
labelMap
:
{
'inBoundNum'
:
'入库数量'
,
'outBoundNum'
:
'出库数量'
}
},
loading
:
false
,
loading
:
false
,
dataEmpty
:
false
dataEmpty
:
false
}
}
},
},
created
()
{
created
()
{
this
.
initOrderCountDate
()
this
.
getHomeData
()
this
.
getData
()
this
.
selectStockByGoodsIdAndTime
(
6
)
this
.
selectOutBoundByCategory
(
1
)
this
.
selectInBoundByCategory
(
1
)
this
.
selectOutBoundByDepartId
(
1
)
},
},
methods
:
{
methods
:
{
handleDateChange
()
{
getDay
(
day
)
{
this
.
getData
()
var
today
=
new
Date
()
var
targetday_milliseconds
=
today
.
getTime
()
+
1000
*
60
*
60
*
24
*
day
today
.
setTime
(
targetday_milliseconds
)
//注意,这行是关键代码
var
tYear
=
today
.
getFullYear
()
var
tMonth
=
today
.
getMonth
()
var
tDate
=
today
.
getDate
()
tMonth
=
this
.
doHandleMonth
(
tMonth
+
1
)
tDate
=
this
.
doHandleMonth
(
tDate
)
return
tYear
+
'-'
+
tMonth
+
'-'
+
tDate
},
},
initOrderCountDate
()
{
doHandleMonth
(
month
)
{
let
start
=
new
Date
()
var
m
=
month
start
.
setFullYear
(
2018
)
if
(
month
.
toString
().
length
==
1
)
{
start
.
setMonth
(
10
)
m
=
'0'
+
month
start
.
setDate
(
1
)
}
const
end
=
new
Date
()
return
m
end
.
setTime
(
start
.
getTime
()
+
1000
*
60
*
60
*
24
*
7
)
},
this
.
orderCountDate
=
[
start
,
end
]
formatEveryDay
(
type
)
{
let
start1
=
this
.
getDay
(
-
type
)
let
end1
=
this
.
getDay
(
0
)
let
dateList
=
[]
var
startTime
=
this
.
getDate
(
start1
)
var
endTime
=
this
.
getDate
(
end1
)
while
((
endTime
.
getTime
()
-
startTime
.
getTime
())
>=
0
)
{
var
year
=
startTime
.
getFullYear
()
var
month
=
startTime
.
getMonth
()
+
1
<
10
?
'0'
+
(
startTime
.
getMonth
()
+
1
)
:
startTime
.
getMonth
()
+
1
var
day
=
startTime
.
getDate
().
toString
().
length
==
1
?
'0'
+
startTime
.
getDate
()
:
startTime
.
getDate
()
dateList
.
push
(
year
+
'-'
+
month
+
'-'
+
day
)
startTime
.
setDate
(
startTime
.
getDate
()
+
1
)
}
return
dateList
},
getDate
(
datestr
)
{
var
temp
=
datestr
.
split
(
'-'
)
var
date
=
new
Date
(
temp
[
0
],
temp
[
1
]
-
1
,
temp
[
2
])
return
date
},
// 出库/入库值变化
selectStockByGoodsIdAndTime
(
type
){
this
.
inOutType
=
type
selectStockByGoodsIdAndTime
({
dateList
:
this
.
formatEveryDay
(
this
.
inOutType
)}).
then
(
res
=>
{
this
.
chartData
.
rows
=
res
.
data
})
},
getHomeData
()
{
getHomeData
({
queryTime
:
this
.
getDay
(
0
)
}).
then
(
res
=>
{
this
.
homeData
=
res
.
data
this
.
homeData
.
stockWarns
=
res
.
data
[
'库存预警集合'
].
splice
(
0
,
7
)
})
},
// 领取物品类别
selectOutBoundByCategory
(
type
){
this
.
OutCategoryType
=
type
selectOutBoundByCategory
({
startTime
:
this
.
getDay
(
-
type
),
endTime
:
this
.
getDay
(
type
==
1
?
-
type
:
0
)}).
then
(
res
=>
{
this
.
OutCategoryData
.
rows
=
res
.
data
})
},
// 入库物品类别
selectInBoundByCategory
(
type
){
this
.
inCategoryType
=
type
selectInBoundByCategory
({
startTime
:
this
.
getDay
(
-
type
),
endTime
:
this
.
getDay
(
type
==
1
?
-
type
:
0
)}).
then
(
res
=>
{
this
.
inCategoryData
.
rows
=
res
.
data
})
},
// 申领人
selectOutBoundByDepartId
(
type
){
this
.
departType
=
type
selectOutBoundByDepartId
({
startTime
:
this
.
getDay
(
-
type
),
endTime
:
this
.
getDay
(
type
==
1
?
-
type
:
0
)}).
then
(
res
=>
{
this
.
departData
.
rows
=
res
.
data
})
},
},
getData
()
{
setTimeout
(()
=>
{
this
.
chartData
=
{
columns
:
[
'date'
,
'orderCount'
,
'orderAmount'
],
rows
:
[]
}
for
(
let
i
=
0
;
i
<
DATA_FROM_BACKEND
.
rows
.
length
;
i
++
)
{
let
item
=
DATA_FROM_BACKEND
.
rows
[
i
]
let
currDate
=
str2Date
(
item
.
date
)
let
start
=
this
.
orderCountDate
[
0
]
let
end
=
this
.
orderCountDate
[
1
]
if
(
currDate
.
getTime
()
>=
start
.
getTime
()
&&
currDate
.
getTime
()
<=
end
.
getTime
())
{
this
.
chartData
.
rows
.
push
(
item
)
}
}
this
.
dataEmpty
=
false
this
.
loading
=
false
},
1000
)
}
}
}
}
}
</
script
>
</
script
>
...
...
src/views/ums/role/index.vue
View file @
76a02a81
...
@@ -74,10 +74,10 @@
...
@@ -74,10 +74,10 @@
type=
"text"
type=
"text"
@
click=
"handleSelectMenu(scope.$index, scope.row)"
>
分配菜单
@
click=
"handleSelectMenu(scope.$index, scope.row)"
>
分配菜单
</el-button>
</el-button>
<el-button
size=
"mini"
<!--
<el-button
size=
"mini"
--
>
type=
"text"
<!-- type="text"-->
@
click=
"handleSelectResource(scope.$index, scope.row)"
>
分配资源
<!-- @click="handleSelectResource(scope.$index, scope.row)">分配资源-->
</el-button
>
<!--
</el-button>
--
>
</el-row>
</el-row>
<el-row>
<el-row>
<el-button
size=
"mini"
<el-button
size=
"mini"
...
...
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