mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-12 23:31:06 +03:30
Edit 3
This commit is contained in:
Vendored
+7
-7
@@ -86,16 +86,16 @@ export default [
|
||||
onlyWhenLoggedOut: true
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
path: '/all-resualttest',
|
||||
path: '/resualt-test',
|
||||
name: 'AllResultTest',
|
||||
view: 'AllResultTest'
|
||||
view: 'TestResult/List'
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
path: '/submit-test-result',
|
||||
name: 'SubmitTestResult',
|
||||
|
||||
@@ -16,7 +16,8 @@ function errorResponseHandler(error) {
|
||||
if(typeof error.response.data.errors !== 'undefined') {
|
||||
for (const key in error.response.data.errors) {
|
||||
if (error.response.data.errors.hasOwnProperty(key)) {
|
||||
toast.error(error.response.data.errors[key]);
|
||||
let title = (error.response.data.title) ? error.response.data.title : undefined;
|
||||
toast.error(error.response.data.errors[key], title);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
</v-flex>
|
||||
<v-spacer></v-spacer>
|
||||
<v-flex xs12 md2 sm2 class="text-xs-right">
|
||||
<router-link to="/add-medical-center">
|
||||
<router-link :to="{name: 'AddMedicalCenter'}">
|
||||
<v-btn class="WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black">
|
||||
<v-icon class="black--text mr-2 caption">fas fa-plus</v-icon>
|
||||
<span class="black--text">Add</span>
|
||||
|
||||
@@ -72,10 +72,6 @@
|
||||
<v-icon class="white--text mr-1 caption">fas fa-pen</v-icon>
|
||||
<span>Edit</span>
|
||||
</v-btn>
|
||||
<v-btn color="orange darken-1">
|
||||
<v-icon class="white--text mr-1 caption">fas fa-barcode</v-icon>
|
||||
<span>Generate Barcode</span>
|
||||
</v-btn>
|
||||
</v-card-text>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
@@ -35,7 +35,7 @@
|
||||
</template>
|
||||
<template slot="items" slot-scope="{ item }">
|
||||
<td class="headline font-weight-light">{{ item.name }}</td>
|
||||
<td class="title font-weight-light">{{ item.unique_code }} </td>
|
||||
<td class="title font-weight-light">{{ item.unique_code }}</td>
|
||||
<td class="title font-weight-light">{{ item.user.name }}</td>
|
||||
<td class="title font-weight-light">{{ item.created_at }}</td>
|
||||
<td class="text-xs-right">
|
||||
@@ -45,6 +45,10 @@
|
||||
<span>Edit</span>
|
||||
</v-btn>
|
||||
</router-link>
|
||||
<v-btn color="orange darken-1">
|
||||
<v-icon class="white--text mr-1 caption">fas fa-barcode</v-icon>
|
||||
<span>Generate Barcode</span>
|
||||
</v-btn>
|
||||
<v-btn color="pink" @click="remove(item.id)" class="WM-ActionButton">
|
||||
<v-icon class="white--text mr-2 caption">fas fa-times</v-icon>
|
||||
<span>Remove</span>
|
||||
@@ -81,27 +85,27 @@ export default {
|
||||
text: "TestType Name",
|
||||
value: "name"
|
||||
},
|
||||
{
|
||||
{
|
||||
sortable: false,
|
||||
text: "TestType UniqueId",
|
||||
value: "uniqueId"
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
sortable: false,
|
||||
text: "Register TestType",
|
||||
value: "users"
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
sortable: false,
|
||||
text: "Date",
|
||||
value: "date"
|
||||
},
|
||||
{
|
||||
},
|
||||
{
|
||||
sortable: false,
|
||||
text: "Action",
|
||||
value: "action",
|
||||
align: "right"
|
||||
}
|
||||
}
|
||||
],
|
||||
items: [],
|
||||
currentPage: 1,
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
|
||||
'failed' => 'Error',
|
||||
'failed_message' => "You've encountered an error",
|
||||
'success' => 'Success',
|
||||
'success_message' => 'Done Successfully',
|
||||
'create' => 'The Item created successfully',
|
||||
'update' => 'The Item updated successfully',
|
||||
|
||||
];
|
||||
Reference in New Issue
Block a user