Исправлено
This commit is contained in:
1 parent
4525eb38d9
commit
72a5554905
2 files changed
+40
-40
No files matched your search
@@ -53,51 +53,51 @@
|
|||||||
import { ref, computed } from 'vue'
|
import { ref, computed } from 'vue'
|
||||||
import {getfromserver, pagecounter, splitname} from '@/utils/universal_functions'
|
import {getfromserver, pagecounter, splitname} from '@/utils/universal_functions'
|
||||||
import moment from 'moment'
|
import moment from 'moment'
|
||||||
import {
|
// import {
|
||||||
Chart as ChartJS,
|
// Chart as ChartJS,
|
||||||
CategoryScale,
|
// CategoryScale,
|
||||||
LinearScale,
|
// LinearScale,
|
||||||
PointElement,
|
// PointElement,
|
||||||
LineElement,
|
// LineElement,
|
||||||
Title,
|
// Title,
|
||||||
Tooltip,
|
// Tooltip,
|
||||||
Legend
|
// Legend
|
||||||
} from 'chart.js'
|
// } from 'chart.js'
|
||||||
import { Line } from 'vue-chartjs'
|
// import { Line } from 'vue-chartjs'
|
||||||
import * as chartConfig from './chartConfig.js'
|
// import * as chartConfig from './chartConfig.js'
|
||||||
|
|
||||||
ChartJS.register(
|
// ChartJS.register(
|
||||||
CategoryScale,
|
// CategoryScale,
|
||||||
LinearScale,
|
// LinearScale,
|
||||||
PointElement,
|
// PointElement,
|
||||||
LineElement,
|
// LineElement,
|
||||||
Title,
|
// Title,
|
||||||
Tooltip,
|
// Tooltip,
|
||||||
Legend
|
// Legend
|
||||||
)
|
// )
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
components: {
|
// components: {
|
||||||
Line
|
// Line
|
||||||
},
|
// },
|
||||||
|
|
||||||
setup(){
|
setup(){
|
||||||
|
|
||||||
const data = {
|
// const data = {
|
||||||
labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
|
// labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
|
||||||
datasets: [
|
// datasets: [
|
||||||
{
|
// {
|
||||||
label: 'Data One',
|
// label: 'Data One',
|
||||||
backgroundColor: '#f87979',
|
// backgroundColor: '#f87979',
|
||||||
data: [40, 39, 10, 40, 39, 80, 40]
|
// data: [40, 39, 10, 40, 39, 80, 40]
|
||||||
}
|
// }
|
||||||
]
|
// ]
|
||||||
}
|
// }
|
||||||
|
|
||||||
const options = {
|
// const options = {
|
||||||
responsive: true,
|
// responsive: true,
|
||||||
maintainAspectRatio: false
|
// maintainAspectRatio: false
|
||||||
}
|
// }
|
||||||
|
|
||||||
const visiting = ref([])
|
const visiting = ref([])
|
||||||
const previousWeekStart = moment().subtract(1, 'weeks').startOf('week'); // начало предыдущей недели
|
const previousWeekStart = moment().subtract(1, 'weeks').startOf('week'); // начало предыдущей недели
|
||||||
@@ -231,8 +231,8 @@ const options = {
|
|||||||
countgrupp,
|
countgrupp,
|
||||||
activuser,
|
activuser,
|
||||||
chartConfig,
|
chartConfig,
|
||||||
data,
|
// data,
|
||||||
options
|
// options
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
Reference in new issue
Block a user