Commit 2592026be90cc39a106e0c34c03bb33af177b092

Authored by ly525
1 parent 1542d15c

remove useless code for form stat

front-end/h5/src/views/work-manager/form-stat/detail.vue
  1 +<!--
  2 + * @Author: ly525
  3 + * @Date: 2019-12-01 18:11:50
  4 + * @LastEditors: ly525
  5 + * @LastEditTime: 2019-12-08 15:28:42
  6 + * @FilePath: /luban-h5/front-end/h5/src/views/work-manager/form-stat/detail.vue
  7 + * @Github: https://github.com/ly525/luban-h5
  8 + * @Description:
  9 + #!zh: 某个作品的的表单统计页
  10 + #!en: forms for the work
  11 + * @Copyright 2018 - 2019 luban-h5. All Rights Reserved
  12 + -->
  13 +
1 <script> 14 <script>
2 -/**  
3 - * [基础数据](/work-manager/form-stat) 对应的页面  
4 - *  
5 - */  
6 import { mapState, mapActions } from 'vuex' 15 import { mapState, mapActions } from 'vuex'
7 16
8 export default { 17 export default {
9 components: { 18 components: {
10 }, 19 },
11 data: () => ({ 20 data: () => ({
12 - activeWork: null,  
13 - previewVisible: false  
14 }), 21 }),
15 computed: { 22 computed: {
16 - ...mapState('editor', ['works', 'formDetailOfWork']),  
17 - computedWorks () {  
18 - return this.works.map(w => ({  
19 - id: w.id,  
20 - title: w.title,  
21 - pv: w.pv || 0,  
22 - uv: w.uv || 0,  
23 - formCount: w.formCount || 0  
24 - }))  
25 - }, 23 + ...mapState('editor', ['formDetailOfWork']),
26 /** 24 /**
27 * columns demo: [{"1565369322603":"abc"},{"1565595388440":"ddd"},{"1565595388440":"acd"},{"1565596393441":"b","1565596397671":"a"},{"1565596393441":"b","1565596397671":"a"}] 25 * columns demo: [{"1565369322603":"abc"},{"1565595388440":"ddd"},{"1565595388440":"acd"},{"1565596393441":"b","1565596397671":"a"},{"1565596393441":"b","1565596397671":"a"}]
28 */ 26 */
@@ -66,15 +64,8 @@ export default { @@ -66,15 +64,8 @@ export default {
66 }, 64 },
67 methods: { 65 methods: {
68 ...mapActions('editor', [ 66 ...mapActions('editor', [
69 - 'fetchWorks',  
70 'fetchFormsOfWork' 67 'fetchFormsOfWork'
71 - ]),  
72 - deleteWork (item) {  
73 - // TODO delete work from work list  
74 - },  
75 - createWork () {  
76 - this.$router.push({ name: 'editor' })  
77 - } 68 + ])
78 }, 69 },
79 render (h) { 70 render (h) {
80 return ( 71 return (
@@ -90,7 +81,6 @@ export default { @@ -90,7 +81,6 @@ export default {
90 ) 81 )
91 }, 82 },
92 created () { 83 created () {
93 - // this.fetchWorks()  
94 const workId = this.$route.params.id 84 const workId = this.$route.params.id
95 this.fetchFormsOfWork(workId) 85 this.fetchFormsOfWork(workId)
96 } 86 }
front-end/h5/src/views/work-manager/form-stat/index.vue
@@ -2,7 +2,7 @@ @@ -2,7 +2,7 @@
2 * @Author: ly525 2 * @Author: ly525
3 * @Date: 2019-11-24 18:51:58 3 * @Date: 2019-11-24 18:51:58
4 * @LastEditors: ly525 4 * @LastEditors: ly525
5 - * @LastEditTime: 2019-11-26 10:48:17 5 + * @LastEditTime: 2019-12-08 15:28:33
6 * @FilePath: /luban-h5/front-end/h5/src/views/work-manager/form-stat/index.vue 6 * @FilePath: /luban-h5/front-end/h5/src/views/work-manager/form-stat/index.vue
7 * @Github: https://github.com/ly525/luban-h5 7 * @Github: https://github.com/ly525/luban-h5
8 * @Copyright 2018 - 2019 luban-h5. All Rights Reserved 8 * @Copyright 2018 - 2019 luban-h5. All Rights Reserved
@@ -19,8 +19,6 @@ export default { @@ -19,8 +19,6 @@ export default {
19 components: { 19 components: {
20 }, 20 },
21 data: () => ({ 21 data: () => ({
22 - activeWork: null,  
23 - previewVisible: false  
24 }), 22 }),
25 computed: { 23 computed: {
26 ...mapState('editor', ['works']), 24 ...mapState('editor', ['works']),
@@ -37,13 +35,7 @@ export default { @@ -37,13 +35,7 @@ export default {
37 methods: { 35 methods: {
38 ...mapActions('editor', [ 36 ...mapActions('editor', [
39 'fetchWorks' 37 'fetchWorks'
40 - ]),  
41 - deleteWork (item) {  
42 - // TODO delete work from work list  
43 - },  
44 - createWork () {  
45 - this.$router.push({ name: 'editor' })  
46 - } 38 + ])
47 }, 39 },
48 render (h) { 40 render (h) {
49 const that = this 41 const that = this