diff --git a/src/views/dashboard/components/chart.vue b/src/views/dashboard/components/chart.vue new file mode 100644 index 0000000..4bc7e2f --- /dev/null +++ b/src/views/dashboard/components/chart.vue @@ -0,0 +1,143 @@ + + + + + + diff --git a/src/views/dashboard/components/chart.vue b/src/views/dashboard/components/chart.vue new file mode 100644 index 0000000..4bc7e2f --- /dev/null +++ b/src/views/dashboard/components/chart.vue @@ -0,0 +1,143 @@ + + + + + + diff --git a/src/views/dashboard/components/layout.vue b/src/views/dashboard/components/layout.vue new file mode 100644 index 0000000..2e4393d --- /dev/null +++ b/src/views/dashboard/components/layout.vue @@ -0,0 +1,61 @@ + + + + + + diff --git a/src/views/dashboard/components/chart.vue b/src/views/dashboard/components/chart.vue new file mode 100644 index 0000000..4bc7e2f --- /dev/null +++ b/src/views/dashboard/components/chart.vue @@ -0,0 +1,143 @@ + + + + + + diff --git a/src/views/dashboard/components/layout.vue b/src/views/dashboard/components/layout.vue new file mode 100644 index 0000000..2e4393d --- /dev/null +++ b/src/views/dashboard/components/layout.vue @@ -0,0 +1,61 @@ + + + + + + diff --git a/src/views/dashboard/components/quickFunction.vue b/src/views/dashboard/components/quickFunction.vue index 469d136..7517e44 100644 --- a/src/views/dashboard/components/quickFunction.vue +++ b/src/views/dashboard/components/quickFunction.vue @@ -12,7 +12,7 @@ 常用功能
-
+
{{ item.name }} @@ -39,6 +39,13 @@ { name: '公厕保洁作业统计', icon: 'icon-clean2', path: '/assesment/toilet', permission: '/sanitation/assesment/toilet' } ] } + }, + methods: { + // 点击盒子跳转页面 + handleClickBox(item) { + console.log('点击获取的参数', item) + this.$router.push(item.path) + } } } diff --git a/src/views/dashboard/components/chart.vue b/src/views/dashboard/components/chart.vue new file mode 100644 index 0000000..4bc7e2f --- /dev/null +++ b/src/views/dashboard/components/chart.vue @@ -0,0 +1,143 @@ + + + + + + diff --git a/src/views/dashboard/components/layout.vue b/src/views/dashboard/components/layout.vue new file mode 100644 index 0000000..2e4393d --- /dev/null +++ b/src/views/dashboard/components/layout.vue @@ -0,0 +1,61 @@ + + + + + + diff --git a/src/views/dashboard/components/quickFunction.vue b/src/views/dashboard/components/quickFunction.vue index 469d136..7517e44 100644 --- a/src/views/dashboard/components/quickFunction.vue +++ b/src/views/dashboard/components/quickFunction.vue @@ -12,7 +12,7 @@ 常用功能
-
+
{{ item.name }} @@ -39,6 +39,13 @@ { name: '公厕保洁作业统计', icon: 'icon-clean2', path: '/assesment/toilet', permission: '/sanitation/assesment/toilet' } ] } + }, + methods: { + // 点击盒子跳转页面 + handleClickBox(item) { + console.log('点击获取的参数', item) + this.$router.push(item.path) + } } } diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 3d21092..bcf0b8a 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,18 +1,20 @@ + + diff --git a/src/views/dashboard/components/layout.vue b/src/views/dashboard/components/layout.vue new file mode 100644 index 0000000..2e4393d --- /dev/null +++ b/src/views/dashboard/components/layout.vue @@ -0,0 +1,61 @@ + + + + + + diff --git a/src/views/dashboard/components/quickFunction.vue b/src/views/dashboard/components/quickFunction.vue index 469d136..7517e44 100644 --- a/src/views/dashboard/components/quickFunction.vue +++ b/src/views/dashboard/components/quickFunction.vue @@ -12,7 +12,7 @@ 常用功能
-
+
{{ item.name }} @@ -39,6 +39,13 @@ { name: '公厕保洁作业统计', icon: 'icon-clean2', path: '/assesment/toilet', permission: '/sanitation/assesment/toilet' } ] } + }, + methods: { + // 点击盒子跳转页面 + handleClickBox(item) { + console.log('点击获取的参数', item) + this.$router.push(item.path) + } } } diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 3d21092..bcf0b8a 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,18 +1,20 @@ + + diff --git a/src/views/dashboard/components/layout.vue b/src/views/dashboard/components/layout.vue new file mode 100644 index 0000000..2e4393d --- /dev/null +++ b/src/views/dashboard/components/layout.vue @@ -0,0 +1,61 @@ + + + + + + diff --git a/src/views/dashboard/components/quickFunction.vue b/src/views/dashboard/components/quickFunction.vue index 469d136..7517e44 100644 --- a/src/views/dashboard/components/quickFunction.vue +++ b/src/views/dashboard/components/quickFunction.vue @@ -12,7 +12,7 @@ 常用功能
-
+
{{ item.name }} @@ -39,6 +39,13 @@ { name: '公厕保洁作业统计', icon: 'icon-clean2', path: '/assesment/toilet', permission: '/sanitation/assesment/toilet' } ] } + }, + methods: { + // 点击盒子跳转页面 + handleClickBox(item) { + console.log('点击获取的参数', item) + this.$router.push(item.path) + } } } diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 3d21092..bcf0b8a 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,18 +1,20 @@ diff --git a/src/views/dashboard/components/chart.vue b/src/views/dashboard/components/chart.vue new file mode 100644 index 0000000..4bc7e2f --- /dev/null +++ b/src/views/dashboard/components/chart.vue @@ -0,0 +1,143 @@ + + + + + + diff --git a/src/views/dashboard/components/layout.vue b/src/views/dashboard/components/layout.vue new file mode 100644 index 0000000..2e4393d --- /dev/null +++ b/src/views/dashboard/components/layout.vue @@ -0,0 +1,61 @@ + + + + + + diff --git a/src/views/dashboard/components/quickFunction.vue b/src/views/dashboard/components/quickFunction.vue index 469d136..7517e44 100644 --- a/src/views/dashboard/components/quickFunction.vue +++ b/src/views/dashboard/components/quickFunction.vue @@ -12,7 +12,7 @@ 常用功能
-
+
{{ item.name }} @@ -39,6 +39,13 @@ { name: '公厕保洁作业统计', icon: 'icon-clean2', path: '/assesment/toilet', permission: '/sanitation/assesment/toilet' } ] } + }, + methods: { + // 点击盒子跳转页面 + handleClickBox(item) { + console.log('点击获取的参数', item) + this.$router.push(item.path) + } } } diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 3d21092..bcf0b8a 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -1,18 +1,20 @@ diff --git a/src/views/overview/components/wasteTransfer.vue b/src/views/overview/components/wasteTransfer.vue index 8f93514..fdf3bbc 100644 --- a/src/views/overview/components/wasteTransfer.vue +++ b/src/views/overview/components/wasteTransfer.vue @@ -13,7 +13,7 @@ import { getCleanJobCount } from '@/api/sanitation/statistics' import { getTransferJobCount } from '@/api/sanitation/statistics' import { getToiletJobCount } from '@/api/sanitation/statistics' -import { getToday, getLastWeek } from '@/utils/dateutils' +import { getToday, getLastWeek, getYesterDay } from '@/utils/dateutils' export default { name: 'WasteTransfer', data() { @@ -22,7 +22,7 @@ listQuery: { type: 'day', // 统计方式,day按天,month按月 startTime: getLastWeek('yyyy-MM-dd'), // 开始时间 - endTime: getToday('yyyy-MM-dd') // 结束时间 + endTime: getYesterDay('yyyy-MM-dd') // 结束时间 }, // 筛选条件 grid: { right: 20, @@ -77,6 +77,7 @@ } }, fetchCleanData() { + debugger getCleanJobCount(this.listQuery).then(response => { const data = response.data this.chartData.rows = data.map(item => {