update database
This commit is contained in:
@@ -25,15 +25,15 @@ class DocumentCriteria implements CriteriaInterface
|
|||||||
{
|
{
|
||||||
$model = $model->where(function($model){
|
$model = $model->where(function($model){
|
||||||
$model = $model->where(function($model){
|
$model = $model->where(function($model){
|
||||||
if(auth()->user()->hasPermissionTo('Quản lý văn bản đến')){
|
if(auth()->user()->hasPermissionTo('Разрешении входящие документы')){
|
||||||
$model->orWhere('book_id', Book::DEN);
|
$model->orWhere('book_id', Book::DEN);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(auth()->user()->hasPermissionTo('Quản lý văn bản đi')){
|
if(auth()->user()->hasPermissionTo('Разрешении исходящие документы')){
|
||||||
$model->orWhere('book_id', Book::DI);
|
$model->orWhere('book_id', Book::DI);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(auth()->user()->hasPermissionTo('Quản lý văn bản nội bộ')){
|
if(auth()->user()->hasPermissionTo('Разрешении внутренние документы')){
|
||||||
$model->orWhere('book_id', Book::NOIBO);
|
$model->orWhere('book_id', Book::NOIBO);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -24,6 +24,6 @@ class UserIdIncorrectFormat extends Exception
|
|||||||
*/
|
*/
|
||||||
public function render($request)
|
public function render($request)
|
||||||
{
|
{
|
||||||
return $this->respondError("Mã người dùng " . $this->user->id . " không đúng định dạng.", 500);
|
return $this->respondError("Код пользователя " . $this->user->id . " Неправилный Формат", 500);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -9,12 +9,12 @@ class ComeInDocumentsExport extends BaseDocumentsExport
|
|||||||
public function headings(): array
|
public function headings(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'Ngày nhận',
|
'Дата получения',
|
||||||
'Nơi ban hành',
|
'Место выдачи',
|
||||||
'Ký hiệu',
|
'Ký hiệu',
|
||||||
'Loại',
|
'Тип документа',
|
||||||
'Trích yếu',
|
'Краткое содержание',
|
||||||
'Người nhận',
|
'Получатель',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ class ComeOutDocumentsExport extends BaseDocumentsExport
|
|||||||
public function headings(): array
|
public function headings(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'Ngày ban hành',
|
'Дата выдачи',
|
||||||
'Ký hiệu',
|
'Ký hiệu',
|
||||||
'Loại',
|
'Тип документа',
|
||||||
'Trích yếu',
|
'Краткое содержание',
|
||||||
'Nơi nhận',
|
'Место получения',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,11 +9,11 @@ class PrivateDocumentsExport extends BaseDocumentsExport
|
|||||||
public function headings(): array
|
public function headings(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'Ngày ban hành',
|
'Дата выдачи',
|
||||||
'Ký hiệu',
|
'Ký hiệu',
|
||||||
'Loại',
|
'Тип документа',
|
||||||
'Trích yếu',
|
'Краткое содержание',
|
||||||
'Người nhận',
|
'Получатель',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -43,14 +43,14 @@ implements
|
|||||||
public function headings(): array
|
public function headings(): array
|
||||||
{
|
{
|
||||||
return [
|
return [
|
||||||
'Mã',
|
'Код',
|
||||||
'Tên',
|
'Имя',
|
||||||
'Email',
|
'Электронный адрес',
|
||||||
'Số điện thoại',
|
'Номер телефон',
|
||||||
'Ngày sinh',
|
'Дата рождения',
|
||||||
'Chức danh',
|
'Должность',
|
||||||
'Phòng ban',
|
'Подразделение',
|
||||||
'Kích hoạt',
|
'Активирован',
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -70,7 +70,7 @@ implements
|
|||||||
|
|
||||||
public function title(): string
|
public function title(): string
|
||||||
{
|
{
|
||||||
return 'Danh sách người dùng';
|
return 'Список пользавателя';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function startCell(): string
|
public function startCell(): string
|
||||||
|
|||||||
@@ -138,7 +138,7 @@ class UsersController extends Controller
|
|||||||
{
|
{
|
||||||
$users = $this->repository->all();
|
$users = $this->repository->all();
|
||||||
$exporter = new \App\Exports\UsersExport($users);
|
$exporter = new \App\Exports\UsersExport($users);
|
||||||
$fileName = 'Danh sách người dùng.' . $request->export;
|
$fileName = 'Список пользавателя.' . $request->export;
|
||||||
return \Excel::download($exporter, $fileName, $request->export);
|
return \Excel::download($exporter, $fileName, $request->export);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class CreateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý sổ văn bản');
|
return $this->user()->hasPermissionTo('Разрешении книги');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class DestroyRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý sổ văn bản');
|
return $this->user()->hasPermissionTo('Разрешении книги');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class UpdateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý sổ văn bản');
|
return $this->user()->hasPermissionTo('Разрешении книги');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class CreateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý phòng ban');
|
return $this->user()->hasPermissionTo('Разрешении подразделение');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class DestroyRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý phòng ban');
|
return $this->user()->hasPermissionTo('Разрешении подразделение');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class UpdateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý phòng ban');
|
return $this->user()->hasPermissionTo('Разрешении подразделение');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ class CreateRequest extends FormRequest
|
|||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
$typeName = Str::lower(Book::find($this->book_id)->name);
|
$typeName = Str::lower(Book::find($this->book_id)->name);
|
||||||
return $this->user()->hasPermissionTo('Quản lý '. $typeName);
|
return $this->user()->hasPermissionTo('Разрешении '. $typeName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class ExportRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Báo cáo thống kê');
|
return $this->user()->hasPermissionTo('Статистическая');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class CreateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý loại văn bản');
|
return $this->user()->hasPermissionTo('Разрешении вид документа');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class DestroyRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý loại văn bản');
|
return $this->user()->hasPermissionTo('Разрешении вид документа');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class UpdateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý loại văn bản');
|
return $this->user()->hasPermissionTo('Разрешении вид документа');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class CreateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý nơi ban hành');
|
return $this->user()->hasPermissionTo('Разрешении место выдачи');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class DestroyRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý nơi ban hành');
|
return $this->user()->hasPermissionTo('Разрешении место выдачи');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class UpdateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý nơi ban hành');
|
return $this->user()->hasPermissionTo('Разрешении место выдачи');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class CreateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý quyền');
|
return $this->user()->hasPermissionTo('Разрешении разрешение');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class DestroyRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý quyền');
|
return $this->user()->hasPermissionTo('Разрешении разрешение');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class UpdateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý quyền');
|
return $this->user()->hasPermissionTo('Разрешении разрешение');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class CreateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý nhóm');
|
return $this->user()->hasPermissionTo('Разрешении');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class DestroyRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý nhóm');
|
return $this->user()->hasPermissionTo('Разрешении');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class GivePermissionRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Phân quyền');
|
return $this->user()->hasPermissionTo('Право');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class RevokePermissionRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Phân quyền');
|
return $this->user()->hasPermissionTo('Право');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class UpdateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý nhóm');
|
return $this->user()->hasPermissionTo('Разрешении');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class CreateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý người ký');
|
return $this->user()->hasPermissionTo('Разрешении подписал');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class DestroyRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý người ký');
|
return $this->user()->hasPermissionTo('Разрешении подписал');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class UpdateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý người ký');
|
return $this->user()->hasPermissionTo('Разрешении подписал');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class CreateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý chức danh');
|
return $this->user()->hasPermissionTo('Разрешении должность');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class DestroyRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý chức danh');
|
return $this->user()->hasPermissionTo('Разрешении должность');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class UpdateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý chức danh');
|
return $this->user()->hasPermissionTo('Разрешении должность');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class CreateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý người dùng');
|
return $this->user()->hasPermissionTo('Разрешении пользователь');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class DestroyRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý người dùng');
|
return $this->user()->hasPermissionTo('Разрешении пользователь');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class ExportRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý người dùng');
|
return $this->user()->hasPermissionTo('Разрешении пользователь');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class GivePermissionRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Phân quyền');
|
return $this->user()->hasPermissionTo('Право');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class GiveRoleRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Phân quyền');
|
return $this->user()->hasPermissionTo('Право');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class ImportRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý người dùng');
|
return $this->user()->hasPermissionTo('Разрешении пользователь');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ class UpdateRequest extends FormRequest
|
|||||||
*/
|
*/
|
||||||
public function authorize()
|
public function authorize()
|
||||||
{
|
{
|
||||||
return $this->user()->hasPermissionTo('Quản lý người dùng');
|
return $this->user()->hasPermissionTo('Разрешении пользователь');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -49,8 +49,8 @@ class DocumentReceived extends Notification implements ShouldQueue
|
|||||||
return (new MailMessage)
|
return (new MailMessage)
|
||||||
->subject($this->document->type->name)
|
->subject($this->document->type->name)
|
||||||
->greeting($this->document->type->name)
|
->greeting($this->document->type->name)
|
||||||
->line('Trích yếu: '. $this->document->abstract)
|
->line('Краткое содержание: '. $this->document->abstract)
|
||||||
->action('Chi tiết', url($this->getPathToDocument()));
|
->action('Деталь', url($this->getPathToDocument()));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -12,9 +12,9 @@ class BookSeeder extends Seeder
|
|||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
DB::table('books')->insert([
|
DB::table('books')->insert([
|
||||||
['name' => 'Inbox'],
|
['name' => 'Входящие документы'],
|
||||||
['name' => 'Văn bản đi'],
|
['name' => 'Исходящие документы'],
|
||||||
['name' => 'Văn bản nội bộ'],
|
['name' => 'Внутренние документы'],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,13 +12,13 @@ class DocumentTypeSeeder extends Seeder
|
|||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
DB::table('document_types')->insert([
|
DB::table('document_types')->insert([
|
||||||
['id' => 'BC', 'name' => 'Báo cáo'],
|
['id' => 'BC', 'name' => 'Отчет'],
|
||||||
['id' => 'CV', 'name' => 'Công văn'],
|
['id' => 'CV', 'name' => 'Приказ'],
|
||||||
['id' => 'HD', 'name' => 'Hướng dẫn'],
|
['id' => 'HD', 'name' => 'Интрукция'],
|
||||||
['id' => 'KH', 'name' => 'Kế hoạch'],
|
['id' => 'KH', 'name' => 'Справка'],
|
||||||
['id' => 'NQ', 'name' => 'Nghị quyết'],
|
['id' => 'NQ', 'name' => 'Положение'],
|
||||||
['id' => 'ND', 'name' => 'Nghị định'],
|
['id' => 'ND', 'name' => 'Заявление'],
|
||||||
['id' => 'QD', 'name' => 'Quyết định'],
|
['id' => 'QD', 'name' => 'Договор'],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -16,64 +16,64 @@ class PermissionSeeder extends Seeder
|
|||||||
$guard = config('auth.defaults.guard');
|
$guard = config('auth.defaults.guard');
|
||||||
|
|
||||||
DB::table(config('permission.table_names.permissions'))->insert([
|
DB::table(config('permission.table_names.permissions'))->insert([
|
||||||
['name' => 'Quản lý chức danh', 'guard_name' => $guard],
|
['name' => 'Разрешении должность', 'guard_name' => $guard],
|
||||||
['name' => 'Quản lý người dùng', 'guard_name' => $guard],
|
['name' => 'Разрешении пользователь', 'guard_name' => $guard],
|
||||||
['name' => 'Quản lý phòng ban', 'guard_name' => $guard],
|
['name' => 'Разрешении подразделение', 'guard_name' => $guard],
|
||||||
['name' => 'Quản lý nhóm', 'guard_name' => $guard],
|
['name' => 'Разрешении', 'guard_name' => $guard],
|
||||||
['name' => 'Quản lý người ký', 'guard_name' => $guard],
|
['name' => 'Разрешении подписал', 'guard_name' => $guard],
|
||||||
['name' => 'Quản lý nơi ban hành', 'guard_name' => $guard],
|
['name' => 'Разрешении место выдачи', 'guard_name' => $guard],
|
||||||
['name' => 'Quản lý loại văn bản', 'guard_name' => $guard],
|
['name' => 'Разрешении вид документа', 'guard_name' => $guard],
|
||||||
['name' => 'Quản lý quyền', 'guard_name' => $guard],
|
['name' => 'Разрешении разрешение', 'guard_name' => $guard],
|
||||||
['name' => 'Phân quyền', 'guard_name' => $guard],
|
['name' => 'Право', 'guard_name' => $guard],
|
||||||
['name' => 'Báo cáo thống kê', 'guard_name' => $guard],
|
['name' => 'Статистическая', 'guard_name' => $guard],
|
||||||
['name' => 'Quản lý văn bản đến', 'guard_name' => $guard],
|
['name' => 'Разрешении входящие документы', 'guard_name' => $guard],
|
||||||
['name' => 'Quản lý văn bản đi', 'guard_name' => $guard],
|
['name' => 'Разрешении исходящие документы', 'guard_name' => $guard],
|
||||||
['name' => 'Quản lý văn bản nội bộ', 'guard_name' => $guard],
|
['name' => 'Разрешении внутренние документы', 'guard_name' => $guard],
|
||||||
['name' => 'Quản lý sổ văn bản', 'guard_name' => $guard],
|
['name' => 'Разрешении книги', 'guard_name' => $guard],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
DB::table(config('permission.table_names.roles'))->insert([
|
DB::table(config('permission.table_names.roles'))->insert([
|
||||||
['name' => 'Lãnh đạo phòng', 'guard_name' => $guard],
|
['name' => 'Руководитель подразделения', 'guard_name' => $guard],
|
||||||
['name' => 'Chuyên viên', 'guard_name' => $guard],
|
['name' => 'Ведущий специалист', 'guard_name' => $guard],
|
||||||
['name' => 'Quản trị hệ thống', 'guard_name' => $guard],
|
['name' => 'Администратор', 'guard_name' => $guard],
|
||||||
['name' => 'Văn thư', 'guard_name' => $guard],
|
['name' => 'Секретарь', 'guard_name' => $guard],
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Role::find(1)->syncPermissions([
|
Role::find(1)->syncPermissions([
|
||||||
'Quản lý chức danh',
|
'Разрешении должность',
|
||||||
'Quản lý người dùng',
|
'Разрешении пользователь',
|
||||||
'Quản lý phòng ban',
|
'Разрешении подразделение',
|
||||||
'Quản lý người ký',
|
'Разрешении подписал',
|
||||||
'Quản lý nơi ban hành',
|
'Разрешении место выдачи',
|
||||||
'Quản lý quyền',
|
'Разрешении разрешение',
|
||||||
'Phân quyền',
|
'Право',
|
||||||
'Báo cáo thống kê',
|
'Статистическая',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Role::find(3)->syncPermissions([
|
Role::find(3)->syncPermissions([
|
||||||
'Quản lý chức danh',
|
'Разрешении должность',
|
||||||
'Quản lý người dùng',
|
'Разрешении пользователь',
|
||||||
'Quản lý phòng ban',
|
'Разрешении подразделение',
|
||||||
'Quản lý người ký',
|
'Разрешении подписал',
|
||||||
'Quản lý nơi ban hành',
|
'Разрешении место выдачи',
|
||||||
'Phân quyền',
|
'Право',
|
||||||
'Quản lý quyền',
|
'Разрешении разрешение',
|
||||||
'Quản lý nhóm',
|
'Разрешении',
|
||||||
'Báo cáo thống kê',
|
'Статистическая',
|
||||||
'Quản lý văn bản đến',
|
'Разрешении входящие документы',
|
||||||
'Quản lý văn bản đi',
|
'Разрешении исходящие документы',
|
||||||
'Quản lý văn bản nội bộ',
|
'Разрешении внутренние документы',
|
||||||
'Quản lý loại văn bản',
|
'Разрешении вид документа',
|
||||||
'Quản lý sổ văn bản',
|
'Разрешении книги',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
Role::find(4)->syncPermissions([
|
Role::find(4)->syncPermissions([
|
||||||
'Báo cáo thống kê',
|
'Статистическая',
|
||||||
'Quản lý văn bản đến',
|
'Разрешении входящие документы',
|
||||||
'Quản lý văn bản đi',
|
'Разрешении исходящие документы',
|
||||||
'Quản lý văn bản nội bộ',
|
'Разрешении внутренние документы',
|
||||||
'Quản lý loại văn bản',
|
'Разрешении вид документа',
|
||||||
'Quản lý sổ văn bản',
|
'Разрешении книги',
|
||||||
]);
|
]);
|
||||||
|
|
||||||
for ($i=0; $i < 10; $i++) {
|
for ($i=0; $i < 10; $i++) {
|
||||||
@@ -91,6 +91,6 @@ class PermissionSeeder extends Seeder
|
|||||||
->assignRole(Role::all()->random()->id);
|
->assignRole(Role::all()->random()->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
User::find('PKTCN-TP-1')->assignRole('Quản trị hệ thống');
|
User::find('PKTCN-TP-1')->assignRole('Администратор');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,11 +12,11 @@ class SignerSeeder extends Seeder
|
|||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
DB::table('signers')->insert([
|
DB::table('signers')->insert([
|
||||||
['name' => 'Nguyễn Thanh Toàn', 'description' => 'Trưởng phòng tài chính'],
|
['name' => 'Nguyễn Thanh Toàn', 'description' => 'Главный финансовый директор'],
|
||||||
['name' => 'Đào Thị Xa', 'description' => 'Giám đốc sở'],
|
['name' => 'Đào Thị Xa', 'description' => 'Генеральный директор'],
|
||||||
['name' => 'Hoàng Công', 'description' => 'Giám đốc công ty MACD'],
|
['name' => 'Hoàng Công', 'description' => 'Руководитель компание'],
|
||||||
['name' => 'Nguyễn Công Quân', 'description' => null],
|
['name' => 'Nguyễn Công Quân', 'description' => null],
|
||||||
['name' => 'Nguyễn Đức Tiên', 'description' => 'Phó giám đốc điều hành Hải Sơn'],
|
['name' => 'Nguyễn Đức Tiên', 'description' => 'Замдиректор'],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,11 +12,11 @@ class TitleSeeder extends Seeder
|
|||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
DB::table('titles')->insert([
|
DB::table('titles')->insert([
|
||||||
['id' => 'GD', 'name' => 'Giám đốc'],
|
['id' => 'GD', 'name' => 'Директор'],
|
||||||
['id' => 'PGD', 'name' => 'Phó giám đốc'],
|
['id' => 'PGD', 'name' => 'ЗамДиректор'],
|
||||||
['id' => 'TP', 'name' => 'Trưởng phòng'],
|
['id' => 'TP', 'name' => 'Менеджер'],
|
||||||
['id' => 'PP', 'name' => 'Phó phòng'],
|
['id' => 'PP', 'name' => 'ЗамМенеджер'],
|
||||||
['id' => 'CV', 'name' => 'Chuyên viên'],
|
['id' => 'CV', 'name' => 'Ведущий специалист'],
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|||||||
title: {
|
title: {
|
||||||
required: false,
|
required: false,
|
||||||
type: String,
|
type: String,
|
||||||
"default": "Danh sách"
|
"default": "Список"
|
||||||
},
|
},
|
||||||
canCreate: {
|
canCreate: {
|
||||||
required: false,
|
required: false,
|
||||||
@@ -254,8 +254,8 @@ var render = function() {
|
|||||||
{
|
{
|
||||||
name: "c-tooltip",
|
name: "c-tooltip",
|
||||||
rawName: "v-c-tooltip",
|
rawName: "v-c-tooltip",
|
||||||
value: "Tạo mới",
|
value: "Создать новый",
|
||||||
expression: "'Tạo mới'"
|
expression: "'Создать новый'"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
staticClass: "float-right",
|
staticClass: "float-right",
|
||||||
@@ -321,7 +321,7 @@ var render = function() {
|
|||||||
},
|
},
|
||||||
[
|
[
|
||||||
_c("CIcon", { attrs: { name: "cil-plus" } }),
|
_c("CIcon", { attrs: { name: "cil-plus" } }),
|
||||||
_vm._v(" Tạo mới\n ")
|
_vm._v(" Создать новый\n ")
|
||||||
],
|
],
|
||||||
1
|
1
|
||||||
)
|
)
|
||||||
|
|||||||
42
public/12.js
42
public/12.js
@@ -28,7 +28,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
"default": function _default() {
|
"default": function _default() {
|
||||||
return [{
|
return [{
|
||||||
value: "",
|
value: "",
|
||||||
label: "Tất cả"
|
label: "Все"
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -237,56 +237,56 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|||||||
fields: function fields() {
|
fields: function fields() {
|
||||||
return [{
|
return [{
|
||||||
key: "symbol",
|
key: "symbol",
|
||||||
label: "Số ký hiệu"
|
label: "Номер регистрации"
|
||||||
}, {
|
}, {
|
||||||
key: "abstract",
|
key: "abstract",
|
||||||
label: "Trích yếu",
|
label: "Краткое содержание",
|
||||||
_classes: "w-50 font-weight-bold"
|
_classes: "w-50 font-weight-bold"
|
||||||
}, {
|
}, {
|
||||||
key: "type",
|
key: "type",
|
||||||
label: "Loại"
|
label: "Тип документа"
|
||||||
}, {
|
}, {
|
||||||
key: "publisher",
|
key: "publisher",
|
||||||
label: "Nơi ban hành"
|
label: "Место выдачи"
|
||||||
}, {
|
}, {
|
||||||
key: "effective_at",
|
key: "effective_at",
|
||||||
label: this.isDocumentsIncome ? "Ngày nhận" : "Ngày ban hành"
|
label: this.isDocumentsIncome ? "Дата получения" : "Дата выдачи"
|
||||||
}];
|
}];
|
||||||
},
|
},
|
||||||
searchFields: function searchFields() {
|
searchFields: function searchFields() {
|
||||||
return [{
|
return [{
|
||||||
value: "symbol",
|
value: "symbol",
|
||||||
label: "Số ký hiệu"
|
label: "Номер регистрации"
|
||||||
}, {
|
}, {
|
||||||
value: "abstract",
|
value: "abstract",
|
||||||
label: "Trích yếu"
|
label: "Краткое содержание"
|
||||||
}, {
|
}, {
|
||||||
value: "type.name",
|
value: "type.name",
|
||||||
label: "Loại"
|
label: "Тип документа"
|
||||||
}, {
|
}, {
|
||||||
value: "creator.name",
|
value: "creator.name",
|
||||||
label: "Người soạn"
|
label: "Создатель"
|
||||||
}, {
|
}, {
|
||||||
value: "signer.name",
|
value: "signer.name",
|
||||||
label: "Người ký"
|
label: "Подписал"
|
||||||
}, {
|
}, {
|
||||||
value: "effective_at",
|
value: "effective_at",
|
||||||
label: this.isDocumentsIncome ? "Ngày nhận" : "Ngày ban hành"
|
label: this.isDocumentsIncome ? "Дата получения" : "Дата выдачи"
|
||||||
}, {
|
}, {
|
||||||
value: "sign_at",
|
value: "sign_at",
|
||||||
label: "Ngày ký"
|
label: "Дата подписания"
|
||||||
}, {
|
}, {
|
||||||
value: "publisher.name",
|
value: "publisher.name",
|
||||||
label: "Nơi ban hành"
|
label: "Место выдачи"
|
||||||
}, {
|
}, {
|
||||||
value: "organizes.name",
|
value: "organizes.name",
|
||||||
label: "Nơi nhận"
|
label: "Место получения"
|
||||||
}, {
|
}, {
|
||||||
value: "linkTo.symbol",
|
value: "linkTo.symbol",
|
||||||
label: "Liên kết văn bản đến"
|
label: "Разрешении входящие документы"
|
||||||
}, {
|
}, {
|
||||||
value: "receivers.seen",
|
value: "receivers.seen",
|
||||||
label: "Chưa xem",
|
label: "Непрочитанные",
|
||||||
defaultValue: 0
|
defaultValue: 0
|
||||||
}];
|
}];
|
||||||
},
|
},
|
||||||
@@ -392,7 +392,7 @@ var render = function() {
|
|||||||
{ attrs: { sm: "9" } },
|
{ attrs: { sm: "9" } },
|
||||||
[
|
[
|
||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
attrs: { placeholder: "Tìm kiếm", value: _vm.value },
|
attrs: { placeholder: "Искать", value: _vm.value },
|
||||||
on: {
|
on: {
|
||||||
"update:value": [
|
"update:value": [
|
||||||
function($event) {
|
function($event) {
|
||||||
@@ -445,7 +445,7 @@ var render = function() {
|
|||||||
"CCardHeader",
|
"CCardHeader",
|
||||||
[
|
[
|
||||||
_c("CIcon", { attrs: { name: "cil-grid" } }),
|
_c("CIcon", { attrs: { name: "cil-grid" } }),
|
||||||
_vm._v("Danh sách văn bản\n "),
|
_vm._v("Книга\n "),
|
||||||
_c(
|
_c(
|
||||||
"CButton",
|
"CButton",
|
||||||
{
|
{
|
||||||
@@ -453,8 +453,8 @@ var render = function() {
|
|||||||
{
|
{
|
||||||
name: "c-tooltip",
|
name: "c-tooltip",
|
||||||
rawName: "v-c-tooltip",
|
rawName: "v-c-tooltip",
|
||||||
value: "Tạo mới",
|
value: "Создать новый",
|
||||||
expression: "'Tạo mới'"
|
expression: "'Создать новый'"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
staticClass: "float-right",
|
staticClass: "float-right",
|
||||||
|
|||||||
50
public/13.js
50
public/13.js
@@ -28,7 +28,7 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
"default": function _default() {
|
"default": function _default() {
|
||||||
return [{
|
return [{
|
||||||
value: "",
|
value: "",
|
||||||
label: "Tất cả"
|
label: "Все"
|
||||||
}];
|
}];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -190,51 +190,51 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|||||||
items: null,
|
items: null,
|
||||||
fields: [{
|
fields: [{
|
||||||
key: "id",
|
key: "id",
|
||||||
label: "Mã"
|
label: "Код"
|
||||||
}, {
|
}, {
|
||||||
key: "name",
|
key: "name",
|
||||||
label: "Tên",
|
label: "Имя",
|
||||||
_classes: "font-weight-bold"
|
_classes: "font-weight-bold"
|
||||||
}, {
|
}, {
|
||||||
key: "email",
|
key: "email",
|
||||||
label: "Email"
|
label: "Email"
|
||||||
}, {
|
}, {
|
||||||
key: "tel",
|
key: "tel",
|
||||||
label: "Số điện thoại"
|
label: "Номер телефон"
|
||||||
}, {
|
}, {
|
||||||
key: "title",
|
key: "title",
|
||||||
label: "Chức danh"
|
label: "Должность"
|
||||||
}, {
|
}, {
|
||||||
key: "department",
|
key: "department",
|
||||||
label: "Phòng ban"
|
label: "Подразделение"
|
||||||
}],
|
}],
|
||||||
searchFields: [{
|
searchFields: [{
|
||||||
value: "",
|
value: "",
|
||||||
label: "Tất cả"
|
label: "Все"
|
||||||
}, {
|
}, {
|
||||||
value: "id",
|
value: "id",
|
||||||
label: "Mã"
|
label: "Код"
|
||||||
}, {
|
}, {
|
||||||
value: "name",
|
value: "name",
|
||||||
label: "Tên"
|
label: "Имя"
|
||||||
}, {
|
}, {
|
||||||
value: "email",
|
value: "email",
|
||||||
label: "Email"
|
label: "Email"
|
||||||
}, {
|
}, {
|
||||||
value: "tel",
|
value: "tel",
|
||||||
label: "Số điện thoại"
|
label: "Номер телефон"
|
||||||
}, {
|
}, {
|
||||||
value: "birthday",
|
value: "birthday",
|
||||||
label: "Ngày sinh"
|
label: "Дата рождения"
|
||||||
}, {
|
}, {
|
||||||
value: "title.name",
|
value: "title.name",
|
||||||
label: "Chức danh"
|
label: "Должность"
|
||||||
}, {
|
}, {
|
||||||
value: "department.name",
|
value: "department.name",
|
||||||
label: "Phòng ban"
|
label: "Подразделение"
|
||||||
}, {
|
}, {
|
||||||
value: "created_at",
|
value: "created_at",
|
||||||
label: "Ngày tạo"
|
label: "Дата создания"
|
||||||
}],
|
}],
|
||||||
currentPage: 1,
|
currentPage: 1,
|
||||||
pages: 0,
|
pages: 0,
|
||||||
@@ -372,7 +372,7 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|||||||
search: this.searchValue,
|
search: this.searchValue,
|
||||||
searchFields: this.searchField
|
searchFields: this.searchField
|
||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
_this3.$toast.success("Đã xuất");
|
_this3.$toast.success("Exported");
|
||||||
})["catch"](function (error) {
|
})["catch"](function (error) {
|
||||||
_this3.toastHttpError(error);
|
_this3.toastHttpError(error);
|
||||||
});
|
});
|
||||||
@@ -417,7 +417,7 @@ var render = function() {
|
|||||||
{ attrs: { sm: "9" } },
|
{ attrs: { sm: "9" } },
|
||||||
[
|
[
|
||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
attrs: { placeholder: "Tìm kiếm", value: _vm.value },
|
attrs: { placeholder: "Искать", value: _vm.value },
|
||||||
on: {
|
on: {
|
||||||
"update:value": [
|
"update:value": [
|
||||||
function($event) {
|
function($event) {
|
||||||
@@ -470,7 +470,7 @@ var render = function() {
|
|||||||
"CCardHeader",
|
"CCardHeader",
|
||||||
[
|
[
|
||||||
_c("CIcon", { attrs: { name: "cil-grid" } }),
|
_c("CIcon", { attrs: { name: "cil-grid" } }),
|
||||||
_vm._v("Danh sách người dùng\n "),
|
_vm._v("Список пользавателя\n "),
|
||||||
_c(
|
_c(
|
||||||
"CButton",
|
"CButton",
|
||||||
{
|
{
|
||||||
@@ -478,8 +478,8 @@ var render = function() {
|
|||||||
{
|
{
|
||||||
name: "c-tooltip",
|
name: "c-tooltip",
|
||||||
rawName: "v-c-tooltip",
|
rawName: "v-c-tooltip",
|
||||||
value: "Tạo mới",
|
value: "Создать новый",
|
||||||
expression: "'Tạo mới'"
|
expression: "'Создать новый'"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
staticClass: "float-right",
|
staticClass: "float-right",
|
||||||
@@ -501,8 +501,8 @@ var render = function() {
|
|||||||
{
|
{
|
||||||
name: "c-tooltip",
|
name: "c-tooltip",
|
||||||
rawName: "v-c-tooltip",
|
rawName: "v-c-tooltip",
|
||||||
value: "Xuất",
|
value: "Export",
|
||||||
expression: "'Xuất'"
|
expression: "'Export'"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
staticClass: "float-right mr-2",
|
staticClass: "float-right mr-2",
|
||||||
@@ -528,8 +528,8 @@ var render = function() {
|
|||||||
{
|
{
|
||||||
name: "c-tooltip",
|
name: "c-tooltip",
|
||||||
rawName: "v-c-tooltip",
|
rawName: "v-c-tooltip",
|
||||||
value: "Nhập",
|
value: "Import",
|
||||||
expression: "'Nhập'"
|
expression: "'Import'"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
staticClass: "float-right mr-2",
|
staticClass: "float-right mr-2",
|
||||||
@@ -584,7 +584,7 @@ var render = function() {
|
|||||||
_c("td", [
|
_c("td", [
|
||||||
_vm._v(
|
_vm._v(
|
||||||
_vm._s(
|
_vm._s(
|
||||||
item.title ? item.title.name : "Chưa xác định"
|
item.title ? item.title.name : "Неопределено"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
@@ -601,7 +601,7 @@ var render = function() {
|
|||||||
_vm._s(
|
_vm._s(
|
||||||
item.department
|
item.department
|
||||||
? item.department.name
|
? item.department.name
|
||||||
: "Chưa xác định"
|
: "Неопределено"
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
|
|||||||
14
public/16.js
14
public/16.js
@@ -105,17 +105,17 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|||||||
fields: function fields() {
|
fields: function fields() {
|
||||||
return [{
|
return [{
|
||||||
key: "symbol",
|
key: "symbol",
|
||||||
label: "Số ký hiệu"
|
label: "Номер регистрации"
|
||||||
}, {
|
}, {
|
||||||
key: "abstract",
|
key: "abstract",
|
||||||
label: "Trích yếu",
|
label: "Краткое содержание",
|
||||||
_classes: "w-50 font-weight-bold"
|
_classes: "w-50 font-weight-bold"
|
||||||
}, {
|
}, {
|
||||||
key: "type",
|
key: "type",
|
||||||
label: "Loại"
|
label: "Тип документа"
|
||||||
}, {
|
}, {
|
||||||
key: "book",
|
key: "book",
|
||||||
label: "Sổ"
|
label: "Книга"
|
||||||
}];
|
}];
|
||||||
},
|
},
|
||||||
highlightStyle: function highlightStyle() {
|
highlightStyle: function highlightStyle() {
|
||||||
@@ -219,9 +219,9 @@ var render = function() {
|
|||||||
attrs: {
|
attrs: {
|
||||||
color: "white",
|
color: "white",
|
||||||
"right-header": "" + book.unread,
|
"right-header": "" + book.unread,
|
||||||
"right-footer": "Chưa xem",
|
"right-footer": "Непрочитанные",
|
||||||
"left-header": "" + book.count,
|
"left-header": "" + book.count,
|
||||||
"left-footer": "Đã nhận"
|
"left-footer": "Полученные"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
[
|
[
|
||||||
@@ -253,7 +253,7 @@ var render = function() {
|
|||||||
"CCardHeader",
|
"CCardHeader",
|
||||||
[
|
[
|
||||||
_c("CIcon", { attrs: { name: "cil-grid" } }),
|
_c("CIcon", { attrs: { name: "cil-grid" } }),
|
||||||
_vm._v(" Văn bản gần đây\n ")
|
_vm._v(" Недавно смотреть\n ")
|
||||||
],
|
],
|
||||||
1
|
1
|
||||||
),
|
),
|
||||||
|
|||||||
34
public/4.js
34
public/4.js
@@ -584,7 +584,7 @@ var render = function() {
|
|||||||
return _c(
|
return _c(
|
||||||
"CCard",
|
"CCard",
|
||||||
[
|
[
|
||||||
_c("CCardHeader", [_c("strong", [_vm._v("Thông tin")])]),
|
_c("CCardHeader", [_c("strong", [_vm._v("Информация")])]),
|
||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c(
|
_c(
|
||||||
"CCardBody",
|
"CCardBody",
|
||||||
@@ -594,7 +594,7 @@ var render = function() {
|
|||||||
[
|
[
|
||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
attrs: {
|
attrs: {
|
||||||
label: "Mã",
|
label: "Код",
|
||||||
value: _vm.user.id,
|
value: _vm.user.id,
|
||||||
horizontal: "",
|
horizontal: "",
|
||||||
readonly: true
|
readonly: true
|
||||||
@@ -609,7 +609,7 @@ var render = function() {
|
|||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
attrs: {
|
attrs: {
|
||||||
placeholder: "Let us know your full name.",
|
placeholder: "Let us know your full name.",
|
||||||
label: "Tên",
|
label: "Имя",
|
||||||
value: _vm.user.name,
|
value: _vm.user.name,
|
||||||
horizontal: ""
|
horizontal: ""
|
||||||
},
|
},
|
||||||
@@ -638,7 +638,7 @@ var render = function() {
|
|||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
attrs: {
|
attrs: {
|
||||||
label: "Số điện thoại",
|
label: "Номер телефон",
|
||||||
placeholder: "Enter your tel",
|
placeholder: "Enter your tel",
|
||||||
value: _vm.user.tel,
|
value: _vm.user.tel,
|
||||||
horizontal: "",
|
horizontal: "",
|
||||||
@@ -653,7 +653,7 @@ var render = function() {
|
|||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
attrs: {
|
attrs: {
|
||||||
label: "Ngày sinh",
|
label: "Дата рождения",
|
||||||
type: "date",
|
type: "date",
|
||||||
value: _vm.user.birthday,
|
value: _vm.user.birthday,
|
||||||
horizontal: ""
|
horizontal: ""
|
||||||
@@ -667,7 +667,7 @@ var render = function() {
|
|||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c("CSelect", {
|
_c("CSelect", {
|
||||||
attrs: {
|
attrs: {
|
||||||
label: "Chức danh",
|
label: "Должность",
|
||||||
horizontal: "",
|
horizontal: "",
|
||||||
value: _vm.user.title_id,
|
value: _vm.user.title_id,
|
||||||
options: _vm.titles,
|
options: _vm.titles,
|
||||||
@@ -682,7 +682,7 @@ var render = function() {
|
|||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c("CSelect", {
|
_c("CSelect", {
|
||||||
attrs: {
|
attrs: {
|
||||||
label: "Phòng ban",
|
label: "Подразделение",
|
||||||
horizontal: "",
|
horizontal: "",
|
||||||
value: _vm.user.department_id,
|
value: _vm.user.department_id,
|
||||||
options: _vm.departments,
|
options: _vm.departments,
|
||||||
@@ -707,7 +707,7 @@ var render = function() {
|
|||||||
_c(
|
_c(
|
||||||
"label",
|
"label",
|
||||||
{ staticClass: "col-form-label col-sm-3" },
|
{ staticClass: "col-form-label col-sm-3" },
|
||||||
[_vm._v("Kích hoạt")]
|
[_vm._v("Активирован")]
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
]
|
]
|
||||||
@@ -794,7 +794,7 @@ var render = function() {
|
|||||||
return _c(
|
return _c(
|
||||||
"CCard",
|
"CCard",
|
||||||
[
|
[
|
||||||
_c("CCardHeader", [_c("strong", [_vm._v("Thay đổi mật khẩu")])]),
|
_c("CCardHeader", [_c("strong", [_vm._v("Измененить пароль")])]),
|
||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c(
|
_c(
|
||||||
"CCardBody",
|
"CCardBody",
|
||||||
@@ -804,8 +804,8 @@ var render = function() {
|
|||||||
[
|
[
|
||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
attrs: {
|
attrs: {
|
||||||
placeholder: "Nhập mật khẩu.",
|
placeholder: "Вводите пароль.",
|
||||||
label: "Mật khẩu",
|
label: "Пароль",
|
||||||
type: "password",
|
type: "password",
|
||||||
horizontal: ""
|
horizontal: ""
|
||||||
}
|
}
|
||||||
@@ -813,8 +813,8 @@ var render = function() {
|
|||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
attrs: {
|
attrs: {
|
||||||
placeholder: "Nhập mật khẩu mới.",
|
placeholder: "Вводите новый пароль.",
|
||||||
label: "Mật khẩu mới",
|
label: "Новый пароль",
|
||||||
type: "password",
|
type: "password",
|
||||||
value: _vm.password.password,
|
value: _vm.password.password,
|
||||||
horizontal: ""
|
horizontal: ""
|
||||||
@@ -828,8 +828,8 @@ var render = function() {
|
|||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
attrs: {
|
attrs: {
|
||||||
placeholder: "Nhập lại mật khẩu mới.",
|
placeholder: "Подтверждение пароля.",
|
||||||
label: "Xác nhận",
|
label: "Подтверждить",
|
||||||
type: "password",
|
type: "password",
|
||||||
value: _vm.password.password_confirmation,
|
value: _vm.password.password_confirmation,
|
||||||
horizontal: ""
|
horizontal: ""
|
||||||
@@ -904,7 +904,7 @@ var render = function() {
|
|||||||
"CCol",
|
"CCol",
|
||||||
{ attrs: { sm: "12" } },
|
{ attrs: { sm: "12" } },
|
||||||
[
|
[
|
||||||
_c("label", [_vm._v("Phân theo chức năng")]),
|
_c("label", [_vm._v("По функциям")]),
|
||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c("treeselect", {
|
_c("treeselect", {
|
||||||
attrs: {
|
attrs: {
|
||||||
@@ -958,7 +958,7 @@ var render = function() {
|
|||||||
"CCol",
|
"CCol",
|
||||||
{ attrs: { sm: "12" } },
|
{ attrs: { sm: "12" } },
|
||||||
[
|
[
|
||||||
_c("label", [_vm._v("Phân theo nhóm")]),
|
_c("label", [_vm._v("По группам")]),
|
||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c("treeselect", {
|
_c("treeselect", {
|
||||||
attrs: {
|
attrs: {
|
||||||
|
|||||||
10
public/42.js
10
public/42.js
@@ -69,10 +69,10 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
password: this.password
|
password: this.password
|
||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
_this.$router.push(_this.$route.query.redirectFrom || {
|
_this.$router.push(_this.$route.query.redirectFrom || {
|
||||||
name: "Trang chủ"
|
name: "Домашняя страница"
|
||||||
});
|
});
|
||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
_this.$toast.success("Đăng nhập thành công");
|
_this.$toast.success("Успешно войти");
|
||||||
})["catch"](function (error) {
|
})["catch"](function (error) {
|
||||||
_this.toastHttpError(error);
|
_this.toastHttpError(error);
|
||||||
});
|
});
|
||||||
@@ -122,7 +122,7 @@ var render = function() {
|
|||||||
"CForm",
|
"CForm",
|
||||||
[
|
[
|
||||||
_c("h1", { staticClass: "pb-4" }, [
|
_c("h1", { staticClass: "pb-4" }, [
|
||||||
_vm._v("Đăng nhập")
|
_vm._v("Войти")
|
||||||
]),
|
]),
|
||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c(
|
_c(
|
||||||
@@ -205,7 +205,7 @@ var render = function() {
|
|||||||
attrs: { color: "primary" },
|
attrs: { color: "primary" },
|
||||||
on: { click: _vm.login }
|
on: { click: _vm.login }
|
||||||
},
|
},
|
||||||
[_vm._v("Đăng nhập")]
|
[_vm._v("Войти")]
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
1
|
1
|
||||||
@@ -221,7 +221,7 @@ var render = function() {
|
|||||||
_c(
|
_c(
|
||||||
"CButton",
|
"CButton",
|
||||||
{ attrs: { color: "link" } },
|
{ attrs: { color: "link" } },
|
||||||
[_vm._v("Quên mật khẩu?")]
|
[_vm._v("Забыли пароль?")]
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
1
|
1
|
||||||
|
|||||||
18
public/46.js
18
public/46.js
@@ -198,7 +198,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|||||||
var _this3 = this;
|
var _this3 = this;
|
||||||
|
|
||||||
_services_factory__WEBPACK_IMPORTED_MODULE_1__["default"].statistic.download(this.statistic).then(function (response) {
|
_services_factory__WEBPACK_IMPORTED_MODULE_1__["default"].statistic.download(this.statistic).then(function (response) {
|
||||||
_this3.$toast.success("Đã xuất báo cáo");
|
_this3.$toast.success("Exported báo cáo");
|
||||||
})["catch"](function (error) {
|
})["catch"](function (error) {
|
||||||
_this3.toastHttpError(error);
|
_this3.toastHttpError(error);
|
||||||
});
|
});
|
||||||
@@ -226,7 +226,7 @@ var render = function() {
|
|||||||
return _c(
|
return _c(
|
||||||
"CCard",
|
"CCard",
|
||||||
[
|
[
|
||||||
_c("CCardHeader", [_c("strong", [_vm._v("Thống kê")])]),
|
_c("CCardHeader", [_c("strong", [_vm._v("Статистическая")])]),
|
||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c(
|
_c(
|
||||||
"CCardBody",
|
"CCardBody",
|
||||||
@@ -251,7 +251,7 @@ var render = function() {
|
|||||||
fn: function() {
|
fn: function() {
|
||||||
return [
|
return [
|
||||||
_vm._t("label", [
|
_vm._t("label", [
|
||||||
_c("label", [_vm._v("Sổ văn bản")])
|
_c("label", [_vm._v("Документы")])
|
||||||
])
|
])
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -266,7 +266,7 @@ var render = function() {
|
|||||||
multiple: false,
|
multiple: false,
|
||||||
options: _vm.books,
|
options: _vm.books,
|
||||||
clearable: true,
|
clearable: true,
|
||||||
placeholder: "Tất cả"
|
placeholder: "Все"
|
||||||
},
|
},
|
||||||
model: {
|
model: {
|
||||||
value: _vm.statistic.book,
|
value: _vm.statistic.book,
|
||||||
@@ -302,7 +302,7 @@ var render = function() {
|
|||||||
fn: function() {
|
fn: function() {
|
||||||
return [
|
return [
|
||||||
_vm._t("label", [
|
_vm._t("label", [
|
||||||
_c("label", [_vm._v("Loại văn bản")])
|
_c("label", [_vm._v("Вид документа")])
|
||||||
])
|
])
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -317,7 +317,7 @@ var render = function() {
|
|||||||
multiple: false,
|
multiple: false,
|
||||||
options: _vm.types,
|
options: _vm.types,
|
||||||
clearable: true,
|
clearable: true,
|
||||||
placeholder: "Tất cả"
|
placeholder: "Все"
|
||||||
},
|
},
|
||||||
model: {
|
model: {
|
||||||
value: _vm.statistic.type,
|
value: _vm.statistic.type,
|
||||||
@@ -354,7 +354,7 @@ var render = function() {
|
|||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
staticClass: "mb-0",
|
staticClass: "mb-0",
|
||||||
attrs: {
|
attrs: {
|
||||||
label: "Từ ngày",
|
label: "с",
|
||||||
type: "date",
|
type: "date",
|
||||||
value: _vm.statistic.from
|
value: _vm.statistic.from
|
||||||
},
|
},
|
||||||
@@ -375,7 +375,7 @@ var render = function() {
|
|||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
staticClass: "mb-0",
|
staticClass: "mb-0",
|
||||||
attrs: {
|
attrs: {
|
||||||
label: "Đến ngày",
|
label: "по",
|
||||||
type: "date",
|
type: "date",
|
||||||
value: _vm.statistic.to
|
value: _vm.statistic.to
|
||||||
},
|
},
|
||||||
@@ -414,7 +414,7 @@ var render = function() {
|
|||||||
},
|
},
|
||||||
[
|
[
|
||||||
_c("CIcon", { attrs: { name: "cil-vertical-align-bottom" } }),
|
_c("CIcon", { attrs: { name: "cil-vertical-align-bottom" } }),
|
||||||
_vm._v("Xuất\n ")
|
_vm._v("Export\n ")
|
||||||
],
|
],
|
||||||
1
|
1
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -30,13 +30,13 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
return {
|
return {
|
||||||
fields: [{
|
fields: [{
|
||||||
key: "id",
|
key: "id",
|
||||||
label: "Mã"
|
label: "Код"
|
||||||
}, {
|
}, {
|
||||||
key: "name",
|
key: "name",
|
||||||
label: "Tên"
|
label: "Имя"
|
||||||
}],
|
}],
|
||||||
service: _services_factory__WEBPACK_IMPORTED_MODULE_0__["default"].book,
|
service: _services_factory__WEBPACK_IMPORTED_MODULE_0__["default"].book,
|
||||||
title: "Sổ văn bản"
|
title: "Документы"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -30,16 +30,16 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
return {
|
return {
|
||||||
fields: [{
|
fields: [{
|
||||||
key: "id",
|
key: "id",
|
||||||
label: "Mã"
|
label: "Код"
|
||||||
}, {
|
}, {
|
||||||
key: "name",
|
key: "name",
|
||||||
label: "Tên"
|
label: "Имя"
|
||||||
}, {
|
}, {
|
||||||
key: "tel",
|
key: "tel",
|
||||||
label: "Số điện thoại"
|
label: "Номер телефон"
|
||||||
}],
|
}],
|
||||||
service: _services_factory__WEBPACK_IMPORTED_MODULE_0__["default"].department,
|
service: _services_factory__WEBPACK_IMPORTED_MODULE_0__["default"].department,
|
||||||
title: "Phòng ban"
|
title: "Подразделение"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -30,13 +30,13 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
return {
|
return {
|
||||||
fields: [{
|
fields: [{
|
||||||
key: "id",
|
key: "id",
|
||||||
label: "Mã"
|
label: "Код"
|
||||||
}, {
|
}, {
|
||||||
key: "name",
|
key: "name",
|
||||||
label: "Tên"
|
label: "Имя"
|
||||||
}],
|
}],
|
||||||
service: _services_factory__WEBPACK_IMPORTED_MODULE_0__["default"].documentType,
|
service: _services_factory__WEBPACK_IMPORTED_MODULE_0__["default"].documentType,
|
||||||
title: "Loại văn bản"
|
title: "Вид документа"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -62,13 +62,13 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|||||||
return {
|
return {
|
||||||
fields: [{
|
fields: [{
|
||||||
key: "id",
|
key: "id",
|
||||||
label: "Mã"
|
label: "Код"
|
||||||
}, {
|
}, {
|
||||||
key: "name",
|
key: "name",
|
||||||
label: "Tên"
|
label: "Имя"
|
||||||
}],
|
}],
|
||||||
service: _services_factory__WEBPACK_IMPORTED_MODULE_1__["default"].role,
|
service: _services_factory__WEBPACK_IMPORTED_MODULE_1__["default"].role,
|
||||||
title: "Nhóm",
|
title: "Группа",
|
||||||
permissionOptions: [],
|
permissionOptions: [],
|
||||||
permissions: [],
|
permissions: [],
|
||||||
role: {}
|
role: {}
|
||||||
@@ -188,7 +188,7 @@ var render = function() {
|
|||||||
key: "append-body",
|
key: "append-body",
|
||||||
fn: function() {
|
fn: function() {
|
||||||
return [
|
return [
|
||||||
_c("label", [_vm._v("Quyền")]),
|
_c("label", [_vm._v("Разрешение")]),
|
||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c("treeselect", {
|
_c("treeselect", {
|
||||||
attrs: {
|
attrs: {
|
||||||
|
|||||||
@@ -30,13 +30,13 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
return {
|
return {
|
||||||
fields: [{
|
fields: [{
|
||||||
key: "id",
|
key: "id",
|
||||||
label: "Mã"
|
label: "Код"
|
||||||
}, {
|
}, {
|
||||||
key: "name",
|
key: "name",
|
||||||
label: "Tên"
|
label: "Имя"
|
||||||
}],
|
}],
|
||||||
service: _services_factory__WEBPACK_IMPORTED_MODULE_0__["default"].permission,
|
service: _services_factory__WEBPACK_IMPORTED_MODULE_0__["default"].permission,
|
||||||
title: "Quyền"
|
title: "Разрешение"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -30,13 +30,13 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
return {
|
return {
|
||||||
fields: [{
|
fields: [{
|
||||||
key: "id",
|
key: "id",
|
||||||
label: "Mã"
|
label: "Код"
|
||||||
}, {
|
}, {
|
||||||
key: "name",
|
key: "name",
|
||||||
label: "Tên"
|
label: "Имя"
|
||||||
}],
|
}],
|
||||||
service: _services_factory__WEBPACK_IMPORTED_MODULE_0__["default"].publisher,
|
service: _services_factory__WEBPACK_IMPORTED_MODULE_0__["default"].publisher,
|
||||||
title: "Nơi ban hành"
|
title: "Место выдачи"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -30,16 +30,16 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
return {
|
return {
|
||||||
fields: [{
|
fields: [{
|
||||||
key: "id",
|
key: "id",
|
||||||
label: "Mã"
|
label: "Код"
|
||||||
}, {
|
}, {
|
||||||
key: "name",
|
key: "name",
|
||||||
label: "Tên"
|
label: "Имя"
|
||||||
}, {
|
}, {
|
||||||
key: "description",
|
key: "description",
|
||||||
label: "Mô tả"
|
label: "Описание"
|
||||||
}],
|
}],
|
||||||
service: _services_factory__WEBPACK_IMPORTED_MODULE_0__["default"].signer,
|
service: _services_factory__WEBPACK_IMPORTED_MODULE_0__["default"].signer,
|
||||||
title: "Người ký"
|
title: "Подписал"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -30,13 +30,13 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
return {
|
return {
|
||||||
fields: [{
|
fields: [{
|
||||||
key: "id",
|
key: "id",
|
||||||
label: "Mã"
|
label: "Код"
|
||||||
}, {
|
}, {
|
||||||
key: "name",
|
key: "name",
|
||||||
label: "Tên"
|
label: "Имя"
|
||||||
}],
|
}],
|
||||||
service: _services_factory__WEBPACK_IMPORTED_MODULE_0__["default"].title,
|
service: _services_factory__WEBPACK_IMPORTED_MODULE_0__["default"].title,
|
||||||
title: "Chức danh"
|
title: "Должность"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
24
public/57.js
24
public/57.js
@@ -168,7 +168,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|||||||
path: "/users/".concat(response.data.id)
|
path: "/users/".concat(response.data.id)
|
||||||
});
|
});
|
||||||
|
|
||||||
_this2.$toast.success("Đã tạo tài khoản");
|
_this2.$toast.success("Аккаунт создан");
|
||||||
})["catch"](function (error) {
|
})["catch"](function (error) {
|
||||||
_this2.toastHttpError(error);
|
_this2.toastHttpError(error);
|
||||||
});
|
});
|
||||||
@@ -211,7 +211,7 @@ var render = function() {
|
|||||||
_c(
|
_c(
|
||||||
"CCard",
|
"CCard",
|
||||||
[
|
[
|
||||||
_c("CCardHeader", [_c("strong", [_vm._v("Tạo mới người dùng")])]),
|
_c("CCardHeader", [_c("strong", [_vm._v("Создать новый пользователь")])]),
|
||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c(
|
_c(
|
||||||
"CCardBody",
|
"CCardBody",
|
||||||
@@ -222,7 +222,7 @@ var render = function() {
|
|||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
attrs: {
|
attrs: {
|
||||||
placeholder: "Let us know your full name.",
|
placeholder: "Let us know your full name.",
|
||||||
label: "Tên",
|
label: "Имя",
|
||||||
value: _vm.user.name,
|
value: _vm.user.name,
|
||||||
horizontal: ""
|
horizontal: ""
|
||||||
},
|
},
|
||||||
@@ -251,7 +251,7 @@ var render = function() {
|
|||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
attrs: {
|
attrs: {
|
||||||
label: "Số điện thoại",
|
label: "Номер телефон",
|
||||||
placeholder: "Enter your tel",
|
placeholder: "Enter your tel",
|
||||||
value: _vm.user.tel,
|
value: _vm.user.tel,
|
||||||
horizontal: "",
|
horizontal: "",
|
||||||
@@ -266,7 +266,7 @@ var render = function() {
|
|||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
attrs: {
|
attrs: {
|
||||||
label: "Ngày sinh",
|
label: "Дата рождения",
|
||||||
type: "date",
|
type: "date",
|
||||||
value: _vm.user.birthday,
|
value: _vm.user.birthday,
|
||||||
horizontal: ""
|
horizontal: ""
|
||||||
@@ -280,7 +280,7 @@ var render = function() {
|
|||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c("CSelect", {
|
_c("CSelect", {
|
||||||
attrs: {
|
attrs: {
|
||||||
label: "Chức danh",
|
label: "Должность",
|
||||||
horizontal: "",
|
horizontal: "",
|
||||||
value: _vm.user.title_id,
|
value: _vm.user.title_id,
|
||||||
options: _vm.titles,
|
options: _vm.titles,
|
||||||
@@ -295,7 +295,7 @@ var render = function() {
|
|||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c("CSelect", {
|
_c("CSelect", {
|
||||||
attrs: {
|
attrs: {
|
||||||
label: "Phòng ban",
|
label: "Подразделение",
|
||||||
horizontal: "",
|
horizontal: "",
|
||||||
value: _vm.user.department_id,
|
value: _vm.user.department_id,
|
||||||
options: _vm.departments,
|
options: _vm.departments,
|
||||||
@@ -322,7 +322,7 @@ var render = function() {
|
|||||||
{
|
{
|
||||||
staticClass: "col-form-label col-sm-3"
|
staticClass: "col-form-label col-sm-3"
|
||||||
},
|
},
|
||||||
[_vm._v("Kích hoạt")]
|
[_vm._v("Активирован")]
|
||||||
)
|
)
|
||||||
])
|
])
|
||||||
]
|
]
|
||||||
@@ -363,8 +363,8 @@ var render = function() {
|
|||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
attrs: {
|
attrs: {
|
||||||
placeholder: "Nhập mật khẩu.",
|
placeholder: "Вводите пароль.",
|
||||||
label: "Mật khẩu",
|
label: "Пароль",
|
||||||
type: "password",
|
type: "password",
|
||||||
value: _vm.user.password,
|
value: _vm.user.password,
|
||||||
horizontal: ""
|
horizontal: ""
|
||||||
@@ -379,7 +379,7 @@ var render = function() {
|
|||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
attrs: {
|
attrs: {
|
||||||
placeholder: "Nhập lại mật khẩu.",
|
placeholder: "Nhập lại mật khẩu.",
|
||||||
label: "Xác nhận",
|
label: "Подтверждить",
|
||||||
type: "password",
|
type: "password",
|
||||||
value: _vm.user.password_confirmation,
|
value: _vm.user.password_confirmation,
|
||||||
horizontal: ""
|
horizontal: ""
|
||||||
@@ -413,7 +413,7 @@ var render = function() {
|
|||||||
},
|
},
|
||||||
[
|
[
|
||||||
_c("CIcon", { attrs: { name: "cil-medical-cross" } }),
|
_c("CIcon", { attrs: { name: "cil-medical-cross" } }),
|
||||||
_vm._v(" Tạo\n ")
|
_vm._v(" Создать\n ")
|
||||||
],
|
],
|
||||||
1
|
1
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ var render = function() {
|
|||||||
_c(
|
_c(
|
||||||
"CCard",
|
"CCard",
|
||||||
[
|
[
|
||||||
_c("CCardHeader", [_c("strong", [_vm._v("Phân quyền")])]),
|
_c("CCardHeader", [_c("strong", [_vm._v("Право")])]),
|
||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c(
|
_c(
|
||||||
"CCardBody",
|
"CCardBody",
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ var render = function() {
|
|||||||
_c(
|
_c(
|
||||||
"CCard",
|
"CCard",
|
||||||
[
|
[
|
||||||
_c("CCardHeader", [_c("strong", [_vm._v("Phân quyền")])]),
|
_c("CCardHeader", [_c("strong", [_vm._v("Право")])]),
|
||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c(
|
_c(
|
||||||
"CCardBody",
|
"CCardBody",
|
||||||
|
|||||||
28
public/6.js
28
public/6.js
@@ -454,7 +454,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|||||||
path: "/documents/".concat(response.data.id)
|
path: "/documents/".concat(response.data.id)
|
||||||
});
|
});
|
||||||
|
|
||||||
_this8.$toast.success("Đã tạo văn bản");
|
_this8.$toast.success("Уже создал документ");
|
||||||
})["catch"](function (error) {
|
})["catch"](function (error) {
|
||||||
_this8.toastHttpError(error);
|
_this8.toastHttpError(error);
|
||||||
});
|
});
|
||||||
@@ -488,8 +488,8 @@ var render = function() {
|
|||||||
[
|
[
|
||||||
_c("CCardHeader", [
|
_c("CCardHeader", [
|
||||||
_vm.documentId
|
_vm.documentId
|
||||||
? _c("strong", [_vm._v("Chi tiết văn bản")])
|
? _c("strong", [_vm._v("О документе")])
|
||||||
: _c("strong", [_vm._v("Tạo văn bản")])
|
: _c("strong", [_vm._v("Создать документ")])
|
||||||
]),
|
]),
|
||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c(
|
_c(
|
||||||
@@ -509,7 +509,7 @@ var render = function() {
|
|||||||
_c("CSelect", {
|
_c("CSelect", {
|
||||||
staticClass: "mb-0",
|
staticClass: "mb-0",
|
||||||
attrs: {
|
attrs: {
|
||||||
label: "Sổ văn bản",
|
label: "Документы",
|
||||||
options: _vm.books,
|
options: _vm.books,
|
||||||
value: _vm.document.book_id,
|
value: _vm.document.book_id,
|
||||||
placeholder: "Please select"
|
placeholder: "Please select"
|
||||||
@@ -537,7 +537,7 @@ var render = function() {
|
|||||||
fn: function() {
|
fn: function() {
|
||||||
return [
|
return [
|
||||||
_vm._t("label", [
|
_vm._t("label", [
|
||||||
_c("label", [_vm._v("Loại văn bản")])
|
_c("label", [_vm._v("Вид документа")])
|
||||||
])
|
])
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -588,7 +588,7 @@ var render = function() {
|
|||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
staticClass: "mb-0",
|
staticClass: "mb-0",
|
||||||
attrs: {
|
attrs: {
|
||||||
label: "Số ký hiệu",
|
label: "Номер регистрации",
|
||||||
value: _vm.document.symbol
|
value: _vm.document.symbol
|
||||||
},
|
},
|
||||||
on: {
|
on: {
|
||||||
@@ -621,7 +621,7 @@ var render = function() {
|
|||||||
fn: function() {
|
fn: function() {
|
||||||
return [
|
return [
|
||||||
_vm._t("label", [
|
_vm._t("label", [
|
||||||
_c("label", [_vm._v("Người soạn")])
|
_c("label", [_vm._v("Создатель")])
|
||||||
])
|
])
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -687,7 +687,7 @@ var render = function() {
|
|||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
staticClass: "mb-0",
|
staticClass: "mb-0",
|
||||||
attrs: {
|
attrs: {
|
||||||
label: "Người tạo",
|
label: "Автор",
|
||||||
value: _vm.document.creator.name,
|
value: _vm.document.creator.name,
|
||||||
readonly: ""
|
readonly: ""
|
||||||
}
|
}
|
||||||
@@ -701,7 +701,7 @@ var render = function() {
|
|||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c("CTextarea", {
|
_c("CTextarea", {
|
||||||
attrs: {
|
attrs: {
|
||||||
label: "Trích yếu",
|
label: "Краткое содержание",
|
||||||
placeholder: "Content...",
|
placeholder: "Content...",
|
||||||
rows: "5",
|
rows: "5",
|
||||||
value: _vm.document.abstract
|
value: _vm.document.abstract
|
||||||
@@ -730,7 +730,7 @@ var render = function() {
|
|||||||
fn: function() {
|
fn: function() {
|
||||||
return [
|
return [
|
||||||
_vm._t("label", [
|
_vm._t("label", [
|
||||||
_c("label", [_vm._v("Nơi ban hành")])
|
_c("label", [_vm._v("Место выдачи")])
|
||||||
])
|
])
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -778,7 +778,7 @@ var render = function() {
|
|||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
staticClass: "mb-0",
|
staticClass: "mb-0",
|
||||||
attrs: {
|
attrs: {
|
||||||
label: _vm.isIncome ? "Ngày nhận" : "Ngày ban hành",
|
label: _vm.isIncome ? "Дата получения" : "Дата выдачи",
|
||||||
type: "date",
|
type: "date",
|
||||||
value: _vm.document.effective_at
|
value: _vm.document.effective_at
|
||||||
},
|
},
|
||||||
@@ -816,7 +816,7 @@ var render = function() {
|
|||||||
fn: function() {
|
fn: function() {
|
||||||
return [
|
return [
|
||||||
_vm._t("label", [
|
_vm._t("label", [
|
||||||
_c("label", [_vm._v("Người ký")])
|
_c("label", [_vm._v("Подписал")])
|
||||||
])
|
])
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -879,7 +879,7 @@ var render = function() {
|
|||||||
_c("CInput", {
|
_c("CInput", {
|
||||||
staticClass: "mb-0",
|
staticClass: "mb-0",
|
||||||
attrs: {
|
attrs: {
|
||||||
label: "Ngày ký",
|
label: "Дата подписания",
|
||||||
type: "date",
|
type: "date",
|
||||||
value: _vm.document.sign_at
|
value: _vm.document.sign_at
|
||||||
},
|
},
|
||||||
@@ -928,7 +928,7 @@ var render = function() {
|
|||||||
},
|
},
|
||||||
[
|
[
|
||||||
_c("CIcon", { attrs: { name: "cil-plus" } }),
|
_c("CIcon", { attrs: { name: "cil-plus" } }),
|
||||||
_vm._v("Tạo\n ")
|
_vm._v("Создать\n ")
|
||||||
],
|
],
|
||||||
1
|
1
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -53,13 +53,13 @@ __webpack_require__.r(__webpack_exports__);
|
|||||||
return {
|
return {
|
||||||
fields: [{
|
fields: [{
|
||||||
key: "id",
|
key: "id",
|
||||||
label: "Mã"
|
label: "Код"
|
||||||
}, {
|
}, {
|
||||||
key: "name",
|
key: "name",
|
||||||
label: "Tên"
|
label: "Имя"
|
||||||
}],
|
}],
|
||||||
service: _services_factory__WEBPACK_IMPORTED_MODULE_0__["default"].role,
|
service: _services_factory__WEBPACK_IMPORTED_MODULE_0__["default"].role,
|
||||||
title: "Nhóm"
|
title: "Группа"
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
method: {
|
method: {
|
||||||
|
|||||||
64
public/7.js
64
public/7.js
File diff suppressed because one or more lines are too long
24
public/8.js
24
public/8.js
@@ -59,17 +59,17 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|||||||
loading: true,
|
loading: true,
|
||||||
fields: [{
|
fields: [{
|
||||||
key: "name",
|
key: "name",
|
||||||
label: "Tên",
|
label: "Имя",
|
||||||
_classes: "w-50"
|
_classes: "w-50"
|
||||||
}, {
|
}, {
|
||||||
key: "size",
|
key: "size",
|
||||||
label: "Kích thước (KB)"
|
label: "Размер(KB)"
|
||||||
}, {
|
}, {
|
||||||
key: "downloads",
|
key: "downloads",
|
||||||
label: "Lượt tải"
|
label: "Количество скачиваний"
|
||||||
}, {
|
}, {
|
||||||
key: "id",
|
key: "id",
|
||||||
label: "Hành động"
|
label: "Действие"
|
||||||
}],
|
}],
|
||||||
attachments: [{
|
attachments: [{
|
||||||
id: "",
|
id: "",
|
||||||
@@ -130,7 +130,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|||||||
_services_factory__WEBPACK_IMPORTED_MODULE_1__["default"].attachment.download(item.id, item.name).then(function (response) {
|
_services_factory__WEBPACK_IMPORTED_MODULE_1__["default"].attachment.download(item.id, item.name).then(function (response) {
|
||||||
item.downloads++;
|
item.downloads++;
|
||||||
|
|
||||||
_this2.$toast.success("Đã tải xuống");
|
_this2.$toast.success("Downloaded");
|
||||||
})["catch"](function (error) {
|
})["catch"](function (error) {
|
||||||
_this2.toastHttpError(error);
|
_this2.toastHttpError(error);
|
||||||
});
|
});
|
||||||
@@ -163,7 +163,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|||||||
}).then(function (response) {
|
}).then(function (response) {
|
||||||
_this4.attachments.push(response.data);
|
_this4.attachments.push(response.data);
|
||||||
|
|
||||||
_this4.$toast.success("Đã tải lên");
|
_this4.$toast.success("Uploaded");
|
||||||
})["catch"](function (error) {
|
})["catch"](function (error) {
|
||||||
_this4.toastHttpError(error);
|
_this4.toastHttpError(error);
|
||||||
});
|
});
|
||||||
@@ -362,7 +362,7 @@ function _asyncToGenerator(fn) { return function () { var self = this, args = ar
|
|||||||
},
|
},
|
||||||
getSymbol: function getSymbol(id) {
|
getSymbol: function getSymbol(id) {
|
||||||
this.fetchSymbol(id);
|
this.fetchSymbol(id);
|
||||||
return "Không có quyền truy cập";
|
return "Нет права доступ";
|
||||||
},
|
},
|
||||||
fetchSymbol: function fetchSymbol(id) {
|
fetchSymbol: function fetchSymbol(id) {
|
||||||
var _this4 = this;
|
var _this4 = this;
|
||||||
@@ -1057,7 +1057,7 @@ var render = function() {
|
|||||||
return _c(
|
return _c(
|
||||||
"CCard",
|
"CCard",
|
||||||
[
|
[
|
||||||
_c("CCardHeader", [_c("strong", [_vm._v("Tệp đính kèm")])]),
|
_c("CCardHeader", [_c("strong", [_vm._v("Вложения файлов")])]),
|
||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c(
|
_c(
|
||||||
"CCardBody",
|
"CCardBody",
|
||||||
@@ -1162,7 +1162,7 @@ var render = function() {
|
|||||||
return _c(
|
return _c(
|
||||||
"CCard",
|
"CCard",
|
||||||
[
|
[
|
||||||
_c("CCardHeader", [_c("strong", [_vm._v("Văn bản liên kết")])]),
|
_c("CCardHeader", [_c("strong", [_vm._v("Связанный документ")])]),
|
||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c(
|
_c(
|
||||||
"CCardBody",
|
"CCardBody",
|
||||||
@@ -1223,7 +1223,7 @@ var render = function() {
|
|||||||
"CCol",
|
"CCol",
|
||||||
{ attrs: { sm: "12" } },
|
{ attrs: { sm: "12" } },
|
||||||
[
|
[
|
||||||
_c("label", [_vm._v("Danh sách đã liên kết")]),
|
_c("label", [_vm._v("Список документа")]),
|
||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c("treeselect", {
|
_c("treeselect", {
|
||||||
attrs: {
|
attrs: {
|
||||||
@@ -1304,7 +1304,7 @@ var render = function() {
|
|||||||
_c(
|
_c(
|
||||||
"CCardHeader",
|
"CCardHeader",
|
||||||
[
|
[
|
||||||
_c("strong", [_vm._v("Người nhận")]),
|
_c("strong", [_vm._v("Получатель")]),
|
||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c(
|
_c(
|
||||||
"CBadge",
|
"CBadge",
|
||||||
@@ -1404,7 +1404,7 @@ var render = function() {
|
|||||||
return _c(
|
return _c(
|
||||||
"CCard",
|
"CCard",
|
||||||
[
|
[
|
||||||
_c("CCardHeader", [_c("strong", [_vm._v("Nơi nhận")])]),
|
_c("CCardHeader", [_c("strong", [_vm._v("Место получения")])]),
|
||||||
_vm._v(" "),
|
_vm._v(" "),
|
||||||
_c(
|
_c(
|
||||||
"CCardBody",
|
"CCardBody",
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
<meta name="viewport" content="width=device-width,initial-scale=1.0">
|
||||||
<title>Quản lý văn bản và điều hành</title>
|
<title>Система электронного документооборота</title>
|
||||||
<!-- favicons for all devices -->
|
<!-- favicons for all devices -->
|
||||||
<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">
|
<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png">
|
||||||
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">
|
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png">
|
||||||
|
|||||||
@@ -119638,7 +119638,7 @@ function configRoutes() {
|
|||||||
return [{
|
return [{
|
||||||
path: '/',
|
path: '/',
|
||||||
redirect: '/dashboard',
|
redirect: '/dashboard',
|
||||||
name: 'Trang chủ',
|
name: 'Домашняя страница',
|
||||||
component: TheContainer,
|
component: TheContainer,
|
||||||
meta: {
|
meta: {
|
||||||
authRequired: true
|
authRequired: true
|
||||||
@@ -119650,7 +119650,7 @@ function configRoutes() {
|
|||||||
{
|
{
|
||||||
path: 'books',
|
path: 'books',
|
||||||
meta: {
|
meta: {
|
||||||
label: 'Sổ văn bản'
|
label: 'Документы'
|
||||||
},
|
},
|
||||||
component: {
|
component: {
|
||||||
render: function render(c) {
|
render: function render(c) {
|
||||||
@@ -119659,15 +119659,15 @@ function configRoutes() {
|
|||||||
},
|
},
|
||||||
children: [{
|
children: [{
|
||||||
path: '',
|
path: '',
|
||||||
name: 'Sổ văn bản',
|
name: 'Документы',
|
||||||
component: Books
|
component: Books
|
||||||
}, {
|
}, {
|
||||||
path: ':book',
|
path: ':book',
|
||||||
name: 'Chi tiết sổ',
|
name: 'Детали',
|
||||||
component: Documents,
|
component: Documents,
|
||||||
children: [{
|
children: [{
|
||||||
path: 'documents',
|
path: 'documents',
|
||||||
name: 'Danh sách văn bản',
|
name: 'Книга',
|
||||||
component: Documents
|
component: Documents
|
||||||
}]
|
}]
|
||||||
}]
|
}]
|
||||||
@@ -119675,7 +119675,7 @@ function configRoutes() {
|
|||||||
{
|
{
|
||||||
path: 'documents',
|
path: 'documents',
|
||||||
meta: {
|
meta: {
|
||||||
label: 'Văn bản'
|
label: 'Документ'
|
||||||
},
|
},
|
||||||
component: {
|
component: {
|
||||||
render: function render(c) {
|
render: function render(c) {
|
||||||
@@ -119684,21 +119684,21 @@ function configRoutes() {
|
|||||||
},
|
},
|
||||||
children: [{
|
children: [{
|
||||||
path: '',
|
path: '',
|
||||||
name: 'Danh sách',
|
name: 'Список',
|
||||||
component: Documents
|
component: Documents
|
||||||
}, {
|
}, {
|
||||||
path: 'create',
|
path: 'create',
|
||||||
name: 'Tạo mới',
|
name: 'Создать новый',
|
||||||
component: DocumentCreate
|
component: DocumentCreate
|
||||||
}, {
|
}, {
|
||||||
path: ':document',
|
path: ':document',
|
||||||
name: 'Chi tiết',
|
name: 'Деталь',
|
||||||
component: Document
|
component: Document
|
||||||
}]
|
}]
|
||||||
}, // Statistic
|
}, // Statistic
|
||||||
{
|
{
|
||||||
path: 'statistic',
|
path: 'statistic',
|
||||||
name: 'Thống kê',
|
name: 'Статистическая',
|
||||||
component: Statistic
|
component: Statistic
|
||||||
}, //
|
}, //
|
||||||
{
|
{
|
||||||
@@ -119735,13 +119735,13 @@ function configRoutes() {
|
|||||||
path: 'me',
|
path: 'me',
|
||||||
name: 'Profile',
|
name: 'Profile',
|
||||||
meta: {
|
meta: {
|
||||||
label: 'Cá nhân'
|
label: 'Личный кабинет'
|
||||||
},
|
},
|
||||||
component: Me
|
component: Me
|
||||||
}, {
|
}, {
|
||||||
path: 'users',
|
path: 'users',
|
||||||
meta: {
|
meta: {
|
||||||
label: 'Người dùng'
|
label: 'Пользователь'
|
||||||
},
|
},
|
||||||
component: {
|
component: {
|
||||||
render: function render(c) {
|
render: function render(c) {
|
||||||
@@ -119750,50 +119750,50 @@ function configRoutes() {
|
|||||||
},
|
},
|
||||||
children: [{
|
children: [{
|
||||||
path: '',
|
path: '',
|
||||||
name: 'Danh sách',
|
name: 'Список',
|
||||||
component: Users
|
component: Users
|
||||||
}, {
|
}, {
|
||||||
path: 'create',
|
path: 'create',
|
||||||
meta: {
|
meta: {
|
||||||
label: 'Tạo mới'
|
label: 'Создать новый'
|
||||||
},
|
},
|
||||||
name: 'Create User',
|
name: 'Create User',
|
||||||
component: CreateUser
|
component: CreateUser
|
||||||
}, {
|
}, {
|
||||||
path: ':id',
|
path: ':id',
|
||||||
meta: {
|
meta: {
|
||||||
label: 'Chi tiết'
|
label: 'Деталь'
|
||||||
},
|
},
|
||||||
name: 'User',
|
name: 'User',
|
||||||
component: User
|
component: User
|
||||||
}]
|
}]
|
||||||
}, {
|
}, {
|
||||||
path: 'titles',
|
path: 'titles',
|
||||||
name: 'Chức danh',
|
name: 'Должность',
|
||||||
component: Titles
|
component: Titles
|
||||||
}, {
|
}, {
|
||||||
path: 'departments',
|
path: 'departments',
|
||||||
name: 'Phòng ban',
|
name: 'Подразделение',
|
||||||
component: Departments
|
component: Departments
|
||||||
}, {
|
}, {
|
||||||
path: 'signers',
|
path: 'signers',
|
||||||
name: 'Người ký',
|
name: 'Подписал',
|
||||||
component: Signers
|
component: Signers
|
||||||
}, {
|
}, {
|
||||||
path: 'publishers',
|
path: 'publishers',
|
||||||
name: 'Nơi ban hành',
|
name: 'Место выдачи',
|
||||||
component: Publishers
|
component: Publishers
|
||||||
}, {
|
}, {
|
||||||
path: 'document-types',
|
path: 'document-types',
|
||||||
name: 'Loại văn bản',
|
name: 'Вид документа',
|
||||||
component: DocumentTypes
|
component: DocumentTypes
|
||||||
}, {
|
}, {
|
||||||
path: 'roles',
|
path: 'roles',
|
||||||
name: 'Nhóm',
|
name: 'Группа',
|
||||||
component: Groups
|
component: Groups
|
||||||
}, {
|
}, {
|
||||||
path: 'permissions',
|
path: 'permissions',
|
||||||
name: 'Quyền',
|
name: 'Разрешение',
|
||||||
component: Permissions
|
component: Permissions
|
||||||
}, {
|
}, {
|
||||||
path: 'base',
|
path: 'base',
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<CSelect :options="fields" @update:value="fieldChanged" />
|
<CSelect :options="fields" @update:value="fieldChanged" />
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol sm="9">
|
<CCol sm="9">
|
||||||
<CInput placeholder="Tìm kiếm" :value.sync="value" @update:value="valueChanged" />
|
<CInput placeholder="Искать" :value.sync="value" @update:value="valueChanged" />
|
||||||
</CCol>
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
</template>
|
</template>
|
||||||
@@ -16,7 +16,7 @@ export default {
|
|||||||
fields: {
|
fields: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default: function () {
|
default: function () {
|
||||||
return [{ value: "", label: "Tất cả" }];
|
return [{ value: "", label: "Все" }];
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<CCard>
|
<CCard>
|
||||||
<CCardHeader>
|
<CCardHeader>
|
||||||
<strong>Tệp đính kèm</strong>
|
<strong>Вложения файлов</strong>
|
||||||
</CCardHeader>
|
</CCardHeader>
|
||||||
<CCardBody>
|
<CCardBody>
|
||||||
<CDataTable :loading="loading" :items="attachments" :fields="fields">
|
<CDataTable :loading="loading" :items="attachments" :fields="fields">
|
||||||
@@ -40,10 +40,10 @@ export default {
|
|||||||
return {
|
return {
|
||||||
loading: true,
|
loading: true,
|
||||||
fields: [
|
fields: [
|
||||||
{ key: "name", label: "Tên", _classes: "w-50" },
|
{ key: "name", label: "Имя", _classes: "w-50" },
|
||||||
{ key: "size", label: "Kích thước (KB)" },
|
{ key: "size", label: "Размер(KB)" },
|
||||||
{ key: "downloads", label: "Lượt tải" },
|
{ key: "downloads", label: "Количество скачиваний" },
|
||||||
{ key: "id", label: "Hành động" }
|
{ key: "id", label: "Действие" }
|
||||||
],
|
],
|
||||||
attachments: [
|
attachments: [
|
||||||
{
|
{
|
||||||
@@ -85,7 +85,7 @@ export default {
|
|||||||
.download(item.id, item.name)
|
.download(item.id, item.name)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
item.downloads++;
|
item.downloads++;
|
||||||
this.$toast.success("Đã tải xuống");
|
this.$toast.success("Downloaded");
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
this.toastHttpError(error);
|
this.toastHttpError(error);
|
||||||
@@ -118,7 +118,7 @@ export default {
|
|||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.attachments.push(response.data);
|
this.attachments.push(response.data);
|
||||||
this.$toast.success("Đã tải lên");
|
this.$toast.success("Uploaded");
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
this.toastHttpError(error);
|
this.toastHttpError(error);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<CCard>
|
<CCard>
|
||||||
<CCardHeader>
|
<CCardHeader>
|
||||||
<strong>Văn bản liên kết</strong>
|
<strong>Связанный документ</strong>
|
||||||
</CCardHeader>
|
</CCardHeader>
|
||||||
<CCardBody>
|
<CCardBody>
|
||||||
<CRow class="form-group">
|
<CRow class="form-group">
|
||||||
@@ -22,7 +22,7 @@
|
|||||||
</treeselect>
|
</treeselect>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol v-else sm="12">
|
<CCol v-else sm="12">
|
||||||
<label>Danh sách đã liên kết</label>
|
<label>Список документа</label>
|
||||||
<treeselect
|
<treeselect
|
||||||
v-model="documentsLinked"
|
v-model="documentsLinked"
|
||||||
:options="linkedDocuments"
|
:options="linkedDocuments"
|
||||||
@@ -121,7 +121,7 @@ export default {
|
|||||||
},
|
},
|
||||||
getSymbol(id) {
|
getSymbol(id) {
|
||||||
this.fetchSymbol(id);
|
this.fetchSymbol(id);
|
||||||
return "Không có quyền truy cập";
|
return "Нет права доступ";
|
||||||
},
|
},
|
||||||
async fetchSymbol(id) {
|
async fetchSymbol(id) {
|
||||||
const response = await services.document.get(id);
|
const response = await services.document.get(id);
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<CCard>
|
<CCard>
|
||||||
<CCardHeader>
|
<CCardHeader>
|
||||||
<strong v-if="documentId">Chi tiết văn bản</strong>
|
<strong v-if="documentId">О документе</strong>
|
||||||
<strong v-else>Tạo văn bản</strong>
|
<strong v-else>Создать документ</strong>
|
||||||
</CCardHeader>
|
</CCardHeader>
|
||||||
<CCardBody>
|
<CCardBody>
|
||||||
<CForm>
|
<CForm>
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
<CCol sm="6">
|
<CCol sm="6">
|
||||||
<CSelect
|
<CSelect
|
||||||
class="mb-0"
|
class="mb-0"
|
||||||
label="Sổ văn bản"
|
label="Документы"
|
||||||
:options="books"
|
:options="books"
|
||||||
:value.sync="document.book_id"
|
:value.sync="document.book_id"
|
||||||
placeholder="Please select"
|
placeholder="Please select"
|
||||||
@@ -20,7 +20,7 @@
|
|||||||
<CFormGroup class="form-group mb-0">
|
<CFormGroup class="form-group mb-0">
|
||||||
<template #label>
|
<template #label>
|
||||||
<slot name="label">
|
<slot name="label">
|
||||||
<label>Loại văn bản</label>
|
<label>Вид документа</label>
|
||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
<template #input>
|
<template #input>
|
||||||
@@ -36,7 +36,7 @@
|
|||||||
</CRow>
|
</CRow>
|
||||||
<CRow class="form-group">
|
<CRow class="form-group">
|
||||||
<CCol sm="12">
|
<CCol sm="12">
|
||||||
<CInput label="Số ký hiệu" :value.sync="document.symbol" class="mb-0" />
|
<CInput label="Номер регистрации" :value.sync="document.symbol" class="mb-0" />
|
||||||
</CCol>
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
<CRow class="form-group">
|
<CRow class="form-group">
|
||||||
@@ -44,7 +44,7 @@
|
|||||||
<CFormGroup class="form-group mb-0">
|
<CFormGroup class="form-group mb-0">
|
||||||
<template #label>
|
<template #label>
|
||||||
<slot name="label">
|
<slot name="label">
|
||||||
<label>Người soạn</label>
|
<label>Создатель</label>
|
||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
<template #input>
|
<template #input>
|
||||||
@@ -64,11 +64,11 @@
|
|||||||
</CFormGroup>
|
</CFormGroup>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol sm="6">
|
<CCol sm="6">
|
||||||
<CInput label="Người tạo" :value="document.creator.name" readonly class="mb-0" />
|
<CInput label="Автор" :value="document.creator.name" readonly class="mb-0" />
|
||||||
</CCol>
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
<CTextarea
|
<CTextarea
|
||||||
label="Trích yếu"
|
label="Краткое содержание"
|
||||||
placeholder="Content..."
|
placeholder="Content..."
|
||||||
rows="5"
|
rows="5"
|
||||||
:value.sync="document.abstract"
|
:value.sync="document.abstract"
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
<CFormGroup class="form-group mb-0">
|
<CFormGroup class="form-group mb-0">
|
||||||
<template #label>
|
<template #label>
|
||||||
<slot name="label">
|
<slot name="label">
|
||||||
<label>Nơi ban hành</label>
|
<label>Место выдачи</label>
|
||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
<template #input>
|
<template #input>
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
</CCol>
|
</CCol>
|
||||||
<CCol sm="6">
|
<CCol sm="6">
|
||||||
<CInput
|
<CInput
|
||||||
:label="isIncome ? 'Ngày nhận' : 'Ngày ban hành'"
|
:label="isIncome ? 'Дата получения' : 'Дата выдачи'"
|
||||||
type="date"
|
type="date"
|
||||||
:value.sync="document.effective_at"
|
:value.sync="document.effective_at"
|
||||||
class="mb-0"
|
class="mb-0"
|
||||||
@@ -105,7 +105,7 @@
|
|||||||
<CFormGroup class="form-group mb-0">
|
<CFormGroup class="form-group mb-0">
|
||||||
<template #label>
|
<template #label>
|
||||||
<slot name="label">
|
<slot name="label">
|
||||||
<label>Người ký</label>
|
<label>Подписал</label>
|
||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
<template #input>
|
<template #input>
|
||||||
@@ -124,7 +124,7 @@
|
|||||||
</CFormGroup>
|
</CFormGroup>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol sm="6">
|
<CCol sm="6">
|
||||||
<CInput label="Ngày ký" type="date" :value.sync="document.sign_at" class="mb-0" />
|
<CInput label="Дата подписания" type="date" :value.sync="document.sign_at" class="mb-0" />
|
||||||
</CCol>
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
</CForm>
|
</CForm>
|
||||||
@@ -140,7 +140,7 @@
|
|||||||
<CIcon name="cil-check" />Lưu
|
<CIcon name="cil-check" />Lưu
|
||||||
</CButton>
|
</CButton>
|
||||||
<CButton v-else size="sm" @click="createDocument" class="float-right" color="success">
|
<CButton v-else size="sm" @click="createDocument" class="float-right" color="success">
|
||||||
<CIcon name="cil-plus" />Tạo
|
<CIcon name="cil-plus" />Создать
|
||||||
</CButton>
|
</CButton>
|
||||||
</CCardFooter>
|
</CCardFooter>
|
||||||
</CCard>
|
</CCard>
|
||||||
@@ -290,7 +290,7 @@ export default {
|
|||||||
.create(this.document)
|
.create(this.document)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.$router.push({ path: `/documents/${response.data.id}` });
|
this.$router.push({ path: `/documents/${response.data.id}` });
|
||||||
this.$toast.success("Đã tạo văn bản");
|
this.$toast.success("Уже создал документ");
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
this.toastHttpError(error);
|
this.toastHttpError(error);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<CCard>
|
<CCard>
|
||||||
<CCardHeader>
|
<CCardHeader>
|
||||||
<strong>Người nhận</strong>
|
<strong>Получатель</strong>
|
||||||
<CBadge
|
<CBadge
|
||||||
color="success"
|
color="success"
|
||||||
class="float-right"
|
class="float-right"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<CCard>
|
<CCard>
|
||||||
<CCardHeader>
|
<CCardHeader>
|
||||||
<strong>Nơi nhận</strong>
|
<strong>Место получения</strong>
|
||||||
</CCardHeader>
|
</CCardHeader>
|
||||||
<CCardBody>
|
<CCardBody>
|
||||||
<CRow class="form-group">
|
<CRow class="form-group">
|
||||||
|
|||||||
@@ -10,7 +10,7 @@
|
|||||||
class="float-right"
|
class="float-right"
|
||||||
color="primary"
|
color="primary"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
v-c-tooltip="'Tạo mới'"
|
v-c-tooltip="'Создать новый'"
|
||||||
@click="showCreate"
|
@click="showCreate"
|
||||||
>
|
>
|
||||||
<CIcon name="cil-plus" />
|
<CIcon name="cil-plus" />
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
color="success"
|
color="success"
|
||||||
@click="onClickCreate"
|
@click="onClickCreate"
|
||||||
>
|
>
|
||||||
<CIcon name="cil-plus" /> Tạo mới
|
<CIcon name="cil-plus" /> Создать новый
|
||||||
</CButton>
|
</CButton>
|
||||||
<CButton
|
<CButton
|
||||||
v-if="canUpdate && !createMode"
|
v-if="canUpdate && !createMode"
|
||||||
@@ -81,7 +81,7 @@ export default {
|
|||||||
title: {
|
title: {
|
||||||
required: false,
|
required: false,
|
||||||
type: String,
|
type: String,
|
||||||
default: "Danh sách"
|
default: "Список"
|
||||||
},
|
},
|
||||||
canCreate: {
|
canCreate: {
|
||||||
required: false,
|
required: false,
|
||||||
|
|||||||
@@ -1,14 +1,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<CCard>
|
<CCard>
|
||||||
<CCardHeader>
|
<CCardHeader>
|
||||||
<strong>Thông tin</strong>
|
<strong>Информация</strong>
|
||||||
</CCardHeader>
|
</CCardHeader>
|
||||||
<CCardBody>
|
<CCardBody>
|
||||||
<CForm>
|
<CForm>
|
||||||
<CInput label="Mã" :value.sync="user.id" horizontal :readonly="true" />
|
<CInput label="Код" :value.sync="user.id" horizontal :readonly="true" />
|
||||||
<CInput
|
<CInput
|
||||||
placeholder="Let us know your full name."
|
placeholder="Let us know your full name."
|
||||||
label="Tên"
|
label="Имя"
|
||||||
:value.sync="user.name"
|
:value.sync="user.name"
|
||||||
horizontal
|
horizontal
|
||||||
/>
|
/>
|
||||||
@@ -21,22 +21,22 @@
|
|||||||
autocomplete="email"
|
autocomplete="email"
|
||||||
/>
|
/>
|
||||||
<CInput
|
<CInput
|
||||||
label="Số điện thoại"
|
label="Номер телефон"
|
||||||
placeholder="Enter your tel"
|
placeholder="Enter your tel"
|
||||||
:value.sync="user.tel"
|
:value.sync="user.tel"
|
||||||
horizontal
|
horizontal
|
||||||
autocomplete="tel"
|
autocomplete="tel"
|
||||||
/>
|
/>
|
||||||
<CInput label="Ngày sinh" type="date" :value.sync="user.birthday" horizontal />
|
<CInput label="Дата рождения" type="date" :value.sync="user.birthday" horizontal />
|
||||||
<CSelect
|
<CSelect
|
||||||
label="Chức danh"
|
label="Должность"
|
||||||
horizontal
|
horizontal
|
||||||
:value.sync="user.title_id"
|
:value.sync="user.title_id"
|
||||||
:options="titles"
|
:options="titles"
|
||||||
placeholder="Please select"
|
placeholder="Please select"
|
||||||
/>
|
/>
|
||||||
<CSelect
|
<CSelect
|
||||||
label="Phòng ban"
|
label="Подразделение"
|
||||||
horizontal
|
horizontal
|
||||||
:value.sync="user.department_id"
|
:value.sync="user.department_id"
|
||||||
:options="departments"
|
:options="departments"
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
<CFormGroup class="form-group form-row">
|
<CFormGroup class="form-group form-row">
|
||||||
<template #label>
|
<template #label>
|
||||||
<slot name="label">
|
<slot name="label">
|
||||||
<label class="col-form-label col-sm-3">Kích hoạt</label>
|
<label class="col-form-label col-sm-3">Активирован</label>
|
||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
<template #input>
|
<template #input>
|
||||||
|
|||||||
@@ -1,21 +1,21 @@
|
|||||||
<template>
|
<template>
|
||||||
<CCard>
|
<CCard>
|
||||||
<CCardHeader>
|
<CCardHeader>
|
||||||
<strong>Thay đổi mật khẩu</strong>
|
<strong>Измененить пароль</strong>
|
||||||
</CCardHeader>
|
</CCardHeader>
|
||||||
<CCardBody>
|
<CCardBody>
|
||||||
<CForm>
|
<CForm>
|
||||||
<CInput placeholder="Nhập mật khẩu." label="Mật khẩu" type="password" horizontal />
|
<CInput placeholder="Вводите пароль." label="Пароль" type="password" horizontal />
|
||||||
<CInput
|
<CInput
|
||||||
placeholder="Nhập mật khẩu mới."
|
placeholder="Вводите новый пароль."
|
||||||
label="Mật khẩu mới"
|
label="Новый пароль"
|
||||||
type="password"
|
type="password"
|
||||||
:value.sync="password.password"
|
:value.sync="password.password"
|
||||||
horizontal
|
horizontal
|
||||||
/>
|
/>
|
||||||
<CInput
|
<CInput
|
||||||
placeholder="Nhập lại mật khẩu mới."
|
placeholder="Подтверждение пароля."
|
||||||
label="Xác nhận"
|
label="Подтверждить"
|
||||||
type="password"
|
type="password"
|
||||||
:value.sync="password.password_confirmation"
|
:value.sync="password.password_confirmation"
|
||||||
horizontal
|
horizontal
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<CCard>
|
<CCard>
|
||||||
<CCardHeader>
|
<CCardHeader>
|
||||||
<strong>Phân quyền</strong>
|
<strong>Право</strong>
|
||||||
</CCardHeader>
|
</CCardHeader>
|
||||||
<CCardBody>
|
<CCardBody>
|
||||||
<CForm>
|
<CForm>
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<CRow class="form-group">
|
<CRow class="form-group">
|
||||||
<CCol sm="12">
|
<CCol sm="12">
|
||||||
<label>Phân theo chức năng</label>
|
<label>По функциям</label>
|
||||||
<treeselect
|
<treeselect
|
||||||
@select="addPermission"
|
@select="addPermission"
|
||||||
@deselect="removePermission"
|
@deselect="removePermission"
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<CRow class="form-group">
|
<CRow class="form-group">
|
||||||
<CCol sm="12">
|
<CCol sm="12">
|
||||||
<label>Phân theo nhóm</label>
|
<label>По группам</label>
|
||||||
<treeselect
|
<treeselect
|
||||||
@select="addRole"
|
@select="addRole"
|
||||||
@deselect="removeRole"
|
@deselect="removeRole"
|
||||||
|
|||||||
@@ -5,11 +5,11 @@
|
|||||||
color="info"
|
color="info"
|
||||||
@click="goProfile"
|
@click="goProfile"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
v-c-tooltip="'Thông tin cá nhân'"
|
v-c-tooltip="'Персональная информация'"
|
||||||
>
|
>
|
||||||
<CIcon name="cil-user" class="m-0" />
|
<CIcon name="cil-user" class="m-0" />
|
||||||
</CButton>
|
</CButton>
|
||||||
<CButton size="sm" color="danger" @click="logout" variant="outline" v-c-tooltip="'Đăng xuất'">
|
<CButton size="sm" color="danger" @click="logout" variant="outline" v-c-tooltip="'Выход'">
|
||||||
<CIcon name="cil-power-standby" class="m-0" />
|
<CIcon name="cil-power-standby" class="m-0" />
|
||||||
</CButton>
|
</CButton>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@ export default [
|
|||||||
_children: [
|
_children: [
|
||||||
{
|
{
|
||||||
_name: 'CSidebarNavItem',
|
_name: 'CSidebarNavItem',
|
||||||
name: 'Trang chủ',
|
name: 'Домашняя страница',
|
||||||
to: '/dashboard',
|
to: '/dashboard',
|
||||||
icon: 'cil-home',
|
icon: 'cil-home',
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ function configRoutes () {
|
|||||||
{
|
{
|
||||||
path: '/',
|
path: '/',
|
||||||
redirect: '/dashboard',
|
redirect: '/dashboard',
|
||||||
name: 'Trang chủ',
|
name: 'Домашняя страница',
|
||||||
component: TheContainer,
|
component: TheContainer,
|
||||||
meta: {
|
meta: {
|
||||||
authRequired: true
|
authRequired: true
|
||||||
@@ -176,7 +176,7 @@ function configRoutes () {
|
|||||||
{
|
{
|
||||||
path: 'books',
|
path: 'books',
|
||||||
meta: {
|
meta: {
|
||||||
label: 'Sổ văn bản',
|
label: 'Документы',
|
||||||
},
|
},
|
||||||
component: {
|
component: {
|
||||||
render(c) {
|
render(c) {
|
||||||
@@ -186,17 +186,17 @@ function configRoutes () {
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
name: 'Sổ văn bản',
|
name: 'Документы',
|
||||||
component: Books
|
component: Books
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: ':book',
|
path: ':book',
|
||||||
name: 'Chi tiết sổ',
|
name: 'Детали',
|
||||||
component: Documents,
|
component: Documents,
|
||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: 'documents',
|
path: 'documents',
|
||||||
name: 'Danh sách văn bản',
|
name: 'Книга',
|
||||||
component: Documents,
|
component: Documents,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
@@ -207,7 +207,7 @@ function configRoutes () {
|
|||||||
{
|
{
|
||||||
path: 'documents',
|
path: 'documents',
|
||||||
meta: {
|
meta: {
|
||||||
label: 'Văn bản',
|
label: 'Документ',
|
||||||
},
|
},
|
||||||
component: {
|
component: {
|
||||||
render(c) {
|
render(c) {
|
||||||
@@ -217,17 +217,17 @@ function configRoutes () {
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
name: 'Danh sách',
|
name: 'Список',
|
||||||
component: Documents
|
component: Documents
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'create',
|
path: 'create',
|
||||||
name: 'Tạo mới',
|
name: 'Создать новый',
|
||||||
component: DocumentCreate
|
component: DocumentCreate
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: ':document',
|
path: ':document',
|
||||||
name: 'Chi tiết',
|
name: 'Деталь',
|
||||||
component: Document,
|
component: Document,
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
@@ -235,7 +235,7 @@ function configRoutes () {
|
|||||||
// Statistic
|
// Statistic
|
||||||
{
|
{
|
||||||
path: 'statistic',
|
path: 'statistic',
|
||||||
name: 'Thống kê',
|
name: 'Статистическая',
|
||||||
component: Statistic
|
component: Statistic
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -279,14 +279,14 @@ function configRoutes () {
|
|||||||
path: 'me',
|
path: 'me',
|
||||||
name: 'Profile',
|
name: 'Profile',
|
||||||
meta: {
|
meta: {
|
||||||
label: 'Cá nhân'
|
label: 'Личный кабинет'
|
||||||
},
|
},
|
||||||
component: Me
|
component: Me
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'users',
|
path: 'users',
|
||||||
meta: {
|
meta: {
|
||||||
label: 'Người dùng'
|
label: 'Пользователь'
|
||||||
},
|
},
|
||||||
component: {
|
component: {
|
||||||
render(c) {
|
render(c) {
|
||||||
@@ -296,13 +296,13 @@ function configRoutes () {
|
|||||||
children: [
|
children: [
|
||||||
{
|
{
|
||||||
path: '',
|
path: '',
|
||||||
name: 'Danh sách',
|
name: 'Список',
|
||||||
component: Users
|
component: Users
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'create',
|
path: 'create',
|
||||||
meta: {
|
meta: {
|
||||||
label: 'Tạo mới'
|
label: 'Создать новый'
|
||||||
},
|
},
|
||||||
name: 'Create User',
|
name: 'Create User',
|
||||||
component: CreateUser
|
component: CreateUser
|
||||||
@@ -310,7 +310,7 @@ function configRoutes () {
|
|||||||
{
|
{
|
||||||
path: ':id',
|
path: ':id',
|
||||||
meta: {
|
meta: {
|
||||||
label: 'Chi tiết'
|
label: 'Деталь'
|
||||||
},
|
},
|
||||||
name: 'User',
|
name: 'User',
|
||||||
component: User
|
component: User
|
||||||
@@ -319,37 +319,37 @@ function configRoutes () {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'titles',
|
path: 'titles',
|
||||||
name: 'Chức danh',
|
name: 'Должность',
|
||||||
component: Titles
|
component: Titles
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'departments',
|
path: 'departments',
|
||||||
name: 'Phòng ban',
|
name: 'Подразделение',
|
||||||
component: Departments
|
component: Departments
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'signers',
|
path: 'signers',
|
||||||
name: 'Người ký',
|
name: 'Подписал',
|
||||||
component: Signers
|
component: Signers
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'publishers',
|
path: 'publishers',
|
||||||
name: 'Nơi ban hành',
|
name: 'Место выдачи',
|
||||||
component: Publishers
|
component: Publishers
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'document-types',
|
path: 'document-types',
|
||||||
name: 'Loại văn bản',
|
name: 'Вид документа',
|
||||||
component: DocumentTypes
|
component: DocumentTypes
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'roles',
|
path: 'roles',
|
||||||
name: 'Nhóm',
|
name: 'Группа',
|
||||||
component: Groups
|
component: Groups
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'permissions',
|
path: 'permissions',
|
||||||
name: 'Quyền',
|
name: 'Разрешение',
|
||||||
component: Permissions
|
component: Permissions
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,9 +5,9 @@
|
|||||||
<CWidgetBrand
|
<CWidgetBrand
|
||||||
color="white"
|
color="white"
|
||||||
:right-header="''+book.unread"
|
:right-header="''+book.unread"
|
||||||
right-footer="Chưa xem"
|
right-footer="Непрочитанные"
|
||||||
:left-header="''+book.count"
|
:left-header="''+book.count"
|
||||||
left-footer="Đã nhận"
|
left-footer="Полученные"
|
||||||
>
|
>
|
||||||
<h3 style="color:#3c4b64" class="m-3">{{book.name}}</h3>
|
<h3 style="color:#3c4b64" class="m-3">{{book.name}}</h3>
|
||||||
</CWidgetBrand>
|
</CWidgetBrand>
|
||||||
@@ -17,7 +17,7 @@
|
|||||||
<CCol col="12">
|
<CCol col="12">
|
||||||
<CCard>
|
<CCard>
|
||||||
<CCardHeader>
|
<CCardHeader>
|
||||||
<CIcon name="cil-grid" /> Văn bản gần đây
|
<CIcon name="cil-grid" /> Недавно смотреть
|
||||||
</CCardHeader>
|
</CCardHeader>
|
||||||
<CCardBody class="p-0">
|
<CCardBody class="p-0">
|
||||||
<CDataTable
|
<CDataTable
|
||||||
@@ -83,14 +83,14 @@ export default {
|
|||||||
},
|
},
|
||||||
fields() {
|
fields() {
|
||||||
return [
|
return [
|
||||||
{ key: "symbol", label: "Số ký hiệu" },
|
{ key: "symbol", label: "Номер регистрации" },
|
||||||
{
|
{
|
||||||
key: "abstract",
|
key: "abstract",
|
||||||
label: "Trích yếu",
|
label: "Краткое содержание",
|
||||||
_classes: "w-50 font-weight-bold",
|
_classes: "w-50 font-weight-bold",
|
||||||
},
|
},
|
||||||
{ key: "type", label: "Loại" },
|
{ key: "type", label: "Тип документа" },
|
||||||
{ key: "book", label: "Sổ" },
|
{ key: "book", label: "Книга" },
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
highlightStyle() {
|
highlightStyle() {
|
||||||
|
|||||||
@@ -3,14 +3,14 @@
|
|||||||
<CCol col="12">
|
<CCol col="12">
|
||||||
<CCard>
|
<CCard>
|
||||||
<CCardHeader>
|
<CCardHeader>
|
||||||
<CIcon name="cil-grid" />Danh sách văn bản
|
<CIcon name="cil-grid" />Книга
|
||||||
<CButton
|
<CButton
|
||||||
size="sm"
|
size="sm"
|
||||||
@click="goCreate"
|
@click="goCreate"
|
||||||
class="float-right"
|
class="float-right"
|
||||||
color="primary"
|
color="primary"
|
||||||
variant="outline"
|
variant="outline"
|
||||||
v-c-tooltip="'Tạo mới'"
|
v-c-tooltip="'Создать новый'"
|
||||||
>
|
>
|
||||||
<CIcon name="cil-plus" />
|
<CIcon name="cil-plus" />
|
||||||
</CButton>
|
</CButton>
|
||||||
@@ -137,36 +137,36 @@ export default {
|
|||||||
},
|
},
|
||||||
fields() {
|
fields() {
|
||||||
return [
|
return [
|
||||||
{ key: "symbol", label: "Số ký hiệu" },
|
{ key: "symbol", label: "Номер регистрации" },
|
||||||
{
|
{
|
||||||
key: "abstract",
|
key: "abstract",
|
||||||
label: "Trích yếu",
|
label: "Краткое содержание",
|
||||||
_classes: "w-50 font-weight-bold",
|
_classes: "w-50 font-weight-bold",
|
||||||
},
|
},
|
||||||
{ key: "type", label: "Loại" },
|
{ key: "type", label: "Тип документа" },
|
||||||
{ key: "publisher", label: "Nơi ban hành" },
|
{ key: "publisher", label: "Место выдачи" },
|
||||||
{
|
{
|
||||||
key: "effective_at",
|
key: "effective_at",
|
||||||
label: this.isDocumentsIncome ? "Ngày nhận" : "Ngày ban hành",
|
label: this.isDocumentsIncome ? "Дата получения" : "Дата выдачи",
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
searchFields() {
|
searchFields() {
|
||||||
return [
|
return [
|
||||||
{ value: "symbol", label: "Số ký hiệu" },
|
{ value: "symbol", label: "Номер регистрации" },
|
||||||
{ value: "abstract", label: "Trích yếu" },
|
{ value: "abstract", label: "Краткое содержание" },
|
||||||
{ value: "type.name", label: "Loại" },
|
{ value: "type.name", label: "Тип документа" },
|
||||||
{ value: "creator.name", label: "Người soạn" },
|
{ value: "creator.name", label: "Создатель" },
|
||||||
{ value: "signer.name", label: "Người ký" },
|
{ value: "signer.name", label: "Подписал" },
|
||||||
{
|
{
|
||||||
value: "effective_at",
|
value: "effective_at",
|
||||||
label: this.isDocumentsIncome ? "Ngày nhận" : "Ngày ban hành",
|
label: this.isDocumentsIncome ? "Дата получения" : "Дата выдачи",
|
||||||
},
|
},
|
||||||
{ value: "sign_at", label: "Ngày ký" },
|
{ value: "sign_at", label: "Дата подписания" },
|
||||||
{ value: "publisher.name", label: "Nơi ban hành" },
|
{ value: "publisher.name", label: "Место выдачи" },
|
||||||
{ value: "organizes.name", label: "Nơi nhận" },
|
{ value: "organizes.name", label: "Место получения" },
|
||||||
{ value: "linkTo.symbol", label: "Liên kết văn bản đến" },
|
{ value: "linkTo.symbol", label: "Разрешении входящие документы" },
|
||||||
{ value: "receivers.seen", label: "Chưa xem", defaultValue: 0 },
|
{ value: "receivers.seen", label: "Непрочитанные", defaultValue: 0 },
|
||||||
];
|
];
|
||||||
},
|
},
|
||||||
highlightStyle() {
|
highlightStyle() {
|
||||||
|
|||||||
@@ -6,7 +6,7 @@
|
|||||||
<CCard class="p-4 px-5">
|
<CCard class="p-4 px-5">
|
||||||
<CCardBody>
|
<CCardBody>
|
||||||
<CForm>
|
<CForm>
|
||||||
<h1 class="pb-4">Đăng nhập</h1>
|
<h1 class="pb-4">Войти</h1>
|
||||||
<CAlert :show="!!error" color="warning">{{error}}</CAlert>
|
<CAlert :show="!!error" color="warning">{{error}}</CAlert>
|
||||||
<CInput autocomplete="email" placeholder="Email or Username..." v-model="email" required>
|
<CInput autocomplete="email" placeholder="Email or Username..." v-model="email" required>
|
||||||
<template #prepend-content>
|
<template #prepend-content>
|
||||||
@@ -25,10 +25,10 @@
|
|||||||
</CInput>
|
</CInput>
|
||||||
<CRow>
|
<CRow>
|
||||||
<CCol col="6" class="text-left">
|
<CCol col="6" class="text-left">
|
||||||
<CButton color="primary" @click="login">Đăng nhập</CButton>
|
<CButton color="primary" @click="login">Войти</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol col="6" class="text-right">
|
<CCol col="6" class="text-right">
|
||||||
<CButton color="link">Quên mật khẩu?</CButton>
|
<CButton color="link">Забыли пароль?</CButton>
|
||||||
</CCol>
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
</CForm>
|
</CForm>
|
||||||
@@ -56,11 +56,11 @@ export default {
|
|||||||
.dispatch("auth/login", { email: this.email, password: this.password })
|
.dispatch("auth/login", { email: this.email, password: this.password })
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.$router.push(
|
this.$router.push(
|
||||||
this.$route.query.redirectFrom || { name: "Trang chủ" }
|
this.$route.query.redirectFrom || { name: "Домашняя страница" }
|
||||||
);
|
);
|
||||||
})
|
})
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.$toast.success("Đăng nhập thành công");
|
this.$toast.success("Успешно войти");
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
this.toastHttpError(error);
|
this.toastHttpError(error);
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<CCard>
|
<CCard>
|
||||||
<CCardHeader>
|
<CCardHeader>
|
||||||
<strong>Thống kê</strong>
|
<strong>Статистическая</strong>
|
||||||
</CCardHeader>
|
</CCardHeader>
|
||||||
<CCardBody>
|
<CCardBody>
|
||||||
<CForm>
|
<CForm>
|
||||||
@@ -10,7 +10,7 @@
|
|||||||
<CFormGroup class="form-group mb-0">
|
<CFormGroup class="form-group mb-0">
|
||||||
<template #label>
|
<template #label>
|
||||||
<slot name="label">
|
<slot name="label">
|
||||||
<label>Sổ văn bản</label>
|
<label>Документы</label>
|
||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
<template #input>
|
<template #input>
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
:multiple="false"
|
:multiple="false"
|
||||||
:options="books"
|
:options="books"
|
||||||
:clearable="true"
|
:clearable="true"
|
||||||
placeholder="Tất cả"
|
placeholder="Все"
|
||||||
></treeselect>
|
></treeselect>
|
||||||
</template>
|
</template>
|
||||||
</CFormGroup>
|
</CFormGroup>
|
||||||
@@ -28,7 +28,7 @@
|
|||||||
<CFormGroup class="form-group mb-0">
|
<CFormGroup class="form-group mb-0">
|
||||||
<template #label>
|
<template #label>
|
||||||
<slot name="label">
|
<slot name="label">
|
||||||
<label>Loại văn bản</label>
|
<label>Вид документа</label>
|
||||||
</slot>
|
</slot>
|
||||||
</template>
|
</template>
|
||||||
<template #input>
|
<template #input>
|
||||||
@@ -37,7 +37,7 @@
|
|||||||
:multiple="false"
|
:multiple="false"
|
||||||
:options="types"
|
:options="types"
|
||||||
:clearable="true"
|
:clearable="true"
|
||||||
placeholder="Tất cả"
|
placeholder="Все"
|
||||||
></treeselect>
|
></treeselect>
|
||||||
</template>
|
</template>
|
||||||
</CFormGroup>
|
</CFormGroup>
|
||||||
@@ -45,10 +45,10 @@
|
|||||||
</CRow>
|
</CRow>
|
||||||
<CRow class="form-group">
|
<CRow class="form-group">
|
||||||
<CCol sm="6">
|
<CCol sm="6">
|
||||||
<CInput label="Từ ngày" type="date" :value.sync="statistic.from" class="mb-0" />
|
<CInput label="с" type="date" :value.sync="statistic.from" class="mb-0" />
|
||||||
</CCol>
|
</CCol>
|
||||||
<CCol sm="6">
|
<CCol sm="6">
|
||||||
<CInput label="Đến ngày" type="date" :value.sync="statistic.to" class="mb-0" />
|
<CInput label="по" type="date" :value.sync="statistic.to" class="mb-0" />
|
||||||
</CCol>
|
</CCol>
|
||||||
</CRow>
|
</CRow>
|
||||||
<CRow class="form-group" v-if="false">
|
<CRow class="form-group" v-if="false">
|
||||||
@@ -66,7 +66,7 @@
|
|||||||
</CCardBody>
|
</CCardBody>
|
||||||
<CCardFooter>
|
<CCardFooter>
|
||||||
<CButton size="sm" @click="download" class="float-right" color="success">
|
<CButton size="sm" @click="download" class="float-right" color="success">
|
||||||
<CIcon name="cil-vertical-align-bottom" />Xuất
|
<CIcon name="cil-vertical-align-bottom" />Export
|
||||||
</CButton>
|
</CButton>
|
||||||
</CCardFooter>
|
</CCardFooter>
|
||||||
</CCard>
|
</CCard>
|
||||||
@@ -129,7 +129,7 @@ export default {
|
|||||||
services.statistic
|
services.statistic
|
||||||
.download(this.statistic)
|
.download(this.statistic)
|
||||||
.then(response => {
|
.then(response => {
|
||||||
this.$toast.success("Đã xuất báo cáo");
|
this.$toast.success("Exported báo cáo");
|
||||||
})
|
})
|
||||||
.catch(error => {
|
.catch(error => {
|
||||||
this.toastHttpError(error);
|
this.toastHttpError(error);
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
fields: [
|
fields: [
|
||||||
{ key: "id", label: "Mã" },
|
{ key: "id", label: "Код" },
|
||||||
{ key: "name", label: "Tên" }
|
{ key: "name", label: "Имя" }
|
||||||
],
|
],
|
||||||
service: services.book,
|
service: services.book,
|
||||||
title: "Sổ văn bản"
|
title: "Документы"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,12 +18,12 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
fields: [
|
fields: [
|
||||||
{ key: "id", label: "Mã" },
|
{ key: "id", label: "Код" },
|
||||||
{ key: "name", label: "Tên" },
|
{ key: "name", label: "Имя" },
|
||||||
{ key: "tel", label: "Số điện thoại" }
|
{ key: "tel", label: "Номер телефон" }
|
||||||
],
|
],
|
||||||
service: services.department,
|
service: services.department,
|
||||||
title: "Phòng ban"
|
title: "Подразделение"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
fields: [
|
fields: [
|
||||||
{ key: "id", label: "Mã" },
|
{ key: "id", label: "Код" },
|
||||||
{ key: "name", label: "Tên" },
|
{ key: "name", label: "Имя" },
|
||||||
],
|
],
|
||||||
service: services.documentType,
|
service: services.documentType,
|
||||||
title: "Loại văn bản"
|
title: "Вид документа"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
@show="fetchRolePermissions"
|
@show="fetchRolePermissions"
|
||||||
>
|
>
|
||||||
<template #append-body>
|
<template #append-body>
|
||||||
<label>Quyền</label>
|
<label>Разрешение</label>
|
||||||
<treeselect
|
<treeselect
|
||||||
@select="addPermission"
|
@select="addPermission"
|
||||||
@deselect="removePermission"
|
@deselect="removePermission"
|
||||||
@@ -38,11 +38,11 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
fields: [
|
fields: [
|
||||||
{ key: "id", label: "Mã" },
|
{ key: "id", label: "Код" },
|
||||||
{ key: "name", label: "Tên" },
|
{ key: "name", label: "Имя" },
|
||||||
],
|
],
|
||||||
service: services.role,
|
service: services.role,
|
||||||
title: "Nhóm",
|
title: "Группа",
|
||||||
permissionOptions: [],
|
permissionOptions: [],
|
||||||
permissions: [],
|
permissions: [],
|
||||||
role: {}
|
role: {}
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
fields: [
|
fields: [
|
||||||
{ key: "id", label: "Mã" },
|
{ key: "id", label: "Код" },
|
||||||
{ key: "name", label: "Tên" }
|
{ key: "name", label: "Имя" }
|
||||||
],
|
],
|
||||||
service: services.permission,
|
service: services.permission,
|
||||||
title: "Quyền"
|
title: "Разрешение"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
fields: [
|
fields: [
|
||||||
{ key: "id", label: "Mã" },
|
{ key: "id", label: "Код" },
|
||||||
{ key: "name", label: "Tên" },
|
{ key: "name", label: "Имя" },
|
||||||
],
|
],
|
||||||
service: services.publisher,
|
service: services.publisher,
|
||||||
title: "Nơi ban hành"
|
title: "Место выдачи"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,12 +18,12 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
fields: [
|
fields: [
|
||||||
{ key: "id", label: "Mã" },
|
{ key: "id", label: "Код" },
|
||||||
{ key: "name", label: "Tên" },
|
{ key: "name", label: "Имя" },
|
||||||
{ key: "description", label: "Mô tả" }
|
{ key: "description", label: "Описание" }
|
||||||
],
|
],
|
||||||
service: services.signer,
|
service: services.signer,
|
||||||
title: "Người ký"
|
title: "Подписал"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
fields: [
|
fields: [
|
||||||
{ key: "id", label: "Mã" },
|
{ key: "id", label: "Код" },
|
||||||
{ key: "name", label: "Tên" }
|
{ key: "name", label: "Имя" }
|
||||||
],
|
],
|
||||||
service: services.title,
|
service: services.title,
|
||||||
title: "Chức danh"
|
title: "Должность"
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user