-
常用设备
+
+
+
-
-
-
来源渠道
+
-
+
平均完成时间
+
+ {{ projectStats.avgCompleteFormatStr }}
+
+
+
+
+
+
表单提交地域分布图
+
+
@@ -89,10 +59,10 @@ import LineChart from '@/components/echarts/LineChart'
import MapChart from '@/components/echarts/MapChart'
import CountTo from '@/components/CountTo'
import BarChart from '@/components/echarts/BarChart'
-import {timeFormat} from '@/utils/index'
+import {timeFormat} from '@/utils'
export default {
- name: 'HomeDashboard',
+ name: 'StatisticsChart',
components: {
CountTo,
MapChart,
@@ -186,14 +156,13 @@ export default {
name: '提交数',
type: 'map',
mapType: 'china',
- zoom: 1.2,
+ zoom: 1.4,
roam: false,
label: {
show: false,
color: 'rgb(0,0,0)'
},
- data: [
- ]
+ data: []
}
]
},
@@ -273,13 +242,9 @@ export default {
}
},
created() {
- this.$api.get('/user/project/list', {params: {status: 2}}).then(res => {
- this.projectListData = res.data
- if (res.data && res.data[0]) {
- this.activeProjectKey = res.data[0].key
- this.projectChangeHandle()
- }
- })
+ this.activeProjectKey = this.$route.query.key
+ this.projectChangeHandle()
+
}, methods: {
projectChangeHandle() {
this.getProjectStats()
@@ -370,35 +335,24 @@ export default {
}
-
diff --git a/src/views/form/statistics/index.vue b/src/views/form/statistics/index.vue
index a082b39..af54659 100644
--- a/src/views/form/statistics/index.vue
+++ b/src/views/form/statistics/index.vue
@@ -1,339 +1,44 @@
-
-
-
-
-
- 至
-
-
-
- 查询
- 条件
- 导出
- 下载附件
-
-
-
-
-
{
- this.openDetailDrawerHandle(row)
- }"
- >
-
-
-
- {{ scope.row[col] }}
-
-
-
-
- {{ scope.row['processData'][col] }}
-
-
-
-
- 查看
-
-
-
-
-
-
-
- 提交详情
-
-
-
-
{{ item.label }}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 显示列:
-
-
-
-
-
-
- {{ val }}
-
-
-
-
-
-
-
- {{ val }}
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
diff --git a/src/views/form/statistics/list.vue b/src/views/form/statistics/list.vue
new file mode 100644
index 0000000..5a6d074
--- /dev/null
+++ b/src/views/form/statistics/list.vue
@@ -0,0 +1,350 @@
+
+
+
+
+
+
+ 至
+
+
+
+ 查询
+ 条件
+ 导出
+ 下载附件
+
+
+
+
+
{
+ this.openDetailDrawerHandle(row)
+ }"
+ >
+
+
+
+ {{ scope.row[col] }}
+
+
+
+
+ {{ scope.row['processData'][col] }}
+
+
+
+
+ 查看
+
+
+
+
+
+
+
+ 提交详情
+
+
+
+
{{ item.label }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 显示列:
+
+
+
+
+
+
+ {{ val }}
+
+
+
+
+
+
+
+ {{ val }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/home/HomeView.vue b/src/views/home/HomeView.vue
index a664401..5bf24c0 100644
--- a/src/views/home/HomeView.vue
+++ b/src/views/home/HomeView.vue
@@ -19,7 +19,7 @@