yuantianjiao 6 years ago
parent
commit
17ebf6db3f
31 changed files with 1337 additions and 252 deletions
  1. 128
    0
      src/pages/system/cmsManger/bannerManger/add.vue
  2. 128
    0
      src/pages/system/cmsManger/bannerManger/edit.vue
  3. 5
    2
      src/pages/system/cmsManger/bannerManger/index.vue
  4. 0
    36
      src/pages/system/cmsManger/bannerManger/page.scss
  5. 59
    0
      src/pages/system/cmsManger/indexMsg/add.vue
  6. 59
    0
      src/pages/system/cmsManger/indexMsg/edit.vue
  7. 5
    2
      src/pages/system/cmsManger/indexMsg/index.vue
  8. 0
    36
      src/pages/system/cmsManger/indexMsg/page.scss
  9. 134
    0
      src/pages/system/cmsManger/majorProjects/add.vue
  10. 134
    0
      src/pages/system/cmsManger/majorProjects/edit.vue
  11. 5
    2
      src/pages/system/cmsManger/majorProjects/index.vue
  12. 0
    36
      src/pages/system/cmsManger/majorProjects/page.scss
  13. 129
    0
      src/pages/system/cmsManger/newsManger/add.vue
  14. 129
    0
      src/pages/system/cmsManger/newsManger/edit.vue
  15. 5
    2
      src/pages/system/cmsManger/newsManger/index.vue
  16. 0
    36
      src/pages/system/cmsManger/newsManger/page.scss
  17. 44
    0
      src/pages/system/courseManger/courseTag/add.vue
  18. 4
    2
      src/pages/system/courseManger/courseTag/index.vue
  19. 0
    36
      src/pages/system/courseManger/courseTag/page.scss
  20. 2
    3
      src/pages/system/courseManger/fiveA/index.vue
  21. 1
    1
      src/pages/system/index.vue
  22. 72
    6
      src/pages/system/page.js
  23. 0
    2
      src/pages/system/page.scss
  24. 0
    36
      src/pages/system/systemSet/characterManger/page.scss
  25. 115
    0
      src/pages/system/systemSet/roleManger/add.vue
  26. 115
    0
      src/pages/system/systemSet/roleManger/edit.vue
  27. 51
    2
      src/pages/system/systemSet/roleManger/index.vue
  28. 2
    2
      src/pages/system/systemSet/userManger/add.vue
  29. 2
    2
      src/pages/system/systemSet/userManger/edit.vue
  30. 5
    7
      src/pages/system/systemSet/userManger/index.vue
  31. 4
    1
      src/style/main.css

+ 128
- 0
src/pages/system/cmsManger/bannerManger/add.vue View File

@@ -0,0 +1,128 @@
1
+<template>
2
+  <div class="subPage">
3
+    <form class="mainForm">
4
+      <ul>
5
+        <li class="flex-h">
6
+          <span>跳转类型:</span>
7
+          <div class="flex-item">
8
+            <div style="width:50%" class="radio">
9
+                <el-radio v-model="postData.jumpType" label='0' >连接</el-radio>
10
+                <el-radio v-model="postData.jumpType" label='1' >课程</el-radio>
11
+            </div>
12
+          </div>
13
+        </li>
14
+        <li class="flex-h">
15
+          <span>连接:</span>
16
+          <div class="flex-item">
17
+            <div style="width:50%">
18
+              <el-input
19
+                placeholder="请输入连接"
20
+                v-model="postData.link"
21
+                clearable>
22
+              </el-input>
23
+            </div>
24
+          </div>
25
+        </li>
26
+        <li class="flex-h">
27
+          <span>是否发布:</span>
28
+          <div class="flex-item">
29
+            <div style="width:50%" class="radio">
30
+              <el-radio v-model="postData.release" label='0' >是</el-radio>
31
+                <el-radio v-model="postData.release" label='1' >否</el-radio>
32
+            </div>
33
+          </div>
34
+        </li>
35
+        <li class="flex-h">
36
+          <span>图片位置:</span>
37
+          <div class="flex-item">
38
+            <div style="width:50%">
39
+              <el-select v-model="postData.position" placeholder="请选择">
40
+                <el-option
41
+                  v-for="item in positionList"
42
+                  :key="item.value"
43
+                  :label="item.label"
44
+                  :value="item.value">
45
+                </el-option>
46
+              </el-select>
47
+            </div>
48
+          </div>
49
+        </li>
50
+        <li class="flex-h">
51
+          <span>标题:</span>
52
+          <div class="flex-item">
53
+            <div style="width:50%">
54
+              <el-input
55
+                placeholder="请输入真实姓名"
56
+                v-model="postData.realName"
57
+                clearable>
58
+              </el-input>
59
+            </div>
60
+          </div>
61
+        </li>
62
+        <li class="flex-h">
63
+          <span>图片:</span>
64
+          <div class="flex-item">
65
+            <div>
66
+              <a class="formImg">
67
+                <img src="" class="centerLabel contain" alt="">
68
+                <i class="iconfont icon-quxiao"></i>
69
+              </a>
70
+              <el-button type="success" size="mini">上传图片</el-button>
71
+            </div>
72
+          </div>
73
+        </li>
74
+        <li style="text-align:center">
75
+          <el-button type="primary" size="mini">保存</el-button>
76
+          <el-button type="danger" size="mini">取消</el-button>
77
+        </li>
78
+      </ul>
79
+    </form>
80
+  </div>
81
+</template>
82
+
83
+<script>
84
+export default {
85
+  name: '',
86
+  data () {
87
+    return {
88
+      postData: {
89
+        jumpType: '0',
90
+        link: '',
91
+        release: '0',
92
+        position: ''
93
+      },
94
+      positionList: [{
95
+        value: '0',
96
+        label: '首页'
97
+      }, {
98
+        value: '1',
99
+        label: '精选'
100
+      }, {
101
+        value: '2',
102
+        label: '健康'
103
+      }, {
104
+        value: '3',
105
+        label: '社交'
106
+      }, {
107
+        value: '4',
108
+        label: '教育'
109
+      }, {
110
+        value: '5',
111
+        label: '健身'
112
+      }, {
113
+        value: '6',
114
+        label: '艺术'
115
+      }],
116
+    }
117
+  },
118
+  components: {},
119
+  methods: {
120
+
121
+  },
122
+  mounted () {}
123
+}
124
+</script>
125
+
126
+<!-- Add "scoped" attribute to limit CSS to this component only -->
127
+<style lang="scss" scoped>
128
+</style>

+ 128
- 0
src/pages/system/cmsManger/bannerManger/edit.vue View File

