Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
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
杨硕
template_vue
Commits
df861c22
Commit
df861c22
authored
Nov 30, 2023
by
W_Y
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
废弃
parent
c6b521d6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
3 deletions
+25
-3
index.js
src/api/controlPlatform/index.js
+9
-0
control.vue
src/views/controlPlatform/control.vue
+16
-3
No files found.
src/api/controlPlatform/index.js
View file @
df861c22
...
...
@@ -26,3 +26,12 @@ export function findCountIdByPtype(query) {
params
:
query
})
}
// 饼图2
export
function
findCountIdByPtype1CreateDate
(
query
)
{
return
request
({
url
:
'/WeHomePage/findCountIdByPtype1CreateDate'
,
method
:
'get'
,
params
:
query
})
}
src/views/controlPlatform/control.vue
View file @
df861c22
...
...
@@ -154,7 +154,7 @@ import * as echarts from 'echarts'
import
judgeLeaveMessage
from
'svg-sprite-loader/examples/custom-runtime-generator/build/main'
// import { controlData } from './apis'
// import { judgeLeaveMessage } from '@/views/judgeMessageManage/apis'
import
{
findCountIdByUpdateDate
,
findCountIdByFqYy
,
findCountIdByPtype
}
from
'@/api/controlPlatform'
import
{
findCountIdByUpdateDate
,
findCountIdByFqYy
,
findCountIdByPtype
,
findCountIdByPtype1CreateDate
}
from
'@/api/controlPlatform'
export
default
{
name
:
'Control'
,
...
...
@@ -260,7 +260,7 @@ export default {
this
.
handleGetJudgeMessageData
()
this
.
handleGetStatisticsData
()
this
.
startInterval
()
this
.
get
Ptyp
eList
()
this
.
get
Updat
eList
()
// 通过监听内容部分的宽度让图表resize
var
elementResizeDetectorMaker
=
require
(
'element-resize-detector'
)
var
erd
=
elementResizeDetectorMaker
()
...
...
@@ -367,7 +367,6 @@ export default {
// value: item.sum
// })
// })
// console.log('this.PtypeList', this.PtypeList)
const
renamedData
=
res
.
data
.
map
(
item
=>
({
...
item
,
...
...
@@ -378,6 +377,20 @@ export default {
this
.
updateVisitorData
()
})
},
// 饼图
getUpdateList
()
{
findCountIdByPtype1CreateDate
().
then
(
res
=>
{
console
.
log
(
'---res---'
,
res
)
// this.PtypeList=[]
// const renamedData = res.data.map(item => ({
// ...item,
// name: item.ptype === '1' ? '设备库' : (item.ptype === '2' ? '工序库' : item.ptype),
// value: item.sum,
// }));
// this.PtypeList = renamedData
// this.updateVisitorData()
})
},
handleClick
(
row
)
{
this
.
$router
.
push
({
path
:
'/sf/message/messageBack'
,
...
...
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