修改界面

master
夜笙歌 4 years ago
parent 17b407d71a
commit 1231b66c9c

@ -9,68 +9,81 @@ $(() => {
card({top: 60, left: 54.5,title:'测温性能',name1:'问题1',value1:'值1',name2:'问题2',value2:'值2',name3:'问题3',value3:'值3'},'#cardFour') card({top: 60, left: 54.5,title:'测温性能',name1:'问题1',value1:'值1',name2:'问题2',value2:'值2',name3:'问题3',value3:'值3'},'#cardFour')
card({top: 60, left: 62.5,title:'成品外观',name1:'问题1',value1:'值1',name2:'问题2',value2:'值2',name3:'问题3',value3:'值3'},'#cardFive') card({top: 60, left: 62.5,title:'成品外观',name1:'问题1',value1:'值1',name2:'问题2',value2:'值2',name3:'问题3',value3:'值3'},'#cardFive')
// 公共请求地址 // 公共请求地址
let url = '/broad/beforeLibrary' // let url = '/broad/beforeLibrary'
let url = ''
// 轮询间隔时间 // 轮询间隔时间
const INTERVAL = 30000 const INTERVAL = 30000
//每日人力出勤轮询 //每日人力出勤轮询
// autoUpdate(url + "/ ", INTERVAL, data => { autoUpdate(url + "/team6s ", INTERVAL, data => {
let data = [ data ??= [
{ {
name: '班组1', teamName: '班组1',
value: 72, teamNumber: 72,
path:''
}, },
{ {
name: '班组2', teamName: '班组2',
value: 52, teamNumber: 52,
path:''
}, },
{ {
name: '班组3', teamName: '班组3',
value: 72, teamNumber: 72,
path:''
}, },
{ {
name: '班组4', teamName: '班组4',
value: 29, teamNumber: 29,
path:''
}, },
{ {
name: '班组5', teamName: '班组5',
value: 82, teamNumber: 82,
path:''
}, },
{ {
name: '班组6', teamName: '班组6',
value: 82, teamNumber: 82,
path:''
}, },
{ {
name: '班组7', teamName: '班组7',
value: 28, teamNumber: 28,
path:''
}, },
{ {
name: '班组8', teamName: '班组8',
value: 62, teamNumber: 62,
path:''
}, },
{ {
name: '班组9', teamName: '班组9',
value: 82, teamNumber: 82,
path:''
}, },
{ {
name: '班组10', teamName: '班组10',
value: 38, teamNumber: 38,
path:''
}, },
{ {
name: '班组11', teamName: '班组11',
value: 93, teamNumber: 93,
path:''
}, },
] ]
data.sort((a,b)=>{ data.sort((a,b)=>{
return b.value - a.value return b.teamNumber - a.teamNumber
}) })
console.log(data) console.log(data)
singleVerticalBarChartTwo({ singleVerticalBarChartTwo({
xName: ['班组1', '班组2', '班组3', '班组4', '班组5', '班组6', '班组7', '班组8', '班组9', '班组10'], xName: data.map(val => val.teamName),
yData: [38, 60, 40, 55, 42, 39, 45, 40, 63, 38], yData: data.map(val => val.teamNumber),
yImg: data.map(val => val.path),
}, document.getElementById("manpowerAttendance")) }, document.getElementById("manpowerAttendance"))
// }) })
// IQC // IQC
horizontalRoundedBarChartWithBackgroundTwo(null, document.getElementById("IQC")) horizontalRoundedBarChartWithBackgroundTwo(null, document.getElementById("IQC"))

@ -1609,6 +1609,7 @@ const singleVerticalBarChartTwo = function (data, id) {
color: '#c0c3cd', //X轴文字 color: '#c0c3cd', //X轴文字
fontSize: 14, fontSize: 14,
interval: 0, interval: 0,
rotate:20,
}, },
axisTick: { axisTick: {
lineStyle: { lineStyle: {
@ -1683,7 +1684,7 @@ const singleVerticalBarChartTwo = function (data, id) {
width: 3 * vw, width: 3 * vw,
height: 3 * vw, height: 3 * vw,
backgroundColor: { backgroundColor: {
image: '../../img/board/intelligentRefrigeratorInterconnectionFactory/btnOneClick.png' image: 'http://10.100.70.5:9090/profile/upload/2022/07/22/%E9%99%88%E5%A6%82%E5%8D%8E_20220722161444A002.jpeg'
}, },
}, },
} }

Loading…
Cancel
Save