@@ -0,0 +1,128 @@
1
+<template>
2
+  <div class="subPage">
3
+    <form class="mainForm">
4
+      <ul>
5
+        <li class="flex-h">
6
+          <span>跳转类型:</span>
7
+          <div class="flex-item">
8
+            <div style="width:50%" class="radio">
9
+                <el-radio v-model="postData.jumpType" label='0' >连接</el-radio>
10
+                <el-radio v-model="postData.jumpType" label='1' >课程</el-radio>
11
+            </div>
12
+          </div>
13
+        </li>
14
+        <li class="flex-h">
15
+          <span>连接:</span>
16
+          <div class="flex-item">
17
+            <div style="width:50%">
18
+              <el-input
19
+                placeholder="请输入连接"
20
+                v-model="postData.link"
21
+                clearable>
22
+              </el-input>
23
+            </div>
24
+          </div>
25
+        </li>
26
+        <li class="flex-h">
27
+          <span>是否发布:</span>
28
+          <div class="flex-item">
29
+            <div style="width:50%" class="radio">
30
+              <el-radio v-model="postData.release" label='0' >是</el-radio>
31
+                <el-radio v-model="postData.release" label='1' >否</el-radio>
32
+            </div>
33
+          </div>
34
+        </li>
35
+        <li class="flex-h">
36
+          <span>图片位置:</span>
37
+          <div class="flex-item">
38
+            <div style="width:50%">
39
+              <el-select v-model="postData.position" placeholder="请选择">
40
+                <el-option
41
+                  v-for="item in positionList"
42
+                  :key="item.value"
43
+                  :label="item.label"
44
+                  :value="item.value">
45
+                </el-option>
46
+              </el-select>
47
+            </div>
48
+          </div>
49
+        </li>
50
+        <li class="flex-h">
51
+          <span>标题:</span>
52
+          <div class="flex-item">
53
+            <div style="width:50%">
54
+              <el-input
55
+                placeholder="请输入真实姓名"
56
+                v-model="postData.realName"
57
+                clearable>
58
+              </el-input>
59
+            </div>
60
+          </div>
61
+        </li>
62
+        <li class="flex-h">
63
+          <span>图片:</span>
64
+          <div class="flex-item">
65
+            <div>
66
+              <a class="formImg">
67
+                <img src="" class="centerLabel contain" alt="">
68
+                <i class="iconfont icon-quxiao"></i>
69
+              </a>
70
+              <el-button type="success" size="mini">上传图片</el-button>
71
+            </div>
72
+          </div>
73
+        </li>
74
+        <li style="text-align:center">
75
+          <el-button type="primary" size="mini">保存</el-button>
76
+          <el-button type="danger" size="mini">取消</el-button>
77
+        </li>
78
+      </ul>
79
+    </form>
80
+  </div>
81
+</template>
82
+
83
+<script>
84
+export default {
85
+  name: '',
86
+  data () {
87
+    return {
88
+      postData: {
89
+        jumpType: '0',
90
+        link: '',
91
+        release: '0',
92
+        position: ''
93
+      },
94
+      positionList: [{
95
+        value: '0',
96
+        label: '首页'
97
+      }, {
98
+        value: '1',
99
+        label: '精选'
100
+      }, {
101
+        value: '2',
102
+        label: '健康'
103
+      }, {
104
+        value: '3',
105
+        label: '社交'
106
+      }, {
107
+        value: '4',
108
+        label: '教育'
109
+      }, {
110
+        value: '5',
111
+        label: '健身'
112
+      }, {
113
+        value: '6',
114
+        label: '艺术'
115
+      }],
116
+    }
117
+  },
118
+  components: {},
119
+  methods: {
120
+
121
+  },
122
+  mounted () { }
123
+}
124
+</script>
125
+
126
+<!-- Add "scoped" attribute to limit CSS to this component only -->
127
+<style lang="scss" scoped>
128
+</style>

+ 5
- 2
src/pages/system/cmsManger/bannerManger/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="addBanner">新增轮播图</el-button>
7 7
         </div>
8 8
         <tableSearch @exportSearchKey="searchList"></tableSearch>
9 9
       </div>
@@ -106,6 +106,7 @@ export default {
106 106
       console.log(`当前页: ${val}`)
107 107
     },
108 108
     handleEdit (index, row) { // 编辑
109
+      this.$router.push({ name: 'editBanner', query: { id: row.position } })
109 110
       console.log(index, row)
110 111
     },
111 112
     handleDelete (index, row) { // 删除
@@ -128,6 +129,9 @@ export default {
128 129
     },
129 130
     searchList (key) { // 搜索列表
130 131
       console.log(key)
132
+    },
133
+    addBanner () {
134
+      this.$router.push({ name: 'addBanner' })
131 135
     }
132 136
   }
133 137
 }
@@ -135,5 +139,4 @@ export default {
135 139
 
136 140
 <!-- Add "scoped" attribute to limit CSS to this component only -->
137 141
 <style lang="scss" scoped>
138
-@import "page.scss";
139 142
 </style>

+ 0
- 36
src/pages/system/cmsManger/bannerManger/page.scss View File

@@ -1,36 +0,0 @@
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-

+ 59
- 0
src/pages/system/cmsManger/indexMsg/add.vue View File

@@ -0,0 +1,59 @@
1
+<template>
2
+  <div class="subPage">
3
+    <form class="mainForm">
4
+      <ul>
5
+        <li class="flex-h">
6
+          <span>标题:</span>
7
+          <div class="flex-item">
8
+            <div style="width:50%">
9
+              <el-input
10
+                placeholder="请输入标题"
11
+                v-model="postData.title"
12
+                clearable>
13
+              </el-input>
14
+            </div>
15
+          </div>
16
+        </li>
17
+        <li class="flex-h">
18
+          <span>跳转连接:</span>
19
+          <div class="flex-item">
20
+            <div style="width:50%">
21
+              <el-input
22
+                placeholder="请输入链接"
23
+                v-model="postData.link"
24
+                clearable>
25
+              </el-input>
26
+            </div>
27
+          </div>
28
+        </li>
29
+        <li style="text-align:center">
30
+          <el-button type="primary" size="mini">保存</el-button>
31
+          <el-button type="danger" size="mini">取消</el-button>
32
+        </li>
33
+      </ul>
34
+    </form>
35
+  </div>
36
+</template>
37
+
38
+<script>
39
+export default {
40
+  name: '',
41
+  data () {
42
+    return {
43
+      postData: {
44
+        title: '',
45
+        link: ''
46
+      }
47
+    }
48
+  },
49
+  components: {},
50
+  methods: {
51
+
52
+  },
53
+  mounted () { }
54
+}
55
+</script>
56
+
57
+<!-- Add "scoped" attribute to limit CSS to this component only -->
58
+<style lang="scss" scoped>
59
+</style>

+ 59
- 0
src/pages/system/cmsManger/indexMsg/edit.vue View File

@@ -0,0 +1,59 @@
1
+<template>
2
+  <div class="subPage">
3
+    <form class="mainForm">
4
+      <ul>
5
+        <li class="flex-h">
6
+          <span>标题:</span>
7
+          <div class="flex-item">
8
+            <div style="width:50%">
9
+              <el-input
10
+                placeholder="请输入标题"
11
+                v-model="postData.title"
12
+                clearable>
13
+              </el-input>
14
+            </div>
15
+          </div>
16
+        </li>
17
+        <li class="flex-h">
18
+          <span>跳转连接:</span>
19
+          <div class="flex-item">
20
+            <div style="width:50%">
21
+              <el-input
22
+                placeholder="请输入链接"
23
+                v-model="postData.link"
24
+                clearable>
25
+              </el-input>
26
+            </div>
27
+          </div>
28
+        </li>
29
+        <li style="text-align:center">
30
+          <el-button type="primary" size="mini">保存</el-button>
31
+          <el-button type="danger" size="mini">取消</el-button>
32
+        </li>
33
+      </ul>
34
+    </form>
35
+  </div>
36
+</template>
37
+
38
+<script>
39
+export default {
40
+  name: '',
41
+  data () {
42
+    return {
43
+      postData: {
44
+        title: '',
45
+        link: ''
46
+      }
47
+    }
48
+  },
49
+  components: {},
50
+  methods: {
51
+
52
+  },
53
+  mounted () { }
54
+}
55
+</script>
56
+
57
+<!-- Add "scoped" attribute to limit CSS to this component only -->
58
+<style lang="scss" scoped>
59
+</style>

+ 5
- 2
src/pages/system/cmsManger/indexMsg/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='addIndexMsg'>新增消息</el-button>
7 7
         </div>
8 8
         <tableSearch @exportSearchKey="searchList"></tableSearch>
9 9
       </div>
@@ -102,6 +102,7 @@ export default {
102 102
     },
103 103
     handleEdit (index, row) { // 编辑
104 104
       console.log(index, row)
105
+      this.$router.push({ name: 'editIndexMsg' })
105 106
     },
106 107
     handleDelete (index, row) { // 删除
107 108
       console.log(index, row)
@@ -123,6 +124,9 @@ export default {
123 124
     },
124 125
     searchList (key) { // 搜索列表
125 126
       console.log(key)
127
+    },
128
+    addIndexMsg () {
129
+      this.$router.push({ name: 'addIndexMsg' })
126 130
     }
127 131
   }
128 132
 }
@@ -130,5 +134,4 @@ export default {
130 134
 
131 135
 <!-- Add "scoped" attribute to limit CSS to this component only -->
132 136
 <style lang="scss" scoped>
133
-@import "page.scss";
134 137
 </style>

+ 0
- 36
src/pages/system/cmsManger/indexMsg/page.scss View File

@@ -1,36 +0,0 @@
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-

+ 134
- 0
src/pages/system/cmsManger/majorProjects/add.vue View File

@@ -0,0 +1,134 @@
1
+<template>
2
+  <div class="subPage">
3
+    <form class="mainForm">
4
+      <ul>
5
+        <li class="flex-h">
6
+          <span>对应案场:</span>
7
+          <div class="flex-item">
8
+            <div style="width:50%">
9
+              <el-select v-model="postData.case" placeholder="请选择">
10
+                <el-option
11
+                  v-for="item in caseList"
12
+                  :key="item.value"
13
+                  :label="item.label"
14
+                  :value="item.value">
15
+                </el-option>
16
+              </el-select>
17
+            </div>
18
+          </div>
19
+        </li>
20
+        <li class="flex-h">
21
+          <span>名称:</span>
22
+          <div class="flex-item">
23
+            <div style="width:50%">
24
+              <el-input
25
+                placeholder="请输入真实姓名"
26
+                v-model="postData.name"
27
+                clearable>
28
+              </el-input>
29
+            </div>
30
+          </div>
31
+        </li>
32
+        <li class="flex-h">
33
+          <span>标题:</span>
34
+          <div class="flex-item">
35
+            <div style="width:50%">
36
+              <el-input
37
+                placeholder="请输入真实姓名"
38
+                v-model="postData.title"
39
+                clearable>
40
+              </el-input>
41
+            </div>
42
+          </div>
43
+        </li>
44
+        <li class="flex-h">
45
+          <span>图片:</span>
46
+          <div class="flex-item">
47
+            <div>
48
+              <a class="formImg">
49
+                <img src="" class="centerLabel contain" alt="">
50
+                <i class="iconfont icon-quxiao"></i>
51
+              </a>
52
+              <el-button type="success" size="mini">上传图片</el-button>
53
+            </div>
54
+          </div>
55
+        </li>
56
+        <li class="flex-h">
57
+          <span>详细图片:</span>
58
+          <div class="flex-item">
59
+            <div>
60
+              <a class="formImg">
61
+                <img src="" class="centerLabel contain" alt="">
62
+                <i class="iconfont icon-quxiao"></i>
63
+              </a>
64
+              <el-button type="success" size="mini">上传图片</el-button>
65
+            </div>
66
+          </div>
67
+        </li>
68
+        <li class="flex-h">
69
+          <span>专题简介:</span>
70
+          <div class="flex-item">
71
+            <div style="width:50%">
72
+              <el-input
73
+                placeholder="请输入真实姓名"
74
+                v-model="postData.about"
75
+                type='textarea'
76
+                :autosize="{ minRows: 3, maxRows: 5}"
77
+                clearable>
78
+              </el-input>
79
+            </div>
80
+          </div>
81
+        </li>
82
+        <li class="flex-h">
83
+          <span>是否前台展示:</span>
84
+          <div class="flex-item">
85
+            <div style="width:50%" class="radio">
86
+              <el-radio v-model="postData.show" label='0' >是</el-radio>
87
+                <el-radio v-model="postData.show" label='1' >否</el-radio>
88
+            </div>
89
+          </div>
90
+        </li>
91
+        <li style="text-align:center">
92
+          <el-button type="primary" size="mini">保存</el-button>
93
+          <el-button type="danger" size="mini">取消</el-button>
94
+        </li>
95
+      </ul>
96
+    </form>
97
+  </div>
98
+</template>
99
+
100
+<script>
101
+export default {
102
+  name: '',
103
+  data () {
104
+    return {
105
+      postData: {
106
+        case: '',
107
+        name: '',
108
+        title: '',
109
+        about: '',
110
+        show: '0'
111
+      },
112
+      caseList: [{
113
+        value: '0',
114
+        label: '案场1'
115
+      }, {
116
+        value: '1',
117
+        label: '案场3'
118
+      }, {
119
+        value: '2',
120
+        label: '案场2'
121
+      }],
122
+    }
123
+  },
124
+  components: {},
125
+  methods: {
126
+
127
+  },
128
+  mounted () { }
129
+}
130
+</script>
131
+
132
+<!-- Add "scoped" attribute to limit CSS to this component only -->
133
+<style lang="scss" scoped>
134
+</style>

+ 134
- 0
src/pages/system/cmsManger/majorProjects/edit.vue View File

@@ -0,0 +1,134 @@
1
+<template>
2
+  <div class="subPage">
3
+    <form class="mainForm">
4
+      <ul>
5
+        <li class="flex-h">
6
+          <span>对应案场:</span>
7
+          <div class="flex-item">
8
+            <div style="width:50%">
9
+              <el-select v-model="postData.case" placeholder="请选择">
10
+                <el-option
11
+                  v-for="item in caseList"
12
+                  :key="item.value"
13
+                  :label="item.label"
14
+                  :value="item.value">
15
+                </el-option>
16
+              </el-select>
17
+            </div>
18
+          </div>
19
+        </li>
20
+        <li class="flex-h">
21
+          <span>名称:</span>
22
+          <div class="flex-item">
23
+            <div style="width:50%">
24
+              <el-input
25
+                placeholder="请输入真实姓名"
26
+                v-model="postData.name"
27
+                clearable>
28
+              </el-input>
29
+            </div>
30
+          </div>
31
+        </li>
32
+        <li class="flex-h">
33
+          <span>标题:</span>
34
+          <div class="flex-item">
35
+            <div style="width:50%">
36
+              <el-input
37
+                placeholder="请输入真实姓名"
38
+                v-model="postData.title"
39
+                clearable>
40
+              </el-input>
41
+            </div>
42
+          </div>
43
+        </li>
44
+        <li class="flex-h">
45
+          <span>图片:</span>
46
+          <div class="flex-item">
47
+            <div>
48
+              <a class="formImg">
49
+                <img src="" class="centerLabel contain" alt="">
50
+                <i class="iconfont icon-quxiao"></i>
51
+              </a>
52
+              <el-button type="success" size="mini">上传图片</el-button>
53
+            </div>
54
+          </div>
55
+        </li>
56
+        <li class="flex-h">
57
+          <span>详细图片:</span>
58
+          <div class="flex-item">
59
+            <div>
60
+              <a class="formImg">
61
+                <img src="" class="centerLabel contain" alt="">
62
+                <i class="iconfont icon-quxiao"></i>
63
+              </a>
64
+              <el-button type="success" size="mini">上传图片</el-button>
65
+            </div>
66
+          </div>
67
+        </li>
68
+        <li class="flex-h">
69
+          <span>专题简介:</span>
70
+          <div class="flex-item">
71
+            <div style="width:50%">
72
+              <el-input
73
+                placeholder="请输入真实姓名"
74
+                v-model="postData.about"
75
+                type='textarea'
76
+                :autosize="{ minRows: 3, maxRows: 5}"
77
+                clearable>
78
+              </el-input>
79
+            </div>
80
+          </div>
81
+        </li>
82
+        <li class="flex-h">
83
+          <span>是否前台展示:</span>
84
+          <div class="flex-item">
85
+            <div style="width:50%" class="radio">
86
+              <el-radio v-model="postData.show" label='0' >是</el-radio>
87
+                <el-radio v-model="postData.show" label='1' >否</el-radio>
88
+            </div>
89
+          </div>
90
+        </li>
91
+        <li style="text-align:center">
92
+          <el-button type="primary" size="mini">保存</el-button>
93
+          <el-button type="danger" size="mini">取消</el-button>
94
+        </li>
95
+      </ul>
96
+    </form>
97
+  </div>
98
+</template>
99
+
100
+<script>
101
+export default {
102
+  name: '',
103
+  data () {
104
+    return {
105
+      postData: {
106
+        case: '',
107
+        name: '',
108
+        title: '',
109
+        about: '',
110
+        show: '0'
111
+      },
112
+      caseList: [{
113
+        value: '0',
114
+        label: '案场1'
115
+      }, {
116
+        value: '1',
117
+        label: '案场3'
118
+      }, {
119
+        value: '2',
120
+        label: '案场2'
121
+      }],
122
+    }
123
+  },
124
+  components: {},
125
+  methods: {
126
+
127
+  },
128
+  mounted () { }
129
+}
130
+</script>
131
+
132
+<!-- Add "scoped" attribute to limit CSS to this component only -->
133
+<style lang="scss" scoped>
134
+</style>

+ 5
- 2
src/pages/system/cmsManger/majorProjects/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='addMajorProjects'>新增项目专题</el-button>
7 7
         </div>
8 8
         <ul>
9 9
           <li>
@@ -144,6 +144,7 @@ export default {
144 144
     },
145 145
     editItem (index, row) { // 编辑
146 146
       console.log(index, row)
147
+      this.$router.push({ name: 'editMajorProjects', query: { id: row.id } })
147 148
     },
148 149
     copyItemUrl (index, row) { // 复制专题链接
149 150
       console.log(index, row)
@@ -168,6 +169,9 @@ export default {
168 169
     },
169 170
     searchList (key) { // 搜索列表
170 171
       console.log(key)
172
+    },
173
+    addMajorProjects () {
174
+      this.$router.push({ name: 'addMajorProjects' })
171 175
     }
172 176
   }
173 177
 }
@@ -175,5 +179,4 @@ export default {
175 179
 
176 180
 <!-- Add "scoped" attribute to limit CSS to this component only -->
177 181
 <style lang="scss" scoped>
178
-@import "page.scss";
179 182
 </style>

+ 0
- 36
src/pages/system/cmsManger/majorProjects/page.scss View File

@@ -1,36 +0,0 @@
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-

+ 129
- 0
src/pages/system/cmsManger/newsManger/add.vue View File

@@ -0,0 +1,129 @@
1
+<template>
2
+  <div class="subPage">
3
+    <form class="mainForm">
4
+      <ul>
5
+        <li class="flex-h">
6
+          <span>跳转类型:</span>
7
+          <div class="flex-item">
8
+            <div style="width:50%" class="radio">
9
+                <el-radio v-model="postData.jumpType" label='0' >连接</el-radio>
10
+                <el-radio v-model="postData.jumpType" label='1' >课程</el-radio>
11
+            </div>
12
+          </div>
13
+        </li>
14
+        <li class="flex-h">
15
+          <span>连接:</span>
16
+          <div class="flex-item">
17
+            <div style="width:50%">
18
+              <el-input
19
+                placeholder="请输入连接"
20
+                v-model="postData.link"
21
+                clearable>
22
+              </el-input>
23
+            </div>
24
+          </div>
25
+        </li>
26
+        <li class="flex-h">
27
+          <span>是否发布:</span>
28
+          <div class="flex-item">
29
+            <div style="width:50%" class="radio">
30
+              <el-radio v-model="postData.release" label='0' >是</el-radio>
31
+                <el-radio v-model="postData.release" label='1' >否</el-radio>
32
+            </div>
33
+          </div>
34
+        </li>
35
+        <li class="flex-h">
36
+          <span>图片位置:</span>
37
+          <div class="flex-item">
38
+            <div style="width:50%">
39
+              <el-select v-model="postData.position" placeholder="请选择">
40
+                <el-option
41
+                  v-for="item in positionList"
42
+                  :key="item.value"
43
+                  :label="item.label"
44
+                  :value="item.value">
45
+                </el-option>
46
+              </el-select>
47
+            </div>
48
+          </div>
49
+        </li>
50
+        <li class="flex-h">
51
+          <span>是否推荐到首页:</span>
52
+          <div class="flex-item">
53
+            <div style="width:50%" class="radio">
54
+              <el-radio v-model="postData.index" label='0' >是</el-radio>
55
+                <el-radio v-model="postData.index" label='1' >否</el-radio>
56
+            </div>
57
+          </div>
58
+        </li>
59
+        <li class="flex-h">
60
+          <span>标题:</span>
61
+          <div class="flex-item">
62
+            <div style="width:50%">
63
+              <el-input
64
+                placeholder="请输入真实姓名"
65
+                v-model="postData.realName"
66
+                clearable>
67
+              </el-input>
68
+            </div>
69
+          </div>
70
+        </li>
71
+        <li class="flex-h">
72
+          <span>图片:</span>
73
+          <div class="flex-item">
74
+            <div>
75
+              <a class="formImg">
76
+                <img src="" class="centerLabel contain" alt="">
77
+                <i class="iconfont icon-quxiao"></i>
78
+              </a>
79
+              <el-button type="success" size="mini">上传图片</el-button>
80
+            </div>
81
+          </div>
82
+        </li>
83
+        <li style="text-align:center">
84
+          <el-button type="primary" size="mini">保存</el-button>
85
+          <el-button type="danger" size="mini">取消</el-button>
86
+        </li>
87
+      </ul>
88
+    </form>
89
+  </div>
90
+</template>
91
+
92
+<script>
93
+export default {
94
+  name: '',
95
+  data () {
96
+    return {
97
+      postData: {
98
+        jumpType: '0',
99
+        link: '',
100
+        release: '0',
101
+        position: '',
102
+        index: '0'
103
+      },
104
+      positionList: [{
105
+        value: '0',
106
+        label: '首页'
107
+      }, {
108
+        value: '1',
109
+        label: '精选'
110
+      }, {
111
+        value: '2',
112
+        label: '社交'
113
+      }, {
114
+        value: '3',
115
+        label: '健身'
116
+      }],
117
+    }
118
+  },
119
+  components: {},
120
+  methods: {
121
+
122
+  },
123
+  mounted () { }
124
+}
125
+</script>
126
+
127
+<!-- Add "scoped" attribute to limit CSS to this component only -->
128
+<style lang="scss" scoped>
129
+</style>

+ 129
- 0
src/pages/system/cmsManger/newsManger/edit.vue View File

@@ -0,0 +1,129 @@
1
+<template>
2
+  <div class="subPage">
3
+    <form class="mainForm">
4
+      <ul>
5
+        <li class="flex-h">
6
+          <span>跳转类型:</span>
7
+          <div class="flex-item">
8
+            <div style="width:50%" class="radio">
9
+                <el-radio v-model="postData.jumpType" label='0' >连接</el-radio>
10
+                <el-radio v-model="postData.jumpType" label='1' >课程</el-radio>
11
+            </div>
12
+          </div>
13
+        </li>
14
+        <li class="flex-h">
15
+          <span>连接:</span>
16
+          <div class="flex-item">
17
+            <div style="width:50%">
18
+              <el-input
19
+                placeholder="请输入连接"
20
+                v-model="postData.link"
21
+                clearable>
22
+              </el-input>
23
+            </div>
24
+          </div>
25
+        </li>
26
+        <li class="flex-h">
27
+          <span>是否发布:</span>
28
+          <div class="flex-item">
29
+            <div style="width:50%" class="radio">
30
+              <el-radio v-model="postData.release" label='0' >是</el-radio>
31
+                <el-radio v-model="postData.release" label='1' >否</el-radio>
32
+            </div>
33
+          </div>
34
+        </li>
35
+        <li class="flex-h">
36
+          <span>图片位置:</span>
37
+          <div class="flex-item">
38
+            <div style="width:50%">
39
+              <el-select v-model="postData.position" placeholder="请选择">
40
+                <el-option
41
+                  v-for="item in positionList"
42
+                  :key="item.value"
43
+                  :label="item.label"
44
+                  :value="item.value">
45
+                </el-option>
46
+              </el-select>
47
+            </div>
48
+          </div>
49
+        </li>
50
+        <li class="flex-h">
51
+          <span>是否推荐到首页:</span>
52
+          <div class="flex-item">
53
+            <div style="width:50%" class="radio">
54
+              <el-radio v-model="postData.index" label='0' >是</el-radio>
55
+                <el-radio v-model="postData.index" label='1' >否</el-radio>
56
+            </div>
57
+          </div>
58
+        </li>
59
+        <li class="flex-h">
60
+          <span>标题:</span>
61
+          <div class="flex-item">
62
+            <div style="width:50%">
63
+              <el-input
64
+                placeholder="请输入真实姓名"
65
+                v-model="postData.realName"
66
+                clearable>
67
+              </el-input>
68
+            </div>
69
+          </div>
70
+        </li>
71
+        <li class="flex-h">
72
+          <span>图片:</span>
73
+          <div class="flex-item">
74
+            <div>
75
+              <a class="formImg">
76
+                <img src="" class="centerLabel contain" alt="">
77
+                <i class="iconfont icon-quxiao"></i>
78
+              </a>
79
+              <el-button type="success" size="mini">上传图片</el-button>
80
+            </div>
81
+          </div>
82
+        </li>
83
+        <li style="text-align:center">
84
+          <el-button type="primary" size="mini">保存</el-button>
85
+          <el-button type="danger" size="mini">取消</el-button>
86
+        </li>
87
+      </ul>
88
+    </form>
89
+  </div>
90
+</template>
91
+
92
+<script>
93
+export default {
94
+  name: '',
95
+  data () {
96
+    return {
97
+      postData: {
98
+        jumpType: '0',
99
+        link: '',
100
+        release: '0',
101
+        position: '',
102
+        index: '0'
103
+      },
104
+      positionList: [{
105
+        value: '0',
106
+        label: '首页'
107
+      }, {
108
+        value: '1',
109
+        label: '精选'
110
+      }, {
111
+        value: '2',
112
+        label: '社交'
113
+      }, {
114
+        value: '3',
115
+        label: '健身'
116
+      }],
117
+    }
118
+  },
119
+  components: {},
120
+  methods: {
121
+
122
+  },
123
+  mounted () { }
124
+}
125
+</script>
126
+
127
+<!-- Add "scoped" attribute to limit CSS to this component only -->
128
+<style lang="scss" scoped>
129
+</style>

+ 5
- 2
src/pages/system/cmsManger/newsManger/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='addNews'>新增资讯</el-button>
7 7
         </div>
8 8
         <tableSearch @exportSearchKey="searchList"></tableSearch>
9 9
       </div>
@@ -118,6 +118,7 @@ export default {
118 118
     },
119 119
     handleEdit (index, row) { // 编辑
120 120
       console.log(index, row)
121
+      this.$router.push({ name: 'editNews' })
121 122
     },
122 123
     handleDelete (index, row) { // 删除
123 124
       console.log(index, row)
@@ -139,6 +140,9 @@ export default {
139 140
     },
140 141
     searchList (key) { // 搜索列表
141 142
       console.log(key)
143
+    },
144
+    addNews () {
145
+      this.$router.push({ name: 'addNews' })
142 146
     }
143 147
   }
144 148
 }
