Commit f3327f81 by mushishixian

页面优化

parent 667f0c8c
<script>
layui.use(['table', 'form', 'element', 'layer', 'admin', 'upload','index'], function () {
layui.use(['table', 'form', 'element', 'layer', 'admin', 'upload', 'index'], function () {
let table = layui.table;
let layer = layui.layer;
let form = layui.form;
......@@ -11,6 +11,8 @@
$('#updateSupplierUrl').click(function () {
layer.load(1);
let tabName = $('.layui-this').attr('id');
window.location.href = "/supplier/UpdateSupplier?view=iframe&supplier_id={{$supplier['supplier_id']}}&tab=" + tabName;
})
{{--index.setTabTitle('供应商详情 - {{$supplier['supplier_code'] or ''}}');--}}
......
......@@ -12,6 +12,9 @@
layer.load(1);
});
let tabName = getQueryVariable("tab");
$('#' + tabName).click();
{{--index.setTabTitle('供应商修改 - {{$supplier['supplier_code'] or ''}}');--}}
form.on('submit(updateSupplier)', function (data) {
......
......@@ -48,7 +48,6 @@
||$supplier['status']==\App\Model\SupplierChannelModel::STATUS_REJECT)
<div class="layui-row">
<a id="updateSupplierUrl"
href="/supplier/UpdateSupplier?view=iframe&supplier_id={{$supplier['supplier_id']}}"
style="margin-bottom: 25px;margin-top: 5px" class="layui-btn layui-btn">修改</a>
</div>
@endif
......
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