Browse Source

feat: 企微助手 - 群活码 - 新建群活码页面

zhengxy 2 years ago
parent
commit
fcebbb5ef3

+ 55 - 0
project/src/components/groupCode/createGroupCode.vue

@@ -0,0 +1,55 @@
1
+<template>
2
+  <div>
3
+    新建群活码
4
+  </div>
5
+</template>
6
+
7
+<script>
8
+export default {
9
+  name: "createGroupCode",
10
+  components: {},
11
+  data() {
12
+    return {}
13
+  },
14
+  created(){},
15
+  methods:{},
16
+}
17
+</script>
18
+<style lang="scss">
19
+.appendOnly{
20
+  .el-input-group__append{
21
+    padding: 0 20px;
22
+  }
23
+}
24
+.limitBox{
25
+  .el-switch.is-disabled .el-switch__core{
26
+    cursor: pointer;
27
+  }
28
+}
29
+</style>
30
+<style lang="scss" scoped>
31
+@import "../customOperate/create.scss";
32
+.listBox{
33
+  margin-left: 90px;
34
+  width: 730px;
35
+  margin-top: 10px;
36
+  background-color: #fbfbfb;
37
+  padding: 10px;
38
+}
39
+.newGroupCss{
40
+  color: #00b38a;
41
+  font-size: 14px;
42
+  margin-left: 10px;
43
+  cursor: pointer;
44
+}
45
+.add_welcom_hint {
46
+  color: #00b38a;
47
+  font-size: 16px;
48
+  font-weight: bold;
49
+  margin-left: 90px;
50
+  margin-top: 10px;
51
+  margin-bottom: 20px;
52
+  cursor: pointer;
53
+  display: inline-block;
54
+}
55
+</style>

+ 7 - 1
project/src/components/groupCode/index.vue

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
   <div class="con">
3 3
     <div class="searchBox">
4
-      <el-button type="primary" size="mini">新建渠道群活码</el-button>
4
+      <el-button type="primary" size="mini" @click="handleToCreate">新建渠道群活码</el-button>
5 5
       <selfInput :reset="reset" label_name="搜索渠道" @inputChange="onInputChangeChannel" />
6 6
       <div class="reset" @click="resetEvent">重置</div>
7 7
     </div>
@@ -167,6 +167,12 @@ export default {
167 167
       this.params.page = page
168 168
       this.handleGetCodeList()
169 169
     },
170
+    // 跳转新建群活码
171
+    handleToCreate() {
172
+      this.$router.push({
173
+        path: '/createGroupCode'
174
+      })
175
+    },
170 176
     // 禁用
171 177
     forbiddenCode(id){
172 178
       this.loading = true

+ 11 - 0
project/src/router/allRouter.js

@@ -46,6 +46,7 @@ const createChannelCode = () => import(/* webpackChunkName: 'createChannelCode'
46 46
 const radarIndex = () => import(/* webpackChunkName: 'radarIndex' */ '@/components/customOperate/sideTool/smartRadar/index.vue')
47 47
 
48 48
 const groupCodeIndex = () => import(/* webpackChunkName: 'groupCodeIndex' */ '@/components/groupCode/index.vue')
49
+const createGroupCode = () => import(/* webpackChunkName: 'createGroupCode' */ '@/components/groupCode/createGroupCode.vue')
49 50
 
50 51
 
51 52
 // name与菜单配置的页面路由一致
@@ -128,6 +129,16 @@ export var allRouter = [
128 129
         }
129 130
       },
130 131
       {
132
+        path: 'createGroupCode',
133
+        name: 'groupCodeIndex',
134
+        component: createGroupCode,
135
+        meta: {
136
+          keepAlive: false,
137
+          isLogin: true,
138
+          title: '新建渠道群活码'
139
+        }
140
+      },
141
+      {
131 142
         path: 'codeIndex',
132 143
         name: 'codeIndex',
133 144
         component: codeIndex,