@@ -146,5 +150,4 @@ export default {
146 150
 
147 151
 <!-- Add "scoped" attribute to limit CSS to this component only -->
148 152
 <style lang="scss" scoped>
149
-@import "page.scss";
150 153
 </style>

+ 0
- 36
src/pages/system/cmsManger/newsManger/page.scss View File

@@ -1,36 +0,0 @@
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-

+ 44
- 0
src/pages/system/courseManger/courseTag/add.vue View File

@@ -0,0 +1,44 @@
1
+<template>
2
+  <div class="subPage">
3
+    <form class="mainForm">
4
+      <ul>
5
+        <li class="flex-h">
6
+          <span>用户名:</span>
7
+          <div class="flex-item">
8
+            <div style="width:50%">
9
+              <el-input
10
+                placeholder="请输入用户名"
11
+                v-model="postData.userName"
12
+                clearable>
13
+              </el-input>
14
+            </div>
15
+          </div>
16
+        </li>
17
+        <li style="text-align:center">
18
+          <el-button type="primary" size="mini">保存</el-button>
19
+          <el-button type="danger" size="mini">取消</el-button>
20
+        </li>
21
+      </ul>
22
+    </form>
23
+  </div>
24
+</template>
25
+
26
+<script>
27
+export default {
28
+  name: '',
29
+  data () {
30
+    return {
31
+      postData: {
32
+        tag: '',
33
+      }
34
+    }
35
+  },
36
+  components: {},
37
+  methods: {},
38
+  mounted () {}
39
+}
40
+</script>
41
+
42
+<!-- Add "scoped" attribute to limit CSS to this component only -->
43
+<style lang="scss" scoped>
44
+</style>

+ 4
- 2
src/pages/system/courseManger/courseTag/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='addCourseTag'>新增课程标签</el-button>
7 7
         </div>
8 8
         <ul>
9 9
           <li>
@@ -120,6 +120,9 @@ export default {
120 120
     },
121 121
     searchList (key) { // 搜索列表
122 122
       console.log(key)
123
+    },
124
+    addCourseTag () {
125
+      this.$router.push({ name: 'addCourseTag' })
123 126
     }
124 127
   }
125 128
 }
