瀏覽代碼

More pages

master
George Williams 5 年之前
父節點
當前提交
c31282e3cc

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

@@ -1,28 +1,66 @@
1 1
 <template>
2
-	<div>
3
-		<v-btn block color="primary" @click="router('/telemaketer')"
4
-			>Telemarketer</v-btn
5
-		>
6
-		<v-btn block color="primary" @click="router('/booking')">Booking</v-btn>
7
-		<v-btn block color="primary" @click="router('/calls')">Calls</v-btn>
8
-		<v-btn block color="primary" @click="router('/importer')"
9
-			>Importer</v-btn
10
-		>
11
-		<v-btn block color="primary" @click="router('/reporting')"
12
-			>Reporting</v-btn
13
-		>
14
-		<v-btn block color="primary" @click="router('/settings')"
15
-			>Settings</v-btn
16
-		>
17
-	</div>
2
+  <div>
3
+    <v-btn block color="primary" @click="router('/telemaketer')">Telemarketer</v-btn>
4
+    <v-btn block color="primary" @click="router('/booking')">Booking</v-btn>
5
+    <v-btn block color="primary" @click="router('/calls')">Calls</v-btn>
6
+    <v-btn block color="primary" @click="router('/importer')">Importer</v-btn>
7
+    <v-btn block color="primary" @click="router('/reporting')">Reporting</v-btn>
8
+    <v-btn block color="primary" @click="ShowSettings">Settings</v-btn>
9
+    <transition name="fade">
10
+      <v-container v-if="showSettings">
11
+        <v-btn block color="secondary" @click="router('/settings/sipaccount')">SIP Account</v-btn>
12
+        <v-btn block color="secondary" @click="router('/settings/mediadevices')">Media Devices</v-btn>
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>
16
+        <v-btn block color="secondary" @click="router('/settings/admin')">Admin</v-btn>
17
+        <v-btn block color="secondary" @click="router('/settings/about')">About</v-btn>
18
+      </v-container>
19
+    </transition>
20
+  </div>
18 21
 </template>
19 22
 
20 23
 <script>
21 24
 export default {
22
-	methods: {
23
-		router(goTo) {
24
-			this.$emit('routerGoTo', goTo)
25
-		},
26
-	},
27
-}
25
+  data() {
26
+    return {
27
+      showSettings: false
28
+    };
29
+  },
30
+  methods: {
31
+    router(goTo) {
32
+      this.$emit("routerGoTo", goTo);
33
+      if (goTo.includes("/settings")) {
34
+        this.showSettings = true;
35
+      } else {
36
+        this.showSettings = false;
37
+      }
38
+    },
39
+    ShowSettings() {
40
+      this.showSettings = this.showSettings !== true;
41
+    }
42
+  }
43
+};
28 44
 </script>
45
+
46
+<style>
47
+.slide-fade-enter-active {
48
+  transition: all 0.3s ease;
49
+}
50
+.slide-fade-leave-active {
51
+  transition: all 0.8s cubic-bezier(1, 0.5, 0.8, 1);
52
+}
53
+.slide-fade-enter, .slide-fade-leave-to
54
+/* .slide-fade-leave-active below version 2.1.8 */ {
55
+  transform: translateX(10px);
56
+  opacity: 0;
57
+}
58
+
59
+.fade-enter-active,
60
+.fade-leave-active {
61
+  transition: opacity 0.5s;
62
+}
63
+.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
64
+  opacity: 0;
65
+}
66
+</style>

+ 60
- 0
src/components/settings/defaults.vue 查看文件

