Commit c8699b9b by mushishixian

优化

parent f3327f81
......@@ -12,9 +12,6 @@
layer.load(1);
});
let tabName = getQueryVariable("tab");
$('#' + tabName).click();
{{--index.setTabTitle('供应商修改 - {{$supplier['supplier_code'] or ''}}');--}}
form.on('submit(updateSupplier)', function (data) {
......
......@@ -84,12 +84,27 @@
<input type="hidden" name="supplier_code" value="{{$supplier['supplier_code']}}">
<div class="layui-tab">
<ul class="layui-tab-title">
<li class="layui-this" id="base_info">基本信息</li>
<li id="contact">联系人</li>
<li id="ruler">特殊规则</li>
<li
@if(request()->get('tab')=='base_info'||empty(request()->get('tab')))
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>
<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">
<input type="hidden" name="status" value="{{$supplier['status'] or 0}}">
<div class="layui-row">
......@@ -189,12 +204,12 @@
<hr/>
</div>
</div>
<div class="layui-tab-item">
<div class="layui-tab-item @if(request()->get('tab')=='contact') layui-show @endif">
@if(checkPerm('ViewSupplierContact'))
@include('web.supplier.SupplierContact')
@endif
</div>
<div class="layui-tab-item">
<div class="layui-tab-item @if(request()->get('tab')=='ruler') layui-show @endif">
<div
@if(!checkPerm('ViewRuler') || !checkPerm('UpdateRuler'))
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