@@ -127,5 +130,4 @@ export default {
127 130
 
128 131
 <!-- Add "scoped" attribute to limit CSS to this component only -->
129 132
 <style lang="scss" scoped>
130
-@import "page.scss";
131 133
 </style>

+ 0
- 36
src/pages/system/courseManger/courseTag/page.scss View File

@@ -1,36 +0,0 @@
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-

+ 2
- 3
src/pages/system/courseManger/fiveA/index.vue View File

@@ -19,8 +19,7 @@
19 19
       :default-expand-all="true"
20 20
       :expand-on-click-node="false"
21 21
       :render-content="renderContent"
22
-      :indent="0"
23
-      @node-click="handleNodeClick"></el-tree>
22
+      :indent="0"></el-tree>
24 23
     </div>
25 24
   </div>
26 25
 </template>
@@ -83,7 +82,7 @@ export default {
83 82
     },
84 83
     handleEdit (node, data) { // 编辑
85 84
       console.log(node, data)
86
-      this.$router.push({ name: 'addFiveA', query: { label: data.label } })
85
+      this.$router.push({ name: 'editFiveA', query: { label: data.label } })
87 86
     },
88 87
     handleDelete (node, data) { // 删除
89 88
       console.log(node, data)

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

@@ -60,7 +60,7 @@ export default {
60 60
           children: [],
61 61
         }, {
62 62
           title: '角色管理',
63
-          pathName: 'characterManger',
63
+          pathName: 'roleManger',
64 64
           children: [],
65 65
         }],
66 66
       }, {

+ 72
- 6
src/pages/system/page.js View File

@@ -5,7 +5,9 @@ import systemSet from './systemSet/index' // 系统设置
5 5
 import userManger from './systemSet/userManger/index' // 用户管理
6 6
 import addUser from './systemSet/userManger/add' // 添加用户
7 7
 import editUser from './systemSet/userManger/edit' // 编辑用户
8
-import characterManger from './systemSet/characterManger/index' // 角色管理
8
+import roleManger from './systemSet/roleManger/index' // 角色管理
9
+import addRole from './systemSet/roleManger/add' // 添加角色
10
+import editRole from './systemSet/roleManger/edit' // 编辑角色
9 11
 
10 12
 import caseManger from './caseManger/index' // 案场管理
11 13
 import caseInfo from './caseManger/caseInfo/index' // 案场信息
@@ -21,9 +23,17 @@ import goodsSpecManger from './goodsManger/goodsSpecManger/index' // 商品规
21 23
 
22 24
 import cmsManger from './cmsManger/index' // cms管理
23 25
 import bannerManger from './cmsManger/bannerManger/index' // 轮播图管理
26
+import addBanner from './cmsManger/bannerManger/add' // 添加轮播图
27
+import editBanner from './cmsManger/bannerManger/edit' // 编辑轮播图
24 28
 import majorProjects from './cmsManger/majorProjects/index' // 售楼处项目专题
29
+import addMajorProjects from './cmsManger/majorProjects/add' // 新增售楼处项目专题
30
+import editMajorProjects from './cmsManger/majorProjects/edit' // 编辑售楼处项目专题
25 31
 import indexMsg from './cmsManger/indexMsg/index' // 首页消息
32
+import addIndexMsg from './cmsManger/indexMsg/add' // 新增首页消息
33
+import editIndexMsg from './cmsManger/indexMsg/edit' // 新增首页消息
26 34
 import newsManger from './cmsManger/newsManger/index' // 资讯管理
35
+import addNews from './cmsManger/newsManger/add' // 资讯管理
36
+import editNews from './cmsManger/newsManger/edit' // 资讯管理
27 37
 
28 38
 import channelManger from './channelManager/index' // 渠道管理
29 39
 import channelList from './channelManager/channelList/index' // 渠道列表
@@ -33,6 +43,7 @@ import fiveA from './courseManger/fiveA/index' // 全龄生活5A
33 43
 import addFiveA from './courseManger/fiveA/add' // 全龄生活5A添加
34 44
 import editFiveA from './courseManger/fiveA/edit' // 全龄生活5A编辑
35 45
 import courseTag from './courseManger/courseTag/index' // 课程标签
46
+import addCourseTag from './courseManger/courseTag/add' // 新增课程标签
36 47
 
37 48
 import dataStatistics from './dataStatistics/index' // 数据统计
38 49
 import frontEndUserList from './dataStatistics/frontEndUserList/index' // 课程管理
@@ -57,15 +68,25 @@ export default {
57 68
           name: 'addUser',
58 69
           component: addUser,
59 70
           children: []
60
-        }, { // 添加用户
71
+        }, { // 编辑用户
61 72
           path: 'userManger/editUser',
62 73
           name: 'editUser',
63 74
           component: editUser,
64 75
           children: []
65 76
         }, { // 角色管理
66
-          path: 'characterManger',
67
-          name: 'characterManger',
68
-          component: characterManger,
77
+          path: 'roleManger',
78
+          name: 'roleManger',
79
+          component: roleManger,
80
+          children: []
81
+        }, { // 添加角色
82
+          path: 'roleManger/addRole',
83
+          name: 'addRole',
84
+          component: addRole,
85
+          children: []
86
+        }, { // 编辑角色
87
+          path: 'roleManger/editRole',
88
+          name: 'editRole',
89
+          component: editRole,
69 90
           children: []
70 91
         }],
71 92
       }, { // 案场管理
@@ -127,21 +148,61 @@ export default {
127 148
           name: 'bannerManger',
128 149
           component: bannerManger,
129 150
           children: []
151
+        }, { // 新增轮播图
152
+          path: 'bannerManger/addBanner',
153
+          name: 'addBanner',
154
+          component: addBanner,
155
+          children: []
156
+        }, { // 编辑轮播图
157
+          path: 'bannerManger/editBanner',
158
+          name: 'editBanner',
159
+          component: editBanner,
160
+          children: []
130 161
         }, { // 售楼处项目专题
131 162
           path: 'majorProjects',
132 163
           name: 'majorProjects',
133 164
           component: majorProjects,
134 165
           children: []
166
+        }, { // 新增售楼处项目专题
167
+          path: 'majorProjects/addMajorProjects',
168
+          name: 'addMajorProjects',
169
+          component: addMajorProjects,
170
+          children: []
171
+        }, { // 编辑售楼处项目专题
172
+          path: 'majorProjects/editMajorProjects',
173
+          name: 'editMajorProjects',
174
+          component: editMajorProjects,
175
+          children: []
135 176
         }, { // 首页消息
136 177
           path: 'indexMsg',
137 178
           name: 'indexMsg',
138 179
           component: indexMsg,
139 180
           children: []
181
+        }, { // 新增首页消息
182
+          path: 'indexMsg/addIndexMsg',
183
+          name: 'addIndexMsg',
184
+          component: addIndexMsg,
185
+          children: []
186
+        }, { // 编辑首页消息
187
+          path: 'indexMsg/editIndexMsg',
188
+          name: 'editIndexMsg',
189
+          component: editIndexMsg,
190
+          children: []
140 191
         }, { // 资讯管理
141 192
           path: 'newsManger',
142 193
           name: 'newsManger',
143 194
           component: newsManger,
144 195
           children: []
196
+        }, { // 新增资讯
197
+          path: 'newsManger/addNews',
198
+          name: 'addNews',
199
+          component: addNews,
200
+          children: []
201
+        }, { // 编辑资讯
202
+          path: 'newsManger/editNews',
203
+          name: 'editNews',
204
+          component: editNews,
205
+          children: []
145 206
         }],