@@ -0,0 +1,60 @@
1
+<template>
2
+  <v-container>
3
+    <h1 style="text-align:center">Defaults</h1>
4
+    <v-row>
5
+      <v-col>
6
+        <v-container>
7
+          <v-row>
8
+            <v-col cols="4">
9
+              <h3>Feedback</h3>
10
+            </v-col>
11
+            <v-col cols="4">
12
+              <h3>Import Source</h3>
13
+            </v-col>
14
+            <v-col cols="4">
15
+              <h3>Call Reschedule</h3>
16
+            </v-col>
17
+          </v-row>
18
+          <v-row>
19
+            <v-col cols="4">
20
+              <v-combobox label="Feedback Type" />
21
+            </v-col>
22
+            <v-col cols="4">
23
+              <v-combobox label="Import Source" />
24
+            </v-col>
25
+            <v-col cols="4">
26
+              <v-text-field disabled label="Next Trigger" />
27
+            </v-col>
28
+          </v-row>
29
+          <v-row>
30
+            <v-col cols="4">
31
+              <v-text-field label="Feedback Message" />
32
+            </v-col>
33
+            <v-col cols="4">
34
+              <v-switch label="Random Leads" />
35
+            </v-col>
36
+            <v-col cols="4">
37
+              <v-text-field label="Time Popup Open" />
38
+            </v-col>
39
+          </v-row>
40
+          <v-row>
41
+            <v-col cols="4" offset="8">
42
+              <v-combobox label="Popup Location" />
43
+            </v-col>
44
+          </v-row>
45
+        </v-container>
46
+      </v-col>
47
+    </v-row>
48
+    <v-row>
49
+      <v-col cols="4" offset="4">
50
+        <v-btn color="primary" block>Save</v-btn>
51
+      </v-col>
52
+    </v-row>
53
+  </v-container>
54
+</template>
55
+
56
+<script>
57
+export default {
58
+  name: "Defaults"
59
+};
60
+</script>

+ 55
- 0
src/components/settings/mediaDevices.vue 查看文件

@@ -0,0 +1,55 @@
1
+<template>
2
+  <v-container>
3
+    <h1 style="text-align:center">Media Device Settings</h1>
4
+    <v-row>
5
+      <v-col offset="5">
6
+        <v-container>
7
+          <v-row>
8
+            <h3>Microphone Settings</h3>
9
+          </v-row>
10
+          <v-row>
11
+            <v-col cols="3">
12
+              <v-combobox label="Device" />
13
+            </v-col>
14
+          </v-row>
15
+          <v-row>
16
+            <v-col cols="2">
17
+              <v-slider />
18
+            </v-col>
19
+            <v-col cols="1">
20
+              <v-switch label="Mute" />
21
+            </v-col>
22
+          </v-row>
23
+        </v-container>
24
+      </v-col>
25
+    </v-row>
26
+    <v-row>
27
+      <v-col offset="5">
28
+        <v-container>
29
+          <v-row>
30
+            <h3>Speaker Settings</h3>
31
+          </v-row>
32
+          <v-row>
33
+            <v-col cols="3">
34
+              <v-combobox label="Device" />
35
+            </v-col>
36
+          </v-row>
37
+          <v-row>
38
+            <v-col cols="2">
39
+              <v-slider />
40
+            </v-col>
41
+            <v-col cols="1">
42
+              <v-switch label="Mute" />
43
+            </v-col>
44
+          </v-row>
45
+        </v-container>
46
+      </v-col>
47
+    </v-row>
48
+  </v-container>
49
+</template>
50
+
51
+<script>
52
+export default {
53
+  name: "MediaDevices"
54
+};
55
+</script>

+ 73
- 0
src/components/settings/sipAccount.vue 查看文件

@@ -0,0 +1,73 @@
1
+<template>
2
+  <v-container>
3
+    <h1 style="text-align:center">SIP Account</h1>
4
+    <v-row>
5
+      <v-col cols="2" offset="4">
6
+        <v-combobox label="Line" />
7
+      </v-col>
8
+      <v-col cols="1">
9
+        <v-dialog v-model="dialog" persistent max-width="600">
10
+          <template v-slot:activator="{ on }">
11
+            <v-btn color="primary" block v-on="on">Add</v-btn>
12
+          </template>
13
+          <v-card>
14
+            <sip />
15
+            <v-card-actions>
16
+              <v-spacer></v-spacer>
17
+              <v-btn color="primary" text @click="dialog = false">Close</v-btn>
18
+            </v-card-actions>
19
+          </v-card>
20
+        </v-dialog>
21
+      </v-col>
22
+      <v-col cols="1">
23
+        <v-dialog v-model="dialog" persistent max-width="600">
24
+          <template v-slot:activator="{ on }">
25
+            <v-btn color="primary" block v-on="on">Modify</v-btn>
26
+          </template>
27
+          <v-card>
28
+            <sip />
29
+            <v-card-actions>
30
+              <v-spacer></v-spacer>
31
+              <v-btn color="primary" text @click="dialog = false">Close</v-btn>
32
+            </v-card-actions>
33
+          </v-card>
34
+        </v-dialog>
35
+      </v-col>
36
+    </v-row>
37
+    <v-row>
38
+      <v-col cols="2" offset="4">
39
+        <v-text-field disabled label="Status" />
40
+      </v-col>
41
+      <v-col cols="1">
42
+        <v-btn color="primary" block>Remove</v-btn>
43
+      </v-col>
44
+      <v-col cols="1">
45
+        <v-btn color="primary" block>Default</v-btn>
46
+      </v-col>
47
+    </v-row>
48
+    <v-row>
49
+      <v-col cols="2" offset="4">
50
+        <v-btn color="primary" block>Register</v-btn>
51
+      </v-col>
52
+      <v-col cols="2">
53
+        <v-btn color="primary" block>Unregister</v-btn>
54
+      </v-col>
55
+    </v-row>
56
+  </v-container>
57
+</template>
58
+
59
+<script>
60
+import sip from "./sipAccountDetails";
61
+
62
+export default {
63
+  name: "SipAccount",
64
+  data() {
65
+    return {
66
+      dialog: false
67
+    };
68
+  },
69
+  components: {
70
+    sip
71
+  }
72
+};
73
+</script>

