quasar-factory-lib 0.0.54 → 0.0.56
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/ConfirmedTask/ConfirmedTask.vue.d.ts +42 -0
- package/dist/components/ConfirmedTask/index.d.ts +8 -0
- package/dist/components/TaskNavBar/SideBar.vue.d.ts +2 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/plugins.d.ts +2 -1
- package/dist/i18n/en/index.d.ts +30 -0
- package/dist/i18n/es/index.d.ts +30 -0
- package/dist/i18n/index.d.ts +60 -0
- package/dist/index.d.ts +1 -1
- package/dist/layouts/PdaLayout.vue.d.ts +8 -2
- package/dist/pages/ConfirmedTaskPage.vue.d.ts +47 -0
- package/dist/pages/SideBarPage.vue.d.ts +4 -0
- package/dist/pages/TablePage.vue.d.ts +1 -0
- package/dist/quasar-factory-lib.js +3551 -3376
- package/dist/quasar-factory-lib.umd.cjs +11 -11
- package/dist/store/table.d.ts +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/assets/icons/Checked.svg +9 -0
- package/src/components/ConfirmedTask/ConfirmedTask.vue +88 -0
- package/src/components/ConfirmedTask/css/style.css +38 -0
- package/src/components/ConfirmedTask/index.ts +19 -0
- package/src/components/TaskNavBar/SideBar.vue +3 -0
- package/src/components/index.ts +2 -1
- package/src/components/plugins.ts +2 -1
- package/src/css/app.css +6 -0
- package/src/i18n/en/index.ts +31 -1
- package/src/i18n/es/index.ts +31 -1
- package/src/index.ts +3 -2
- package/src/layouts/MenuLayout.vue +12 -0
- package/src/layouts/PdaLayout.vue +46 -10
- package/src/pages/ConfirmedTaskPage.vue +51 -0
- package/src/pages/SideBarPage.vue +33 -0
- package/src/router/routes.ts +8 -0
- package/src/store/table.js +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<svg id="Componente_29_9" data-name="Componente 29 – 9" xmlns="http://www.w3.org/2000/svg" width="73" height="73" viewBox="0 0 73 73">
|
|
2
|
+
<g id="Grupo_14291" data-name="Grupo 14291" transform="translate(-661.596 -408.577)">
|
|
3
|
+
<path id="Caminho_15" data-name="Caminho 15" d="M5209,452.784l12.253,14.074,27.947-32.514" transform="translate(-4531.001 -4.523)" fill="none" stroke="#597765" stroke-width="1.5"/>
|
|
4
|
+
</g>
|
|
5
|
+
<g id="Elipse_21" data-name="Elipse 21" fill="none" stroke="#597765" stroke-width="1.5">
|
|
6
|
+
<circle cx="36.5" cy="36.5" r="36.5" stroke="none"/>
|
|
7
|
+
<circle cx="36.5" cy="36.5" r="35.75" fill="none"/>
|
|
8
|
+
</g>
|
|
9
|
+
</svg>
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="">
|
|
3
|
+
<q-dialog
|
|
4
|
+
data-cy="task-confirmed-successfully"
|
|
5
|
+
v-model="alert"
|
|
6
|
+
persistent
|
|
7
|
+
:maximized="true"
|
|
8
|
+
transition-show="slide-up"
|
|
9
|
+
transition-hide="slide-down"
|
|
10
|
+
>
|
|
11
|
+
<q-card :class="values.class">
|
|
12
|
+
<q-card-section class="q-pa-none full-width flex justify-center items-center" style="height: calc(100vh - 100px);">
|
|
13
|
+
<div style="text-align: center;">
|
|
14
|
+
<div class="q-mb-md">
|
|
15
|
+
<img :src="imgSrc">
|
|
16
|
+
</div>
|
|
17
|
+
<div class="counter">
|
|
18
|
+
<span class="text-color-positive">{{ values.selected }}</span>
|
|
19
|
+
<span class="text-color-almostBlack">/{{ values.total }}</span>
|
|
20
|
+
</div>
|
|
21
|
+
<div class="msg-text">
|
|
22
|
+
<div class="q-mb-md">{{values.message}}</div>
|
|
23
|
+
<div>{{$t('taskConfirmed.repeatTask')}}</div>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
</div>
|
|
27
|
+
</q-card-section>
|
|
28
|
+
<q-card-actions class="fixed-bottom">
|
|
29
|
+
<q-btn
|
|
30
|
+
data-cy="repeat-task"
|
|
31
|
+
no-caps
|
|
32
|
+
square
|
|
33
|
+
unelevated
|
|
34
|
+
@click="repeatTask"
|
|
35
|
+
class="full-width bg-almostBlack text-color-offWhite q-mb-sm"
|
|
36
|
+
>{{ $t('taskConfirmed.repeat') }}</q-btn>
|
|
37
|
+
<q-btn
|
|
38
|
+
data-cy="end-task"
|
|
39
|
+
no-caps
|
|
40
|
+
square
|
|
41
|
+
unelevated
|
|
42
|
+
@click="endTask"
|
|
43
|
+
class="full-width text-color-almostBlack">{{$t('taskConfirmed.finish')}}</q-btn>
|
|
44
|
+
</q-card-actions>
|
|
45
|
+
</q-card>
|
|
46
|
+
</q-dialog>
|
|
47
|
+
</div>
|
|
48
|
+
</template>
|
|
49
|
+
<script>
|
|
50
|
+
import { defineComponent, ref } from 'vue'
|
|
51
|
+
export default defineComponent({
|
|
52
|
+
data () {
|
|
53
|
+
return {
|
|
54
|
+
alert: false
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
props: {
|
|
58
|
+
values: {
|
|
59
|
+
type: Object,
|
|
60
|
+
required: true,
|
|
61
|
+
default: {
|
|
62
|
+
selected: 0,
|
|
63
|
+
total: 0,
|
|
64
|
+
message: '',
|
|
65
|
+
class:''
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
imgSrc: {
|
|
69
|
+
type: String,
|
|
70
|
+
required: true
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
emits: ['repeatTask', 'endTask'],
|
|
74
|
+
methods: {
|
|
75
|
+
repeatTask () {
|
|
76
|
+
this.$emit('repeatTask')
|
|
77
|
+
},
|
|
78
|
+
endTask () {
|
|
79
|
+
this.$emit('endTask')
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
mounted () {}
|
|
83
|
+
})
|
|
84
|
+
</script>
|
|
85
|
+
|
|
86
|
+
<style scoped>
|
|
87
|
+
@import url('./css/style.css');
|
|
88
|
+
</style>
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.counter{
|
|
2
|
+
font-size: 60px;
|
|
3
|
+
text-align: center;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.msg-text{
|
|
7
|
+
font-size: 20px;
|
|
8
|
+
text-align: center;
|
|
9
|
+
margin: auto;
|
|
10
|
+
}
|
|
11
|
+
.q-btn {
|
|
12
|
+
font-size: 20px;
|
|
13
|
+
}
|
|
14
|
+
.q-btn:nth-child(2) {
|
|
15
|
+
border: 1px solid #212427;
|
|
16
|
+
}
|
|
17
|
+
img {
|
|
18
|
+
width: 70px;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
@media only screen and (max-width: 700px) {
|
|
22
|
+
.counter{
|
|
23
|
+
font-size: 40px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.msg-text{
|
|
27
|
+
font-size: 15px;
|
|
28
|
+
text-align: center;
|
|
29
|
+
margin: auto;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
img {
|
|
33
|
+
width: 50px;
|
|
34
|
+
}
|
|
35
|
+
.q-btn {
|
|
36
|
+
font-size: 15px;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { App, Plugin } from 'vue'
|
|
2
|
+
|
|
3
|
+
import ConfirmedTask from './ConfirmedTask.vue'
|
|
4
|
+
|
|
5
|
+
import { registerComponent } from '@/utils/plugins'
|
|
6
|
+
|
|
7
|
+
/** export button specific types */
|
|
8
|
+
// export type * from './types'
|
|
9
|
+
|
|
10
|
+
/** export button plugin */
|
|
11
|
+
export default {
|
|
12
|
+
install (app: App) {
|
|
13
|
+
registerComponent(app, 'ConfirmedTask', ConfirmedTask)
|
|
14
|
+
}
|
|
15
|
+
} as Plugin
|
|
16
|
+
|
|
17
|
+
/** export button components */
|
|
18
|
+
export { ConfirmedTask as ConfirmedTask }
|
|
19
|
+
|
package/src/components/index.ts
CHANGED
|
@@ -2,5 +2,6 @@ import MyTable from './Table'
|
|
|
2
2
|
import AlertDialog from './Alert'
|
|
3
3
|
import ConfirmDialog from './Confirm'
|
|
4
4
|
import TaskNavBar from './TaskNavBar'
|
|
5
|
-
|
|
5
|
+
import ConfirmedTask from './ConfirmedTask'
|
|
6
|
+
export { MyTable, AlertDialog, ConfirmDialog, TaskNavBar, ConfirmedTask }
|
|
6
7
|
|
package/src/css/app.css
CHANGED
|
@@ -37,10 +37,16 @@
|
|
|
37
37
|
.text-color-almostBlack {
|
|
38
38
|
color: var(--almost-black);
|
|
39
39
|
}
|
|
40
|
+
.bg-almostBlack {
|
|
41
|
+
background-color: var(--almost-black);
|
|
42
|
+
}
|
|
40
43
|
.q-toolbar-unset-height .q-toolbar {
|
|
41
44
|
min-height: unset;
|
|
42
45
|
padding: 0;
|
|
43
46
|
}
|
|
47
|
+
.text-color-offWhite {
|
|
48
|
+
color: var(--light-beige)
|
|
49
|
+
}
|
|
44
50
|
|
|
45
51
|
.text-color-positive {
|
|
46
52
|
color: var(--positive);
|
package/src/i18n/en/index.ts
CHANGED
|
@@ -24,6 +24,36 @@ const en = {
|
|
|
24
24
|
},
|
|
25
25
|
global: {
|
|
26
26
|
total: 'Total'
|
|
27
|
-
}
|
|
27
|
+
},
|
|
28
|
+
taskConfirmed: {
|
|
29
|
+
repeatTask: 'Do you want to continue the task?',
|
|
30
|
+
repeat: 'Yes, continue!',
|
|
31
|
+
finish: 'Finish'
|
|
32
|
+
},
|
|
33
|
+
menu: {
|
|
34
|
+
logout: 'Logout',
|
|
35
|
+
home: 'Home',
|
|
36
|
+
areas: 'Areas',
|
|
37
|
+
filters: 'Filters',
|
|
38
|
+
seeOnlyChecked: 'See only checked',
|
|
39
|
+
seeManufacturing: 'See manufacturing',
|
|
40
|
+
seeSubcontractor: 'See subcontractor',
|
|
41
|
+
confirmRelocation: 'Confirm Relocation',
|
|
42
|
+
deleteAll: 'Delete All',
|
|
43
|
+
activateLoading: 'Activate Loading',
|
|
44
|
+
showExpeditionLines: 'Show Expedition Lines',
|
|
45
|
+
showOrderLines: 'Show Order Lines',
|
|
46
|
+
endTransaction: 'End Transaction',
|
|
47
|
+
translate: 'Translate',
|
|
48
|
+
labelSelectLanguage: 'Language',
|
|
49
|
+
selectLanguageLabelOptions: ['Spanish', 'English'],
|
|
50
|
+
deleteSelectedLine: 'Delete Erroneous Label(s)',
|
|
51
|
+
seeMap: 'See Map',
|
|
52
|
+
recordReceiptPurchase: 'Record Receipt',
|
|
53
|
+
addContainerNumber: 'Add Container Number',
|
|
54
|
+
showColumnsSelector: 'Show columns selector',
|
|
55
|
+
hideColumnsSelector: 'Hide columns selector',
|
|
56
|
+
sorting: 'Sorting'
|
|
57
|
+
},
|
|
28
58
|
}
|
|
29
59
|
export default en
|
package/src/i18n/es/index.ts
CHANGED
|
@@ -24,6 +24,36 @@ const es = {
|
|
|
24
24
|
},
|
|
25
25
|
global: {
|
|
26
26
|
total: 'Total'
|
|
27
|
-
}
|
|
27
|
+
},
|
|
28
|
+
taskConfirmed: {
|
|
29
|
+
repeatTask: '¿Quieres continuar la tarea?',
|
|
30
|
+
repeat: 'Sí, continuar!',
|
|
31
|
+
finish: 'Finalizar'
|
|
32
|
+
},
|
|
33
|
+
menu: {
|
|
34
|
+
logout: 'Desconectar',
|
|
35
|
+
home: 'Inicio',
|
|
36
|
+
areas: 'Areas',
|
|
37
|
+
filters: 'Filtros',
|
|
38
|
+
seeOnlyChecked: 'Ver solo comprobadas',
|
|
39
|
+
seeManufacturing: 'Ver fabricación',
|
|
40
|
+
seeSubcontractor: 'Ver subcontrata',
|
|
41
|
+
confirmRelocation: 'Confirmar Reubicación',
|
|
42
|
+
deleteAll: 'Anular todos',
|
|
43
|
+
activateLoading: 'Activar Carga',
|
|
44
|
+
showExpeditionLines: 'Mostrar Líneas Expedición',
|
|
45
|
+
showOrderLines: 'Mostrar Líneas Pedidos',
|
|
46
|
+
endTransaction: 'Finalizar Operación',
|
|
47
|
+
translate: 'Traducir',
|
|
48
|
+
labelSelectLanguage: 'Idioma',
|
|
49
|
+
selectLanguageLabelOptions: ['Castellano', 'Inglés'],
|
|
50
|
+
deleteSelectedLine: 'Eliminar Etiquetas(s) Errónea(s)',
|
|
51
|
+
seeMap: 'Ver Plano',
|
|
52
|
+
recordReceiptPurchase: 'Registrar Recepción',
|
|
53
|
+
addContainerNumber: 'Añadir Nº Contenedor',
|
|
54
|
+
showColumnsSelector: 'Mostrar selector de columnas',
|
|
55
|
+
hideColumnsSelector: 'Hide selector de columnas',
|
|
56
|
+
sorting: 'Ordenar'
|
|
57
|
+
},
|
|
28
58
|
}
|
|
29
59
|
export default es
|
package/src/index.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import '@quasar/extras/material-icons/material-icons.css'
|
|
2
2
|
import { Quasar } from 'quasar'
|
|
3
3
|
import { App, Plugin } from 'vue'
|
|
4
|
-
import { MyTable, AlertDialog, ConfirmDialog, TaskNavBar } from './components/plugins.ts'
|
|
4
|
+
import { MyTable, AlertDialog, ConfirmDialog, TaskNavBar, ConfirmedTask } from './components/plugins.ts'
|
|
5
5
|
import { registerPlugin, setVueInstance } from './utils/plugins.ts'
|
|
6
6
|
import TranslateKeys from './i18n/translateKeys.ts'
|
|
7
7
|
import { createPinia } from 'pinia'
|
|
8
|
-
export { MyTable, AlertDialog, ConfirmDialog, TaskNavBar } from './components/index.ts'
|
|
8
|
+
export { MyTable, AlertDialog, ConfirmDialog, TaskNavBar, ConfirmedTask } from './components/index.ts'
|
|
9
9
|
|
|
10
10
|
export type { TranslateKeys }
|
|
11
11
|
// import plugins from "./components/plugins";
|
|
@@ -25,6 +25,7 @@ const plugin: Plugin = {
|
|
|
25
25
|
registerPlugin(app, AlertDialog)
|
|
26
26
|
registerPlugin(app, ConfirmDialog)
|
|
27
27
|
registerPlugin(app, TaskNavBar)
|
|
28
|
+
registerPlugin(app, ConfirmedTask)
|
|
28
29
|
app.use(i18n)
|
|
29
30
|
app.use(pinia)
|
|
30
31
|
i18n.global.locale = 'en'
|
|
@@ -18,6 +18,12 @@
|
|
|
18
18
|
router.push('confirmPage')
|
|
19
19
|
}"
|
|
20
20
|
/>
|
|
21
|
+
<q-btn
|
|
22
|
+
label="confirmedTask"
|
|
23
|
+
@click="() => {
|
|
24
|
+
router.push('confirmedTask')
|
|
25
|
+
}"
|
|
26
|
+
/>
|
|
21
27
|
<q-btn
|
|
22
28
|
label="navbar"
|
|
23
29
|
@click="() => {
|
|
@@ -30,6 +36,12 @@
|
|
|
30
36
|
router.push('pdaLayout')
|
|
31
37
|
}"
|
|
32
38
|
/>
|
|
39
|
+
<q-btn
|
|
40
|
+
label="sideBarPage"
|
|
41
|
+
@click="() => {
|
|
42
|
+
router.push('sideBarPage')
|
|
43
|
+
}"
|
|
44
|
+
/>
|
|
33
45
|
</div>
|
|
34
46
|
</template>
|
|
35
47
|
<script setup lang="ts">
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
:title="'Pda'"
|
|
13
13
|
:show-btn-back="false"
|
|
14
14
|
:show-btn-search="true"
|
|
15
|
+
@onClickBtnMenu="onClickBtnMenu"
|
|
15
16
|
@on-click-btn-search="toggleSearchVisibility"
|
|
16
17
|
@on-click-btn-menu="toogleColumnsSelectorVisibility">
|
|
17
18
|
</TaskNavBar>
|
|
@@ -36,10 +37,19 @@
|
|
|
36
37
|
@on-update-customized-checkbox-value="onUpdateCustomizedCheckboxValue"
|
|
37
38
|
@on-click-button="setItemNotFound"
|
|
38
39
|
/>
|
|
39
|
-
<q-page-sticky
|
|
40
|
-
|
|
40
|
+
<q-page-sticky
|
|
41
|
+
v-if="smallDevice"
|
|
42
|
+
position="bottom"
|
|
43
|
+
expand
|
|
44
|
+
>
|
|
45
|
+
<q-btn class="full-width" color="accent" icon="arrow_forward" />
|
|
41
46
|
</q-page-sticky>
|
|
42
47
|
</q-page>
|
|
48
|
+
<SideBar
|
|
49
|
+
ref="sideBar"
|
|
50
|
+
@toggle-right-drawer="toggleRightDrawer"
|
|
51
|
+
@onclick-show-select-visible-columns="toogleColumnsSelectorVisibility"
|
|
52
|
+
:buttonsList="buttonsList" />
|
|
43
53
|
</q-page-container>
|
|
44
54
|
</q-layout>
|
|
45
55
|
</div>
|
|
@@ -47,20 +57,22 @@
|
|
|
47
57
|
<style>
|
|
48
58
|
</style>
|
|
49
59
|
<script lang="ts">
|
|
50
|
-
|
|
51
|
-
|
|
60
|
+
import TaskNavBar from '../components/TaskNavBar/TaskNavBar.vue'
|
|
61
|
+
import Table from '../components/Table/Table.vue'
|
|
62
|
+
import SideBar from '../components/TaskNavBar/SideBar.vue'
|
|
52
63
|
import setTableHeight from '../components/Table/utils/setTableHeight'
|
|
53
64
|
import infiniteScroll from '../components/Table/utils/infiniteScroll'
|
|
54
65
|
import { tableStore } from '../store/table.js'
|
|
55
66
|
export default {
|
|
56
67
|
components: {
|
|
57
68
|
TaskNavBar,
|
|
69
|
+
SideBar,
|
|
58
70
|
Table
|
|
59
71
|
},
|
|
60
72
|
data () {
|
|
61
73
|
return {
|
|
62
|
-
smallDevice: true,
|
|
63
74
|
showDialog: false,
|
|
75
|
+
tabletMaxWidth: 1100,
|
|
64
76
|
store: tableStore(),
|
|
65
77
|
tableStyle: '',
|
|
66
78
|
columns: [{
|
|
@@ -315,22 +327,42 @@ export default {
|
|
|
315
327
|
iron: '6%'
|
|
316
328
|
}
|
|
317
329
|
],
|
|
318
|
-
showSkeleton: false
|
|
330
|
+
showSkeleton: false,
|
|
331
|
+
buttonsList: []
|
|
332
|
+
}
|
|
333
|
+
},
|
|
334
|
+
computed: {
|
|
335
|
+
smallDevice (): boolean {
|
|
336
|
+
return this.$q.screen.width <= this.tabletMaxWidth
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
watch: {
|
|
340
|
+
'$q.screen.width' (): void {
|
|
341
|
+
setTimeout(() => {
|
|
342
|
+
this.tableStyle = setTableHeight.setTableHeight()
|
|
343
|
+
infiniteScroll.handleInfiniteScrollNewTable(this)
|
|
344
|
+
}, 500)
|
|
345
|
+
},
|
|
346
|
+
showSkeleton (val: boolean) {
|
|
347
|
+
if (!val) {
|
|
348
|
+
setTimeout(() => {
|
|
349
|
+
this.tableStyle = setTableHeight.setTableHeight()
|
|
350
|
+
infiniteScroll.handleInfiniteScrollNewTable(this)
|
|
351
|
+
}, 500)
|
|
352
|
+
}
|
|
319
353
|
}
|
|
320
354
|
},
|
|
321
355
|
mounted () {
|
|
322
356
|
this.showSkeleton = true
|
|
323
357
|
this.store.cleanTableFilter()
|
|
324
|
-
this.tableStyle = setTableHeight.setTableHeight()
|
|
325
|
-
infiniteScroll.handleInfiniteScrollNewTable(this)
|
|
326
358
|
this.getRows()
|
|
327
359
|
},
|
|
328
360
|
methods: {
|
|
329
361
|
getRows () {
|
|
330
362
|
setTimeout(()=> {
|
|
331
363
|
this.showSkeleton = false
|
|
364
|
+
this.rows = this.rowsData
|
|
332
365
|
}, 1000)
|
|
333
|
-
this.rows = this.rowsData
|
|
334
366
|
},
|
|
335
367
|
onUpdateBasicCheckboxValue (rows: object []) {
|
|
336
368
|
console.log(rows, 'onUpdateBasicCheckboxValue')
|
|
@@ -346,10 +378,14 @@ export default {
|
|
|
346
378
|
this.$refs.table.filterInputFocus()
|
|
347
379
|
},
|
|
348
380
|
toggleRightDrawer (): void {
|
|
381
|
+
this.$refs.sideBar.toggleRightDrawer()
|
|
349
382
|
},
|
|
350
383
|
toogleColumnsSelectorVisibility () {
|
|
351
|
-
|
|
384
|
+
this.$refs.sideBar.setRightDrawerOpenToFalse()
|
|
352
385
|
this.$refs.table.toogleColumnsSelectorVisibility()
|
|
386
|
+
},
|
|
387
|
+
onClickBtnMenu () {
|
|
388
|
+
this.toggleRightDrawer()
|
|
353
389
|
}
|
|
354
390
|
}
|
|
355
391
|
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<q-page-container class=" full-width column justify-center">
|
|
3
|
+
<q-page
|
|
4
|
+
class="full-width column justify-center align-center items-center"
|
|
5
|
+
style="height: 70vh;"
|
|
6
|
+
>
|
|
7
|
+
<div
|
|
8
|
+
class="full-width"
|
|
9
|
+
>
|
|
10
|
+
<ConfirmedTask
|
|
11
|
+
ref="ConfirmedTask"
|
|
12
|
+
:values="{
|
|
13
|
+
selected: 5,
|
|
14
|
+
total: 10,
|
|
15
|
+
message: 'Message',
|
|
16
|
+
class:'bg-light-peach'
|
|
17
|
+
}"
|
|
18
|
+
:imgSrc="'src/assets/icons/Checked.svg'"
|
|
19
|
+
@repeat-task="repeatTask"
|
|
20
|
+
@end-task="endTask"
|
|
21
|
+
/>
|
|
22
|
+
</div>
|
|
23
|
+
</q-page>
|
|
24
|
+
</q-page-container>
|
|
25
|
+
</template>
|
|
26
|
+
<script lang="ts">
|
|
27
|
+
import ConfirmedTask from '../components/ConfirmedTask/ConfirmedTask.vue'
|
|
28
|
+
export default {
|
|
29
|
+
components: {
|
|
30
|
+
ConfirmedTask
|
|
31
|
+
},
|
|
32
|
+
data () {
|
|
33
|
+
return {
|
|
34
|
+
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
computed: {
|
|
38
|
+
},
|
|
39
|
+
mounted () {
|
|
40
|
+
this.$refs.ConfirmedTask.alert = true
|
|
41
|
+
},
|
|
42
|
+
methods: {
|
|
43
|
+
repeatTask () {
|
|
44
|
+
console.log('repeatTask')
|
|
45
|
+
},
|
|
46
|
+
endTask () {
|
|
47
|
+
console.log('endTask')
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
</script>
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<q-page-container class=" full-width column justify-center">
|
|
3
|
+
<q-page
|
|
4
|
+
class="full-width column justify-center align-center items-center"
|
|
5
|
+
style="height: 70vh;"
|
|
6
|
+
>
|
|
7
|
+
<div
|
|
8
|
+
class="full-width"
|
|
9
|
+
>
|
|
10
|
+
<SideBar/>
|
|
11
|
+
</div>
|
|
12
|
+
</q-page>
|
|
13
|
+
</q-page-container>
|
|
14
|
+
</template>
|
|
15
|
+
<script lang="ts">
|
|
16
|
+
import SideBar from '../components/TaskNavBar/SideBar.vue'
|
|
17
|
+
export default {
|
|
18
|
+
components: {
|
|
19
|
+
SideBar
|
|
20
|
+
},
|
|
21
|
+
data () {
|
|
22
|
+
return {
|
|
23
|
+
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
computed: {
|
|
27
|
+
},
|
|
28
|
+
mounted () {
|
|
29
|
+
},
|
|
30
|
+
methods: {
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
</script>
|
package/src/router/routes.ts
CHANGED
|
@@ -20,6 +20,14 @@ const routes: RouteRecordRaw[] = [
|
|
|
20
20
|
{
|
|
21
21
|
path: '/navBarPage',
|
|
22
22
|
component: () => import('../pages/NavBarPage.vue')
|
|
23
|
+
},,
|
|
24
|
+
{
|
|
25
|
+
path: '/confirmedTask',
|
|
26
|
+
component: () => import('../pages/ConfirmedTaskPage.vue')
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
path: '/sideBarPage',
|
|
30
|
+
component: () => import('../pages/SideBarPage.vue')
|
|
23
31
|
},
|
|
24
32
|
{
|
|
25
33
|
path: '/pdaLayout',
|
package/src/store/table.js
CHANGED