-
+
fas fa-pen
Edit
@@ -111,7 +132,7 @@
-
fas fa-trash
@@ -120,16 +141,6 @@
Remove
-
-
-
- fas fa-barcode
- Generate Barcode
-
-
- Generate Barcode
-
@@ -192,7 +203,7 @@ export default {
this.load();
},
methods: {
- ...mapMutations("modal", ["changeCurrentModal",'closeModal']),
+ ...mapMutations("modal", ["changeCurrentModal", 'closeModal']),
async load(page = 1) {
let filter = '?';
for (const key in this.filter) {
@@ -256,8 +267,8 @@ export default {
getStatus(item) {
if (item.status === 'pending') {
return [
- {status: 'rejected', label: 'reject', color: 'red', icon: 'fa-close'},
- {status: 'approved', label: 'approve', color: 'green', icon: 'fa-check'}
+ {status: 'approved', label: 'approve', color: 'cyan', font_color : 'white', icon: 'fa-check'},
+ {status: 'rejected', label: 'reject', color: 'light-gray',font_color : 'black', icon: 'fa-close'},
]
} else {
const nextStatus = item.status === 'rejected' ? 'approved' : 'rejected'
@@ -265,13 +276,19 @@ export default {
{
status: nextStatus,
label: nextStatus === 'approved' ? 'approve' : 'reject',
- color: nextStatus === 'approved' ? 'green' : 'red',
+ color: nextStatus === 'approved' ? 'cyan' : 'light-gray',
+ font_color: nextStatus === 'approved' ? 'white' : 'black',
icon: nextStatus === 'approved' ? 'fa-check' : 'fa-close'
}
]
}
},
-
+ async transfer(data) {
+ this.changeCurrentModal({
+ modal: "modal-user-list",
+ properties: {data},
+ });
+ },
async changeStatus(item, status) {
const result = await ApiService.post(urls.changePackageStatus(item.id), {status})
diff --git a/src/views/TestResult/List.vue b/src/views/TestResult/List.vue
index cd723c4..8f264de 100644
--- a/src/views/TestResult/List.vue
+++ b/src/views/TestResult/List.vue
@@ -2,39 +2,39 @@
-
+
-
-
+
-
+
-
-
+
-
-
+
-
-
+
-
-
@@ -42,27 +42,29 @@
-
-
-
-
-
- fas fa-search
- Filter
-
-
-
+
+
+
+
+ fas fa-search
+
+
+ Filter
+
+
-
- fas fa-plus
- Add
+
+ fas fa-plus
+ Add
diff --git a/src/views/TestType/List.vue b/src/views/TestType/List.vue
index 9ea4644..815288f 100644
--- a/src/views/TestType/List.vue
+++ b/src/views/TestType/List.vue
@@ -1,22 +1,22 @@
-
-
-
+
+
+
-
+
-
+
-
+
-
+
-
+
-
+
-
-
+
-
-
-
-
- fas fa-search
- Filter
-
-
-
-
-
- fas fa-plus
- Add
+
+
+
+
+
+ fas fa-search
+
+
+ Filter
+
+
+
+
+ fas fa-plus
+ Add
@@ -88,13 +91,36 @@
| {{ item.user.name }} |
{{ $d(new Date(item.created_at), 'long') }} |
+
+
+
+ fas fa-barcode
+ Generate Barcode
+
+
+ Generate Barcode
+
+
+
+
+
+ fas fa-folder
+ Archive
+
+
+ Archive
+
+
-
+
fas fa-pen
Edit
@@ -102,27 +128,8 @@
Edit
-
-
-
- fas fa-folder
- Archive
-
-
- Archive
-
-
-
-
- fas fa-barcode
- Generate Barcode
-
-
- Generate Barcode
-
+
+
|
diff --git a/src/views/User/List.vue b/src/views/User/List.vue
index f88e087..d867d8f 100644
--- a/src/views/User/List.vue
+++ b/src/views/User/List.vue
@@ -1,32 +1,30 @@
-
+
-
-
+
-
-
+
-
-
+
-
-
-
@@ -34,9 +32,9 @@
:date-format="date => new Date(date).toDateString()"/>
-
+
-
@@ -45,11 +43,15 @@
-
-
- fas fa-search
- Filter
-
+
+
+
+
+ fas fa-search
+
+
+ Filter
+
@@ -76,7 +78,7 @@
@@ -84,7 +86,7 @@
Suspended
- fa fa-pause
+ fa fa-pause
Active
@@ -94,10 +96,10 @@
-
- fas fa-user-tag
+ fas fa-user-tag
Role
@@ -105,7 +107,7 @@
-
fas fa-trash
Remove