售后原因多语言

This commit is contained in:
pushuo 2022-08-31 14:54:39 +08:00
parent a74e52eb4f
commit 4396b1f133
4 changed files with 6 additions and 3 deletions

View File

@ -51,7 +51,7 @@ class Sidebar extends Component
foreach ($routes as $route) { foreach ($routes as $route) {
$this->addLink($route['route'], $route['icon'] ?? '', $this->equalRoute($route['route']), (bool)($route['blank'] ?? false)); $this->addLink($route['route'], $route['icon'] ?? '', $this->equalRoute($route['route']), (bool)($route['blank'] ?? false));
} }
} elseif (Str::startsWith($routeName, ['orders.', 'rmas.'])) { } elseif (Str::startsWith($routeName, ['orders.', 'rmas.', 'rma_reasons.'])) {
$routes = $this->getOrderSubRoutes(); $routes = $this->getOrderSubRoutes();
foreach ($routes as $route) { foreach ($routes as $route) {
$this->addLink($route['route'], $route['icon'] ?? '', $this->equalRoute($route['route']), (bool)($route['blank'] ?? false)); $this->addLink($route['route'], $route['icon'] ?? '', $this->equalRoute($route['route']), (bool)($route['blank'] ?? false));
@ -152,6 +152,7 @@ class Sidebar extends Component
$routes = [ $routes = [
['route' => 'orders.index', 'icon' => 'fa fa-tachometer-alt'], ['route' => 'orders.index', 'icon' => 'fa fa-tachometer-alt'],
['route' => 'rmas.index', 'icon' => 'fa fa-tachometer-alt'], ['route' => 'rmas.index', 'icon' => 'fa fa-tachometer-alt'],
['route' => 'rma_reasons.index', 'icon' => 'fa fa-tachometer-alt'],
]; ];
return hook_filter('sidebar.order_routes', $routes); return hook_filter('sidebar.order_routes', $routes);
} }

View File

@ -38,7 +38,7 @@
@extends('admin::layouts.master') @extends('admin::layouts.master')
@section('title', '退换货原因') @section('title', __('admin/common.rma_reasons_index'))
@section('content') @section('content')
<div id="tax-classes-app" class="card" v-cloak> <div id="tax-classes-app" class="card" v-cloak>
@ -73,7 +73,7 @@
{{-- {{ $languages->links('admin::vendor/pagination/bootstrap-4') }} --}} {{-- {{ $languages->links('admin::vendor/pagination/bootstrap-4') }} --}}
</div> </div>
<el-dialog title="退换货原因" :visible.sync="dialog.show" width="500px" <el-dialog title="{{ __('admin/common.rma_reasons_index') }}" :visible.sync="dialog.show" width="500px"
@close="closeCustomersDialog('form')" :close-on-click-modal="false"> @close="closeCustomersDialog('form')" :close-on-click-modal="false">
<el-form ref="form" :rules="rules" :model="dialog.form" label-width="100px"> <el-form ref="form" :rules="rules" :model="dialog.form" label-width="100px">

View File

@ -61,6 +61,7 @@ return [
'brands_index' => 'Brands', 'brands_index' => 'Brands',
'orders_index' => 'Orders', 'orders_index' => 'Orders',
'rmas_index' => 'RMA', 'rmas_index' => 'RMA',
'rma_reasons_index' => 'Rma Reasons',
'customers_index' => 'Customers', 'customers_index' => 'Customers',
'customer_groups_index' => 'Customer Groups', 'customer_groups_index' => 'Customer Groups',
'countries_index' => 'Countries', 'countries_index' => 'Countries',

View File

@ -61,6 +61,7 @@ return [
'brands_index' => '商品品牌', 'brands_index' => '商品品牌',
'orders_index' => '订单列表', 'orders_index' => '订单列表',
'rmas_index' => '售后管理', 'rmas_index' => '售后管理',
'rma_reasons_index' => '售后原因',
'customers_index' => '客户列表', 'customers_index' => '客户列表',
'customer_groups_index' => '客户组', 'customer_groups_index' => '客户组',
'countries_index' => '国家管理', 'countries_index' => '国家管理',