浏览代码

Screens for admin

master
George Williams 5 年前
父节点
当前提交
c61b290ced

+ 5
- 2
src/App.vue 查看文件

@@ -30,7 +30,8 @@
30 30
     <v-app-bar app>
31 31
       <v-app-bar-nav-icon v-if="isloggedIn" @click.stop="drawerLeft = !drawerLeft" />
32 32
       <v-toolbar-title>
33
-        <v-img src="./assets/images/logo.png" height="50" width="450"></v-img>
33
+        <v-img v-if="!isloggedIn" src="./assets/images/logo.png" height="50" width="450"></v-img>
34
+        <counter v-if="isloggedIn" />
34 35
       </v-toolbar-title>
35 36
       <v-spacer />
36 37
       <v-app-bar-nav-icon v-if="showTelemarketer" @click.stop="drawerRight = !drawerRight" />
@@ -62,12 +63,14 @@
62 63
 import navBar from "./components/home/navBar.vue";
63 64
 import login from "./components/user/login.vue";
64 65
 import tmBar from "./components/telemarketer/telemarketerBar.vue";
66
+import counter from "./components/home/counter.vue";
65 67
 
66 68
 export default {
67 69
   components: {
68 70
     navBar,
69 71
     login,
70
-    tmBar
72
+    tmBar,
73
+    counter
71 74
   },
72 75
   props: {
73 76
     source: String

+ 2
- 2
src/components/HelloWorld.vue 查看文件

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
   <v-container>
3
-    <v-layout text-center wrap>
3
+    <!-- <v-layout text-center wrap>
4 4
       <v-flex xs12></v-flex>
5 5
 
6 6
       <v-flex mb-4>
@@ -56,7 +56,7 @@
56 56
           >{{ eco.text }}</a>
57 57
         </v-layout>
58 58
       </v-flex>
59
-    </v-layout>
59
+    </v-layout>-->
60 60
   </v-container>
61 61
 </template>
62 62
 

+ 49
- 0
src/components/home/counter.vue 查看文件

@@ -0,0 +1,49 @@
1
+<template>
2
+  <v-container>
3
+    <v-layout>
4
+      <v-flex>
5
+        <v-img src="../../assets/images/logo.png" height="50" width="450"></v-img>
6
+      </v-flex>
7
+      <v-flex>
8
+        <v-label>Calls:</v-label>
9
+        <v-chip class="ma-2" label color="black" text-color="blue">
10
+          <b style="font-size:30px;">{{calls}}</b>
11
+        </v-chip>
12
+        <v-label>Session 1:</v-label>
13
+        <v-chip class="ma-2" label color="black" text-color="blue">
14
+          <b style="font-size:30px;">{{calls}}</b>
15
+        </v-chip>
16
+        <v-label>Session 2:</v-label>
17
+        <v-chip class="ma-2" label color="black" text-color="blue">
18
+          <b style="font-size:30px;">{{calls}}</b>
19
+        </v-chip>
20
+        <v-label>Session 3:</v-label>
21
+        <v-chip class="ma-2" label color="black" text-color="blue">
22
+          <b style="font-size:30px;">{{calls}}</b>
23
+        </v-chip>
24
+        <v-label>Session 4:</v-label>
25
+        <v-chip class="ma-2" label color="black" text-color="blue">
26
+          <b style="font-size:30px;">{{calls}}</b>
27
+        </v-chip>
28
+        <v-label>Target:</v-label>
29
+        <v-chip class="ma-2" label color="black" text-color="blue">
30
+          <b style="font-size:30px;">{{calls}}</b>
31
+        </v-chip>
32
+      </v-flex>
33
+      <v-flex>
34
+        <v-chip class="ma-2" label>Kobus Botha</v-chip>
35
+        <v-chip class="ma-2" label>Beatus 1</v-chip>
36
+      </v-flex>
37
+    </v-layout>
38
+  </v-container>
39
+</template>
40
+
41
+<script>
42
+export default {
43
+  data() {
44
+    return {
45
+      calls: 0
46
+    };
47
+  }
48
+};
49
+</script>

+ 2
- 2
src/components/home/navBar.vue 查看文件

@@ -11,8 +11,8 @@
11 11
         <v-btn block color="secondary" @click="router('/settings/sipaccount')">SIP Account</v-btn>
12 12
         <v-btn block color="secondary" @click="router('/settings/mediadevices')">Media Devices</v-btn>
13 13
         <v-btn block color="secondary" @click="router('/settings/defaults')">Defaults</v-btn>
14
-        <v-btn block color="secondary" @click="router('/settings/network')">Network</v-btn>
15
-        <v-btn block color="secondary" @click="router('/settings/colours')">Colors</v-btn>
14
+        <!-- <v-btn block color="secondary" @click="router('/settings/network')">Network</v-btn> -->
15
+        <v-btn block color="secondary" @click="router('/settings/colours')">Colours</v-btn>
16 16
         <v-btn block color="secondary" @click="router('/settings/admin')">Admin</v-btn>
17 17
         <v-btn block color="secondary" @click="router('/settings/about')">About</v-btn>
18 18
       </v-container>

+ 11
- 0
src/components/settings/about.vue 查看文件

@@ -0,0 +1,11 @@
1
+<template>
2
+  <v-container>
3
+    <h1 style="text-align:center">About</h1>
4
+    <br />
5
+    <v-card class="col-md-10 offset-1">
6
+      <v-container>
7
+        <v-textarea disabled />
8
+      </v-container>
9
+    </v-card>
10
+  </v-container>
11
+</template>

+ 44
- 0
src/components/settings/admin.vue 查看文件

@@ -0,0 +1,44 @@
1
+<template>
2
+  <v-container>
3
+    <h1 style="text-align:center">Admin</h1>
4
+    <br />
5
+    <v-card class="col-md-6 offset-3">
6
+      <v-container>
7
+        <v-row>
8
+          <v-col>
9
+            <v-switch label="Testing Mode" />
10
+          </v-col>
11
+        </v-row>
12
+        <v-row>
13
+          <v-col>
14
+            <v-text-field label="Number" />
15
+          </v-col>
16
+        </v-row>
17
+        <v-row>
18
+          <v-col>
19
+            <v-combobox label="Set as POD Manager" clearable />
20
+          </v-col>
21
+        </v-row>
22
+      </v-container>
23
+    </v-card>
24
+    <v-card class="col-md-6 offset-3">
25
+      <v-container>
26
+        <v-row>
27
+          <v-col>
28
+            <v-switch label="Allow Manual Calls" />
29
+          </v-col>
30
+        </v-row>
31
+        <v-row>
32
+          <v-col>
33
+            <v-combobox label="Sales Venue" clearable />
34
+          </v-col>
35
+        </v-row>
36
+      </v-container>
37
+    </v-card>
38
+    <v-row>
39
+      <v-col cols="1" offset="8">
40
+        <v-btn color="primary" block>save</v-btn>
41
+      </v-col>
42
+    </v-row>
43
+  </v-container>
44
+</template>

+ 93
- 0
src/components/settings/colour.vue 查看文件

@@ -0,0 +1,93 @@
1
+<template>
2
+  <v-container>
3
+    <h1 style="text-align:center">Colour Settings</h1>
4
+    <v-row>
5
+      <v-col cols="2" offset="3">
6
+        <h3>Primary Colour</h3>
7
+      </v-col>
8
+      <v-col cols="1">
9
+        <v-dialog v-model="dialog" persistent max-width="300">
10
+          <template v-slot:activator="{ on }">
11
+            <v-btn block v-on="on">
12
+              <v-icon>palette</v-icon>
13
+            </v-btn>
14
+          </template>
15
+          <v-card>
16
+            <v-color-picker class="ma-2" hide-mode-switch :value="'#1976d2'"></v-color-picker>
17
+            <v-card-actions>
18
+              <v-spacer></v-spacer>
19
+              <v-btn color="primary" text @click="dialog = false">select</v-btn>
20
+            </v-card-actions>
21
+          </v-card>
22
+        </v-dialog>
23
+      </v-col>
24
+      <v-col>
25
+        <v-chip class="ma-2" label color="primary" style="width:500px;"></v-chip>
26
+      </v-col>
27
+    </v-row>
28
+    <v-row>
29
+      <v-col cols="2" offset="3">
30
+        <h3>Seconday Colour</h3>
31
+      </v-col>
32
+      <v-col cols="1">
33
+        <v-dialog v-model="dialog" persistent max-width="300">
34
+          <template v-slot:activator="{ on }">
35
+            <v-btn block v-on="on">
36
+              <v-icon>palette</v-icon>
37
+            </v-btn>
38
+          </template>
39
+          <v-card>
40
+            <v-color-picker class="ma-2" hide-mode-switch :value="'#424242'"></v-color-picker>
41
+            <v-card-actions>
42
+              <v-spacer></v-spacer>
43
+              <v-btn color="primary" text @click="dialog = false">select</v-btn>
44
+            </v-card-actions>
45
+          </v-card>
46
+        </v-dialog>
47
+      </v-col>
48
+      <v-col>
49
+        <v-chip class="ma-2" label color="secondary" style="width:500px;"></v-chip>
50
+      </v-col>
51
+    </v-row>
52
+    <v-row>
53
+      <v-col cols="2" offset="3">
54
+        <h3>Tertiary Colour</h3>
55
+      </v-col>
56
+      <v-col cols="1">
57
+        <v-dialog v-model="dialog" persistent max-width="300">
58
+          <template v-slot:activator="{ on }">
59
+            <v-btn block v-on="on">
60
+              <v-icon>palette</v-icon>
61
+            </v-btn>
62
+          </template>
63
+          <v-card>
64
+            <v-color-picker class="ma-2" hide-mode-switch :value="'#e0e0e0'"></v-color-picker>
65
+            <v-card-actions>
66
+              <v-spacer></v-spacer>
67
+              <v-btn color="primary" text @click="dialog = false">select</v-btn>
68
+            </v-card-actions>
69
+          </v-card>
70
+        </v-dialog>
71
+      </v-col>
72
+      <v-col>
73
+        <v-chip class="ma-2" label color="tertiary" style="width:500px;"></v-chip>
74
+      </v-col>
75
+    </v-row>
76
+    <v-row>
77
+      <v-col cols="1" offset="5">
78
+        <v-btn color="primary" block>save</v-btn>
79
+      </v-col>
80
+    </v-row>
81
+  </v-container>
82
+</template>
83
+
84
+<script>
85
+export default {
86
+  name: "ColourSetting",
87
+  data() {
88
+    return {
89
+      dialog: false
90
+    };
91
+  }
92
+};
93
+</script>

+ 18
- 0
src/router/index.js 查看文件

@@ -11,6 +11,9 @@ import Importer from '../components/importer/leadImporter.vue'
11 11
 import SipAccount from '../components/settings/sipAccount.vue'
12 12
 import MediaDevices from '../components/settings/mediaDevices.vue'
13 13
 import Defaults from '../components/settings/defaults.vue'
14
+import Colour from '../components/settings/colour.vue'
15
+import Admin from '../components/settings/admin.vue'
16
+import About from '../components/settings/about.vue'
14 17
 
15 18
 Vue.use(VueRouter)
16 19
 
@@ -79,6 +82,21 @@ const routes = [
79 82
 		name: 'Defaults',
80 83
 		component: Defaults,
81 84
 	},
85
+	{
86
+		path: '/settings/colours',
87
+		name: 'Colours',
88
+		component: Colour,
89
+	},
90
+	{
91
+		path: '/settings/admin',
92
+		name: 'Admin',
93
+		component: Admin,
94
+	},
95
+	{
96
+		path: '/settings/about',
97
+		name: 'About',
98
+		component: About,
99
+	},
82 100
 ]
83 101
 
84 102
 const router = new VueRouter({

正在加载...
取消
保存