mirror of
https://git.meshkee.com/cssd/cssd-back.git
synced 2026-10-10 22:11:08 +03:30
Product
This commit is contained in:
@@ -1,49 +0,0 @@
|
||||
<?php␍
|
||||
namespace App\Http\Controllers\Auth;␍
|
||||
use App\Http\Controllers\Controller;␍
|
||||
use App\Transformers\Json;␍
|
||||
use App\User;␍
|
||||
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;␍
|
||||
use Illuminate\Http\Request;␍
|
||||
class ForgotPasswordController extends Controller␍
|
||||
{␍
|
||||
/*␍
|
||||
|--------------------------------------------------------------------------␍
|
||||
| Password Reset Controller␍
|
||||
|--------------------------------------------------------------------------␍
|
||||
|␍
|
||||
| This controller is responsible for handling password reset emails and␍
|
||||
| includes a trait which assists in sending these notifications from␍
|
||||
| your application to your users. Feel free to explore this trait.␍
|
||||
|␍
|
||||
*/␍
|
||||
use SendsPasswordResetEmails;␍
|
||||
/**␍
|
||||
* Create a new controller instance.␍
|
||||
*␍
|
||||
* @return void␍
|
||||
*/␍
|
||||
public function __construct()␍
|
||||
{␍
|
||||
$this->middleware('guest');␍
|
||||
}␍
|
||||
/**␍
|
||||
* Send a reset link to the given user.␍
|
||||
*␍
|
||||
* @param \Illuminate\Http\Request $request␍
|
||||
* @return \Illuminate\Http\Response␍
|
||||
*/␍
|
||||
public function getResetToken(Request $request)␍
|
||||
{␍
|
||||
dd($request->all());␍
|
||||
$this->validate($request, ['email' => 'required|email']);␍
|
||||
if ($request->wantsJson()) {␍
|
||||
$user = User::where('email', $request->input('email'))->first();␍
|
||||
if (!$user) {␍
|
||||
return response()->json(Json::response(null, trans('passwords.user')), 400);␍
|
||||
}␍
|
||||
$token = $this->broker()->createToken($user);␍
|
||||
return response()->json(Json::response(['token' => $token]));␍
|
||||
}␍
|
||||
}␍
|
||||
}␍
|
||||
@@ -1,100 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Api;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Http\Controllers\Controller;
|
||||
use App\User;
|
||||
// use Illuminate\Support\Facades\Auth;
|
||||
// use App\Appended\Traites\Auth\Verification;
|
||||
use Lcobucci\JWT\Parser;
|
||||
|
||||
use Validator;
|
||||
|
||||
class PassportController extends Controller
|
||||
{
|
||||
// use Verification;
|
||||
protected $field;
|
||||
|
||||
/**
|
||||
* login api
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function login(Request $request)
|
||||
{
|
||||
$this->validate($request, $this->rules(), $this->validationErrorMessages());
|
||||
$request = Request::create('/oauth/token', 'POST', [
|
||||
'grant_type' => 'password',
|
||||
'client_id' => config('services.vue_client.id'),
|
||||
'client_secret' => config('services.vue_client.secret'),
|
||||
'username' => $request->cell_number,
|
||||
'password' => $request->password,
|
||||
]);
|
||||
return app()->handle($request);
|
||||
// $user = User::where('cell_number', $request->cell_number)->first();
|
||||
// if ($user && \Hash::check($request->password, $user->password)) {
|
||||
// $token = $user->createToken('Laravel password Grant Client')->accessToken;
|
||||
// $response = ['token' => $token];
|
||||
// return response()->json($response, 200);
|
||||
// } else {
|
||||
// return response()->json(trans('auth.failed'), 422);
|
||||
// }
|
||||
}
|
||||
|
||||
public function logout(Request $request)
|
||||
{
|
||||
$value = $request->bearerToken();
|
||||
$id = (new Parser())->parse($value)->getHeader('jti');
|
||||
$token = $request->user()->tokens->find($id);
|
||||
$token->revoke();
|
||||
return response()->json(trans('auth.logout_success'), 200);
|
||||
}
|
||||
|
||||
/**
|
||||
* Register api
|
||||
*
|
||||
* @return \Illuminate\Http\Response
|
||||
*/
|
||||
public function register(Request $request)
|
||||
{
|
||||
$validator = Validator::make($request->all(), [
|
||||
'name' => 'required|string|max:255',
|
||||
'medical_center_id' => 'required',
|
||||
'email' => 'email|max:255|unique:users',
|
||||
'cell_number' => 'required|digits_between:10,11|unique:users',
|
||||
'password' => 'required|string|min:6|confirmed',
|
||||
]);
|
||||
|
||||
if ($validator->fails()) {
|
||||
return response()->json(['error' => $validator->errors()], 401);
|
||||
}
|
||||
|
||||
$input = $request->all();
|
||||
$input['password'] = bcrypt($input['password']);
|
||||
$input['status'] = 'Registered';
|
||||
$user = User::create($input);
|
||||
$this->phone_confirmation($user);
|
||||
|
||||
$success['token'] = $user->createToken('MyApp')->accessToken;
|
||||
$success['name'] = $user->name;
|
||||
|
||||
return response()->json(['success' => $success], 200);
|
||||
}
|
||||
|
||||
public function resetCode(Request $request)
|
||||
{
|
||||
$user = User::where('cell_number', $request->cell_number)->where('verified', 0)->first();
|
||||
if ($user) {
|
||||
$this->phone_confirmation($user);
|
||||
return response()->json(['success' => true], 200);
|
||||
}
|
||||
return response()->json(['success' => false], 403);
|
||||
}
|
||||
|
||||
public function sendLinkEmail(Request $request)
|
||||
{
|
||||
return response()->json(app('App\Http\Controllers\Auth\ForgotPasswordController')->sendResetLinkEmail($request));
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,61 +0,0 @@
|
||||
<?php␍
|
||||
namespace App\Http\Controllers\Auth;␍
|
||||
use App\Http\Controllers\Controller;␍
|
||||
use App\Transformers\Json;␍
|
||||
use Illuminate\Foundation\Auth\ResetsPasswords;␍
|
||||
use Illuminate\Http\Request;␍
|
||||
use Illuminate\Support\Facades\Password;␍
|
||||
class ResetPasswordController extends Controller␍
|
||||
{␍
|
||||
/*␍
|
||||
|--------------------------------------------------------------------------␍
|
||||
| Password Reset Controller␍
|
||||
|--------------------------------------------------------------------------␍
|
||||
|␍
|
||||
| This controller is responsible for handling password reset requests␍
|
||||
| and uses a simple trait to include this behavior. You're free to␍
|
||||
| explore this trait and override any methods you wish to tweak.␍
|
||||
|␍
|
||||
*/␍
|
||||
use ResetsPasswords;␍
|
||||
/**␍
|
||||
* Create a new controller instance.␍
|
||||
*␍
|
||||
* @return void␍
|
||||
*/␍
|
||||
public function __construct()␍
|
||||
{␍
|
||||
$this->middleware('guest');␍
|
||||
}␍
|
||||
/**␍
|
||||
* Reset the given user's password.␍
|
||||
*␍
|
||||
* @param \Illuminate\Http\Request $request␍
|
||||
* @return \Illuminate\Http\Response␍
|
||||
*/␍
|
||||
public function reset(Request $request)␍
|
||||
{␍
|
||||
$this->validate($request, $this->rules(), $this->validationErrorMessages());␍
|
||||
// Here we will attempt to reset the user's password. If it is successful we␍
|
||||
// will update the password on an actual user model and persist it to the␍
|
||||
// database. Otherwise we will parse the error and return the response.␍
|
||||
$response = $this->broker()->reset(␍
|
||||
$this->credentials($request), function ($user, $password) {␍
|
||||
$this->resetPassword($user, $password);␍
|
||||
}␍
|
||||
);␍
|
||||
if ($request->wantsJson()) {␍
|
||||
if ($response == Password::PASSWORD_RESET) {␍
|
||||
return response()->json(Json::response(null, trans('passwords.reset')));␍
|
||||
} else {␍
|
||||
return response()->json(Json::response($request->input('email'), trans($response), 202));␍
|
||||
}␍
|
||||
}␍
|
||||
// If the password was successfully reset, we will redirect the user back to␍
|
||||
// the application's home authenticated view. If there is an error we can␍
|
||||
// redirect them back to where they came from with their error message.␍
|
||||
return $response == Password::PASSWORD_RESET␍
|
||||
? $this->sendResetResponse($response)␍
|
||||
: $this->sendResetFailedResponse($request, $response);␍
|
||||
}␍
|
||||
}␍
|
||||
@@ -1,32 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Foundation\Auth\SendsPasswordResetEmails;
|
||||
|
||||
class ForgotPasswordController extends Controller
|
||||
{
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reset Controller
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This controller is responsible for handling password reset emails and
|
||||
| includes a trait which assists in sending these notifications from
|
||||
| your application to your users. Feel free to explore this trait.
|
||||
|
|
||||
*/
|
||||
|
||||
use SendsPasswordResetEmails;
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('guest');
|
||||
}
|
||||
}
|
||||
@@ -1,124 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Foundation\Auth\RedirectsUsers;
|
||||
use Illuminate\Foundation\Auth\ThrottlesLogins;
|
||||
use Illuminate\Validation\ValidationException;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
|
||||
class LoginController extends Controller
|
||||
{
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Login Controller
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This controller handles authenticating users for the application and
|
||||
| redirecting them to your home screen. The controller uses a trait
|
||||
| to conveniently provide its functionality to your applications.
|
||||
|
|
||||
*/
|
||||
use RedirectsUsers, ThrottlesLogins;
|
||||
|
||||
protected $redirectTo = '/';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('guest')->except('logout');
|
||||
}
|
||||
|
||||
public function showLoginForm()
|
||||
{
|
||||
return view('auth.login');
|
||||
}
|
||||
|
||||
public function login(Request $request)
|
||||
{
|
||||
$this->validateLogin($request);
|
||||
|
||||
if ($this->hasTooManyLoginAttempts($request)) {
|
||||
$this->fireLockoutEvent($request);
|
||||
|
||||
return $this->sendLockoutResponse($request);
|
||||
}
|
||||
|
||||
if ($this->attemptLogin($request)) {
|
||||
|
||||
return $this->sendLoginResponse($request);
|
||||
}
|
||||
|
||||
$this->incrementLoginAttempts($request);
|
||||
return $this->sendFailedLoginResponse($request);
|
||||
}
|
||||
|
||||
protected function validateLogin(Request $request)
|
||||
{
|
||||
$this->validate($request, [
|
||||
$this->username() => 'required|string',
|
||||
'password' => 'required|string',
|
||||
]);
|
||||
}
|
||||
|
||||
protected function attemptLogin(Request $request)
|
||||
{
|
||||
return $this->guard()->attempt(
|
||||
$this->credentials($request), $request->filled('remember')
|
||||
);
|
||||
}
|
||||
|
||||
protected function credentials(Request $request)
|
||||
{
|
||||
return $request->only($this->username(), 'password');
|
||||
}
|
||||
|
||||
protected function sendLoginResponse(Request $request)
|
||||
{
|
||||
$request->session()->regenerate();
|
||||
$this->clearLoginAttempts($request);
|
||||
|
||||
// $request->session()->put(['user_status'=> 'user logged in!']);
|
||||
return $this->authenticated($request, $this->guard()->user())
|
||||
?: redirect()->intended($this->redirectTo);
|
||||
|
||||
}
|
||||
|
||||
protected function authenticated(Request $request, $user)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
protected function sendFailedLoginResponse(Request $request)
|
||||
{
|
||||
$errors = [$this->username() => trans('auth.failed')];
|
||||
|
||||
if ($request->expectsJson()) {
|
||||
return response()->json($errors, 422);
|
||||
}
|
||||
|
||||
return redirect()->back()
|
||||
->withInput($request->only($this->username(), 'remember'))
|
||||
->withErrors($errors);
|
||||
|
||||
}
|
||||
|
||||
public function username()
|
||||
{
|
||||
return 'cell_number';
|
||||
}
|
||||
|
||||
public function logout(Request $request)
|
||||
{
|
||||
$this->guard()->logout();
|
||||
$request->session()->invalidate();
|
||||
return redirect('/');
|
||||
}
|
||||
|
||||
protected function guard()
|
||||
{
|
||||
return Auth::guard();
|
||||
}
|
||||
}
|
||||
@@ -1,141 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\User;
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Support\Facades\Hash;
|
||||
use Illuminate\Support\Facades\Validator;
|
||||
// use Illuminate\Foundation\Auth\RegistersUsers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use Illuminate\Auth\Events\Registered;
|
||||
use Illuminate\Support\Facades\Auth;
|
||||
use App\Appended\Traites\Auth\Verification;
|
||||
use Illuminate\Support\Facades\Cache;
|
||||
use App\Appended\Traites\Auth\Mc;
|
||||
|
||||
class RegisterController extends Controller
|
||||
{
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Register Controller
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This controller handles the registration of new users as well as their
|
||||
| validation and creation. By default this controller uses a trait to
|
||||
| provide this functionality without requiring any additional code.
|
||||
|
|
||||
*/
|
||||
use Verification;
|
||||
// use RegistersUsers;
|
||||
|
||||
/**
|
||||
* Where to redirect users after registration.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $redirectTo = '/';
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
// $this->middleware('guest');
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a validator for an incoming registration request.
|
||||
*
|
||||
* @param array $data
|
||||
* @return \Illuminate\Contracts\Validation\Validator
|
||||
*/
|
||||
protected function validator(array $data)
|
||||
{
|
||||
return Validator::make($data, [
|
||||
'name' => 'required|string|max:255',
|
||||
'medical_center_id' => 'required',
|
||||
'email' => 'email|max:255|unique:users',
|
||||
'cell_number' => 'required|digits_between:10,11|unique:users',
|
||||
'password' => 'required|string|min:6|confirmed',
|
||||
]);
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
* Create a new user instance after a valid registration.
|
||||
*
|
||||
* @param array $data
|
||||
* @return \App\User
|
||||
*/
|
||||
protected function create(array $data)
|
||||
{
|
||||
$userData = [
|
||||
'name' => $data['name'],
|
||||
'password' => bcrypt($data['password']),
|
||||
'email' => $data['email'],
|
||||
'cell_number' => $data['cell_number'],
|
||||
'medical_center_id' => $data['medical_center_id'],
|
||||
'status' => 'Registered',
|
||||
];
|
||||
|
||||
$userData['email'] ==="" ? $userData['email'] = null : null;
|
||||
$userData['cell_number'] ==="" ? $userData['cell_number'] = null : null;
|
||||
|
||||
// $answer=$data['mathcaptcha'];
|
||||
|
||||
$user = User::create($userData);
|
||||
if ($data['cell_number']) {
|
||||
session(['temp_user' => $user]);
|
||||
// $this->phone_confirmation($user);
|
||||
} else
|
||||
throw new \Exception('لطفا شماره همراه خود را وارد نمایید.');
|
||||
|
||||
return $user;
|
||||
|
||||
|
||||
// $user = User::create($userData);
|
||||
// dd($user);
|
||||
|
||||
// if (!empty($userData['email'])) {
|
||||
// $this->mail_confirmation($user,'register');
|
||||
// } else {
|
||||
// $this->phone_confirmation($user);
|
||||
// }
|
||||
|
||||
|
||||
}
|
||||
public function showRegistrationForm()
|
||||
{
|
||||
return view('auth.register');
|
||||
}
|
||||
|
||||
public function register(Request $request)
|
||||
{
|
||||
$this->validator($request->all())->validate();
|
||||
|
||||
event(new Registered($user = $this->create($request->all())));
|
||||
\Auth::loginUsingId($user->id);
|
||||
return $this->registered($request, $user)
|
||||
?: response()->json(['url' => $this->redirectTo, 'message' => 'ثبت نام شما با موفقیت انجام شد.']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the guard to be used during registration.
|
||||
*
|
||||
* @return \Illuminate\Contracts\Auth\StatefulGuard
|
||||
*/
|
||||
protected function guard()
|
||||
{
|
||||
return Auth::guard();
|
||||
}
|
||||
|
||||
protected function registered(Request $request, $user)
|
||||
{
|
||||
//
|
||||
}
|
||||
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Foundation\Auth\ResetsPasswords;
|
||||
|
||||
class ResetPasswordController extends Controller
|
||||
{
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Password Reset Controller
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This controller is responsible for handling password reset requests
|
||||
| and uses a simple trait to include this behavior. You're free to
|
||||
| explore this trait and override any methods you wish to tweak.
|
||||
|
|
||||
*/
|
||||
|
||||
use ResetsPasswords;
|
||||
|
||||
/**
|
||||
* Where to redirect users after resetting their password.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $redirectTo = '/home';
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('guest');
|
||||
}
|
||||
}
|
||||
@@ -1,41 +0,0 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers\Auth;
|
||||
|
||||
use App\Http\Controllers\Controller;
|
||||
use Illuminate\Foundation\Auth\VerifiesEmails;
|
||||
|
||||
class VerificationController extends Controller
|
||||
{
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Email Verification Controller
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| This controller is responsible for handling email verification for any
|
||||
| user that recently registered with the application. Emails may also
|
||||
| be re-sent if the user didn't receive the original email message.
|
||||
|
|
||||
*/
|
||||
|
||||
use VerifiesEmails;
|
||||
|
||||
/**
|
||||
* Where to redirect users after verification.
|
||||
*
|
||||
* @var string
|
||||
*/
|
||||
protected $redirectTo = '/home';
|
||||
|
||||
/**
|
||||
* Create a new controller instance.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
$this->middleware('auth');
|
||||
$this->middleware('signed')->only('verify');
|
||||
$this->middleware('throttle:6,1')->only('verify', 'resend');
|
||||
}
|
||||
}
|
||||
@@ -13,7 +13,7 @@ class TestResultController extends Controller
|
||||
{
|
||||
public function index()
|
||||
{
|
||||
$TestResult = TestResult::with('test_type')->paginate(10);
|
||||
$TestResult = TestResult::with('test_type', 'user', 'user.medical_center')->paginate(10);
|
||||
return \MessageResponse::data($TestResult);
|
||||
}
|
||||
|
||||
@@ -107,9 +107,10 @@ class TestResultController extends Controller
|
||||
//
|
||||
}
|
||||
|
||||
public function edit($id)
|
||||
//Todo:: pass Inputs
|
||||
public function edit(TestResult $TestResult)
|
||||
{
|
||||
//
|
||||
return \MessageResponse::data($TestResult);
|
||||
}
|
||||
|
||||
public function update(StoreTestResultRequest $request, TestResult $TestResult)
|
||||
|
||||
@@ -4,6 +4,7 @@ namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\TestType;
|
||||
use App\TestResult;
|
||||
use App\Input;
|
||||
use App\Option;
|
||||
use App\Http\Requests\StoreTestTypeRequest;
|
||||
@@ -328,9 +329,16 @@ class TestTypeController extends Controller
|
||||
/////////////////////////////////////////////////////////////////////////////////////
|
||||
public function getInputs(Request $request)
|
||||
{
|
||||
$TestType = TestType::where('name', $request->name)->orWhere('unique_code', $request->unique_code)->first();
|
||||
if ($TestType) {
|
||||
$Inputs = Input::select('id','name','type','size','parent_id')->with(
|
||||
if($request->test_result_id !== '') {
|
||||
$testTypeId = TestResult::find($request->test_result_id);
|
||||
}
|
||||
if (isset($testTypeId) && $testTypeId) {
|
||||
$testType = TestType::select('id', 'name', 'unique_code')->find($testTypeId->test_type_id);
|
||||
} else {
|
||||
$testType = TestType::where('name', $request->name)->orWhere('unique_code', $request->unique_code)->select('id', 'name', 'unique_code')->first();
|
||||
}
|
||||
if (isset($testType) && $testType) {
|
||||
$inputs = Input::select('id','name','type','size','parent_id')->with(
|
||||
['options' => function ($query) {
|
||||
$query->select('id', 'title','input_id');
|
||||
}],
|
||||
@@ -340,12 +348,18 @@ class TestTypeController extends Controller
|
||||
['children.options' => function ($query) {
|
||||
$query->select('id', 'title','input_id');
|
||||
}]
|
||||
)->whereNull('parent_id')->where('test_type_id',$TestType->id)->get();
|
||||
)->whereNull('parent_id')->where('test_type_id',$testType->id)->get();
|
||||
|
||||
return \MessageResponse::data($Inputs);
|
||||
return \MessageResponse::data(['testType' => $testType, 'inputs' => $inputs]);
|
||||
}
|
||||
return \MessageResponse::error();
|
||||
}
|
||||
|
||||
public function listNames()
|
||||
{
|
||||
$testType = TestType::pluck('name');
|
||||
return \MessageResponse::data($testType);
|
||||
}
|
||||
public function destroy($id)
|
||||
{
|
||||
|
||||
|
||||
+1
-1
@@ -67,7 +67,7 @@ return [
|
||||
|
|
||||
*/
|
||||
|
||||
'timezone' => 'UTC',
|
||||
'timezone' => 'Asia/Tehran',
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
|
||||
Vendored
+101
-504
File diff suppressed because one or more lines are too long
Vendored
+701
-1
@@ -1 +1,701 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{RDSI:function(t,e,a){var n=a("lAGn");"string"==typeof n&&(n=[[t.i,n,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};a("aET+")(n,s);n.locals&&(t.exports=n.locals)},kdXA:function(t,e,a){"use strict";var n=a("RDSI");a.n(n).a},lAGn:function(t,e,a){(t.exports=a("JPst")(!1)).push([t.i,".tim-note {\n bottom: 10px;\n color: #c0c1c2;\n display: block;\n font-weight: 400;\n font-size: 13px;\n line-height: 13px;\n left: 0;\n margin-left: 20px;\n width: 260px;\n}",""])},vZNE:function(t,e,a){"use strict";a.r(e);var n="I will be the leader of a company that ends up being worth billions of dollars, because I got the answers. I understand culture. I am the nucleus. I think that’s a responsibility that I have, to push possibilities, to show people, this is the level that things could be at.",s=n.slice(0,105)+"...",i="The Life of Material Dashboard",r={data:function(){return{typography:{"heading-1":["Header 1",i,"h1"],"heading-2":["Header 2",i,"h2"],"heading-3":["Header 3",i,"h3"],"heading-4":["Header 4",i,"h4"],"heading-5":["Header 5",i,"h5"],"heading-6 text-uppercase":["Header 6",i,"h6"],"":["Paragraph",n,"p"],quote:["Quote",n,"blockquote"],"text--disabled":["Muted Text",s,"p"],"text-primary":["Primary Text",s,"p"],"text-info":["Info Text",s,"p"],"text-success":["Success Text",s,"p"],"text-warning":["Warning Text",s,"p"],"text-danger":["Danger Text",s,"p"],small:["Small Tag","Header with small subtitle","h2"]}}}},l=(a("kdXA"),a("KHd+")),o=Object(l.a)(r,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-container",{attrs:{"fill-height":"",fluid:""}},[a("v-layout",{attrs:{"justify-center":"","align-center":""}},[a("v-flex",{attrs:{xs12:""}},[a("material-card",{attrs:{color:"green",title:"Material Dashboard Heading",text:"Created using Roboto Font Family"}},[a("v-card-text",[a("h2",{staticClass:"font-weight-light mb-4"},[t._v("Typography")]),t._v(" "),a("v-container",{staticClass:"pa-0",attrs:{"grid-list-xl":"",fluid:""}},t._l(t.typography,function(e,n){return a("v-layout",{key:n,attrs:{"align-end":"",wrap:""}},[a("v-flex",{attrs:{xs1:"",md3:""}},[a("span",{staticClass:"tim-note",domProps:{textContent:t._s(e[0])}})]),t._v(" "),a("v-flex",{attrs:{xs8:""}},[a(e[2],{tag:"component",class:n},["quote"!==n?[t._v("\n "+t._s(e[1])+"\n ")]:t._e(),t._v(" "),"quote"===n?a("p",[t._v(t._s(e[1]))]):t._e(),t._v(" "),"quote"===n?a("small",[t._v("Kanye West, Musician")]):t._e(),t._v(" "),"small"===n?[a("br"),t._v(" "),a("small",[t._v("Use 'small' tag for the headers")])]:t._e()],2)],1)],1)}),1)],1)],1)],1)],1)],1)},[],!1,null,null,null);e.default=o.exports}}]);
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[1],{
|
||||
|
||||
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/MedicalCenter/List.vue?vue&type=script&lang=js&":
|
||||
/*!****************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/MedicalCenter/List.vue?vue&type=script&lang=js& ***!
|
||||
\****************************************************************************************************************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
|
||||
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/services */ "./resources/js/vue/services/index.js");
|
||||
/* harmony import */ var _config_urls__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/config/urls */ "./resources/js/vue/config/urls.js");
|
||||
|
||||
|
||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
||||
|
||||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = ({
|
||||
data: function data() {
|
||||
return {
|
||||
headers: [{
|
||||
sortable: false,
|
||||
text: "Hospital Name",
|
||||
value: "name"
|
||||
}, {
|
||||
sortable: false,
|
||||
text: "Date",
|
||||
value: "date"
|
||||
}, {
|
||||
sortable: false,
|
||||
text: "Operator",
|
||||
value: "operator"
|
||||
}, {
|
||||
sortable: false,
|
||||
text: "Action",
|
||||
value: "action",
|
||||
align: "right"
|
||||
}],
|
||||
items: [],
|
||||
currentPage: 1,
|
||||
lastPage: 1
|
||||
};
|
||||
},
|
||||
created: function created() {
|
||||
this.getData();
|
||||
},
|
||||
methods: {
|
||||
getData: function () {
|
||||
var _getData = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {
|
||||
var page,
|
||||
result,
|
||||
_args = arguments;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
page = _args.length > 0 && _args[0] !== undefined ? _args[0] : 1;
|
||||
_context.next = 3;
|
||||
return _services__WEBPACK_IMPORTED_MODULE_1__["ApiService"].get(_config_urls__WEBPACK_IMPORTED_MODULE_2__["urls"].listMedicalCenter(page));
|
||||
|
||||
case 3:
|
||||
result = _context.sent;
|
||||
this.items = result.data.data.data;
|
||||
this.currentPage = result.data.data.current_page;
|
||||
this.lastPage = result.data.data.last_page;
|
||||
|
||||
case 7:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
function getData() {
|
||||
return _getData.apply(this, arguments);
|
||||
}
|
||||
|
||||
return getData;
|
||||
}(),
|
||||
remove: function () {
|
||||
var _remove = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2(id) {
|
||||
var result, key;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
_context2.next = 2;
|
||||
return _services__WEBPACK_IMPORTED_MODULE_1__["ApiService"].delete(_config_urls__WEBPACK_IMPORTED_MODULE_2__["urls"].deleteMedicalCenter(id));
|
||||
|
||||
case 2:
|
||||
result = _context2.sent;
|
||||
|
||||
if (result && result.status == 200) {
|
||||
for (key in this.items) {
|
||||
if (this.items.hasOwnProperty(key) && this.items[key].id == id) {
|
||||
this.items.splice(key, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
case 4:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}
|
||||
}, _callee2, this);
|
||||
}));
|
||||
|
||||
function remove(_x) {
|
||||
return _remove.apply(this, arguments);
|
||||
}
|
||||
|
||||
return remove;
|
||||
}()
|
||||
},
|
||||
watch: {
|
||||
currentPage: function currentPage(page) {
|
||||
this.getData(page);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/MedicalCenter/List.vue?vue&type=style&index=0&id=1346f0a2&lang=css&scoped=true&":
|
||||
/*!***********************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/MedicalCenter/List.vue?vue&type=style&index=0&id=1346f0a2&lang=css&scoped=true& ***!
|
||||
\***********************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
exports = module.exports = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);
|
||||
// Module
|
||||
exports.push([module.i, "\n.WM-ActionButton[data-v-1346f0a2] {\r\n padding: 8px 22px;\n}\r\n", ""]);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/MedicalCenter/List.vue?vue&type=style&index=0&id=1346f0a2&lang=css&scoped=true&":
|
||||
/*!***************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/style-loader!./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/MedicalCenter/List.vue?vue&type=style&index=0&id=1346f0a2&lang=css&scoped=true& ***!
|
||||
\***************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
|
||||
var content = __webpack_require__(/*! !../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src??ref--5-2!../../../../../node_modules/vue-loader/lib??vue-loader-options!./List.vue?vue&type=style&index=0&id=1346f0a2&lang=css&scoped=true& */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/MedicalCenter/List.vue?vue&type=style&index=0&id=1346f0a2&lang=css&scoped=true&");
|
||||
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
|
||||
var transform;
|
||||
var insertInto;
|
||||
|
||||
|
||||
|
||||
var options = {"hmr":true}
|
||||
|
||||
options.transform = transform
|
||||
options.insertInto = undefined;
|
||||
|
||||
var update = __webpack_require__(/*! ../../../../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options);
|
||||
|
||||
if(content.locals) module.exports = content.locals;
|
||||
|
||||
if(false) {}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/MedicalCenter/List.vue?vue&type=template&id=1346f0a2&scoped=true&":
|
||||
/*!********************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/MedicalCenter/List.vue?vue&type=template&id=1346f0a2&scoped=true& ***!
|
||||
\********************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"v-container",
|
||||
{ attrs: { fluid: "" } },
|
||||
[
|
||||
_c(
|
||||
"material-card",
|
||||
{ attrs: { color: "black", title: "Medical Centers List", text: "" } },
|
||||
[
|
||||
_c(
|
||||
"v-layout",
|
||||
{ staticClass: "px-5 mb-3", attrs: { wrap: "" } },
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
attrs: { label: "Name", color: "black" }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{
|
||||
staticClass: "text-xs-right",
|
||||
attrs: { xs12: "", md2: "", sm2: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "WM-CyanBlueGradient-BG",
|
||||
staticStyle: { padding: "10px 60px" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "white--text mr-2 caption" },
|
||||
[_vm._v("fas fa-search")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "white--text" }, [
|
||||
_vm._v("Filter")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("v-spacer"),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{
|
||||
staticClass: "text-xs-right",
|
||||
attrs: { xs12: "", md2: "", sm2: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"router-link",
|
||||
{ attrs: { to: { name: "AddMedicalCenter" } } },
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass:
|
||||
"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black"
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "black--text mr-2 caption" },
|
||||
[_vm._v("fas fa-plus")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "black--text" }, [
|
||||
_vm._v("Add")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("v-layout", { staticClass: "px-4 my-3" }, [_c("v-divider")], 1),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{
|
||||
staticClass: "px-5 mt-3",
|
||||
attrs: { "align-center": "", "justify-center": "", wrap: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { md12: "" } },
|
||||
[
|
||||
_c("v-data-table", {
|
||||
attrs: {
|
||||
headers: _vm.headers,
|
||||
items: _vm.items,
|
||||
"hide-actions": ""
|
||||
},
|
||||
scopedSlots: _vm._u([
|
||||
{
|
||||
key: "headerCell",
|
||||
fn: function(ref) {
|
||||
var header = ref.header
|
||||
return [
|
||||
_c("span", {
|
||||
staticClass:
|
||||
"subheading font-weight-light text-white text--darken-3",
|
||||
domProps: { textContent: _vm._s(header.text) }
|
||||
})
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
key: "items",
|
||||
fn: function(ref) {
|
||||
var item = ref.item
|
||||
return [
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "headline font-weight-light" },
|
||||
[_vm._v(_vm._s(item.name))]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "title font-weight-light" },
|
||||
[_vm._v(_vm._s(item.created_at))]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "title font-weight-light" },
|
||||
[_vm._v(_vm._s(item.users_count) + " Operator")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "text-xs-right" },
|
||||
[
|
||||
_c(
|
||||
"router-link",
|
||||
{
|
||||
attrs: {
|
||||
to: {
|
||||
name: "EditMedicalCenter",
|
||||
params: { medicalCenter: item.id }
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "mr-2 WM-ActionButton",
|
||||
attrs: { color: "cyan" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{
|
||||
staticClass:
|
||||
"white--text mr-2 caption"
|
||||
},
|
||||
[_vm._v("fas fa-pen")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", [_vm._v("Edit")])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"router-link",
|
||||
{
|
||||
attrs: {
|
||||
to: {
|
||||
name: "OperatorList",
|
||||
params: { medicalCenter: item.id }
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "mr-2 WM-ActionButton",
|
||||
attrs: { color: "orange darken-1" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{
|
||||
staticClass:
|
||||
"white--text mr-2 caption"
|
||||
},
|
||||
[_vm._v("fas fa-user")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", [_vm._v("Operator")])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "WM-ActionButton",
|
||||
attrs: { color: "pink" },
|
||||
on: {
|
||||
click: function($event) {
|
||||
return _vm.remove(item.id)
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{
|
||||
staticClass: "white--text mr-2 caption"
|
||||
},
|
||||
[_vm._v("fas fa-times")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", [_vm._v("Remove")])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
]
|
||||
}
|
||||
}
|
||||
])
|
||||
})
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("v-divider"),
|
||||
_vm._v(" "),
|
||||
_vm.lastPage > 1
|
||||
? _c(
|
||||
"div",
|
||||
{ staticClass: "text-xs-center" },
|
||||
[
|
||||
_c("v-pagination", {
|
||||
attrs: { length: _vm.lastPage, "total-visible": 6 },
|
||||
model: {
|
||||
value: _vm.currentPage,
|
||||
callback: function($$v) {
|
||||
_vm.currentPage = $$v
|
||||
},
|
||||
expression: "currentPage"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
)
|
||||
: _vm._e(),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{
|
||||
staticClass: "mt-3",
|
||||
attrs: {
|
||||
row: "",
|
||||
wrap: "",
|
||||
"align-center": "",
|
||||
"justify-center": ""
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"router-link",
|
||||
{ attrs: { to: "/dashboard" } },
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass:
|
||||
"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black ml-5"
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "black--text mr-2 caption" },
|
||||
[_vm._v("fas fa-chevron-left")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "black--text" }, [
|
||||
_vm._v("Back")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/MedicalCenter/List.vue":
|
||||
/*!*******************************************************!*\
|
||||
!*** ./resources/js/vue/views/MedicalCenter/List.vue ***!
|
||||
\*******************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _List_vue_vue_type_template_id_1346f0a2_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./List.vue?vue&type=template&id=1346f0a2&scoped=true& */ "./resources/js/vue/views/MedicalCenter/List.vue?vue&type=template&id=1346f0a2&scoped=true&");
|
||||
/* harmony import */ var _List_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./List.vue?vue&type=script&lang=js& */ "./resources/js/vue/views/MedicalCenter/List.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport *//* harmony import */ var _List_vue_vue_type_style_index_0_id_1346f0a2_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./List.vue?vue&type=style&index=0&id=1346f0a2&lang=css&scoped=true& */ "./resources/js/vue/views/MedicalCenter/List.vue?vue&type=style&index=0&id=1346f0a2&lang=css&scoped=true&");
|
||||
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
||||
_List_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_List_vue_vue_type_template_id_1346f0a2_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_List_vue_vue_type_template_id_1346f0a2_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
"1346f0a2",
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "resources/js/vue/views/MedicalCenter/List.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/MedicalCenter/List.vue?vue&type=script&lang=js&":
|
||||
/*!********************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/MedicalCenter/List.vue?vue&type=script&lang=js& ***!
|
||||
\********************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./List.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/MedicalCenter/List.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/MedicalCenter/List.vue?vue&type=style&index=0&id=1346f0a2&lang=css&scoped=true&":
|
||||
/*!****************************************************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/MedicalCenter/List.vue?vue&type=style&index=0&id=1346f0a2&lang=css&scoped=true& ***!
|
||||
\****************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_id_1346f0a2_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/style-loader!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src??ref--5-2!../../../../../node_modules/vue-loader/lib??vue-loader-options!./List.vue?vue&type=style&index=0&id=1346f0a2&lang=css&scoped=true& */ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/MedicalCenter/List.vue?vue&type=style&index=0&id=1346f0a2&lang=css&scoped=true&");
|
||||
/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_id_1346f0a2_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_id_1346f0a2_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_id_1346f0a2_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_id_1346f0a2_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_id_1346f0a2_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/MedicalCenter/List.vue?vue&type=template&id=1346f0a2&scoped=true&":
|
||||
/*!**************************************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/MedicalCenter/List.vue?vue&type=template&id=1346f0a2&scoped=true& ***!
|
||||
\**************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_template_id_1346f0a2_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./List.vue?vue&type=template&id=1346f0a2&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/MedicalCenter/List.vue?vue&type=template&id=1346f0a2&scoped=true&");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_template_id_1346f0a2_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_template_id_1346f0a2_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
Vendored
+512
-1
@@ -1 +1,512 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{GLrF:function(t,e,a){"use strict";a.r(e);var i={data:function(){return{Cards:[{title:"My Info",text:"You can easily edit your registration information",icon:"/img/Static/Dashboard/darkmug.png",color:"WM-OrangeGradient-BG",route:{name:"MyInfo"},aligntext:"text-md-left",alignimg:"text-md-right",column:"xs12 md6 sm6"},{title:"All Test Result",text:"You can see all user tests and own tests",icon:"/img/Static/Dashboard/pad.png",color:"WM-GreenGradient-BG",route:{name:"AllResultTest"},aligntext:"text-md-left",alignimg:"text-md-right",column:"xs12 md6 sm6"},{title:"Manage Users",text:"You can edit the medical center information",icon:"/img/Static/Dashboard/ipad.png",color:"WM-YellowPinkGradient-BG",route:{name:"ManageUsers"},aligntext:"text-md-center",alignimg:"text-md-left",column:"xs12 md12 sm12"},{title:"Manage Medical Center",text:"Managing users very fast by ...",icon:"/img/Static/Dashboard/Macbook.png",color:"WM-MuskGradient-BG",route:{name:"ManageMedicalCenter"},aligntext:"text-md-left",alignimg:"text-md-right",column:"xs12 md7 sm7"},{title:"List Test Type",text:"You can simply add your own test type",icon:"/img/Static/Dashboard/Book-and-Pen.png",color:"WM-GreyGradient-BG",route:{name:"ListTestType"},aligntext:"text-md-left",alignimg:"text-md-right",column:"xs12 md5 sm5"},{title:"Test to Verify",text:"You can simply add your own test type in this section of website",icon:"/img/Static/Dashboard/notepad-colorful.png",color:"WM-PinkGradient-BG",route:{name:"SubmitTestResult"},aligntext:"text-md-center",alignimg:"text-md-left",column:"xs12 md12 sm12"},{title:"Add a Test Result",text:"You can edit the medical center information",icon:"/img/Static/Dashboard/ipad.png",color:"WM-YellowPinkGradient-BG",route:{name:"SubmitTestResult"},aligntext:"text-md-center",alignimg:"text-md-left",column:"xs12 md12 sm12"}]}}},n=a("KHd+"),o=Object(n.a)(i,function(){var t=this.$createElement,e=this._self._c||t;return e("v-container",{attrs:{fluid:""}},[e("material-card",{attrs:{color:"black",title:"Material Dashboard Heading",text:""}},[e("v-layout",{attrs:{row:"",wrap:""}},this._l(this.Cards,function(t,a){return e("v-flex",{key:a,class:[t.column,"pa-2"]},[e("router-link",{attrs:{to:t.route}},[e("material-cards",{attrs:{title:t.title,icon:t.icon,color:t.color,text:t.text,aligntext:t.aligntext,alignimg:t.alignimg}})],1)],1)}),1)],1)],1)},[],!1,null,null,null);e.default=o.exports}}]);
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[10],{
|
||||
|
||||
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/NotWorking/UserProfile.vue?vue&type=script&lang=js&":
|
||||
/*!********************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/NotWorking/UserProfile.vue?vue&type=script&lang=js& ***!
|
||||
\********************************************************************************************************************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
/* harmony default export */ __webpack_exports__["default"] = ({//
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/NotWorking/UserProfile.vue?vue&type=template&id=e1077556&":
|
||||
/*!************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/NotWorking/UserProfile.vue?vue&type=template&id=e1077556& ***!
|
||||
\************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"v-container",
|
||||
{ attrs: { "fill-height": "", fluid: "", "grid-list-xl": "" } },
|
||||
[
|
||||
_c(
|
||||
"v-layout",
|
||||
{ attrs: { "justify-center": "", wrap: "" } },
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md8: "" } },
|
||||
[
|
||||
_c(
|
||||
"material-card",
|
||||
{
|
||||
attrs: {
|
||||
color: "green",
|
||||
title: "Edit Profile",
|
||||
text: "Complete your profile"
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-form",
|
||||
[
|
||||
_c(
|
||||
"v-container",
|
||||
{ attrs: { "py-0": "" } },
|
||||
[
|
||||
_c(
|
||||
"v-layout",
|
||||
{ attrs: { wrap: "" } },
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md4: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
attrs: {
|
||||
label: "Company (disabled)",
|
||||
disabled: ""
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md4: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "purple-input",
|
||||
attrs: { label: "User Name" }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md4: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "purple-input",
|
||||
attrs: { label: "Email Address" }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md6: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "purple-input",
|
||||
attrs: { label: "First Name" }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md6: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "purple-input",
|
||||
attrs: { label: "Last Name" }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md12: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "purple-input",
|
||||
attrs: { label: "Adress" }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md4: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "purple-input",
|
||||
attrs: { label: "City" }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md4: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "purple-input",
|
||||
attrs: { label: "Country" }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md4: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "purple-input",
|
||||
attrs: {
|
||||
label: "Postal Code",
|
||||
type: "number"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "" } },
|
||||
[
|
||||
_c("v-textarea", {
|
||||
staticClass: "purple-input",
|
||||
attrs: {
|
||||
label: "About Me",
|
||||
value:
|
||||
"Lorem ipsum dolor sit amet, consectetur adipiscing elit."
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", "text-xs-right": "" } },
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "mx-0 font-weight-light",
|
||||
attrs: { color: "success" }
|
||||
},
|
||||
[
|
||||
_vm._v(
|
||||
"\n Update Profile\n "
|
||||
)
|
||||
]
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md4: "" } },
|
||||
[
|
||||
_c(
|
||||
"material-card",
|
||||
{ staticClass: "v-card-profile" },
|
||||
[
|
||||
_c(
|
||||
"v-avatar",
|
||||
{
|
||||
staticClass: "mx-auto d-block",
|
||||
attrs: { slot: "offset", size: "130" },
|
||||
slot: "offset"
|
||||
},
|
||||
[_c("img", { attrs: { src: "/img/" } })]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-card-text",
|
||||
{ staticClass: "text-xs-center" },
|
||||
[
|
||||
_c(
|
||||
"h6",
|
||||
{
|
||||
staticClass:
|
||||
"category text-gray font-weight-thin mb-3"
|
||||
},
|
||||
[_vm._v("CEO / CO-FOUNDER")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"h4",
|
||||
{ staticClass: "card-title font-weight-light" },
|
||||
[_vm._v("Alec Thompson")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"p",
|
||||
{ staticClass: "card-description font-weight-light" },
|
||||
[
|
||||
_vm._v(
|
||||
"Don't be scared of the truth because we need to restart the human foundation in truth And I love you like Kanye loves Kanye I love Rick Owens’ bed design but the back is..."
|
||||
)
|
||||
]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "font-weight-light",
|
||||
attrs: { color: "success", round: "" }
|
||||
},
|
||||
[_vm._v("Follow")]
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/NotWorking/UserProfile.vue":
|
||||
/*!***********************************************************!*\
|
||||
!*** ./resources/js/vue/views/NotWorking/UserProfile.vue ***!
|
||||
\***********************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _UserProfile_vue_vue_type_template_id_e1077556___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./UserProfile.vue?vue&type=template&id=e1077556& */ "./resources/js/vue/views/NotWorking/UserProfile.vue?vue&type=template&id=e1077556&");
|
||||
/* harmony import */ var _UserProfile_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./UserProfile.vue?vue&type=script&lang=js& */ "./resources/js/vue/views/NotWorking/UserProfile.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_UserProfile_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_UserProfile_vue_vue_type_template_id_e1077556___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_UserProfile_vue_vue_type_template_id_e1077556___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "resources/js/vue/views/NotWorking/UserProfile.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/NotWorking/UserProfile.vue?vue&type=script&lang=js&":
|
||||
/*!************************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/NotWorking/UserProfile.vue?vue&type=script&lang=js& ***!
|
||||
\************************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_UserProfile_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./UserProfile.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/NotWorking/UserProfile.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_UserProfile_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/NotWorking/UserProfile.vue?vue&type=template&id=e1077556&":
|
||||
/*!******************************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/NotWorking/UserProfile.vue?vue&type=template&id=e1077556& ***!
|
||||
\******************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_UserProfile_vue_vue_type_template_id_e1077556___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./UserProfile.vue?vue&type=template&id=e1077556& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/NotWorking/UserProfile.vue?vue&type=template&id=e1077556&");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_UserProfile_vue_vue_type_template_id_e1077556___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_UserProfile_vue_vue_type_template_id_e1077556___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
Vendored
+394
-1
File diff suppressed because one or more lines are too long
Vendored
+816
-1
@@ -1 +1,816 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[12],{M2Tz:function(t,e,a){"use strict";a.r(e);var r=a("o0o1"),n=a.n(r),s=a("Y8XJ"),i=a("85lN");function c(t,e,a,r,n,s,i){try{var c=t[s](i),l=c.value}catch(t){return void a(t)}c.done?e(l):Promise.resolve(l).then(r,n)}function l(t){return function(){var e=this,a=arguments;return new Promise(function(r,n){var s=t.apply(e,a);function i(t){c(s,r,n,i,l,"next",t)}function l(t){c(s,r,n,i,l,"throw",t)}i(void 0)})}}var o={data:function(){return{medicalCenter:{name:""},rules:{required:function(t){return!!t||"Required."},counter:function(t){return t.length<=30||"Max 30 characters"}}}},created:function(){this.$route.params.medicalCenter&&this.load(this.$route.params.medicalCenter)},methods:{load:function(){var t=l(n.a.mark(function t(e){var a;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,s.a.get(i.a.editMedicalCenter(e));case 2:a=t.sent,this.medicalCenter=a.data.MedicalCenter;case 4:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),AddMedicalCenter:function(){var t=l(n.a.mark(function t(){var e;return n.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.$refs.form.validate()){t.next=11;break}if(!this.$route.params.medicalCenter){t.next=7;break}return t.next=4,s.a.put(i.a.updateMedicalCenter(this.$route.params.medicalCenter),this.medicalCenter);case 4:e=t.sent,t.next=10;break;case 7:return t.next=9,s.a.post(i.a.storeMedicalCenter,this.medicalCenter);case 9:e=t.sent;case 10:e&&200==e.status&&this.$router.push({name:"ManageMedicalCenter"});case 11:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}()}},u=a("KHd+"),d=Object(u.a)(o,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-form",{ref:"form"},[a("v-container",{attrs:{"grid-list-xs":""}},[a("material-card",{attrs:{color:"black",title:"Add Medical Center",text:""}},[a("v-layout",{staticClass:"px-5 mb-3",attrs:{row:"",wrap:""}},[a("v-flex",{attrs:{xs12:"",md3:"",xs3:""}},[a("v-text-field",{staticClass:"pa-2",attrs:{label:"Name",color:"black",rules:[t.rules.required,t.rules.counter]},model:{value:t.medicalCenter.name,callback:function(e){t.$set(t.medicalCenter,"name",e)},expression:"medicalCenter.name"}})],1)],1),t._v(" "),a("v-layout",{staticClass:"mt-3",attrs:{row:"",wrap:"","align-center":"","justify-center":""}},[a("v-btn",{staticClass:"WM-CyanBlueGradient-BG",staticStyle:{padding:"10px 60px"},on:{click:t.AddMedicalCenter}},[t.$route.params.medicalCenter?[a("v-icon",{staticClass:"white--text mr-2 caption"},[t._v("fas fa-edit")]),t._v(" "),a("span",{staticClass:"white--text"},[t._v("Edit")])]:[a("v-icon",{staticClass:"white--text mr-2 caption"},[t._v("fas fa-plus")]),t._v(" "),a("span",{staticClass:"white--text"},[t._v("Add")])]],2),t._v(" "),a("router-link",{attrs:{to:{name:"ManageMedicalCenter"}}},[a("v-btn",{staticClass:"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black ml-5"},[a("v-icon",{staticClass:"black--text mr-2 caption"},[t._v("fas fa-chevron-left")]),t._v(" "),a("span",{staticClass:"black--text"},[t._v("Back")])],1)],1)],1)],1)],1)],1)},[],!1,null,"7653d498",null);e.default=d.exports}}]);
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[12],{
|
||||
|
||||
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/MedicalCenter/OperatorList.vue?vue&type=script&lang=js&":
|
||||
/*!************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/MedicalCenter/OperatorList.vue?vue&type=script&lang=js& ***!
|
||||
\************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
|
||||
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/services */ "./resources/js/vue/services/index.js");
|
||||
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
|
||||
/* harmony import */ var _config_urls__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @/config/urls */ "./resources/js/vue/config/urls.js");
|
||||
|
||||
|
||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
||||
|
||||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
||||
|
||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = ({
|
||||
data: function data() {
|
||||
return {
|
||||
headers: [{
|
||||
sortable: true,
|
||||
text: "Operator Name",
|
||||
value: "name"
|
||||
}, {
|
||||
sortable: false,
|
||||
text: "Role",
|
||||
value: "role"
|
||||
}, {
|
||||
sortable: false,
|
||||
text: "Number",
|
||||
value: "number"
|
||||
}, {
|
||||
sortable: false,
|
||||
text: "Status",
|
||||
value: "status"
|
||||
}, {
|
||||
sortable: false,
|
||||
text: "Action",
|
||||
value: "action",
|
||||
align: "right"
|
||||
}],
|
||||
items: [],
|
||||
name: ""
|
||||
};
|
||||
},
|
||||
created: function created() {
|
||||
if (this.$route.params.medicalCenter) {
|
||||
this.load(this.$route.params.medicalCenter);
|
||||
}
|
||||
},
|
||||
methods: _objectSpread({
|
||||
load: function () {
|
||||
var _load = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee(medicalCenterId) {
|
||||
var result;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return _services__WEBPACK_IMPORTED_MODULE_1__["ApiService"].get(_config_urls__WEBPACK_IMPORTED_MODULE_3__["urls"].listOpertorMedicalCenter(medicalCenterId));
|
||||
|
||||
case 2:
|
||||
result = _context.sent;
|
||||
|
||||
if (result && result.status == 200) {
|
||||
this.items = result.data.data.users;
|
||||
this.name = result.data.data.name;
|
||||
} else {
|
||||
this.$router.push({
|
||||
name: "Dashboard"
|
||||
});
|
||||
}
|
||||
|
||||
case 4:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
function load(_x) {
|
||||
return _load.apply(this, arguments);
|
||||
}
|
||||
|
||||
return load;
|
||||
}(),
|
||||
changeStatus: function () {
|
||||
var _changeStatus = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2(userId) {
|
||||
var result, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, user;
|
||||
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
_context2.next = 2;
|
||||
return _services__WEBPACK_IMPORTED_MODULE_1__["ApiService"].post(_config_urls__WEBPACK_IMPORTED_MODULE_3__["urls"].changeStatusUser(userId));
|
||||
|
||||
case 2:
|
||||
result = _context2.sent;
|
||||
|
||||
if (!(result && result.status == 200)) {
|
||||
_context2.next = 25;
|
||||
break;
|
||||
}
|
||||
|
||||
_iteratorNormalCompletion = true;
|
||||
_didIteratorError = false;
|
||||
_iteratorError = undefined;
|
||||
_context2.prev = 7;
|
||||
|
||||
for (_iterator = this.items[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
||||
user = _step.value;
|
||||
|
||||
if (user.id == userId) {
|
||||
user.status = result.data.data.status;
|
||||
}
|
||||
}
|
||||
|
||||
_context2.next = 15;
|
||||
break;
|
||||
|
||||
case 11:
|
||||
_context2.prev = 11;
|
||||
_context2.t0 = _context2["catch"](7);
|
||||
_didIteratorError = true;
|
||||
_iteratorError = _context2.t0;
|
||||
|
||||
case 15:
|
||||
_context2.prev = 15;
|
||||
_context2.prev = 16;
|
||||
|
||||
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
||||
_iterator.return();
|
||||
}
|
||||
|
||||
case 18:
|
||||
_context2.prev = 18;
|
||||
|
||||
if (!_didIteratorError) {
|
||||
_context2.next = 21;
|
||||
break;
|
||||
}
|
||||
|
||||
throw _iteratorError;
|
||||
|
||||
case 21:
|
||||
return _context2.finish(18);
|
||||
|
||||
case 22:
|
||||
return _context2.finish(15);
|
||||
|
||||
case 23:
|
||||
_context2.next = 26;
|
||||
break;
|
||||
|
||||
case 25:
|
||||
this.$router.push({
|
||||
name: "Dashboard"
|
||||
});
|
||||
|
||||
case 26:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}
|
||||
}, _callee2, this, [[7, 11, 15, 23], [16,, 18, 22]]);
|
||||
}));
|
||||
|
||||
function changeStatus(_x2) {
|
||||
return _changeStatus.apply(this, arguments);
|
||||
}
|
||||
|
||||
return changeStatus;
|
||||
}()
|
||||
}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__["mapMutations"])("modal", ["changeCurrentModal"]), {
|
||||
changeRoleModal: function changeRoleModal(user) {
|
||||
this.changeCurrentModal({
|
||||
modal: "modal-user-role",
|
||||
properties: {
|
||||
user: user
|
||||
}
|
||||
});
|
||||
},
|
||||
remove: function () {
|
||||
var _remove = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3(userId) {
|
||||
var result, key;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) {
|
||||
while (1) {
|
||||
switch (_context3.prev = _context3.next) {
|
||||
case 0:
|
||||
_context3.next = 2;
|
||||
return _services__WEBPACK_IMPORTED_MODULE_1__["ApiService"].delete(_config_urls__WEBPACK_IMPORTED_MODULE_3__["urls"].deleteUser(userId));
|
||||
|
||||
case 2:
|
||||
result = _context3.sent;
|
||||
|
||||
if (result && result.status == 200) {
|
||||
for (key in this.items) {
|
||||
if (this.items.hasOwnProperty(key) && this.items[key].id == userId) {
|
||||
this.items.splice(key, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
case 4:
|
||||
case "end":
|
||||
return _context3.stop();
|
||||
}
|
||||
}
|
||||
}, _callee3, this);
|
||||
}));
|
||||
|
||||
function remove(_x3) {
|
||||
return _remove.apply(this, arguments);
|
||||
}
|
||||
|
||||
return remove;
|
||||
}()
|
||||
}),
|
||||
computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_2__["mapGetters"])("modal", ["getModalResult"])),
|
||||
watch: {
|
||||
getModalResult: function getModalResult(user) {
|
||||
var _iteratorNormalCompletion2 = true;
|
||||
var _didIteratorError2 = false;
|
||||
var _iteratorError2 = undefined;
|
||||
|
||||
try {
|
||||
for (var _iterator2 = this.items[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
||||
var userList = _step2.value;
|
||||
|
||||
if (userList.id == user.id) {
|
||||
userList.roles = user.roles;
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
_didIteratorError2 = true;
|
||||
_iteratorError2 = err;
|
||||
} finally {
|
||||
try {
|
||||
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
|
||||
_iterator2.return();
|
||||
}
|
||||
} finally {
|
||||
if (_didIteratorError2) {
|
||||
throw _iteratorError2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/MedicalCenter/OperatorList.vue?vue&type=template&id=a2d4b11a&":
|
||||
/*!****************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/MedicalCenter/OperatorList.vue?vue&type=template&id=a2d4b11a& ***!
|
||||
\****************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"v-container",
|
||||
{ attrs: { "grid-list-xs": "" } },
|
||||
[
|
||||
_c(
|
||||
"material-card",
|
||||
{
|
||||
attrs: {
|
||||
color: "black",
|
||||
title: "Operator List " + _vm.name,
|
||||
text: ""
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-layout",
|
||||
{ staticClass: "px-5 mb-3", attrs: { row: "", wrap: "" } },
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md3: "", xs3: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
name: "Name",
|
||||
label: "Name",
|
||||
color: "black",
|
||||
id: "id"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md3: "", xs3: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
name: "cell_number",
|
||||
label: "Cell Number",
|
||||
color: "black",
|
||||
id: "id"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{
|
||||
staticClass: "text-xs-right",
|
||||
attrs: { xs12: "", md2: "", sm2: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "WM-CyanBlueGradient-BG",
|
||||
staticStyle: { padding: "10px 60px" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "white--text mr-2 caption" },
|
||||
[_vm._v("fas fa-search")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "white--text" }, [
|
||||
_vm._v("Filter")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("v-spacer"),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{
|
||||
staticClass: "text-xs-right",
|
||||
attrs: { xs12: "", md2: "", sm2: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"router-link",
|
||||
{
|
||||
attrs: {
|
||||
to: "/add-operator/" + _vm.$route.params.medicalCenter
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass:
|
||||
"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black"
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "black--text mr-2 caption" },
|
||||
[_vm._v("fas fa-plus")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "black--text" }, [
|
||||
_vm._v("Add")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{
|
||||
staticClass: "px-5 mt-3",
|
||||
attrs: {
|
||||
row: "",
|
||||
"align-center": "",
|
||||
"justify-center": "",
|
||||
wrap: ""
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { md12: "" } },
|
||||
[
|
||||
_c("v-data-table", {
|
||||
attrs: {
|
||||
headers: _vm.headers,
|
||||
items: _vm.items,
|
||||
"hide-actions": ""
|
||||
},
|
||||
scopedSlots: _vm._u([
|
||||
{
|
||||
key: "headerCell",
|
||||
fn: function(ref) {
|
||||
var header = ref.header
|
||||
return [
|
||||
_c("span", {
|
||||
staticClass:
|
||||
"subheading font-weight-light text-white text--darken-3",
|
||||
domProps: { textContent: _vm._s(header.text) }
|
||||
})
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
key: "items",
|
||||
fn: function(ref) {
|
||||
var item = ref.item
|
||||
return [
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "headline font-weight-light" },
|
||||
[_vm._v(_vm._s(item.name))]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "title font-weight-light" },
|
||||
_vm._l(item.roles, function(role, key) {
|
||||
return _c("span", { key: key }, [
|
||||
_vm._v(_vm._s(role.name))
|
||||
])
|
||||
}),
|
||||
0
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "title font-weight-light" },
|
||||
[_vm._v(_vm._s(item.cell_number))]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "title font-weight-light" },
|
||||
[_vm._v(_vm._s(item.status))]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "text-xs-right" },
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "mr-2 WM-ActionButton",
|
||||
attrs: {
|
||||
color:
|
||||
item.status == "Active"
|
||||
? "red"
|
||||
: "green"
|
||||
},
|
||||
on: {
|
||||
click: function($event) {
|
||||
return _vm.changeStatus(item.id)
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
item.status == "Active"
|
||||
? [
|
||||
_c(
|
||||
"v-icon",
|
||||
{
|
||||
staticClass:
|
||||
"white--text mr-2 caption"
|
||||
},
|
||||
[_vm._v("fas fa-user-tag")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
item.status == "Active"
|
||||
? _c("span", [_vm._v("Susspended")])
|
||||
: _vm._e()
|
||||
]
|
||||
: [
|
||||
_c(
|
||||
"v-icon",
|
||||
{
|
||||
staticClass:
|
||||
"white--text mr-2 caption"
|
||||
},
|
||||
[_vm._v("fas fa-user-tag")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", [_vm._v("Active")])
|
||||
]
|
||||
],
|
||||
2
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "mr-2 WM-ActionButton",
|
||||
attrs: { color: "orange darken-1" },
|
||||
on: {
|
||||
click: function($event) {
|
||||
return _vm.changeRoleModal(item)
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{
|
||||
staticClass: "white--text mr-2 caption"
|
||||
},
|
||||
[_vm._v("fas fa-user-tag")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", [_vm._v("Role")])
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "WM-ActionButton",
|
||||
attrs: { color: "pink" },
|
||||
on: {
|
||||
click: function($event) {
|
||||
return _vm.remove(item.id)
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{
|
||||
staticClass: "white--text mr-2 caption"
|
||||
},
|
||||
[_vm._v("fas fa-times")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", [_vm._v("Remove")])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
]
|
||||
}
|
||||
}
|
||||
])
|
||||
})
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("v-divider"),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{
|
||||
staticClass: "mt-3",
|
||||
attrs: {
|
||||
row: "",
|
||||
wrap: "",
|
||||
"align-center": "",
|
||||
"justify-center": ""
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"router-link",
|
||||
{ attrs: { to: "/manage-medical-center" } },
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass:
|
||||
"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black ml-5"
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "black--text mr-2 caption" },
|
||||
[_vm._v("fas fa-chevron-left")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "black--text" }, [
|
||||
_vm._v("Back")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/MedicalCenter/OperatorList.vue":
|
||||
/*!***************************************************************!*\
|
||||
!*** ./resources/js/vue/views/MedicalCenter/OperatorList.vue ***!
|
||||
\***************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _OperatorList_vue_vue_type_template_id_a2d4b11a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./OperatorList.vue?vue&type=template&id=a2d4b11a& */ "./resources/js/vue/views/MedicalCenter/OperatorList.vue?vue&type=template&id=a2d4b11a&");
|
||||
/* harmony import */ var _OperatorList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./OperatorList.vue?vue&type=script&lang=js& */ "./resources/js/vue/views/MedicalCenter/OperatorList.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_OperatorList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_OperatorList_vue_vue_type_template_id_a2d4b11a___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_OperatorList_vue_vue_type_template_id_a2d4b11a___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "resources/js/vue/views/MedicalCenter/OperatorList.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/MedicalCenter/OperatorList.vue?vue&type=script&lang=js&":
|
||||
/*!****************************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/MedicalCenter/OperatorList.vue?vue&type=script&lang=js& ***!
|
||||
\****************************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_OperatorList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./OperatorList.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/MedicalCenter/OperatorList.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_OperatorList_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/MedicalCenter/OperatorList.vue?vue&type=template&id=a2d4b11a&":
|
||||
/*!**********************************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/MedicalCenter/OperatorList.vue?vue&type=template&id=a2d4b11a& ***!
|
||||
\**********************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_OperatorList_vue_vue_type_template_id_a2d4b11a___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./OperatorList.vue?vue&type=template&id=a2d4b11a& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/MedicalCenter/OperatorList.vue?vue&type=template&id=a2d4b11a&");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_OperatorList_vue_vue_type_template_id_a2d4b11a___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_OperatorList_vue_vue_type_template_id_a2d4b11a___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
Vendored
+381
-1
File diff suppressed because one or more lines are too long
Vendored
+168
-1
File diff suppressed because one or more lines are too long
Vendored
+864
-1
@@ -1 +1,864 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[15],{wrtg:function(t,e,a){"use strict";a.r(e);var r={data:function(){return{headers:[{sortable:!1,text:"Name",value:"name"},{sortable:!1,text:"Country",value:"country"},{sortable:!1,text:"City",value:"city"},{sortable:!1,text:"Salary",value:"salary",align:"right"}],items:[{name:"Dakota Rice",country:"Niger",city:"Oud-Tunrhout",salary:"$35,738"},{name:"Minerva Hooper",country:"Curaçao",city:"Sinaai-Waas",salary:"$23,738"},{name:"Sage Rodriguez",country:"Netherlands",city:"Overland Park",salary:"$56,142"},{name:"Philip Chanley",country:"Korea, South",city:"Gloucester",salary:"$38,735"},{name:"Doris Greene",country:"Malawi",city:"Feldkirchen in Kārnten",salary:"$63,542"},{name:"Mason Porter",country:"Chile",city:"Gloucester",salary:"$78,615"}]}}},s=a("KHd+"),n=Object(s.a)(r,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-container",{attrs:{"fill-height":"",fluid:"","grid-list-xl":""}},[a("v-layout",{attrs:{"justify-center":"",wrap:""}},[a("v-flex",{attrs:{md12:""}},[a("material-card",{attrs:{color:"green",title:"Simple Table",text:"Here is a subtitle for this table"}},[a("v-data-table",{attrs:{headers:t.headers,items:t.items,"hide-actions":""},scopedSlots:t._u([{key:"headerCell",fn:function(e){var r=e.header;return[a("span",{staticClass:"subheading font-weight-light text-success text--darken-3",domProps:{textContent:t._s(r.text)}})]}},{key:"items",fn:function(e){var r=e.item;return[a("td",[t._v(t._s(r.name))]),t._v(" "),a("td",[t._v(t._s(r.country))]),t._v(" "),a("td",[t._v(t._s(r.city))]),t._v(" "),a("td",{staticClass:"text-xs-right"},[t._v(t._s(r.salary))])]}}])})],1)],1),t._v(" "),a("v-flex",{attrs:{md12:""}},[a("material-card",{attrs:{color:"green",flat:"","full-width":"",title:"Table on Plain Background",text:"Here is a subtitle for this table"}},[a("v-data-table",{attrs:{headers:t.headers,items:t.items.slice(0,7),"hide-actions":""},scopedSlots:t._u([{key:"headerCell",fn:function(e){var r=e.header;return[a("span",{staticClass:"subheading font-weight-light text--darken-3",domProps:{textContent:t._s(r.text)}})]}},{key:"items",fn:function(e){var r=e.item;return[a("td",[t._v(t._s(r.name))]),t._v(" "),a("td",[t._v(t._s(r.country))]),t._v(" "),a("td",[t._v(t._s(r.city))]),t._v(" "),a("td",{staticClass:"text-xs-right"},[t._v(t._s(r.salary))])]}}])})],1)],1)],1)],1)},[],!1,null,null,null);e.default=n.exports}}]);
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[15],{
|
||||
|
||||
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestResult/AddEdit.vue?vue&type=script&lang=js&":
|
||||
/*!****************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestResult/AddEdit.vue?vue&type=script&lang=js& ***!
|
||||
\****************************************************************************************************************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
|
||||
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/services */ "./resources/js/vue/services/index.js");
|
||||
/* harmony import */ var _config_urls__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/config/urls */ "./resources/js/vue/config/urls.js");
|
||||
|
||||
|
||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
||||
|
||||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = ({
|
||||
data: function data() {
|
||||
return {
|
||||
result: ["Accept", "Reject"],
|
||||
testTypeNames: [],
|
||||
searchInput: "",
|
||||
form: [],
|
||||
filter: {
|
||||
test_result_id: "",
|
||||
name: "",
|
||||
unique_code: ""
|
||||
},
|
||||
formData: {
|
||||
autoclave_id: "",
|
||||
result: "",
|
||||
test_type_id: ""
|
||||
}
|
||||
};
|
||||
},
|
||||
created: function created() {
|
||||
if (this.$route.params.testResult) {
|
||||
this.filter.test_result_id = this.$route.params.testResult;
|
||||
this.selectTestType();
|
||||
}
|
||||
|
||||
this.load();
|
||||
},
|
||||
methods: {
|
||||
load: function () {
|
||||
var _load = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {
|
||||
var result;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return _services__WEBPACK_IMPORTED_MODULE_1__["ApiService"].get(_config_urls__WEBPACK_IMPORTED_MODULE_2__["urls"].listTestTypeName);
|
||||
|
||||
case 2:
|
||||
result = _context.sent;
|
||||
this.testTypeNames = result.data.data;
|
||||
|
||||
case 4:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
function load() {
|
||||
return _load.apply(this, arguments);
|
||||
}
|
||||
|
||||
return load;
|
||||
}(),
|
||||
selectTestType: function () {
|
||||
var _selectTestType = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2() {
|
||||
var result, key, keyForm, _result;
|
||||
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
_context2.next = 2;
|
||||
return _services__WEBPACK_IMPORTED_MODULE_1__["ApiService"].post(_config_urls__WEBPACK_IMPORTED_MODULE_2__["urls"].getInputs, this.filter);
|
||||
|
||||
case 2:
|
||||
result = _context2.sent;
|
||||
|
||||
if (!(result && result.status == 200)) {
|
||||
_context2.next = 12;
|
||||
break;
|
||||
}
|
||||
|
||||
this.form = result.data.data.inputs;
|
||||
this.formData.test_type_id = result.data.data.testType.id;
|
||||
|
||||
for (key in result.data.data.inputs) {
|
||||
if (result.data.data.inputs.hasOwnProperty(key)) {
|
||||
if (result.data.data.inputs[key].type == 'Form') {
|
||||
for (keyForm in result.data.data.inputs[key].children) {
|
||||
if (result.data.data.inputs[key].children.hasOwnProperty(keyForm)) {
|
||||
this.formData[result.data.data.inputs[key].children[keyForm].name] = '';
|
||||
}
|
||||
}
|
||||
} else if (result.data.data.inputs[key].type == 'Checkbox') {
|
||||
this.formData[result.data.data.inputs[key].name] = [];
|
||||
} else {
|
||||
this.formData[result.data.data.inputs[key].name] = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (!this.$route.params.testResult) {
|
||||
_context2.next = 12;
|
||||
break;
|
||||
}
|
||||
|
||||
_context2.next = 10;
|
||||
return _services__WEBPACK_IMPORTED_MODULE_1__["ApiService"].get(_config_urls__WEBPACK_IMPORTED_MODULE_2__["urls"].editTestResult(this.$route.params.testResult));
|
||||
|
||||
case 10:
|
||||
_result = _context2.sent;
|
||||
|
||||
if (_result && _result.status == 200) {
|
||||
this.formData = _result.data.data;
|
||||
}
|
||||
|
||||
case 12:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}
|
||||
}, _callee2, this);
|
||||
}));
|
||||
|
||||
function selectTestType() {
|
||||
return _selectTestType.apply(this, arguments);
|
||||
}
|
||||
|
||||
return selectTestType;
|
||||
}(),
|
||||
submitForm: function () {
|
||||
var _submitForm = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3() {
|
||||
var result;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) {
|
||||
while (1) {
|
||||
switch (_context3.prev = _context3.next) {
|
||||
case 0:
|
||||
_context3.next = 2;
|
||||
return _services__WEBPACK_IMPORTED_MODULE_1__["ApiService"].post(_config_urls__WEBPACK_IMPORTED_MODULE_2__["urls"].storeTestResult, this.formData);
|
||||
|
||||
case 2:
|
||||
result = _context3.sent;
|
||||
|
||||
if (result && result.status == 200) {
|
||||
this.$router.push({
|
||||
name: 'Dashboard'
|
||||
});
|
||||
}
|
||||
|
||||
case 4:
|
||||
case "end":
|
||||
return _context3.stop();
|
||||
}
|
||||
}
|
||||
}, _callee3, this);
|
||||
}));
|
||||
|
||||
function submitForm() {
|
||||
return _submitForm.apply(this, arguments);
|
||||
}
|
||||
|
||||
return submitForm;
|
||||
}()
|
||||
}
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestResult/AddEdit.vue?vue&type=template&id=20289233&":
|
||||
/*!********************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestResult/AddEdit.vue?vue&type=template&id=20289233& ***!
|
||||
\********************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"v-form",
|
||||
{ ref: "form" },
|
||||
[
|
||||
_c(
|
||||
"v-container",
|
||||
{ attrs: { "grid-list-xs": "" } },
|
||||
[
|
||||
_c(
|
||||
"material-card",
|
||||
{ attrs: { color: "black", title: "Submit Test Result" } },
|
||||
[
|
||||
!_vm.$route.params.testResult
|
||||
? _c(
|
||||
"v-layout",
|
||||
{
|
||||
staticClass: "px-5 my-3",
|
||||
attrs: {
|
||||
"align-center": "",
|
||||
"justify-center": "",
|
||||
wrap: ""
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", sm4: "", md4: "" } },
|
||||
[
|
||||
_c("v-autocomplete", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
"search-input": _vm.searchInput,
|
||||
items: _vm.testTypeNames,
|
||||
label: "Choose Test Type",
|
||||
color: "black"
|
||||
},
|
||||
on: {
|
||||
"update:searchInput": function($event) {
|
||||
_vm.searchInput = $event
|
||||
},
|
||||
"update:search-input": function($event) {
|
||||
_vm.searchInput = $event
|
||||
}
|
||||
},
|
||||
model: {
|
||||
value: _vm.filter.name,
|
||||
callback: function($$v) {
|
||||
_vm.$set(_vm.filter, "name", $$v)
|
||||
},
|
||||
expression: "filter.name"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", sm3: "", md3: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
name: "testcode",
|
||||
label: "Or Enter Test Unique Code",
|
||||
color: "black"
|
||||
},
|
||||
model: {
|
||||
value: _vm.filter.unique_code,
|
||||
callback: function($$v) {
|
||||
_vm.$set(_vm.filter, "unique_code", $$v)
|
||||
},
|
||||
expression: "filter.unique_code"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{
|
||||
staticClass:
|
||||
"text-xs-center text-sm-center text-md-center",
|
||||
attrs: { xs12: "", md2: "", sm2: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass:
|
||||
"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black",
|
||||
staticStyle: { padding: "10px 60px" },
|
||||
on: { click: _vm.selectTestType }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "black--text mr-2 caption" },
|
||||
[_vm._v("fas fa-chevron-right")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "black--text" }, [
|
||||
_vm._v("GO")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
: _vm._e(),
|
||||
_vm._v(" "),
|
||||
!_vm.$route.params.testResult
|
||||
? _c(
|
||||
"v-layout",
|
||||
{ staticClass: "px-5 my-3", attrs: { row: "", wrap: "" } },
|
||||
[_c("v-divider")],
|
||||
1
|
||||
)
|
||||
: _vm._e(),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{
|
||||
staticClass: "px-5 my-3",
|
||||
attrs: { "align-center": "", "justify-center": "", wrap: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", sm4: "", md3: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
name: "autoclave",
|
||||
label: "ID AutoClave",
|
||||
color: "black"
|
||||
},
|
||||
model: {
|
||||
value: _vm.formData.autoclave_id,
|
||||
callback: function($$v) {
|
||||
_vm.$set(_vm.formData, "autoclave_id", $$v)
|
||||
},
|
||||
expression: "formData.autoclave_id"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", sm4: "", md3: "" } },
|
||||
[
|
||||
_c("v-select", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
items: _vm.result,
|
||||
label: "Resualt",
|
||||
color: "black"
|
||||
},
|
||||
model: {
|
||||
value: _vm.formData.result,
|
||||
callback: function($$v) {
|
||||
_vm.$set(_vm.formData, "result", $$v)
|
||||
},
|
||||
expression: "formData.result"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_vm._l(_vm.form, function(item, key) {
|
||||
return _c(
|
||||
"v-flex",
|
||||
{ key: key, class: ["pa-2", item.size] },
|
||||
[
|
||||
item.type == "Text"
|
||||
? _c("v-text-field", {
|
||||
attrs: { label: item.name, color: "black" },
|
||||
model: {
|
||||
value: _vm.formData[item.name],
|
||||
callback: function($$v) {
|
||||
_vm.$set(_vm.formData, item.name, $$v)
|
||||
},
|
||||
expression: "formData[item.name]"
|
||||
}
|
||||
})
|
||||
: _vm._e(),
|
||||
_vm._v(" "),
|
||||
item.type == "Select"
|
||||
? _c("v-select", {
|
||||
attrs: {
|
||||
items: item.options,
|
||||
label: item.name,
|
||||
color: "black",
|
||||
"item-text": "title"
|
||||
},
|
||||
model: {
|
||||
value: _vm.formData[item.name],
|
||||
callback: function($$v) {
|
||||
_vm.$set(_vm.formData, item.name, $$v)
|
||||
},
|
||||
expression: "formData[item.name]"
|
||||
}
|
||||
})
|
||||
: _vm._e(),
|
||||
_vm._v(" "),
|
||||
item.type == "Checkbox"
|
||||
? _c(
|
||||
"v-container",
|
||||
{ attrs: { fluid: "" } },
|
||||
[
|
||||
_c("p", [_vm._v(_vm._s(item.name))]),
|
||||
_vm._v(" "),
|
||||
_vm._l(item.options, function(
|
||||
optionValue,
|
||||
keyOption
|
||||
) {
|
||||
return _c("v-checkbox", {
|
||||
key: keyOption,
|
||||
attrs: {
|
||||
label: optionValue.title,
|
||||
value: optionValue.title
|
||||
},
|
||||
model: {
|
||||
value: _vm.formData[item.name],
|
||||
callback: function($$v) {
|
||||
_vm.$set(_vm.formData, item.name, $$v)
|
||||
},
|
||||
expression: "formData[item.name]"
|
||||
}
|
||||
})
|
||||
})
|
||||
],
|
||||
2
|
||||
)
|
||||
: _vm._e(),
|
||||
_vm._v(" "),
|
||||
item.type == "Form"
|
||||
? [
|
||||
_c(
|
||||
"v-layout",
|
||||
{ attrs: { row: "", wrap: "" } },
|
||||
[
|
||||
_c("h3", [_vm._v(_vm._s(item.name))]),
|
||||
_vm._v(" "),
|
||||
_vm._l(item.children, function(
|
||||
children,
|
||||
keyChildren
|
||||
) {
|
||||
return _c(
|
||||
"v-flex",
|
||||
{
|
||||
key: keyChildren,
|
||||
class: ["pa-2", children.size]
|
||||
},
|
||||
[
|
||||
children.type == "Text"
|
||||
? _c("v-text-field", {
|
||||
attrs: {
|
||||
label: children.name,
|
||||
color: "black"
|
||||
},
|
||||
model: {
|
||||
value:
|
||||
_vm.formData[children.name],
|
||||
callback: function($$v) {
|
||||
_vm.$set(
|
||||
_vm.formData,
|
||||
children.name,
|
||||
$$v
|
||||
)
|
||||
},
|
||||
expression:
|
||||
"formData[children.name]"
|
||||
}
|
||||
})
|
||||
: _vm._e(),
|
||||
_vm._v(" "),
|
||||
children.type == "Select"
|
||||
? _c("v-select", {
|
||||
attrs: {
|
||||
items: children.options,
|
||||
label: children.name,
|
||||
color: "black",
|
||||
"item-text": "title"
|
||||
},
|
||||
model: {
|
||||
value:
|
||||
_vm.formData[children.name],
|
||||
callback: function($$v) {
|
||||
_vm.$set(
|
||||
_vm.formData,
|
||||
children.name,
|
||||
$$v
|
||||
)
|
||||
},
|
||||
expression:
|
||||
"formData[children.name]"
|
||||
}
|
||||
})
|
||||
: _vm._e(),
|
||||
_vm._v(" "),
|
||||
children.type == "Checkbox"
|
||||
? _c(
|
||||
"v-container",
|
||||
{ attrs: { fluid: "" } },
|
||||
[
|
||||
_c("p", [
|
||||
_vm._v(_vm._s(children.name))
|
||||
]),
|
||||
_vm._v(" "),
|
||||
_vm._l(
|
||||
children.options,
|
||||
function(
|
||||
optionValue,
|
||||
keyOption
|
||||
) {
|
||||
return _c("v-checkbox", {
|
||||
key: keyOption,
|
||||
attrs: {
|
||||
label:
|
||||
optionValue.title,
|
||||
value: optionValue.title
|
||||
},
|
||||
model: {
|
||||
value:
|
||||
_vm.formData[
|
||||
children.name
|
||||
],
|
||||
callback: function(
|
||||
$$v
|
||||
) {
|
||||
_vm.$set(
|
||||
_vm.formData,
|
||||
children.name,
|
||||
$$v
|
||||
)
|
||||
},
|
||||
expression:
|
||||
"formData[children.name]"
|
||||
}
|
||||
})
|
||||
}
|
||||
)
|
||||
],
|
||||
2
|
||||
)
|
||||
: _vm._e()
|
||||
],
|
||||
1
|
||||
)
|
||||
})
|
||||
],
|
||||
2
|
||||
)
|
||||
]
|
||||
: _vm._e()
|
||||
],
|
||||
2
|
||||
)
|
||||
})
|
||||
],
|
||||
2
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{ staticClass: "px-5 my-3", attrs: { row: "", wrap: "" } },
|
||||
[_c("v-divider")],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{
|
||||
staticClass: "px-5 mt-2",
|
||||
attrs: { "align-center": "", "justify-center": "", wrap: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "WM-CyanBlueGradient-BG",
|
||||
staticStyle: { padding: "10px 60px" },
|
||||
on: { click: _vm.submitForm }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "white--text mr-2 caption" },
|
||||
[_vm._v("fas fa-check")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "white--text" }, [
|
||||
_vm._v("SAVE")
|
||||
])
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"router-link",
|
||||
{ attrs: { to: { name: "Dashboard" } } },
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass:
|
||||
"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black ml-5"
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "black--text mr-2 caption" },
|
||||
[_vm._v("fas fa-chevron-left")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "black--text" }, [
|
||||
_vm._v("Back")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/TestResult/AddEdit.vue":
|
||||
/*!*******************************************************!*\
|
||||
!*** ./resources/js/vue/views/TestResult/AddEdit.vue ***!
|
||||
\*******************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _AddEdit_vue_vue_type_template_id_20289233___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AddEdit.vue?vue&type=template&id=20289233& */ "./resources/js/vue/views/TestResult/AddEdit.vue?vue&type=template&id=20289233&");
|
||||
/* harmony import */ var _AddEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AddEdit.vue?vue&type=script&lang=js& */ "./resources/js/vue/views/TestResult/AddEdit.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_AddEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_AddEdit_vue_vue_type_template_id_20289233___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_AddEdit_vue_vue_type_template_id_20289233___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "resources/js/vue/views/TestResult/AddEdit.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/TestResult/AddEdit.vue?vue&type=script&lang=js&":
|
||||
/*!********************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/TestResult/AddEdit.vue?vue&type=script&lang=js& ***!
|
||||
\********************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AddEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./AddEdit.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestResult/AddEdit.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AddEdit_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/TestResult/AddEdit.vue?vue&type=template&id=20289233&":
|
||||
/*!**************************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/TestResult/AddEdit.vue?vue&type=template&id=20289233& ***!
|
||||
\**************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_AddEdit_vue_vue_type_template_id_20289233___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./AddEdit.vue?vue&type=template&id=20289233& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestResult/AddEdit.vue?vue&type=template&id=20289233&");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_AddEdit_vue_vue_type_template_id_20289233___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_AddEdit_vue_vue_type_template_id_20289233___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
Vendored
+691
-1
File diff suppressed because one or more lines are too long
Vendored
+289
-1
@@ -1 +1,289 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[17],{HOOM:function(t,a,e){"use strict";e.r(a);var s=e("o0o1"),r=e.n(s),l=e("Y8XJ"),i=e("85lN");function n(t,a,e,s,r,l,i){try{var n=t[l](i),c=n.value}catch(t){return void e(t)}n.done?a(c):Promise.resolve(c).then(s,r)}var c={data:function(){return{headers:[{sortable:!1,text:"AutoClaveId",value:"name"},{sortable:!1,text:"Hospital",value:"Hospital"},{sortable:!1,text:"User",value:"Users"},{sortable:!1,text:"Result",value:"result"},{sortable:!1,text:"Date",value:"date"},{sortable:!1,text:"Action",value:"action",align:"right"}],items:[],currentPage:1,lastPage:1}},created:function(){this.load()},methods:{load:function(){var t,a=(t=r.a.mark(function t(){var a;return r.a.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,l.a.get(i.a.listTestResult);case 2:(a=t.sent)&&200==a.status&&(this.items=a.data.data.data,this.currentPage=a.data.data.current_page,this.lastPage=a.data.data.last_page);case 4:case"end":return t.stop()}},t,this)}),function(){var a=this,e=arguments;return new Promise(function(s,r){var l=t.apply(a,e);function i(t){n(l,s,r,i,c,"next",t)}function c(t){n(l,s,r,i,c,"throw",t)}i(void 0)})});return function(){return a.apply(this,arguments)}}()}},o=e("KHd+"),v=Object(o.a)(c,function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("div",{},[e("v-container",{attrs:{fluid:""}},[e("material-card",{attrs:{color:"black",title:"All Test Resualt",text:""}},[e("v-layout",{staticClass:"my-3",attrs:{"align-center":"",wrap:""}},[e("v-flex",{attrs:{xs12:"",md2:"",sm2:""}},[e("v-text-field",{staticClass:"pa-2",attrs:{label:"Name",color:"black"}})],1),t._v(" "),e("v-flex",{attrs:{xs12:"",md2:"",sm2:""}},[e("v-text-field",{staticClass:"pa-2",attrs:{label:"Date",color:"black"}})],1),t._v(" "),e("v-flex",{attrs:{xs12:"",md2:"",sm2:""}},[e("v-text-field",{staticClass:"pa-2",attrs:{label:"Hospital",color:"black"}})],1),t._v(" "),e("v-flex",{attrs:{xs12:"",md2:"",sm2:""}},[e("v-btn",{staticClass:"WM-CyanBlueGradient-BG",staticStyle:{padding:"10px 60px"}},[e("v-icon",{staticClass:"white--text mr-2 caption"},[t._v("fas fa-search")]),t._v(" "),e("span",{staticClass:"white--text"},[t._v("Filter")])],1)],1)],1),t._v(" "),e("v-divider"),t._v(" "),e("v-layout",{staticClass:"my-3",attrs:{"align-center":"",wrap:""}},[e("v-flex",{attrs:{md12:""}},[e("v-data-table",{attrs:{headers:t.headers,items:t.items,"hide-actions":""},scopedSlots:t._u([{key:"headerCell",fn:function(a){var s=a.header;return[e("span",{staticClass:"subheading font-weight-light text-white text--darken-3",domProps:{textContent:t._s(s.text)}})]}},{key:"items",fn:function(a){var s=a.item;return[e("td",{staticClass:"headline font-weight-light"},[t._v(t._s(s.autoclave_id))]),t._v(" "),e("td",{staticClass:"title font-weight-light"},[t._v(t._s(s.user.medical_center.name))]),t._v(" "),e("td",{staticClass:"title font-weight-light"},[t._v(t._s(s.user.name))]),t._v(" "),e("td",{staticClass:"title font-weight-light"},[t._v(t._s(s.result))]),t._v(" "),e("td",{staticClass:"title font-weight-light"},[t._v(t._s(s.created_at))]),t._v(" "),e("td",{staticClass:"text-xs-right"},[e("v-btn",{staticClass:"mr-2",attrs:{color:"black"}},[e("v-icon",{staticClass:"white--text mr-1 caption"},[t._v("fas fa-folder")]),t._v(" "),e("span",[t._v("Archive")])],1),t._v(" "),e("v-btn",{staticClass:"mr-2",attrs:{color:"cyan"}},[e("v-icon",{staticClass:"white--text mr-1 caption"},[t._v("fas fa-pen")]),t._v(" "),e("span",[t._v("Edit")])],1)],1)]}}])})],1)],1),t._v(" "),e("v-divider"),t._v(" "),t.lastPage>1?e("div",{staticClass:"text-xs-center"},[e("v-pagination",{attrs:{length:t.lastPage,"total-visible":6},model:{value:t.currentPage,callback:function(a){t.currentPage=a},expression:"currentPage"}})],1):t._e(),t._v(" "),e("v-layout",{staticClass:"mt-3",attrs:{row:"",wrap:"","align-center":"","justify-center":""}},[e("router-link",{attrs:{to:"/dashboard"}},[e("v-btn",{staticClass:"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black ml-5"},[e("v-icon",{staticClass:"black--text mr-2 caption"},[t._v("fas fa-chevron-left")]),t._v(" "),e("span",{staticClass:"black--text"},[t._v("Back")])],1)],1)],1)],1)],1)],1)},[],!1,null,"4183462b",null);a.default=v.exports}}]);
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[17],{
|
||||
|
||||
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/NotWorking/Upgrade.vue?vue&type=template&id=405aec93&":
|
||||
/*!********************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/NotWorking/Upgrade.vue?vue&type=template&id=405aec93& ***!
|
||||
\********************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"v-container",
|
||||
[
|
||||
_c(
|
||||
"v-layout",
|
||||
{ attrs: { "justify-center": "" } },
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", sm10: "", md8: "" } },
|
||||
[
|
||||
_c(
|
||||
"material-card",
|
||||
{
|
||||
attrs: {
|
||||
color: "primary",
|
||||
title: "Vue Material Dashboard PRO",
|
||||
text:
|
||||
"Are you looking for more components? Please check our Premium Version of Vue Material Dashboard."
|
||||
}
|
||||
},
|
||||
[
|
||||
_c("table", { staticClass: "v-table" }, [
|
||||
_c("thead", [
|
||||
_c("tr", [
|
||||
_c("th"),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"th",
|
||||
{ staticClass: "subheading font-weight-light" },
|
||||
[_vm._v("Free")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"th",
|
||||
{ staticClass: "subheading font-weight-light" },
|
||||
[_vm._v("PRO")]
|
||||
)
|
||||
])
|
||||
]),
|
||||
_vm._v(" "),
|
||||
_c("tbody", { staticClass: "text-xs-center" }, [
|
||||
_c("tr", [
|
||||
_c(
|
||||
"th",
|
||||
{
|
||||
staticClass:
|
||||
"text-xs-left font-weight-light subheading"
|
||||
},
|
||||
[_vm._v("Components")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("td", [_vm._v("60")]),
|
||||
_vm._v(" "),
|
||||
_c("td", [_vm._v("200")])
|
||||
]),
|
||||
_vm._v(" "),
|
||||
_c("tr", [
|
||||
_c(
|
||||
"th",
|
||||
{
|
||||
staticClass:
|
||||
"text-xs-left font-weight-light subheading"
|
||||
},
|
||||
[_vm._v("Plugins")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("td", [_vm._v("2")]),
|
||||
_vm._v(" "),
|
||||
_c("td", [_vm._v("15")])
|
||||
]),
|
||||
_vm._v(" "),
|
||||
_c("tr", [
|
||||
_c(
|
||||
"th",
|
||||
{
|
||||
staticClass:
|
||||
"text-xs-left font-weight-light subheading"
|
||||
},
|
||||
[_vm._v("Example Pages")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("td", [_vm._v("3")]),
|
||||
_vm._v(" "),
|
||||
_c("td", [_vm._v("27")])
|
||||
]),
|
||||
_vm._v(" "),
|
||||
_c("tr", [
|
||||
_c(
|
||||
"th",
|
||||
{
|
||||
staticClass:
|
||||
"text-xs-left font-weight-light subheading"
|
||||
},
|
||||
[_vm._v("Login, Register, Pricing, Lock Pages")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
[
|
||||
_c("v-icon", { attrs: { color: "error" } }, [
|
||||
_vm._v("mdi-close")
|
||||
])
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
[
|
||||
_c("v-icon", { attrs: { color: "success" } }, [
|
||||
_vm._v("mdi-check")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
]),
|
||||
_vm._v(" "),
|
||||
_c("tr", [
|
||||
_c(
|
||||
"th",
|
||||
{
|
||||
staticClass:
|
||||
"text-xs-left font-weight-light subheading"
|
||||
},
|
||||
[_vm._v("Premium Support")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
[
|
||||
_c("v-icon", { attrs: { color: "error" } }, [
|
||||
_vm._v("mdi-close")
|
||||
])
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
[
|
||||
_c("v-icon", { attrs: { color: "success" } }, [
|
||||
_vm._v("mdi-check")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
]),
|
||||
_vm._v(" "),
|
||||
_c("tr", [
|
||||
_c("th"),
|
||||
_vm._v(" "),
|
||||
_c("td", [_vm._v("Free")]),
|
||||
_vm._v(" "),
|
||||
_c("td", [_vm._v("Just $59")])
|
||||
]),
|
||||
_vm._v(" "),
|
||||
_c("tr", [
|
||||
_c("th"),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass:
|
||||
"subheading white--text font-weight-light",
|
||||
attrs: {
|
||||
round: "",
|
||||
large: "",
|
||||
color: "grey",
|
||||
disabled: ""
|
||||
}
|
||||
},
|
||||
[_vm._v("Current Version")]
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass:
|
||||
"subheading white--text font-weight-light",
|
||||
attrs: { round: "", large: "", color: "cyan" }
|
||||
},
|
||||
[_vm._v("Upgrade to Pro")]
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
])
|
||||
])
|
||||
])
|
||||
]
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/NotWorking/Upgrade.vue":
|
||||
/*!*******************************************************!*\
|
||||
!*** ./resources/js/vue/views/NotWorking/Upgrade.vue ***!
|
||||
\*******************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _Upgrade_vue_vue_type_template_id_405aec93___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Upgrade.vue?vue&type=template&id=405aec93& */ "./resources/js/vue/views/NotWorking/Upgrade.vue?vue&type=template&id=405aec93&");
|
||||
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
|
||||
|
||||
var script = {}
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_1__["default"])(
|
||||
script,
|
||||
_Upgrade_vue_vue_type_template_id_405aec93___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_Upgrade_vue_vue_type_template_id_405aec93___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "resources/js/vue/views/NotWorking/Upgrade.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/NotWorking/Upgrade.vue?vue&type=template&id=405aec93&":
|
||||
/*!**************************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/NotWorking/Upgrade.vue?vue&type=template&id=405aec93& ***!
|
||||
\**************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Upgrade_vue_vue_type_template_id_405aec93___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./Upgrade.vue?vue&type=template&id=405aec93& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/NotWorking/Upgrade.vue?vue&type=template&id=405aec93&");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Upgrade_vue_vue_type_template_id_405aec93___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Upgrade_vue_vue_type_template_id_405aec93___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
Vendored
+791
-1
@@ -1 +1,791 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[18],{DWHD:function(t,e,s){"use strict";s.r(e);var a=s("KHd+"),i=Object(a.a)({},function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("v-container",[s("v-layout",{attrs:{"justify-center":""}},[s("v-flex",{attrs:{xs12:"",sm10:"",md8:""}},[s("material-card",{attrs:{color:"primary",title:"Vue Material Dashboard PRO",text:"Are you looking for more components? Please check our Premium Version of Vue Material Dashboard."}},[s("table",{staticClass:"v-table"},[s("thead",[s("tr",[s("th"),t._v(" "),s("th",{staticClass:"subheading font-weight-light"},[t._v("Free")]),t._v(" "),s("th",{staticClass:"subheading font-weight-light"},[t._v("PRO")])])]),t._v(" "),s("tbody",{staticClass:"text-xs-center"},[s("tr",[s("th",{staticClass:"text-xs-left font-weight-light subheading"},[t._v("Components")]),t._v(" "),s("td",[t._v("60")]),t._v(" "),s("td",[t._v("200")])]),t._v(" "),s("tr",[s("th",{staticClass:"text-xs-left font-weight-light subheading"},[t._v("Plugins")]),t._v(" "),s("td",[t._v("2")]),t._v(" "),s("td",[t._v("15")])]),t._v(" "),s("tr",[s("th",{staticClass:"text-xs-left font-weight-light subheading"},[t._v("Example Pages")]),t._v(" "),s("td",[t._v("3")]),t._v(" "),s("td",[t._v("27")])]),t._v(" "),s("tr",[s("th",{staticClass:"text-xs-left font-weight-light subheading"},[t._v("Login, Register, Pricing, Lock Pages")]),t._v(" "),s("td",[s("v-icon",{attrs:{color:"error"}},[t._v("mdi-close")])],1),t._v(" "),s("td",[s("v-icon",{attrs:{color:"success"}},[t._v("mdi-check")])],1)]),t._v(" "),s("tr",[s("th",{staticClass:"text-xs-left font-weight-light subheading"},[t._v("Premium Support")]),t._v(" "),s("td",[s("v-icon",{attrs:{color:"error"}},[t._v("mdi-close")])],1),t._v(" "),s("td",[s("v-icon",{attrs:{color:"success"}},[t._v("mdi-check")])],1)]),t._v(" "),s("tr",[s("th"),t._v(" "),s("td",[t._v("Free")]),t._v(" "),s("td",[t._v("Just $59")])]),t._v(" "),s("tr",[s("th"),t._v(" "),s("td",[s("v-btn",{staticClass:"subheading white--text font-weight-light",attrs:{round:"",large:"",color:"grey",disabled:""}},[t._v("Current Version")])],1),t._v(" "),s("td",[s("v-btn",{staticClass:"subheading white--text font-weight-light",attrs:{round:"",large:"",color:"cyan"}},[t._v("Upgrade to Pro")])],1)])])])])],1)],1)],1)},[],!1,null,null,null);e.default=i.exports}}]);
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[18],{
|
||||
|
||||
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/User/List.vue?vue&type=script&lang=js&":
|
||||
/*!*******************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/User/List.vue?vue&type=script&lang=js& ***!
|
||||
\*******************************************************************************************************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
|
||||
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _config_urls__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/config/urls */ "./resources/js/vue/config/urls.js");
|
||||
/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/services */ "./resources/js/vue/services/index.js");
|
||||
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
|
||||
|
||||
|
||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
||||
|
||||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
||||
|
||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = ({
|
||||
data: function data() {
|
||||
return {
|
||||
headers: [{
|
||||
sortable: true,
|
||||
text: 'Operator',
|
||||
value: 'name'
|
||||
}, {
|
||||
sortable: false,
|
||||
text: 'Date',
|
||||
value: 'date'
|
||||
}, {
|
||||
sortable: false,
|
||||
text: 'Role',
|
||||
value: 'role'
|
||||
}, {
|
||||
sortable: true,
|
||||
text: 'Hospital',
|
||||
value: 'hospital'
|
||||
}, {
|
||||
sortable: false,
|
||||
text: 'Action',
|
||||
value: 'action',
|
||||
align: 'right'
|
||||
}],
|
||||
items: []
|
||||
};
|
||||
},
|
||||
created: function created() {
|
||||
this.load();
|
||||
},
|
||||
methods: _objectSpread({
|
||||
load: function () {
|
||||
var _load = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {
|
||||
var result;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
_context.next = 2;
|
||||
return _services__WEBPACK_IMPORTED_MODULE_2__["ApiService"].get(_config_urls__WEBPACK_IMPORTED_MODULE_1__["urls"].listOpertor);
|
||||
|
||||
case 2:
|
||||
result = _context.sent;
|
||||
|
||||
if (result && result.status == 200) {
|
||||
this.items = result.data.data.data;
|
||||
} else {
|
||||
this.$router.push({
|
||||
name: "Dashboard"
|
||||
});
|
||||
}
|
||||
|
||||
case 4:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
function load() {
|
||||
return _load.apply(this, arguments);
|
||||
}
|
||||
|
||||
return load;
|
||||
}(),
|
||||
changeStatus: function () {
|
||||
var _changeStatus = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2(userId) {
|
||||
var result, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, user;
|
||||
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
_context2.next = 2;
|
||||
return _services__WEBPACK_IMPORTED_MODULE_2__["ApiService"].post(_config_urls__WEBPACK_IMPORTED_MODULE_1__["urls"].changeStatusUser(userId));
|
||||
|
||||
case 2:
|
||||
result = _context2.sent;
|
||||
|
||||
if (!(result && result.status == 200)) {
|
||||
_context2.next = 25;
|
||||
break;
|
||||
}
|
||||
|
||||
_iteratorNormalCompletion = true;
|
||||
_didIteratorError = false;
|
||||
_iteratorError = undefined;
|
||||
_context2.prev = 7;
|
||||
|
||||
for (_iterator = this.items[Symbol.iterator](); !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true) {
|
||||
user = _step.value;
|
||||
|
||||
if (user.id == userId) {
|
||||
user.status = result.data.data.status;
|
||||
}
|
||||
}
|
||||
|
||||
_context2.next = 15;
|
||||
break;
|
||||
|
||||
case 11:
|
||||
_context2.prev = 11;
|
||||
_context2.t0 = _context2["catch"](7);
|
||||
_didIteratorError = true;
|
||||
_iteratorError = _context2.t0;
|
||||
|
||||
case 15:
|
||||
_context2.prev = 15;
|
||||
_context2.prev = 16;
|
||||
|
||||
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
||||
_iterator.return();
|
||||
}
|
||||
|
||||
case 18:
|
||||
_context2.prev = 18;
|
||||
|
||||
if (!_didIteratorError) {
|
||||
_context2.next = 21;
|
||||
break;
|
||||
}
|
||||
|
||||
throw _iteratorError;
|
||||
|
||||
case 21:
|
||||
return _context2.finish(18);
|
||||
|
||||
case 22:
|
||||
return _context2.finish(15);
|
||||
|
||||
case 23:
|
||||
_context2.next = 26;
|
||||
break;
|
||||
|
||||
case 25:
|
||||
this.$router.push({
|
||||
name: "Dashboard"
|
||||
});
|
||||
|
||||
case 26:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}
|
||||
}, _callee2, this, [[7, 11, 15, 23], [16,, 18, 22]]);
|
||||
}));
|
||||
|
||||
function changeStatus(_x) {
|
||||
return _changeStatus.apply(this, arguments);
|
||||
}
|
||||
|
||||
return changeStatus;
|
||||
}()
|
||||
}, Object(vuex__WEBPACK_IMPORTED_MODULE_3__["mapMutations"])("modal", ["changeCurrentModal"]), {
|
||||
changeRoleModal: function changeRoleModal(user) {
|
||||
this.changeCurrentModal({
|
||||
modal: "modal-user-role",
|
||||
properties: {
|
||||
user: user
|
||||
}
|
||||
});
|
||||
},
|
||||
remove: function () {
|
||||
var _remove = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee3(userId) {
|
||||
var result, key;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee3$(_context3) {
|
||||
while (1) {
|
||||
switch (_context3.prev = _context3.next) {
|
||||
case 0:
|
||||
_context3.next = 2;
|
||||
return _services__WEBPACK_IMPORTED_MODULE_2__["ApiService"].delete(_config_urls__WEBPACK_IMPORTED_MODULE_1__["urls"].deleteUser(userId));
|
||||
|
||||
case 2:
|
||||
result = _context3.sent;
|
||||
|
||||
if (result && result.status == 200) {
|
||||
for (key in this.items) {
|
||||
if (this.items.hasOwnProperty(key) && this.items[key].id == userId) {
|
||||
this.items.splice(key, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
case 4:
|
||||
case "end":
|
||||
return _context3.stop();
|
||||
}
|
||||
}
|
||||
}, _callee3, this);
|
||||
}));
|
||||
|
||||
function remove(_x2) {
|
||||
return _remove.apply(this, arguments);
|
||||
}
|
||||
|
||||
return remove;
|
||||
}()
|
||||
}),
|
||||
computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_3__["mapGetters"])("modal", ["getModalResult"])),
|
||||
watch: {
|
||||
getModalResult: function getModalResult(user) {
|
||||
var _iteratorNormalCompletion2 = true;
|
||||
var _didIteratorError2 = false;
|
||||
var _iteratorError2 = undefined;
|
||||
|
||||
try {
|
||||
for (var _iterator2 = this.items[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true) {
|
||||
var userList = _step2.value;
|
||||
|
||||
if (userList.id == user.id) {
|
||||
userList.roles = user.roles;
|
||||
}
|
||||
}
|
||||
} catch (err) {
|
||||
_didIteratorError2 = true;
|
||||
_iteratorError2 = err;
|
||||
} finally {
|
||||
try {
|
||||
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
|
||||
_iterator2.return();
|
||||
}
|
||||
} finally {
|
||||
if (_didIteratorError2) {
|
||||
throw _iteratorError2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/User/List.vue?vue&type=template&id=5b60cb2c&":
|
||||
/*!***********************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/User/List.vue?vue&type=template&id=5b60cb2c& ***!
|
||||
\***********************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"v-container",
|
||||
{ attrs: { "grid-list-xs": "" } },
|
||||
[
|
||||
_c(
|
||||
"material-card",
|
||||
{ attrs: { color: "black", title: "Member List" } },
|
||||
[
|
||||
_c(
|
||||
"v-layout",
|
||||
{
|
||||
staticClass: "px-5 mb-3",
|
||||
attrs: { "align-center": "", "justify-center": "", wrap: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: { color: "black", name: "name", label: "Name" }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: { color: "black", name: "date", label: "Date" }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
color: "black",
|
||||
name: "hospital",
|
||||
label: "Hospital"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "WM-CyanBlueGradient-BG",
|
||||
staticStyle: { padding: "10px 60px" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "white--text mr-2 caption" },
|
||||
[_vm._v("fas fa-search")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "white--text" }, [
|
||||
_vm._v("Filter")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("v-layout", { staticClass: "px-4 my-3" }, [_c("v-divider")], 1),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{
|
||||
staticClass: "px-5 my-2",
|
||||
attrs: { "align-center": "", "justify-center": "", wrap: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md12: "", sm12: "" } },
|
||||
[
|
||||
_c("v-data-table", {
|
||||
attrs: {
|
||||
headers: _vm.headers,
|
||||
items: _vm.items,
|
||||
"hide-actions": ""
|
||||
},
|
||||
scopedSlots: _vm._u([
|
||||
{
|
||||
key: "headerCell",
|
||||
fn: function(ref) {
|
||||
var header = ref.header
|
||||
return [
|
||||
_c("span", {
|
||||
staticClass:
|
||||
"subheading font-weight-light text-white text--darken-3",
|
||||
domProps: { textContent: _vm._s(header.text) }
|
||||
})
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
key: "items",
|
||||
fn: function(ref) {
|
||||
var item = ref.item
|
||||
return [
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "headline font-weight-light" },
|
||||
[_vm._v(_vm._s(item.name))]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "title font-weight-light" },
|
||||
[_vm._v(_vm._s(item.created_at))]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "title font-weight-light" },
|
||||
_vm._l(item.roles, function(role, key) {
|
||||
return _c("span", { key: key }, [
|
||||
_vm._v(_vm._s(role.name))
|
||||
])
|
||||
}),
|
||||
0
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "title font-weight-light" },
|
||||
[_vm._v(_vm._s(item.medical_center.name))]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "text-xs-right" },
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "mr-2 WM-ActionButton",
|
||||
attrs: {
|
||||
color:
|
||||
item.status == "Active"
|
||||
? "red"
|
||||
: "green"
|
||||
},
|
||||
on: {
|
||||
click: function($event) {
|
||||
return _vm.changeStatus(item.id)
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
item.status == "Active"
|
||||
? [
|
||||
_c(
|
||||
"v-icon",
|
||||
{
|
||||
staticClass:
|
||||
"white--text mr-2 caption"
|
||||
},
|
||||
[_vm._v("fas fa-user-tag")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
item.status == "Active"
|
||||
? _c("span", [_vm._v("Susspended")])
|
||||
: _vm._e()
|
||||
]
|
||||
: [
|
||||
_c(
|
||||
"v-icon",
|
||||
{
|
||||
staticClass:
|
||||
"white--text mr-2 caption"
|
||||
},
|
||||
[_vm._v("fas fa-user-tag")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", [_vm._v("Active")])
|
||||
]
|
||||
],
|
||||
2
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "mr-2 WM-ActionButton",
|
||||
attrs: { color: "orange darken-1" },
|
||||
on: {
|
||||
click: function($event) {
|
||||
return _vm.changeRoleModal(item)
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{
|
||||
staticClass: "white--text mr-2 caption"
|
||||
},
|
||||
[_vm._v("fas fa-user-tag")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", [_vm._v("Role")])
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "WM-ActionButton",
|
||||
attrs: { color: "pink" },
|
||||
on: {
|
||||
click: function($event) {
|
||||
return _vm.remove(item.id)
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{
|
||||
staticClass: "white--text mr-2 caption"
|
||||
},
|
||||
[_vm._v("fas fa-times")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", [_vm._v("Remove")])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
]
|
||||
}
|
||||
}
|
||||
])
|
||||
})
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("v-layout", { staticClass: "px-4 my-3" }, [_c("v-divider")], 1),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{
|
||||
staticClass: "mt-3",
|
||||
attrs: {
|
||||
row: "",
|
||||
wrap: "",
|
||||
"align-center": "",
|
||||
"justify-center": ""
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"router-link",
|
||||
{ attrs: { to: { name: "Dashboard" } } },
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass:
|
||||
"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black ml-5"
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "black--text mr-2 caption" },
|
||||
[_vm._v("fas fa-chevron-left")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "black--text" }, [
|
||||
_vm._v("Back")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/User/List.vue":
|
||||
/*!**********************************************!*\
|
||||
!*** ./resources/js/vue/views/User/List.vue ***!
|
||||
\**********************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _List_vue_vue_type_template_id_5b60cb2c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./List.vue?vue&type=template&id=5b60cb2c& */ "./resources/js/vue/views/User/List.vue?vue&type=template&id=5b60cb2c&");
|
||||
/* harmony import */ var _List_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./List.vue?vue&type=script&lang=js& */ "./resources/js/vue/views/User/List.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_List_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_List_vue_vue_type_template_id_5b60cb2c___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_List_vue_vue_type_template_id_5b60cb2c___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "resources/js/vue/views/User/List.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/User/List.vue?vue&type=script&lang=js&":
|
||||
/*!***********************************************************************!*\
|
||||
!*** ./resources/js/vue/views/User/List.vue?vue&type=script&lang=js& ***!
|
||||
\***********************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./List.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/User/List.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/User/List.vue?vue&type=template&id=5b60cb2c&":
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/User/List.vue?vue&type=template&id=5b60cb2c& ***!
|
||||
\*****************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_template_id_5b60cb2c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./List.vue?vue&type=template&id=5b60cb2c& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/User/List.vue?vue&type=template&id=5b60cb2c&");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_template_id_5b60cb2c___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_template_id_5b60cb2c___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
Vendored
+538
-1
@@ -1 +1,538 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[19],{"9jYi":function(t,s,e){"use strict";e.r(s);var a={},l=e("KHd+"),r=Object(l.a)(a,function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("v-container",{attrs:{"fill-height":"",fluid:"","grid-list-xl":""}},[e("v-layout",{attrs:{"justify-center":"",wrap:""}},[e("v-flex",{attrs:{xs12:"",md8:""}},[e("material-card",{attrs:{color:"green",title:"Edit Profile",text:"Complete your profile"}},[e("v-form",[e("v-container",{attrs:{"py-0":""}},[e("v-layout",{attrs:{wrap:""}},[e("v-flex",{attrs:{xs12:"",md4:""}},[e("v-text-field",{attrs:{label:"Company (disabled)",disabled:""}})],1),t._v(" "),e("v-flex",{attrs:{xs12:"",md4:""}},[e("v-text-field",{staticClass:"purple-input",attrs:{label:"User Name"}})],1),t._v(" "),e("v-flex",{attrs:{xs12:"",md4:""}},[e("v-text-field",{staticClass:"purple-input",attrs:{label:"Email Address"}})],1),t._v(" "),e("v-flex",{attrs:{xs12:"",md6:""}},[e("v-text-field",{staticClass:"purple-input",attrs:{label:"First Name"}})],1),t._v(" "),e("v-flex",{attrs:{xs12:"",md6:""}},[e("v-text-field",{staticClass:"purple-input",attrs:{label:"Last Name"}})],1),t._v(" "),e("v-flex",{attrs:{xs12:"",md12:""}},[e("v-text-field",{staticClass:"purple-input",attrs:{label:"Adress"}})],1),t._v(" "),e("v-flex",{attrs:{xs12:"",md4:""}},[e("v-text-field",{staticClass:"purple-input",attrs:{label:"City"}})],1),t._v(" "),e("v-flex",{attrs:{xs12:"",md4:""}},[e("v-text-field",{staticClass:"purple-input",attrs:{label:"Country"}})],1),t._v(" "),e("v-flex",{attrs:{xs12:"",md4:""}},[e("v-text-field",{staticClass:"purple-input",attrs:{label:"Postal Code",type:"number"}})],1),t._v(" "),e("v-flex",{attrs:{xs12:""}},[e("v-textarea",{staticClass:"purple-input",attrs:{label:"About Me",value:"Lorem ipsum dolor sit amet, consectetur adipiscing elit."}})],1),t._v(" "),e("v-flex",{attrs:{xs12:"","text-xs-right":""}},[e("v-btn",{staticClass:"mx-0 font-weight-light",attrs:{color:"success"}},[t._v("\n Update Profile\n ")])],1)],1)],1)],1)],1)],1),t._v(" "),e("v-flex",{attrs:{xs12:"",md4:""}},[e("material-card",{staticClass:"v-card-profile"},[e("v-avatar",{staticClass:"mx-auto d-block",attrs:{slot:"offset",size:"130"},slot:"offset"},[e("img",{attrs:{src:"/img/"}})]),t._v(" "),e("v-card-text",{staticClass:"text-xs-center"},[e("h6",{staticClass:"category text-gray font-weight-thin mb-3"},[t._v("CEO / CO-FOUNDER")]),t._v(" "),e("h4",{staticClass:"card-title font-weight-light"},[t._v("Alec Thompson")]),t._v(" "),e("p",{staticClass:"card-description font-weight-light"},[t._v("Don't be scared of the truth because we need to restart the human foundation in truth And I love you like Kanye loves Kanye I love Rick Owens’ bed design but the back is...")]),t._v(" "),e("v-btn",{staticClass:"font-weight-light",attrs:{color:"success",round:""}},[t._v("Follow")])],1)],1)],1)],1)],1)},[],!1,null,null,null);s.default=r.exports}}]);
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[19],{
|
||||
|
||||
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/User/MyInfo.vue?vue&type=script&lang=js&":
|
||||
/*!*********************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/User/MyInfo.vue?vue&type=script&lang=js& ***!
|
||||
\*********************************************************************************************************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
|
||||
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/services */ "./resources/js/vue/services/index.js");
|
||||
/* harmony import */ var _config_urls__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/config/urls */ "./resources/js/vue/config/urls.js");
|
||||
|
||||
|
||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
||||
|
||||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = ({
|
||||
data: function data() {
|
||||
return {
|
||||
user: {
|
||||
cell_number: "",
|
||||
gender: "",
|
||||
name: "",
|
||||
email: "",
|
||||
address: ""
|
||||
},
|
||||
items: ["Male", "FeMale"],
|
||||
rules: {
|
||||
required: function required(value) {
|
||||
return !!value || "Required.";
|
||||
},
|
||||
counter: function counter(value) {
|
||||
return value.length == 0 || value.length >= 5 || "Min 5 characters";
|
||||
},
|
||||
email: function email(value) {
|
||||
if (value.length > 0) {
|
||||
var pattern = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;
|
||||
return pattern.test(value) || "Invalid e-mail.";
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
},
|
||||
created: function created() {
|
||||
this.user = this.$store.state.user;
|
||||
},
|
||||
methods: {
|
||||
saveInfo: function () {
|
||||
var _saveInfo = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {
|
||||
var result;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
if (!this.$refs.form.validate()) {
|
||||
_context.next = 5;
|
||||
break;
|
||||
}
|
||||
|
||||
_context.next = 3;
|
||||
return _services__WEBPACK_IMPORTED_MODULE_1__["ApiService"].post(_config_urls__WEBPACK_IMPORTED_MODULE_2__["urls"].updateInfo, this.user);
|
||||
|
||||
case 3:
|
||||
result = _context.sent;
|
||||
|
||||
if (result && result.status == 200) {
|
||||
this.$store.dispatch("info", {}, {
|
||||
root: true
|
||||
});
|
||||
this.$router.push({
|
||||
name: "Dashboard"
|
||||
});
|
||||
}
|
||||
|
||||
case 5:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
function saveInfo() {
|
||||
return _saveInfo.apply(this, arguments);
|
||||
}
|
||||
|
||||
return saveInfo;
|
||||
}()
|
||||
}
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/User/MyInfo.vue?vue&type=template&id=67cde174&":
|
||||
/*!*************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/User/MyInfo.vue?vue&type=template&id=67cde174& ***!
|
||||
\*************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"v-form",
|
||||
{ ref: "form" },
|
||||
[
|
||||
_c(
|
||||
"v-container",
|
||||
{ attrs: { "grid-list-xs": "", fluid: "" } },
|
||||
[
|
||||
_c(
|
||||
"material-card",
|
||||
{ attrs: { color: "black", title: "My Info" } },
|
||||
[
|
||||
_c(
|
||||
"v-layout",
|
||||
{
|
||||
staticClass: "px-5 my-3",
|
||||
attrs: { "align-center": "", "justify-center": "", wrap: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", sm4: "", md4: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
name: "name",
|
||||
label: "Name",
|
||||
color: "black",
|
||||
rules: [_vm.rules.required, _vm.rules.counter]
|
||||
},
|
||||
model: {
|
||||
value: _vm.user.name,
|
||||
callback: function($$v) {
|
||||
_vm.$set(_vm.user, "name", $$v)
|
||||
},
|
||||
expression: "user.name"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", sm4: "", md4: "" } },
|
||||
[
|
||||
_c("v-select", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
items: _vm.items,
|
||||
label: "Gender",
|
||||
name: "gender",
|
||||
"single-line": "",
|
||||
rules: [_vm.rules.required],
|
||||
color: "black"
|
||||
},
|
||||
model: {
|
||||
value: _vm.user.gender,
|
||||
callback: function($$v) {
|
||||
_vm.$set(_vm.user, "gender", $$v)
|
||||
},
|
||||
expression: "user.gender"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", sm4: "", md4: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
name: "cellnumber",
|
||||
label: "Cell Number",
|
||||
mask: "0### ### ####",
|
||||
color: "black",
|
||||
disabled: ""
|
||||
},
|
||||
model: {
|
||||
value: _vm.user.cell_number,
|
||||
callback: function($$v) {
|
||||
_vm.$set(_vm.user, "cell_number", $$v)
|
||||
},
|
||||
expression: "user.cell_number"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{
|
||||
staticClass: "px-5 mb-3",
|
||||
attrs: { "align-center": "", "justify-center": "", wrap: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", sm4: "", md4: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "px-2",
|
||||
staticStyle: { "padding-top": "75px" },
|
||||
attrs: {
|
||||
name: "emailaddress",
|
||||
label: "Email Address",
|
||||
rules: [_vm.rules.email],
|
||||
color: "black"
|
||||
},
|
||||
model: {
|
||||
value: _vm.user.email,
|
||||
callback: function($$v) {
|
||||
_vm.$set(_vm.user, "email", $$v)
|
||||
},
|
||||
expression: "user.email"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", sm8: "", md8: "" } },
|
||||
[
|
||||
_c("v-textarea", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
color: "black",
|
||||
rules: [_vm.rules.counter],
|
||||
name: "address"
|
||||
},
|
||||
scopedSlots: _vm._u([
|
||||
{
|
||||
key: "label",
|
||||
fn: function() {
|
||||
return [_c("div", [_vm._v("Address")])]
|
||||
},
|
||||
proxy: true
|
||||
}
|
||||
]),
|
||||
model: {
|
||||
value: _vm.user.address,
|
||||
callback: function($$v) {
|
||||
_vm.$set(_vm.user, "address", $$v)
|
||||
},
|
||||
expression: "user.address"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{
|
||||
attrs: {
|
||||
row: "",
|
||||
wrap: "",
|
||||
"justify-center": "",
|
||||
"align-center": ""
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{
|
||||
staticClass: "text-md-center text-xs-center",
|
||||
attrs: { xs12: "", md2: "", sm2: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "WM-CyanBlueGradient-BG",
|
||||
staticStyle: { padding: "10px 60px" },
|
||||
on: {
|
||||
click: function($event) {
|
||||
return _vm.saveInfo()
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "white--text mr-2 caption" },
|
||||
[_vm._v("fas fa-check")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "white--text" }, [
|
||||
_vm._v("SAVE")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{
|
||||
staticClass:
|
||||
"text-md-center text-sm-center text-xs-center",
|
||||
attrs: { xs12: "", md2: "", sm2: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"router-link",
|
||||
{ attrs: { to: "/" } },
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass:
|
||||
"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black"
|
||||
},
|
||||
[
|
||||
_c("v-icon", { staticClass: "black--text" }, [
|
||||
_vm._v("keyboard_arrow_left")
|
||||
]),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "black--text" }, [
|
||||
_vm._v("Back")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/User/MyInfo.vue":
|
||||
/*!************************************************!*\
|
||||
!*** ./resources/js/vue/views/User/MyInfo.vue ***!
|
||||
\************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _MyInfo_vue_vue_type_template_id_67cde174___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./MyInfo.vue?vue&type=template&id=67cde174& */ "./resources/js/vue/views/User/MyInfo.vue?vue&type=template&id=67cde174&");
|
||||
/* harmony import */ var _MyInfo_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./MyInfo.vue?vue&type=script&lang=js& */ "./resources/js/vue/views/User/MyInfo.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_MyInfo_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_MyInfo_vue_vue_type_template_id_67cde174___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_MyInfo_vue_vue_type_template_id_67cde174___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "resources/js/vue/views/User/MyInfo.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/User/MyInfo.vue?vue&type=script&lang=js&":
|
||||
/*!*************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/User/MyInfo.vue?vue&type=script&lang=js& ***!
|
||||
\*************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MyInfo_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./MyInfo.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/User/MyInfo.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_MyInfo_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/User/MyInfo.vue?vue&type=template&id=67cde174&":
|
||||
/*!*******************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/User/MyInfo.vue?vue&type=template&id=67cde174& ***!
|
||||
\*******************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_MyInfo_vue_vue_type_template_id_67cde174___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./MyInfo.vue?vue&type=template&id=67cde174& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/User/MyInfo.vue?vue&type=template&id=67cde174&");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_MyInfo_vue_vue_type_template_id_67cde174___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_MyInfo_vue_vue_type_template_id_67cde174___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
Vendored
+1505
-1
File diff suppressed because it is too large
Load Diff
Vendored
+374
-1
File diff suppressed because one or more lines are too long
Vendored
+677
-1
@@ -1 +1,677 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[21],{"S++u":function(e,t,s){"use strict";s.r(t);var a=s("o0o1"),r=s.n(a),n=s("Y8XJ"),l=s("85lN");function i(e,t,s,a,r,n,l){try{var i=e[n](l),c=i.value}catch(e){return void s(e)}i.done?t(c):Promise.resolve(c).then(a,r)}var c={data:function(){return{user:{cell_number:"",gender:"",name:"",email:"",address:""},items:["Male","FeMale"],rules:{required:function(e){return!!e||"Required."},counter:function(e){return 0==e.length||e.length>=5||"Min 5 characters"},email:function(e){if(e.length>0){return/^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(e)||"Invalid e-mail."}}}}},created:function(){this.user=this.$store.state.user},methods:{saveInfo:function(){var e,t=(e=r.a.mark(function e(){var t;return r.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.$refs.form.validate()){e.next=5;break}return e.next=3,n.a.post(l.a.updateInfo,this.user);case 3:(t=e.sent)&&200==t.status&&(this.$store.dispatch("info",{},{root:!0}),this.$router.push({name:"Dashboard"}));case 5:case"end":return e.stop()}},e,this)}),function(){var t=this,s=arguments;return new Promise(function(a,r){var n=e.apply(t,s);function l(e){i(n,a,r,l,c,"next",e)}function c(e){i(n,a,r,l,c,"throw",e)}l(void 0)})});return function(){return t.apply(this,arguments)}}()}},u=s("KHd+"),o=Object(u.a)(c,function(){var e=this,t=e.$createElement,s=e._self._c||t;return s("v-form",{ref:"form"},[s("v-container",{attrs:{"grid-list-xs":"",fluid:""}},[s("material-card",{attrs:{color:"black",title:"My Info"}},[s("v-layout",{staticClass:"px-5 my-3",attrs:{"align-center":"","justify-center":"",wrap:""}},[s("v-flex",{attrs:{xs12:"",sm4:"",md4:""}},[s("v-text-field",{staticClass:"pa-2",attrs:{name:"name",label:"Name",color:"black",rules:[e.rules.required,e.rules.counter]},model:{value:e.user.name,callback:function(t){e.$set(e.user,"name",t)},expression:"user.name"}})],1),e._v(" "),s("v-flex",{attrs:{xs12:"",sm4:"",md4:""}},[s("v-select",{staticClass:"pa-2",attrs:{items:e.items,label:"Gender",name:"gender","single-line":"",rules:[e.rules.required],color:"black"},model:{value:e.user.gender,callback:function(t){e.$set(e.user,"gender",t)},expression:"user.gender"}})],1),e._v(" "),s("v-flex",{attrs:{xs12:"",sm4:"",md4:""}},[s("v-text-field",{staticClass:"pa-2",attrs:{name:"cellnumber",label:"Cell Number",mask:"0### ### ####",color:"black",disabled:""},model:{value:e.user.cell_number,callback:function(t){e.$set(e.user,"cell_number",t)},expression:"user.cell_number"}})],1)],1),e._v(" "),s("v-layout",{staticClass:"px-5 mb-3",attrs:{"align-center":"","justify-center":"",wrap:""}},[s("v-flex",{attrs:{xs12:"",sm4:"",md4:""}},[s("v-text-field",{staticClass:"px-2",staticStyle:{"padding-top":"75px"},attrs:{name:"emailaddress",label:"Email Address",rules:[e.rules.email],color:"black"},model:{value:e.user.email,callback:function(t){e.$set(e.user,"email",t)},expression:"user.email"}})],1),e._v(" "),s("v-flex",{attrs:{xs12:"",sm8:"",md8:""}},[s("v-textarea",{staticClass:"pa-2",attrs:{color:"black",rules:[e.rules.counter],name:"address"},scopedSlots:e._u([{key:"label",fn:function(){return[s("div",[e._v("Address")])]},proxy:!0}]),model:{value:e.user.address,callback:function(t){e.$set(e.user,"address",t)},expression:"user.address"}})],1)],1),e._v(" "),s("v-layout",{attrs:{row:"",wrap:"","justify-center":"","align-center":""}},[s("v-flex",{staticClass:"text-md-center text-xs-center",attrs:{xs12:"",md2:"",sm2:""}},[s("v-btn",{staticClass:"WM-CyanBlueGradient-BG",staticStyle:{padding:"10px 60px"},on:{click:function(t){return e.saveInfo()}}},[s("v-icon",{staticClass:"white--text mr-2 caption"},[e._v("fas fa-check")]),e._v(" "),s("span",{staticClass:"white--text"},[e._v("SAVE")])],1)],1),e._v(" "),s("v-flex",{staticClass:"text-md-center text-sm-center text-xs-center",attrs:{xs12:"",md2:"",sm2:""}},[s("router-link",{attrs:{to:"/"}},[s("v-btn",{staticClass:"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black"},[s("v-icon",{staticClass:"black--text"},[e._v("keyboard_arrow_left")]),e._v(" "),s("span",{staticClass:"black--text"},[e._v("Back")])],1)],1)],1)],1)],1)],1)],1)},[],!1,null,null,null);t.default=o.exports}}]);
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[21],{
|
||||
|
||||
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=script&lang=js&":
|
||||
/*!*******************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=script&lang=js& ***!
|
||||
\*******************************************************************************************************************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
/* harmony default export */ __webpack_exports__["default"] = ({
|
||||
data: function data() {
|
||||
return {
|
||||
ArrayDiv: [],
|
||||
select: {
|
||||
state: 'Florida',
|
||||
abbr: 'FL'
|
||||
},
|
||||
items: [{
|
||||
state: 'Florida',
|
||||
abbr: 'FL'
|
||||
}, {
|
||||
state: 'Georgia',
|
||||
abbr: 'GA'
|
||||
}, {
|
||||
state: 'Nebraska',
|
||||
abbr: 'NE'
|
||||
}, {
|
||||
state: 'California',
|
||||
abbr: 'CA'
|
||||
}, {
|
||||
state: 'New York',
|
||||
abbr: 'NY'
|
||||
}]
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
Duplicator: function Duplicator() {
|
||||
var Forms = document.getElementsByClassName('Form');
|
||||
var ArrayForm = [];
|
||||
|
||||
for (var i = 0; i < Forms.length; i++) {
|
||||
ArrayForm.push(Forms[i]);
|
||||
}
|
||||
|
||||
this.ArrayDiv.push(ArrayForm);
|
||||
},
|
||||
Remove: function Remove() {
|
||||
var ID = document.getElementById('RemoveFormBuilder');
|
||||
var Element = ID.parentNode;
|
||||
Element.remove();
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=style&index=0&id=7eb32e4a&lang=css&scoped=true&":
|
||||
/*!**************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=style&index=0&id=7eb32e4a&lang=css&scoped=true& ***!
|
||||
\**************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
exports = module.exports = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);
|
||||
// Module
|
||||
exports.push([module.i, "\n.WM-Border[data-v-7eb32e4a] {\r\n border: 1px solid;\n}\n.WM-Border-Black[data-v-7eb32e4a] {\r\n border-color: #2f353b !important;\n}\n.WM-Border-Gray[data-v-7eb32e4a] {\r\n border-color: #aaa !important;\n}\n.WM-Color-LightGrey[data-v-7eb32e4a] {\r\n background-color : #F5F5F5;\n}\n.WM-Relative[data-v-7eb32e4a] {\r\n position: relative;\n}\n.v-btn--top.v-btn--absolute.v-btn--small[data-v-7eb32e4a] {\r\n top: -25px !important;\n}\r\n", ""]);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=style&index=0&id=7eb32e4a&lang=css&scoped=true&":
|
||||
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/style-loader!./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=style&index=0&id=7eb32e4a&lang=css&scoped=true& ***!
|
||||
\******************************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
|
||||
var content = __webpack_require__(/*! !../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src??ref--5-2!../../../../../node_modules/vue-loader/lib??vue-loader-options!./AddNewTest.vue?vue&type=style&index=0&id=7eb32e4a&lang=css&scoped=true& */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=style&index=0&id=7eb32e4a&lang=css&scoped=true&");
|
||||
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
|
||||
var transform;
|
||||
var insertInto;
|
||||
|
||||
|
||||
|
||||
var options = {"hmr":true}
|
||||
|
||||
options.transform = transform
|
||||
options.insertInto = undefined;
|
||||
|
||||
var update = __webpack_require__(/*! ../../../../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options);
|
||||
|
||||
if(content.locals) module.exports = content.locals;
|
||||
|
||||
if(false) {}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=template&id=7eb32e4a&scoped=true&":
|
||||
/*!***********************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=template&id=7eb32e4a&scoped=true& ***!
|
||||
\***********************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"v-container",
|
||||
{ attrs: { fluid: "" } },
|
||||
[
|
||||
_c(
|
||||
"material-card",
|
||||
{ attrs: { color: "black", title: "Add a New Test" } },
|
||||
[
|
||||
_c(
|
||||
"v-layout",
|
||||
{ staticClass: "ma-2", attrs: { wrap: "" } },
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: { label: "Test Name", color: "black" }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: { label: "Unique ID", color: "black" }
|
||||
})
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{
|
||||
staticClass:
|
||||
"pa-3 my-4 mx-3 WM-Border WM-Border-Black WM-Relative",
|
||||
attrs: { wrap: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-layout",
|
||||
{
|
||||
staticClass:
|
||||
"pa-3 my-4 mx-3 WM-Border WM-Border-Gray WM-Relative WM-Color-LightGrey",
|
||||
attrs: { wrap: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: { label: "Input Name", color: "black" }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md2: "", sm2: "" } },
|
||||
[
|
||||
_c("v-select", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
hint: _vm.select.state + ", " + _vm.select.abbr,
|
||||
items: _vm.items,
|
||||
"item-text": "state",
|
||||
"item-value": "abbr",
|
||||
label: "Type",
|
||||
"return-object": "",
|
||||
"single-line": "",
|
||||
color: "black"
|
||||
},
|
||||
model: {
|
||||
value: _vm.select,
|
||||
callback: function($$v) {
|
||||
_vm.select = $$v
|
||||
},
|
||||
expression: "select"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md2: "", sm2: "" } },
|
||||
[
|
||||
_c("v-select", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
hint: _vm.select.state + ", " + _vm.select.abbr,
|
||||
items: _vm.items,
|
||||
"item-text": "state",
|
||||
"item-value": "abbr",
|
||||
label: "Size",
|
||||
"return-object": "",
|
||||
"single-line": "",
|
||||
color: "black"
|
||||
},
|
||||
model: {
|
||||
value: _vm.select,
|
||||
callback: function($$v) {
|
||||
_vm.select = $$v
|
||||
},
|
||||
expression: "select"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md5: "", sm5: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: { label: "Value", color: "black" }
|
||||
})
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_vm._l(_vm.ArrayDiv, function(Div, Key) {
|
||||
return _c(
|
||||
"v-layout",
|
||||
{
|
||||
key: Key,
|
||||
staticClass:
|
||||
"pa-3 my-4 mx-3 WM-Border WM-Border-Gray WM-Relative WM-Color-LightGrey Form",
|
||||
attrs: { wrap: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: { label: "Input Name", color: "black" }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md2: "", sm2: "" } },
|
||||
[
|
||||
_c("v-select", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
hint: _vm.select.state + ", " + _vm.select.abbr,
|
||||
items: _vm.items,
|
||||
"item-text": "state",
|
||||
"item-value": "abbr",
|
||||
label: "Type",
|
||||
"return-object": "",
|
||||
"single-line": "",
|
||||
color: "black"
|
||||
},
|
||||
model: {
|
||||
value: _vm.select,
|
||||
callback: function($$v) {
|
||||
_vm.select = $$v
|
||||
},
|
||||
expression: "select"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md2: "", sm2: "" } },
|
||||
[
|
||||
_c("v-select", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
hint: _vm.select.state + ", " + _vm.select.abbr,
|
||||
items: _vm.items,
|
||||
"item-text": "state",
|
||||
"item-value": "abbr",
|
||||
label: "Size",
|
||||
"return-object": "",
|
||||
"single-line": "",
|
||||
color: "black"
|
||||
},
|
||||
model: {
|
||||
value: _vm.select,
|
||||
callback: function($$v) {
|
||||
_vm.select = $$v
|
||||
},
|
||||
expression: "select"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md5: "", sm5: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: { label: "Value", color: "black" }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
attrs: {
|
||||
absolute: "",
|
||||
small: "",
|
||||
right: "",
|
||||
top: "",
|
||||
color: "pink",
|
||||
id: "RemoveFormBuilder"
|
||||
},
|
||||
on: {
|
||||
click: function($event) {
|
||||
return _vm.Remove()
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "white--text mr-2 caption" },
|
||||
[_vm._v("fas fa-times")]
|
||||
),
|
||||
_vm._v("\n REMOVE")
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
}),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
attrs: {
|
||||
absolute: "",
|
||||
small: "",
|
||||
right: "",
|
||||
bottom: "",
|
||||
color: "cyan",
|
||||
id: "FormBuilder"
|
||||
},
|
||||
on: { click: _vm.Duplicator }
|
||||
},
|
||||
[
|
||||
_c("v-icon", { staticClass: "white--text mr-2 caption" }, [
|
||||
_vm._v("fas fa-plus")
|
||||
]),
|
||||
_vm._v("\n ADD")
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
2
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("div", { attrs: { id: "WM-FormBuilder" } }),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{
|
||||
staticClass: "text-xs-center",
|
||||
attrs: { xs12: "", md12: "", sm12: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "WM-CyanBlueGradient-BG",
|
||||
staticStyle: { padding: "10px 60px" }
|
||||
},
|
||||
[
|
||||
_c("v-icon", { staticClass: "white--text mr-2 caption" }, [
|
||||
_vm._v("fas fa-plus")
|
||||
]),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "white--text" }, [_vm._v("Add")])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/NotWorking/AddNewTest.vue":
|
||||
/*!**********************************************************!*\
|
||||
!*** ./resources/js/vue/views/NotWorking/AddNewTest.vue ***!
|
||||
\**********************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _AddNewTest_vue_vue_type_template_id_7eb32e4a_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./AddNewTest.vue?vue&type=template&id=7eb32e4a&scoped=true& */ "./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=template&id=7eb32e4a&scoped=true&");
|
||||
/* harmony import */ var _AddNewTest_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./AddNewTest.vue?vue&type=script&lang=js& */ "./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport *//* harmony import */ var _AddNewTest_vue_vue_type_style_index_0_id_7eb32e4a_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./AddNewTest.vue?vue&type=style&index=0&id=7eb32e4a&lang=css&scoped=true& */ "./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=style&index=0&id=7eb32e4a&lang=css&scoped=true&");
|
||||
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
||||
_AddNewTest_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_AddNewTest_vue_vue_type_template_id_7eb32e4a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_AddNewTest_vue_vue_type_template_id_7eb32e4a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
"7eb32e4a",
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "resources/js/vue/views/NotWorking/AddNewTest.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=script&lang=js&":
|
||||
/*!***********************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=script&lang=js& ***!
|
||||
\***********************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AddNewTest_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./AddNewTest.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_AddNewTest_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=style&index=0&id=7eb32e4a&lang=css&scoped=true&":
|
||||
/*!*******************************************************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=style&index=0&id=7eb32e4a&lang=css&scoped=true& ***!
|
||||
\*******************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_AddNewTest_vue_vue_type_style_index_0_id_7eb32e4a_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/style-loader!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src??ref--5-2!../../../../../node_modules/vue-loader/lib??vue-loader-options!./AddNewTest.vue?vue&type=style&index=0&id=7eb32e4a&lang=css&scoped=true& */ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=style&index=0&id=7eb32e4a&lang=css&scoped=true&");
|
||||
/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_AddNewTest_vue_vue_type_style_index_0_id_7eb32e4a_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_AddNewTest_vue_vue_type_style_index_0_id_7eb32e4a_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_AddNewTest_vue_vue_type_style_index_0_id_7eb32e4a_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_AddNewTest_vue_vue_type_style_index_0_id_7eb32e4a_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_AddNewTest_vue_vue_type_style_index_0_id_7eb32e4a_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=template&id=7eb32e4a&scoped=true&":
|
||||
/*!*****************************************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=template&id=7eb32e4a&scoped=true& ***!
|
||||
\*****************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_AddNewTest_vue_vue_type_template_id_7eb32e4a_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./AddNewTest.vue?vue&type=template&id=7eb32e4a&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/NotWorking/AddNewTest.vue?vue&type=template&id=7eb32e4a&scoped=true&");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_AddNewTest_vue_vue_type_template_id_7eb32e4a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_AddNewTest_vue_vue_type_template_id_7eb32e4a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
Vendored
+695
-1
@@ -1 +1,695 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"/TP2":function(t,n,i){"use strict";var e=i("hbYe");i.n(e).a},STjK:function(t,n,i){(t.exports=i("JPst")(!1)).push([t.i,"\n.mapouter {\n text-align:right;\n height:100%;\n width:100%;\n position: absolute;\n}\n.gmap_canvas {\n overflow:hidden;\n background:none!important;\n height:100%;\n width:100%;\n}\n",""])},hbYe:function(t,n,i){var e=i("STjK");"string"==typeof e&&(e=[[t.i,e,""]]);var a={hmr:!0,transform:void 0,insertInto:void 0};i("aET+")(e,a);e.locals&&(t.exports=e.locals)},i8GV:function(t,n,i){"use strict";i.r(n);i("/TP2");var e=i("KHd+"),a=Object(e.a)({},function(){this.$createElement;this._self._c;return this._m(0)},[function(){var t=this.$createElement,n=this._self._c||t;return n("div",[n("div",{staticClass:"mapouter"},[n("div",{staticClass:"gmap_canvas"},[n("iframe",{attrs:{id:"gmap_canvas",width:"100%",height:"100%",src:"https://maps.google.com/maps?q=google&t=&z=13&ie=UTF8&iwloc=&output=embed",frameborder:"0",scrolling:"no",marginheight:"0",marginwidth:"0"}})])])])}],!1,null,null,null);n.default=a.exports}}]);
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[3],{
|
||||
|
||||
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestType/List.vue?vue&type=script&lang=js&":
|
||||
/*!***********************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestType/List.vue?vue&type=script&lang=js& ***!
|
||||
\***********************************************************************************************************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
|
||||
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/services */ "./resources/js/vue/services/index.js");
|
||||
/* harmony import */ var _config_urls__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @/config/urls */ "./resources/js/vue/config/urls.js");
|
||||
|
||||
|
||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
||||
|
||||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = ({
|
||||
data: function data() {
|
||||
return {
|
||||
headers: [{
|
||||
sortable: false,
|
||||
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,
|
||||
lastPage: 1
|
||||
};
|
||||
},
|
||||
created: function created() {
|
||||
this.getData();
|
||||
},
|
||||
methods: {
|
||||
getData: function () {
|
||||
var _getData = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {
|
||||
var page,
|
||||
result,
|
||||
_args = arguments;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
page = _args.length > 0 && _args[0] !== undefined ? _args[0] : 1;
|
||||
_context.next = 3;
|
||||
return _services__WEBPACK_IMPORTED_MODULE_1__["ApiService"].get(_config_urls__WEBPACK_IMPORTED_MODULE_2__["urls"].listTestType(page));
|
||||
|
||||
case 3:
|
||||
result = _context.sent;
|
||||
|
||||
if (result && result.status == 200) {
|
||||
this.items = result.data.data.data;
|
||||
this.currentPage = result.data.data.current_page;
|
||||
this.lastPage = result.data.data.last_page;
|
||||
}
|
||||
|
||||
case 5:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
function getData() {
|
||||
return _getData.apply(this, arguments);
|
||||
}
|
||||
|
||||
return getData;
|
||||
}(),
|
||||
remove: function () {
|
||||
var _remove = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee2(id) {
|
||||
var result, key;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee2$(_context2) {
|
||||
while (1) {
|
||||
switch (_context2.prev = _context2.next) {
|
||||
case 0:
|
||||
_context2.next = 2;
|
||||
return _services__WEBPACK_IMPORTED_MODULE_1__["ApiService"].delete(_config_urls__WEBPACK_IMPORTED_MODULE_2__["urls"].deleteTestType(id));
|
||||
|
||||
case 2:
|
||||
result = _context2.sent;
|
||||
|
||||
if (result.status == 200) {
|
||||
for (key in this.items) {
|
||||
if (this.items.hasOwnProperty(key) && this.items[key].id == id) {
|
||||
this.items.splice(key, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
case 4:
|
||||
case "end":
|
||||
return _context2.stop();
|
||||
}
|
||||
}
|
||||
}, _callee2, this);
|
||||
}));
|
||||
|
||||
function remove(_x) {
|
||||
return _remove.apply(this, arguments);
|
||||
}
|
||||
|
||||
return remove;
|
||||
}()
|
||||
},
|
||||
watch: {
|
||||
currentPage: function currentPage(page) {
|
||||
this.getData(page);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestType/List.vue?vue&type=style&index=0&id=b1f1b72e&lang=css&scoped=true&":
|
||||
/*!******************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestType/List.vue?vue&type=style&index=0&id=b1f1b72e&lang=css&scoped=true& ***!
|
||||
\******************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
exports = module.exports = __webpack_require__(/*! ../../../../../node_modules/css-loader/dist/runtime/api.js */ "./node_modules/css-loader/dist/runtime/api.js")(false);
|
||||
// Module
|
||||
exports.push([module.i, "\n.WM-ActionButton[data-v-b1f1b72e] {\r\n padding: 8px 22px;\n}\r\n", ""]);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestType/List.vue?vue&type=style&index=0&id=b1f1b72e&lang=css&scoped=true&":
|
||||
/*!**********************************************************************************************************************************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/style-loader!./node_modules/css-loader/dist/cjs.js??ref--5-1!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src??ref--5-2!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestType/List.vue?vue&type=style&index=0&id=b1f1b72e&lang=css&scoped=true& ***!
|
||||
\**********************************************************************************************************************************************************************************************************************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
|
||||
var content = __webpack_require__(/*! !../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src??ref--5-2!../../../../../node_modules/vue-loader/lib??vue-loader-options!./List.vue?vue&type=style&index=0&id=b1f1b72e&lang=css&scoped=true& */ "./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestType/List.vue?vue&type=style&index=0&id=b1f1b72e&lang=css&scoped=true&");
|
||||
|
||||
if(typeof content === 'string') content = [[module.i, content, '']];
|
||||
|
||||
var transform;
|
||||
var insertInto;
|
||||
|
||||
|
||||
|
||||
var options = {"hmr":true}
|
||||
|
||||
options.transform = transform
|
||||
options.insertInto = undefined;
|
||||
|
||||
var update = __webpack_require__(/*! ../../../../../node_modules/style-loader/lib/addStyles.js */ "./node_modules/style-loader/lib/addStyles.js")(content, options);
|
||||
|
||||
if(content.locals) module.exports = content.locals;
|
||||
|
||||
if(false) {}
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestType/List.vue?vue&type=template&id=b1f1b72e&scoped=true&":
|
||||
/*!***************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/TestType/List.vue?vue&type=template&id=b1f1b72e&scoped=true& ***!
|
||||
\***************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"v-container",
|
||||
{ attrs: { fluid: "" } },
|
||||
[
|
||||
_c(
|
||||
"material-card",
|
||||
{ attrs: { color: "black", title: "Medical Centers List", text: "" } },
|
||||
[
|
||||
_c(
|
||||
"v-layout",
|
||||
{ staticClass: "px-5 mb-3", attrs: { wrap: "" } },
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md3: "", sm3: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
attrs: { label: "Name", color: "black" }
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{
|
||||
staticClass: "text-xs-right",
|
||||
attrs: { xs12: "", md2: "", sm2: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "WM-CyanBlueGradient-BG",
|
||||
staticStyle: { padding: "10px 60px" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "white--text mr-2 caption" },
|
||||
[_vm._v("fas fa-search")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "white--text" }, [
|
||||
_vm._v("Filter")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("v-spacer"),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{
|
||||
staticClass: "text-xs-right",
|
||||
attrs: { xs12: "", md2: "", sm2: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"router-link",
|
||||
{ attrs: { to: { name: "AddTestType" } } },
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass:
|
||||
"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black"
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "black--text mr-2 caption" },
|
||||
[_vm._v("fas fa-plus")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "black--text" }, [
|
||||
_vm._v("Add")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("v-layout", { staticClass: "px-4 my-3" }, [_c("v-divider")], 1),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{
|
||||
staticClass: "px-5 mt-3",
|
||||
attrs: { "align-center": "", "justify-center": "", wrap: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { md12: "" } },
|
||||
[
|
||||
_c("v-data-table", {
|
||||
attrs: {
|
||||
headers: _vm.headers,
|
||||
items: _vm.items,
|
||||
"hide-actions": ""
|
||||
},
|
||||
scopedSlots: _vm._u([
|
||||
{
|
||||
key: "headerCell",
|
||||
fn: function(ref) {
|
||||
var header = ref.header
|
||||
return [
|
||||
_c("span", {
|
||||
staticClass:
|
||||
"subheading font-weight-light text-white text--darken-3",
|
||||
domProps: { textContent: _vm._s(header.text) }
|
||||
})
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
key: "items",
|
||||
fn: function(ref) {
|
||||
var item = ref.item
|
||||
return [
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "headline font-weight-light" },
|
||||
[_vm._v(_vm._s(item.name))]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "title font-weight-light" },
|
||||
[_vm._v(_vm._s(item.unique_code))]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "title font-weight-light" },
|
||||
[_vm._v(_vm._s(item.user.name))]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "title font-weight-light" },
|
||||
[_vm._v(_vm._s(item.created_at))]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"td",
|
||||
{ staticClass: "text-xs-right" },
|
||||
[
|
||||
_c(
|
||||
"router-link",
|
||||
{
|
||||
attrs: {
|
||||
to: {
|
||||
name: "EditTestType",
|
||||
params: { testType: item.id }
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "mr-2 WM-ActionButton",
|
||||
attrs: { color: "cyan" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{
|
||||
staticClass:
|
||||
"white--text mr-2 caption"
|
||||
},
|
||||
[_vm._v("fas fa-pen")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", [_vm._v("Edit")])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-btn",
|
||||
{ attrs: { color: "orange darken-1" } },
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{
|
||||
staticClass: "white--text mr-1 caption"
|
||||
},
|
||||
[_vm._v("fas fa-barcode")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", [_vm._v("Generate Barcode")])
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "WM-ActionButton",
|
||||
attrs: { color: "pink" },
|
||||
on: {
|
||||
click: function($event) {
|
||||
return _vm.remove(item.id)
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{
|
||||
staticClass: "white--text mr-2 caption"
|
||||
},
|
||||
[_vm._v("fas fa-times")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", [_vm._v("Remove")])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
]
|
||||
}
|
||||
}
|
||||
])
|
||||
})
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("v-divider"),
|
||||
_vm._v(" "),
|
||||
_vm.lastPage > 1
|
||||
? _c(
|
||||
"div",
|
||||
{ staticClass: "text-xs-center" },
|
||||
[
|
||||
_c("v-pagination", {
|
||||
attrs: { length: _vm.lastPage, "total-visible": 6 },
|
||||
model: {
|
||||
value: _vm.currentPage,
|
||||
callback: function($$v) {
|
||||
_vm.currentPage = $$v
|
||||
},
|
||||
expression: "currentPage"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
)
|
||||
: _vm._e(),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{
|
||||
staticClass: "mt-3",
|
||||
attrs: {
|
||||
row: "",
|
||||
wrap: "",
|
||||
"align-center": "",
|
||||
"justify-center": ""
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"router-link",
|
||||
{ attrs: { to: "/dashboard" } },
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass:
|
||||
"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black ml-5"
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "black--text mr-2 caption" },
|
||||
[_vm._v("fas fa-chevron-left")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "black--text" }, [
|
||||
_vm._v("Back")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/TestType/List.vue":
|
||||
/*!**************************************************!*\
|
||||
!*** ./resources/js/vue/views/TestType/List.vue ***!
|
||||
\**************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _List_vue_vue_type_template_id_b1f1b72e_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./List.vue?vue&type=template&id=b1f1b72e&scoped=true& */ "./resources/js/vue/views/TestType/List.vue?vue&type=template&id=b1f1b72e&scoped=true&");
|
||||
/* harmony import */ var _List_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./List.vue?vue&type=script&lang=js& */ "./resources/js/vue/views/TestType/List.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport *//* harmony import */ var _List_vue_vue_type_style_index_0_id_b1f1b72e_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./List.vue?vue&type=style&index=0&id=b1f1b72e&lang=css&scoped=true& */ "./resources/js/vue/views/TestType/List.vue?vue&type=style&index=0&id=b1f1b72e&lang=css&scoped=true&");
|
||||
/* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_3__["default"])(
|
||||
_List_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_List_vue_vue_type_template_id_b1f1b72e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_List_vue_vue_type_template_id_b1f1b72e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
"b1f1b72e",
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "resources/js/vue/views/TestType/List.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/TestType/List.vue?vue&type=script&lang=js&":
|
||||
/*!***************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/TestType/List.vue?vue&type=script&lang=js& ***!
|
||||
\***************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./List.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestType/List.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/TestType/List.vue?vue&type=style&index=0&id=b1f1b72e&lang=css&scoped=true&":
|
||||
/*!***********************************************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/TestType/List.vue?vue&type=style&index=0&id=b1f1b72e&lang=css&scoped=true& ***!
|
||||
\***********************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_id_b1f1b72e_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/style-loader!../../../../../node_modules/css-loader/dist/cjs.js??ref--5-1!../../../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../../../node_modules/postcss-loader/src??ref--5-2!../../../../../node_modules/vue-loader/lib??vue-loader-options!./List.vue?vue&type=style&index=0&id=b1f1b72e&lang=css&scoped=true& */ "./node_modules/style-loader/index.js!./node_modules/css-loader/dist/cjs.js?!./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/src/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestType/List.vue?vue&type=style&index=0&id=b1f1b72e&lang=css&scoped=true&");
|
||||
/* harmony import */ var _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_id_b1f1b72e_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_id_b1f1b72e_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony reexport (unknown) */ for(var __WEBPACK_IMPORT_KEY__ in _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_id_b1f1b72e_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__) if(__WEBPACK_IMPORT_KEY__ !== 'default') (function(key) { __webpack_require__.d(__webpack_exports__, key, function() { return _node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_id_b1f1b72e_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0__[key]; }) }(__WEBPACK_IMPORT_KEY__));
|
||||
/* harmony default export */ __webpack_exports__["default"] = (_node_modules_style_loader_index_js_node_modules_css_loader_dist_cjs_js_ref_5_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_5_2_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_style_index_0_id_b1f1b72e_lang_css_scoped_true___WEBPACK_IMPORTED_MODULE_0___default.a);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/TestType/List.vue?vue&type=template&id=b1f1b72e&scoped=true&":
|
||||
/*!*********************************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/TestType/List.vue?vue&type=template&id=b1f1b72e&scoped=true& ***!
|
||||
\*********************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_template_id_b1f1b72e_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./List.vue?vue&type=template&id=b1f1b72e&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/TestType/List.vue?vue&type=template&id=b1f1b72e&scoped=true&");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_template_id_b1f1b72e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_List_vue_vue_type_template_id_b1f1b72e_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
Vendored
+842
-1
File diff suppressed because one or more lines are too long
Vendored
+168
-1
File diff suppressed because one or more lines are too long
Vendored
+321
-1
File diff suppressed because one or more lines are too long
Vendored
+425
-1
@@ -1 +1,425 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{ks58:function(t,e,a){"use strict";a.r(e);var r=a("L2JU");function s(t,e,a){return e in t?Object.defineProperty(t,e,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[e]=a,t}var n={data:function(){return{cell_number:""}},methods:function(t){for(var e=1;e<arguments.length;e++){var a=null!=arguments[e]?arguments[e]:{},r=Object.keys(a);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(a).filter(function(t){return Object.getOwnPropertyDescriptor(a,t).enumerable}))),r.forEach(function(e){s(t,e,a[e])})}return t}({},Object(r.b)("auth",["forgotPassword"]),Object(r.d)("modal",["changeCurrentModal"]),{handleSubmit:function(){this.changeCurrentModal({modal:"modal-auth-verify-code"})}})},l=a("KHd+"),c=Object(l.a)(n,function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("v-form",[a("v-container",{attrs:{"grid-list-xs":""}},[a("v-layout",{staticClass:"justify-center",attrs:{row:"",wrap:""}},[a("v-flex",{staticClass:"WM-WidthScreen-SM WM-WidthScreen-XS",attrs:{xs12:"",md3:"",sm3:""}},[a("material-card",{attrs:{color:"black",title:"Login Page"}},[a("v-layout",{staticClass:"px-3",attrs:{row:"",wrap:""}},[a("v-flex",{attrs:{xs12:"",md12:"",sm12:""}},[a("v-text-field",{attrs:{name:"cellnumber",label:"Cell Number",id:"id1",color:"black"},model:{value:t.cell_number,callback:function(e){t.cell_number=e},expression:"cell_number"}})],1)],1),t._v(" "),a("v-layout",{staticClass:"px-3",attrs:{row:"",wrap:""}},[a("v-flex",{staticClass:"text-md-left text-sm-center text-xs-center",attrs:{xs12:"",md6:"",sm6:""}},[a("v-btn",{staticClass:"WM-CyanBlueGradient-BG",staticStyle:{padding:"10px 60px"},on:{click:t.handleSubmit}},[a("v-icon",{staticClass:"white--text mr-2 caption"},[t._v("fas fa-sign-in-alt")]),t._v(" "),a("span",{staticClass:"white--text"},[t._v("Send")])],1)],1),t._v(" "),a("v-flex",{staticClass:"text-md-right text-sm-center text-xs-center",attrs:{xs12:"",md6:"",sm6:""}},[a("router-link",{staticClass:"black--text",attrs:{to:"login"}},[a("v-btn",{staticClass:"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black"},[a("v-icon",{staticClass:"black--text mr-2 caption"},[t._v("fas fa-sign-in-alt")]),t._v(" "),a("span",{staticClass:"black--text"},[t._v("Login")])],1)],1)],1)],1)],1)],1)],1)],1)],1)},[],!1,null,null,null);e.default=c.exports}}]);
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[7],{
|
||||
|
||||
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/Auth/Login.vue?vue&type=script&lang=js&":
|
||||
/*!********************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/Auth/Login.vue?vue&type=script&lang=js& ***!
|
||||
\********************************************************************************************************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var vuex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! vuex */ "./node_modules/vuex/dist/vuex.esm.js");
|
||||
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = ({
|
||||
data: function data() {
|
||||
return {
|
||||
cell_number: "",
|
||||
password: "",
|
||||
show1: false
|
||||
};
|
||||
},
|
||||
computed: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__["mapGetters"])('auth', ['authenticating', 'authenticationError', 'authenticationErrorCode'])),
|
||||
methods: _objectSpread({}, Object(vuex__WEBPACK_IMPORTED_MODULE_0__["mapActions"])('auth', ['login']), {
|
||||
handleSubmit: function handleSubmit() {
|
||||
// Perform a simple validation that cell_number and password have been typed in
|
||||
if (this.cell_number != '' && this.password != '') {
|
||||
this.login({
|
||||
cell_number: this.cell_number,
|
||||
password: this.password
|
||||
});
|
||||
this.password = "";
|
||||
}
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/Auth/Login.vue?vue&type=template&id=36ebd76a&scoped=true&":
|
||||
/*!************************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/Auth/Login.vue?vue&type=template&id=36ebd76a&scoped=true& ***!
|
||||
\************************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"v-form",
|
||||
[
|
||||
_c(
|
||||
"v-container",
|
||||
{ attrs: { "grid-list-xs": "" } },
|
||||
[
|
||||
_c(
|
||||
"v-layout",
|
||||
{ staticClass: "justify-center", attrs: { row: "", wrap: "" } },
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{
|
||||
staticClass: "WM-WidthScreen-SM WM-WidthScreen-XS",
|
||||
attrs: { xs12: "", md3: "", sm3: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"material-card",
|
||||
{ attrs: { color: "black", title: "Login Page" } },
|
||||
[
|
||||
_c(
|
||||
"v-layout",
|
||||
{ staticClass: "px-3", attrs: { row: "", wrap: "" } },
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md12: "", sm12: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
attrs: {
|
||||
name: "cellnumber",
|
||||
label: "Cell Number",
|
||||
id: "id1",
|
||||
color: "black"
|
||||
},
|
||||
model: {
|
||||
value: _vm.cell_number,
|
||||
callback: function($$v) {
|
||||
_vm.cell_number = $$v
|
||||
},
|
||||
expression: "cell_number"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{ staticClass: "px-3", attrs: { row: "", wrap: "" } },
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md12: "", sm12: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
name: "password",
|
||||
label: "Password",
|
||||
type: _vm.show1 ? "text" : "password",
|
||||
"append-icon": _vm.show1
|
||||
? "visibility"
|
||||
: "visibility_off",
|
||||
color: "black"
|
||||
},
|
||||
on: {
|
||||
"click:append": function($event) {
|
||||
_vm.show1 = !_vm.show1
|
||||
}
|
||||
},
|
||||
model: {
|
||||
value: _vm.password,
|
||||
callback: function($$v) {
|
||||
_vm.password = $$v
|
||||
},
|
||||
expression: "password"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{ staticClass: "px-3", attrs: { row: "", wrap: "" } },
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{
|
||||
staticClass:
|
||||
"text-md-left text-sm-center text-xs-center",
|
||||
attrs: { xs12: "", md6: "", sm6: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "WM-CyanBlueGradient-BG",
|
||||
staticStyle: { padding: "10px 60px" },
|
||||
on: { click: _vm.handleSubmit }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "white--text mr-2 caption" },
|
||||
[_vm._v("fas fa-sign-in-alt")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "white--text" }, [
|
||||
_vm._v("Login")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{
|
||||
staticClass:
|
||||
"text-md-right text-sm-center text-xs-center",
|
||||
attrs: { xs12: "", md6: "", sm6: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"router-link",
|
||||
{
|
||||
staticClass: "black--text",
|
||||
attrs: { to: "register" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass:
|
||||
"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black"
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{
|
||||
staticClass:
|
||||
"black--text mr-2 caption"
|
||||
},
|
||||
[_vm._v("fas fa-plus")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"span",
|
||||
{ staticClass: "black--text" },
|
||||
[_vm._v("Register")]
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{
|
||||
staticClass:
|
||||
"text-md-left text-sm-center text-xs-center",
|
||||
attrs: { row: "", wrap: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{
|
||||
staticClass: "px-4 py-3",
|
||||
attrs: { xs12: "", md6: "", sm6: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"router-link",
|
||||
{ attrs: { to: "/forgot-password" } },
|
||||
[
|
||||
_c(
|
||||
"span",
|
||||
{
|
||||
staticClass: "black--text",
|
||||
staticStyle: {
|
||||
"border-bottom": "1px solid #000"
|
||||
}
|
||||
},
|
||||
[_vm._v("Forgot Password ?")]
|
||||
)
|
||||
]
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/Auth/Login.vue":
|
||||
/*!***********************************************!*\
|
||||
!*** ./resources/js/vue/views/Auth/Login.vue ***!
|
||||
\***********************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _Login_vue_vue_type_template_id_36ebd76a_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Login.vue?vue&type=template&id=36ebd76a&scoped=true& */ "./resources/js/vue/views/Auth/Login.vue?vue&type=template&id=36ebd76a&scoped=true&");
|
||||
/* harmony import */ var _Login_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Login.vue?vue&type=script&lang=js& */ "./resources/js/vue/views/Auth/Login.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_Login_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_Login_vue_vue_type_template_id_36ebd76a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_Login_vue_vue_type_template_id_36ebd76a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
"36ebd76a",
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "resources/js/vue/views/Auth/Login.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/Auth/Login.vue?vue&type=script&lang=js&":
|
||||
/*!************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/Auth/Login.vue?vue&type=script&lang=js& ***!
|
||||
\************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Login_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./Login.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/Auth/Login.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Login_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/Auth/Login.vue?vue&type=template&id=36ebd76a&scoped=true&":
|
||||
/*!******************************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/Auth/Login.vue?vue&type=template&id=36ebd76a&scoped=true& ***!
|
||||
\******************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Login_vue_vue_type_template_id_36ebd76a_scoped_true___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./Login.vue?vue&type=template&id=36ebd76a&scoped=true& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/Auth/Login.vue?vue&type=template&id=36ebd76a&scoped=true&");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Login_vue_vue_type_template_id_36ebd76a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Login_vue_vue_type_template_id_36ebd76a_scoped_true___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
Vendored
+520
-1
@@ -1 +1,520 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[8],{"9Tbo":function(t,s,e){"use strict";e.r(s);var a=e("L2JU");function r(t){for(var s=1;s<arguments.length;s++){var e=null!=arguments[s]?arguments[s]:{},a=Object.keys(e);"function"==typeof Object.getOwnPropertySymbols&&(a=a.concat(Object.getOwnPropertySymbols(e).filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.forEach(function(s){l(t,s,e[s])})}return t}function l(t,s,e){return s in t?Object.defineProperty(t,s,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[s]=e,t}var n={data:function(){return{cell_number:"",password:"",show1:!1}},computed:r({},Object(a.c)("auth",["authenticating","authenticationError","authenticationErrorCode"])),methods:r({},Object(a.b)("auth",["login"]),{handleSubmit:function(){""!=this.cell_number&&""!=this.password&&(this.login({cell_number:this.cell_number,password:this.password}),this.password="")}})},o=e("KHd+"),i=Object(o.a)(n,function(){var t=this,s=t.$createElement,e=t._self._c||s;return e("v-form",[e("v-container",{attrs:{"grid-list-xs":""}},[e("v-layout",{staticClass:"justify-center",attrs:{row:"",wrap:""}},[e("v-flex",{staticClass:"WM-WidthScreen-SM WM-WidthScreen-XS",attrs:{xs12:"",md3:"",sm3:""}},[e("material-card",{attrs:{color:"black",title:"Login Page"}},[e("v-layout",{staticClass:"px-3",attrs:{row:"",wrap:""}},[e("v-flex",{attrs:{xs12:"",md12:"",sm12:""}},[e("v-text-field",{attrs:{name:"cellnumber",label:"Cell Number",id:"id1",color:"black"},model:{value:t.cell_number,callback:function(s){t.cell_number=s},expression:"cell_number"}})],1)],1),t._v(" "),e("v-layout",{staticClass:"px-3",attrs:{row:"",wrap:""}},[e("v-flex",{attrs:{xs12:"",md12:"",sm12:""}},[e("v-text-field",{staticClass:"pa-2",attrs:{name:"password",label:"Password",type:t.show1?"text":"password","append-icon":t.show1?"visibility":"visibility_off",color:"black"},on:{"click:append":function(s){t.show1=!t.show1}},model:{value:t.password,callback:function(s){t.password=s},expression:"password"}})],1)],1),t._v(" "),e("v-layout",{staticClass:"px-3",attrs:{row:"",wrap:""}},[e("v-flex",{staticClass:"text-md-left text-sm-center text-xs-center",attrs:{xs12:"",md6:"",sm6:""}},[e("v-btn",{staticClass:"WM-CyanBlueGradient-BG",staticStyle:{padding:"10px 60px"},on:{click:t.handleSubmit}},[e("v-icon",{staticClass:"white--text mr-2 caption"},[t._v("fas fa-sign-in-alt")]),t._v(" "),e("span",{staticClass:"white--text"},[t._v("Login")])],1)],1),t._v(" "),e("v-flex",{staticClass:"text-md-right text-sm-center text-xs-center",attrs:{xs12:"",md6:"",sm6:""}},[e("router-link",{staticClass:"black--text",attrs:{to:"register"}},[e("v-btn",{staticClass:"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black"},[e("v-icon",{staticClass:"black--text mr-2 caption"},[t._v("fas fa-plus")]),t._v(" "),e("span",{staticClass:"black--text"},[t._v("Register")])],1)],1)],1)],1),t._v(" "),e("v-layout",{staticClass:"text-md-left text-sm-center text-xs-center",attrs:{row:"",wrap:""}},[e("v-flex",{staticClass:"px-4 py-3",attrs:{xs12:"",md6:"",sm6:""}},[e("router-link",{attrs:{to:"/forgot-password"}},[e("span",{staticClass:"black--text",staticStyle:{"border-bottom":"1px solid #000"}},[t._v("Forgot Password ?")])])],1)],1)],1)],1)],1)],1)],1)},[],!1,null,"3f6d4e56",null);s.default=i.exports}}]);
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[8],{
|
||||
|
||||
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/Auth/Register.vue?vue&type=script&lang=js&":
|
||||
/*!***********************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/Auth/Register.vue?vue&type=script&lang=js& ***!
|
||||
\***********************************************************************************************************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/regenerator */ "./node_modules/@babel/runtime/regenerator/index.js");
|
||||
/* harmony import */ var _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0__);
|
||||
/* harmony import */ var _services__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @/services */ "./resources/js/vue/services/index.js");
|
||||
|
||||
|
||||
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
|
||||
|
||||
function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
|
||||
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ __webpack_exports__["default"] = ({
|
||||
data: function data() {
|
||||
var defaultForm = Object.freeze({
|
||||
cell_number: "",
|
||||
password: "",
|
||||
name: "",
|
||||
gender: "",
|
||||
medical_center_id: this.$route.params.medicalCenter ? this.$route.params.medicalCenter : ''
|
||||
});
|
||||
return {
|
||||
form: Object.assign({}, defaultForm),
|
||||
show1: false,
|
||||
items: ["Male", "FeMale"],
|
||||
isLogin: _services__WEBPACK_IMPORTED_MODULE_1__["TokenService"].getInfo(),
|
||||
rules: {
|
||||
required: function required(value) {
|
||||
return !!value || "Required.";
|
||||
},
|
||||
nameCounter: function nameCounter(value) {
|
||||
return value.length >= 5 || "Min 5 characters";
|
||||
},
|
||||
passCounter: function passCounter(value) {
|
||||
return value.length >= 6 || "Min 6 characters";
|
||||
},
|
||||
cellNumberCounter: function cellNumberCounter(value) {
|
||||
return value.length == 11 || "must 11 characters";
|
||||
}
|
||||
}
|
||||
};
|
||||
},
|
||||
methods: {
|
||||
register: function () {
|
||||
var _register = _asyncToGenerator(
|
||||
/*#__PURE__*/
|
||||
_babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.mark(function _callee() {
|
||||
var result;
|
||||
return _babel_runtime_regenerator__WEBPACK_IMPORTED_MODULE_0___default.a.wrap(function _callee$(_context) {
|
||||
while (1) {
|
||||
switch (_context.prev = _context.next) {
|
||||
case 0:
|
||||
if (!this.$refs.form.validate()) {
|
||||
_context.next = 5;
|
||||
break;
|
||||
}
|
||||
|
||||
_context.next = 3;
|
||||
return _services__WEBPACK_IMPORTED_MODULE_1__["ApiService"].post("register", this.form);
|
||||
|
||||
case 3:
|
||||
result = _context.sent;
|
||||
|
||||
if (result && result.status == 200) {
|
||||
this.$router.push({
|
||||
name: "OperatorList",
|
||||
params: {
|
||||
medicalCenter: this.form.medical_center_id
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
case 5:
|
||||
case "end":
|
||||
return _context.stop();
|
||||
}
|
||||
}
|
||||
}, _callee, this);
|
||||
}));
|
||||
|
||||
function register() {
|
||||
return _register.apply(this, arguments);
|
||||
}
|
||||
|
||||
return register;
|
||||
}()
|
||||
}
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/Auth/Register.vue?vue&type=template&id=051bdd9c&":
|
||||
/*!***************************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/Auth/Register.vue?vue&type=template&id=051bdd9c& ***!
|
||||
\***************************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"v-form",
|
||||
{ ref: "form" },
|
||||
[
|
||||
_c(
|
||||
"v-container",
|
||||
{ attrs: { "grid-list-xs": "" } },
|
||||
[
|
||||
_c(
|
||||
"v-layout",
|
||||
{ staticClass: "justify-center", attrs: { row: "", wrap: "" } },
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{
|
||||
staticClass: "WM-WidthScreen-SM WM-WidthScreen-XS",
|
||||
attrs: { xs12: "", md3: "", sm6: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"material-card",
|
||||
{ attrs: { color: "black", title: "Register Page" } },
|
||||
[
|
||||
_c(
|
||||
"v-layout",
|
||||
{ attrs: { column: "" } },
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md2: "", sm2: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
name: "name",
|
||||
label: "Name",
|
||||
color: "black",
|
||||
rules: [
|
||||
_vm.rules.required,
|
||||
_vm.rules.nameCounter
|
||||
]
|
||||
},
|
||||
model: {
|
||||
value: _vm.form.name,
|
||||
callback: function($$v) {
|
||||
_vm.$set(_vm.form, "name", $$v)
|
||||
},
|
||||
expression: "form.name"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md2: "", sm2: "" } },
|
||||
[
|
||||
_c("v-select", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
items: _vm.items,
|
||||
label: "Gender",
|
||||
name: "gender",
|
||||
"single-line": "",
|
||||
color: "black",
|
||||
rules: [_vm.rules.required]
|
||||
},
|
||||
model: {
|
||||
value: _vm.form.gender,
|
||||
callback: function($$v) {
|
||||
_vm.$set(_vm.form, "gender", $$v)
|
||||
},
|
||||
expression: "form.gender"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md2: "", sm2: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
name: "cell_number",
|
||||
label: "Cell Number",
|
||||
color: "black",
|
||||
rules: [
|
||||
_vm.rules.required,
|
||||
_vm.rules.cellNumberCounter
|
||||
],
|
||||
mask: "#### ### ####"
|
||||
},
|
||||
model: {
|
||||
value: _vm.form.cell_number,
|
||||
callback: function($$v) {
|
||||
_vm.$set(_vm.form, "cell_number", $$v)
|
||||
},
|
||||
expression: "form.cell_number"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-flex",
|
||||
{ attrs: { xs12: "", md2: "", sm2: "" } },
|
||||
[
|
||||
_c("v-text-field", {
|
||||
staticClass: "pa-2",
|
||||
attrs: {
|
||||
name: "password",
|
||||
label: "Password",
|
||||
type: _vm.show1 ? "text" : "password",
|
||||
"append-icon": _vm.show1
|
||||
? "visibility"
|
||||
: "visibility_off",
|
||||
color: "black",
|
||||
rules: [
|
||||
_vm.rules.required,
|
||||
_vm.rules.passCounter
|
||||
]
|
||||
},
|
||||
on: {
|
||||
"click:append": function($event) {
|
||||
_vm.show1 = !_vm.show1
|
||||
}
|
||||
},
|
||||
model: {
|
||||
value: _vm.form.password,
|
||||
callback: function($$v) {
|
||||
_vm.$set(_vm.form, "password", $$v)
|
||||
},
|
||||
expression: "form.password"
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"v-layout",
|
||||
{ attrs: { row: "", wrap: "" } },
|
||||
[
|
||||
_c(
|
||||
"v-flex",
|
||||
{
|
||||
staticClass:
|
||||
"text-md-left text-sm-center text-xs-center",
|
||||
attrs: { xs12: "", md6: "", sm6: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass: "WM-CyanBlueGradient-BG",
|
||||
staticStyle: { padding: "10px 60px" },
|
||||
on: { click: _vm.register }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{ staticClass: "white--text mr-2 caption" },
|
||||
[_vm._v("fas fa-plus")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c("span", { staticClass: "white--text" }, [
|
||||
_vm._v("Register")
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
),
|
||||
_vm._v(" "),
|
||||
!_vm.isLogin
|
||||
? _c(
|
||||
"v-flex",
|
||||
{
|
||||
staticClass:
|
||||
"text-md-right text-sm-center text-xs-center",
|
||||
attrs: { xs12: "", md6: "", sm6: "" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"router-link",
|
||||
{ attrs: { to: "/login" } },
|
||||
[
|
||||
_c(
|
||||
"v-btn",
|
||||
{
|
||||
staticClass:
|
||||
"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black"
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-icon",
|
||||
{
|
||||
staticClass:
|
||||
"black--text mr-2 caption"
|
||||
},
|
||||
[_vm._v("fas fa-sign-in-alt")]
|
||||
),
|
||||
_vm._v(" "),
|
||||
_c(
|
||||
"span",
|
||||
{ staticClass: "black--text" },
|
||||
[_vm._v("Login")]
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
: _vm._e()
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/Auth/Register.vue":
|
||||
/*!**************************************************!*\
|
||||
!*** ./resources/js/vue/views/Auth/Register.vue ***!
|
||||
\**************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _Register_vue_vue_type_template_id_051bdd9c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Register.vue?vue&type=template&id=051bdd9c& */ "./resources/js/vue/views/Auth/Register.vue?vue&type=template&id=051bdd9c&");
|
||||
/* harmony import */ var _Register_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Register.vue?vue&type=script&lang=js& */ "./resources/js/vue/views/Auth/Register.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_Register_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_Register_vue_vue_type_template_id_051bdd9c___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_Register_vue_vue_type_template_id_051bdd9c___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "resources/js/vue/views/Auth/Register.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/Auth/Register.vue?vue&type=script&lang=js&":
|
||||
/*!***************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/Auth/Register.vue?vue&type=script&lang=js& ***!
|
||||
\***************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Register_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/babel-loader/lib??ref--4-0!../../../../../node_modules/vue-loader/lib??vue-loader-options!./Register.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/Auth/Register.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Register_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/Auth/Register.vue?vue&type=template&id=051bdd9c&":
|
||||
/*!*********************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/Auth/Register.vue?vue&type=template&id=051bdd9c& ***!
|
||||
\*********************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Register_vue_vue_type_template_id_051bdd9c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../node_modules/vue-loader/lib??vue-loader-options!./Register.vue?vue&type=template&id=051bdd9c& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/Auth/Register.vue?vue&type=template&id=051bdd9c&");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Register_vue_vue_type_template_id_051bdd9c___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Register_vue_vue_type_template_id_051bdd9c___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
Vendored
+267
-1
@@ -1 +1,267 @@
|
||||
(window.webpackJsonp=window.webpackJsonp||[]).push([[9],{NLmH:function(e,t,r){"use strict";r.r(t);var s=r("o0o1"),a=r.n(s),n=r("Y8XJ");function l(e,t,r,s,a,n,l){try{var i=e[n](l),o=i.value}catch(e){return void r(e)}i.done?t(o):Promise.resolve(o).then(s,a)}var i={data:function(){var e=Object.freeze({cell_number:"",password:"",name:"",gender:"",medical_center_id:this.$route.params.medicalCenter?this.$route.params.medicalCenter:""});return{form:Object.assign({},e),show1:!1,items:["Male","FeMale"],isLogin:n.b.getInfo(),rules:{required:function(e){return!!e||"Required."},nameCounter:function(e){return e.length>=5||"Min 5 characters"},passCounter:function(e){return e.length>=6||"Min 6 characters"},cellNumberCounter:function(e){return 11==e.length||"must 11 characters"}}}},methods:{register:function(){var e,t=(e=a.a.mark(function e(){var t;return a.a.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.$refs.form.validate()){e.next=5;break}return e.next=3,n.a.post("register",this.form);case 3:(t=e.sent)&&200==t.status&&this.$router.push({name:"OperatorList",params:{medicalCenter:this.form.medical_center_id}});case 5:case"end":return e.stop()}},e,this)}),function(){var t=this,r=arguments;return new Promise(function(s,a){var n=e.apply(t,r);function i(e){l(n,s,a,i,o,"next",e)}function o(e){l(n,s,a,i,o,"throw",e)}i(void 0)})});return function(){return t.apply(this,arguments)}}()}},o=r("KHd+"),c=Object(o.a)(i,function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("v-form",{ref:"form"},[r("v-container",{attrs:{"grid-list-xs":""}},[r("v-layout",{staticClass:"justify-center",attrs:{row:"",wrap:""}},[r("v-flex",{staticClass:"WM-WidthScreen-SM WM-WidthScreen-XS",attrs:{xs12:"",md3:"",sm6:""}},[r("material-card",{attrs:{color:"black",title:"Register Page"}},[r("v-layout",{attrs:{column:""}},[r("v-flex",{attrs:{xs12:"",md2:"",sm2:""}},[r("v-text-field",{staticClass:"pa-2",attrs:{name:"name",label:"Name",color:"black",rules:[e.rules.required,e.rules.nameCounter]},model:{value:e.form.name,callback:function(t){e.$set(e.form,"name",t)},expression:"form.name"}})],1),e._v(" "),r("v-flex",{attrs:{xs12:"",md2:"",sm2:""}},[r("v-select",{staticClass:"pa-2",attrs:{items:e.items,label:"Gender",name:"gender","single-line":"",color:"black",rules:[e.rules.required]},model:{value:e.form.gender,callback:function(t){e.$set(e.form,"gender",t)},expression:"form.gender"}})],1),e._v(" "),r("v-flex",{attrs:{xs12:"",md2:"",sm2:""}},[r("v-text-field",{staticClass:"pa-2",attrs:{name:"cell_number",label:"Cell Number",color:"black",rules:[e.rules.required,e.rules.cellNumberCounter],mask:"#### ### ####"},model:{value:e.form.cell_number,callback:function(t){e.$set(e.form,"cell_number",t)},expression:"form.cell_number"}})],1),e._v(" "),r("v-flex",{attrs:{xs12:"",md2:"",sm2:""}},[r("v-text-field",{staticClass:"pa-2",attrs:{name:"password",label:"Password",type:e.show1?"text":"password","append-icon":e.show1?"visibility":"visibility_off",color:"black",rules:[e.rules.required,e.rules.passCounter]},on:{"click:append":function(t){e.show1=!e.show1}},model:{value:e.form.password,callback:function(t){e.$set(e.form,"password",t)},expression:"form.password"}})],1)],1),e._v(" "),r("v-layout",{attrs:{row:"",wrap:""}},[r("v-flex",{staticClass:"text-md-left text-sm-center text-xs-center",attrs:{xs12:"",md6:"",sm6:""}},[r("v-btn",{staticClass:"WM-CyanBlueGradient-BG",staticStyle:{padding:"10px 60px"},on:{click:e.register}},[r("v-icon",{staticClass:"white--text mr-2 caption"},[e._v("fas fa-plus")]),e._v(" "),r("span",{staticClass:"white--text"},[e._v("Register")])],1)],1),e._v(" "),e.isLogin?e._e():r("v-flex",{staticClass:"text-md-right text-sm-center text-xs-center",attrs:{xs12:"",md6:"",sm6:""}},[r("router-link",{attrs:{to:"/login"}},[r("v-btn",{staticClass:"WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black"},[r("v-icon",{staticClass:"black--text mr-2 caption"},[e._v("fas fa-sign-in-alt")]),e._v(" "),r("span",{staticClass:"black--text"},[e._v("Login")])],1)],1)],1)],1)],1)],1)],1)],1)],1)},[],!1,null,null,null);t.default=c.exports}}]);
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[9],{
|
||||
|
||||
/***/ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/Dashboard.vue?vue&type=script&lang=js&":
|
||||
/*!*******************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/babel-loader/lib??ref--4-0!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/Dashboard.vue?vue&type=script&lang=js& ***!
|
||||
\*******************************************************************************************************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
/* harmony default export */ __webpack_exports__["default"] = ({
|
||||
data: function data() {
|
||||
return {
|
||||
Cards: [{
|
||||
title: 'My Info',
|
||||
text: 'You can easily edit your registration information',
|
||||
icon: '/img/Static/Dashboard/darkmug.png',
|
||||
color: 'WM-OrangeGradient-BG',
|
||||
route: {
|
||||
name: 'MyInfo'
|
||||
},
|
||||
aligntext: 'text-md-left',
|
||||
alignimg: 'text-md-right',
|
||||
column: 'xs12 md6 sm6'
|
||||
}, {
|
||||
title: 'All Test Result',
|
||||
text: 'You can see all user tests and own tests',
|
||||
icon: '/img/Static/Dashboard/pad.png',
|
||||
color: 'WM-GreenGradient-BG',
|
||||
route: {
|
||||
name: 'AllResultTest'
|
||||
},
|
||||
aligntext: 'text-md-left',
|
||||
alignimg: 'text-md-right',
|
||||
column: 'xs12 md6 sm6'
|
||||
}, {
|
||||
title: 'Manage Users',
|
||||
text: 'You can edit the medical center information',
|
||||
icon: '/img/Static/Dashboard/ipad.png',
|
||||
color: 'WM-YellowPinkGradient-BG',
|
||||
route: {
|
||||
name: 'ManageUsers'
|
||||
},
|
||||
aligntext: 'text-md-center',
|
||||
alignimg: 'text-md-left',
|
||||
column: 'xs12 md12 sm12'
|
||||
}, {
|
||||
title: 'Manage Medical Center',
|
||||
text: 'Managing users very fast by ...',
|
||||
icon: '/img/Static/Dashboard/Macbook.png',
|
||||
color: 'WM-MuskGradient-BG',
|
||||
route: {
|
||||
name: 'ManageMedicalCenter'
|
||||
},
|
||||
aligntext: 'text-md-left',
|
||||
alignimg: 'text-md-right',
|
||||
column: 'xs12 md7 sm7'
|
||||
}, {
|
||||
title: 'List Test Type',
|
||||
text: 'You can simply add your own test type',
|
||||
icon: '/img/Static/Dashboard/Book-and-Pen.png',
|
||||
color: 'WM-GreyGradient-BG',
|
||||
route: {
|
||||
name: 'ListTestType'
|
||||
},
|
||||
aligntext: 'text-md-left',
|
||||
alignimg: 'text-md-right',
|
||||
column: 'xs12 md5 sm5'
|
||||
}, {
|
||||
title: 'Test to Verify',
|
||||
text: 'You can simply add your own test type in this section of website',
|
||||
icon: '/img/Static/Dashboard/notepad-colorful.png',
|
||||
color: 'WM-PinkGradient-BG',
|
||||
route: {
|
||||
name: 'SubmitTestResult'
|
||||
},
|
||||
aligntext: 'text-md-center',
|
||||
alignimg: 'text-md-left',
|
||||
column: 'xs12 md12 sm12'
|
||||
}, {
|
||||
title: 'Add a Test Result',
|
||||
text: 'You can edit the medical center information',
|
||||
icon: '/img/Static/Dashboard/ipad.png',
|
||||
color: 'WM-YellowPinkGradient-BG',
|
||||
route: {
|
||||
name: 'SubmitTestResult'
|
||||
},
|
||||
aligntext: 'text-md-center',
|
||||
alignimg: 'text-md-left',
|
||||
column: 'xs12 md12 sm12'
|
||||
}]
|
||||
};
|
||||
}
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/Dashboard.vue?vue&type=template&id=1e64fb7c&":
|
||||
/*!***********************************************************************************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./resources/js/vue/views/Dashboard.vue?vue&type=template&id=1e64fb7c& ***!
|
||||
\***********************************************************************************************************************************************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "render", function() { return render; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return staticRenderFns; });
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"v-container",
|
||||
{ attrs: { fluid: "" } },
|
||||
[
|
||||
_c(
|
||||
"material-card",
|
||||
{
|
||||
attrs: {
|
||||
color: "black",
|
||||
title: "Material Dashboard Heading",
|
||||
text: ""
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"v-layout",
|
||||
{ attrs: { row: "", wrap: "" } },
|
||||
_vm._l(_vm.Cards, function(Card, Key) {
|
||||
return _c(
|
||||
"v-flex",
|
||||
{ key: Key, class: [Card.column, "pa-2"] },
|
||||
[
|
||||
_c(
|
||||
"router-link",
|
||||
{ attrs: { to: Card.route } },
|
||||
[
|
||||
_c("material-cards", {
|
||||
attrs: {
|
||||
title: Card.title,
|
||||
icon: Card.icon,
|
||||
color: Card.color,
|
||||
text: Card.text,
|
||||
aligntext: Card.aligntext,
|
||||
alignimg: Card.alignimg
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
}),
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/Dashboard.vue":
|
||||
/*!**********************************************!*\
|
||||
!*** ./resources/js/vue/views/Dashboard.vue ***!
|
||||
\**********************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _Dashboard_vue_vue_type_template_id_1e64fb7c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./Dashboard.vue?vue&type=template&id=1e64fb7c& */ "./resources/js/vue/views/Dashboard.vue?vue&type=template&id=1e64fb7c&");
|
||||
/* harmony import */ var _Dashboard_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./Dashboard.vue?vue&type=script&lang=js& */ "./resources/js/vue/views/Dashboard.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport *//* harmony import */ var _node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js */ "./node_modules/vue-loader/lib/runtime/componentNormalizer.js");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(_node_modules_vue_loader_lib_runtime_componentNormalizer_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
||||
_Dashboard_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_1__["default"],
|
||||
_Dashboard_vue_vue_type_template_id_1e64fb7c___WEBPACK_IMPORTED_MODULE_0__["render"],
|
||||
_Dashboard_vue_vue_type_template_id_1e64fb7c___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"],
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "resources/js/vue/views/Dashboard.vue"
|
||||
/* harmony default export */ __webpack_exports__["default"] = (component.exports);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/Dashboard.vue?vue&type=script&lang=js&":
|
||||
/*!***********************************************************************!*\
|
||||
!*** ./resources/js/vue/views/Dashboard.vue?vue&type=script&lang=js& ***!
|
||||
\***********************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Dashboard_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/babel-loader/lib??ref--4-0!../../../../node_modules/vue-loader/lib??vue-loader-options!./Dashboard.vue?vue&type=script&lang=js& */ "./node_modules/babel-loader/lib/index.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/Dashboard.vue?vue&type=script&lang=js&");
|
||||
/* empty/unused harmony star reexport */ /* harmony default export */ __webpack_exports__["default"] = (_node_modules_babel_loader_lib_index_js_ref_4_0_node_modules_vue_loader_lib_index_js_vue_loader_options_Dashboard_vue_vue_type_script_lang_js___WEBPACK_IMPORTED_MODULE_0__["default"]);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./resources/js/vue/views/Dashboard.vue?vue&type=template&id=1e64fb7c&":
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./resources/js/vue/views/Dashboard.vue?vue&type=template&id=1e64fb7c& ***!
|
||||
\*****************************************************************************/
|
||||
/*! exports provided: render, staticRenderFns */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Dashboard_vue_vue_type_template_id_1e64fb7c___WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! -!../../../../node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../node_modules/vue-loader/lib??vue-loader-options!./Dashboard.vue?vue&type=template&id=1e64fb7c& */ "./node_modules/vue-loader/lib/loaders/templateLoader.js?!./node_modules/vue-loader/lib/index.js?!./resources/js/vue/views/Dashboard.vue?vue&type=template&id=1e64fb7c&");
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "render", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Dashboard_vue_vue_type_template_id_1e64fb7c___WEBPACK_IMPORTED_MODULE_0__["render"]; });
|
||||
|
||||
/* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "staticRenderFns", function() { return _node_modules_vue_loader_lib_loaders_templateLoader_js_vue_loader_options_node_modules_vue_loader_lib_index_js_vue_loader_options_Dashboard_vue_vue_type_template_id_1e64fb7c___WEBPACK_IMPORTED_MODULE_0__["staticRenderFns"]; });
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
@@ -1,3 +1,3 @@
|
||||
{
|
||||
"/vue/js/app.js": "/vue/js/app.js?id=146193bb8d1d2cfb5b62"
|
||||
"/vue/js/app.js": "/vue/js/app.js?id=da56fc571cf494ea6196"
|
||||
}
|
||||
|
||||
Vendored
+64057
-1
File diff suppressed because one or more lines are too long
Vendored
+3
@@ -25,6 +25,9 @@ const urls = {
|
||||
updateTestType : function(id) {
|
||||
return `/TestTypes/${id}`;
|
||||
},
|
||||
editTestResult : function(id) {
|
||||
return `/TestResults/${id}/edit`;
|
||||
},
|
||||
updateMedicalCenter : function(id) {
|
||||
return `/MedicalCenters/${id}`;
|
||||
},
|
||||
|
||||
Vendored
+3
-13
@@ -96,19 +96,9 @@ export default [
|
||||
name: 'SubmitTestResult',
|
||||
view: 'TestResult/AddEdit'
|
||||
},
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
path: '/test-creator',
|
||||
name: 'TestCreator',
|
||||
view: 'TestCreator'
|
||||
},
|
||||
{
|
||||
path: '/test',
|
||||
name: 'Test',
|
||||
view: 'Test'
|
||||
path: '/test-result/:testResult/edit',
|
||||
name: 'EditTestResult',
|
||||
view: 'TestResult/AddEdit'
|
||||
},
|
||||
]
|
||||
|
||||
@@ -119,7 +119,7 @@ export default {
|
||||
},
|
||||
async remove(id) {
|
||||
const result = await ApiService.delete(urls.deleteMedicalCenter(id));
|
||||
if (result.status == 200) {
|
||||
if (result && result.status == 200) {
|
||||
for (const key in this.items) {
|
||||
if (this.items.hasOwnProperty(key) && this.items[key].id == id) {
|
||||
this.items.splice(key, 1);
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<v-form ref="form">
|
||||
<v-container grid-list-xs>
|
||||
<material-card color="black" title="Submit Test Result">
|
||||
<v-layout align-center justify-center wrap class="px-5 my-3">
|
||||
<v-layout align-center justify-center wrap class="px-5 my-3" v-if="!$route.params.testResult">
|
||||
<v-flex xs12 sm4 md4>
|
||||
<v-autocomplete
|
||||
:search-input.sync="searchInput"
|
||||
@@ -33,7 +33,7 @@
|
||||
</v-btn>
|
||||
</v-flex>
|
||||
</v-layout>
|
||||
<v-layout row wrap class="px-5 my-3">
|
||||
<v-layout row wrap class="px-5 my-3" v-if="!$route.params.testResult">
|
||||
<v-divider></v-divider>
|
||||
</v-layout>
|
||||
<v-layout align-center justify-center wrap class="px-5 my-3">
|
||||
@@ -143,16 +143,23 @@ export default {
|
||||
searchInput: "",
|
||||
form: [],
|
||||
filter: {
|
||||
test_result_id: "",
|
||||
name: "",
|
||||
unique_code: ""
|
||||
},
|
||||
formData : {
|
||||
autoclave_id: "",
|
||||
result: "",
|
||||
test_type_id: "",
|
||||
}
|
||||
}),
|
||||
created() {
|
||||
if (this.$route.params.testResult) {
|
||||
this.filter.test_result_id = this.$route.params.testResult;
|
||||
this.selectTestType();
|
||||
}
|
||||
this.load();
|
||||
|
||||
},
|
||||
methods: {
|
||||
async load() {
|
||||
@@ -162,20 +169,29 @@ export default {
|
||||
async selectTestType() {
|
||||
const result = await ApiService.post(urls.getInputs, this.filter);
|
||||
if (result && result.status == 200) {
|
||||
this.form = result.data.data;
|
||||
for (const key in result.data.data) {
|
||||
if (result.data.data.hasOwnProperty(key)) {
|
||||
if(result.data.data[key].type !== 'Form') {
|
||||
this.formData[result.data.data[key].name] = '';
|
||||
} else {
|
||||
for (const keyForm in result.data.data[key].children) {
|
||||
if (result.data.data[key].children.hasOwnProperty(keyForm)) {
|
||||
this.formData[result.data.data[key].children[keyForm].name] = '';
|
||||
this.form = result.data.data.inputs;
|
||||
this.formData.test_type_id = result.data.data.testType.id;
|
||||
for (const key in result.data.data.inputs) {
|
||||
if (result.data.data.inputs.hasOwnProperty(key)) {
|
||||
if(result.data.data.inputs[key].type == 'Form') {
|
||||
for (const keyForm in result.data.data.inputs[key].children) {
|
||||
if (result.data.data.inputs[key].children.hasOwnProperty(keyForm)) {
|
||||
this.formData[result.data.data.inputs[key].children[keyForm].name] = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if(result.data.data.inputs[key].type == 'Checkbox') {
|
||||
this.formData[result.data.data.inputs[key].name] = [];
|
||||
} else {
|
||||
this.formData[result.data.data.inputs[key].name] = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
if (this.$route.params.testResult) {
|
||||
const result = await ApiService.get(urls.editTestResult(this.$route.params.testResult));
|
||||
if (result && result.status == 200) {
|
||||
this.formData = result.data.data;
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
async submitForm() {
|
||||
|
||||
@@ -59,9 +59,15 @@
|
||||
<v-icon class="white--text mr-1 caption">fas fa-folder</v-icon>
|
||||
<span>Archive</span>
|
||||
</v-btn>
|
||||
<v-btn color="cyan" class="mr-2">
|
||||
<v-icon class="white--text mr-1 caption">fas fa-pen</v-icon>
|
||||
<span>Edit</span>
|
||||
<router-link :to="{name: 'EditTestResult', params: {testResult: item.id}}">
|
||||
<v-btn color="cyan" class="mr-2">
|
||||
<v-icon class="white--text mr-1 caption">fas fa-pen</v-icon>
|
||||
<span>Edit</span>
|
||||
</v-btn>
|
||||
</router-link>
|
||||
<v-btn color="pink" class="mr-2" @click="remove(item.id)" >
|
||||
<v-icon class="white--text mr-1 caption">fas fa-times</v-icon>
|
||||
<span>Remove</span>
|
||||
</v-btn>
|
||||
</td>
|
||||
</template>
|
||||
@@ -141,9 +147,24 @@ export default {
|
||||
this.lastPage = result.data.data.last_page;
|
||||
}
|
||||
},
|
||||
async load() {
|
||||
const result = await ApiService.get(urls.listTestResult);
|
||||
if (result && result.status == 200) {
|
||||
this.items = result.data.data.data;
|
||||
this.currentPage = result.data.data.current_page;
|
||||
this.lastPage = result.data.data.last_page;
|
||||
}
|
||||
},
|
||||
async remove(testResultId) {
|
||||
const result = await ApiService.get(urls.removeTestResult(testResultId));
|
||||
if (result && result.status == 200) {
|
||||
for (const key in this.items) {
|
||||
if (this.items.hasOwnProperty(key) && this.items[key].id == testResultId) {
|
||||
this.items.splice(key, 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style lang="css" scoped>
|
||||
</style>
|
||||
</script>
|
||||
@@ -98,7 +98,7 @@
|
||||
<v-divider></v-divider>
|
||||
</v-layout>
|
||||
<v-layout row wrap align-center justify-center class="mt-3">
|
||||
<router-link to="/dashboard">
|
||||
<router-link :to="{name: 'Dashboard'}">
|
||||
<v-btn class="WM-NoShadow WM-Outline-Btn WM-Border WM-Border-Black ml-5">
|
||||
<v-icon class="black--text mr-2 caption">fas fa-chevron-left</v-icon>
|
||||
<span class="black--text">Back</span>
|
||||
|
||||
Reference in New Issue
Block a user