146 207
       }, { // 渠道管理
147 208
         path: 'channelManger',
@@ -167,7 +228,7 @@ export default {
167 228
           name: 'addFiveA',
168 229
           component: addFiveA,
169 230
           children: []
170
-        }, { // 全龄生活5A添加
231
+        }, { // 全龄生活5A编辑
171 232
           path: 'fiveA/editFiveA',
172 233
           name: 'editFiveA',
173 234
           component: editFiveA,
@@ -177,6 +238,11 @@ export default {
177 238
           name: 'courseTag',
178 239
           component: courseTag,
179 240
           children: []
241
+        }, { // 新增课程标签
242
+          path: 'courseTag/addCourseTag',
243
+          name: 'addCourseTag',
244
+          component: addCourseTag,
245
+          children: []
180 246
         }],
181 247
       }, { // 数据统计
182 248
         path: 'dataStatistics',

+ 0
- 2
src/pages/system/page.scss View File

@@ -110,8 +110,6 @@
110 110
 
111 111
 
112 112
 
113
-
114
-
115 113
 
116 114
 
117 115
 

+ 0
- 36
src/pages/system/systemSet/characterManger/page.scss View File

@@ -1,36 +0,0 @@
1
-
2
-
3
-
4
-
5
-
6
-
7
-
8
-
9
-
10
-
11
-
12
-
13
-
14
-
15
-
16
-
17
-
18
-
19
-
20
-
21
-
22
-
23
-
24
-
25
-
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
-
34
-
35
-
36
-

+ 115
- 0
src/pages/system/systemSet/roleManger/add.vue View File

@@ -0,0 +1,115 @@
1
+<template>
2
+  <div class="subPage">
3
+    <form class="mainForm">
4
+      <ul>
5
+        <li class="flex-h">
6
+          <span>角色名:</span>
7
+          <div class="flex-item">
8
+            <div style="width:50%">
9
+              <el-input
10
+                placeholder="只能输入英文"
11
+                v-model="postData.roleId"
12
+                clearable>
13
+              </el-input>
14
+            </div>
15
+          </div>
16
+        </li>
17
+        <li class="flex-h">
18
+          <span>角色名称:</span>
19
+          <div class="flex-item">
20
+            <div style="width:50%">
21
+              <el-input
22
+                placeholder="请输入角色名称"
23
+                v-model="postData.roleName"
24
+                clearable>
25
+              </el-input>
26
+            </div>
27
+          </div>
28
+        </li>
29
+        <li class="flex-h">
30
+          <span>禁用角色:</span>
31
+          <div class="flex-item">
32
+            <div style="width:50%" class="switch">
33
+              <el-switch
34
+                v-model="postData.disable"
35
+                active-color="#13ce66"
36
+                inactive-color="#ff4949">
37
+              </el-switch>
38
+            </div>
39
+          </div>
40
+        </li>
41
+        <li class="flex-h">
42
+          <span>数据权限:</span>
43
+          <div class="flex-item">
44
+            <div style="width:50%">
45
+              <el-select v-model="postData.permission" placeholder="请选择">
46
+                <el-option
47
+                  v-for="item in permissionList"
48
+                  :key="item.value"
49
+                  :label="item.name"
50
+                  :value="item.value">
51
+                </el-option>
52
+              </el-select>
53
+            </div>
54
+          </div>
55
+        </li>
56
+        <li class="flex-h">
57
+          <span>备注:</span>
58
+          <div class="flex-item">
59
+            <div>
60
+              <el-input
61
+                placeholder="请输入备注"
62
+                type="textarea"
63
+                :autosize="{ minRows: 3, maxRows: 5}"
64
+                v-model="postData.remark"
65
+                clearable>
66
+              </el-input>
67
+            </div>
68
+          </div>
69
+        </li>
70
+        <li style="text-align:center">
71
+          <el-button type="primary" size="mini" @click='submit'>保存</el-button>
72
+          <el-button type="danger" size="mini">取消</el-button>
73
+        </li>
74
+      </ul>
75
+    </form>
76
+  </div>
77
+</template>
78
+
79
+<script>
80
+export default {
81
+  name: '',
82
+  data () {
83
+    return {
84
+      postData: {
85
+        roleId: '', // 角色名
86
+        roleName: '', // 角色姓名
87
+        disable: false, // 禁用角色
88
+        permission: '', // 数据权限
89
+        remark: '' // 备注
90
+      },
91
+      permissionList: [{
92
+        value: '0',
93
+        name: '个人数据'
94
+      }, {
95
+        value: '1',
96
+        name: '所属组织全部数据'
97
+      }, {
98
+        value: '2',
99
+        name: '所属组织及下层全部数据'
100
+      }]
101
+    }
102
+  },
103
+  components: {},
104
+  methods: {
105
+    submit () {
106
+      console.log(this.postData)
107
+    }
108
+  },
109
+  mounted () { }
110
+}
111
+</script>
112
+
113
+<!-- Add "scoped" attribute to limit CSS to this component only -->
114
+<style lang="scss" scoped>
115
+</style>

+ 115
- 0
src/pages/system/systemSet/roleManger/edit.vue View File

@@ -0,0 +1,115 @@
1
+<template>
2
+  <div class="subPage">
3
+    <form class="mainForm">
4
+      <ul>
5
+        <li class="flex-h">
6
+          <span>角色名:</span>
7
+          <div class="flex-item">
8
+            <div style="width:50%">
9
+              <el-input
10
+                placeholder="只能输入英文"
11
+                v-model="postData.roleId"
12
+                clearable>
13
+              </el-input>
14
+            </div>
15
+          </div>
16
+        </li>
17
+        <li class="flex-h">
18
+          <span>角色名称:</span>
19
+          <div class="flex-item">
20
+            <div style="width:50%">
21
+              <el-input
22
+                placeholder="请输入角色名称"
23
+                v-model="postData.roleName"
24
+                clearable>
25
+              </el-input>
26
+            </div>
27
+          </div>
28
+        </li>
29
+        <li class="flex-h">
30
+          <span>禁用角色:</span>
31
+          <div class="flex-item">
32
+            <div style="width:50%" class="switch">
33
+              <el-switch
34
+                v-model="postData.disable"
35
+                active-color="#13ce66"
36
+                inactive-color="#ff4949">
37
+              </el-switch>
38
+            </div>
39
+          </div>
40
+        </li>
41
+        <li class="flex-h">
42
+          <span>数据权限:</span>
43
+          <div class="flex-item">
44
+            <div style="width:50%">
45
+              <el-select v-model="postData.permission" placeholder="请选择">
46
+                <el-option
47
+                  v-for="item in permissionList"
48
+                  :key="item.value"
49
+                  :label="item.name"
50
+                  :value="item.value">
51
+                </el-option>
52
+              </el-select>
53
+            </div>
54
+          </div>
55
+        </li>
56
+        <li class="flex-h">
57
+          <span>备注:</span>
58
+          <div class="flex-item">
59
+            <div>
60
+              <el-input
61
+                placeholder="请输入备注"
62
+                type="textarea"
63
+                :autosize="{ minRows: 3, maxRows: 5}"
64
+                v-model="postData.remark"
65
+                clearable>
66
+              </el-input>
67
+            </div>
68
+          </div>
69
+        </li>
70
+        <li style="text-align:center">
71
+          <el-button type="primary" size="mini" @click='submit'>保存</el-button>
72
+          <el-button type="danger" size="mini">取消</el-button>
73
+        </li>
74
+      </ul>
75
+    </form>
76
+  </div>
77
+</template>
78
+
79
+<script>
80
+export default {
81
+  name: '',
82
+  data () {
83
+    return {
84
+      postData: {
85
+        roleId: '', // 角色名
86
+        roleName: '', // 角色姓名
87
+        disable: false, // 禁用角色
88
+        permission: '', // 数据权限
89
+        remark: '' // 备注
90
+      },
91
+      permissionList: [{
92
+        value: '0',
93
+        name: '个人数据'
94
+      }, {
95
+        value: '1',
96
+        name: '所属组织全部数据'
97
+      }, {
98
+        value: '2',
99
+        name: '所属组织及下层全部数据'
100
+      }]
101
+    }
102
+  },
103
+  components: {},
104
+  methods: {
105
+    submit () {
106
+      console.log(this.postData)
107
+    }
108
+  },
109
+  mounted () { }
110
+}
111
+</script>
112
+
113
+<!-- Add "scoped" attribute to limit CSS to this component only -->
114
+<style lang="scss" scoped>
115
+</style>

src/pages/system/systemSet/characterManger/index.vue → src/pages/system/systemSet/roleManger/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='addRole'>新增角色</el-button>
7 7
         </div>
8 8
         <tableSearch value='分配权限' @exportSearchKey="searchList"></tableSearch>
9 9
       </div>
@@ -32,6 +32,15 @@
32 32
     </div>
33 33
     <el-pagination @size-change="handleSizeChange" @current-change="handleCurrentChange" :current-page.sync="currentPage" :page-size="10" layout="prev, pager, next, jumper" :total="100">
34 34
     </el-pagination>
35
+    <el-dialog title="请选择机构" :visible.sync="dialogTableVisible">
36
+      <el-tree
37
+        class="flxe-h"
38
+        :data="treeData"
39
+        :default-expand-all="true"
40
+        :expand-on-click-node="false"
41
+        show-checkbox
42
+        @node-click="handleNodeClick"></el-tree>
43
+    </el-dialog>
35 44
   </div>
36 45
 </template>
37 46
 
@@ -47,6 +56,7 @@ export default {
47 56
         // 表格搜索条件
48 57
         key: '111' // 搜索关键字
49 58
       },
59
+      dialogTableVisible: false,
50 60
       tableData: [
51 61
         {
52 62
           role: '赵日天',
@@ -97,7 +107,38 @@ export default {
97 107
           permission: '赵日天',
98 108
           createTime: '赵爸爸'
99 109
         }
100
-      ]
110
+      ],
111
+      treeData: [{
112
+        label: '根目录',
113
+        rank: '0',
114
+        img: '',
115
+        children: [{
116
+          label: '共享课程&书吧',
117
+          rank: '0',
118
+          img: '',
119
+          children: [{
120
+            label: '健身',
121
+            rank: '0',
122
+            img: 'http://jingcheng-resourceplat.oss-cn-shanghai.aliyuncs.com/upload/163306109741.png',
123
+          }, {
124
+            label: '健康',
125
+            rank: '0',
126
+            img: 'http://jingcheng-resourceplat.oss-cn-shanghai.aliyuncs.com/upload/163325263583.png',
127
+          }, {
128
+            label: '艺术',
129
+            rank: '0',
130
+            img: 'http://jingcheng-resourceplat.oss-cn-shanghai.aliyuncs.com/upload/104118813781.png',
131
+          }, {
132
+            label: '社交',
133
+            rank: '0',
134
+            img: 'http://jingcheng-resourceplat.oss-cn-shanghai.aliyuncs.com/upload/163339496588.png',
135
+          }, {
136
+            label: '教育',
137
+            rank: '0',
138
+            img: 'http://jingcheng-resourceplat.oss-cn-shanghai.aliyuncs.com/upload/163351586373.png',
139
+          }]
140
+        }]
141
+      }]
101 142
     }
