许成详 6 years ago
parent
commit
6d3a8688bb

+ 37
- 0
src/pages/system/marketingActivities/listOfLotteryActivities/edit.vue View File

@@ -0,0 +1,37 @@
1
+<template>
2
+  <div class="subPage">
3
+    新增抽奖活动
4
+  </div>
5
+</template>
6
+<script>
7
+import { mapState } from 'vuex'
8
+export default {
9
+  data () {
10
+    return {
11
+    }
12
+  },
13
+  computed: {
14
+    ...mapState({
15
+      cases: x => x.app.cases.list,
16
+      defaultCaseId: x => x.app.cases.default
17
+    }),
18
+    CaseId: {
19
+      get () {
20
+        return this.postData.caseid || this.defaultCaseId
21
+      },
22
+      set (val) {
23
+        this.postData.caseid = val
24
+      }
25
+    }
26
+  },
27
+  mounted () {
28
+  },
29
+  methods: {
30
+  },
31
+}
32
+</script>
33
+
34
+<!-- Add "scoped" attribute to limit CSS to this component only -->
35
+<style lang="scss" scoped>
36
+@import "page.scss";
37
+</style>

+ 4
- 1
src/pages/system/marketingActivities/listOfLotteryActivities/index.vue View File

@@ -3,7 +3,7 @@
3 3
     <div class="system-table-search">
4 4
       <div class="flex-h">
5 5
         <div class="flex-item flex-h">
6
-          <el-button size="mini" type="success">新增抽奖活动</el-button>
6
+          <el-button size="mini" type="success" @click="addLotteryActivities">新增抽奖活动</el-button>
7 7
         </div>
8 8
         <ul>
9 9
           <li>
@@ -153,6 +153,9 @@ export default {
153 153
     },
154 154
     getList () { // 获取数据列表
155 155
     },
156
+    addLotteryActivities () {
157
+      this.$router.push({ name: 'addLotteryActivities' })
158
+    },
156 159
   },
157 160
 }
158 161
 </script>

+ 37
- 0
src/pages/system/marketingActivities/snapUpList/edit.vue View File

@@ -0,0 +1,37 @@
1
+<template>
2
+  <div class="subPage">
3
+    新增抢购活动
4
+  </div>
5
+</template>
6
+<script>
7
+import { mapState } from 'vuex'
8
+export default {
9
+  data () {
10
+    return {
11
+    }
12
+  },
13
+  computed: {
14
+    ...mapState({
15
+      cases: x => x.app.cases.list,
16
+      defaultCaseId: x => x.app.cases.default
17
+    }),
18
+    CaseId: {
19
+      get () {
20
+        return this.postData.caseid || this.defaultCaseId
21
+      },
22
+      set (val) {
23
+        this.postData.caseid = val
24
+      }
25
+    }
26
+  },
27
+  mounted () {
28
+  },
29
+  methods: {
30
+  },
31
+}
32
+</script>
33
+
34
+<!-- Add "scoped" attribute to limit CSS to this component only -->
35
+<style lang="scss" scoped>
36
+@import "page.scss";
37
+</style>

+ 4
- 1
src/pages/system/marketingActivities/snapUpList/index.vue View File

@@ -3,7 +3,7 @@
3 3
     <div class="system-table-search">
4 4
       <div class="flex-h">
5 5
         <div class="flex-item flex-h">
6
-          <el-button size="mini" type="success">新增抢购活动</el-button>
6
+          <el-button size="mini" type="success" @click="addSnapUpList">新增抢购活动</el-button>
7 7
         </div>
8 8
         <ul>
9 9
           <li>
@@ -138,6 +138,9 @@ export default {
138 138
     },
139 139
     getList () { // 获取数据列表
140 140
     },
141
+    addSnapUpList () {
142
+      this.$router.push({ name: 'addSnapUpList' })
143
+    },
141 144
   },
142 145
 }
143 146
 </script>

+ 26
- 2
src/pages/system/page.js View File

@@ -118,7 +118,11 @@ import marketingActivities from './marketingActivities/index' // 营销活动
118 118
 import activitiesList from './marketingActivities/activitiesList/index' // 活动列表
119 119
 import addActivities from './marketingActivities/addActivities/index' // 添加活动
120 120
 import listOfLotteryActivities from './marketingActivities/listOfLotteryActivities/index' // 抽奖活动列表
121
+import addLotteryActivities from './marketingActivities/listOfLotteryActivities/edit' // 新增抽奖活动
122
+import editLotteryActivities from './marketingActivities/listOfLotteryActivities/edit' // 编辑抽奖活动
121 123
 import snapUpList from './marketingActivities/snapUpList/index' // 抢购活动列表
124
+import addSnapUpList from './marketingActivities/snapUpList/edit' // 新增抢购活动
125
+import editSnapUpList from './marketingActivities/snapUpList/edit' // 编辑抢购活动
122 126
 
123 127
 import healthManager from './healthManager/index' // 健康管理
124 128
 import healthRecord from './healthManager/healthRecord/index' // 体检记录列表
@@ -651,12 +655,32 @@ export default {
651 655
           path: 'listOfLotteryActivities',
652 656
           name: 'listOfLotteryActivities',
653 657
           component: listOfLotteryActivities,
654
-          children: []
658
+          children: [{ // 新增抽奖活动
659
+            path: 'addLotteryActivities',
660
+            name: 'addLotteryActivities',
661
+            component: addLotteryActivities,
662
+            children: []
663
+          }, { // 编辑抽奖活动
664
+            path: 'editLotteryActivities',
665
+            name: 'editLotteryActivities',
666
+            component: editLotteryActivities,
667
+            children: []
668
+          }]
655 669
         }, { // 抢购活动列表
656 670
           path: 'snapUpList',
657 671
           name: 'snapUpList',
658 672
           component: snapUpList,
659
-          children: []
673
+          children: [{ // 新增抢购活动
674
+            path: 'addSnapUpList',
675
+            name: 'addSnapUpList',
676
+            component: addSnapUpList,
677
+            children: []
678
+          }, { // 编辑抢购活动
679
+            path: 'editSnapUpList',
680
+            name: 'editSnapUpList',
681
+            component: editSnapUpList,
682
+            children: []
683
+          }]
660 684
         }]
661 685
       }, { // 健康管理
662 686
         path: 'healthManager',