Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bill-manager-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵啸非
bill-manager-ui
Commits
c1d0677e
Commit
c1d0677e
authored
Jul 04, 2024
by
“yiyousong”
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 评价系统数据接口调试
parent
21364fc1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
94 additions
and
90 deletions
+94
-90
admin_2/src/pages/engine/EvaluateSystem.vue
admin_2/src/pages/engine/EvaluateSystem.vue
+65
-70
admin_2/src/pages/engine/components/DoubleTable.vue
admin_2/src/pages/engine/components/DoubleTable.vue
+2
-2
admin_2/src/pages/home/Home.vue
admin_2/src/pages/home/Home.vue
+24
-18
admin_2/src/pages/home/components/LineEchart.vue
admin_2/src/pages/home/components/LineEchart.vue
+3
-0
No files found.
admin_2/src/pages/engine/EvaluateSystem.vue
View file @
c1d0677e
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"table-item"
>
<div
class=
"table-item"
>
<div>
<div>
<DoubleTable
<DoubleTable
title=
"大厅
取号
量统计"
title=
"大厅
评价
量统计"
border
border
:column=
"hallColumn"
:column=
"hallColumn"
:data=
"hallTableData"
:data=
"hallTableData"
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
:current=
"hallSearch.page"
:current=
"hallSearch.page"
:loading=
"hallLoading"
:loading=
"hallLoading"
type=
"hall"
type=
"hall"
@
export=
"exportHall
Queue
"
@
export=
"exportHall
Eva
"
></DoubleTable>
></DoubleTable>
</div>
</div>
<Pagination
<Pagination
...
@@ -19,13 +19,13 @@
...
@@ -19,13 +19,13 @@
:current.sync=
"hallSearch.page"
:current.sync=
"hallSearch.page"
:size.sync=
"hallSearch.size"
:size.sync=
"hallSearch.size"
layout=
"total,prev,pager,next,jumper"
layout=
"total,prev,pager,next,jumper"
@
get=
"getHall
Queue
"
@
get=
"getHall
Eva
"
></Pagination>
></Pagination>
</div>
</div>
<div
class=
"table-item"
>
<div
class=
"table-item"
>
<div>
<div>
<DoubleTable
<DoubleTable
title=
"业务
取号
量统计"
title=
"业务
评价
量统计"
border
border
:column=
"businessColumn"
:column=
"businessColumn"
:data=
"businessTableData"
:data=
"businessTableData"
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
:current=
"businessSearch.page"
:current=
"businessSearch.page"
:loading=
"businessLoading"
:loading=
"businessLoading"
type=
"business"
type=
"business"
@
export=
"exportbusiness
Queue
"
@
export=
"exportbusiness
Eva
"
@
search=
"handleSearch"
@
search=
"handleSearch"
></DoubleTable>
></DoubleTable>
</div>
</div>
...
@@ -42,13 +42,13 @@
...
@@ -42,13 +42,13 @@
:current.sync=
"businessSearch.page"
:current.sync=
"businessSearch.page"
:size.sync=
"businessSearch.size"
:size.sync=
"businessSearch.size"
layout=
"total,prev,pager,next,jumper"
layout=
"total,prev,pager,next,jumper"
@
get=
"getBusiness
Queue
"
@
get=
"getBusiness
Eva
"
></Pagination>
></Pagination>
</div>
</div>
<div
class=
"table-item"
>
<div
class=
"table-item"
>
<div>
<div>
<DoubleTable
<DoubleTable
title=
"部门
取号
量统计"
title=
"部门
评价
量统计"
border
border
:column=
"deptColumn"
:column=
"deptColumn"
:data=
"deptTableData"
:data=
"deptTableData"
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
:current=
"deptSearch.page"
:current=
"deptSearch.page"
:loading=
"deptLoading"
:loading=
"deptLoading"
type=
"dept"
type=
"dept"
@
export=
"exportDept
Queue
"
@
export=
"exportDept
Eva
"
@
search=
"handleSearch"
@
search=
"handleSearch"
></DoubleTable>
></DoubleTable>
</div>
</div>
...
@@ -65,13 +65,13 @@
...
@@ -65,13 +65,13 @@
:current.sync=
"deptSearch.page"
:current.sync=
"deptSearch.page"
:size.sync=
"deptSearch.size"
:size.sync=
"deptSearch.size"
layout=
"total,prev,pager,next,jumper"
layout=
"total,prev,pager,next,jumper"
@
get=
"getDept
Queue
"
@
get=
"getDept
Eva
"
></Pagination>
></Pagination>
</div>
</div>
<div
class=
"table-item"
>
<div
class=
"table-item"
>
<div>
<div>
<DoubleTable
<DoubleTable
title=
"窗口
取号
量统计"
title=
"窗口
评价
量统计"
border
border
:column=
"windowColumn"
:column=
"windowColumn"
:data=
"windowTableData"
:data=
"windowTableData"
...
@@ -79,7 +79,7 @@
...
@@ -79,7 +79,7 @@
:current=
"windowSearch.page"
:current=
"windowSearch.page"
:loading=
"windowLoading"
:loading=
"windowLoading"
type=
"window"
type=
"window"
@
export=
"exportWindow
Queue
"
@
export=
"exportWindow
Eva
"
@
search=
"handleSearch"
@
search=
"handleSearch"
></DoubleTable>
></DoubleTable>
</div>
</div>
...
@@ -88,7 +88,7 @@
...
@@ -88,7 +88,7 @@
:current.sync=
"windowSearch.page"
:current.sync=
"windowSearch.page"
:size.sync=
"windowSearch.size"
:size.sync=
"windowSearch.size"
layout=
"total,prev,pager,next,jumper"
layout=
"total,prev,pager,next,jumper"
@
get=
"getWindow
Queue
"
@
get=
"getWindow
Eva
"
></Pagination>
></Pagination>
</div>
</div>
</div>
</div>
...
@@ -96,7 +96,7 @@
...
@@ -96,7 +96,7 @@
<
script
>
<
script
>
import
DoubleTable
from
"
./components/DoubleTable.vue
"
;
import
DoubleTable
from
"
./components/DoubleTable.vue
"
;
import
{
get
Queue
SystemList
}
from
"
@/api/engine
"
;
import
{
get
Eva
SystemList
}
from
"
@/api/engine
"
;
import
{
export2Excel
}
from
"
@/utils/exportExcel
"
;
import
{
export2Excel
}
from
"
@/utils/exportExcel
"
;
import
{
dataSection
}
from
"
@/utils
"
;
import
{
dataSection
}
from
"
@/utils
"
;
import
storage
from
"
@/utils/storage
"
;
import
storage
from
"
@/utils/storage
"
;
...
@@ -150,8 +150,8 @@ export default {
...
@@ -150,8 +150,8 @@ export default {
showOverflowTooltip
:
true
,
showOverflowTooltip
:
true
,
},
},
{
{
label
:
"
排队
数量
"
,
label
:
"
评价
数量
"
,
prop
:
"
p
h
Count
"
,
prop
:
"
p
j
Count
"
,
align
:
"
center
"
,
align
:
"
center
"
,
formatter
:
(
row
,
column
,
cellValue
)
=>
{
formatter
:
(
row
,
column
,
cellValue
)
=>
{
if
(
cellValue
)
{
if
(
cellValue
)
{
...
@@ -173,8 +173,8 @@ export default {
...
@@ -173,8 +173,8 @@ export default {
},
},
},
},
{
{
label
:
"
排队
数量
"
,
label
:
"
评价
数量
"
,
prop
:
"
p
h
Count
"
,
prop
:
"
p
j
Count
"
,
align
:
"
center
"
,
align
:
"
center
"
,
formatter
:
(
row
,
column
,
cellValue
)
=>
{
formatter
:
(
row
,
column
,
cellValue
)
=>
{
if
(
cellValue
)
{
if
(
cellValue
)
{
...
@@ -191,8 +191,8 @@ export default {
...
@@ -191,8 +191,8 @@ export default {
align
:
"
center
"
,
align
:
"
center
"
,
},
},
{
{
label
:
"
排队
数量
"
,
label
:
"
评价
数量
"
,
prop
:
"
p
h
Count
"
,
prop
:
"
p
j
Count
"
,
align
:
"
center
"
,
align
:
"
center
"
,
formatter
:
(
row
,
column
,
cellValue
)
=>
{
formatter
:
(
row
,
column
,
cellValue
)
=>
{
if
(
cellValue
)
{
if
(
cellValue
)
{
...
@@ -209,8 +209,8 @@ export default {
...
@@ -209,8 +209,8 @@ export default {
align
:
"
center
"
,
align
:
"
center
"
,
},
},
{
{
label
:
"
排队
数量
"
,
label
:
"
评价
数量
"
,
prop
:
"
p
h
Count
"
,
prop
:
"
p
j
Count
"
,
align
:
"
center
"
,
align
:
"
center
"
,
formatter
:
(
row
,
column
,
cellValue
)
=>
{
formatter
:
(
row
,
column
,
cellValue
)
=>
{
if
(
cellValue
)
{
if
(
cellValue
)
{
...
@@ -226,12 +226,7 @@ export default {
...
@@ -226,12 +226,7 @@ export default {
windowTableData
:
[],
windowTableData
:
[],
};
};
},
},
created
()
{
created
()
{},
// this.getHallQueue();
// this.getBusinessQueue();
// this.getDeptQueue();
// this.getWindowQueue();
},
methods
:
{
methods
:
{
// 获取日期
// 获取日期
getDate
(
dateArr
)
{
getDate
(
dateArr
)
{
...
@@ -241,13 +236,13 @@ export default {
...
@@ -241,13 +236,13 @@ export default {
this
.
businessSearch
.
page
=
1
;
this
.
businessSearch
.
page
=
1
;
this
.
deptSearch
.
page
=
1
;
this
.
deptSearch
.
page
=
1
;
this
.
windowSearch
.
page
=
1
;
this
.
windowSearch
.
page
=
1
;
this
.
getHall
Queue
();
this
.
getHall
Eva
();
this
.
getBusiness
Queue
();
this
.
getBusiness
Eva
();
this
.
getDept
Queue
();
this
.
getDept
Eva
();
this
.
getWindow
Queue
();
this
.
getWindow
Eva
();
},
},
async
hall
Queue
Fn
(
form
)
{
async
hall
Eva
Fn
(
form
)
{
const
res
=
await
get
Queue
SystemList
({
const
res
=
await
get
Eva
SystemList
({
siteId
:
this
.
siteId
,
siteId
:
this
.
siteId
,
...
this
.
hallSearch
,
...
this
.
hallSearch
,
...
this
.
dateForm
,
...
this
.
dateForm
,
...
@@ -267,17 +262,17 @@ export default {
...
@@ -267,17 +262,17 @@ export default {
};
};
}
}
},
},
// 获取大厅
取号
数据
// 获取大厅
评价
数据
async
getHall
Queue
()
{
async
getHall
Eva
()
{
this
.
hallLoading
=
true
;
this
.
hallLoading
=
true
;
let
{
data
,
total
}
=
await
this
.
hall
Queue
Fn
();
let
{
data
,
total
}
=
await
this
.
hall
Eva
Fn
();
this
.
hallTableData
=
data
;
this
.
hallTableData
=
data
;
this
.
hallSearch
.
total
=
total
;
this
.
hallSearch
.
total
=
total
;
this
.
hallLoading
=
false
;
this
.
hallLoading
=
false
;
},
},
async
business
Queue
(
form
=
{})
{
async
business
Eva
(
form
=
{})
{
const
res
=
await
get
Queue
SystemList
({
const
res
=
await
get
Eva
SystemList
({
siteId
:
this
.
siteId
,
siteId
:
this
.
siteId
,
...
this
.
businessSearch
,
...
this
.
businessSearch
,
...
this
.
dateForm
,
...
this
.
dateForm
,
...
@@ -297,17 +292,17 @@ export default {
...
@@ -297,17 +292,17 @@ export default {
};
};
}
}
},
},
// 获取业务
取号
数据
// 获取业务
评价
数据
async
getBusiness
Queue
()
{
async
getBusiness
Eva
()
{
this
.
businessLoading
=
true
;
this
.
businessLoading
=
true
;
let
{
data
,
total
}
=
await
this
.
business
Queue
();
let
{
data
,
total
}
=
await
this
.
business
Eva
();
this
.
businessTableData
=
data
;
this
.
businessTableData
=
data
;
this
.
businessSearch
.
total
=
total
;
this
.
businessSearch
.
total
=
total
;
this
.
businessLoading
=
false
;
this
.
businessLoading
=
false
;
},
},
async
dept
Queue
(
form
=
{})
{
async
dept
Eva
(
form
=
{})
{
const
res
=
await
get
Queue
SystemList
({
const
res
=
await
get
Eva
SystemList
({
siteId
:
this
.
siteId
,
siteId
:
this
.
siteId
,
...
this
.
deptSearch
,
...
this
.
deptSearch
,
...
this
.
dateForm
,
...
this
.
dateForm
,
...
@@ -327,17 +322,17 @@ export default {
...
@@ -327,17 +322,17 @@ export default {
}
}
},
},
// 获取部门
取号
数据
// 获取部门
评价
数据
async
getDept
Queue
()
{
async
getDept
Eva
()
{
this
.
deptLoading
=
true
;
this
.
deptLoading
=
true
;
let
{
data
,
total
}
=
await
this
.
dept
Queue
();
let
{
data
,
total
}
=
await
this
.
dept
Eva
();
this
.
deptTableData
=
data
;
this
.
deptTableData
=
data
;
this
.
deptSearch
.
total
=
total
;
this
.
deptSearch
.
total
=
total
;
this
.
deptLoading
=
false
;
this
.
deptLoading
=
false
;
},
},
async
window
Queue
(
form
)
{
async
window
Eva
(
form
)
{
const
res
=
await
get
Queue
SystemList
({
const
res
=
await
get
Eva
SystemList
({
siteId
:
this
.
siteId
,
siteId
:
this
.
siteId
,
...
this
.
windowSearch
,
...
this
.
windowSearch
,
...
this
.
dateForm
,
...
this
.
dateForm
,
...
@@ -356,20 +351,20 @@ export default {
...
@@ -356,20 +351,20 @@ export default {
};
};
}
}
},
},
// 获取窗口
取号
数据
// 获取窗口
评价
数据
async
getWindow
Queue
()
{
async
getWindow
Eva
()
{
this
.
windowLoading
=
true
;
this
.
windowLoading
=
true
;
let
{
data
,
total
}
=
await
this
.
window
Queue
();
let
{
data
,
total
}
=
await
this
.
window
Eva
();
this
.
windowTableData
=
data
;
this
.
windowTableData
=
data
;
this
.
windowSearch
.
total
=
total
;
this
.
windowSearch
.
total
=
total
;
this
.
windowLoading
=
false
;
this
.
windowLoading
=
false
;
},
},
// 导出大厅
取号
量
// 导出大厅
评价
量
exportHall
Queue
()
{
exportHall
Eva
()
{
let
tHeader
=
this
.
hallColumn
.
map
((
v
)
=>
v
.
label
);
let
tHeader
=
this
.
hallColumn
.
map
((
v
)
=>
v
.
label
);
let
filterVal
=
this
.
hallColumn
.
map
((
v
)
=>
v
.
prop
);
let
filterVal
=
this
.
hallColumn
.
map
((
v
)
=>
v
.
prop
);
dataSection
(
this
.
hall
Queue
Fn
,
{},
(
data
)
=>
{
dataSection
(
this
.
hall
Eva
Fn
,
{},
(
data
)
=>
{
if
(
!
data
.
length
)
{
if
(
!
data
.
length
)
{
this
.
$message
.
warning
(
"
暂无数据
"
);
this
.
$message
.
warning
(
"
暂无数据
"
);
return
;
return
;
...
@@ -378,12 +373,12 @@ export default {
...
@@ -378,12 +373,12 @@ export default {
tHeader
,
tHeader
,
filterVal
,
filterVal
,
data
,
data
,
"
大厅
取号
量统计报表
"
+
this
.
$moment
().
format
(
"
YYYYMMDDHHmmss
"
)
"
大厅
评价
量统计报表
"
+
this
.
$moment
().
format
(
"
YYYYMMDDHHmmss
"
)
);
);
});
});
},
},
// 导出业务
取号
// 导出业务
评价
exportbusiness
Queue
(
type
,
form
)
{
exportbusiness
Eva
(
type
,
form
)
{
let
tHeader
=
this
.
businessColumn
.
map
((
v
)
=>
v
.
label
);
let
tHeader
=
this
.
businessColumn
.
map
((
v
)
=>
v
.
label
);
let
filterVal
=
this
.
businessColumn
.
map
((
v
)
=>
v
.
prop
);
let
filterVal
=
this
.
businessColumn
.
map
((
v
)
=>
v
.
prop
);
let
{
businessName
}
=
form
;
let
{
businessName
}
=
form
;
...
@@ -391,7 +386,7 @@ export default {
...
@@ -391,7 +386,7 @@ export default {
if
(
businessName
)
{
if
(
businessName
)
{
searchForm
.
businessList
=
[
businessName
];
searchForm
.
businessList
=
[
businessName
];
}
}
dataSection
(
this
.
business
Queue
,
searchForm
,
(
data
)
=>
{
dataSection
(
this
.
business
Eva
,
searchForm
,
(
data
)
=>
{
if
(
!
data
.
length
)
{
if
(
!
data
.
length
)
{
this
.
$message
.
warning
(
"
暂无数据
"
);
this
.
$message
.
warning
(
"
暂无数据
"
);
return
;
return
;
...
@@ -400,12 +395,12 @@ export default {
...
@@ -400,12 +395,12 @@ export default {
tHeader
,
tHeader
,
filterVal
,
filterVal
,
data
,
data
,
"
业务
取号
量统计报表
"
+
this
.
$moment
().
format
(
"
YYYYMMDDHHmmss
"
)
"
业务
评价
量统计报表
"
+
this
.
$moment
().
format
(
"
YYYYMMDDHHmmss
"
)
);
);
});
});
},
},
// 导出部门
取号
// 导出部门
评价
exportDept
Queue
(
type
,
form
)
{
exportDept
Eva
(
type
,
form
)
{
let
tHeader
=
this
.
deptColumn
.
map
((
v
)
=>
v
.
label
);
let
tHeader
=
this
.
deptColumn
.
map
((
v
)
=>
v
.
label
);
let
filterVal
=
this
.
deptColumn
.
map
((
v
)
=>
v
.
prop
);
let
filterVal
=
this
.
deptColumn
.
map
((
v
)
=>
v
.
prop
);
let
{
deptName
}
=
form
;
let
{
deptName
}
=
form
;
...
@@ -413,7 +408,7 @@ export default {
...
@@ -413,7 +408,7 @@ export default {
if
(
deptName
)
{
if
(
deptName
)
{
searchForm
.
sectionNameList
=
[
deptName
];
searchForm
.
sectionNameList
=
[
deptName
];
}
}
dataSection
(
this
.
dept
Queue
,
searchForm
,
(
data
)
=>
{
dataSection
(
this
.
dept
Eva
,
searchForm
,
(
data
)
=>
{
if
(
!
data
.
length
)
{
if
(
!
data
.
length
)
{
this
.
$message
.
warning
(
"
暂无数据
"
);
this
.
$message
.
warning
(
"
暂无数据
"
);
return
;
return
;
...
@@ -422,12 +417,12 @@ export default {
...
@@ -422,12 +417,12 @@ export default {
tHeader
,
tHeader
,
filterVal
,
filterVal
,
data
,
data
,
"
部门
取号
量统计报表
"
+
this
.
$moment
().
format
(
"
YYYYMMDDHHmmss
"
)
"
部门
评价
量统计报表
"
+
this
.
$moment
().
format
(
"
YYYYMMDDHHmmss
"
)
);
);
});
});
},
},
// 导出窗口
取号
// 导出窗口
评价
exportWindow
Queue
(
type
,
form
)
{
exportWindow
Eva
(
type
,
form
)
{
let
tHeader
=
this
.
windowColumn
.
map
((
v
)
=>
v
.
label
);
let
tHeader
=
this
.
windowColumn
.
map
((
v
)
=>
v
.
label
);
let
filterVal
=
this
.
windowColumn
.
map
((
v
)
=>
v
.
prop
);
let
filterVal
=
this
.
windowColumn
.
map
((
v
)
=>
v
.
prop
);
let
{
windowNum
}
=
form
;
let
{
windowNum
}
=
form
;
...
@@ -435,7 +430,7 @@ export default {
...
@@ -435,7 +430,7 @@ export default {
if
(
windowNum
)
{
if
(
windowNum
)
{
searchForm
.
windowFromnumList
=
[
windowNum
];
searchForm
.
windowFromnumList
=
[
windowNum
];
}
}
dataSection
(
this
.
window
Queue
,
searchForm
,
(
data
)
=>
{
dataSection
(
this
.
window
Eva
,
searchForm
,
(
data
)
=>
{
if
(
!
data
.
length
)
{
if
(
!
data
.
length
)
{
this
.
$message
.
warning
(
"
暂无数据
"
);
this
.
$message
.
warning
(
"
暂无数据
"
);
return
;
return
;
...
@@ -444,7 +439,7 @@ export default {
...
@@ -444,7 +439,7 @@ export default {
tHeader
,
tHeader
,
filterVal
,
filterVal
,
data
,
data
,
"
窗口
取号
量统计报表
"
+
this
.
$moment
().
format
(
"
YYYYMMDDHHmmss
"
)
"
窗口
评价
量统计报表
"
+
this
.
$moment
().
format
(
"
YYYYMMDDHHmmss
"
)
);
);
});
});
},
},
...
@@ -459,7 +454,7 @@ export default {
...
@@ -459,7 +454,7 @@ export default {
}
else
{
}
else
{
this
.
businessSearch
.
businessList
=
[];
this
.
businessSearch
.
businessList
=
[];
}
}
this
.
getBusiness
Queue
();
this
.
getBusiness
Eva
();
}
else
if
(
type
==
"
dept
"
)
{
}
else
if
(
type
==
"
dept
"
)
{
let
{
deptName
}
=
form
;
let
{
deptName
}
=
form
;
if
(
deptName
)
{
if
(
deptName
)
{
...
@@ -468,7 +463,7 @@ export default {
...
@@ -468,7 +463,7 @@ export default {
}
else
{
}
else
{
this
.
deptSearch
.
sectionNameList
=
[];
this
.
deptSearch
.
sectionNameList
=
[];
}
}
this
.
getDept
Queue
();
this
.
getDept
Eva
();
}
else
if
(
type
==
"
window
"
)
{
}
else
if
(
type
==
"
window
"
)
{
let
{
windowNum
}
=
form
;
let
{
windowNum
}
=
form
;
if
(
windowNum
)
{
if
(
windowNum
)
{
...
@@ -477,7 +472,7 @@ export default {
...
@@ -477,7 +472,7 @@ export default {
}
else
{
}
else
{
this
.
windowSearch
.
windowFromnumList
=
[];
this
.
windowSearch
.
windowFromnumList
=
[];
}
}
this
.
getWindow
Queue
();
this
.
getWindow
Eva
();
}
}
},
},
},
},
...
...
admin_2/src/pages/engine/components/DoubleTable.vue
View file @
c1d0677e
...
@@ -151,7 +151,7 @@ export default {
...
@@ -151,7 +151,7 @@ export default {
let
index
=
{
let
index
=
{
label
:
"
排序
"
,
label
:
"
排序
"
,
type
:
"
index
"
,
type
:
"
index
"
,
lign
:
"
center
"
,
a
lign
:
"
center
"
,
index
:
(
index
)
=>
{
index
:
(
index
)
=>
{
return
(
this
.
current
-
1
)
*
this
.
size
+
index
+
1
;
return
(
this
.
current
-
1
)
*
this
.
size
+
index
+
1
;
},
},
...
@@ -162,7 +162,7 @@ export default {
...
@@ -162,7 +162,7 @@ export default {
let
index
=
{
let
index
=
{
label
:
"
排序
"
,
label
:
"
排序
"
,
type
:
"
index
"
,
type
:
"
index
"
,
lign
:
"
center
"
,
a
lign
:
"
center
"
,
index
:
(
index
)
=>
{
index
:
(
index
)
=>
{
return
(
this
.
current
-
1
)
*
this
.
size
+
index
+
6
;
return
(
this
.
current
-
1
)
*
this
.
size
+
index
+
6
;
},
},
...
...
admin_2/src/pages/home/Home.vue
View file @
c1d0677e
...
@@ -191,24 +191,30 @@ export default {
...
@@ -191,24 +191,30 @@ export default {
let
{
data
}
=
res
.
data
;
let
{
data
}
=
res
.
data
;
let
{
thirtyPhStatList
,
thirtyPjStatList
,
thirtyStatList
}
=
data
;
let
{
thirtyPhStatList
,
thirtyPjStatList
,
thirtyStatList
}
=
data
;
this
.
homeData
=
data
;
this
.
homeData
=
data
;
this
.
totalDataset
.
source
=
thirtyStatList
.
map
((
item
)
=>
{
this
.
totalDataset
.
source
=
thirtyStatList
return
{
.
map
((
item
)
=>
{
name
:
`
${
item
.
month
}
-
${
item
.
day
}
`
,
return
{
value
:
item
.
count
,
name
:
`
${
item
.
month
}
-
${
item
.
day
}
`
,
};
value
:
item
.
count
,
});
};
this
.
phDataset
.
source
=
thirtyPhStatList
.
map
((
item
)
=>
{
})
return
{
.
reverse
();
name
:
`
${
item
.
month
}
-
${
item
.
day
}
`
,
this
.
phDataset
.
source
=
thirtyPhStatList
value
:
item
.
phCount
,
.
map
((
item
)
=>
{
};
return
{
});
name
:
`
${
item
.
month
}
-
${
item
.
day
}
`
,
this
.
pjDataset
.
source
=
thirtyPjStatList
.
map
((
item
)
=>
{
value
:
item
.
phCount
,
return
{
};
name
:
`
${
item
.
month
}
-
${
item
.
day
}
`
,
})
value
:
item
.
pjCount
,
.
reverse
();
};
this
.
pjDataset
.
source
=
thirtyPjStatList
});
.
map
((
item
)
=>
{
return
{
name
:
`
${
item
.
month
}
-
${
item
.
day
}
`
,
value
:
item
.
pjCount
,
};
})
.
reverse
();
}
}
},
},
},
},
...
...
admin_2/src/pages/home/components/LineEchart.vue
View file @
c1d0677e
...
@@ -29,6 +29,9 @@ export default {
...
@@ -29,6 +29,9 @@ export default {
handler
(
newVal
)
{
handler
(
newVal
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
this
.
initChart
(
newVal
);
this
.
initChart
(
newVal
);
this
.
myChart
.
on
(
"
click
"
,
()
=>
{
console
.
log
(
111
);
});
});
});
},
},
deep
:
true
,
deep
:
true
,
...
...
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