|
@@ -104,16 +104,16 @@ export default defineComponent({
|
|
|
|
|
|
if (props.typeSrarch == 1) {
|
|
|
dataTime.value = arr1.map(function (item) {
|
|
|
- return item.toString().substring(5,10);
|
|
|
+ return item.toString().substring(5, 10)
|
|
|
})
|
|
|
console.log('dataTime.value')
|
|
|
console.log(dataTime.value)
|
|
|
} else if (props.typeSrarch == 2) {
|
|
|
- dataTime.value = arr1.map(function (item) {
|
|
|
- return item.toString().substring(5,7)+'月';
|
|
|
+ dataTime.value = arr1.map(function (item) {
|
|
|
+ return item.toString().substring(5, 7) + '月'
|
|
|
})
|
|
|
- }else{
|
|
|
- dataTime.value = arr1.map(function (item) {
|
|
|
+ } else {
|
|
|
+ dataTime.value = arr1.map(function (item) {
|
|
|
return item
|
|
|
})
|
|
|
}
|
|
@@ -157,8 +157,19 @@ export default defineComponent({
|
|
|
},
|
|
|
toolbox: {
|
|
|
show: true,
|
|
|
+ // feature: {
|
|
|
+ // saveAsImage: { show: true, color: 'black' },
|
|
|
+ // },
|
|
|
feature: {
|
|
|
- saveAsImage: { show: true, color: 'black' },
|
|
|
+ // dataView: { show: true, readOnly: false },
|
|
|
+ // magicType: { show: true, type: ["line", "bar"] },
|
|
|
+ // restore: { show: true },
|
|
|
+ saveAsImage: {
|
|
|
+ show: true,
|
|
|
+ color: 'black',
|
|
|
+ title: '',
|
|
|
+ name: '图表下载',
|
|
|
+ },
|
|
|
},
|
|
|
iconStyle: {
|
|
|
borderColor: '#666',
|
|
@@ -227,11 +238,10 @@ export default defineComponent({
|
|
|
getData()
|
|
|
ecahrts()
|
|
|
}
|
|
|
- const writeValue2 = (val) => {
|
|
|
+ const writeValue2 = (val) => {
|
|
|
val
|
|
|
|
|
|
getData()
|
|
|
-
|
|
|
}
|
|
|
|
|
|
//监听变化
|