Commit df861c22 authored by W_Y's avatar W_Y

废弃

parent c6b521d6
......@@ -26,3 +26,12 @@ export function findCountIdByPtype(query) {
params: query
})
}
// 饼图2
export function findCountIdByPtype1CreateDate(query) {
return request({
url: '/WeHomePage/findCountIdByPtype1CreateDate',
method: 'get',
params: query
})
}
......@@ -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.getPtypeList()
this.getUpdateList()
// 通过监听内容部分的宽度让图表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',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment