|
@@ -24,9 +24,10 @@
|
|
|
const ssobjList = ref<number[]>([]);
|
|
|
const sgList = ref<number[]>([]);
|
|
|
const sgobjList = ref<number[]>([]);
|
|
|
+ const yzlList = ref<number[]>([]);
|
|
|
const yixStringData = ref<string[]>([]);
|
|
|
const echartTypr = ref('line')
|
|
|
- const nameList = ref<string[]>(['看见场景','看看场景','深时场景','深时obj','深光场景','深光obj']);
|
|
|
+ const nameList = ref<string[]>(['四维看见/Mesh','四维看看/Mesh','四维深时/Mesh','四维深时/点云','四维深光/Mesh','四维深光/点云','圆周率/Mesh']);
|
|
|
const maxSize = ref(0);
|
|
|
const chartRef = ref<HTMLDivElement | null>(null);
|
|
|
const { setOptions } = useECharts(chartRef as Ref<HTMLDivElement>)
|
|
@@ -38,12 +39,13 @@
|
|
|
let fileTile = props.title||'订单数据'
|
|
|
let fields = {
|
|
|
'time':'日期',
|
|
|
- 'kj':'看见场景',
|
|
|
- // 'kk':'看看场景',
|
|
|
- 'ss':'深时场景',
|
|
|
- 'dy':'深时obj',
|
|
|
- 'sg':'深光场景',
|
|
|
- 'sgdy':'深光obj',
|
|
|
+ 'kj': nameList.value[0],
|
|
|
+ 'kk': nameList.value[1],
|
|
|
+ 'ss':nameList.value[2],
|
|
|
+ 'dy':nameList.value[3],
|
|
|
+ 'sg':nameList.value[4],
|
|
|
+ 'sgdy':nameList.value[5],
|
|
|
+ 'yzl':nameList.value[6],
|
|
|
}
|
|
|
if('场景趋势分析' == fileTile){
|
|
|
fileTile = `${val && val.value == 0?'新增':'累计'}`+fileTile
|
|
@@ -52,11 +54,12 @@
|
|
|
return {
|
|
|
'time':ele,
|
|
|
'kj':kjList.value && kjList.value[index] || 0,
|
|
|
- // 'kk':kkList.value && kkList.value[index] || 0,
|
|
|
+ 'kk':kkList.value && kkList.value[index] || 0,
|
|
|
'ss':ssList.value && ssList.value[index] || 0,
|
|
|
'dy':ssobjList.value && ssobjList.value[index] || 0,
|
|
|
'sg':sgList.value && sgList.value[index] || 0,
|
|
|
'sgdy':sgobjList.value && sgobjList.value[index] || 0,
|
|
|
+ 'yzl':yzlList.value && yzlList.value[index] || 0,
|
|
|
}
|
|
|
})
|
|
|
exportElsxFile(data,fields,fileTile)
|
|
@@ -95,13 +98,13 @@
|
|
|
barMaxWidth: 80,
|
|
|
name: nameList.value[0],
|
|
|
},
|
|
|
- // {
|
|
|
- // data: kkList.value,
|
|
|
- // type: echartTypr.value,
|
|
|
- // itemStyle: { color: '#4cca73' },
|
|
|
- // barMaxWidth: 80,
|
|
|
- // name: nameList.value[1],
|
|
|
- // },
|
|
|
+ {
|
|
|
+ data: kkList.value,
|
|
|
+ type: echartTypr.value,
|
|
|
+ itemStyle: { color: '#4cca73' },
|
|
|
+ barMaxWidth: 80,
|
|
|
+ name: nameList.value[1],
|
|
|
+ },
|
|
|
{
|
|
|
data: ssList.value,
|
|
|
type: echartTypr.value,
|
|
@@ -130,6 +133,13 @@
|
|
|
barMaxWidth: 80,
|
|
|
name: nameList.value[5],
|
|
|
},
|
|
|
+ {
|
|
|
+ data: yzlList.value,
|
|
|
+ type: echartTypr.value,
|
|
|
+ itemStyle: { color: '#00c8af' },
|
|
|
+ barMaxWidth: 80,
|
|
|
+ name: nameList.value[6],
|
|
|
+ },
|
|
|
],
|
|
|
});
|
|
|
}
|
|
@@ -142,6 +152,7 @@
|
|
|
ssobjList.value = echartData.ssobjList ||[]
|
|
|
sgList.value = echartData.sgList ||[]
|
|
|
sgobjList.value = echartData.sgobjList ||[]
|
|
|
+ yzlList.value = echartData.yzlList ||[]
|
|
|
yixStringData.value = echartData.xdata ||[]
|
|
|
if(echartData.nameList){
|
|
|
nameList.value = echartData.nameList
|