102 143
   },
103 144
   components: {
@@ -113,6 +154,7 @@ export default {
113 154
     handleEdit (index, row) {
114 155
       // 编辑
115 156
       console.log(index, row)
157
+      this.$router.push({ name: 'editRole' })
116 158
     },
117 159
     handleDelete (index, row) {
118 160
       // 删除
@@ -136,11 +178,18 @@ export default {
136 178
         })
137 179
     },
138 180
     handlePermission (index, row) {
181
+      this.dialogTableVisible = true
139 182
       console.log(index)
140 183
     },
184
+    handleNodeClick (node) {
185
+      console.log(node)
186
+    },
141 187
     searchList (key) {
142 188
       // 搜索列表
143 189
       console.log(key)
190
+    },
191
+    addRole () {
192
+      this.$router.push({ name: 'addRole' })
144 193
     }
145 194
   }
146 195
 }

+ 2
- 2
src/pages/system/systemSet/userManger/add.vue View File

@@ -131,7 +131,7 @@
131 131
         <li class="flex-h">
132 132
           <span>锁定用户:</span>
133 133
           <div class="flex-item">
134
-            <div style="width:50%">
134
+            <div style="width:50%" class="switch">
135 135
               <el-switch
136 136
                 v-model="postData.lockUser"
137 137
                 active-color="#13ce66"
@@ -143,7 +143,7 @@
143 143
         <li class="flex-h">
144 144
           <span>是否案场联系人:</span>
145 145
           <div class="flex-item">
146
-            <div style="width:50%">
146
+            <div style="width:50%" class="switch">
147 147
               <el-switch
148 148
                 v-model="postData.linkMan"
149 149
                 active-color="#13ce66"

+ 2
- 2
src/pages/system/systemSet/userManger/edit.vue View File

@@ -131,7 +131,7 @@
131 131
         <li class="flex-h">
132 132
           <span>锁定用户:</span>
133 133
           <div class="flex-item">
134
-            <div style="width:50%">
134
+            <div style="width:50%" class="switch">
135 135
               <el-switch
136 136
                 v-model="postData.lockUser"
137 137
                 active-color="#13ce66"
@@ -143,7 +143,7 @@
143 143
         <li class="flex-h">
144 144
           <span>是否案场联系人:</span>
145 145
           <div class="flex-item">
146
-            <div style="width:50%">
146
+            <div style="width:50%" class="switch">
147 147
               <el-switch
148 148
                 v-model="postData.linkMan"
149 149
                 active-color="#13ce66"

+ 5
- 7
src/pages/system/systemSet/userManger/index.vue View File

@@ -100,14 +100,13 @@
100 100
             <span>搜索结果:</span>
101 101
             <div class="flex-item">
102 102
               <div>
103
-                <el-tag
103
+                <el-button
104 104
                   v-for="tag in searchTags"
105
-                  type='success'
106 105
                   :key="tag.name"
107 106
                   style="margin-right:1rem"
108 107
                   @click='addTag(tag)'>
109 108
                   {{tag.name}}
110
-                  </el-tag>
109
+                  </el-button>
111 110
               </div>
112 111
             </div>
113 112
           </li>
@@ -135,8 +134,7 @@
135 134
 <script>
136 135
 import tableSearch from '@/components/tableSearch/index'
137 136
 import { createNamespacedHelpers } from 'vuex'
138
-// import {mapActions} from 'vuex'
139
-const { mapState: mapUserState } = createNamespacedHelpers('user')
137
+const { mapState: mapUserState, mapActions: mapUserActions } = createNamespacedHelpers('user')
140 138
 export default {
141 139
   name: '',
142 140
   data () {
@@ -218,9 +216,9 @@ export default {
218 216
     handleClose (tag) {
219 217
       this.tags.splice(this.tags.indexOf(tag), 1)
220 218
     },
219
+    ...mapUserActions(['upDateRoleList']),
221 220
     addTag (tag) {
222
-      this.$store.dispatch('upDateRoleList', tag)
223
-      // $store.upDateRoleList('switch_dialog', tag)
221
+      this.upDateRoleList(tag)
224 222
     }
225 223
   }
226 224
 }

+ 4
- 1
src/style/main.css View File

@@ -287,7 +287,10 @@ select:focus {
287 287
   z-index: 2;
288 288
 }
289 289
 
290
-
290
+.switch,.radio {
291
+  display: flex;
292
+  align-items: center;
293
+}
291 294
 
292 295
 
293 296