+ 30
- 0
src/components/settings/sipAccountDetails.vue 查看文件

@@ -0,0 +1,30 @@
1
+<template>
2
+  <v-container>
3
+    <h2>SIP ACCOUNT SETTINGS</h2>
4
+    <v-container>
5
+      <v-text-field label="Display Name" />
6
+      <v-text-field label="Username" />
7
+      <v-text-field label="Register Name" />
8
+      <v-text-field label="Password" type="password" />
9
+      <v-text-field label="Domain" />
10
+      <v-text-field label="Outbound Proxy" />
11
+      <v-switch label="Registration Required" />
12
+    </v-container>
13
+    <!-- <br />
14
+    <h2>SIP ACCOUNT SETTINGS</h2>
15
+    <v-container>
16
+      <v-combobox label="Display Name" />
17
+      <v-combobox label="Username" />
18
+      <v-switch label="Registration Required" />
19
+      <v-combobox label="Username" />
20
+      <v-text-field label="Username" />
21
+    </v-container>-->
22
+    <v-btn color="primary">save</v-btn>
23
+  </v-container>
24
+</template>
25
+
26
+<script>
27
+export default {
28
+  name: "SIPDetails"
29
+};
30
+</script>

+ 0
- 3
src/components/telemarketer/lead.vue 查看文件

@@ -86,9 +86,6 @@
86 86
                 </template>
87 87
                 <v-card>
88 88
                   <booking />
89
-                  <!-- <v-card-title class="headline">Use Google's location service?</v-card-title>
90
-                  <v-card-text>Let Google help apps determine location. This means sending anonymous location data to Google, even when no apps are running.</v-card-text>
91
-                  -->
92 89
                   <v-card-actions>
93 90
                     <v-spacer></v-spacer>
94 91
                     <v-btn color="primary" text @click="dialog = false">Close</v-btn>

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

@@ -8,6 +8,9 @@ import leadFind from '../components/telemarketer/leadFindByTel.vue'
8 8
 import Booking from '../components/booking/booking.vue'
9 9
 import Calls from '../components/calls/calls.vue'
10 10
 import Importer from '../components/importer/leadImporter.vue'
11
+import SipAccount from '../components/settings/sipAccount.vue'
12
+import MediaDevices from '../components/settings/mediaDevices.vue'
13
+import Defaults from '../components/settings/defaults.vue'
11 14
 
12 15
 Vue.use(VueRouter)
13 16
 
@@ -61,6 +64,21 @@ const routes = [
61 64
 		name: 'Importer',
62 65
 		component: Importer,
63 66
 	},
67
+	{
68
+		path: '/settings/sipaccount',
69
+		name: 'SipAccount',
70
+		component: SipAccount,
71
+	},
72
+	{
73
+		path: '/settings/mediadevices',
74
+		name: 'MediaDevices',
75
+		component: MediaDevices,
76
+	},
77
+	{
78
+		path: '/settings/defaults',
79
+		name: 'Defaults',
80
+		component: Defaults,
81
+	},
64 82
 ]
65 83
 
66 84
 const router = new VueRouter({

Loading…
取消
儲存