Commit c8699b9b by mushishixian

优化

parent f3327f81
...@@ -12,9 +12,6 @@ ...@@ -12,9 +12,6 @@
layer.load(1); layer.load(1);
}); });
let tabName = getQueryVariable("tab");
$('#' + tabName).click();
{{--index.setTabTitle('供应商修改 - {{$supplier['supplier_code'] or ''}}');--}} {{--index.setTabTitle('供应商修改 - {{$supplier['supplier_code'] or ''}}');--}}
form.on('submit(updateSupplier)', function (data) { form.on('submit(updateSupplier)', function (data) {
......
...@@ -84,12 +84,27 @@ ...@@ -84,12 +84,27 @@
<input type="hidden" name="supplier_code" value="{{$supplier['supplier_code']}}"> <input type="hidden" name="supplier_code" value="{{$supplier['supplier_code']}}">
<div class="layui-tab"> <div class="layui-tab">
<ul class="layui-tab-title"> <ul class="layui-tab-title">
<li class="layui-this" id="base_info">基本信息</li> <li
<li id="contact">联系人</li> @if(request()->get('tab')=='base_info'||empty(request()->get('tab')))
<li id="ruler">特殊规则</li> class="layui-this"
@endif
id="base_info">基本信息
</li>
<li
@if(request()->get('tab')=='contact')
class="layui-this"
@endif
id="contact">联系人
</li>
<li
@if(request()->get('tab')=='ruler')
class="layui-this"
@endif
id="ruler">特殊规则
</li>
</ul> </ul>
<div class="layui-tab-content"> <div class="layui-tab-content">
<div class="layui-tab-item layui-show"> <div class="layui-tab-item @if(request()->get('tab')=='base_info'||empty(request()->get('tab'))) layui-show @endif">
<div class="layui-row" style="padding: 10px"> <div class="layui-row" style="padding: 10px">
<input type="hidden" name="status" value="{{$supplier['status'] or 0}}"> <input type="hidden" name="status" value="{{$supplier['status'] or 0}}">
<div class="layui-row"> <div class="layui-row">
...@@ -189,12 +204,12 @@ ...@@ -189,12 +204,12 @@
<hr/> <hr/>
</div> </div>
</div> </div>
<div class="layui-tab-item"> <div class="layui-tab-item @if(request()->get('tab')=='contact') layui-show @endif">
@if(checkPerm('ViewSupplierContact')) @if(checkPerm('ViewSupplierContact'))
@include('web.supplier.SupplierContact') @include('web.supplier.SupplierContact')
@endif @endif
</div> </div>
<div class="layui-tab-item"> <div class="layui-tab-item @if(request()->get('tab')=='ruler') layui-show @endif">
<div <div
@if(!checkPerm('ViewRuler') || !checkPerm('UpdateRuler')) @if(!checkPerm('ViewRuler') || !checkPerm('UpdateRuler'))
style="display: none" style="display: none"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment